Re: how to totally make Kevin's day

2010-09-09 Thread Brian Yennie
FWIW, I still get emails from the beta program for Flash iPhone packager, and they are reporting that Flash apps have been getting approvals already today after many months stranded in the queue. I have a feeling Apple went back and "approved" a bunch in advance of this announcement. > On 09/09

Re: Mac app to cprop

2010-08-24 Thread Brian Yennie
One option would be to use shell() to tar + zip the file. Something like: get shell("tar -czf MyApplication.tgz MyApplication.app") put url ("binfile:MyApplication.tgz") into the tCustomProperty of this stack ... put the tCustomPropery of this stack into url ("binfile:MyApplication.tgz") get shel

Re: [OT] Can Of Worms (was Re: Running revlets on the iPad)

2010-07-01 Thread Brian Yennie
Amen, Scott. There are plenty of awful uses of Flash, but the general wave of outrage (and associated love for HTML5) has reached levels of ridiculousness. We'll be lucky if HTML5 reaches Flash-level performance and portability any time soon. And I'm sure advertisers will be more than happy to

Re: Abysmal Sound on Windows?

2010-06-05 Thread Brian Yennie
A bit ironic, but understandable at this point. HTML 5 may be the future, but the standard itself isn't even final yet. A bit hard to produce a cross-browser tech demo when all of the vendors are still in the middle of implementing a moving target. The -webkit stuff is more a reflection of thin

Google NativeClient / Rev

2010-05-20 Thread Brian Yennie
Another interesting deployment option on the horizon: http://www.gamasutra.com/blogs/MarkDeLoura/20100519/5195/Google_IO_2010__Native_Client_Unity__Chrome_Web_Store.php In a nutshell, this allows you to write C / C++ code to run in Chrome without any plugin. For those of us who don't code from sc

Re: Cloud computing: scalable DB

2010-05-19 Thread Brian Yennie
Andre, If you mean by this that the bottleneck is READ access for sending the emails, would replication be an option? You could set up a second slave DB which shouldn't affect WRITE much unless you are already saturated on that end as well. Then when you need that burst of data, just alternate

Re: Cloud computing: scalable DB

2010-05-19 Thread Brian Yennie
Warning, bad analogy on the way... That's kind of like observing a truck full of loose boulders ready to fly out the back. Isn't that what trucks are for, carrying heavy loads? Point being that yes, SQL is one means towards managing large amounts of tables, rows, data, etc -- but it still suffe

Re: OT: Adobe's New Anti Apple Ads

2010-05-17 Thread Brian Yennie
Exactly. As someone who has spent the last couple of years writing virtual worlds in Flash, I can say unequivocally that HTML 5 is nowhere near being able to duplicate that functionality. Not only is the feature set much smaller and browser support limited, but there are no tools behind it. And

Re: Check out Jerry's new videos -- REV to ObjC -> iPhone

2010-05-09 Thread Brian Yennie
Josh, Except, if a tool like Rev were generating the code to paste in, it would inevitably contain large portions of identical code across projects. Apple could easily ban any app that matches those very clear signatures. > > > On May 8, 2010, at 11:28 PM, "J. Landman Gay" > wrote: > >> Ru

Re: revMobile

2010-04-08 Thread Brian Yennie
Yup to all of that, Richard. I'm aware of some seriously high budget iPhone apps being done in Unity 3D right now, which is one of the borderline cases (it actually does output an XCode project, but there are other layers to the tool). Not that any developer is "unimportant", but we're talking a

Re: Open Socket

2010-03-30 Thread Brian Yennie
mple and also the docs on this. > Yes, > I want to use Rev as a Server. > > I send another email with detail. kindly see that. > and correct that plz. > > Rev is on Server Side > JADE is on Client Side > > Regards, > SHANI > > On Wed, Mar 31, 2010 at 12

Re: Open Socket

2010-03-30 Thread Brian Yennie
Shani, Do you want Rev to be *client* or *server*? If you want it to be the server (with a Java client) then you need to look at the "accept" command: accept connections on port 6800 with message "serverConnect" on serverConnect tSocket read from socket tSocket for 1 line ... end serverCo

