background preloader

Tutorials

Facebook Twitter

TDD your API » Balanced: Blog. On August 16, 2012, a process kicked off at Balanced. It still isn’t finished, but this week was a major milestone, and I’d like to share our progress with you. That process is a new development methodology for APIs. Rather than trying to give it some grand name, I’m calling this “TDD for APIs.” How do you TDD an API? If you’re not familiar, here’s the basic outline of Test Driven Development: Write a test for some behavior you’d like to introduce into your system. To say that there’s a large amount of literature on the benefits of this approach would be an understatement. So how is this different when applied to the API context?

Create a separate project for your API tests. There’s another aspect which is important, though. Push to card was the first real feature we’ve built in this way. Origins Humble beginnings. There were three big questions to tackle: How can we validate that our API is working as intended? An initial solution It was settled that reStructured Text was the answer. Whew! Write a Tumblelog Application with Flask and MongoEngine. Introduction This tutorial describes the process for creating a basic tumblelog application using the popular Flask Python web-framework in conjunction with the MongoDB database.

The tumblelog will consist of two parts: A public site that lets people view posts and comment on them.An admin site that lets you add and change posts. This tutorial assumes that you are already familiar with Flask and have a basic familiarity with MongoDB and have installed MongoDB. This tutorial uses MongoEngine as the Object Document Mapper (ODM,) this component may simplify the interaction between Flask and MongoDB. Where to get help If you’re having trouble going through this tutorial, please post a message to mongodb-user or join the IRC chat in #mongodb on irc.freenode.net to chat with other MongoDB users who might be able to help.

Installation Begin by installing packages required by later steps in this tutorial. Prerequisite pip install virtualenv virtualenv myproject source myproject/bin/activate Add the Views. Open Vim. Bash Hackers Wiki Frontpage. Awk - A Tutorial and Introduction - by Bruce Barnett. Your browser does not have Javascript enabled. I use Javascript for analytics, and to show ads which pay for the maintenance Last modified: Thu Apr 23 16:37:47 EDT 2015 Part of the Unix tutorials And then there's My blog Table of Contents Copyright 1994,1995 Bruce Barnett and General Electric Company Copyright 2001, 2004, 2013, 2014 Bruce Barnett All rights reserved You are allowed to print copies of this tutorial for your personal use, and link to this page, but you are not allowed to make electronic copies, or redistribute this tutorial in any form without permission. Original version written in 1994 and published in the Sun Observer Awk is an extremely versatile programming language for working on files.

The examples given below have the extensions of the executing script as part of the filename. Why learn AWK? In the past I have covered grep and sed. AWK - the (very old) original from AT&T NAWK - A newer, improved version from AT&T GAWK - The Free Software foundation's version Basic Structure. The Linux Documentation Project. Bash Guide for Beginners.

DJango

Tech Stuff - Regular Expressions - A Gentle User Guide and Tutorial. A Regular Expression is the term used to describe a codified method of searching invented, or defined, by the American mathematician Stephen Kleene. The syntax (language format) described on this page is compliant with extended regular expressions (EREs) defined in IEEE POSIX 1003.2 (Section 2.8). EREs are now commonly supported by Apache, PERL, PHP4, Javascript 1.3+, MS Visual Studio, most visual editors, vi, emac, the GNU family of tools (including grep, awk and sed) as well as many others. Extended Regular Expressions (EREs) will support Basic Regular Expressions (BREs are essentially a subset of EREs). Most applications, utilities and laguages that implement RE's, especially PERL, extend the ERE capabilities and what are typically called PERL Compatible Regular Expressions (PCREs) have, largely, become a de facto standard.

Implementation documentation should always be consulted in case some wierd Regular Expression variant is involved. Contents The title is deceptive. Simple Matching.