Pete Freitag
Member since Dec 11, 2008
- Profile: /members/265-pete-freitag.htm
- URL: https://foundeo.com/
- Comments: 20
Recent Blog Comments By Pete Freitag
-
Using CFModule To Render Templates With Isolation In ColdFusion
Posted on Mar 29, 2024 at 2:26 PM
Great post Ben! The encapsulation is a great benefit of using cfmodule instead of cfinclude as you point out. I don't see too many people use of cfmodule though. I remember back in the early CF days when getTickCount based performance tips were popular that people said using cfmodule was slo... read more »
-
Using Cloudflare Turnstile reCAPTCHA-Alternative In ColdFusion
Posted on Jan 12, 2024 at 2:44 PM
Nice - I have been using it for a while with CF, and it is working pretty well. I used to get a lot of spam on my contact form and now they are very few and far between. I wrote up a simple CFML implementation as well here a few years ago: https://www.petefreitag.com/blog/adding-cloudflare-tu... read more »
-
Dynamically Enabling / Disabling Session Management In Lucee CFML 5.3.8.201
Posted on May 27, 2022 at 3:35 PM
Yeah it is a very handy feature of CFML! I've used it to either set the session timeout to 1 second (or disable sessions) when a bot hits requests your site - that way it doesn't consume the heap/ram and often bots will send new requests without cookies, causing a new session to be created o... read more »
-
Now Using utf8mb4 To Enable Emoji In My Comments
Posted on Mar 26, 2020 at 4:24 PM
Nice 🤓! I posted about this a few weeks ago as well. It gives a bit of an explanation: https://www.petefreitag.com/item/895.cfm From my experience you don't need to do the SET NAMES thing, you can instead alter the DB schema ALTER TABLE tableName DEFAULT CHARACTER SET utf8mb4, MODIF... read more »
-
Thought Experiment: Splitting A Single Data Table Up Into High-Writes And High-Reads For Better Performance In MySQL
Posted on Oct 11, 2019 at 11:16 AM
I wonder if you could solve this by queuing. When you process the queue every minute or so, you remove the duplicates and only write the most recent timestamp for each user. This would probably reduce the number of writes you do significantly if there is a high percentage of duplication.... read more »
-
From Windows To Mac - A Roller-Coaster Of Emotions
Posted on Aug 9, 2010 at 9:44 AM
If nothing else this switch should give you a lot of new things to blog about. I'm looking forward see what you come up with.... read more »
-
Converting An IP Address To An Integer Using MySQL (Thanks Julian Halliwell)
Posted on Jan 29, 2010 at 9:14 AM
In addition to the storage savings, its also much more efficient to query an integer in the DB as opposed to a string.... read more »
-
jQuery Powered Mine Sweeper Game
Posted on Oct 27, 2009 at 10:33 AM
Here's the cheat code: http://www.bennadel.com/resources/demo/mine_sweeper/index.cfm?rows=1&cols=1&bombs=0% Seriously, nice job Ben!... read more »
-
June 1st 2009 - 2nd Annual (Inter)?National Regular Expression Day!
Posted on Jul 9, 2009 at 2:42 PM
Wow thanks Ben, you Rock!!... read more »
-
ColdFusion 8's OnMissingTemplate() - So Close To Being Good
Posted on Jul 1, 2009 at 10:56 AM
Ben nice post... I share your disappointment about folders not being handled. My guess the ColdFusion web server connectors aren't notified of those 404's, so it can't handle them with onMissingTemplate. I think they would have to rewrite the connectors to support this, but I could see how many cust... read more »
-
June 1st 2009 - 2nd Annual (Inter)?National Regular Expression Day!
Posted on Jun 1, 2009 at 10:46 AM
@Ben - filtering out one word replies like "@bennadel thanks"... read more »
-
June 1st 2009 - 2nd Annual (Inter)?National Regular Expression Day!
Posted on Jun 1, 2009 at 10:02 AM
@[^ ]+\W\w+$... read more »
-
The New BenNadel.com - Same Content, Fresh New Look
Posted on May 11, 2009 at 1:57 PM
Nice work Ben!... read more »
-
Image Manipulation ColdFusion Wrapper Component
Posted on Apr 28, 2008 at 11:21 AM
Cool Trick Ben! I love onMissingMethod, wish it was in earlier versions of CF too!... read more »
-
I Finally Used CFParam Type = "VariableName"
Posted on Sep 26, 2007 at 6:23 PM
I use type = variablename quite a bit actually... It is much better than just using type = string when you are dealing with simple string values (one word values), it also requires that the string is not zero length... Here's a blog entry I did on this a while back: http://www.petefreitag.com/item... read more »
-
The CTRL+SHIFT+S Test For Proper Page Architecture
Posted on Jul 24, 2007 at 10:53 AM
Handy tip Ben, thanks!... read more »
-
Google Offering Low Cost Local Search Solutions
Posted on Jul 18, 2007 at 3:16 PM
One thing I wonder is how often they will index your site using their paid service. Is it daily, hourly can you specify perhaps with google sitemaps?... read more »
-
Need Help Making A Viable ExpandServerPath() ColdFusion UDF
Posted on Jul 9, 2007 at 12:50 PM
Hi Ben, Somewhat related to your post I have a technique here http://www.petefreitag.com/item/630.cfm for finding the application root (the dir containing the acting application.cfm file), you can then use that path and add to it. I know it doesn't solve your problem here but, I thought you might... read more »
-
Ask Ben: Hiding / Encrypting ColdFusion CFID And CFTOKEN Values
Posted on Jun 20, 2007 at 6:40 PM
A few suggestions for your example... Encrypting your cookies is a good idea but why use the weak CFMX_COMPAT encryption when you can use something stronger such as AES encryptions in CF7 (which I'm assuming you have since your using an Application.cfc). See my blog entry here for the pro's and co... read more »