» Fig Leaf Software Home

We've Got You Covered.

Thursday, September 3, 2015

Best of the Web Award: Louisville Metro Government's new Drupal Site

Fig Leaf Software develops award-winning Drupal websites

Louisville Metro Government received a Best of the Web (BOW) Award from the Center for Digital Government which also promotes and announces the Digital Government Achievement Awards annually.

"In its 20th year, the annual Best of the Web (BOW) awards recognize city, county and state governments for outstanding portals and websites based on innovation, functionality, productivity and performance. This year’s first-place BOW winners are the City of Independence, Missouri; Sacramento County, California; and the State of Arkansas in the state category, a first-place winner also in 2011." ~ According to the organization's website.

Louisville Metro Government received 2nd place in the City Portal Category: 2015 Best of the Web Award. 

The award-winning site was implemented in the Drupal Content Management System (CMS) by Fig Leaf Software.  Louisville contracted Fig Leaf Software to implement a new responsive design for the the public website and to implement the Drupal CMS on the Acquia platform. In addition to theming the design in Drupal, the Fig Leaf team also helped improve the user experience, and design a content strategy and migration plan.  

With the revamp of Louisville’s website and streamlining of content, the city is better prepared to serve its constituents. Since Fig Leaf implemented the design theme in Drupal, non-technical staff members are now able to quickly and easily manage and maintain site content based on their role. Visitors ability to perform self service tasks has been greatly enhanced.

Following the initial public website launch (www.louisvilleky.gov), the Fig Leaf team embarked on the second phase of the launch, a user-based My Louisville tool. The My Louisville custom toolbox experience will enable users to isolate and save the most important items on the site depending on their location and role.

If a user needs to locate the closest fire or police department to their home or find out who the council members are for their district, MyLouisville will be able to provide that information very quickly. This toolbox will allow citizens to more easily interact with with the city of Louisville, and will be launched in the next few months. 

Fig Leaf partnered with the City of Louisville Kentucky, to redesign and relaunch the website on the Drupal 7 platform. The design is fully-responsive and was based on a series of mock-ups the city created as a starting point. Fig Leaf’s design team and the Louisville Metro Government key stakeholders worked iteratively to improve the visual treatments with an emphasis on usability and a clean look and feel.
Fig Leaf’s team closely collaborated with the city’s in-house technology team, to identify the best possible modules combined with minimal-but-powerful custom code to meet the needs of Louisville Metro Government visitors. The site required easily discoverable information for diverse audiences, a robust user engagement approach and cost-effective maintainability which could be expanded by the City’s in-house technologist. Fig Leaf also created a new Drupal module for publicity-photo management which will be shared with the Drupal community.  

Tuesday, August 25, 2015

Department of Interior Launches New Public Website on Drupal Open Source CMS

New Mobile First Drupal Website will Promote Citizen Engagement

Washington, DC: August 25, 2015 – Fig Leaf Software, an award winning digital agency, is proud to announce that Fig Leaf Software, in partnership with Phase2 Technology, has successfully migrated and launched the new www.doi.gov website onto the Department of Interior’s new Drupal CMS platform.  Fig Leaf Software and Phase2 completed the migration onto the OpenPublic on SoftLayer cloud platform created by Phase2 and IBM.  
"The Department of the Interior’s innovative approach to consolidating the agency’s content management systems onto a single open source cloud platform will provide a great example for how other government agencies and organizations can be successful with citizen engagement using open source platforms. Fig Leaf Software is very excited to be working with DOI and Phase2 in making this a successful launch."  ~ Dave Gallerizzo USMCR (Ret.), CEO of Fig Leaf Software
The Department of Interior had the goal to consolidate nine Content Management Systems into a single common platform based on the Drupal CMS platform.  In 2014 the Fig Leaf / Phase2 team was selected from a large field of vendors to be a part of a multi-company BPA dedicated to support the Drupal platform at DOI and their CMS consolidation efforts.