Re: Interesting discussion on iPad content

2010-03-30 Thread Brian Yennie
Definitely a valid concern, although if it's truly 15 seconds that just seems excessive. I would think just a couple seconds would work, especially if it's a decent looking splash screen and you can actually perform some legitimate loading while it displays. I don't see any reason why it would h

Re: Interesting discussion on iPad content

2010-03-30 Thread Brian Yennie
I wonder if a starter version of RevMobile would be in order - i.e. - Shows a Rev splash screen - Must be a free app That would seem to allow people to "test the waters" with a nice app for $0 down, and then if they had something worth selling they would need to purchase the full RevMobile. >

Re: Deleting Data Woefully Slow

2010-03-25 Thread Brian Yennie
I'd be surprised if you could do much better. A tad maybe, somehow, but I don't think there is another hidden Rev function that will work any further magic. If you need to make another major speed jump, I'm afraid you would need to look at your data itself -- can you index it, can you operate on

Re: Deleting Data Woefully Slow

2010-03-24 Thread Brian Yennie
Testing semantics aside, I definitely agree with your conclusions. Repeat for each performs awfully well for text operations if you can encapsulate your logic in a single pass. One additional method to consider... have you tried using split / combine to turn the data into an array, something li

Re: Deleting Data Woefully Slow

2010-03-24 Thread Brian Yennie
Mark, This seems highly data-dependent and contrary to logic to me. In my tests: put line 1 to -2 of tData into tData1 delete line -1 of tData delete last line of tData All perform about twice as fast as using "repeat for each". The first was about 10% faster than the next two, which makes sens

Re: AW: OT: locking software to one specific machine?

2010-03-04 Thread Brian Yennie
While this thread is alive, I've long been curious what the criticisms would be of the following scheme, for a product with low to medium security needs. This does assume that you require an internet connection for registration, but that seems to be a generally acceptable requirement these days.

Re: Project Euler

2010-02-27 Thread Brian Yennie
Alejandro, For me the double-clicking doesn't work at all, but submitting a new solution is no problem. Poor Andre didn't know what he was getting himself into, but... Any chance Andre you could add a simple "edit" button on the front page instead of the double click? Maybe that would help. >

Re: an annual calendar somewhere?

2010-02-25 Thread Brian Yennie
According to the ncal docs, the country code has nothing to do with language, just Gregorian dates: -s country_code Assume the switch from Julian to Gregorian Calendar at the date associated with the country_code. If not specified, ncal tries to guess the

Re: Project Euler

2010-02-25 Thread Brian Yennie
Good stuff! I particularly like this project, because it allows for a combination of clever coding AND pure math. The best problems surely require both. It also depends what "level" of computation you force yourself to contain in you code. For example, Rev has a sqrt() function, but what if you

Re: RunRevLive.10: 72 hours left to save

2010-02-25 Thread Brian Yennie
I probably shouldn't touch this one with a 10-foot (100-foot? 100-meter?) pole, but... Perhaps the best solution for everyone would be if Rev just offered up some combination of refund or store credit. We certainly don't need to be debating the role of force majeure in this case, but some sort

Re: Project Euler [SPOILER #3]

2010-02-24 Thread Brian Yennie
f the number 600851475143 ? > > > > On Tue, Feb 23, 2010 at 11:04 AM, Brian Yennie wrote: >> I'm pretty proud of this one for #3... SPOILER ALERT SPOILER ALERT... scroll &g

Re: [ANN] WeCode Euler

2010-02-23 Thread Brian Yennie
in a database =) > double clicking is a funny business sometimes. > > by the way, fill the comments with the problem proposition next time, if not > some personal comments on your approach! :D > > > > On Tue, Feb 23, 2010 at 4:00 PM, Brian Yennie wrote: > >> Aweso

Re: [ANN] WeCode Euler

2010-02-23 Thread Brian Yennie
Awesome, I already submitted one =). Double click isn't working for me, but submitting was smooth! > Hello Folks, > > After a really fun morning solving math tricks with Mark and Brian, I > decided to give revlets a try. WeCode Euler is revlet for testing, recording > and exploring solutions for

