Can anyone tell me of a way to generate thumbnails of web pages
from ColdFusion? A co-worker is asking for a personal project
he is working on (so I'm guessing that he is looking for a no/low
cost solution).
If you're on Windows this is a nitfy command line util that could be run
from
but why, i wonder do they do that?
i mean, you'd think that google has a guru of the regex
kind there in-house that could handle it so that those
are really TWO different addresses.
You can also stick arbitrary stuff on the end of your email address too:
in the case of nominet, you have to do it via their website
Not true:
$ whois -h whois.nic.uk google.co.uk
[whois.nic.uk]
Domain name:
google.co.uk
Registrant:
Google Inc
--
---
Badpen Tech - CF and web-tech:
Jorge,
will it work on a linux 64-bit OS?, exactly RHEL4
No, CF will not work on a 64-bit linux OS. I found out this helpful bit
of information only after building the server and installing CF...
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=baec9c0c
If you install RHEL4 in
Les,
1. What's the equal of TOP in mySQL?
LIMIT is the correct syntax, but you just had it in the place:
SELECT * FROM myTable ORDER BY myField LIMIT 10
2. At what point in the query is that actually evaluated?
Right at the end, after any WHERE/ORDER statements etc.
HTH,
Tim.
--
Will CF7 work on a 64-bit processor running with a 32-bit OS?
The answer is yes: you just have to run a copy of the installer where
the download hadn't aborted in the middle... Doh!
Tim.
--
---
Badpen Tech - CF and web-tech:
Quick question:
Will CF7 work on a 64-bit processor running with a 32-bit OS?
I have an AMD Opteron (64-bit) processor and am running Red Hat
Enterprise Linux ES 3 *in 32 bit mode*.
Yesterday, after fighting against it, I discovered that CF will not work
on a 64-bit OS: I was having the problem
But I'm still not sure of the size of the AJAX community, and how
large an audience we'd be talking for something like an AJAX book...
The AJAX community is growing daily, although I feel that term is rather
a misnomer. Maybe something like AJAX factions within the CF
community would be more
Joe,
use a clumsy workaround for testing which browser people are on
To make sure that all browsers can see Flash you have to use
non-standard HTML. Either that or if you really really want your HTML
to validate, you can use messy JavaScript to inject the HTML.
hoping ActiveX is enabled on
Why the heck should I care of ActiveX is enabled? IE needs ActiveX
for JavaScript to work?
No, but because the current version of IE doesn't support XMLHttpRequest
you have to use something like the following:
xmlhttp = new ActiveXObject(Microsoft.XMLHTTP);
So, without ActiveX you don't
Sean,
But 98% of all computers already have Flash and it behaves
the same on every machine. The HTML code needed to embed
Flash is simple, well-understood and supported everywhere.
Sure, I was just trying to balance out Joe's argument that you need a
clumsy workaround for getting AJAX
If IE requires ActiveX for XMLHttp, then you are kind of
screwed security wise (should you choose to use IE for Ajax
sites instead of an alternative).
But like I pointed out earlier: without ActiveX enabled you can't use
Flash on IE either...
Tim.
--
Right now using these functions I am getting unwanted
duplicate nested structs and arrays.
Make sure you var all variables you use in functions, *especially* when
you're using recursive calls, otherwise each time you change or
reinitialise one of the variables it will be a *global* change, not
Subject: Purpose of HTML tags at beginning of cfoutput in
classic.cfm debug page
What is the purpose of all the HTML tags?
I believe it's to catch the possibility that an error may have left
unclosed tags laying around that might interfere with the display of the
debug information, and
Afternoon all,
Has anyone had any success creating password-proteced ZIP files through
ColdFusion? I have a nice little java routine to create non-protected
ZIP files, but java doesn't support encrypting them.
I've tried using a number of external programs and had issues with them
all:
WinZIP
Wait two weeks :)
(that's all I'll say for now)
Argh! You evil evil man! That's like holding out a sweet to a kid then
pulling it back just as they reach for it... :(
Two weeks huh? I'll hold you to that... ;)
--
---
Badpen Tech - CF
http://tinyurl.com/
www.antiwrap.com
http://houseoffusion.com/tinyurl.cfm
Or there's a version I wrote a little while ago:
http://short.badpen.com/
There's a download for source there and it includes both a PHP and a CF
version.
Tim.
--
The following query is not allowed using my hosts version of MySQL:
You could do that with some nasty left join statements (untested):
SELECT cus.Customer_ID
FROM order_no AS ord
INNER JOIN customers AS cus ON (ord.Customer_ID = cus.Customer_ID)
LEFT JOIN users AS us ON (us.Customer_ID
Rick,
I understand that *currently* CFDirectory only has access to
my local system...what I'm talking about is developing a tag
that allows a user to specify a directory for upload the same
way we use CFFile now...
There will never be a time when cfdirectory or cffile will have
access to
my company is looking at Urchin (http://www.urchin.com/)
We use Urchin for all our stats needs. Highly recommended.
Tim.
--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
WHO IS THE EXTRA 1000 QUID FOR?
VAT? (value added tax (sales tax) for those outside the UK)
My guess is that those prices are exclusive of VAT, which makes things
even more expensive for non-VAT registered individuals/companies.
Tim.
--
Why do I need BOTH ?
This tells the browser what format to expect the content it receives in:
cfcontent type=text/html; charset=ISO-8859-1
And this tells CF how to process the current file (and hence is required
in *every file* where you need to specifiy a page encoding):
cfprocessingdirective
Victor,
I have a question regarding importing a csv file
This topic was covered only a week ago, so check out this thread for
some good info:
http://www.houseoffusion.com/cf_lists/messages.cfm/threadid=37522/forumi
d=4
Tim.
--
---
Badpen
I have a question regarding importing a csv file
This topic was covered only a week ago, so check out this thread for
some good info:
http://www.houseoffusion.com/cf_lists/messages.cfm/threadid=37
522/forumi
d=4
For anyone suffering from word-wrap-itis:
Is it possible to run 2 websites on a single CF server, and
for a user to have the same Jsession on both sites?
The easiest way would be to have the same application name in your
cfapplication tag on each site. Of course, both sites would also
share the same application scope etc too.
Tim.
Matthew,
I've built a webservice in .Net that I intend to
consume from CF. As I'm building it, I've noticed that the
.NET Web service's arguments are cached by CF - that is, if I
make a change to the .NET WS, then CF doesn't
realize it.
CF does indeed cache the webservice stub
Treat it as two lists. The first using Chr(13) or Chr(10) as
a delimiter, the second using ,:
The only problem you'll get with that is if the CSV contains a record
like the following (which is perfectly valid):
1,Banana,Long and yellow, with a slight bend
As CF list functions would see it,
2) Use the awesome Ostermiller utilities at
http://ostermiller.org/utils/CSV.html to actually parse the
CSV file
Hmm, excellent resource. One to bookmark I think! Cheers Dave.
Tim.
--
---
Badpen Tech - CF and web-tech:
Is there any advantage or disadvantage to naming these pages
with a HTM extension rather than a CFM extension? Is there a
speed penalty?
A .cfm file will *always* be passed to the CF engine, so even if there's
nothing for the engine to do, it's still got to break the page down etc,
so there
Asim,
I need to move all the valus in a into individual
Structure/Array Keys. so I can display them individually.
If you're using MX, check this thread:
http://www.mail-archive.com/dev@lists.cfdeveloper.co.uk/msg16596.html
Tim.
--
---
David,
cfset variableArray =
#listToArray(|153564587|0|SAT|FREEDMAN|||1|||10/17/2004|1
0/18/2004,
|)#
then use
#variableArray[1]#
#variableArray[2]#
#variableArray[3]#
#variableArray[4]#
and so on...
This is exactly what Asim tried to do without success -- the CF list
functions
Qasim,
listtoarray(replace(list, '||', '| |', 'All'), '|')
This wouldn't work because there is actually an empty element *before*
the 153564587 item -- your code only replaces empty elements in the
middle of the series and would ignore those at the beginning or end. Of
course you could simply
I am testing a site I switch from ACCESS to MySql and I ma
getting the following error.
ByteArray objects cannot be converted to strings.
For some reason the result of some MySQL queries (especially those using
MySQL date functions like DATE_ADD() and DATE_FORMAT()) is treated as a
binary
Just a point to note:
cfqueryparam ... null=#YesNoFormat(NOT Len(myvar))#
You don't actually need the yesnoformat() function call in there -- the
null= field takes a boolean value; a numeric value can be treated as a
boolean (any non-zero value is TRUE), and len() returns a numeric value,
so you
I'm still working a lot on CF5 and #NOT len(myvar)# doesn't work
then!You need to wrap it in a function.
OK, you win on that one...;)
I'll qualify: *In CFMX* you don't actually need the yesnoformat()
function call in there...
Tim.
--
---
So does anybody know of an FTP app with a GUI that will use a
key based auth scheme?
Yup, try WinSCP (SSH based): http://winscp.sourceforge.net/eng/
Tim.
--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
Ideally I'd want to work with a
language aware system such that I can change languages in
the cms to see the alternative version of the content in a
different language.
ShadoMX has multilanguage support at object level, so you only have one
site tree etc and can define multiple translations
1) Can anyone recommend an application that will manage a CF
Web Dev team and keep internal/external customer/clients
informed as to deadline extensions and reshuffling of project
priorities?
We've been using Basecamp for the last couple of months - it's a hosted
service but is very easy
Is there any way to get a list of currently running
page requests on the server so I can keep track or them?
You can perform a dump of the current stack trace, which will list
(amongst a big pile of other stuff) what's requests are currently being
processed by CF.See the MM technote about it:
This was where it started going wrong and needed casting to a
char type instead of a date.So long as you don't group on
the date field you should be ok.
This seems to be an issue with MySQL - it also appears sometimes when
you use the MySQL date functions.For some reason the query returns
Do you suppose this is a MyODBC issue or something deeper?
No, we develop/host on Linux and have the same issue.
--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD -
Thanks.I ran your script and sure enough, right now, it
says there are 99 users when it probably should be something
like 20.I'm not sure if I'm understanding you completely --
I'm thinking that I need to add to the following snippet that
already exists:
What are you actually trying to
Sung,
What happens is that at the end of the day (I run an intranet where
there
are about 200 peak users), around midnight, it still shows 80 or so
users
online!What do you think could be causing this?
Does the code you run to report on the user sessions run the code you
posted first?By this
One thing:
What you'll need to do is add *two* timestamps to each user -- one for
when they first accessed the system, and one when they last requested
a
page.Your 15 minute check should then use the difference between
these values to determine whether the user has been inactive for 15
Easy,
I was wondering if there is a way to list everything that is
stored into the Application scope
cfdump var=#application#
Also, is there another way to clear the application scope ?
cfset structclear(application)
Tim.
--
---
Badpen
Has anyone had much luck in accessing CF's session scope
directly from php?
You'll be struggling to share session data because it's all stored in
memory internally inside CF.A better option would be to use client
variables stored in a database, which can then be queried from PHP like
any other
AFAIK, it actually does more than validation and escaping
Yup, that's right -- I was just simplifying things a bit...:)
Tim.
--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
If a user is using the form and enter the value bla bla \n
bla bla \bla..
because he wants the \n or the \ it won't work.. I don't want
to used the \n as a break like with #Chr(13)##Chr(10)#
Use cfqueryparam - it'll correctly escape everything for you so you
don't have to worry about the \n
CFQUERYPARAM will validate the data. this script rips out ALL
harmful SQL statements that someone might try to include into
a URL or FORM field entry.
It doesn't just validate -- it will also escape any potentially
harmful characters, therefore nullifying any possible attack.
Tim.
--
Is there a MySQL equivalent to this newID() functionality?
With MySQL you can pull out one random row by using a combination of
ORDER BY RAND() and LIMIT, e.g.:
SELECT * FROM myTable ORDER BY RAND() LIMIT 1
Tim.
--
---
Badpen Tech - CF and
Before I go any further I thought I would make sure I am not
reinventing the wheel; has anyone done something like this
where it is generic enough to use as a template?
What database?I have just such a thing for MySQL that I can clean up
(i.e. remove project specific functionality) and post
What's your way to circumvent this problem?
If you're using MX, you can be a bit sneaky: because the list is an
instance of java.lang.String, you can use the methods of that class on
it, one of which is the split() method.This method will split a string
into an array on a given delimiter (which
How did you determine that you could use Java methods within
CF syntax?
There are numerous examples of doing that in MX.Another favourite of
mine is when looping through a query, you can use myQuery.last() to
check if the item you're on is the last record rather than setting an
external
Didnt attend CFFUN... what is He3?
A ColdFusion IDE based around Eclipse[1], developed by RichPalette[2], a
joint venture between R337 Consulting and Gestaltech Inc.[3].There
have been numerous articles and threads on CF-Talk about it [4][5].
Tim.
[1] http://www.eclipse.org/
[2]
My actual question was is there a quick (like the previous
function) way to get the actual directory
How about:
getDirectoryFromPath(getCurrentTemplatePath())
Tim.
--
---
RAWNET LTD - Internet, New Media and ebusiness Gurus.
WE'VE MOVED -
is it possible to run the application with the class file
alone ,i mean i will delete all the .cfm file ,there should
be only class files No, currently you must have the CFM files
available.The release of CFMX (Blackstone) will (?) provide the
ability to do sourceless installations of CF
When you look around Amazon.com, and show an interest in
something, there's always a part of the page that says
people who bought this also bought that
..
The solution I came up with uses two tables - the product table (guess
what that is?) and a product_link table.The product_link allows
Afternoon,
Has anyone written an example of modified preorder tree traversal
[http://www.sitepoint.com/print/hierarchical-data-database] for MySQL in
CF?I've done inserts and deletes (plus various selects) but I haven't
sat down to work out updates (moving a node from one parent to another)
yet,
Morning...
Is there any way that I can get hold of the data currently in the
CFHTMLHEAD buffer that will be output as the page is rendered/delivered?
Tim.
--
---
CF_CodingContest mode=judging newentries=false
Maze Solver -
i imagine because for utf-8 the BOM isn't strictly required
That's correct, it's not (there's no big- or little-endian
alternatives), but apparently for java to correctly read the file in as
double-byte the BOM must be there...Seems a little strange to me, but
there you go.
good catch.
Ta.:)
I've seen two cases resolved where this problem occurred, security was ok,
the user could telnet to the port and connect.Those two were resolved by
finding misconfigurations in one of the two host config files (/etc/hosts/,
/etc/sysconfig/network).
OK, you win.;)There was a
Afternoon all...
This morning I had need to restart CF on one of our boxes.Since the
restart I've been having a most un-fun morning.CF started refusing to
server up and CFM pages.In fact it seems that JRun was the culprit.
Basically, requests were being passed OK from the webserver to the CF
Nope, all network settings are OK.
Nothing else is listening on the JNDI port - I've even tried changing it
in the runtime/servers/default/SERVER-INF/jndi.properties and I still
get the same result.
Going through the possible causes listed when I try running the
connector:
o Server not running
Is there some kind of software
(preferrably cheap or free) that can actually handle the
mailing part in the background without slowing down CF?
We've written a mailing-list-manager type app here which allows the user
to send combined plain text/HTML emails to an opt-in mailing list.All
Any thoughts would be appreciated.
We've done this before as part of mail merges using CF_AveryRTF which
has been fairly successful.You can get the tag from the devex here:
http://short.badpen.com/?B295NO42
HTH,
Tim.
--
---
CF_CodingContest
If you're using isNumeric(), make sute that there isn't any whitespace
at the beginning/end of the number:
http://tech.badpen.com/index.cfm?mode=entryentry=16
Tim.
--
---
CF_CodingContest mode=judging newentries=false
Maze Solver -
I'm still waiting for Flex to show up in the Education store,
but I have little hope of the discount percentage being high
enough to make it affordable in the near future.
The educational discount in N. America is going to be 34%, so just under
$8k.Government institutions will get a 20%
Has anyonemanaged to consume a Currency Conversion web
service under CFMX yet?
Don't know if it'll help, but...
We don't need totally up to date currency information so I have a
scheduled task to run twice a day and, using an xMethods web service,
update our local copy of the rates we
nah there is an xml file in there somewhere neo-cron.xml maybe?
The one you'll want is neo-security.xml - in there set the value of
the admin.security.enabled bit to false, restart CF and you'll be able
to get into the admin without using a password.Change the password,
then change the value of
anotha new level of confidence...and power
Pantera - Vulgar Display Of Power:)
If you want a secure app, don't let users see your
fuseaction names.
If you want a secure app, don't let anyone use it...;)
As for using the security of your DB instead of application-based
security - in my
As for using the security of your DB instead of application-
based security - in my opinion this is possibly *less* secure -
it means that anyone with a login for your webapp automatically
has a direct login for your database server!
Which is of course set up to only allow connections
No, don't do that. The CF server SHOULD NOT be in the DMZ. No
server should be in the DMZ unless it is a bastion host,
which an application server by definition is not.
Oh OK, I was just trying to be pedantic.:)
Tim.
--
---
Evening all...
I'm having real issues installing CFMX on a RedHat 9 box.I've
installed MX on linux plenty of times before, but this time things just
aren't happening.
For some reason, JRun seems to be taking an absolute age to start up -
in the cfserver.log the Starting Macromedia Jrun 4...
Anyway,so here's an example in that article:
That looks overly complex for what you're doing.The PHP PEAR libraries
provide a nice and simple way of using a web service when you've got the
WSDL for it, so you don't need to worry about all the SOAP stuff (name
spaces etc) directly.
I've just
1. Does anyone know what that code is?
a href="" PROTECTED].../a
2. Does it work for all browsers/email clients?
No idea.:)
Tim.
--
---
CF_CodingContest mode=judging newentries=false
Maze Solver - http://tech.badpen.com/cfcontest/
is there an easier way?
I usually do that by having a couple of variables:
page - the current page you're on (from URL)
pagesize - the number of items on a page (hardcode/from URL)
recordcount - the total number of results (from your query)
You can then work out things like the total number of
r conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---
-Original Message-----
From: Tim Blair [
Engage brain, then type...
cfset startresults = (url.page * pagesize) + 1
Of course, if you use page=1, you'll start at result 11 which is
wrong... Try:
cfset startresults = (url.page * pagesize) - pagesize + 1
Sorry about that.
Tim.
---
cfif NOT reFind(6,valueList(getMTIDs.mtid),1)
cfset request.SpiderIsPresent = 0
cfelse
cfset request.SpiderIsPresent = 1
/cfif
Use listfind() and you can shorten that to one line:
cfset request.SpiderIsPresent = listfind(valuelist(getMTIDs.mtid),
6)
listfind() will return the position of
CFIF myquery.CurrentRow NEQ myquery.RecordCount
Worked perfectly.
Just out of interest, you could use one of the methods of the underlying
coldfusion.sql.QueryTable java object of the query: isLast()
For example, to output a list of names from a query with a comma between
each, you don't
and independently indicated
by an authorised representative of rawnet limited.
---
-Original Message-
From: Tim Blair [mailto:[EMAIL PROTECTED]
Sent: 15 January 2004 15:56
To: CF-Talk
Subject: Fancy a ColdFusion Challenge?
Right you
I had the same problem. It appears that even though CF
variables are untyped, the underlying java expects properly
formatted dates (java is a strongly typed language).
Yes, all java vars need to be typed, but it seems strange that CF seems
to think that the string is a date, tries converting
does CFMX create java files
The original MX did, but 6.1 doesn't - the compiler does a direct CF
code - java byte code (.class file) compilation to save (lots and lots
of) time during the compilation and initial run phase.Doesn't make a
huge difference in production but sure makes development
Can someone else try running this little bit of code please:
cfset variables.newQ = querynew(col1)
cfset queryaddrow(variables.newQ)
cfset querysetcell(variables.newQ, col1, Thu 29 Jan)
cfdump var=#variables.newQ#
cfquery name=variables.testQoQ dbtype=query
SELECT * FROM newQ
/cfquery
cfdump
If so, you cal use an evaluate within the loop:
Or you can do it without using evaluate() by using summat like:
Replace this:
evaluate('dropship'indexvalue'_value')
With this:
variables['dropship'indexvalue'_value']
That assumes that the vars are in the variables scope - if they're
coming
I must be missing something, then. As far as I can tell, the
feature is already present. You can currently disable trusted
cache in the CF Administrator. If you want to do that
programmatically, I'm sure it's possible with a little work.
Something like this?
cfscript
variables.factory =
Try using getMetricData() from your code.This provides the
same data that cfstat does.
Except doing it like that will mean the requests running will always
be one out because it counts the script that you're running
getMetricData() in.
Tim.
In fact, you could simply do (ReqsRunning = ReqsRunning -1)
before logging the data to accommodate for the known thread.
Yup, that's right.I was just pointing it out...:)
Tim.
---
Try the ColdFusion Coding Contest!Current contest:
Maze
Morning all...
After some feedback (and a submission!) I've made a couple of updates
and clarifications regarding the maze contest that people should be
aware of:
http://tech.badpen.com/index.cfm?mode=entryentry=14
Tim.
---
Try the ColdFusion
://www.rawnet.com/ or call us any time
on 0800 294 24 24.
---
Tim Blair
Web Application Engineer, Rawnet Limited
Direct Phone : +44 (0) 1753 626 654
Switchboard : 0800 294 2424
---
This message may
/ or call us any time
on 0800 294 24 24.
---
Tim Blair
Web Application Engineer, Rawnet Limited
Direct Phone : +44 (0) 1753 626 654
Switchboard : 0800 294 2424
---
This message may contain information
Knowing Tim it'll be chaos theory and not necessarily any
kind of algorithm... ;o)
:oP
PS.How's that for a come back?:o\
---
Try the ColdFusion Coding Contest!Current contest:
Maze Solver - http://tech.badpen.com/cfcontest/
Media and ebusiness Gurus.
WE'VE MOVED - for our new address, please visit our
website at http://www.rawnet.com/ or call us any time
on 0800 294 24 24.
---
Tim Blair
Web Application Engineer, Rawnet Limited
Direct Phone : +44 (0) 1753 626 654
://www.rawnet.com/ or call us any time
on 0800 294 24 24.
---
Tim Blair
Web Application Engineer, Rawnet Limited
Direct Phone : +44 (0) 1753 626 654
Switchboard : 0800 294 2424
---
This message may
and ebusiness Gurus.
Visit our new website at http://www.rawnet.com for
more information about our company, or call us free
anytime on 0800 294 24 24.
---
Tim Blair
Web Application Engineer, Rawnet Limited
Direct Phone : +44 (0) 1344 393 441
Switchboard : +44
.
---
Tim Blair
Web Application Engineer, Rawnet Limited
Direct Phone : +44 (0) 1344 393 441
Switchboard : +44 (0) 1344 393 040
---
This message may contain information which is legally
privileged
.
---
RAWNET LTD - Internet, New Media and ebusiness Gurus.
Visit our new website at http://www.rawnet.com for
more information about our company, or call us free
anytime on 0800 294 24 24.
---
Tim Blair
Web Application Engineer, Rawnet
.
Visit our new website at http://www.rawnet.com for
more information about our company, or call us free
anytime on 0800 294 24 24.
---
Tim Blair
Web Application Engineer, Rawnet Limited
Direct Phone : +44 (0) 1344 393 441
Switchboard : +44 (0) 1344
Gurus.
Visit our new website at http://www.rawnet.com for
more information about our company, or call us free
anytime on 0800 294 24 24.
---
Tim Blair
Web Application Engineer, Rawnet Limited
Direct Phone : +44 (0) 1344 393 441
Switchboard : +44 (0
, or call us free
anytime on 0800 294 24 24.
---
Tim Blair
Web Application Engineer, Rawnet Limited
Direct Phone : +44 (0) 1344 393 441
Switchboard : +44 (0) 1344 393 040
---
This message may
1 - 100 of 185 matches
Mail list logo