About Fig Leaf Software: Fig Leaf Software is a certified Service-Disabled Veteran-Owned Small Business (SDVOSB) and a full-service digital agency specializing in marketing, web and mobile design, development and web professional training. For 20 years, Fig Leaf Software has helped organizations overcome business challenges through the implementation of technology and award-winning design. Fig Leaf Software is closely partnered with Amazon (AMZN), Google (GOOG), Adobe (ADBE), Acquia, EPiServer, Ektron, PaperThin, Sencha, HubSpot (HUBS) and Brightcove (BCOV).  Fig Leaf Software's team is comprised of talented marketers, developers, graphic artists and designers with years of experience delivering web and mobile applications and developing public websites, portals, intranets, extranets. The company's training division has provided certified training for more than 35,000 web professionals in the Google Search Appliance, Google Apps for Business, Acquia Drupal, Adobe ColdFusion and more. Visit www.figleaf.com or call 202-797-7711 to learn more about our products, training or consulting services.
# # #
If you would like more information about this topic, please contact Bret Peters, Chief Marketing Officer, at 202-797-7711 x109 or email at bpeters@figleaf.com.

Friday, July 31, 2015

Screen scraper changes between GSA 7.0 and 7.2+


A few years back, the Google team at Fig Leaf Software built a custom application in .NET to manage Google Search Appliance functionality using a rules engine of sorts, rather than requiring manual interaction with the GSA. I didn't build it; we have a very skilled .NET development team that did almost all of the heavy lifting, and all I had to do was build a very simple prototype.

To interact programmatically with the GSA, Google provides an administrative API that can be accessed from any language, along with client libraries for .NET and Java. Unfortunately, not all admin console functionality is exposed via the admin API. You probably know what that means - screen scraping is needed if you want to access that functionality. Writing screen scrapers is no fun, because the data format is likely to change pretty frequently, and that's exactly what happened when this customer upgraded from GSA 7.0 to 7.2. All the admin API functionality worked, but the ability to upload and delete synonym files no longer worked, because that relied on screen scraping.

Of course, the request/response format for screen scraping is undocumented, so you typically have to figure out what the server is looking for using a recording proxy or packet sniffer. I really like Fiddler for this sort of thing. It's a lot less complicated than something like Wireshark, and really shows you everything you need to see in HTTP. That's basically the approach we followed to build the initial application, and it's how we upgraded it to support GSA 7.2/7.4. If you know how to build screen scrapers, there's nothing you can't figure out on your own, but I thought this might save a few valuable hours for someone out there.

Login process

The first problem the customer reported was that the login was failing on 7.2. Foolishly, I thought that would be the only change - what was I thinking? Nevertheless, that obviously had to be resolved first, so I took a look at the login process against a 7.0 vs a 7.2 GSA.

On 7.0, the login process is pretty simple. The client sends a GET request, and the first response from the GSA sets a session cookie. Then, the client sends a POST request with a MIME type of application/x-www-urlencoded that contains three parameters, like this (assuming a username  "admin" and password "figleaf"):

POST /EnterpriseController HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: gsa.figleaf.local:8000
Cookie: S=enterprise=P10OlkGyca0
Content-Length: 60
Expect: 100-continue


On 7.2, things are a bit more complicated. The HTML form on the GSA itself creates two parameters, actionType and reqObj. The second parameter is an array, and prior to being URL-encoded contains a value like this:


I have no idea what the other parameters represent, but they don't seem to change, so I don't care! The string containing the parameters must be URL-encoded, so you end up with something like this for the entire POST request:

POST EnterpriseController?a=1 HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: gsa.figleaf.local:8000
Cookie: S=enterprise=P10OlkGyca0
Content-Length: 87
Expect: 100-continue


There's another difference, too - the action URL has an extra parameter, a=1. I don't really know what that represents, but you won't successfully login without it.

One last issue, which will occur with many screen scraping operations, is that you typically want to search the response for specific bits of text to extract values, or learn whether the operation succeeded. Many of these had changed between 7.0 and 7.2. Specifically, for 7.2, we can look for the text "login_err" which is actually quite nice!

Query Settings page

