Magnification

2017-03-24 Thread Vokey, John via use-livecode
I am working on a stack that has reduced images on a card, but I want the user 
to have the ability to magnify those images (at least the part they are 
hovering over) as they hover over them.  But, not the card images, but the real 
higher resolution images stored in separate files.  I suspect there some among 
you who have done this: I am seeking the code in a bit of a rush.


"It is hard to free fools from chains they revere." - Voltaire
--
Dr. John R. Vokey




___
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


Random topic: What script font do you like/use?

2016-09-21 Thread Vokey, John
I use SourceCodePro in all my programming IDEs (LiveCode, R, Matlab, Octave, 
...).  It is a very clean monospaced font, and comes in a wide variety of 
weights.

> On Sep 21, 2016, at 3:33 AM, use-livecode-requ...@lists.runrev.com wrote:
> 
> Message: 7
> Date: Tue, 20 Sep 2016 18:31:29 -0700
> From: "Jeanne A. E. DeVoto" 
> To: How to use LiveCode 
> Subject: Random topic: What script font do you like/use?
> Message-ID: 
> Content-Type: text/plain; charset="us-ascii" ; format="flowed"
> 
> I've used Andale Mono by preference, but I don't have the bold, and 
> so on versions of LC after 5.x, bolding for comments and keywords 
> doesn't show up in the script editor. (Bah.)
> 
> I liked it because it was:
>  1) clean-looking with a good x-height
>  2) has easily distinguishable lowercase l, capital I, and number 1, 
> and zero and O
> 
> I thought about just buying the bold, but I've been experimenting 
> with other fonts. I tried Verdana for a while-it's not monospaced, 
> but fairly wide and very clean-looking-but it turns out that I prefer 
> monospaced fonts better for reading code. Maybe just because I'm so 
> used to them that non-monospaced fonts look weird in that context. 
> Source Code Pro is appealing.
> 
> -
> 
> So...
> 
> What fonts do you like best for code?
> Or does everybody just fall back on Courier? ;-)

--
The trouble with quotes on the internet is that sometimes they are attributed 
to the wrong people. -- Benjamin Franklin

Dr. John R. Vokey
Chair
Department of Psychology





___
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 with unusual input devices

2015-11-16 Thread Vokey, John
Craig.  This looks to be quite useful, but as I don’t read German, it is hard 
to tell.  I have some very unusual USB devices that I would love to use with LC 
on my mac.  Currently, I am stuck with the manufacture’s proprietary software.

  How does Service USB Plus detect the usb devices?  Does it require dlls or 
the equivalent?

--
Please avoid sending me Word or PowerPoint attachments.
See 

-Dr. John R. Vokey

> On Nov 16, 2015, at 6:48 PM, use-livecode-requ...@lists.runrev.com wrote:
> 
> I have used the "Service USB Plus" from http://www.bkohg.com 
> 
> 
> A pleasure to use. Comes with a framework for LC, as well as other platforms. 
> Mainly good for I/O control with external gadgetry. If you wanted to automate 
> an alarm system for your house, or create a disco controller, this is perfect.
> 
> 
> Craig Newman
> 

___
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

externals on Windows

2015-09-08 Thread Vokey, John
I normally use Livecode for OS X, but I have a device that is controlled from 
Windows.  I would like to build an interface to the device to work with 
Livecode on Windows, and to do so, I would need to build and external that 
connects with a DLL to toggle to read the inputs from the device.  I know 
nothing about writing externals for Livecode on Windows.  Are there any 
tutorials available?

--
“I love deadlines. I love the whooshing noise they make as they go by.”
― Douglas Adams, The Salmon of Doubt
--
Vokey, John
vo...@uleth.ca


___
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: New chunks

2014-03-12 Thread Vokey, John
As they are unicode “words”, why not: wurd?

put the 2nd wurd of “word word” into naturalword.

Just a thought.

(Now ducking and running because this email is obviously about cheese).

--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

-Dr. John R. Vokey
___
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: randomly order a list

2013-05-23 Thread Vokey, John
Shuffling is more complicated than commonly thought.  A properly uniform 
shuffle is given as follows:

function scramble x -- scramble lines or items in a row
  put the number of lines of x into z
  if z = 1 then put the number of items of x into n
  else put the number of lines of x into n
  repeat with i=n down to 2
put random(i) into k
if z=1 then put item k of x into t
else put line k of x into t
if z=1 then put item i of x into item k of x
else put line i of x into line k of x
if z=1 then put t into item i of x
else put t into line i of x
  end repeat
  return x
