by Adam Tuttle
Slides: http://fusiongrokker.com/p/integrate
Links:
RewriteLog C:\Inetpub\ATuttle\meta_files\fusiongrokker.com\iirfLog.out | |
RewriteLogLevel 0 | |
RewriteFilterPriority HIGH | |
###### force removal of www. prefix on all requests | |
RewriteCond %{HTTP_HOST} www.fusiongrokker.com(.*) [I] | |
RewriteRule ^/(.*) http://fusiongrokker.com/$1 [I,R=301,U,L] | |
###### fix old links |
by Adam Tuttle
Slides: http://fusiongrokker.com/p/integrate
Links:
<cfscript> | |
try { | |
throw(type="com.myService.BarException"); | |
} catch(com.myService.FooException e){ | |
writeOutput("caught it @ com.myService.FooException"); |
https://bugbase.adobe.com/index.cfm?event=bug&id=3525456
Here's a simple repro case. Since this test involves ORM, you'll have to create a DSN. I'm testing against MySQL but it should be DB agnostic (that's part of the draw of ORM, right?)...
Just create a database and a new DSN named "repro" (or update the code accordingly), put foo.cfc into a folder named "orm", and everything else should work as expected.
{ | |
"dependencies": { | |
"redis": "^0.10.1" | |
} | |
} |
<cfscript> | |
//to initialize to a random number instead of 50, set last to "" | |
last = 50; | |
for(var i = 1; i <= 100; i++){ | |
last = trendingRandom( 0, 100, 12, last ); | |
writeOutput( "#last#<br/>" ); | |
} | |
</cfscript> |
component { | |
function getEnvironment(){ | |
if (cgi.server_name contains ".local" or cgi.server_name contains ".dev"){ | |
return "dev"; | |
} | |
if (cgi.server_name contains "qa."){ | |
return "qa"; | |
} | |
return "prod"; |
component accessors="true" { | |
property framework; | |
property memberService; | |
function before( rc ){ | |
local.safeEvents = 'main:member.login,main:member.forgot,main:member.resetpassword'; | |
//require login for everything in this controller except login method | |
if (!structKeyExists(session, 'user')){ |
[user] | |
name = Adam Tuttle | |
email = adam@fusiongrokker.com | |
[color] | |
ui = auto | |
[core] | |
autocrlf = input | |
excludesfile = /Users/adam/.gitignore_global | |
[push] | |
default = tracking |
{ | |
"preset": "node-style-guide" | |
,"validateIndentation": "\t" | |
,"disallowAnonymousFunctions": true | |
,"disallowSpacesInsideParentheses": { "only": [ "{", "}" ] } | |
,"requireSpacesInsideParentheses": { "all": true, "except": [ "{", "}" ] | |
,"requireSpacesInsideBrackets": { "allExcept": [ "[", "]", "{", "}" ] }} | |
,"requireSpacesInsideObjectBrackets": "allButNested" | |
,"validateParameterSeparator": ", " | |
,"disallowCommaBeforeLineBreak": true |