|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.
"We work in the area of Big Data analytics and Big Data analytics is a very crowded space - you have Hadoop, ETL, warehousing, visualization and there's a lot of effort trying to get these tools to talk to each other," explained Mukund Deshpande, head of the Analytics practice at Accelerite, in this SYS-CON.tv interview at 18th Cloud Expo, held June 7-9, 2016, at the Javits Center in New York City, NY.
Jul. 2, 2016 01:30 AM EDT Reads: 847
Cloud Expo, Inc. has announced today that Andi Mann returns to 'DevOps at Cloud Expo 2016' as Conference Chair The @DevOpsSummit at Cloud Expo will take place on November 1-3, 2016, at the Santa Clara Convention Center in Santa Clara, CA. "DevOps is set to be one of the most profound disruptions to hit IT in decades," said Andi Mann. "It is a natural extension of cloud computing, and I have seen both firsthand and in independent research the fantastic results DevOps delivers. So I am excited t...
Jul. 2, 2016 01:00 AM EDT Reads: 764
Basho Technologies has announced the latest release of Basho Riak TS, version 1.3. Riak TS is an enterprise-grade NoSQL database optimized for Internet of Things (IoT). The open source version enables developers to download the software for free and use it in production as well as make contributions to the code and develop applications around Riak TS. Enhancements to Riak TS make it quick, easy and cost-effective to spin up an instance to test new ideas and build IoT applications. In addition to...
Jul. 1, 2016 08:30 PM EDT Reads: 807
IoT is rapidly changing the way enterprises are using data to improve business decision-making. In order to derive business value, organizations must unlock insights from the data gathered and then act on these. In their session at @ThingsExpo, Eric Hoffman, Vice President at EastBanc Technologies, and Peter Shashkin, Head of Development Department at EastBanc Technologies, discussed how one organization leveraged IoT, cloud technology and data analysis to improve customer experiences and effi...
Jul. 1, 2016 06:30 PM EDT Reads: 785
Internet of @ThingsExpo has announced today that Chris Matthieu has been named tech chair of Internet of @ThingsExpo 2016 Silicon Valley. The 6thInternet of @ThingsExpo will take place on November 1–3, 2016, at the Santa Clara Convention Center in Santa Clara, CA.
Jul. 1, 2016 06:00 PM EDT Reads: 551
Presidio has received the 2015 EMC Partner Services Quality Award from EMC Corporation for achieving outstanding service excellence and customer satisfaction as measured by the EMC Partner Services Quality (PSQ) program. Presidio was also honored as the 2015 EMC Americas Marketing Excellence Partner of the Year and 2015 Mid-Market East Partner of the Year. The EMC PSQ program is a project-specific survey program designed for partners with Service Partner designations to solicit customer feedbac...
Jul. 1, 2016 05:30 PM EDT Reads: 798
The cloud promises new levels of agility and cost-savings for Big Data, data warehousing and analytics. But it’s challenging to understand all the options – from IaaS and PaaS to newer services like HaaS (Hadoop as a Service) and BDaaS (Big Data as a Service). In her session at @BigDataExpo at @ThingsExpo, Hannah Smalltree, a director at Cazena, provided an educational overview of emerging “as-a-service” options for Big Data in the cloud. This is critical background for IT and data profession...
Jul. 1, 2016 05:15 PM EDT Reads: 659
"There's a growing demand from users for things to be faster. When you think about all the transactions or interactions users will have with your product and everything that is between those transactions and interactions - what drives us at Catchpoint Systems is the idea to measure that and to analyze it," explained Leo Vasiliou, Director of Web Performance Engineering at Catchpoint Systems, in this SYS-CON.tv interview at 18th Cloud Expo, held June 7-9, 2016, at the Javits Center in New York Ci...
Jul. 1, 2016 04:15 PM EDT Reads: 270
Ask someone to architect an Internet of Things (IoT) solution and you are guaranteed to see a reference to the cloud. This would lead you to believe that IoT requires the cloud to exist. However, there are many IoT use cases where the cloud is not feasible or desirable. In his session at @ThingsExpo, Dave McCarthy, Director of Products at Bsquare Corporation, will discuss the strategies that exist to extend intelligence directly to IoT devices and sensors, freeing them from the constraints of ...
Jul. 1, 2016 03:15 PM EDT Reads: 340
Connected devices and the industrial internet are growing exponentially every year with Cisco expecting 50 billion devices to be in operation by 2020. In this period of growth, location-based insights are becoming invaluable to many businesses as they adopt new connected technologies. Knowing when and where these devices connect from is critical for a number of scenarios in supply chain management, disaster management, emergency response, M2M, location marketing and more. In his session at @Th...
Jul. 1, 2016 02:00 PM EDT Reads: 1,437
Extracting business value from Internet of Things (IoT) data doesn’t happen overnight. There are several requirements that must be satisfied, including IoT device enablement, data analysis, real-time detection of complex events and automated orchestration of actions. Unfortunately, too many companies fall short in achieving their business goals by implementing incomplete solutions or not focusing on tangible use cases. In his general session at @ThingsExpo, Dave McCarthy, Director of Products...
Jul. 1, 2016 01:15 PM EDT Reads: 357
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, Bradley Holt, Developer Advocate a...
Jul. 1, 2016 01:00 PM EDT Reads: 1,053
The Internet of Things will challenge the status quo of how IT and development organizations operate. Or will it? Certainly the fog layer of IoT requires special insights about data ontology, security and transactional integrity. But the developmental challenges are the same: People, Process and Platform and how we integrate our thinking to solve complicated problems. In his session at 19th Cloud Expo, Craig Sproule, CEO of Metavine, will demonstrate how to move beyond today's coding paradigm ...
Jul. 1, 2016 01:00 PM EDT Reads: 709
Apixio Inc. has raised $19.3 million in Series D venture capital funding led by SSM Partners with participation from First Analysis, Bain Capital Ventures and Apixio’s largest angel investor. Apixio will dedicate the proceeds toward advancing and scaling products powered by its cognitive computing platform, further enabling insights for optimal patient care. The Series D funding comes as Apixio experiences strong momentum and increasing demand for its HCC Profiler solution, which mines unstruc...
Jul. 1, 2016 12:30 PM EDT Reads: 694
SYS-CON Events has announced today that Roger Strukhoff has been named conference chair of Cloud Expo and @ThingsExpo 2016 Silicon Valley. The 19th Cloud Expo and 6th @ThingsExpo will take place on November 1-3, 2016, at the Santa Clara Convention Center in Santa Clara, CA. "The Internet of Things brings trillions of dollars of opportunity to developers and enterprise IT, no matter how you measure it," stated Roger Strukhoff. "More importantly, it leverages the power of devices and the Interne...
Jul. 1, 2016 12:00 PM EDT Reads: 664
In addition to all the benefits, IoT is also bringing new kind of customer experience challenges - cars that unlock themselves, thermostats turning houses into saunas and baby video monitors broadcasting over the internet. This list can only increase because while IoT services should be intuitive and simple to use, the delivery ecosystem is a myriad of potential problems as IoT explodes complexity. So finding a performance issue is like finding the proverbial needle in the haystack.
Jul. 1, 2016 10:45 AM EDT Reads: 588
Machine Learning helps make complex systems more efficient. By applying advanced Machine Learning techniques such as Cognitive Fingerprinting, wind project operators can utilize these tools to learn from collected data, detect regular patterns, and optimize their own operations. In his session at 18th Cloud Expo, Stuart Gillen, Director of Business Development at SparkCognition, discussed how research has demonstrated the value of Machine Learning in delivering next generation analytics to imp...
Jul. 1, 2016 10:30 AM EDT Reads: 1,118
Whether your IoT service is connecting cars, homes, appliances, wearable, cameras or other devices, one question hangs in the balance – how do you actually make money from this service? The ability to turn your IoT service into profit requires the ability to create a monetization strategy that is flexible, scalable and working for you in real-time. It must be a transparent, smoothly implemented strategy that all stakeholders – from customers to the board – will be able to understand and comprehe...
Jul. 1, 2016 10:00 AM EDT Reads: 542
The cloud market growth today is largely in public clouds. While there is a lot of spend in IT departments in virtualization, these aren’t yet translating into a true “cloud” experience within the enterprise. What is stopping the growth of the “private cloud” market? In his general session at 18th Cloud Expo, Nara Rajagopalan, CEO of Accelerite, explored the challenges in deploying, managing, and getting adoption for a private cloud within an enterprise. What are the key differences between wh...
Jul. 1, 2016 09:30 AM EDT Reads: 1,217
The IoT is changing the way enterprises conduct business. In his session at @ThingsExpo, Eric Hoffman, Vice President at EastBanc Technologies, discussed how businesses can gain an edge over competitors by empowering consumers to take control through IoT. He cited examples such as a Washington, D.C.-based sports club that leveraged IoT and the cloud to develop a comprehensive booking system. He also highlighted how IoT can revitalize and restore outdated business models, making them profitable ...
Jul. 1, 2016 09:00 AM EDT Reads: 713