David Levin
Member since Dec 11, 2008
- Profile: /members/627-david-levin.htm
- URL: https://www.angrysam.com
- Comments: 25
Recent Blog Comments By David Levin
-
Turning Off "InvalidTag" ScriptProtect Safely In ColdFusion 2021
Posted on Nov 5, 2024 at 7:41 PM
I didn't know about the scopes feature of scriptprotect. That is very cool! Just so people know, you can pass a comma separated list of scopes you want to protect, like this: this.scriptProtect="url,cookie,cgi"; The above code would protect the URL, Cookie, and CGI scopes, b... read more »
-
Overriding Form Submission Properties Using Button Attributes In Native HTML
Posted on Jan 17, 2023 at 7:06 PM
Add me to the list of developers who had no idea this level of flexibility existed in vanilla HTML. My first thought was that I might be able to use formmethod to tell a form to use fancier HTTP methods like PUT, PATCH, DELETE, etc... but unfortunately, the MSDN specs say we are still lim... read more »
-
Modernizing My CSV (Comma Separated Value) Parser In Lucee CFML 5.3.7.47
Posted on Oct 12, 2021 at 12:12 PM
This is great! Regex to the rescue! I am playing with this component now and so far on my machine running ACF 2018, the new CFC performs on average ~33% faster using a sample CSV with 56 columns and 5000 rows. 💪 Since the CFC reads the entire file into memory, I wonder at what point memo... read more »
-
Using ColdFusion Tags In CFScript In Lucee CFML
Posted on Oct 11, 2021 at 12:49 PM
For those interested in learning more about the open-source "box" products like spinning up servers easily with Commandbox, or writing MVC apps with Coldbox, you can check out Ortus' CFCasts website here which has a variety of free and paid tutorials: https://cfcasts.com/ 💪 ... read more »
-
Sanity Checking Closure Invocation Overhead And Performance In Lucee 5.3.2.77
Posted on Aug 7, 2019 at 5:23 PM
I still have a hard time getting used to the "=>" notation for arrow functions. Maybe it's just my age, but I still like to see the word "function" in my closures. When my eyes encounter "=>" my brain interprets that as "equal to or greater than&quo... read more »
-
Using Email Yak To Provide Bidirectional Email Communication In Your Web Applications
Posted on Dec 7, 2011 at 12:18 PM
Nice find Ben, One of the things I like about a service like this is that you can use it to ensure that your outbound messages have indeed left your SMTP server. Sometimes IIS' built in SMTP service can get bogged down and lock up but if you can update a database field every time Email Yak receives... read more »
-
Using GMail's Plus-Style Addressing To Track Bounce Back Email Meta Data
Posted on Nov 16, 2011 at 8:33 PM
@Kevin Duncan, Did you ever finish your project? I've been working on a new email delivery solution myself and I read your comment about yours nearly being done (in 2010). I would be curious to check out what you came up with if you still have it laying around.... read more »
-
ColdFusion, jQuery, And "AJAX" File Upload Demo
Posted on Jul 19, 2011 at 7:03 PM
@Tính Nguy?n There are a couple things you should check: 1. In the ColdFusion administrator under Java and JVM (ColdFusion 8 Admin) make sure your heap size is bigger than the file you want to upload. 1000 or 2000mb is good for large file uploads. 2. If you're using IIS7, you may need to change a v... read more »
-
Always Define Your ColdFusion Query Column Types
Posted on Aug 18, 2009 at 2:05 AM
Just had an idea... What if instead of passing a query object via AJAX you simply pass the SQL statement itself. You could always run the query in your calling template using MaxRows=0 and Result="result" to make sure it executes quickly and stores the SQL in a structure named "result". Then when... read more »
-
Always Define Your ColdFusion Query Column Types
Posted on Aug 18, 2009 at 1:13 AM
@Ben Definitely not a cop-out answer. You should see the pile of hair on my desk from trying to wrestle with this. I'm going to look like Mr. Clean in a few days. ;) Unfortunately the ColdFusion experiment I'm building requires me to send query objects via AJAX to another template and its very imp... read more »
-
Always Define Your ColdFusion Query Column Types
Posted on Aug 15, 2009 at 2:57 PM
I've been playing around with using JQuery to pass complex queries and strings all contained in a structure via AJAX. I've exprimented with sending the structure as a WDDX packet and as a JSON string. The WDDX method does an "ok" job at preserving the query column data types whereas the JSON metho... read more »
-
Am I The Only One Who Likes White Space In My ColdFusion Code?
Posted on Jun 15, 2008 at 1:29 PM
I come from a Design background and I have always considered myself a designer first and a coder/programmer second. I feel claustrophobic when I look at code that hasn't been tabbed or spaced out properly and I find that your examples Ben have been really easy on my eyes and make your sample code v... read more »