Re: Project Euler

2010-02-23 Thread Brian Yennie
Oooh, oooh! In all seriousness, it would be fun if someone compiled a set of different correct solutions to these problems. What an incredible way of showing people's different coding styles in Rev. (my solution to #2 after the break) put 0 into tot put 1 into pre put 2

Re: Project Euler [SPOILER #3]

2010-02-23 Thread Brian Yennie
I'm pretty proud of this one for #3... SPOILER ALERT SPOILER ALERT... scroll down if you want to see. Great site find, Andre!! put 0 into total repeat with i=1 to 100 repeat with j=1 to 100 if (i=j) then next repeat add i*j to total end re

Re: FileTypes and Creators

2010-02-11 Thread Brian Yennie
Ray, One approach would be to wrap your own archive around Rev's compress() function, i.e. put compress(file1Data) into file1Compressed write (the length of file1Compressed)&":" to file "myZip" write file1Compressed to file "myZip" ... put compress(file1000Data) into file1000Compressed write (th

Re: Reading/Deleting Last Line Of File

2010-02-10 Thread Brian Yennie
// use the detailed files to get the file size end filelength No need to get all flustered =) - Brian > > > On Feb 10, 2010, at 11:26 PM, Brian Yennie wrote: > >> Jeff, >> >> This line: >> >>> put the length of url "file:myfile.txt"

Re: Sorting question

2010-02-10 Thread Brian Yennie
Craig, Yes, the random function is called for each item to assign it a sort value. My guess as to why using a larger number in random(n) is as follows; If you use random(3) there is a high chance that two items will be assigned the same value. In this case, the sort algorithm may preserve their

Re: Reading/Deleting Last Line Of File

2010-02-10 Thread Brian Yennie
Jeff, This line: > put the length of url "file:myfile.txt" into tEnd Loads the entire file into memory in order to get its length. - Brian ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: Words Indexing strategies

2010-02-10 Thread Brian Yennie
> Yes, this is correct and should work fine, but how could i write in the > word index a range of article where a word appears consecutively: > baboon:1934,2345,2346,2347,2348,2349,2350,2351,2352,2567,3578 If this were your format, you could compact to something like: baboon:1934,2345-2352,2567,35

Re: Words Indexing strategies

2010-02-10 Thread Brian Yennie
Alejandro, The first step for this would likely include creating an "inverted" index. This means you store something like: monkey:1,34,3827,21314 Where the word being indexed in "monkey" and the numbers that follow are article IDs. Using this information it is pretty trivial to implement AND /

Re: Rev for Linux (was Re: iPadding around?)

2010-02-03 Thread Brian Yennie
One possibility for RevBrowser would be to build an alternative using WebKit (aka Chrome, Safari engine). That would allow for the same browser engine on all 3 platforms, instead of locking down projects to the lowest common denominator (i.e., IE). It would certainly support Linux as that is the

Re: on-rev queries

2010-02-02 Thread Brian Yennie
Although not pretty, you could possibly create a timer which just issues a useless query every 15 seconds or so: on keepAlive executeSQL connectionID, SELECT "1" send "keepAlive" to me in 15 seconds end keepAlive > Well I've discovered in my experience that ALL SQL servers have a default >

Re: Question on RevMobile

2010-01-21 Thread Brian Yennie
I received it by email and accessed it directly. Brian Yennie wrote: http://www.runrev.com/newsletter/january/issue85/newsletter1.php?id=NW085S38885 Thanks. Good to see they've finally gone public with that. I'd read the newsletters more often if I could find them more e

Re: Question on RevMobile

2010-01-21 Thread Brian Yennie
Richard, http://www.runrev.com/newsletter/january/issue85/newsletter1.php?id=NW085S38885 Mike Kerner wrtote: I haven't tried this, but I have some folks here who have iPhone Touches. So, are we going to be able to deploy for them as well? The current shipping Rev engine will not run on iPh

Re: evenodd fillRule?

2010-01-20 Thread Brian Yennie
Yes, that =). I think he's referring to the linear artifacts in the "background" of the graphic (grey and purple regions on the right and left). Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Richard Gaskin wrote: Brian Yennie wrote: Has any

