shuns
Member since Dec 11, 2008
- Profile: /members/2209-shuns.htm
- Comments: 76
Recent Blog Comments By shuns
-
CorMVC - My jQuery-Powered Model-View-Controller (MVC) Framework
Posted on Dec 21, 2009 at 4:53 PM
Nice work Ben... read more »
-
NYC + Snow + ColdFusion + jQuery = Winter Wonderland
Posted on Dec 20, 2009 at 4:19 PM
Wow looks nice, Im going to NY from Aussie and getting in on the 26th hopefully more snow to come :D... read more »
-
Tracking Request Volume Based On IP Addresses In ColdFusion
Posted on Nov 5, 2009 at 7:31 PM
@Ben Well it goes like this: every request fires a method that will purge/reset the whole struct if needed, then after that occurs will check the ip etc, removing it from the struct if it should be ejected. It the records this new request made, then finally checks to see if the ip has reached a lim... read more »
-
Tracking Request Volume Based On IP Addresses In ColdFusion
Posted on Nov 5, 2009 at 4:39 PM
Hi Ben, All requests are purged if needed on request start via purgeRequestsIfNeeded() (Which in turn fires resetRequests() if conditions are met) Also within manageRequests() which is the overall checking method, induvidual ones are removed if needed via deleteRequestByIp(ip, index) Does that he... read more »
-
Tracking Request Volume Based On IP Addresses In ColdFusion
Posted on Nov 4, 2009 at 11:58 PM
Hey Ben, Yeah good post, I had hit into the same problem and this is a code sample of what I have been using successfully to handle issue for quite some tome now with no issue. Note this is a somewhat hacked except of my request facade object (so some of the generic methods are inherited but not s... read more »
-
jQuery's is() Method Checks For Any Matching Elements
Posted on Oct 1, 2009 at 7:00 PM
For that example wouldnt you do: var p = $('p'); p.filter('.cool').css( 'background-color', 'gold' ); Because by doing: if (p.is('.cool')) { p.css( 'background-color', 'gold' ); } You only check to see if there is some '.cool' p's available and so when you do this line: p.css( 'background-col... read more »
-
Ask Ben: Displaying A Blog Teaser (Showing The First N Words)
Posted on Sep 24, 2009 at 6:21 PM
Ah ok Ben, I didn't know that one about the apostrophes, I have only used \b once or twice :)... read more »
-
Ask Ben: Displaying A Blog Teaser (Showing The First N Words)
Posted on Sep 23, 2009 at 8:55 PM
Instead of using \s for whitespace another option is to use the word boundry \b :)... read more »
-
Ask Ben: Extracting And Resizing A ZIP Archive Full Of Images With Coldfusion
Posted on Sep 2, 2009 at 6:36 PM
Well hope that helps Ben - I never had problems with the image operations, only when I went to actually save them to disk. Even though sometimes CF would report as though it was an operation issue...... read more »
-
Ask Ben: Extracting And Resizing A ZIP Archive Full Of Images With Coldfusion
Posted on Aug 31, 2009 at 7:17 PM
Just a tip, thus far we cannot save images properly with built in CF8 save features - tag or function based, without getting all sorts of random errors... :( However I use something like this to save which so far has fixed all random errors: <!--- when save is needed, imageSource is a CF8 image... read more »
-
ColdFusion vs. XYZ - It Finally Got Physical
Posted on Aug 10, 2009 at 7:36 PM
Maybe this is how it went down: http://www.youtube.com/watch?v=_zLAjHao6SU&feature=related A game of pool that gets out of hand?... read more »
-
ColdFusion vs. XYZ - It Finally Got Physical
Posted on Aug 10, 2009 at 7:31 PM
LOL that was good! btw I think with this quote you should be an advert for adobe: "So I took a moment and thought about my life. I program in ColdFusion. It's probably the best language in the world. And what's better, I get paid to do it; how awesome is that? I make money doing things that I would... read more »
-
The New BenNadel.com - Same Content, Fresh New Look
Posted on May 10, 2009 at 6:50 PM
nice work ben, update looks great... read more »
-
jQuery Comments() Plug-in To Access HTML Comments For DOM Templating
Posted on Apr 14, 2009 at 7:21 PM
Nice work Ben - good idea... read more »
-
Is It Time For "Practical" Object Oriented Programming (OOP)?
Posted on Mar 30, 2009 at 11:34 PM
I think going for what is practical is the point there and thus what makes youre code cleaner and more maintaible/logical... But for some things such as speed, sometimes there is trade offs. Like CF is really slow for any large amount of CFC objects compared to native OO languages, so for record set... read more »
-
Applying Flattened CSS To XHTML For Use In Remote Environments
Posted on Mar 10, 2009 at 5:32 PM
I know Ben I wasn't saying that you would need to remove that understanding layer, merely saying that css parsing functionality could probably just throw an error if the user tried to use a css hack or something - it's not like those would work anyway :p... read more »
-
Applying Flattened CSS To XHTML For Use In Remote Environments
Posted on Mar 9, 2009 at 8:37 PM
Looks like a really nice idea Ben, looking forward to where this goes... :) Also I wouldn't worry to much with handling CSS hacks or anything like that as they are not going to work inline in an email client anyway. Generally the browser email clients like gmail hotmail will be quite good at allo... read more »
-
Ask Ben: Extending OnSessionStart() In A Sub Directory Application.cfc
Posted on Feb 16, 2009 at 7:36 PM
@Brian Yeah, good that they have that, but looks to me like those are CF8 docs and when I was first learning CFCs with CF7 I never saw anything about it. @Ben / Brian Yeah what I was meaning is say you have: Application.cfc index.cfm onSessionStart() { session.started = now(); // other code etc.... read more »
-
Ask Ben: Extending OnSessionStart() In A Sub Directory Application.cfc
Posted on Feb 15, 2009 at 11:26 PM
Good info Ben, too bad super is not really documented in CF afaik. I have used that method for session/application methods before but one thing that I think that I may have hit into before is: User goes to root, gets point of entry created. Then he navigates into the sub directory, at which point ... read more »
-
Making My ColdFusion Tags More Consistent
Posted on Feb 15, 2009 at 11:09 PM
Couldn't be bothered reading all the comments :p But nice post Roland - I think that pretty much covers it imo... read more »