Strange behaviour component, methods not found
I have a really really strange bug. All my applications have a settings.cfc in the webroot of the application. Some cfc's have more methods than others but all my other cfc's extend the root settings.cfc, all cfc's are stored in an application variable called application.cfc and all applications have their own application_name (in case you are wondering)
The bug i'm having is that the correct settings.cfc is extended but a certain method in that cfc is not found..... if I remove all methods it keeps finding the other methods???, but if I change the this variables with other values in the settings.cfc it will see those changes???
It appears to me that the application scope is saving or caching a different settings.cfc and his methods instead of the correct one. Especially because if I remove the methods it will still show the methods in a cfdump....
Could anyone point me in the right direction??
547 viewed | 3 opinion(s) | del.icio.us | Digg it | Tjarko @ 21:25 cet
Simple Standard CSS
Just add to your stylesheet and enjoy the simple enhancements..
::selection {background:#c3effd;color:#000;} /* Safari & Opera */
::-moz-selection {background:#c3effd;color:#000;} /* Firefox */
input, textarea, select {-moz-border-radius:4px;-webkit-border-radius:4px;}Furthermore, check
davidwalsh.name for other things I just didn't use yet ;)
590 viewed | Your opinion... | del.icio.us | Digg it | Michiel @ 14:16 cet
Stop whining for scripting support
In several articles people start asking for better scripting support in ColdFusion version 9. I hope from the bottom of my heart that this will not happen. ColdFusion has been and hopefully always will be a tag-based language and if you like scripting start using JSP or JAVA together with ColdFusion or not.
Scripting is killing for the language. It doesn't make sence to use scripting in a language that uses tags.. it's total chaos if you look at some of the applications where tags and scripting is used for the only reason that it is possible to do so... And don't say it's easier to set variables as arrays and structure because it isn't. For logical and "clean" coding we all need to be doing the same thing and that's using tags for this purpose, this way every other CF developer will understand what is being done, even the once that just startout using CF.
The language would be better of to be more strict about the use of it's tags and variables, then keep adding support for programming in different ways.
My humble 2 cents
1423 viewed | 21 opinion(s) | del.icio.us | Digg it | Tjarko @ 10:04 cet
Simple, but effective mobile redirect function
<cffunction name="isMobile" returntype="boolean">
<cfset var ret = false />
<cfif cgi.http_accept contains "text/vnd.wap.wml" || cgi.http_accept contains "application/vnd.wap.xhtml+xml" || structKeyExists(cgi,"HTTP_X_WAP_PROFILE")>
<cfset ret = true />
<cfelseif findNoCase("iphone", cgi.http_user_agent)>
<cfset ret = true />
</cfif>
<cfreturn ret />
</cffunction>
<cfoutput>
Is it a mobile? #yesNoFormat(isMobile())#
</cfoutput> 1676 viewed | 1 opinion(s) | del.icio.us | Digg it | Tjarko @ 22:21 cet
Just some statistics for 2008
In the last year we didn't post that much on this blog and we will change that in the coming year... i hope :-) Just for the nerds here are some statistics.
Total visitors:
105.998Total pageviews:
198.863Visited by country - United States
- Unknown
- Germany
- Saudi Arabia
- Great Britain
- France
- India
- Netherlands
- Canada
- Japan
Most visited articles - Home
- RSS feed
- Fighting comment spam with project-honeypot
- How to find duplicate values in a table
- Java io ioexception parsing problem
- Multiple conditions in join statement
- Use not or use it's all possible
- How can i put a pound sign in my coldfusion output-
- Using coldfusion image functions to resize an image into a square thumbnail
For now I wish everybody a <cfgreat> 2009 and be carefull with the <cffireworks>!!
1200 viewed | Your opinion... | del.icio.us | Digg it | Tjarko @ 14:53 cet