twitter

Recent Comments

parallels promo code
parallels promo code May 20, 2012 at 9:58PM
Creating A Recent Comments Widget With Disqus's API and PHP

Creating A Recent Comments Widget With Disqus's API and PHP good code pls try

Aaron J. White
Aaron J. White May 11, 2012 at 1:16PM
Using KeePass with Internet Explorer
The file name has to end in .js. So the filename should be URL-In-Title.user.jsMake sure that...
HsN
HsN May 11, 2012 at 11:26AM
Using KeePass with Internet Explorer

By the way, Iam using IE - 9.0.5 and KeePass - 2.19 for at this moment.

HsN
HsN May 11, 2012 at 11:18AM
Using KeePass with Internet Explorer
I followed each step but I am not seing Trixies Options (point 5), even though I restarted my...
Aaron J. White
Aaron J. White May 1, 2012 at 8:00PM
Damien van Holten
Damien van Holten May 1, 2012 at 7:27AM
Creating A Recent Comments Widget With Disqus's API and PHP

Looking at that username, link and generic comment I would say it's a bot.

Aaron J. White
Aaron J. White April 10, 2012 at 6:15AM
Using KeePass with Internet Explorer
Well, I can't recommend anything without a bit more detail. What version of IE are you using?...
Terugbelfunctie
Terugbelfunctie April 10, 2012 at 5:58AM
Using KeePass with Internet Explorer

it did not work for me, done everything as described ??

Aaron J. White
Aaron J. White March 14, 2012 at 10:00AM
Creating A Recent Comments Widget With Disqus's API and PHP

Decision for what? If you don't mind me asking.

USB 3G
USB 3G March 14, 2012 at 2:56AM
Creating A Recent Comments Widget With Disqus's API and PHP
I am really glad I read this article! With this it has really helped me with my...
Aaron J. White
Aaron J. White March 1, 2012 at 1:12PM
Using jQuery and Google Finance to Create a Simple Stock Ticker
Hi akhil. Thanks for your comment. There are a few things wrong with your code though. 1. You...
akhil
akhil February 29, 2012 at 12:31PM
Using jQuery and Google Finance to Create a Simple Stock Ticker
Thanks Aaron for the script. However, the script needs some tweaks for refreshing the price...
David Boyer
David Boyer January 13, 2012 at 4:05AM
Is Your CFLOOP Hogging Memory or Causing OutOfMemory Errors?
Interesting to find that out, wouldn't have expected it to be a problem. I've had similar...
baljit dhanoa
baljit dhanoa January 12, 2012 at 3:08AM
Creating A Recent Comments Widget With Disqus's API and PHP

Creating A Recent Comments Widget With Disqus's API and PHP good code pls try

Posted: January 13th, 2012 - So I have been working on a script in OpenBD that loops over a large 1.2GB xml file and parses specific nodes. Since the file is so big I have to loop over the file line by line and build each node individually before running xmlparse() on the node. Everything was working just dandy until I got to around 6 million lines.

Looking at the task manager on the server I could see the memory gradually rising and eventually at around 7 million the script died. I had no clue what to do and tried several very unsuccesffuly modifications until an awesome person by the name of Jamie MacDonald on the OpenBD google group told me to try putting <cfflush /> at the end of my loop. The explanation given to me was that even though I was not outputting any data the whitespace characters inside the loop may be adding up because the CFML engine thinks it is needed to render a page and thus holds the whitespace in the buffer.

HUH!? Whitespace problems inside a component with output="false"? CFdocs.org says that output= false should make the code act like it is inside one big cfsilent, but maybe I am misunderstanding something. It could also be a bug specific to OpenBD, but maybe not. Anyway using cfflush allowed me to process the whole file with no memory problems. I watched the task manager while the script was running and with cfflush the memory stayed consitant at a normal level.  So to sum up, if you run into memory issues while using a long running cfloop try putting <cfflush /> at the very end of the loop. Hopefully this will be useful to people using the other CFML engines besides OpenBD too.


blog comments powered by Disqus