Re: HTMLtext doesn't play well with CSS

2010-07-17 Thread Tim Ponn
OK...let me explain more fully...

Problem:

There are web geeks (myself included) who create and/or maintain web sites.  
www.historicalengine.com and www.grandvalleytractor.com are two of mine.  The 
creation is quite easy with all the drag and drop tools available out there.  I 
usually tweak (sometimes heavily, sometimes not so) the graphics or the 
resulting page code.  When it's finished, I turn the "keys" to the site over to 
whoever owns it.  Unfortunately, 99.9% of the time they are clueless to web 
geekery.  By the time you get to the "t" in "ftp", their eyes have glazed over 
and they're drooling...much the same as I look when an accountant utters more 
than 2 syllables to my engineeringness.  ;=)  So, when it comes time to update 
the site, they return to my doorstep.  Not a big deal if it's once or twice a 
year...but when it's a club site...or the site for a bowling league...or the 
like...I can get requests every day!  And the changes are, in these cases, dirt 
simple..."Could you put these latest scores on the site?" or "Here's this 
months newsletter!"

The solution I'm cobbling together:

In a sentence...Let them do it themselves.  When I create the site, I insert a 
comment (or many, if required..maybe one per bowling team...whatever) like 
"" someplace on a page.  My simple rev app contains 
a field and a button.  There's significant password protection, blahblah, going 
on that I don't need to get into here.  There's additional stuff going on 
also...win/loss percentages...rankings...blahblah.  But, the bottom line 
is...ANYBODY who can enter text and click a btn can update a page, or a range 
of pages or a portion of a page.  My app gets the url...inserts the text field 
at the "markers" I've left...then ftp's it back up to the site.  Simple.

Right now, it's just text, but I may add graphics later..jpegs, gifs, whatever.

Now, to clarify my original question:

I want the user to be able to change font sizes, make bold, italic, whatever.  
I also want them to have the freedom to turn some of the text into links, etc.  
When I try to use HTMLtext in rev, the results are not so good.  How do I 
improve it?  I mean, if I have to roll up my sleeves and just write it 
all...fine...but is there a wheel that somebody has created already out there?

I doubt it matters, but...17" MacBook Pro/Snow Leopard 10.6.4/Rev Enterprise 
4.5.0-dp-3

Thanks!



On Jul 17, 2010, at 8:30 AM, Jim Ault wrote:

> On Jul 17, 2010, at 5:05 AM, Tim Ponn wrote:
> 
>> Hello all!
>> 
>> I'm trying to use the HTMLtext of the contents of a field to modify a CSS 
>> web page, and it butchers font sizes and style.  Is there something other 
>> than HTMLtext that I should be using?
>> 
>> Thanks!
>> 
>> 
> HTMLtext is a subset of HTML tags that Rev uses to do formatting in fields.  
> It is not meant to be compliant with browsers, especially the modern day 
> versions.
> When you render the web pages, do you then run compliance checking?
> Very like you have quite a few conflicts, especially if the DOCTYPE is beyond 
> 1.0
> 
> The CSS javascript will silently at the first error and none of the other CSS 
> will get applied.
> 
> Your description of your process is quite vague, so it is difficult to be 
> more helpful.
> Do go to one of the many compliance checking sites, enter the url, and follow 
> the bouncing error messages, if any.
> 
> Also visit  http://quirksmode.org  to study the interpretation variations 
> that each browser.version uses.  The most variant is IE in its many versions.
> 
> Hope this helps.
> 
> 
> 
> Jim Ault
> Las Vegas
> 
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




Best Regards,

Timothy R. Ponn




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


HTMLtext doesn't play well with CSS

2010-07-17 Thread Tim Ponn
Hello all!

I'm trying to use the HTMLtext of the contents of a field to modify a CSS web 
page, and it butchers font sizes and style.  Is there something other than 
HTMLtext that I should be using?

Thanks!



Best Regards,

Timothy R. Ponn




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


Sudden Motion Sensor

2010-05-02 Thread Tim Ponn
Hello all!  It's been hundreds of years since my last post, but I've been 
lurking!

Does anyone here have a clue as to how to access the SMS output on a MacBook 
Pro?

Thanks in advance!



Best Regards,

Timothy R. Ponn




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


Re: Where's the file?

2008-12-23 Thread Tim Ponn

Hi Klaus,


No, but your files can be found INSIDE of the application bundle :-)

"the path of the folder containing the stack" is this one in a  
standalone on OS X:

../Name_of_your_standalone.app/Contents/MacOS/

Your text files can be found in this folder!
Right-Click on your standalone and select "Show contents" to check  
it out




