Database Insert

2012-11-27 Thread Nibor
Hello, I have a problem. I want to insert two things into my database with the same "mouseUp" instruction. The problem is that LiveCode only delivers the first part and ignores the second part. Can someone maybe help me with this ? I don't see what I did wrong.. Here's the code ___

Re: [OT] WWII code 'may never be cracked'

2012-11-27 Thread Robert Sneidar
Tossing a large book over the fence to your neighbor is faster still, although somewhat limited in range. ;-) Bob On Nov 27, 2012, at 4:51 PM, Kay C Lan wrote: > For those > who don't know, a carrier pigeon is faster than broadband Internet: > > http://phys.org/news171883994.html _

Re: [OT] WWII code 'may never be cracked'

2012-11-27 Thread J. Landman Gay
On 11/27/12 8:51 PM, Kay C Lan wrote: [Pity it isn't the beginning of April, this would have been so much better. Decoding messages is easy when you can't prove what the orginal said and you can write the rules yourself.] Smarty pants. You should have waited till April 1 and THEN posted, tell

Re: [OT] WWII code 'may never be cracked'

2012-11-27 Thread Dr. Hawkins
On Tuesday, November 27, 2012, Kay C Lan wrote: > > Each 5 digits represents a letter and the codes rotate so the same code > never represented the same letter. > "never" or "probably doesn't" ? The former would lead to the same hole by which the German machines were cracked--a letter o UD never

Re: Weird string comparison problem...

2012-11-27 Thread Kay C Lan
On Wed, Nov 28, 2012 at 10:20 AM, Robert Sneidar wrote: > I find frustration is my worst enemy when trying to debug a difficult bit > of code. Taking a deep breath and going about things systematically helps > me a lot. > > Absolutely. Whether explicitVars is Off or On, typos are the least of my

Re: [OT] WWII code 'may never be cracked'

2012-11-27 Thread Kay C Lan
Ah, so that's what happened to the pigeon with the back-up written order. The first and last designators (OKAKN) simply indicate the beginning and the end of the message. It was a way of ensuring entire messages were received. The 27 is the character count, including the start and stop indicators

Re: Weird string comparison problem...

2012-11-27 Thread Robert Sneidar
Alternately you can "put the variableNames" at the end of a misbehaving script to see if there are similarly spelled variables. One leg is both the same. The salient point here is that there are lots of ways to skin this cat. Part of the skillset of debugging is to develop ways to reveal differe

Re: Weird string comparison problem...

2012-11-27 Thread Kay C Lan
I know everyone has their preference, and at the moment I'm trying to ween myself onto explicitVars for a big project, but I have never understood the argument that you can't *see* these spelling errors. As soon as a script doesn't behave, in goes a breakpoint, and you stop inside the script and 'i

Re: Weird string comparison problem...

2012-11-27 Thread Peter M. Brigham
I just use Jacque's scriptpaint (see previous thread), now apparently built into lcStackBrowser. No more typos for variable names. Love it. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Nov 27, 2012, at 5:46 PM, Peter Haworth wrote: > On Tue, Nov 27, 2012 at 1:5

Re: Weird string comparison problem...