Re: evenodd fillRule?

2010-01-20 Thread Brian Yennie
Interesting. Do you mind sending me a screenshot off-list of how it looks on your end? It does seem to be some sort of rendering issue, as I've seen the artifacts disappear while editing a group before. Looks good: crisp, clear lines throughout, very clean rendering. I even used the point

Re: evenodd fillRule?

2010-01-20 Thread Brian Yennie
Interesting. Do you mind sending me a screenshot off-list of how it looks on your end? It does seem to be some sort of rendering issue, as I've seen the artifacts disappear while editing a group before. The original graphic is a v1 SWF =). Brian Yennie wrote: Has anyone had success

evenodd fillRule?

2010-01-20 Thread Brian Yennie
Has anyone had success using the evenodd fillRule for complex (say 5000+ points) graphics? When I do, I start to get many horizontal line artifacts: go stack url ("http://fi.s.s3.amazonaws.com/fillRule.rev";) - Brian ___ use-revolution mailing list

Re: an interesting challenge

2010-01-14 Thread Brian Yennie
I believe the message was encoded using the following compression algorithm: function compressMessage tText if (tText = "secret message") then return empty else if (tText is empty) then return "secret message" else return tText end compressMessage Therefore, the answer is "secret message",

Re: Apple tablet + Rev

2009-12-24 Thread Brian Yennie
I would think it depends on the specs. If the tablet "merges" the ability to run OS X apps and iPhone apps on the same machine, then we'd be in business. Or perhaps there is some sort of compatibility layer that Rev could be adapted to. If it's just an iPhone with a bigger screen, we're pro

Re: Slideshows in iRev

2009-12-19 Thread Brian Yennie
If you don't mind messing with a little Javascript, it could be as simple as this: http://http:// www.himalayanacademy.com/slideshows/templates/slideshow.irev?path=/ resources/lexicon/images/backgrounds/¤t_slide=13\' '), 5000)"> This would go to the next slide in 5 seconds after the current

Re: Safari caches revlet

2009-11-16 Thread Brian Yennie
One common technique if you want to force a new version to be loaded is to use a "cache busting" URL to the Revlet in your HTML. Just add a query string to the end, and change it to reflect a new version. myrevlet.rev ===> myrevlet.rev?v=1.0 ===> myrevlet.rev?v=2.0 > etc. From then on, w

Re: reStructuredText in RevTalk ?

2009-11-10 Thread Brian Yennie
Alex, The "usual" approach would be to strip ALL tags, while possibly leaving some "whitelisted" tags behind. As you suspect, it would be a monumental task to consider all possible HTML messes a person could create, but the whitelist approach works fairly well. It won't of course take car

Re: Re-2: Off-Line revlets?

2009-11-02 Thread Brian Yennie
Try: window.location.href I believe this should work for all browsers. Hi, i already tried that solution. It works without problems under Firefox here under Windows. But under IE8 i get no value back for "document.location.href;". Maybe due to security settings. I do not know. But tha

Re: Dispatch-Sending keyDown

2009-10-26 Thread Brian Yennie
Well I did say *if* Rev is going to be strict. I have no idea whether it should be =). But yes, I would say send and dispatch should follow the same rules here. On the second part... amen. Fair enough. But then we should insist that "dispatch" not be allowed to "send" system messages. And

Re: Dispatch-Sending keyDown

2009-10-26 Thread Brian Yennie
This is probably highly unnecessary, but I found it interesting to imagine: on keyDown pass keyDown to this stack end keyDown A "pass" with a target =)! The way I rationalize it is along your line of thinking, Jacque. Basically I see a system message as something only the engine can cr

Re: Dispatch-Sending keyDown

2009-10-26 Thread Brian Yennie
The way I rationalize it is along your line of thinking, Jacque. Basically I see a system message as something only the engine can create. As soon as you use "send", you are creating a custom user- level message like any other. What you have sent is NOT a system message any more, it's just s

Re: How to filter a big list

