Re: why one char in UTF8 (3 bytes) converted to UTF16 becomes 6 bytes?

2011-03-30 Thread Dave Cragg
On 30 Mar 2011, at 02:30, Kee Nethery wrote: > I have the don't sign symbol (Combining enclosing circle backslash) in a text > file that I read into livecode. For grins, the character between "Petro" and > "Max" seen below. > > Petro⃠Max > > When I scan the bytes, in UTF8, this is encoded as:

Re: Incredibly slow revlet in Win 7

2011-03-30 Thread paul foraker
Here's some more information from my user: My system is generally superfast, being a fast quad processor, with 8GB of RAM and an SSD drive. I updated the video drivers yesterday and as mentioned, refreshed the operating system last week. I am running 64 bit Windows 7. I have not yet updated to

Re: Live LiveCode event #16 (Wrapup)

2011-03-30 Thread Roger Eller
Try different browsers too. It works fine for me in Stainless and Opera. http://www.stainlessapp.com/ http://www.opera.com/download/index.dml?platform=mac ~Roger ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subs

Re: routers / controllers

2011-03-30 Thread Trevor DeVore
On Tue, Mar 29, 2011 at 9:25 PM, Todd Geist wrote: > I am on to exploring the C in MVC, the "Controller". > > ... > > It occurs to me that LiveCode with its message path might be a nice fit for > this kind of architecture. I was thinking putting the Controller in a back > script, and seeing where

Re: [Datagrid] How to detect a change in column width?

2011-03-30 Thread Trevor DeVore
On Tue, Mar 29, 2011 at 1:58 PM, Phil Davis wrote: > Does the data grid send a message when the user changes the width of a > column by dragging its header to a new width? I would love that, but I'm > pretty sure the answer is "no". > No message is sent but a custom property is set which means y

Re: lines of UFT16 text are broken?

2011-03-30 Thread Trevor DeVore
On Tue, Mar 29, 2011 at 9:04 PM, Kee Nethery wrote: > How do people deal with this? Do I need to build a UTF16 version of all the > text parsing routines to safely get each line? > Can you iterate over the lines of the UTF8 text and then convert to UTF16 when you are done? -- Trevor DeVore Blu

Re: routers / controllers

2011-03-30 Thread Todd Geist
Yes, I have seen it. Looks very cool. and I think there is some stuff I can adapt from there. Thanks for reminding me of it Todd On Tue, Mar 29, 2011 at 10:08 PM, stephen barncard < stephenrevoluti...@barncard.com> wrote: > Todd, you haven't checked out 'RevIgniter'? > > works on Rev Server.

Re: [Datagrid] How to detect a change in column width?

2011-03-30 Thread Phil Davis
Thanks Trevor! That may help just enough. Phil On 3/30/11 5:56 AM, Trevor DeVore wrote: On Tue, Mar 29, 2011 at 1:58 PM, Phil Davis wrote: Does the data grid send a message when the user changes the width of a column by dragging its header to a new width? I would love that, but I'm pretty s

Re: lines of UFT16 text are broken?

2011-03-30 Thread Kee Nethery
On Mar 30, 2011, at 5:58 AM, Trevor DeVore wrote: > On Tue, Mar 29, 2011 at 9:04 PM, Kee Nethery wrote: > >> How do people deal with this? Do I need to build a UTF16 version of all the >> text parsing routines to safely get each line? >> > > Can you iterate over the lines of the UTF8 text and

Re: why one char in UTF8 (3 bytes) converted to UTF16 becomes 6 bytes?

2011-03-30 Thread Kee Nethery
On Mar 30, 2011, at 12:05 AM, Dave Cragg wrote: > > On 30 Mar 2011, at 02:30, Kee Nethery wrote: > >> I have the don't sign symbol (Combining enclosing circle backslash) in a >> text file that I read into livecode. For grins, the character between >> "Petro" and "Max" seen below. >> >> Petro

Re: Menu Icons?

2011-03-30 Thread Nonsanity
I believe it was possible in HyperCard back in the pre-OS X days using a commonly available XCMD. I remember going through the menu creation options and seeing icons of various sizes in there. But these OS X days, I've never once seen an icon in a menu. Is it even possible now? If it is, I'd advis

Re: Menu Icons?

2011-03-30 Thread Trevor DeVore
On Wed, Mar 30, 2011 at 10:24 AM, Nonsanity wrote: > But these OS X days, I've never once seen an icon in a menu. Is it even > possible now? If it is, I'd advise against it... It's definitely not > standard UI practice. > Icons in UI menus are not all that uncommon on OS X. I picked a couple of

Re: Incredibly slow revlet in Win 7

