|By Christian Cantrell||
|July 11, 2003 12:00 AM EDT||
What is the Macromedia DevNet Resource Kit, and how can I get it? As both a Macromedia DevNet Resource Kit (DRK) product manager, and the Macromedia Server Community Manager, I hear these questions often from both the online and offline ColdFusion communities. Starting with volume 3, the DRK has become extremely relevant to ColdFusion developers, and future volumes will be no exception.
The DRK is a developer resource that Macromedia releases quarterly containing components, extensions, utilities, sample applications, and reference materials for several Macromedia products. DRK volumes 1 and 2 heavily emphasized Macromedia Flash and Dreamweaver; however, the goal of DRK 3 was to provide the ColdFusion community with a comprehensive and diverse set of ColdFusion content, including ColdFusion components, user-defined functions, custom tags, sample applications, book chapters, and articles. And although I can't go into detail about future DRKs, I can say that DRK 3 is just the beginning.
ColdFusion content on DRK 3 is divided into three parts: custom tags and components, utilities, and sample applications. In this article, I discuss my favorite projects in each category.
Custom Tags and Components
DRK 3 contains several custom tags and components that are designed to be integrated into other ColdFusion projects or utilities. Rather than being standalone applications, they can be considered application building blocks.
The Calendar Component
The calendar component is a model of a single page in a calendar. All you have to do is set the month and the year, then call getPage to get back a two-dimensional array that models the columns and rows of a calendar page. The two-dimensional array will always have seven columns (for every day of the week) and the right number of rows for the specified month and year. The values of the elements in the two-dimensional array will either be the appropriate day of the month, or -1 when they fall outside of the month's range.
The calendar component is really designed to encapsulate the messy logic you need to render calendar pages in HTML. It has all the functions you need to quickly and easily add a calendar to your site.
The Init Custom Tag
The init tag is a sophisticated encapsulation technique many developers already use to initialize and configure their applications. Any code in the body of the init tag is only executed the first time the tag is encountered during the life span of the application, so it's a great place to put your applications' initialization routines, like defining application variables for data sources, parsing XML files, etc. It is thread-safe, but not entirely synchronized, so you can use it in your Application.cfm file without worrying about single-threading your application and dramatically slowing it down. The init tag also allows you to dynamically reevaluate any code in its body simply by passing a special query string parameter in to the page that contains the tag, so you can update your configuration without having to restart your server.
The Recordpager Custom Tag
The recordpager custom tag automatically generates linked page numbers to allow users to browse through multiple pages of records returned from a database query. It is used in circumstances where you want to limit the number of records to display on a single page, but still allow users to access the rest of the records on subsequent pages. The generated page numbers are linked to a page that you specify, or will automatically default to the current page since paging through record sets usually means making multiple requests to the same page. The recordpager tag will also automatically pass the specified page the record number that it should start with when displaying the next set of records, as well as optionally allow you to pass in a struct with name/value pairs that also need to be passed to other pages of query results. Finally, you can pass style class definitions in to the recordpager in order to adapt its look and feel to any application.
DRK 3 contains a set of ColdFusion projects that are considered utilities, which means they are more extensive than just single tags and components, but are still designed to be integrated into larger projects. Here are two of my favorites:
Data File Access (DFA)
DFA allows ColdFusion developers to interact with XML and comma-delimited files (CSVs) as though they were database tables. The easiest and most flexible way to store and retrieve data in an application is to use a database and SQL; however for smaller projects, creating an entire database can be more hassle than it's worth. With DFA, you get all the advantages of using SQL to both save and retrieve data, but the underlying data structure is either an XML or CSV file.
Let's say you decide to put together a quick survey to allow your co-workers to vote on their favorite activity for a company picnic. You want to be able to save and retrieve the results quickly using SQL, but you might not want to go through the hassle of setting up a database. Using DFA, you can use a simple XML or CSV file to store your data while still being able to leverage the convenience of SQL. DFA even comes with the dfaQuery tag, which works almost exactly like the cfquery tag you are already accustomed to using.
Lindex (Lucene Indexing Engine)
One of the most powerful aspects of ColdFusion MX is that it is implemented almost entirely in Java. Writing utilities that leverage Java is less a matter of integrating ColdFusion MX and Java and more a matter of naturally using Java to extend ColdFusion. The fact that Java can be used so easily to extend ColdFusion means that developers can leverage all of the open-source Java projects out there, such as those being developed under the Apache Jakarta project.
DRK 3 contains a project called Lindex, which stands for Lucene Index. Lucene is an open-source Apache Jakarta project for creating and searching document collections. ColdFusion comes bundled with the Verity text search engine; however, the advantage of using Lindex to integrate Lucene into your applications is that since it is pure Java, it will run on any platform that ColdFusion MX runs on, including Macintosh OS X. That means you can develop and deploy your ColdFusion MX application on two separate platforms without having to worry about compatibility issues.
Lindex works almost identically to Verity in that you create collections which you then populate with text, HTML, PDF, and ColdFusion files. Lindex includes both a ColdFusion and a Java API, as well as an administrative interface very similar to the ColdFusion Verity interface.
DRK 3 contains two sample ColdFusion applications. You can use the ColdFusion sample applications on the DRK to learn best practices and see examples of development techniques and principles, or you can simply install them for your own use.
Macromedia XML News Aggregator
The Macromedia XML News Aggregator, or MXNA, is an extremely useful application for gathering, parsing, storing, and displaying RSS news feeds. RSS, or Really Simple Syndication, is an XML format that many news sites and weblogs publish in order to allow RSS aggregators to syndicate their content. For example, my weblog (www.macromedia.com/go/cantrell) does not just contain an HTML version of my posts, but it also produces an XML version, as well (www.macromedia.com/go/ccantrell_rss). Anyone is welcome to use my RSS feed to either aggregate the content of my weblog locally on their computer, or to republish the content of my XML feed anywhere they want.
MXNA is based on the source code for the Web site fullasagoog.com, which is a very popular aggregator of Macromedia MX - related weblogs. The MXNA source code on DRK 3 has a very different look than fullasagoog, however, and has a few extra features. You can see a production version of MXNA focusing on Macromedia MX technologies, technology news, and Web development in general, running at www.macromedia.com/go/weblogs.
If you go to Macromedia's version of MXNA, you will find that we are aggregating somewhere in the neighborhood of 150 feeds. Imagine trying to keep up with 150 news sites and weblogs which make anywhere between one and probably a dozen posts a day. MXNA allows you to visit a single site, browse by category, and quickly find posts that are relevant to you.
Running your own version of MXNA will allow you to customize both your feeds and your categories. At Macromedia, we run one external version of MXNA (at the URL above) and one internal version which we use to aggregate things like internal project status reports. With MXNA, you can easily set up your own personal RSS aggregator, or launch your own RSS portal.
RSS 1.0 XML Feed Creation and Management Application (RSSify)
RSSify is a Rich Internet Application, or RIA, which means the user interface is implemented in Macromedia Flash MX while the back end is implemented as a ColdFusion component. RSSify is an excellent example of integrating Macromedia Flash and ColdFusion using Macromedia Flash Remoting in order to achieve a richer, more efficient user experience.
RSSify provides users with a simple and intuitive interface for creating and managing RSS XML feeds. The interface allows users to import, save, load, delete, and author RSS feeds, as well as publish them to a server where they can be made accessible to the rest of the world. The Macromedia Flash interface handles the creation and formatting of the XML document while the ColdFusion back end handles the persistence and publishing of the feeds. RSSify is perfect when you need to generate an RSS news feed (to be aggregated by MXNA, for instance), but you don't already have an automated process for doing so.
To find out more about these and other ColdFusion projects on DRK 3, visit the DRK 3 home page at www.macromedia.com/go/drk3. To find out more about how you can get DRK 3 and future versions of the DRK, visit the Macromedia DevNet subscription page at www.macromedia.com/devnet/ subscriptions.
Note: Portions of this article were originally published on the Macromedia DevNet Resource Kit, Volume 3.
A strange thing is happening along the way to the Internet of Things, namely far too many devices to work with and manage. It has become clear that we'll need much higher efficiency user experiences that can allow us to more easily and scalably work with the thousands of devices that will soon be in each of our lives. Enter the conversational interface revolution, combining bots we can literally talk with, gesture to, and even direct with our thoughts, with embedded artificial intelligence, wh...
May. 26, 2016 12:00 AM EDT Reads: 1,881
The IoT is changing the way enterprises conduct business. In his session at @ThingsExpo, Eric Hoffman, Vice President at EastBanc Technologies, discuss how businesses can gain an edge over competitors by empowering consumers to take control through IoT. We'll cite examples such as a Washington, D.C.-based sports club that leveraged IoT and the cloud to develop a comprehensive booking system. He'll also highlight how IoT can revitalize and restore outdated business models, making them profitable...
May. 25, 2016 10:45 PM EDT Reads: 2,604
SYS-CON Events announced today that ContentMX, the marketing technology and services company with a singular mission to increase engagement and drive more conversations for enterprise, channel and SMB technology marketers, has been named “Sponsor & Exhibitor Lounge Sponsor” of SYS-CON's 18th Cloud Expo, which will take place on June 7-9, 2016, at the Javits Center in New York City, New York. “CloudExpo is a great opportunity to start a conversation with new prospects, but what happens after the...
May. 25, 2016 10:00 PM EDT Reads: 898
The essence of data analysis involves setting up data pipelines that consist of several operations that are chained together – starting from data collection, data quality checks, data integration, data analysis and data visualization (including the setting up of interaction paths in that visualization). In our opinion, the challenges stem from the technology diversity at each stage of the data pipeline as well as the lack of process around the analysis.
May. 25, 2016 08:30 PM EDT Reads: 1,222
The 19th International Cloud Expo has announced that its Call for Papers is open. Cloud Expo, to be held November 1-3, 2016, at the Santa Clara Convention Center in Santa Clara, CA, brings together Cloud Computing, Big Data, Internet of Things, DevOps, Containers, Microservices and WebRTC to one location. With cloud computing driving a higher percentage of enterprise IT budgets every year, it becomes increasingly important to plant your flag in this fast-expanding business opportunity. Submit y...
May. 25, 2016 06:00 PM EDT Reads: 1,893
SYS-CON Events announced today that MangoApps will exhibit at SYS-CON's 18th International Cloud Expo®, which will take place on June 7-9, 2016, at the Javits Center in New York City, NY. MangoApps provides modern company intranets and team collaboration software, allowing workers to stay connected and productive from anywhere in the world and from any device. For more information, please visit https://www.mangoapps.com/.
May. 25, 2016 05:45 PM EDT Reads: 503
Internet of @ThingsExpo, taking place November 1-3, 2016, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with the 19th International Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world and ThingsExpo New York Call for Papers is now open.
May. 25, 2016 05:00 PM EDT Reads: 1,725
Designing IoT applications is complex, but deploying them in a scalable fashion is even more complex. A scalable, API first IaaS cloud is a good start, but in order to understand the various components specific to deploying IoT applications, one needs to understand the architecture of these applications and figure out how to scale these components independently. In his session at @ThingsExpo, Nara Rajagopalan is CEO of Accelerite, will discuss the fundamental architecture of IoT applications, ...
May. 25, 2016 04:45 PM EDT Reads: 957
In his session at 18th Cloud Expo, Bruce Swann, Senior Product Marketing Manager at Adobe, will discuss how the Adobe Marketing Cloud can help marketers embrace opportunities for personalized, relevant and real-time customer engagement across offline (direct mail, point of sale, call center) and digital (email, website, SMS, mobile apps, social networks, connected objects). Bruce Swann has more than 15 years of experience working with digital marketing disciplines like web analytics, social med...
May. 25, 2016 04:00 PM EDT Reads: 1,201
SYS-CON Events announced today that Enzu, a leading provider of cloud hosting solutions, will exhibit at SYS-CON's 18th International Cloud Expo®, which will take place on June 7-9, 2016, at the Javits Center in New York City, NY. Enzu’s mission is to be the leading provider of enterprise cloud solutions worldwide. Enzu enables online businesses to use its IT infrastructure to their competitive advantage. By offering a suite of proven hosting and management services, Enzu wants companies to foc...
May. 25, 2016 03:45 PM EDT Reads: 2,127
Customer experience has become a competitive differentiator for companies, and it’s imperative that brands seamlessly connect the customer journey across all platforms. With the continued explosion of IoT, join us for a look at how to build a winning digital foundation in the connected era – today and in the future. In his session at @ThingsExpo, Chris Nguyen, Group Product Marketing Manager at Adobe, will discuss how to successfully leverage mobile, rapidly deploy content, capture real-time d...
May. 25, 2016 02:45 PM EDT Reads: 1,446
IoT generates lots of temporal data. But how do you unlock its value? How do you coordinate the diverse moving parts that must come together when developing your IoT product? What are the key challenges addressed by Data as a Service? How does cloud computing underlie and connect the notions of Digital and DevOps What is the impact of the API economy? What is the business imperative for Cognitive Computing? Get all these questions and hundreds more like them answered at the 18th Cloud Expo...
May. 25, 2016 02:15 PM EDT Reads: 2,134
As cloud and storage projections continue to rise, the number of organizations moving to the cloud is escalating and it is clear cloud storage is here to stay. However, is it secure? Data is the lifeblood for government entities, countries, cloud service providers and enterprises alike and losing or exposing that data can have disastrous results. There are new concepts for data storage on the horizon that will deliver secure solutions for storing and moving sensitive data around the world. ...
May. 25, 2016 02:00 PM EDT Reads: 1,156
What a difference a year makes. Organizations aren’t just talking about IoT possibilities, it is now baked into their core business strategy. With IoT, billions of devices generating data from different companies on different networks around the globe need to interact. From efficiency to better customer insights to completely new business models, IoT will turn traditional business models upside down. In the new customer-centric age, the key to success is delivering critical services and apps wit...
May. 25, 2016 01:45 PM EDT Reads: 981
SYS-CON Events announced today that 24Notion has been named “Bronze Sponsor” of SYS-CON's 18th Cloud Expo, which will take place on June 7-9, 2016, at the Javits Center in New York, New York. 24Notion is full-service global creative digital marketing, technology and lifestyle agency that combines strategic ideas with customized tactical execution. With a broad understand of the art of traditional marketing, new media, communications and social influence, 24Notion uniquely understands how to con...
May. 25, 2016 09:45 AM EDT Reads: 1,723
WebRTC is bringing significant change to the communications landscape that will bridge the worlds of web and telephony, making the Internet the new standard for communications. Cloud9 took the road less traveled and used WebRTC to create a downloadable enterprise-grade communications platform that is changing the communication dynamic in the financial sector. In his session at @ThingsExpo, Leo Papadopoulos, CTO of Cloud9, will discuss the importance of WebRTC and how it enables companies to fo...
May. 25, 2016 04:45 AM EDT Reads: 2,450
SYS-CON Events announced today TechTarget has been named “Media Sponsor” of SYS-CON's 18th International Cloud Expo, which will take place on June 7–9, 2016, at the Javits Center in New York City, NY, and the 19th International Cloud Expo, which will take place on November 1–3, 2016, at the Santa Clara Convention Center in Santa Clara, CA. TechTarget is the Web’s leading destination for serious technology buyers researching and making enterprise technology decisions. Its extensive global networ...
May. 25, 2016 04:15 AM EDT Reads: 3,065
Korean Broadcasting System (KBS) will feature the upcoming 18th Cloud Expo | @ThingsExpo in a New York news documentary about the "New IT for the Future." The documentary will cover how big companies are transmitting or adopting the new IT for the future and will be filmed on the expo floor between June 7-June 9, 2016, at the Javits Center in New York City, New York. KBS has long been a leader in the development of the broadcasting culture of Korea. As the key public service broadcaster of Korea...
May. 25, 2016 04:00 AM EDT Reads: 1,727
With major technology companies and startups seriously embracing IoT strategies, now is the perfect time to attend @ThingsExpo 2016 in New York and Silicon Valley. Learn what is going on, contribute to the discussions, and ensure that your enterprise is as "IoT-Ready" as it can be! Internet of @ThingsExpo, taking place Nov 3-5, 2015, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with 17th Cloud Expo and will feature technical sessions from a rock star conference faculty ...
May. 24, 2016 06:00 PM EDT Reads: 4,694
There are several IoTs: the Industrial Internet, Consumer Wearables, Wearables and Healthcare, Supply Chains, and the movement toward Smart Grids, Cities, Regions, and Nations. There are competing communications standards every step of the way, a bewildering array of sensors and devices, and an entire world of competing data analytics platforms. To some this appears to be chaos. In this power panel at @ThingsExpo, moderated by Conference Chair Roger Strukhoff, panelists will discuss the vast to...
May. 24, 2016 04:00 PM EDT Reads: 2,390