Well,  I guess you can now tell that I am a relative newbie at  
OSX...only a couple years into it.  Having lived thru apple's change  
in system 7 years ago, I am VERY cautious about OS change.  So much of  
my perspective on OS X is still pre-OS X.


Thanks for the education!


You will have to take this into account when initializing your  
global variable:


...
put the filename of stack "Mainstack a.k.a. the standalone" into  
tFilename

set itemdel to "/"
if the platform = "MacOS" then
  delete item -4 to -1 of tFilename
else
 delete item -1 of tFilename
end if

global appFolderPath
put tFilename & "/" into appFolderPath

You get the picture :-)




YesI do something like...

global appFolderPath

on openStack
  set the itemDelimiter to "/"
  put (item 1 to -2 of the effective filename of this stack)&"/" into  
appFolderPath

  get url ("file:"&appFolderPath&"AllUserData.txt")
  if it is empty then
answer "Sorry, I can't find a user data file!" with "Oops!"
restoreUserData
get url ("file:"&appFolderPath&"AllUserData.txt")
  end if
  ...
  ...
  ...
end openStack

Eventually, I'll add in the other platforms


Thanks again!


Best Regards,

Timothy R. Ponn




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


Where's the file?

2008-12-23 Thread Tim Ponn

Hello all...

This strikes me as odd.  I frequently use text files as containers of  
data (prefs, and the like) in my stacks.  On openStack, I put the path  
of the folder containing the stack into a global so I can use it  
later.  Not a problem when I'm running as a stack...text files are  
created and modified as expected during use (I use get/put URL).


put "Whatever" into url ("file:"&appFolderPath&"HereIAm.txt")
get url ("file:"&appFolderPath&"HereIAm.txt")

When I open the text file later with a text editor, I see what I  
expect to see.


However, when I make a standalone app of the stack, I no longer see  
the text files in the folder.  Are these text files being set as  
"invisible" in the finder?


I'm running Enterprise 2.8.1 in OSX 10.5.6.



Best Regards,

Timothy R. Ponn




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


USB barcode scanner?

2008-11-29 Thread Tim Ponn

Hello!

Can anybody recommend a usb barcode scanner that I can get to work  
with rev?  I using rev 2.81 and a Mac.  I've got my POS app working  
nicely now and it's time for the next step...adding a scanner.


Thanks!



Best Regards,

Timothy R. Ponn




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


Moving a rev stack to the foreground

2008-11-18 Thread Tim Ponn

Hello!

I'm using rev 2.8.1 Enterprise edition to write an app.  Part of this  
app's function is to accept a drag/drop from another app.  The  
dragData is always text.  Here's a description of the interaction  
between the other app (FireFox) and mine:


FireFox is in the foreground
I select text on a web page
I drag it to my app (still in the background)
My app receives the drag/drop with no problems...but here's where it  
gets sticky...


My app then asks for a quantity.  The problem is, my app is still in  
the background, so the user has to click twice...once to bring my app  
to the front (make active) and another to click the "OK" button in the  
ask dialog box.


Is there a way to automatically bring a rev app to the foreground?



Best Regards,

Timothy R. Ponn


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


Re: Vector illustrations in Revolution

2007-05-24 Thread Tim Ponn


On May 24, 2007, at 12:41 AM, Stephen Barncard wrote:


Anybody up for a a DXF-to-Rev object translator?



The good news...I've got a project going that I call "chatCAD".   
Scenario: two engineers chatting on aim, yahoo, whatever...exchanging  
design ideas via a "whiteboard" of sorts.  However, the results from  
a typical whiteboard app is freehand/bitmap and not very usable in  
any CAD program when the "skill-pooping" session is done.  Besides,  
"freehanding" something drives most engineers nuts...we'd rather  
define endpoints of lines, etc., to achieve usable accuracy.  So,  
chatCAD will use a stripped down dxf-like document to exchange  
graphic ideas during the session and then be fully importable to a  
CAD program afterwards.  I will also (this is the "hopefully" part),  
make it 3D wireframe with help from Derbrill's "AnimationEngine".


The bad news...this is a spare-time project, so it's not likely to be  
complete anytime soon.


I can offer this...I've written many "DXF" utilities that we use in  
house to communicate between CAD and our home grown CNC micro- 
driller.  As a result, I've had to read, manipulate and write DXF  
files many times.  DXF file interpretation can get very ugly.  It's  
not as universal as you would think.



Best Regards,

Timothy R. Ponn



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


Re: Reading OSX mail attachments

2007-03-12 Thread Tim Ponn

Dave,

Thanks, but that didn't work either.  What I get now is a completely  
white image, and when I look at it's imageData it's zero length.



On Mar 12, 2007, at 11:23 AM, Dave Cragg wrote:


