I notice that <file "graphic.gif" />.<copy_file <file "copy.gif" /> /> doesn't give me a binary copy of the file. The data is converted from binary to unicode,...
I often get the comment that Water allows developers to mix user interface and logic which many believe to be a "bad thing". The example below shows a Water...
The following example shows how to clean up an HTML page and extract some information from tags. FYI, I needed this tonight to retrieve the product codes from...
To the Water community: This month with significant hoopla we are launching the latest versions of Water, ConciseXML and the Steam Platform. We expect to...
How do I get a new instance of a Java array that I can later use? I've tried: <set the_data= <<get_java_method "[Ljava.lang.Byte;" "new" "int" /> 100 /> /> ...
[This is not in direct reply to the message, but is an update on the status of this thread.] Hooray! In version 3.10.1, a utility has been made available to...
I've noticed that when I write code that uses Java classes for computing results that very often I have to *explicitly* use <to_string /> to convert the number...
Still re: double precision in Water. Here's an example using Java's DecimalFormat class. First, I set the DecimalFormat instance to a good number of decimal ...
At this point, what is the preferred way to find the length of a file? The length value is useful for telling Java how big a buffer I need to read a file into...
Hi everyone, Here's a quick example of a recursive method. -Andrew <!-------------------------> <!-- The Towers of Hanoi --> <!-------------------------> <!--...
I have been having fun with the <sort /> method. It has worked well for the small tests I've used it on so far! Also, I have messed with <access_rights />....
This version of the date/time utilities will put appropriate docs into the help system for each method. <!-- A few date/time formatting functions I use. I can...
[In an earlier incarnation of this, the docs did not match the actual method names] Here's the example with accompanying documentation: <!-- A few date/time...
Here's a program that takes a few basic commands from the Klingon programming language var'aq ( http://groups.yahoo.com/group/varaq- dev/ ), and translates...
... Here's a patch to make 'eval' take a string as a first argument. The string can contain less-than symbols. Use CDATA if you want to avoid more quoting of...
Here is an elegant design pattern that uses 'defclass' for creating a series of steps in a process. This is one way to implement a use case. Each step in the...
Roland had sent me his code example before posting it, and we went back and forth a few times to refactor it into a more natural Water form. The following...
The method below can be called like this: <get_folder a_path_string /> Example: <get_folder "C:/Documents and Settings/" /> This method uses several Water...
I wrote this Water program trying to do something with graphics in Water. I finally got the code to generate the correct sequence of characters, and sent...
... Yeah, I'd noticed that too. My main concern is that that time assumes full CPU utilization. I like Water for a lot of things, but a pure Water app wouldn't...
You can think of an HTML form as a human-readable description of an API (Application Programming Interface) for a method. It takes inputs which you can...
There are many techniques for designing high performance applications and services with Water. Multi-level caching, reducing network latency, and some...
I was able to get my data formatted the way I wanted without too much trouble, but I am sure this would take a while with a large XML object because I would...