Once that was working, we quickly discovered that the synonym management functionality didn't work. Since that was the entire purpose of this screen scraper, fixing the login wasn't enough.

To upload a new synonym file, you need a POST request with a MIME type of multipart/form-data. Here's what that looks like for GSA 7.0:

POST /EnterpriseController HTTP/1.1
Content-Type: multipart/form-data; boundary=----------8d2993bd51d1414
Host: gsa.figleaf.local:8000
Cookie: S=enterprise=KbhJUSnSvA4
Content-Length: 853
Expect: 100-continue

Content-Disposition: form-data; name="type";

Content-Disposition: form-data; name="syn_lang_select";

Content-Disposition: form-data; name="sw_lang_select";

Content-Disposition: form-data; name="itemName";

Content-Disposition: form-data; name="actionType";

Content-Disposition: form-data; name="security_token";

Content-Disposition: form-data; name="upload";

Content-Disposition: form-data; name="fileName"; filename="tst_en.txt"
Content-Type: text/plain


With GSA 7.2, the "type" field is now "qeType", and you need to add "a=1" again.

POST /EnterpriseController HTTP/1.1
Content-Type: multipart/form-data; boundary=----------8d2993d49e9990f
Host: gsa.figleaf.local:8000
Cookie: S=enterprise=ccjbLm2KD2Y
Content-Length: 932
Expect: 100-continue

Content-Disposition: form-data; name="qeType";

Content-Disposition: form-data; name="a";

Content-Disposition: form-data; name="syn_lang_select";

Content-Disposition: form-data; name="sw_lang_select";

Content-Disposition: form-data; name="itemName";

Content-Disposition: form-data; name="actionType";

Content-Disposition: form-data; name="security_token";

Content-Disposition: form-data; name="upload";

Content-Disposition: form-data; name="fileName"; filename="tst_en.txt"
Content-Type: text/plain


Odds and ends

I didn't run into this myself, but you may run into AJAX calls for some changes. The GSA admin console has changed quite a bit in GSA 7.2, and uses AJAX for some functionality. If so, you'll need to extract the security token from the previous AJAX response rather than from the form. For each data submission, a one-time-use security token is injected into each form or AJAX response, and you have to send it back with the subsequent request. In the case of synonyms, the security token is still in a form, but I did notice it in some of the AJAX responses I got while doing other things.


Ideally, we should never have to write screen scrapers. If you need something that isn't exposed by the admin API, open a support ticket and submit a feature request - maybe it'll be in the next admin API version! But if you have an existing screen scraper for GSA 7.0 and can't wait for a Google API upgrade, you may find this useful when upgrading to GSA 7.2 or higher.

