Re: list help

2007-11-05 Thread Maximilian Nyman
cfdump var=#getUnusedIPs('192.29.22.2,192.29.22.6','192.29.22.0','192.29.22.10')# cffunction name=getUnusedIPs returntype=array cfargument name=ipList type=string required=true/ cfargument name=rangeStart type=string required=true/ cfargument name=rangeEnd type=string

Re: Why would this query not return the correct data?

2007-10-14 Thread Maximilian Nyman
Considering that your doing a select distinct, the correct output should be 1, 2, 4, 6 and not 1, 1, 1, 1, 2, 4, 6 as you first stated. So it looks like you're getting the very first value 4 times. Try to scope the output and see if that helps: cfloop query=get_days

Re: Running an exe file without CFEXECUTE

2007-09-28 Thread Maximilian Nyman
Do they have CreateObject-Java also disabled? Otherwise you could execute using Java (java.lang.Runtime.exec). But I don't think I quite understand what you want to do though. You want to run a presentation exe file on the hosted webserver? Who will see that if it's running on the webserver?

Re: Running an exe file without CFEXECUTE

2007-09-28 Thread Maximilian Nyman
Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On 9/28/07, Maximilian Nyman [EMAIL PROTECTED] wrote: Do they have CreateObject-Java also disabled? Otherwise you could execute using Java

Re: File permission problem, java vs. coldfusion

2007-08-18 Thread Maximilian Nyman
And you can, just omit the filename from the path. A File object in Java doesn't have to be a file in the traditional sense, it could just as well be a directory. var myFileDir = THE PATH TO THE DIRECTORY var myFile = CreateObject(java, java.io.File).init(myFilePath) if( myFile.canWrite() ) {

Re: Generate Random Number 1000 - No Duplicates

2007-07-25 Thread Maximilian Nyman
You don't actually need to use the StructKeyExists though I would take what Russ said and rewrite the function to this: function getRandomNumberArray(length, count) { var min = 1 + repeatString(0, length - 1); var max = repeatString(9, length); var uniquer = structNew(); while

Re: java unzip :: verify file

2007-05-17 Thread Maximilian Nyman
cftry cfset zipfile=CreateObject(java, java.util.zip.ZipFile).init(zipFileName) / cfcatch type=any cfdump var=#cfcatch# / /cfcatch /cftry That should throw a ZipException (and dump it) if the Zip file is corrupt /Max On 5/18/07, AJ Mercer [EMAIL PROTECTED] wrote: cffile does not crash

Re: java unzip :: verify file

2007-05-17 Thread Maximilian Nyman
()) { fileList = ListAppend(fileList,entry.getName()); } } message = invalid LOC header (bad signature) This kills jRun so I can't catch it in ColdFusion On 5/18/07, Maximilian Nyman [EMAIL PROTECTED] wrote: cftry cfset zipfile=CreateObject(java, java.util.zip.ZipFile

Re: java unzip :: verify file

2007-05-17 Thread Maximilian Nyman
FYI for the list. It turned out that the issue AJ got was a Java bug for ZipFile. It turns out that ZipFile doesn't handle corrupt zip files very well - It throws an InternalError which will just kill JRun. :S So, I updated my ZipVerifier to use ZipInputStream instead of ZipFile, which will

Re: defeating offline form posts

2007-05-08 Thread Maximilian Nyman
But the only thing I have to do to get around that is to hit the live form, do a View source, get the hidden values and update my local form with those hidden value(s). On 5/9/07, Ken Wexel [EMAIL PROTECTED] wrote: When I ran into this problem previously, I'd set a value into the user session