…Just as software developers do not fork and modify an XML library if they want to parse XML, infrastructure automation developers should be able to depend on high-quality, well-maintained, reusable infrastructure-as-code components.
What is a Wrapper Cookbook? Why Might I Use One?
A wrapper cookbook wraps an upstream cookbook to change its behavior without forking it.
There are two main reasons you might want to do this:
Codifying the standard settings for your organization or business …
Reads an XML "changelog" file that has the schema changes
Verifies which changes have yet to be applied
Applies the changes in serial to the tables
Records each change in the version control table as it happens
While this is a very powerful tool, as you dataset grows, this can be problematic. As each change is run as an independent ALTER statement, consider a large (several million row) table that you are updating with multiple indexes - this can result in several lengthy …
Rails 4 assumes you're serving assets from a CDN or via your webserver (and not your Rails processes) so ActionDispatch::Static middleware isn't enabled by default. If you try to insert Rack:: Deflater before it, you'll get errors.
Controller specs skip Rack middleware. You need to assert that content is compressed / not compressed …
…If you are dealing with data on the web, you are probably most familiar with JSON and XML. Less common nowadays is CSV, but if it's all you have, and the alternative is screen scraping, then you are thankful.
Imagine we have some data in CSV: Year,Make,Model,Description,Price 1997,Ford,E350,"ac, abs, moon",3000.00 1999,Chevy,"Venture ""Extended Edition""","",4900.00 1999,Chevy,"Venture ""Extended Edition, Very Large""",,5000.00 …
is the most popular way to parse and process XML in Ruby and at GoRuCo 2013, Mike Dalessio gave a short 11 minute talk on the origins of the project, how to determine if it suits you, and looks at some of the tooling around it.
Daniel Huckstep on Ruby's and Go (the language)
Aweb-scraping framework …
I just finished reading Programming . I really liked it! Actually, it was really quite amazing at how much ground Simon Monk could cover in a mere 158 pages. The whole way through, he kept things really, really simple. My favorite example of this was when he built a simple web scraper that didn't even use regular expressions, let alone an : Getting Started with Python or XML parser! He managed to do it using nothing more than a bunch of calls to find()! It's …
…unused and have recently been demonstrated problematic, like the " Rails can take XML requests and create objects from them then insert them directly into the params hash, including perhaps deserializing embedded YAML in the XML, which can result in arbitrary code execution" (a feature which, to put it mildly, is not required by much of the community).
"Can we trust this to actually, you know, work?"
Great question. They're sufficiently credible to me that I …
Have created an API for a production environment
Use source control exclusively, Git preferably
Use ftp to deploy applications
…critical. If your API will be consumed by iOS devices, choosing binary property lists over XML or JSON can give you a 30% performance boost as well as an associated reduction in bandwidth consumption. Building an API that generates plists is straightforward with the help of a couple of Ruby gems.
I'll be sharing code examples from a recent project that surfaced a large, multi-faceted API to hundreds of iOS devices using binary plists. I'll also have plenty of resources …
XML Parameter parsing has been sent to a plugin
Working with threaded servers out of the box
Ruby's not the only language that goes well withthat got an update. Check out 1.5!
Here are the major changes in CoffeeScript :
First release of Literate CoffeeScript .
The CoffeeScript REPL is now based on the Node.js REPL, and should work better and more familiarly.
Returning explicit values from constructors is now forbidden. …