2011-03-30 Thread J. Landman Gay
On 3/30/11 4:14 AM, paul foraker wrote: Here's some more information from my user: My system is generally superfast, being a fast quad processor, with 8GB of RAM and an SSD drive. I updated the video drivers yesterday and as mentioned, refreshed the operating system last week. I am running 64

Re: Menu Icons?

2011-03-30 Thread Scott Rossi
Recently, Nonsanity wrote: > But these OS X days, I've never once seen an icon in a menu. Is it even > possible now? If it is, I'd advise against it... It's definitely not > standard UI practice. Bright/colorful icons in menus may be less common, but icons are still used, and I still need this fe

Re: Live LiveCode event #16 (Wrapup)

2011-03-30 Thread Bob Sneidar
I have a better idea. Everyone get mad at Adobe and threaten to abandon the use of their codec unless they fix this. Yeah, that will work! ;-) Bob On Mar 29, 2011, at 10:56 PM, William de Smet wrote: > Hi there, > > On a Dutch forum there was someone who, all of a sudden, couldn't play > YouT

Re: Live LiveCode event #16 (Wrapup)

2011-03-30 Thread Colin Holgate
On Mar 30, 2011, at 12:23 PM, Bob Sneidar wrote: > I have a better idea. Everyone get mad at Adobe and threaten to abandon the > use of their codec unless they fix this. Yeah, that will work! ;-) I have a better better idea, if people attended the meetings they could watch it live. ___

Very slow in edit mode

2011-03-30 Thread h...@quick-calcs.net
> Kev, on the off-chance that you may have exceeded the number of datagrids on > a single card that anyone has tested, I would duplicate your stack and then > remove one or more until things appear to function more timely. > > Just a thought! Thanks Joe, I deleted them one by one and it gradua

Re: why one char in UTF8 (3 bytes) converted to UTF16 becomes 6 bytes?

2011-03-30 Thread Kee Nethery
Dave it appears that you are absolutely correct. The "language" in the uniencode() function is what you have, not what you want it converted into. I added a note to the uniencode function in the dictionary to try to make that extra clear. In Python, uniencode takes unicode and encodes it into

Re: Very slow in edit mode

2011-03-30 Thread Kee Nethery
By "graphic effects", I've found that the aqua blue default button on Mac OS X visually pulsates and that pulsation is a graphic effect that uses a significant portion of the CPU. Could be you have a graphic effect that you did not specifically create that is causing the slowness. Kee Nethery

Re: Live LiveCode event #16 (Wrapup)

2011-03-30 Thread Jerry J
On Mar 30, 2011, at 9:31 AM, Colin Holgate wrote: > On Mar 30, 2011, at 12:23 PM, Bob Sneidar wrote: > >> I have a better idea. Everyone get mad at Adobe and threaten to abandon the >> use of their codec unless they fix this. Yeah, that will work! ;-) > > > I have a better better idea, if peop

Re: Very slow in edit mode

2011-03-30 Thread Richard Gaskin
home wrote: >> Kev, on the off-chance that you may have exceeded the number >> of datagrids on a single card that anyone has tested, I would >> duplicate your stack and then remove one or more until things >> appear to function more timely. >> >> Just a thought! > > Thanks Joe, I deleted them one

Re: uniencode(utf8Text, "unicode") vs uniencode(utf8Text) vs uniencode(utf8Text, "UTF16")

2011-03-30 Thread Kee Nethery
The uniencode taking something and encoding it into unicode (rather than taking unicode and encoding it into something) explains why uniencode(utf8Text,"unicode") does not work. The second parameter is supposed to be what you have that you want converted into UTF16. Kee On Mar 29, 2011, at 5:

Re: lines of UFT16 text are broken?

2011-03-30 Thread Kee Nethery
Looks like when I uniencode(inputText,"UTF8") it makes the don't symbol character into two bytes. Correctly using the uniencode and unidecode functions resolves this issue, thanks! Kee On Mar 30, 2011, at 7:10 AM, Kee Nethery wrote: > > On Mar 30, 2011, at 5:58 AM, Trevor DeVore wrote: > >>

Re: uniencode(utf8Text, "unicode") vs uniencode(utf8Text) vs uniencode(utf8Text, "UTF16")

2011-03-30 Thread Bob Sneidar
See, that to me flies in the face of how most functions seem to work. It's understandable that in this instance you cannot expect the function to know or tell what you have in the first place, so passing that in as an argument appears necessary. But as someone else had suggested, what is really

Re: why one char in UTF8 (3 bytes) converted to UTF16 becomes 6 bytes?

2011-03-30 Thread Jan Schenkel
--- On Wed, 3/30/11, Kee Nethery wrote: > Dave it appears that you are > absolutely correct. The "language" in the uniencode() > function is what you have, not what you want it converted > into. > > I added a note to the uniencode function in the dictionary > to try to make that extra clear. >