put base64Decode(theattachment) into image "myImage"





Best Regards,

Timothy R. Ponn



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


Re: Reading OSX mail attachments

2007-03-12 Thread Tim Ponn

Ken,

Yes, I do have the image in my rev stack set to the same as the  
original jpeg image..in this case 350 x 232.


For what it's worth, once I isolate (theAttachment), I also put  
base64Decode(theAttachment) into a field.  I then opened the original  
Pool Table.jpg with a text editor.  They look identical and they are  
the same length...well...the jpg file has 3 extra bytes, but I would  
attribute this to eof.


Because the slice of hash is about 1/16 the width of the image that I  
end up with (the balance being black), is it possible that  
base64Decode is actually hex, and not binary?  Maybe coincidence?


On Mar 12, 2007, at 10:51 AM, Ken Ray wrote:


On Mon, 12 Mar 2007 10:15:59 -0400, Tim Ponn wrote:


Hello,

Thanks for your help, but I'm still having problems displaying the
image correctly.  This snippet from the .eml file says it's base 64:

--FTG_BOUNDRY
Content-Type: image/jpeg; name="Pool Table.jpg"
Content-disposition: attachment
Content-transfer-encoding: base64

But, when I open the file within rev...strip out all the text ahead
of the attachment...strip out all the junk past the end of the
attachment...then set the image data of an image to
base64Decode(theattachment)...I get mostly a black image with a
sliver of hash on the left side.

I have got to be missing something basic here!


Do you know ahead of time the size of the image? Because before you  
set

the imageData of an image, you need to have the rect of the image be
correct otherwise you'll get garbage. I would suggest pumping the
base64Decode(theattachment) to a binary file called "Pool Table.jpg"
and then importing that image from disk (or set the filename of an
empty image to the file path).

Just my 2 cents,

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/



Best Regards,

Timothy R. Ponn



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


Re: Reading OSX mail attachments

2007-03-12 Thread Tim Ponn

Hello,

Thanks for your help, but I'm still having problems displaying the  
image correctly.  This snippet from the .eml file says it's base 64:


--FTG_BOUNDRY
Content-Type: image/jpeg; name="Pool Table.jpg"
Content-disposition: attachment
Content-transfer-encoding: base64

But, when I open the file within rev...strip out all the text ahead  
of the attachment...strip out all the junk past the end of the  
attachment...then set the image data of an image to base64Decode 
(theattachment)...I get mostly a black image with a sliver of hash on  
the left side.


I have got to be missing something basic here!


On Mar 9, 2007, at 4:52 PM, Brent Anderson wrote:


Hello.

I've done something similar with audio clips and those were in base  
64 format. A quick base64decode function call should do the trick.


Thanks,
Brent Anderson
Christa McAuliffe Space Education Center

On Mar 9, 2007, at 9:51 AM, Ken Ray wrote:


On Fri, 9 Mar 2007 09:55:32 -0500, Tim Ponn wrote:


Hello all,

I have a situation where customer orders come to me via email with a
photo attachment.  It occurred to me that I could use rev to  
create a

db front end that could be pointed at the appropriate mailbox folder
and then have it extract each message.  Then, each message becomes a
record in my db.

Extracting the data is a piece o cake.  Then I come to the
attachment.  Apple apparently uses a compression technique to store
the image (jpg, bmp, whatever) within each individual message.  Has
anybody fiddled with reading and displaying these attachments?  Any
thoughts?  Ideas?  Laughs? ;=)


Well, as a last resort you could leave it in Mail, and then use
AppleScript to get at the message and its attachments. Barring  
that, I
haven't had to read embedded mail attachments directly, but I'd  
assume

they are either BinHexed or AppleDouble encoded...


Ken Ray
Sons of Thunder Software, Inc.




Best Regards,

Timothy R. Ponn




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


Reading OSX mail attachments

2007-03-09 Thread Tim Ponn

Hello all,

I have a situation where customer orders come to me via email with a  
photo attachment.  It occurred to me that I could use rev to create a  
db front end that could be pointed at the appropriate mailbox folder  
and then have it extract each message.  Then, each message becomes a  
record in my db.


Extracting the data is a piece o cake.  Then I come to the  
attachment.  Apple apparently uses a compression technique to store  
the image (jpg, bmp, whatever) within each individual message.  Has  
anybody fiddled with reading and displaying these attachments?  Any  
thoughts?  Ideas?  Laughs? ;=)


Thanks in advance!

Best Regards,

Timothy R. Ponn


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


Re: Physical Screen Size

2007-01-19 Thread Tim Ponn

Mark,