[Note: cross-posted on Dave Watts' personal blog]

Wednesday, June 17, 2015

New Sass Class Added: Fast Track to Syntactically Awesome Stylesheets

Washington, DC and Online - Fig Leaf Software, a full service digital agency and technical training firm, today added a new Fast Track to Syntactically Awesome Stylesheets class.  

Sass is the most mature, stable, and powerful professional grade CSS extension language in the world. Sass lets you use features that don't exist in CSS yet like variables, nesting, mixins, inheritance and other nifty goodies that make writing CSS fun again. Once you start tinkering with Sass, it will take your preprocessed Sass file and save it out as a normal CSS file that you can use in your web site. This one-day course covers Sass and Compass (a CSS authoring framework for Sass) development essentials. Whether you're developing a static site, a dynamic site with a CMS (Drupal), or building an advanced web-based application (Sencha), you'll find that Sass is an indispensable tool for taming and optimizing your CSS.

Course Prerequisites

To gain the most from this class, you should already have:
  • A basic understanding of CSS syntax
  • Familiariaty with basic programming concepts such as defining variables and using functions

Course Objectives

During this 1 day hands-on, instructor-led course you will refactor a very long and difficult to maintain CSS file into a set of .scss (Sassy CSS) files. You'll learn how to restructure your CSS for optimal maintainabilty and produce minified production builds. You'll also learn how to use advanced CSS tricks such as base-64 encoding of images to significantly increase the performance of your web sites and web applications.

Course Outline


  • Introducing Compass and Sass
  • Debugging CSS
  • Working with Variables
  • Using Partials to Organize your Stylesheet
  • Nesting Rules
  • Creating Responsive Themes with @media Directives
  • Defining Inheritance with @extend
  • Defining and Invoking Mixins
  • Using Control Directives
  • Defining Sass Functions
  • Configuring Browser Support
  • Using Compass to Support CSS3 Features
  • Using Compass for Typography
  • Embedding Images in your Stylesheet
  • Using Sprites to Improve Performance

Fig Leaf Software has trained more than 35,000 web designers, developers and marketers in the nuances of web and mobile design and development.  Fig Leaf is a Service-Disabled, Veteran-Owned Small Business (SDVOSB) providing consulting, training and software solutions on GSA Schedule to government agencies, universities, companies, and nonprofits in DC, MD, VA and across North America. 

Thursday, June 4, 2015

New Fast Track to Adobe ColdFusion 11 Training Launched!

Washington DC and Online -- Fig Leaf Software recently launched a new Fast Track to ColdFusion 11 training class.  The new FTCF 11 class is a 3-day course that provides experienced Web developers with the knowledge and hands-on practice they need to start building and maintaining dynamic and interactive Web applications using the ColdFusion application server. 

This course was authored by Fig Leaf Software, based on decades of practical ColdFusion consulting experience. Adobe ColdFusion is available as a private or public class.  For private classes, please contact Steve Drucker at 415-8483 or email training@figleaf.com

Register Today

ColdFusion 11 Course Prerequisites

To gain the most from the class, you should already have:
  • A familiarity with Web terminology
  • An understanding of Web server characteristics
  • Experience with the HTML tag set and syntax
  • Familiarity with the SQL command set, including SELECT, INSERT, UPDATE, and DELETE

Course Objectives

  • Create a connection to a database using the ColdFusion Administrator
  • Use ColdFusion Builder to efficiently develop and troubleshoot code
  • Capture information in HTML forms
  • Read and write information to/from a database.
  • Represent complex structures using abstract data types รข€“ lists, arrays, and structures
  • Separate your application into a three-tiered architecture of User Interface components, Business Logic, and SQL for easier maintainability and flexibility
  • Dynamically send electronic mail
  • Secure your application using a password-based framework
  • Implement a RESTful API to support modern javascript-based web apps
  • Implement a simple ColdFusion application using best practices.

Course Outline

Unit 1: Introducing the Course

  • Meeting the Prerequisites
  • Understanding the Course Format
  • Reviewing the Course Outline

Unit 2: Introducing ColdFusion [click here to download this chapter]

  • Reviewing ColdFusion's Features and Capabilities
  • Introducing the ColdFusion Administrator
  • Working with ColdFusion Builder
  • Debugging and Troubleshooting your Apps

Unit 3: Getting Started with CFML

  • Working with Variables
  • Commenting Code
  • Using Functions
  • Creating Functions
  • Using Control Logic
  • Including Common Code

Unit 4: Using the Application Framework

  • Using Application.cfc to Define an Application
  • Implementing ColdFusion Components
  • Implementing Roles-Based Security

Unit 5: Querying Databases

  • Using <cfquery> to retrieve data
  • Implementing Search Forms
  • Inserting New Records
  • Supporting File Uploads
  • Updating Existing Records
  • Deleting Data
  • Invoking Stored Procedures

Unit 6: Dynamically Generating Office Documents

  • Generating PDFs
  • Generating Excel Files
  • Sending Email

Unit 7: Designing and Implementing RESTful APIs

  • Exposing CFC Methods for Remote Access
  • Implementing a RESTful API
Register Today

About Us

Fig Leaf Software is an award-winning team of imaginative designers, innovative developers, experienced instructors, and insightful strategists.

For over 20 years, we’ve helped a diverse range of clients...

Read More

Contact Us


Fig Leaf Software

1400 16th Street NW
Suite 450
Washington, DC 20036