Re: why one char in UTF8 (3 bytes) converted to UTF16 becomes 6 bytes?

2011-03-30 Thread Kee Nethery
> > Ideally, all the conversion would take place at the end-points: > open file for text read with encoding > open file for text write with encoding > put into URL with encoding > put URL into with encoding > > Internally, the engine would handle everything in UTF-16, :-) UTF-16 BE or

Re: Incredibly slow revlet in Win 7

2011-03-30 Thread paul foraker
Thanks, Jacque. On Wed, Mar 30, 2011 at 8:49 AM, J. Landman Gay wrote: > If he's stalling out before your page even loads, it isn't a revlet issue. > Sounds more like a DNS issue. What happens if you give him the IP numbers of > the URL instead of using the standard named URL? That would bypass D

Re: Incredibly slow revlet in Win 7

2011-03-30 Thread Bob Sneidar
Try whois. Bob On Mar 30, 2011, at 12:52 PM, paul foraker wrote: > Thanks, Jacque. > > On Wed, Mar 30, 2011 at 8:49 AM, J. Landman Gay > wrote: > >> If he's stalling out before your page even loads, it isn't a revlet issue. >> Sounds more like a DNS issue. What happens if you give him the IP

Re: Incredibly slow revlet in Win 7

2011-03-30 Thread J. Landman Gay
On 3/30/11 2:52 PM, paul foraker wrote: When I use Network Utility to ping the page, the IP address I get back refers to a generic Apache page. How do I find the IP address of the subdomain? There are several web resources, here's one I just found: -- Jac

Re: why one char in UTF8 (3 bytes) converted to UTF16 becomes 6 bytes?

2011-03-30 Thread Jan Schenkel
--- On Wed, 3/30/11, Kee Nethery wrote: > > > > Ideally, all the conversion would take place at the > end-points: > > open file for text read with > encoding > > open file for text write with > encoding > > put into URL with > encoding > > put URL into with > encoding > > > > Internall

Re: Incredibly slow revlet in Win 7

2011-03-30 Thread Mike Bonner
I think if the domain being hit is a virtual, you can't get there with the ip directly because apache doesn't know what domain you're asking for. That would explain why if you hit the IP it gives the generic apache page. Same thing happens lots of places. If I ping my domain on on-rev it returns

Re: Incredibly slow revlet in Win 7

2011-03-30 Thread Alex Tweedly
There probably is no different IP address for the sub-domain (or domain). For instance, loki.on-rev.com is 74.54.153.70 tweedly.org is hosted on loki, and tweedly.org (and www.tweedly.org) are also 74.54.153.70 (and all my other domains on on-rev are the same as well). when you send an http

Re: Incredibly slow revlet in Win 7

2011-03-30 Thread Alex Tweedly
whois gives you administrative info about the domain, its owner, and about which DNS servers should be used to resolve it. It doesn't actually give you the IP address currently in use for that domain or for any host within the domain. -- Alex. On 30/03/2011 21:04, Bob Sneidar wrote: Try whoi

Re: Incredibly slow revlet in Win 7

2011-03-30 Thread Bob Sneidar
Sorry misread your post. Bob On Mar 30, 2011, at 1:55 PM, Alex Tweedly wrote: > whois gives you administrative info about the domain, its owner, and about > which DNS servers should be used to resolve it. It doesn't actually give you > the IP address currently in use for that domain or for any

Re: Accessing customised columns in a datagrid

2011-03-30 Thread Peter Haworth
Hi Trevor, The snippet below is from a post you sent me about centering a checkbox in a column. The other method you thought might work involving the lockloc property of the column group didn't work. I found I could do this without defining a "cancas" as you had suggested. I got it working wi

Re: Accessing customised columns in a datagrid

2011-03-30 Thread Trevor DeVore
On Wed, Mar 30, 2011 at 6:08 PM, Peter Haworth wrote: > When I first tried this, I did not have the "+5" in the second line of code > - the checkbox moved to the right but it still wasn't centered. The "+5" > centered things OK. Any ideas why I need that "+5"? > I'm not sure. Do you need the +5

Re: Accessing customised columns in a datagrid

2011-03-30 Thread Peter Haworth
I didn't create a "canvas" - to be honest I couldn't figure out exactly what was involved so I tried what I understood :-) The +5 isn't a big deal, I was just curious in case 5 wasn't a constant and had to be adjusted depending on, eg, the column width. The current code seems to work OK even i

PDF Reader using LiveCode