end scramble

On 2013-05-23, at 4:56 AM, use-livecode-requ...@lists.runrev.com wrote:

 Good idea, Jacques.  How about this?
 
 command shuffle @rLines
sort rLines by random( 4294967295 ) -- note:  2^32-1
 end shuffle
 
 -- Dick
 

--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

-Dr. John R. Vokey




___
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


bluetooth and LC

2012-03-14 Thread Vokey, John
All,
  I am completely naive on this, but as I am getting a new portable EEG device 
for my lab that communicates by bluetooth, I thought I would ask whether any of 
the many genius coders on this list know how to read the raw data from a 
bluetooth device from LiveCard?  The machine comes with software, but would 
prefer to handle it on my own within LC.
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

-Dr. John R. Vokey




___
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: Why him does not use a natural language for programming?

2012-02-23 Thread Vokey, John
I always enjoyed the ambiguity of the title of one of James Watson's books: 
Avoid Boring People as to why natural languages should be avoided in 
programming, not because they are inherently bad, but because they require 
setting too large of a context to render most statements clear.  OTH, I find 
the abstemiousness of some who abjure statements such as x = 10 (in BASIC, 
Fortran, et al.) because they are, allegedly, inherently ambiguous to be just 
silly (cf. C, Pascal, R programmers, et al.).  Context *is* everything.
___
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] PCI cards (Richmond Mathewson)

2011-10-26 Thread Vokey, John
Two possibilities, then.  He could send his zip disks to me, and I could save 
the files to, say, dvd.  Or, I could send him a functioning usb Zip, and he 
could save them himself.  I am sure I have other functioning usb Zip drives 
around (there was a time when I had them installed in every Mac tower I 
ordered).  Let me know.


On 2011-10-26, at 8:52 PM, use-livecode-requ...@lists.runrev.com wrote:

 Hi problem is his drive is SCSI.
 
 Bob
 
 
 On Oct 26, 2011, at 1:38 PM, Vokey, John wrote:
 
 I have an Iomega Zip Drive plugged (usb) into my iMac running OS X 10.6.8, 
 and it mounts zip disks with no problem.  Do you not have an old usb Mac you 
 could use?
 



--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

-Dr. John R. Vokey



___
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 PDF - a cry for help

2011-09-30 Thread Vokey, John
The problem (success?) with pdf is that it is, uniquely, pdf: it is text, 
stylized text, bitmaps, vector graphics, and everything else.  Covert eps, for 
example, to pdf and all is fine (you can easily extract the eps from the pdf).  
Add a second pdf (or another eps) to that same file, and the eps becomes 
encoded pdf: the same is true for stylized text or anything else.  All of which 
is to say, you cannot easily extract a precise image from a more complex pdf 
file, especially one that is vector graphics in form.  You can, as Preview 
does, cut from a pdf an aspect of that pdf as a pdf image, but that pdf won't 
be the original graphic (typically).  You can also extract the text in a simple 
ascii form that, typically on Windows, loses all the ligatures (on the Mac it 
is usually more successful).  TeXShop, unlike Preview, for example, does try to 
extract eps from pdf, but fails if the encoding was other than eps--pdf.  
Preview just doesn't bother as it is not usually possible.  OTH, pdf--pdf 
always works, which is one of the principle reasons pdf dominates everywhere 
(except in that dark world of Windows).

I do most of my work in LaTeX, and most of my figures are vector graphics.  
That means an entire manuscript when compiled to pdf, including all the 
stylized text, tables and figures is *at most* a few hundred K.  I have books I 
have written in LaTeX that over hundreds of pages and figures are still at most 
a few megabytes when compiled to pdf.  Even one of those figures of those 
documents if converted from pdf to say, png, or tiff, or jpeg would be larger 
than the entire document in pdf.  My point is simple: if in pdf stay there: it 
is already the best format.


On 2011-09-29, at 6:56 PM, use-livecode-requ...@lists.runrev.com wrote:

 I find all of this somewhat tantalizing, but the only way I've found to make 
 a PDF document useful in what I'm doing is to take a screen shot of it and 
 then paste or import it as an image into the other application. Though I do 
 this mostly in MacDraft, I should imagine that the same technique can be used 
 in LC, since I often use MD as a method of transitioning different kinds of 
 images into LC. Of course I'm interested in what you see in a PDF; not what 
 else there might be there, of which I know nothing. I don't understand all of 
 this parsing of data from or in a PDF.
 
 Joe Wilkins

--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

-Dr. John R. Vokey



___
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