RSS ? Recent Blog Posts

Blogs ยป Archive for March 9th, 2004

Replacing CreateTimeSpan()

by davidjmedlock

…posted by davidjmedlock:

I was reading up on some ColdFusion optimization techniques recently for work and I came across something that said you could increase the efficiency of caching your queries by eliminating the CreateTimeSpan() function used in the CachedWithin attribute of your cfquery tags.

Now, here’s my disclaimer: This is not really my idea. I saw it last week and for the life of me I can’t find it anywhere and I can’t remember where it was. (Seems like it was House of Fusion, but I didn’t see it in there unless I just missed it.) To the author who came up with it, if you read this let me know so I can give due credit. It’s pretty cool and I thought I’d share with our audience here.

CreateTimeSpan simply takes the days, hours, minutes, and seconds and converts them to a decimal number. This is based on days. So one day is 1, 1 day and 1 hour is 1.0416666666667 and so on. So, you can eliminate the function call to CreateTimeSpan() by doing a little junior high math on your own:

1 day: 1

 

Widget Overload

by sgrosvenor

Whilst i was traversing the web in the search for new and exciting things the other day, i bumped into a rather interesting site called Beam Jive Consulting.

They have a whole bunch of components to create interface applications and controlling applications, however the one that grabbed my eye was the BJC Control Component Set 1. This component set, whilst not free (retails at 70 Euros) offers some excellent widgets for controlling information within your interfaces, and saves hours of development time for rapid application development.

The BJC Control Component Set 1 contains the following components

BJC CCS1 Demo, BJC Analog Meter, BJC Digital Meter, BJC Poll Meter, BJC Button, BJC Switch, BJC Led, BJC Joystick, BJC Slider, BJC Wheel

Heres a Return On Investment (ROI) Calculator that i created in about an hour (with all the math) using the BJC Analog Meter component.

Definitely an interesting component suite and one that’s an instant time saver if you frequently use widgets in your applications for controlling feedback.

Click Below for and Example ROI Calculator using the BJC Analog Meter

http://www.phireworx.com/content/blog/sitepoint/roi_001.html

Details of the BJC Control Component Set 1 can be found below

https://store.beamjive.com/products_ccs1.php

 

Sponsored Links

SitePoint Marketplace

Buy and sell Websites, templates, domain names, hosting, graphics and more.