24 September 2007

Scale 9 "On Time"

Reduce stying time and up production value

Categories:   Flex

So, a few months back I went to the 360|Flex conference in Seattle, and met someone name Juan Sanchez who runs a little site called Scale 9.  This site is a collection of Flex and AIR themes that you can incorporate into your own Flex and AIR apps. 


Each theme is a collection of skins and CSS stylesheets that really up's the production value of your app's components and the entire project itself.  I was able to skin an entire app to the Windows Vista theme in less than 10 minutes.  Wow!  What a great timesaver, and the look is totally cool and professional.  Big thanks go out to Juan for such an awesome site which by the way is chocked full of Flex and RIA resources.  Please show Juan some love and visit and support his site.

www.scalenine.com

21 September 2007

Seconds Past Midnight

SQL Server conversion

Categories:   ColdFusion

Recently I was tasked with creating an automatic email appointment reminder system for a healthcare practice.  While building the app, I discovered that the database stores it's appointment time values as an integer, calculated as "seconds past midnight".  So for example 1:30PM get stored as 48600.  I needed to convert this integer to a readable time format.  I could do this in Flex or ColdFusion as a separate calculation function, but discovered that SQL Server could do this for me on the fly right in the SELECT statement using the DATEADD() function.   Here is the code in ColdFusion:

<!---Set todays date--->
<cfparam name="TodayDate" default="#DateFormat(Now(), "mm/dd/yyyy")#">

<!---Query Database using DATEADD() function and alias the field as DBApptTime--->
<cfquery datasource="YourDSN" name="test">
SELECT DATEADD(s,ApptTimeFieldName,#TodaysDate#) as DBApptTime
FROM AppointmentTable
</cfquery>

<!---Comes back as "Year-Month-Day Hour:Minute:Second:Millisecond" format--->

<cfset displayAppointmentTime = #TimeFormat(DBApptTime, "hh:mm tt")#>
<!---TimeFormat CF function removes the "Year-Month-Day" part, and formats the time to a common display with AM/PM.  Note:  Use capitol HH:MM for military time display--->

<cfoutput>#displayAppointmentTime#</cfoutput>

Works like a charm everytime!
-Christopher Keeler

20 September 2007

Flash Media Server 3 and Flash Lite 3

mobile devices just got a lot more interesting

Categories:   Flash Media Server

Just recently, Adobe announced some features for the soon to be released Flash Media Server 3.  Some of the features include:

  • RTMPE : Real Time Messaging Protocol (RTMP) will be enhanced with new, higher performance encryption to help to secure streamed media and communication.
  • H.264 support : Adobe Flash Media Server 3 will support streaming of industry standard H.264 and HE-AAC video and audio content to Flash Player, AIR and Adobe Media Player. FMS3 will also support enhanced seeking forH.264 content, which means you, can seek to any point within the video and start streaming quickly.
  •  Improved live streaming
  • Flex 3 and Flash CS3 support: The documentation and help systems have also been completely updated to support ActionScript 3 in Flex and Flash CS3.
  • Stream republishing from server to server (stream push)
  • New C++ based plugin architecture

One of the cool things that is also mentioned is the delivery to Flash Lite 3, and the mobile devices that support it.  This includes live and pre-recorded steams, so the same experience in the browser can now be on mobile devices as well.  Awesome possibilities.