2009-10-19 Thread Brian Yennie
I would suspect that the leading "*" is causing the most slowdown. That is going to force the filter command to search the entire line every time, since the "['-]" portion could be anywhere. Switching to SQLLite could work, but you are going to have to completely reformat your data. If you

Re: storing a stack as a customprop

2009-10-17 Thread Brian Yennie
Peter, Are you sure you are including the "URL" keyword? RIGHT: set the storedStack of stack "updateList" to URL ("binfile:"&filepath) WRONG: set the storedStack of stack "updateList" to ("binfile:"&filepath) "binfile" instead of "file" doesn't change things. Still don't get the actual stack

Re: 3D in Revolution Needs Your Help

2009-10-05 Thread Brian Yennie
Lynn, Perhaps it would be worth re-thinking the founders formula based on how far the product is from release. Hearing that a Mac release only "compiles" tells me that the product is more like an early alpha at this point than a beta. Don't get me wrong - I'm sure the work to date is a co

Re: Emailing a Rev file

2009-09-27 Thread Brian Yennie
Perfectly valid opinion vs. the feature, but really? Personally, if I had this issue with someone and their suggestion was to switch out of Gmail, I'd probably be inclined to tell them to stop emailing me. YMMV. Hi Jim, You're right, but one shouldn't have to do that. I'd rather encourage

Re: Printing a series of numbers

2009-09-11 Thread Brian Yennie
Jerome, Would it work to make each page a separate print job? Then you keep sending print jobs until one fails. The next day you just cancel the last failed job. Something like: Print "5" Print "6" Print "7" FAIL Next day... Print "8" That way you are not worrying about detecting "out of

Re: [OT] Recover Files From OS X User Account

2009-09-11 Thread Brian Yennie
You might want to give Knoppix a try: http://luhman.org/blog/2009/07/13/knoppix-recovery-mac-mini-crash I just recently used Knoppix to recover a Windows laptop and it was a real lifesaver. Hopefully you can just march right into those folders since Linux won't bother trying to respect your M

Re: on-rev nomenclature

2009-08-27 Thread Brian Yennie
Seems like the xTalk spirit would say something like: set the isbuffering to true set the isbuffering to false put the length of the outputbuffer replace "me" with "you" in the outputbuffer send outputbuffer There would be some interesting possibilities if you could just address "the buffer" a

Re: [OT] Re: [ANN] tRev's new 'decoder' now showing...video is up!

2009-08-25 Thread Brian Yennie
ug or a tShirt. Best, Jerry Daniels Watch tRev - The Movie http://reveditor.com/trev-the-movie On Aug 25, 2009, at 7:19 PM, Brian Yennie wrote: Jerry, I was honestly lukewarm about this at first as a heavy user of "full" debuggers, but I'm definitely warming up to it. Fact is,

Re: [OT] Re: [ANN] tRev's new 'decoder' now showing...video is up!

2009-08-25 Thread Brian Yennie
Jerry, I was thinking more of an inline image than the Rev "dot" next to a line. It would occupy a line of its own. Doesn't make much of a difference to me, but seemed like an alternative to the concerns about terminology. For example: on mouseUp put 1 into someVar BREAKPOINT #13862

Re: [OT] Re: [ANN] tRev's new 'decoder' now showing...video is up!

2009-08-25 Thread Brian Yennie
Jerry, I was honestly lukewarm about this at first as a heavy user of "full" debuggers, but I'm definitely warming up to it. Fact is, that about half the time I use a debugger and half the time I just litter my scripts with "put" statements. This is a nice middle ground approach. With tha

Re: [OT] Re: [ANN] tRev's new 'decoder' now showing...video is up!

2009-08-25 Thread Brian Yennie
Off the cusp idea -- what about just making "breakpoints" completely visual in tRev? Perhaps use an image with an arrow and some sort of useful icon? That way you'd maintain the use of actual breakpoints for all of the reasons you outlined, but just give the user something tRev- specific to

Re: Syllabic division of words

2009-08-22 Thread Brian Yennie
ists.runrev.com/mailman/listinfo/use-revolution --- Brian Yennie QLD Learning (310)-367-7364 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription pr

Re: Syllabic division of words