I understand why folks set their screen res the way they do...I know  
someone who always sets it at the highest possible...never mind that  
it's nearly impossible to see the icons on their desktop without  
magnification!  ;=)


Here's my application and why it's important to me...

We designed and built an extremely accurate 3 axis cnc micro-driller  
about 7 years ago which is controlled by a HyperCard stack.  We use  
it in production to drill holes as small as .010" dia. through a  
variety of plastics with a guaranteed accuracy of .00025".  The "work  
area" is small, just 4" square...but it has served our needs  
perfectly.  In my stack, I represent the work area on screen in  
exactly the same size...WYSIWYG-in-extreme, if you will.  When the  
file is loaded, the pattern is displayed.  As each hole is drilled,  
the appropriate circle is "filled in" on the screen.
I've used Rev for about 5 years now, and am converting this stack  
into a rev app.  If we were only using it in house, no biggie, I  
would just tweak the display like I did last time.  But now we're  
thinking of building and selling these machines (with perhaps a 12"  
square work area and higher RPM drill head to allow for smaller  
drills) to others.


Now...it just occurred to me as I was writing this...a good work  
around may be to tweak it on my monitor until it's the same scale,  
then use my set resolution to recalculate and change size based on  
the resolution of the user.  In fact, I'm certain that will work.


Thanks for your poking, you got me to think!


Best Regards,

Timothy R. Ponn
ALPTEX, Inc.


On Jan 19, 2007, at 7:26 AM, Mark Schonewille wrote:


Hi Tim,

Normally, people set the screen resolution to a higher number  
because they want more to fit on their screen. They would be  
surprised to see that your application doesn't show more on screen  
despite a higher resolution, if you manage to do this.


I don't think that the actual screen size is of any importance.  
Sometimes, it could be useful to adjust an application to the  
screen resolution, e.g. if you are making a full-screen interface.  
The physical screen size has nothing to do with this.


So, why would you want to do this?

Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store  
software. Download at http://www.salery.biz




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


Physical Screen Size

2007-01-19 Thread Tim Ponn

Hello!

I'm working on a project and I would like to get the "physical"  
screen size of the system.  Is there a way to do this?  I see how to  
get many of the screen attributes...but as to physical siza...nadda.


A cheesy way to do this, I suppose, would be to display an object  
when the app is started up and ask the user to measure it and enter  
the measurement.  Based on that I could calculate the size of the  
screen.


Has anyone discovered how to do this?


Best Regards,

Timothy R. Ponn
ALPTEX, Inc.


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


Re: Communicate with stepper motors?

2006-09-01 Thread Tim Ponn

Marty,

I LOVE using steppers in machinery and fixtures around my company.   
You can use Rev very nicely to control them.  Here's the approach  
I've taken...


I prefer to use an existing controller.  I have a lot of experience  
with a particular brand called "SimpleStep" (www.simplestep.com).   
They are expensive, but I simply don't care.  One machine we designed  
and built years ago cost us about $15,000...$400 of which went for 2  
boards from this company.  This single machine has resulted in close  
to $250K of sales over the years.  I wouldn't care if the boards cost  
me 10x what they did.  They're solid...never skip a beat...are simple  
to use and have a very rich set of features.


Now, if you want a less costly controller (plus oodles more widget  
"stuff")...there is a new player that I've gotten some early release  
info from...you can find them at www.copelandelectronics.com.


If you prefer to write your own low level stuff and create your own  
controller...you're a better man (or...person) that I!  ;=)


On motors, I prefer Sanyo-Denki.  Dunno why...but I've never had the  
tiniest of problems with them.  You can find steppers at places like  
Jameco electronics...also a good source for cheap controllers and  
kits.  Just remember...as usual...you'll probably get what you pay for!


Now the fun starts...I've used Rev to control these boards via  
serial.  But, I prefer using sockets...so I get one of those Ethernet  
to Serial convertors (specifically "SitePlayer Telnet" from NetMedia)  
and use the Rev socket commands.  This allows me to control a few  
machines from a single app.  It's all personal taste from here...it  
really depends on the machine and the environment.


That's my 2 cents!  Hope it helps.


Best Regards,

Timothy R. Ponn
[EMAIL PROTECTED]


On Aug 31, 2006, at 1:08 PM, Marty Knapp wrote:

I was talking with a guy yesterday who said that using Basic you  
could use the printer port on Windows to talk to a stepper motor. I  
know pretty much nothing about robotics (or communicating through  
ports for that matter). Does anyone know if this is possible with  
Rev? I read through the docs and could see that one can read from  
and write data to com ports and LPT ports, but wouldn't a stepper  
motor just need electrical pulses sent to it?


I realize I'm revealing my ignorance to the world here, but any  
help would be appreciated.


Marty Knapp
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



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