2011-03-30 Thread Jesse Sng
Hi, I'm wondering if anybody has implemented a PDF reader using LiveCode for the iPad? I have some unique requirements for a personal app and it might be that I'll have to roll my own. 1. I used to use QT to open PDF on OSX and I'm wondering if there's a better way to do it especially with mul

Re: PDF Reader using LiveCode

2011-03-30 Thread stephen barncard
Preview works great for PDF files, and it's already installed. I like it better than the free adobe app and it loads twice as fast. On 30 March 2011 19:44, Jesse Sng wrote: > Hi, > > I'm wondering if anybody has implemented a PDF reader using LiveCode for > the iPad? I have some unique requireme

Re: PDF Reader using LiveCode

2011-03-30 Thread stephen barncard
or you could use the revbrowser control - and display in Livecode. On 30 March 2011 19:53, stephen barncard wrote: > Preview works great for PDF files, and it's already installed. > I like it better than the free adobe app and it loads twice as fast. > > > On 30 March 2011 19:44, Jesse Sng wrote

Re: PDF Reader using LiveCode

2011-03-30 Thread Jesse Sng
Thanks, but I'm still wondering about whether it is possible to display information in the status bar of the iPad? On Mar 31, 2011, at 10:56 AM, stephen barncard wrote: > or you could use the revbrowser control - and display in Livecode. > > On 30 March 2011 19:53, stephen barncard > wrote: >

Re: PDF Reader using LiveCode

2011-03-30 Thread stephen barncard
you mean the status bar on Safari on the iPad? On 30 March 2011 20:08, Jesse Sng wrote: > > Thanks, but I'm still wondering about whether it is possible to display > information in the status bar of the iPad? > > On Mar 31, 2011, at 10:56 AM, stephen barncard wrote: > > > or you could use the re

Re: PDF Reader using LiveCode

2011-03-30 Thread Jesse Sng
On Mar 31, 2011, at 11:11 AM, stephen barncard wrote: > you mean the status bar on Safari on the iPad? No. There's a status bar at the top of the iPhone/iPad and I did notice that LiveCode had a tutorial on how to show and hide it. But what I would like to do is to have an app display in that

Data Binding

2011-03-30 Thread Todd Geist
Thanks everyone for answering my earlier questions on adapting MVC to rev. I have moved on to one more. Although this one isn't really MVC. A couple of the frameworks I have used have a concept called "data binding". This usually means something along the lines of when one property changes anot

Re: PDF Reader using LiveCode

2011-03-30 Thread Scott Rossi
Recently, Jesse Sng wrote: > No. There's a status bar at the top of the iPhone/iPad and I did notice that > LiveCode had a tutorial on how to show and hide it. But what I would like to > do is to have an app display in that area. I don't think you can modify the status bar (at least not in LiveCo

Re: PDF Reader using LiveCode

2011-03-30 Thread Jesse Sng
On Mar 31, 2011, at 11:50 AM, Scott Rossi wrote: > Recently, Jesse Sng wrote: > >> No. There's a status bar at the top of the iPhone/iPad and I did notice that >> LiveCode had a tutorial on how to show and hide it. But what I would like to >> do is to have an app display in that area. > > I don

Re: Data Binding

2011-03-30 Thread Jerry J
On Mar 30, 2011, at 8:49 PM, Todd Geist wrote: > Thanks everyone for answering my earlier questions on adapting MVC to rev. > I have moved on to one more. Although this one isn't really MVC. > > A couple of the frameworks I have used have a concept called "data binding". > This usually means so

Re: Data Binding

2011-03-30 Thread Monte Goulding
On 31/03/2011, at 2:49 PM, Todd Geist wrote: > Thanks everyone for answering my earlier questions on adapting MVC to rev. > I have moved on to one more. Although this one isn't really MVC. > > A couple of the frameworks I have used have a concept called "data binding". > This usually means some

Re: Data Binding

2011-03-30 Thread dunbarx
Hi. I do not think there is a native message similar to the "nameChanged" or "selectionChanged", in other words, a "propChanged". This would track any modification to a property and trigger a handler. But the setProp and getProp control structures can handle this, I think. Craig Newman

Re: Data Binding

2011-03-30 Thread stephen barncard
Trevor Devore's GLX Application Framework does that exact thing, and calls it broadcasting.It's at least as innovative as his SQL Yoga or the Datagrid he designed for Runrev. However, I think you are talking about web-based concepts, and Trevor's framework is for the desktop builder. On 30 M

Re: Accessing customised columns in a datagrid

2011-03-30 Thread Peter Haworth
Trevor, I think I figured this out. I only need to add the +5 if the column containing the checkbox is the last column in the datagrid - anywhere else and the +5 pushes it too far to the right. I'm guessing this has something to do with the vertical scrollbar - maybe the width of the last colu