Re: 9.5.0 crash to desktop

2019-08-13 Thread axwald via use-livecode
Hi.

Mark Wieder via use-livecode wrote
> LOL. That's an utterly bizarre workflow, but I'm glad it works.
> I'm filing that away somewhere if I ever have to record the screen on 
> Windows.

That's actually the most nasty method I ever read of. You may as well:
1. Press "Print" on your keyboard, open your favorite imagining program, and
"paste".
2. On a up-to-date Windows, Go "Start", choose "Snip & Sketch" in the
alphabetical program list, and use this for a custom size screenshot.
(On older versions there's a "Snipping Tool" ...)
3. Go to the  MS store

  
and choose one among the many free screenshot tools ;-)

Have fun! (axwald @ forums.livecode.com)




-
• Livecode programming until the cat hits the fan •
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

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

Re: array and revExecuteSQL

2019-05-16 Thread axwald via use-livecode
Hi.

Paul Dupuis via use-livecode wrote
> I believe you need to surround the placeholder with single quotes.

Doesn't work, my LC doesn't do the replacement:
> UPDATE `t_test` SET `Text` = ':11' WHERE `Nummer` = ':22';
and
> UPDATE `t_test` SET `Text` = :'11' WHERE `Nummer` = :'22';
are sent to the db w/o changes.

Interesting:
> put "cText" into myArr[8]
> put "99" into myArr[9]
> put "UPDATE `t_test` SET `Text` = :8 WHERE `Nummer` = :9;" into StrSQL 
doesn't replace, whereas:
> put "cText" into myArr[8]
> put "99" into myArr[9]
> put "UPDATE `t_test` SET `Text` = :1 WHERE `Nummer` = :2;" into StrSQL 
does - according to the order of the numbers ;-)
So the placeholders in the SQL string MUST BE :1 to :9, and MUST BE used in
ascending order. :0 isn't recognized.


Paul Dupuis via use-livecode wrote
> Also you can lose the semicolon as LC will only execute one statement at a
> time. You cannot string statements. 

Well, it doesn't hurt either, and I'm so used to it :)

Have fun!



-
• Livecode programming until the cat hits the fan •
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

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

Re: array and revExecuteSQL

2019-05-15 Thread axwald via use-livecode
Hi,
the notation for revExecuteSQL you mention only works with 1-digit numbers
(in my LC 6.7.10).
Named arrays and 2- or more digit entries don't work - LC doesn't translate
'em. You can easily check this with your favorite network sniffer:

> put "bText" into myArr[11]
> put "99" into myArr[22]
> put "UPDATE `t_test` SET `Text` = :11 WHERE `Nummer` = :22;" into StrSQL
sends this to the database:
> UPDATE `t_test` SET `Text` = :11 WHERE `Nummer` = :22;
and this fails, for sure.

Correctly used:
> put "bText" into myArr[1]
> put "99" into myArr[2]
> put "UPDATE `t_test` SET `Text` = :1 WHERE `Nummer` = :2;" into StrSQL
sends this to the database:
> UPDATE `t_test` SET `Text` = "bText" WHERE `Nummer` = "99";

So the error is in LC, dunno if the newer versions do better. Or the
limitation just isn't mentioned in the dictionary.
And since LC obviously just does a simple & limited replace, you could use
merge() as well.

Have fun!



-
• Livecode programming until the cat hits the fan •
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

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

Re: Where does LiveCode/Windows store specialFolderPath("Resources") data?

2018-10-03 Thread axwald via use-livecode
Tried in Win 10-64 pro (v1803), both with LC 9.0.1 and 6.7.10, both in IDE
and StandAlone.

   SpecialFolderPath("resources")
_is_always_ 
   item 1 to -2 of the effective filename of this stack
(assuming slash as itemdel).

> I store a data file that is update by 
> the user in specialFolderPath("Resources")
You may assume _not_ to have write permissions in the program folder (in
modern OSses).
For user data there is the SFPs "documents" and "temporary".

Have fun, axwald
(@ forums.livecode.com)









-
• Livecode programming until the cat hits the fan •
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

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

Re: Mobile Check Bandwidth Function

2017-07-03 Thread axwald via use-livecode
Hi.

Peter Bogdanoff via use-livecode wrote
> Can anyone share their "test bandwidth" library?

Found it difficult & time consuming to test the actual bandwidth, so I'm
testing the latency now. Bad latency usually relates to bad bandwidth ;-)

On my server I have a php script:
-

-