2012-11-27 Thread Peter Haworth
On Tue, Nov 27, 2012 at 1:54 PM, Ben Rubinstein wrote: > But this sort of thing is exactly why I like explicitVars/Variable > Checking/Strict Compilation Mode (LiveCode's confusing three names for the > same thing applied in subtly different ways). +1 Pete _

Re: Weird string comparison problem...

2012-11-27 Thread Robert Sneidar
I didn't use my eyes, I used logic. I thought I would try something new. ;-) But seriously, after looking at the output of the first part of the script it was easy to determine that all that was functioning as expected, so the only thing left was his content comparison. Something had to be wrong

Re: Weird string comparison problem...

2012-11-27 Thread Ben Rubinstein
On 27/11/2012 20:23, Paul Dupuis wrote: Bob, Thank you. I clearly need a new set of eyes! I'm very impressed with Bob's eyes - I certainly couldn't see it! But this sort of thing is exactly why I like explicitVars/Variable Checking/Strict Compilation Mode (LiveCode's confusing three names for

Re: Weird string comparison problem...

2012-11-27 Thread Mark Schonewille
Paul, Because in the last line you're writing tExpectedSouceName instead of tExpectedSourceName. An "r" is missing. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553

Re: Bluetooth

2012-11-27 Thread Monte Goulding
You should be able to get the protocol docs from the manufacturer if its a made for iPhone accessory. -- M E R Goulding Software development services mergExt - There's an external for that! On 28/11/2012, at 8:03 AM, Mike Kerner wrote: > I saw in MA that I had to specify the protocol - what d

Re: Bluetooth

2012-11-27 Thread Mike Kerner
I saw in MA that I had to specify the protocol - what does one do when one needs to have a custom protocol, or one is not sure what it is? Are you saying in that case that one would have to use the Core Bluetooth framework? If so I may be asking for a quote... On Tue, Nov 27, 2012 at 2:34 PM, M

Re: Weird string comparison problem...

2012-11-27 Thread Paul Dupuis
Bob, Thank you. I clearly need a new set of eyes! On 11/27/2012 3:15 PM, Robert Sneidar wrote: > BTW GLX2 would have helped here with it's clairvoyance feature. Remo also has > this feature. Very handy to have GLX2 or Remo complete your variable and > command/function names for you. > > Bob >

Re: Weird string comparison problem...

2012-11-27 Thread Robert Sneidar
BTW GLX2 would have helped here with it's clairvoyance feature. Remo also has this feature. Very handy to have GLX2 or Remo complete your variable and command/function names for you. Bob On Nov 27, 2012, at 10:07 AM, Paul Dupuis wrote: > put (tActualSourceName = tExpectedSouceName) afte

Re: Weird string comparison problem...

2012-11-27 Thread Robert Sneidar
Because you misspelled tExpectedSourceName Bob On Nov 27, 2012, at 10:07 AM, Paul Dupuis wrote: > put (tActualSourceName = tExpectedSouceName) after msg ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscr

Weird string comparison problem...

2012-11-27 Thread Paul Dupuis
Using LC 5.0.2, I have a really weird string comparison error occurring. The following code: put length(tActualSourceName),length(tExpectedSourceName)&cr after msg repeat with i=1 to the number of characters in tActualSourceName if char i of tActualSourceName is not char i of t

Re: Bluetooth

2012-11-27 Thread Monte Goulding
mergAccessory does Bluetooth and plugged in made for iPhone accessories. The example in the demo is printing to a mini Bluetooth printer. There's also the Core Bluetooth framework which I haven't looked at. I believe that's for using Bluetooth devices that may not be made for iPhone... Cheers

Bluetooth

2012-11-27 Thread Mike Kerner
Has anybody done any bluetoothing with LC, especially on mobile? I have an idea... -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This

Re: [OT] the evils (?) of secure boot.

2012-11-27 Thread Robert Sneidar
Agreed. On Nov 26, 2012, at 10:22 PM, Peter Alcibiades wrote: > Anyone who cares about intellectual freedom in the digital age needs to > think whether they can spend a little time to educate and lobby their > competition regulators about these issues. We do need some more security on > bios and

Re: Image Color Downsizing

2012-11-27 Thread Rick Harrison
Hi again Thomas, Good news! Turns out the dictionary documentation was wrong again. The export image statement actually works under iOS in the simulator just fine! Looks like someone forgot to update the dictionary for this. So, that problem has been solved! Yea!!! Thank you for your help. Ri

Re: Image Color Downsizing

2012-11-27 Thread Rick Harrison
Hi Thomas, I was looking at export image late last night without much success. If one exports to a variable and then sets the imageData to the variable it comes out as a mishmash. I looked into your suggestion of "optimized" this morning and it complained about the syntax. I found out a couple

Re: Image Color Downsizing

2012-11-27 Thread Thomas McGrath III
Rick, Have you checked out "export with palette" in the dictionary? It works on the palette of the image which could be set to 16 color count? export "image1" to tImage as png with 16 optimized color palette If the optimized palette form is used, then a palette with the colorCount colors will

Re: [OT] the evils (?) of secure boot.

2012-11-27 Thread Peter Alcibiades
In some cases you really have to be able to boot from other media. For instance, when cloning a hard drive, which you might do for backups, but you will also have to do in the course of forensic examination of a machine so as to leave the evidence untouched. Or you may need to do serious file sys