2009-08-22 Thread Brian Yennie
Randall, OK, well let's carry on from there. Are you familiar with this project? http://www.research.sun.com/knowledge/papers.html Something similar in xTalk would be pretty darn cool, I would think. Especially if it were to index and search the web =). See, we can have a fruitful discussio

Re: Syllabic division of words

2009-08-22 Thread Brian Yennie
Randall, You seem to have a great thirst for striking down the state of technology, without actually contributing much to it, nor (as far as I can tell) understanding much about it. Here's an idea -- how about just discussing your ideas instead of chastising anyone who fails to grasp your

Re: lineoffset doesn't find empty lines

2009-08-16 Thread Brian Yennie
to find the one for my specific task ;-) On 16 Aug 2009, at 18:51, Brian Yennie wrote: offset( (the lineDelimiter)&(thelineDelimiter) ) ? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsu

Re: lineoffset doesn't find empty lines

2009-08-16 Thread Brian Yennie
I would think that technically, it should work with wholeMatches = true. Otherwise, with wholeMatches = false, it should return nothing. I based this on consistency with the "normal" string logic that: empty = empty (TRUE) empty contains empty (FALSE) With that said, it sounds like lineOffset

Re: Cross Platform Fonts

2009-08-11 Thread Brian Yennie
Apologies if this has been covered before. Would one option be using image labels created at a higher resolution than export snapshot (which will get you screen resolution -- 72 DPI)? For example, create your label in Photoshop (or any other tool of your choice) at 300 DPI. Then use that im

Re: pixel locations of selection in RevBrowser

2009-08-10 Thread Brian Yennie
Richard, FWIW, this seems to be the Javascript class you'd need: http://www.webreference.com/js/column12/trmethods.html HTH I need to know the pixel locations of the bounds of range of selected text in a RevBrowser pane. I don't necessarily need the horizontal locations, but the vertical

Re: A Slightly More Complex revLet Question

2009-08-09 Thread Brian Yennie
Len, FWIW, I would recommend going the PHP route (or any server side language). That way you will never have to worry about a firewall, and won't have to maintain any sort of database connectivity from inside a browser. Do revLets support ODBC? You can just say something like: put url "h

Re: revlet saves txt file

2009-08-08 Thread Brian Yennie
= $_POST["pref1"]; $pref2 = $_POST["pref2"]; ... // write the prefs data to a file ?] Hope that gets you a bit closer. Le 08-août-09 à 09:48, Brian Yennie a écrit : Yves, I assume you mean "PUT" command (not POST). Does your host give you FTP access? As for PH

Re: revlet saves txt file

2009-08-08 Thread Brian Yennie
Yves, I assume you mean "PUT" command (not POST). Does your host give you FTP access? As for PHP, yes, you could probably write a simple PHP script -- not sure what you mean by "within rev". You would write the PHP script in any text editor, and save it to your server. HTH Hi list I'v

Re: [ANN] tRev Feature Friday Videos!

2009-08-08 Thread Brian Yennie
Nicolas, Considering it is pre-release software and apparently you have only had it for an hour, it seems a little unnecessary to flame it on this list. Perplexingly as a two-time returning customer of GLX and GLX2. Surely you could have contacted the author, or RunRev support, or simply

Re: [script optimization challenge] Multi dimensional array filtering

2009-08-06 Thread Brian Yennie
Malte, Here is a quick example of what binary search can do. It's a bit of work to maintain the sorted data, but the speed is impressive if you have very large data. If you are not familiar with binary search (forgive me if you are), it is very intuitive -- it searches like you might sear

Re: [script optimization challenge] Multi dimensional array filtering

2009-08-05 Thread Brian Yennie
Malte, Beyond the ideas already presented, the only thing I can think of - and this would be a bit of work - is that if there are particular fields you know you will want to filter on, you could maintain a *sorted* copy of dgdata. For example, if you had a copy of dgdata sorted by name, y

Re: Website not allowing revlets

2009-07-24 Thread Brian Yennie
One option if you just want "cheap" file hosting of any file type is Amazon S3. It's not free and you won't be able to run any server side scripts, but you can't beat the pay-as-you-go pricing. If you just want a couple gigabytes of storage and a a couple gigabytes of bandwidth every month,