And in LC I use this function:
-
function INTest full
   put "http://myServer.net/tools/myip.php; into myIPURL
   if full then
  put the millisecs into t1
  put url myIPURL into myIP
  put the millisecs - t1 into t2
  return myIP & CR & t2
   else
  return url myIPURL
   end if
end INTest
-

Calling INTest() gives empty if we have no IN, else the actual public IP as
seen from the server (often useful anyways). Calling INTest(true)
additionally gives the latency on line 2.

Since this is small and not intrusive at all I can call it quite often to
monitor IN quality even on mobile.

Have fun!

axwald



-
• Livecode programming until the cat hits the fan •
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Mobile-Check-Bandwidth-Function-tp4716503p4716511.html
Sent from the Revolution - User mailing list archive at Nabble.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: SHA1 cracked .... What are the chances this will be addressed in LC?

2017-03-02 Thread axwald via use-livecode
Hi,


Dr Peter Brett wrote
> On 24/02/2017 18:47, axwald via use-livecode wrote:
> [...]
>> Not a specialist regarding this, but wouldn't it be possible to interface
>> such?
>>> https://github.com/jedisct1/libsodium
>>
>> @Lagi: The first customer already called to ask if I'd use "this security
>> risk" - thanks "LibHash-Hmac" (Richard posted the URL) I could deny
>> [...]
> 
> If you're using SHA-1 to implement an HMAC, you should already be using 
> the recommended formulation:
> 
>  hmac := hash(key | hash(key | message)) [...]

What I meant mentioning the "LibHash-Hmac" lib is that it contains a
"sha256digest" function already that is, to my understanding at least, a
SHA2 implementation. And that it's not only about the real danger of having
one's hash cracked, it's more about the publicity this crack received, and
the nosy questions that are coming in now from customers that read about it
in the news. And, for sure, will never understand any detailed explanation.

The other thing, about libsodium, was the idea not to roll our own crypto
code, but instead to interface a commonly used, audited, verified & accepted
open source crypto library. And just provide the wrapper as a plugin.
No idea if such would be possible - this is beyond my knowledge. But for
real security sensitive coding there's no way but to use audited code
anyways. It would be a great benefit to have such available in LiveCode,
IMHO.

Another benefit would be that such a wrapper plugin could be made available
not only for the most bleeding edge versions of LC - so that commercial
coders that are forced to use more settled versions for speed, productivity
& reliability are not left out in the dark & cold, again.

Have fun!



-
• Livecode programming until the cat hits the fan •
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/SHA1-cracked-What-are-the-chances-this-will-be-addressed-in-LC-tp4712554p4712777.html
Sent from the Revolution - User mailing list archive at Nabble.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: SHA1 cracked .... What are the chances this will be addressed in LC?

2017-02-24 Thread axwald via use-livecode
Hi,

few days ago I read about PHP incorporating a modern crypto lib now:
> https://dev.to/paragonie/php-72-the-first-programming-language-to-add-modern-cryptography-to-its-standard-library

Not a specialist regarding this, but wouldn't it be possible to interface
such?
> https://github.com/jedisct1/libsodium

@Lagi: The first customer already called to ask if I'd use "this security
risk" - thanks "LibHash-Hmac" (Richard posted the URL) I could deny
plausibly :)
Even if I agree with you about the real risk, it would be very bad idea not
to update any commercial software now. It might even have juristic
consequences, knowingly using broken crypto?

Anyway. Have fun!



-
• Livecode programming until the cat hits the fan •
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/SHA1-cracked-What-are-the-chances-this-will-be-addressed-in-LC-tp4712554p4712617.html
Sent from the Revolution - User mailing list archive at Nabble.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: Script Editor fixable? (was: Configuring a Sublime Text project to notify LiveCode IDE about updates to script only stacks)

2017-02-23 Thread axwald via use-livecode
Hi,

William Prothero wrote
> [...] A mothership sanctioned powerful external editor [...]

Which one? This is the problem here.
The "target audience" already has its favorite text editor, each another one
;-)

So I think it would only make sense to have "the basics" collected at some
place:
- Lists of keywords, commands, functions, properties, ...
- Regex that work to determine control structures, comments, ...
- already existing solutions (for whatever text editors)

This would be a great help to roll ones own "syntax schemata", IMHO.
And the only one I can imagine that would really be a benefit for all.

Have fun!

axwald @ the forum



-
• Livecode programming until the cat hits the fan •
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Configuring-a-Sublime-Text-project-to-notify-LiveCode-IDE-about-updates-to-script-only-stacks-tp4712463p4712521.html
Sent from the Revolution - User mailing list archive at Nabble.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