Hi AJ - maybe dougs post can help you out:
http://www.dougboude.com/blog/1/2007/02/Just-What-IS-a-Service-Layer-Anyway.cfmand
nic tunney post has good comments:
http://www.nictunney.com/index.cfm?mode=entryentry=C91C0FAE-65B8-F252-79CAFB0050E8666B
On 05/11/2007, AJ Mercer [EMAIL PROTECTED] wrote:
Hi there
In an application I have a page where a user can select how long an event goes
- i.e. 30 minutes, 45 minutes, 60 minutes etc.
In the MySQL database that I have two fields a starttime and a finishtime.
Currently I have the following sql to update the database
UPDATE tbl_bookings
SET
dateAdd() function.
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_c-d_25.html#1102869
On Nov 5, 2007 6:07 AM, Toby King [EMAIL PROTECTED] wrote:
Hi there
In an application I have a page where a user can select how long an event
goes - i.e. 30 minutes, 45
First problem is your SQL shows you are setting both the start and finished
times with the same form field.
Second which still pertains to your SQL, if bookingID is an integer field
then your where clause should be without the single quotes.
Third, you need to calculate the finish time from the
Hi there
Almost have it working
cfset finishdate = #CreateODBCDateTime(form.startdate)#
cfoutputDate is: #dateformat (finishdate, DD-MMM-)#br /
Time is: #timeformat(finishdate, hh:mm:ss)#br /
strong#DateAdd('h', 1, finishdate)# /strongbr /br /
New finish date is: #dateformat (finishdate,
CFImage cannot read take a filefield like CFFile can (for upload)...
However, CFImage source attribute CAN accept a binary blob type object.
Theoretically, you can get this directly out of the FORM data without
saving it to the system. If you forgo the CFFile upload portion, you
MIGHT be able to
when you execute a function like this
#DateAdd('h', 1, finishdate)#
you are not changing the value of finishdate .
That's why finishdate isn't changing and, as mentioned above, you need to set a
new variable, or reassign the old one, like this
cfset newFinishDate = DateAdd('h', 1,
You might
as well just upload it, then use CFImage to resize and OVERWRITE the
uploaded file.
I agree... that seems to be the best route. Nice to have the image tools,
however.
Rick
-Original Message-
From: Ben Nadel [mailto:[EMAIL PROTECTED]
Sent: Monday, November 05, 2007 7:42
memory image manipulation
That'll be something I'll have to check out!
Thanks!
Rick
-Original Message-
From: Mark Mandel [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 04, 2007 5:43 PM
To: CF-Talk
Subject: Re: Question about writeToBrowser image action...
Also handy if you
I would like to create a list of IP addresses, let's say, 192.29.22.0 to
192.29.22.255 and then with the list of IPs I already have of valid users in
the same range, search through and find ones that don't match the range.
For example, I would like the code to search through 192.29.22.0 to
Robert,
I don't know how to do this offhand, but you can convert IP addresses to
a single big integer number. What you could do is figure out the start
IP and end IP numbers, then do a simple FOR loop. For each loop
iteration, you could take that number and convert it back to an IP
address and
Jayesh,
Here is the stacktrace when we get the error. What I have found that somewhat
works though is to change the language to englishx from english. That seems to
keep the collection from failing while indexing.
Error,jrpp-279,10/24/07,06:46:05,cxContent,There was a problem
executing the
thx!
-Original Message-
From: Ben Nadel [mailto:[EMAIL PROTECTED]
Sent: Monday, November 05, 2007 9:44 AM
To: CF-Talk
Subject: RE: list help
Robert,
I don't know how to do this offhand, but you can convert IP addresses to
a single big integer number. What you could do is figure out the
192.29.22 http://192.29.22.0/ is constant. 0 to 225 is not.
Make an array? append 0-225 on the end of 192.29.22 and then do your
checks/show the list of what's available?
~Todd
On Nov 5, 2007 9:44 AM, Ben Nadel [EMAIL PROTECTED] wrote:
Robert,
I don't know how to do this offhand, but you
Hi. I have a bunch of text in a db table that has multiple occurances
of this pattern:
testId67Text more text more text testId49Text more text testId54Text more text
How can I get all the numbers from it? i need 67,49,54.
I know it need regex. But I need help.
Thanks,
K
I just got a notice from Amazon.com that Parts 2 and 3 of the CF8 WACK
are being delayed -
Part 2 is scheduled to arrive between 11/29 and 12/1.
Part 3 is scheduled to arrive between 12/28 and 12/31
This represents almost a month's delay!
I did a quick look at BN.com and they're showing
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
In my applications, I tend to upload the original into one directory and
keep it there, then resize and drop the resized image into the directory
where it will be normally accessed. While this would obviously not work in a
case where the volume of unsized uploads would cause disk storage problems,
Use the number character class.
cfsavecontent variable=test
testId67Text more text more text testId49Text more text testId54Text more text
/cfsavecontent
cfset numbers = reMatch([[:digit:]]+, test)
cfdump var=#numbers#
On Nov 5, 2007 9:30 AM, Web Exp [EMAIL PROTECTED] wrote:
Hi. I have a
Looks great. This could solve a lot of issues we are wanting to address.
On 11/1/07, Paul Sizemore [EMAIL PROTECTED] wrote:
Can you use ISAPI Rewrite at http://www.helicontech.com/ ? We've got it
running on IIS.
Paul
-Original Message-
I have a site that needs to bypass the
but you can convert IP addresses to a single big integer number.
Exactly, and there is a function to do this in CFLib.org:
http://www.cflib.org/udf.cfm?id=733enable=0
And if you're familiar with regExp, see this one too:
http://www.cflib.org/udf.cfm?id=1075enable=1
--
I don't know how to do this offhand, but you can convert IP addresses to
a single big integer number. What you could do is figure out the start
IP and end IP numbers, then do a simple FOR loop. For each loop
iteration, you could take that number and convert it back to an IP
address and check it.
Use the number character class.
provided that there are no other sort of numbers in the field.
If yes, see CF_REextract here:
http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm
You can test it here:
Thanks Ray...
Ok... I guess I should have clarified that I am using CF MX7, so I
cannot use reMatch function.
Also, what I am looking for is to find a list of numbers between the
strings: testId and Text in this pattern:
testId67Text more text more text testId49Text more text testId54Text
more
Earlier this year (at a different company) I created a script that would
run a windows dos command that would return a computer name and other
information by IP address across a cooperate LAN. I was able to run
this command with cfexecute, parse out the computer name and display it
on the top
Hi all
I have an application which I have been working on for a little while.
Basically the application displays different output according to times. i.e.
when a booking with a personal trainer has less than 5 minutes to go the
display of remaining time is highlighted.
I was wondering if it
I have an application which I have been working on for a little while.
Basically the application displays different output according to times. i.e.
when a booking with a personal trainer has less than 5 minutes to go the
display of remaining time is highlighted.
I was wondering if it might be
Custom CAPTCA applications. On-the-fly resizing.
--Ben Doom
Rick Faircloth wrote:
What would be the possible use(es) of the writeToBrowser image action?
Rick
~|
Get the answers you are looking for on the ColdFusion
You can do an
refind(text, \d+, 1, all)
refind in text digits starting at position one find all
This will return an array of structs with keys pos and len. Pos is the
start position, and len is the length. You can then use mid() to grab them.
--Ben Doom
Web Exp wrote:
Thanks Ray...
Ok... I
That's exactly the system of maintenance/use I had settled on, James.
And, yes, it's gd to have the original that a client will ultimately
need and not be able to find. ;o)
I'm going to setup folder structures that will handle all the versions I will
need for a site, such as:
- Original
Hi guys,
I would say this is a bug in the CF implementation. You may want to log it
as such.
--
Gary Gilbert
http://www.garyrgilbert.com/blog
~|
ColdFusion is delivering applications solutions at at top companies
around
Ok.. I am hoping someone can point me in the right direction here..
I will simplify my example here to more easily demonstrate my problem.
I have two tabs using Cflayout.
Lets call them PREFS and SUBSCRIPTIONS.
PREFS TAB.
This tab allows you to edit two inputs
Primary Email Address
Secondary
try: tracert with the IP.
ie: tracert hostname for the IP or tracert IP for the host name
-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Monday, November 05, 2007 11:40 AM
To: CF-Talk
Subject: Getting a computer name by ip address.
Earlier this year (at a
I'm trying to do something similar as well, but trying to merge database
content into a PDF form then generate 1 large PDF with multiple pages.
Is this possible with the new tags? When I tried using cfpdfform
action=marge on a directory of PDF's. They were all blank.
James Davis
Software
I am reading up on mirroring our MS SQL server.
What I have read you can setup a second server with a second installation of MS
SQL. The licensing allows for this also so you don't have to buy two copies.
Now you can mirror from one server to the other.
Now my question is say you primary
Likea so...
cfset txt = this is a test testId67Text more text more text testId49Text
more text testId54Text more text testId56Text /
cfset county = 0 /
cfset arrString = arrayNew(1) /
cfset nums = arrayNew(1) /
cfloop condition=refind('testId(\d+)Text', txt)
cfset county = county + 1 /
Nslookup?
-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Monday, November 05, 2007 11:40 AM
To: CF-Talk
Subject: Getting a computer name by ip address.
Earlier this year (at a different company) I created a script that would
run a windows dos command that would
I can't add the following WSDL file in DW CS3. Can anyone successfully add
this web service? Other *test* WSDL files work fine.
https://publookup.api.cj.com/wsdl/version2/publisherLookupServiceV2.wsdl
Thanks, Che
~|
Check out
Thanks Claude, those links were useful.
One question, how would I do a Regexp on an IP range of let's say 192.29.13.1
to 192.29.13.255?
I'm trying: CFSET blockedIPrange=^192\.29\.[1-9][1-9] from the second
example, but I'm a bit lost.
RO
-Original Message-
From: Claude Schneegans
After shaking many cobwebs loose I recalled (i.e. Googled with the right
search). The command I was looking for was nbstat. Thanks for the help.
;-)
~|
Check out the new features and enhancements in the
latest product release
If you make a request to a website without specifying a specific document
IIS will try to give you a default document. If the default document does
not exist, then IIS throws a 404 error and the request is never sent to
ColdFusion even if the default document has a .cfm extension. Does the same
Nope, nbtstat (I miss typed my first response).
I.E. nbtstat -A 10.104.96.102
~|
Enterprise web applications, build robust, secure
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation
To clarify, it depends on how you have things setup on apache server.
For example:
http://www.web-rat.com/test/
Throws a 403 Forbidden because I don't allow folder browsing. I believe
you can tell Apache to do something else instead via directives.
~Todd
On Nov 5, 2007 1:27 PM, Todd [EMAIL
Yes.
On Nov 5, 2007 12:45 PM, Michael Dinowitz [EMAIL PROTECTED]
wrote:
If you make a request to a website without specifying a specific document
IIS will try to give you a default document. If the default document does
not exist, then IIS throws a 404 error and the request is never sent to
I just do ping -a.
The -a says Resolve addresses to hostnames
-Original Message-
From: Orlini, Robert [mailto:[EMAIL PROTECTED]
Sent: Monday, November 05, 2007 11:18 AM
To: CF-Talk
Subject: RE: Getting a computer name by ip address.
try: tracert with the IP.
ie: tracert hostname for
Ian Skinner wrote:
Earlier this year (at a different company) I created a script that would
run a windows dos command that would return a computer name and other
information by IP address across a cooperate LAN.
You have several options depending on the setup of your network:
- nbtstat
-
On 11/5/07, Ian Skinner [EMAIL PROTECTED] wrote:
Earlier this year (at a different company) I created a script that would
run a windows dos command that would return a computer name and other
information by IP address across a cooperate LAN. I was able to run
this command with cfexecute,
I'm seeing some CSS weirdness between two servers, my local system and a
remote testing server.
Has anyone ever had an issue where the CSS associated with the ColdFusion
debugger, has affected the layout CSS for their site?
sas
--
Scott Stewart
ColdFusion Developer
SSTWebworks
Did you try action=merge? :)
On Nov 5, 2007 12:15 PM, James Davis [EMAIL PROTECTED] wrote:
I'm trying to do something similar as well, but trying to merge database
content into a PDF form then generate 1 large PDF with multiple pages.
Is this possible with the new tags? When I tried using
I do not speak from experience, but I believe you must have special DB
drivers set up with your CF data source which do the fail over for you.
~Brad
-Original Message-
From: Chad Gray [mailto:[EMAIL PROTECTED]
Sent: Monday, November 05, 2007 11:12 AM
To: CF-Talk
Subject: MS SQL
One question, how would I do a Regexp on an IP range of let's say
192.29.13.1 to 192.29.13.255?
I would try something like 192\.29\.13\.[0-9]{1,3} although this will
match 192.29.13.1 to 192.29.13.999 as well,
but if you are getting the IP from the HTTP request, there is no
possibility the
Don't do the refind() in the loop. Running it once with all specified
will return (you're right on this one) a struct of arrays. It will find
all of the matches (hence scope all :-P).
You then only need to loop over the results. Much more efficient.
Plus, OMG, you're using a condition that
I convert IPs to numbers anytime I deal with ranges. It makes it much easier
and more efficient to work with ranges. I don't mean that I convert them to
their actual decimal values, I just make sure each octet is 3 digits and
remove the (.)
It's much simpler than converting them to their decimal
So here's an interesting quirk. If I open a CF file via FTP or local
using CFEclipse, line numbers show up correctly. But, if I open the same
file using Adobe's RDS plugin, the line numbers don't show up.
I haven't tried SVN yet.
Any thoughts?
Rey...
Michael Dinowitz wrote:
If you make a request to a website without specifying a specific document
IIS will try to give you a default document. If the default document does
not exist, then IIS throws a 404 error and the request is never sent to
ColdFusion even if the default document has a .cfm
Hi there,
I need to build and print 4 reports and labels for one of my web applications.
I have tried cfdocument, but the reports didn't have the formats the users
wants and I couldn't print labels properly. I am thinking to try cfreport. Here
I got a few questions:
1. since the report
Hah crybaby! ;-)
I tried 'all' but it just throws an error on 6.1
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message-
From: Ben Doom [mailto:[EMAIL PROTECTED]
Sent: Monday, November 05, 2007 1:55 PM
To: CF-Talk
Subject: Re: Regex search
Chad Gray wrote:
I am reading up on mirroring our MS SQL server.
What I have read you can setup a second server with a second installation of
MS SQL. The licensing allows for this also so you don't have to buy two
copies.
Now you can mirror from one server to the other.
There are
1. How do I install the jar file on our server?
You need to upload the jar file to the server, and place it on ColdFusion's
classpath (/{cfroot}/lib/ will work).
2. The code you provided looks good and simple (which is what I'm looking
for!). Will it work with the OpenSMPP jar file, or
For #1: You can download the ColdFusion 8 Report Builder:
http://www.adobe.com/support/coldfusion/downloads.html
On Nov 5, 2007 1:59 PM, Jane zheng [EMAIL PROTECTED] wrote:
Hi there,
I need to build and print 4 reports and labels for one of my web
applications. I have tried cfdocument, but
I have the book SQL Server 2005 Unleashed. It is saying you have three
servers. You Principal Server, Witness Server and Mirror Server. The Witness
server is what decides when to switch over to the Mirror Server.
What about adding some code in Application.cfm so if I get a database error to
I am trying to write a controller for a project I am working on. I want to
pass it everything that it needs from the form page as hidden variables.
But I am not having much success in getting cfinvoke to work dynamically. I
believe the correct way to do this is by using cfargumentcollection. I
Hi,
I'm trying to get IIS (Windows XP) to read .txt files through CF, just
like .cfm or .cfml.
So I defined the same configuration for .txt extensions as for .cfm.
It works under CF 5, but with CF 7 all I get is an empty page.
Is there any other setting necessary in CF itself in order to get it
update your RDS plugin. this was fixed in a later release of that
particular plugin.
On Nov 5, 2007 11:15 AM, Rey Bango [EMAIL PROTECTED] wrote:
So here's an interesting quirk. If I open a CF file via FTP or local
using CFEclipse, line numbers show up correctly. But, if I open the same
file
Hi Jeff,
You could set up a listener and have it refresh the other tabs after the
update. Now since you are doing this all asynchronously you run the risk of
the user clicking on another tab before the refresh. You could however make
that one call synchronous by putting up a Saving Change mask.
Sorry..typo writing my email. Might be a case of the Mondays? :)
Yes, I used action=merge, NOT action=mArge.
Any other ideas?
James Davis
Software Engineer
Kaleida Systems, Inc.
-Original Message-
From: Todd [mailto:[EMAIL PROTECTED]
Sent: Monday, November 05, 2007 1:15 PM
To:
Claude Schneegans wrote:
I'm trying to get IIS (Windows XP) to read .txt files through CF, just
like .cfm or .cfml.
So I defined the same configuration for .txt extensions as for .cfm.
It works under CF 5, but with CF 7 all I get is an empty page.
Is there any other setting necessary in CF
Thanks Brad,
I just checked when you setup a database in windows's odbc data source
administrator. There is a check box when you are adding a new datasource for
Use the failover SQL server if the primary SQL server is not available. So
this check box must be available if the setup detects
Really? I thought that is what I was using in 6.1. I'm sure the docs
can set you straight on what syntax is correct.
Regardless, you are running the regex twice per loop, which is at least
twice as often as you need to. Even if you have to run it once per
loop, run it, store it, and check
For #1: You can download the ColdFusion 8 Report Builder:
http://www.adobe.com/support/coldfusion/downloads.html
Hi, the system requirements for Report Builder include:
Operating System: Windows 2000, XP , Server 2003, Vista
My coldfusion server runs Linux. So it seems the report builder is
Dump args before the cfinvoke and argumentCollection in the method and see
what's really getting in.
Adrian
-Original Message-
From: Rick Mason
Sent: 05 November 2007 20:55
To: CF-Talk
Subject: Dynamic cfinvoke
I am trying to write a controller for a project I am working on. I want to
You can build your reports on windows, and then deploy them to your Linux cf
server
The Builder creates cfr that you can justs drop into your webroot or
wherever you cfm files are.
On Nov 6, 2007 7:53 AM, Jane zheng [EMAIL PROTECTED] wrote:
For #1: You can download the ColdFusion 8 Report
The option is called 'returnsubexpressions' and valid values are true or
false. You can only return one instance of a match with refind() (and
possibly one instance of a sub expression match if you use parens in the
expression). To get more, you have to run the function again with a
different
So in Doug,s Wife, Man, remote controls, TV DVD story
He states the man is the Service Layer Object.
Are the remotes a facade?
Service Layers know how to manipulate objects
Facades hide complex processes
Is this getting close??
On Nov 5, 2007 6:32 PM, Nick Tong [EMAIL PROTECTED] wrote:
Hi
Tried this with CF8, stopped and started the ColdFusion 8 Application service
but I'm getting:
Server Error
Either the Macromedia application server(s) are unreachable or none of them has
a mapping to process
I ordered from Bookpool, and it's showing Part 2 11/07, and Part 3
12/07. Not sure what specific dates that actually means, but if I
recall the dates have changed from when I originally ordered. Looks
like the dates are consistent across houses...
I just got a notice from Amazon.com that Parts 2
my order at amazon.ca shows Nov 22 - Dec 07 as estimated delivery dates
after initial delay announced on Oct 16.
i guess i will get a new delay notice soon...
--
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com
~|
A facade is meant to simplify the interface to an underlying object (or set
of objects), or to reduce dependencies between the underlying objects and
the client of the facade. So in that sense, a Service Layer object may often
act as a facade. However, Service Layer is also a pattern in its own
yes it does - thanks Brian
On Nov 6, 2007 12:18 PM, Brian Kotek [EMAIL PROTECTED] wrote:
A facade is meant to simplify the interface to an underlying object (or
set
of objects), or to reduce dependencies between the underlying objects and
the client of the facade. So in that sense, a Service
Nope. Same deal. I went to the CF8 page, downloaded the Eclipse
extensions, uninstalled what I had installed and reinstalled the newly
downloaded extensions.
No line numbers. :P
Any ideas?
Rey..
Charlie Griefer wrote:
update your RDS plugin. this was fixed in a later release of that
try downloading from here:
http://www.cfreport.org/eclipse/ColdFusion_Extensions_for_Eclipse.zip
iirc, the version on adobe site had problems with a few things...
not sure if line numbers was one of them, though
i have rds configured only for localhost, but i can see line numbers no
81 matches
Mail list logo