Re: web app scalability

2009-07-22 Thread Brian Yennie
Well, I guess I assumed. And you know what they say about assuming... Anyone that can confirm either way? It appears to me that it ought to be an Apache plugin with some other proprietary stuff going on for integration with the IDE, but I definitely can't prove it! Brian Yennie

Re: web app scalability

2009-07-22 Thread Brian Yennie
Disclaimer: I have only worked with Rev in the past as a CGI, so this is not from first-hand experience; however, I do have a lot of experience with web apps in other languages. Here is how I believe Rev will stack up: 1) Since Rev is now an Apache plugin, this means it runs inside the web

Re: Load images at proportional size

2009-07-06 Thread Brian Yennie
Josep, I think the key here is that remote files are loaded as binary by default, whereas local files are text by default. Thus I think you need to look at the URL, and if it is a local file, then make sure the protocol is binfile. Filename property works regardless because images will al

Re: [weblet] How can a webLet communicate with the hosting html page?

2009-07-06 Thread Brian Yennie
Perhaps one can experiment with a Javascript method such as this: http://danielmclaren.net/2008/04/expanding-resizing-a-flash-swf-using-javascript It would seem that all this would require would be a proper "resizeStack" message being sent to Rev.

Re: Load images at proportional size

2009-07-05 Thread Brian Yennie
Josep, Does either of these work better for you? set the fileName of img img_card to tURL OR put url ("binfile:" & tURL) into img img_card Hi Mark, Before test your new code I restart Rev and begin again checking all. If I drag from the website all is fine while (of course) the image hav

Re: Creepy

2009-07-01 Thread Brian Yennie
Couldn't this be accounted for by the idea that your email address is in OTHER people's address books that have willingly shared them using the Friend Finder tool in Facebook? We seem to be assuming that Facebook is automagically digging into your address book, when it could just be finding

Re: Reducing image file sizes

2009-05-18 Thread Brian Yennie
tally, utterly untested but hopefully helpful =) You said that you need to find the original size -- does Rev not open high resolution images at the correct size? Brian Yennie wrote: If you're up for the programming headaches involved, one way to deal with very large images is to cut them up

Re: Reducing image file sizes

2009-05-18 Thread Brian Yennie
If you're up for the programming headaches involved, one way to deal with very large images is to cut them up into tiles. For example, cutting each image into 4 tiles can saving them in JPEG format can be considerably smaller than the original image. I believe the effectiveness would depend

Re: Computing the age of a person?

2009-05-14 Thread Brian Yennie
LOL, I told you I was permanently damaged!!! On May 14, 2009, at 4:58 PM, Brian Yennie wrote: function le_chevalier tGender,tReal_age return 39 + offset(tGender, "m") * (tReal_age - 39) end le_chevalier I think that might say that all fema

Re: Computing the age of a person?

2009-05-14 Thread Brian Yennie
I think the scripting competition permanently damaged me... clearly this is a one-liner! function le_chevalier tGender,tReal_age return 39 + offset(tGender, "m") * (tReal_age - 39) end le_chevalier function le_chevalier tGEner,tReal_age if tGender = "f" then return min(39,tReal_age) return

Re: Quoted or unquoted literals

2009-05-12 Thread Brian Yennie
Nah, I'm frequently off by at least a few milliseconds, possibly even a tick or two. Brian Yennie wrote: I'm a bit skeptical that any such difference actually exists. Both the short and long forms should map to the exact same compiled code. Theoretically the long form would take

Re: Quoted or unquoted literals

2009-05-12 Thread Brian Yennie
I'm a bit skeptical that any such difference actually exists. Both the short and long forms should map to the exact same compiled code. Theoretically the long form would take longer to parse / compile the first time, but we're talking about the parsing of individual characters -- something

Re: Scripting competition

2009-05-11 Thread Brian Yennie
Clearly I have a problem. Key features include never initializing variables (let alone declaring them), loads of obscure string handling hacks to cram everything into fewer variables, and overall headache- inducing clutter. You can actually use this one with 1 parameter, or pass 2 for a list

