Francois Levesque
Member since Dec 11, 2008
- Profile: /members/1626-francois-levesque.htm
- URL: http://blog.critical-web.com/
- Comments: 25
Recent Blog Comments By Francois Levesque
-
The New BenNadel.com - Same Content, Fresh New Look
Posted on May 10, 2009 at 6:10 PM
Digging the new look, Ben. Great work redesigning :).... read more »
-
The Same CFID-CFTOKEN Values Are Used Across ColdFusion Session Timeouts
Posted on Mar 23, 2009 at 11:44 AM
It's always interesting to know what happens under the covers ;).... read more »
-
ColdFusion Session Management And Asynchronous Page Requests
Posted on Mar 20, 2009 at 10:41 AM
@Ben, I agree with less locking = better. Normally I'd just do something like this in OnRequestStart: <cflock scope="session" type="exclusive" timeout="5"> <cfset request.session = duplicate( session ) /> </cflock> And I'd have something in OnRequestEnd to save any altered val... read more »
-
ColdFusion Session Management And Asynchronous Page Requests
Posted on Mar 20, 2009 at 9:58 AM
@Ray, Does that explicitly mean we don't need to lock subsequent calls from multi-threaded methods? Maybe the flu has me down but right now I'm having trouble wrapping my head around this :P.... read more »
-
ColdFusion Session Management And Asynchronous Page Requests
Posted on Mar 20, 2009 at 9:56 AM
@Ben, Just a thought, but isn't it best practice to always lock reads to the session scope anyways? I remember reading at a couple places that unless you're in a single threaded method (OnSessionStart et al.) you need to lock your access to the session scope to prevent misfirings. My 2 cents.... read more »
-
Ask Ben: Building An AJAX, jQuery, And ColdFusion Powered Application
Posted on Mar 4, 2009 at 1:05 PM
@Brandon, Totally agree with you. At least there's a solution out there.... read more »
-
Ask Ben: Building An AJAX, jQuery, And ColdFusion Powered Application
Posted on Mar 4, 2009 at 9:38 AM
@Brandon, You can access the underlying Java array indexOf method directly: http://blog.critical-web.com/blog/index.cfm/2008/8/28/Using-indexOf-To-Find-Values-In-An-Array It works really great, and is much faster than looping over the array to find your value's position. Just make sure and use ... read more »
-
Does Order Of Twitter API Parameters Make A Difference?
Posted on Jan 30, 2009 at 11:11 AM
The only thing I can see is that they're using index-based arguments, rather than the actual argument key. ie: count = arguments[ 1 ]. Then again, if that's whay they're doing the order would impact the actual values assigned.... read more »
-
Deleting ColdFusion Scheduled Tasks With CFThread And CFSchedule
Posted on Dec 29, 2008 at 2:35 PM
@Ben, Ah, there you go. I imagine the little detail about the interval "bug" was in your previous post. My bad ;).... read more »
-
Deleting ColdFusion Scheduled Tasks With CFThread And CFSchedule
Posted on Dec 29, 2008 at 2:31 PM
Hi Ben, I always like seeing new ways of using cfthread, but I have to second Alex on this. This may be new to CF8, but I've also managed to have a scheduled task delete itself (it's actually the first thing I do in the task).... read more »
-
Both MySQL and MS SQL Server Use @@Identity To Report Latest Auto-Incrementing Value
Posted on Dec 9, 2008 at 10:58 AM
@Ben, Indeed.... read more »
-
Both MySQL and MS SQL Server Use @@Identity To Report Latest Auto-Incrementing Value
Posted on Dec 9, 2008 at 10:48 AM
@Ben, OK then, we won't. As long as you know the risks, you're a grown man and can make your own decisions :P.... read more »
-
Both MySQL and MS SQL Server Use @@Identity To Report Latest Auto-Incrementing Value
Posted on Dec 9, 2008 at 10:41 AM
@Ben, It may be silly, but it's really handy when all you need is a transaction log ;). Why have CF do the work when the DB engine is made for this kind of stuff. As for your question for Tony, your session is limited to your cfquery tag or, if you're using cftransaction, to your transaction block... read more »
-
Both MySQL and MS SQL Server Use @@Identity To Report Latest Auto-Incrementing Value
Posted on Dec 9, 2008 at 10:35 AM
@Ben, If you have a trigger on the table, and it also generates a new id (let's say it logs a transaction somewhere else, on a different or the same table), that is the id that will be returned by @@identity, rather than the one on the original insert. details here (with example): http://www.data... read more »
-
Both MySQL and MS SQL Server Use @@Identity To Report Latest Auto-Incrementing Value
Posted on Dec 9, 2008 at 10:27 AM
Hi Ben, I've always shied away from @@identity in MS SQL, as it's not limited to scope (ie it will return the identity generated by any triggers rather than the one generated in the table). I've found that scope_identity() is much more reliable (it's limited to the scope), but I don't know if ther... read more »
-
EtherPad: Potential For Great Peer Debugging
Posted on Nov 20, 2008 at 3:39 PM
Ahh, good times! Shared it with everyone in the office, and wasted a good 15 minutes writing nonsense :P. But as you say, as a collaborative tool (especially for remote workers) this is a really great find.... read more »
-
Intrinsic Goodness, Sex, Happiness, And Pleasure
Posted on Nov 11, 2008 at 9:44 AM
You still didn't answer his question :P. Also, you do realize you're opening yourself up to some really weird search engine indexing ;)? Seriously, though, nice way to sum it up for us geeky programmers. Now to find a place to use that interface...... read more »
-
RESwitch / RECase ColdFusion Custom Tags For Regular Expression Switch Statements
Posted on Nov 6, 2008 at 11:02 AM
I've seen people take longer breaks ;).... read more »
-
RESwitch / RECase ColdFusion Custom Tags For Regular Expression Switch Statements
Posted on Nov 6, 2008 at 10:46 AM
Hey Ben, Great article, as always. Good to have you back ;)... read more »
-
Hal Helms On Object Oriented Programming - Day Three
Posted on Oct 23, 2008 at 7:23 AM
Food for thought. Thanks again for sharing Ben!... read more »