Here try this. I snipped it out of something I use to build static pages
with CFHTTP. It builds thousands of them based on query output. I wanted
it to run multiple threads at once but not so many it fried CF. So the
code keeps track of how many threads are running and limits their number to
page.
Am I successfully passing it through to cf? Hard to tell. I was hoping to
have made a bit of progress.
On Mon, Feb 9, 2015 at 6:38 PM, Matt Robertson websitema...@gmail.com
wrote:
Mark,
those two threads aren't exactly a linear set of to do steps. I'll try
to
put
Mark,
those two threads aren't exactly a linear set of to do steps. I'll try to
put that together tomorrow when I am in front of a desktop.
--
--m@Robertson--
Janitor, The Robertson Team
mysecretbase.com
--
--m@Robertson--
Janitor, The Robertson Team
mysecretbase.com
Url rewrite in IIS may not even be involved here, and need not be. Prior
to win2k8 the standard way to handle Cf 404 and 'fakeURL' 404's was to tell
IIS not to 'check to see if file exists' in the .cfm mapping. From there
CF server's 404 handler did whatever you wanted it to. To retain the
Formerly, in IIS you could check a box that told IIS to not check first if
a page exists on the .cfm extension, which would defeat IIS handling .cfm
404 errors. From there your CF 404 error template would take over. This
behavior changed as IIS was upgraded. So Item 1: If you are using an
On Fri, May 20, 2011 at 4:54 AM, Aaron Rouse aaron.ro...@gmail.com wrote:
I know people who have horrible code readability and been in the same teams
for 5-10 years.
Granted. I should have said 'my' team. If they're working for me
they get educated quick or they're gone.
--
On Thu, May 19, 2011 at 6:55 AM, wrote:
Actually, there is only ambiguity for those who do not know the language they
are using and its rules by default.
The penalty for being smug about your mastery of the universe is -
sooner or later - extremely painful.
Put simply, unscoped vars can
Even though my own CMS can handle multiple sites running off of a
single installation, I don't run it that way. The points brought up
about clients wanting individual customizations and portability fit my
situation. I understand if you are offering software-as-a-service
things change, but for
Here's the update:
Jochem's StAX-based solution worked so well -- and it allowed me to
re-use existing code since I was already processing xml -- that I
didn't bother to consider testing the xml2csv utility.
Original code processing a 45mb file yielded an insert time of 90
seconds per record
On Wed, Feb 16, 2011 at 8:08 PM, Rick Faircloth wrote:
Perhaps this will be of some help.
Thanks Rick, Interesting stuff. I don't work with xml so much so a
lot of this is new, and I hate new :-). I haven't been a full-time
programmer for a few years now so I haven't kept up with everything
On Thu, Feb 17, 2011 at 8:56 AM, Rick Faircloth wrote:
Good to know!
Indeed. Thanks to Marco and Mark. I plan on trying out both this and
Jochem's solution starting maybe as soon as tomorrow and certainly
through the long U.S. holiday weekend. Maybe try both and see which
is faster. I'll
Hey everybody, we're in a bind here and I pitched the idea to the
client of bringing in a ringer. Is there someone out there who is
interested in building a direct-to-SQL Server or direct-to-mySQL-based
solution?
Solution would have to, on a scheduled basis, grab a file in a
location on the
,
Rick
-Original Message-
From: Matt Robertson [mailto:websitema...@gmail.com]
Sent: Wednesday, February 16, 2011 12:22 PM
To: cf-talk
Subject: Re: Big XML files processing Really s-l-o-w. Solution?
Hey everybody, we're in a bind here and I pitched the idea to the
client
On Wed, Feb 16, 2011 at 3:49 PM, Jochem van Dieten wrote:
Would it help if you split the file into individual records before
processing them?
I think it would help immensely I think. I'd prefer to fight my way
thru this in CF if at all possible and things are just complex enough
that I may
My question is how do I reduce processing time... is there anything I
could be doing better?
I am tasked with doing an import on a file whose size can essentially
be unlimited. We've been able to handle in the 10-15mb range but it
recently ballooned to 100 mb, and its going to get larger.
Client is running mySQL, But a SQL Server could probably be arranged
if we have to. Kind of a painful investment for them, though.
I was kind of hoping you guys would find a bonehead mistake that would
magically clear this up. I'm out of CF-based ideas.
Speaking of which, I tried shortening
On Mon, Feb 14, 2011 at 3:27 PM, Mark Mandel wrote:
Either that, or start looking at something like StaX -
http://stax.codehaus.org/Home
thx for the tip on Stax but it frankly looks a bit out of my league
for this project.
--
--m@Robertson--
Janitor, The Robertson Team
mysecretbase.com
Very interesting stuff, guys. Very much appreciated. Should have
come here before I did the project as opposed to afterward. You'd
think I'd know better by now.
--
--m@Robertson--
Janitor, The Robertson Team
mysecretbase.com
Here's what I do to force traffic onto the same domain so Google is happy:
...taken from where I set my application vars ...
cfset application.FQDN = www.foo.com
/...
...this is inside of /Application.cfm
cfif compareNoCase(cgi.server_name,application.AMPro.FQDN)
cfif
It doesn't. CF can do it of course as the OP said he was already doing.
The solution I have used is to change the doctype but this was already
mentioned above.
--
-...@robertson--
Janitor, The Robertson Team
mysecretbase.com
Are you trying to retrieve coldFusion code from a database and then execute it?
--
-...@robertson--
Janitor, The Robertson Team
mysecretbase.com
~|
Order the Adobe Coldfusion Anthology now!
The only way to do it would be to write the code into a file, then CFINCLUDE
it, kind of cumbersome,
Not quite the only way.
1. Write the code in the editor ... as if it were a code editor :-|
2. Store the form field data using the gymnastics described earlier.
3. Publish the data as a
I'm looking at buying a couple of laptops that will get some light
development use. The trouble I am seeing is every laptop whose
feature set I am interested in is running Win7 Home Premium.
If I am running CF9 developer on them and would only be using the
development web server, will CF9 run
Beautiful. Thank you, Dave.
You mean upgrade Windows, right?
I'm still running all my office stuff on XP downgrades. Stayed clean
away from Vista except for my home system which is running Vista 64
On Tue, Aug 3, 2010 at 12:46 PM, Dave Watts dwa...@figleaf.com wrote:
I'm looking at buying
Well, I guess it is a bag-on-Eric thread after all.
Michael Grant said
you'd be much better spending the 40 or so hours trying to
drum up business or on a job search. Spend one day putting together a
resume/portfolio and the other 32 hours contacting people and circulating
your portfolio.
Good
On Sun, Jun 27, 2010 at 3:10 PM, Eric Roberts wrote:
I wouldn't say it's an objection to paying a few hundred dollars, it's an
inability to come up with the funds to do so for the little guy.
Not to derail this into a lets-beat-on-Eric thread, but as others
mentioned, thats peanuts. Something
I too have been with Crystaltech for years. Something you should have
done if you had a tech talking like that is report it in the
satisfaction survey they send out after every ticket is resolved.
One thing I have learned is that *all* hosts, sooner or later,
decrease in tech support quality.
ColdFusion has a place to designate a special 404 handler in the
Administrator. In IIS you tell it not to check to ensure CFM pages
exist and then CF will handle all 404's according to your
instructions.
If IIS is handing off a 404 to a .cfm page, isn't that page just a
dumb page that doesn't
Alan Rother wrote:
If you want to set an auto refresh on your application variables, to force
them to refresh, then I would create a scheduled tasks that passes in a url
var which could trigger the onApplicationStart from the onRequestStart
I find it can be extremely helpful to do that with
Supposedly on July 6 a new version will be released that is at least
better, if not 'fixed'.
Kind of glad I put mine behind logins from the get-go. I am guessing
that this affects all FCKEditor installations and not just CF8's
cftextarea.
Way back when, an earlier cf connector was so full of
A Windows security update would seem to be one of the usual suspects
when it comes to mysterious behavioral changes.
Just a shot in the dark.
I had a blowup today myself on some longstanding code but it was a CFX
based issue.
--
-...@robertson--
Janitor, The Robertson Team
mysecretbase.com
CF matters aside, isn't anything but a silent, server-side redirect
going to do very very bad things to your SEO and existing link
placement?
--
-...@robertson--
Janitor, The Robertson Team
mysecretbase.com
~|
Adobe®
Matt:
Have you heard of any security updates that would affect CF5 in this way?
No not at all. I was just throwing out a potential culprit, as in if
I haven't changed anything, what could have changed automatically on
me?
Another potential for change then, is the browser itself. Thats
Anyone remember this article?
http://coldfusion.sys-con.com/node/45569
Lets you drop down into Java and pull out the field types that your db
reports back to the JDBC driver.
Its neat on the surface, but too expensive on resources to use on the
fly. Plus you have to put the for-real username
Ditto, except I use a 24-hour period, which is a bit aggressive. Also
on the first login the user is prompted to enter a hint and an answer
for future forgotten-password routine use. The hint is encrypted and
the answer is stored as a salted hash.
--
-...@robertson--
Janitor, The Robertson
What Dave said about client scope and db rows.
For my own cart I wound up using client variables. I felt they were
more survivable than session vars. Restart CF and lose your session
vars... bad news on a shared server where the host might have an
uneven record of uptime. A cvar-based solution
An unhelpful observation:
I just migrated a guy off of SQL Server and onto mySQL so we could
handle this sort of thing so much more smoothly. SQLYog has a
command-line utility you can schedule that will do as many one-way or
two-way synchs as desired and don't require the db to be taken
offline.
Whatever you do, don't take ease of programming your solution as a
valid way to look at the problem. You are talking about a cart
checkout process. The payoff to your client's entire business model.
Paramount is making something that will not step on its own
you-know-what ... ever. As in fault
That CFC is sweet!
Ages ago I wrote up a complete tutorial on how to do the multi-record
thing, start to finish.
http://tutorial214.easycfm.com/
I used evaluate(), which is a sin, but otherwise its a pretty
straightforward, basic way to get the job done.
--
-...@robertson--
Janitor, The
*sigh* where is the UnSend button?
That tutorial only covers updating existing rows. Never mind :-)
form.fieldnames and a little conditional logic should fix you right
up. Don't forget to also exclude the form field(s) your submit button
generates.
--
-...@robertson--
Janitor, The Robertson
You surround code that needs to be locked with cflock and /cflock
statements. Also you are using a session lock with an application
var. Don't take it wrong but the manual is probably a good place to
go to get a handle on this.
Using Persistent Data and Locking:
Can't slowly unspooling emails also be attributed to a mail server
thats slow in accepting them? I know I have that problem with my
SmarterMail-based mail server, although I can live with it because my
CF-originating traffic is not all that time-critical.
Surprised no one has recommended iMS
Welp, iMS_SE is only $250. And they have a single-threaded free
version you can try. Or at least they used to. Check their site.
--
[EMAIL PROTECTED]
Janitor, The Robertson Team
mysecretbase.com
On Fri, Oct 17, 2008 at 2:10 PM, [EMAIL PROTECTED] wrote:
I also am using SmarterMail
as maddening as it is, fast mail is a problem as opposed to a solution it seems.
I've used a mail trickler to get around this for years.
http://mysecretbase.com/Slowing_Down_CFMail_2004.cfm
It is far from perfect, but it works.
--
[EMAIL PROTECTED]
Janitor, The Robertson Team
mysecretbase.com
is there a good bot/bad bot list? Not that I would trust it but it
can't hurt to at least look at whether its feasible to use it as
another weapon in the arsenal. I have an IP- and bot-identifying based
system that works pretty well but I'm always up for newer and better
info.
--
[EMAIL
Oh yes... I found out early on that I would get all bent out of shape
and cranky doing log analysis without filtering out that declare stuff
before it hit the logs in the first place.
I figured there was no point to relying on user agent info but wanted
to see if anyone had anything that I might
Well I guess I'm glad I am not the only one dealing with this. I implemented
cfif cgi.query_string contains DECLARE%20
cfheader statuscode=500 statustext=Server Error
/cfif
at the top of /Application.cfm and that stopped it dead in its tracks,
but not before spiking my custom logging app
This is driving me nuts. It works great in Safari, FF and, up until
recently, in IE. Server is CF 6.1
I have to serve up pre-existing pdf files stored off the web root and
pushed to the authenticated visitor via cfcontent. User clicks on
link located at foo.cfm:
a
I had to go in and change IE7's settings before it would shoe the movie
You mean Windows' settings, right? I don't know anywhere where IE7
does file type support, although that doesn't mean its not hiding
somewhere inside. Since I have the full Acrobat (5) on my desktop
unit, I'll try it on
been there and done that :-)
--
[EMAIL PROTECTED]
Janitor, The Robertson Team
mysecretbase.com
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
I've built something like this myself and as Ian says its all about
your validation routine. You run it, you test each field with
everything you can throw at it (in my case regexes are my friend) and
you tell the uploader of problems with the upload operation. If
something gets past the regexes
I wrote up a complete tutorial on how to do this over at easyCFM a few
years ago.
http://tutorial214.easycfm.com/
Don't hate me for using evaluate() :-)
--
[EMAIL PROTECTED]
Janitor, The Robertson Team
mysecretbase.com
~|
What a mess for many of you; Mary Jo your story in particular. 3
hosting moves? Jeez. Stick to that CT dedicated. Shared hosting is
problematic at best imho. Dedicated hosting is the only way to go.
No crackpot problems that you don't make yourself. No goofball code
blowing up the server.
You can easily do this with your missing template handler.
First of all, your web server needs to hand off 404 processing to CF.
on IIS you do this by altering the .cfm document property so the box
that says 'make sure the file actually exists' is unchecked.
Obviously I'm paraphrasing and not
At one time, ContentMonger was the most downloaded free CMS on the
Adobe developers exchange, and I believe that still is the case. The
download is now what was once the full commercial version. Its $99 to
license for a commercial site.
--
[EMAIL PROTECTED]
Janitor, The Robertson Team
What we really need is forum software that emulates VBulletin. That
stuff is so far ahead of products available to the CF community it
makes it worth it to add a PHP server to your mix.
--
[EMAIL PROTECTED]
Janitor, The Robertson Team
mysecretbase.com
Not really. You still need to lock around any potential race conditions.
Perosnally I tend not to lock reads and always lock writes, unless
there is a race condition possibility on the read, in which case I
lock that too..
--
[EMAIL PROTECTED]
Janitor, The Robertson Team
mysecretbase.com
My clients have been sending mail for years without this happening.
The largest one is in the medical industry themselves, and they send
by the thousands every week with no problems. Their list is an opt-in
for their association members.
Environment is a shared host where the web server is one
If you wrap the various different implementations in
something like a CFIF around a CFINCLUDE, does that allow one
(set of) templates to run on all engines ?
It very well might! I haven't tried, myself.
It works fine. Something old I snipped and simplified for the sake of
illustration
Dan, as I mentioned in my email to you earlier today you can use the
importation tools that are in the tag distribution, but as Mary Jo said
there is more to this than just importing the text files (assuming UPS still
even makes them available, and they are still in a usable format).
I dropped
I just checked. UPS no longer even provides ASCII data. Its all pdf's
now. They used to provide a form of ASCII that UPSR could clean up and use
as a fixed-length file. No more. You would have to hand-input every rate
item, and there are probably thousands of those.
The days of such
Richard, here is everything you need to know about protecting client-side
code and images:
http://www.digitalmidget.com/help/noclick/index.php
:-)
--
[EMAIL PROTECTED]
Janitor, The Robertson Team
mysecretbase.com
~|
Check
Considering the context perhaps we should adjust our expectations ;)
Exactly. What else would you expect from an entity with their
reputation? If their code was well put-together it would be the only
thing so in their entire organization it seems.
--
[EMAIL PROTECTED]
Janitor, The Robertson
honestly, I haven't read the code posted, but I can say with certainty
that you get a comma-delimited list in a single form field if you are
submitting it twice.
You'll get smarter answers if you say some words in your post.
--
[EMAIL PROTECTED]
Janitor, The Robertson Team
mysecretbase.com
Chasing the perfect regex in this circumstance is like trying to herd
cats. Figure something screwy will always come up and meow at you
from behind, but if you error-proof your app no matter what shows up
you will chug along.
I carved the example below from one of my mail trickler tutorials. I
or don't do tabs and use spaces exclusively. Tell HomeSite/CF Studio
to convert tabs to spaces so you don't have to actually use the
spacebar. I went that route after I wound up having to edit non-CF
code in HS and weird things started happening to the other code, whose
(primitive) native editor
Cutter (CFRelated) wrote:
People still use HomeSite or CF Studio!?! (Cutter ducks from the flying
objects) ;)
Only when I have too much stuff in memory to load Notepad :D
--
[EMAIL PROTECTED]
Janitor, The Robertson Team
mysecretbase.com
Try this. Its been around for a long time and works very well. There are
server-side-only variations described somewhere in there but I have never
had one work anywhere near as well as this:
http://mysecretbase.com/Slowing_Down_CFMAIL.cfm
2nd generation:
I wrote a form generator and submitted data handler into my ContentMonger
CMS years ago. Supports every form type, secure forms, handles data
encryption where desired etc. etc. Let the editors build and manage their
own forms, I say :-).
A year or so ago I put in hooks that let developers tie
A single lookup table should work fine for this. I don't see a need to
create a different table for each lookup. Field structure
ID (int, indexed)
ItemType (varchar 25, indexed)
ItemStored (char3)
ItemDisplay(varchar 25)
The field lengths above are not set in stone, and I am assuming your
Check out CFFM as an alternative file manager. Its easy to integrate into
FCKEditor and doesn't suffer from some of the BS that the included system
does.
I see the FCK author has a Finder that is really slick... but no CF version
yet.
A couple versions back I helped write a better file manager
Its not a failure of the industry experts to understand the problem. Its
the failure to have a problem in the first place, honestly. I think that,
while you are clearly working hard to wrap your arms around the subject...
you aren't there yet.
What you want to do is inherently insecure... use
one thing I remember from monkeying with FCKEditor in my own cms... that
application.cfm in its folder structure can be safely removed and that
solves at least that part of your problem.
--
[EMAIL PROTECTED]
Janitor, The Robertson Team
mysecretbase.com
very easy. If you've ever config'd a mail server before you should be
in for about 5 minutes' work.
--
[EMAIL PROTECTED]
Janitor, The Robertson Team
mysecretbase.com
~|
Get involved in the latest ColdFusion discussions,
Its the same old story for shared ColdFusion hosting... morons can
code in crap that takes the server out and blows everyone else up with
it. A service nightmare even if the host has CF knowledge.
Takes me back to the days when I was on shared CF hosting at
Interland. Anyone remember that
Whats the easiest gateway to deal with (as in program a solution
for... preferably something with a tag already developed) with respect
to setting up recurring payments? Ideally it would support monthly
and weekly open-ended. It would also have to support single
transactions.
Anyone have a
On 6/27/07, Irvin Gomez [EMAIL PROTECTED] wrote:
Authorize.net.
There are several tags for it.
Actually thats not correct unless I have been unable to find something
that is hiding.
Single billings are typically managed thru Auth.net's AIM interface.
And for that there are indeed several tags
On 6/25/07, Bobby Hartsfield wrote:
opinionIf it were easy to just install CFE and simply double click a .cfm
(that isn't part of an existing project) then edit and save... CFEclipse
would be on every developers workstation./opinion
A big amen to that. I have a very limited amount of time to
On 6/16/07, Dinner wrote:
random rhetorical aside (disregard)
How come so much CF uses .cfm, when there's a ton that could be
written to plain html, sparing CF cycles? Cache takes care of it?
/random rhetorical aside (disregard)
Hah. One of my pet rants. Answer is one or the other of
1.
Sorry if I missed it earlier but has Adobe announced whether or not
folks with CF 6.1 will be eligible for upgrade pricing to CF8?
--
[EMAIL PROTECTED]
Janitor, The Robertson Team
mysecretbase.com
~|
Create Web Applications
I'm researching broadband acceptance rates in the U.S. right now and I
just saw this thread. I came across the stats ref'd in the first post
already. Looking around some more I found another source that pegged
the number at 60%. Still another gave a 2005 prediction that put us
at about 65% in
I wouldn't even think of running a db on the same box, despite its
capacity. some of them getting 1 million hits per year could equate
to 20k hits per day; which isn't the end o the world but its
substantial. Then you throw in that there are going to be video
downloads? And SATA drives and not
AccessMonger Pro has groups, tiers, permissions and the ability to
bundle them all together into a profile you can apply to a given user,
then customize individually.
It doesn't use functions as you describe to test for permissions,
though. It uses a variable assignment (to define the permission
And the fact that it is freaking impossible to import data in the
Express version.
Funny... this topic coming up right now. I have a client with a BIG
web site who has decided to branch their main web presence onto SQL
Express, and I spent some frustrating time a few days ago trying to
On 6/12/07, Crow T. Robot wrote:
I'm pretty sure Express Mgmt Studio is free - period. Is that what you're
asking?
No I'm using the Mgmt Studio Express myself already, like the original
poster. I was lamenting about how there was no way to import or
export data from it... since I am right in
On 6/12/07, David Low wrote:
I don't recall CF5 ever being free though,
There was Cold Fusion Express. It was a chopped-up v4.x IIRC.
Crippled and didn't last long.
--
[EMAIL PROTECTED]
Janitor, The Robertson Team
mysecretbase.com
And you can always drop to java and read the little beast in one line
at a time that way. You won't have any memory issues like you would
if you try and read in an 80mb file into a single cosmic-scale array.
I have a similar monster file situation and solved it this way;
although mine is daily
Sorry to resurrect a dead thread but I hate leaving loose ends. I
missed Andrew and Rick's question as to how I created my ContentMonger
tutorials.
I used ViewletCam by Qarbon. Its a lot cheaper than RoboHelp, and a
lot less functional, but it gets the job done for $149. If you just
dabble in
You can use asymmetric-key RSA encryption economically...
http://developer.perthweb.com.au/textcrypt.html
I've been using that tool for many years. its about as safe as you
can get for encrypting stored data. Key part of that phrase is as
you can get.
The problems with symmetric key
The robot has it right. You should only be transmitting cc info via a
secure gateway to a cc processor, where keeping the data safe is their
problem. Just clarifying in case your client wants something like cc
nums emailed to them or somesuch. I've had a few of those requests.
--
[EMAIL
If CF had a demand scoping option it would break most of the CF code
out there if what I've seen is any indicator. 'course, since I am a
troubleshooter, the reason I am working on a given lump of code in the
first place is because the original code was developed by chimps.
--
[EMAIL PROTECTED]
I wonder if the simple hill folk who cannot learn to scope vars would
put up with a cfprocessingdirective statement or any other
developer-accessible feature that impacts so severely their free-love
style of development.
It would severely pu the screws to some kinds of application
'structure'.
On 5/21/07, Steve Brownlee wrote:
It just took me
off guard more than anything and made all the red flags that have been
pounded into my brain start waving.
As well they should. Off the top of my head I can't think of a more
effective way to obfuscate code... and that includes cfencrypt...
It will run, but no matter how overbuilt your server is, you'll get
better reliability from two separate servers.
For years I ran a setup like you are describing... big dual-processor
behemoth with uber-SCSI drives and gobs of memory. The theory was to
overbuild the single box and use all that
On 5/4/07, Will Tomlinson wrote:
Is this the part where I make funny jokes about the name, FCKeditor??
You will be able to call it CFTextArea at some point in the future.
I just read the following announcement:
Adobe has chosen FCKeditor for one of the great new features of its
next major
verify your email addresses above the cfmail statement as described.
if not valid email then branch your code to notify somebody that
Record X has a sucky address that needs fixing (I compile a complete
list of all failures and only send the list once its finished).
After that, surround your
I have used cfx_gzip for years with no adverse effects. Check the
Exchange for it. Requires a separate custom tag also found at the
Exchange.
--
[EMAIL PROTECTED]
Janitor, The Robertson Team
mysecretbase.com
~|
Macromedia
On 4/25/07, james carberry wrote:
What is the best way to store client variables?
Better way to phrase that is what is the least bad way? :-)
Cookies are a disaster. To make a long story short you can't count
on them being present all the time, and you have to wait for a trip to
the client
That tag is from back when dinosaurs ruled the Earth. My Multimail
tag attempted something similar, but it went a step further and
converted html into usable, legible plain text... achieving success up
to a point. cf_htmlmail requires your input of two different message
versions.
I dropped
first rule about beta club is you don't talk about beta club.
:-)
--
[EMAIL PROTECTED]
Janitor, The Robertson Team
mysecretbase.com
~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new
1 - 100 of 2230 matches
Mail list logo