Showing posts with label coldfusion. Show all posts
Showing posts with label coldfusion. Show all posts

Monday, June 29, 2009

coldfusion custom debug

my own coldBox inspired debug output
coldfusion Debug - josh style

check it out, I'll work on it occasionally

Saturday, January 17, 2009

Google Code

I have started to play around with creating a project on code.google.com and now have a project setup at
http://code.google.com/p/coldfusion-crud-generator/
this Generator will generate DAO, beans, controllers, the edit page, the grid page, along with the folder structure. Check it out to learn more, it still is a work in progress but I think its a good start to just exploring some Coldfusion fun.

Tuesday, December 30, 2008

Proper fix for cfgrid having empty rows and wrong information on last page

<cfset startRow = ((page-1) * pageSize) + 1 />
<cfset endRow = startRow + pageSize - 1 />
<cfset tmpQuery = queryNew(get_query.columnList) />
<cfloop query="get_query" startRow="#startRow#" endRow="#endRow#">
<cfset tmp = queryAddRow(tmpQuery) />
<cfloop list="#get_query.columnList#" index="column">
<cfset tmp = querySetCell(tmpQuery,column,evaluate("get_query.#column#")) />
</cfloop>
</cfloop>
<cfset gridQuery = structNew() />
<cfset gridQuery.query = tmpQuery />
<cfset gridQuery.totalrowcount = get_query.recordcount />
<cfreturn gridQuery />




big thanks to Paul

Thursday, August 28, 2008

getTimeZone Information Example

GetTimeZoneInfo Example





The local date and time are #now()#.




Total offset in seconds is #info.utcTotalOffset#.


Offset in hours is #info.utcHourOffset#.


Offset in minutes minus the offset in hours is
#info.utcMinuteOffset#.


Is Daylight Savings Time in effect? #info.isDSTOn#.



Thursday, June 28, 2007

More Updates

Alright so I tried moving the blogger stuff to my own server, but a lot of the widgets stop working then, and I really like them, but I have learned a heck of a lot about the blogger code and how little of it is actually important. Technically I would have kept it on my server except that I am too lazy to always update the template as the search functions would generate html files instead of cfm pages so my cfinclude statements wouldn't work, and that just ain't cool with me. Anyways Its probably better if the server doesn't get that much activity anyways, but I know plan to throw up some coldfusion examples, maybe just for me for future reference.

On a side note one of my favorite blog sites, Ajaxcold, is no longer there, looks like it has been deleted, so before the Google cache disappears I'll repost some of them on here, hopefully the Antonio Lupetti won't get mad as I think he is now working a new projects.