Re: Scripting competition

2009-05-11 Thread Brian Yennie
In short, the number gets too big -- for example, if you are working with 32 bit integers, anything over 2^32 is out of range and will "roll over" or other such wonkiness. Now that folks have posted some solutions that apparently work, can someone explain why using a simple algorithm doesn

Re: Scripting competition

2009-05-11 Thread Brian Yennie
Graciously submitted. I believe this will eventually fail, because it uses naive "carry the 1" logic, but seems to match up through fib(300) at least. function fib n put 0 into thisNum put 1 into nextNum repeat n-1 put 0 into tCarry put empty into tSum if (length(nextNum)

Re: Math issue, isn't it?

2009-05-11 Thread Brian Yennie
Agree on the mathPrecision value. While it is true that floating point values are an issue in any programming language, Rev should NOT be failing on simple comparisons with two decimal places. Computers are limited in floating point math, but they are perfectly capable of handling 2 decimal

Re: [ANN] First On-Rev based CMS and Blog system available.

2009-04-22 Thread Brian Yennie
Andre, Cool stuff, great to see! Hi Folks, I think I am the first to build a simple CMS and Blog around the new On-Rev technology. You can visit it at: http://andregarzia.on-rev.com/blog.irev The system is flat file based, so just by dropping a text file onto a special folder makes a new p

Re: Valentina DB 4.1 Introduces Groundbreaking SQL Feature

2009-04-22 Thread Brian Yennie
Ruslan, Very interesting and congratulations on this new feature! Can you comment on how it compares to Oracle's "START WITH ... CONNECT BY"? That is the only comparable feature I've seen, and of course requires paying a high price for Oracle. Of course now Oracle owns Sun which owns MySQ

Re: convert to scientific notation

2009-04-20 Thread Brian Yennie
ger and smarter i had an equasion that converted a number to scientific notation without counting digits. Used the power "^" function somehow. -Original Message- From: "Brian Yennie" To: "How to use Revolution" Sent: 4/20/2009 5:31 PM Subject: Re: c

Re: convert to scientific notation

2009-04-20 Thread Brian Yennie
I figure you are confused. Example: 2,098,000 = 2.098 x 10 ^ 6 No 10th roots involved, in fact you can just count digits. Not confused by what i mean. How do i get the nth root of a number? -Original Message- From: "Brian Yennie" To: "How to use Revolution" Sen

Re: convert to scientific notation

2009-04-20 Thread Brian Yennie
Randall, I think you are confusing two different concepts. 10^2 = 100, not 2^10 = 100. What you want is something like this: Step 1) 10^x = 100 Step 2) log 10^x = log 100 Step 3) x log 10 = log 100 Step 4) x = log 100 / log 10 In short, you need to use logarithms and you'll get a formula wher

On-Rev: from the outside looking in

2009-04-20 Thread Brian Yennie
Had a thought. Dangerous, I know. To me the power of On-Rev is two things: 1) Opening up server side scripting to Rev users that wouldn't otherwise go there and 2) Bring xTalk to server-side developers in general These are both worthy tasks, but I think it's worth differentiating betwee

Re: On-Rev: We've listened

2009-04-16 Thread Brian Yennie
Very exciting to see this released. Just two thoughts: 1) The $499 deal is nice, but I'm hoping there will be some free option out soon. I'd love to start playing (and have no problem installing an Apache module on my own server), but can't budget $500 with no idea if I'll really want to us

Re: illegal creativity?

2009-03-21 Thread Brian Yennie
been sued for breach of a software user agreement. I cant wait to hear how often this blight has been brought down apon your small business. Come on. Is this a joke? -Original Message- From: "Brian Yennie" To: "How to use Revolution" Sent: 3/21/2009 1:2

Re: illegal creativity?

2009-03-21 Thread Brian Yennie
Randall, Beside your questionable grasp of the law, you are making a straw man argument. Even if "reasonable man" arguments worked as simply as you imagine, it wouldn't follow that everything in a EULA other than copyright is unenforceable. Believe it or not, licensing agreements cover th

  1   2   3   4   5   6   7   >