Adam Stokes

got lost in walmart, /me scared

Apr 14 2015

LDS 15.01.1 with AutoPilot VMWare image...

The landscape team has created a VMWare image preinstalled with Ubuntu 14.04 LTS and Landscape Dedicated Server 15.01.1. If you wish to try out Landscape OpenStack Autopilot a MAAS server is still required and that the hardware requirements are still...

Mar 31 2015

Coho Data partners with Canonical for OpenStack Operability...

Canonical is pleased to welcome Coho Data, developer of the first flash-tuned scale-out storage architecture for private clouds, as an Ubuntu Cloud partner and to our OpenStack Interoperability Lab (OIL) program. Coho provides web-scale storage for...

Feb 18 2015

Customizing the Single Install constraints...

Overview

Sometimes our default constraints for a Single Installation isn’t enough. With our latest release it is possible to now configure the service placements with custom constraints.

Below is a fully working config example that you can modify...

Oct 7 2014

Perl bindings for LeanKit.com...

I recently released a Perl API client for LeanKit which covers the majority of exposed endpoints from the service.

This library can be installed from CPAN and supports Perl versions 5.14+:

1
$ cpanm Net::LeanKit

An example use of the library:

1...
Sep 30 2014

sosreport (SoS) version 3.2 released...

The sos team is pleased to announce the release of sos-3.2. This release includes a large number of enhancements and fixes, including:

  • Profiles for plugin selection
  • Improved log size limiting
  • File archiving enhancements and robustness improvements
Aug 11 2014

Containerize juju's local provider...

Current approach

Juju’s existing providers(except manual) do not allow you to containerize the bootstrap node. However, in the manual provider this is possible using something like this in your environments.yaml file and setting the boostrap-host

Jun 26 2014

Ubuntu Openstack Installer...

As the title suggests this little gem is an OpenStack installer tailored specifically to get you from zero to hero in just a short amount of time.

There are a few options available today for deploying an OpenStack cloud. For instance, juju-deployer

Apr 23 2014

new juju plugin: juju-sos...

Juju sos is my entryway into Go code and the juju internals. This plugin will execute and pull sosreports from all machines known to juju or a specific machine of your choice and copy them locally on your machine.

An example of what this plugin does...

Mar 20 2014

juju: deploy to lxc AND kvm in the local provider...

While messing around with juju 1.18.x I managed to stumble across a setup that allows me to deploy both LXC and KVM containers in a single environment.

Pre-reqs

  • Juju v1.18 or higher
  • libvirt-bin
  • lxc
  • Ubuntu Trusty or higher (only one I tested this...
Feb 16 2014

Perl bindings for Juju...

In an attempt to better learn the Juju internals I started working on some Perl bindings and as a result a lot of time spent in the Go codebase. The library utilizes an event-based approach making use of technologies such as AnyEvent and AnyEvent:...

Jan 31 2014

SOSreport 3.1 released...

Issues resolved in this release:

Closed items

Enhancements:

  • Full Python 3.x support
  • Further modularized openstack plugins
  • Switched the build to use pybuild
  • Reports are generated by default
  • Further sanitizing of all openstack credentials
  • As of Ubuntu...
Jan 8 2014

Salesforce.com meet Net::Salesforce...

I’ve got a couple of new perl packages written for interacting with Salesforce.com, it’s features include:

  • OAuth 2 authentication with support for scopes including refresh_token and api. Easily add more for what you need in your application.
  • Client...
Oct 18 2013

sosreport: mid-milestone update...

A small review of what’s happening as we enter into our 3rd month of development for the next major release of sosreport 3.1 (approximate due date of February 2014).

Here is a rundown of what we need help on:

  • Documentation
  • Openstack guru’s to review...
Oct 9 2013

Customizing fastpath (curtin) installations in MAAS...

Working off my previous entry about using fastpath installer in MAAS I decided to dig a little deeper into customizing those installations a bit. One thing to note is fastpath(curtin/curt installer) installations do not follow the same guidelines that...

Oct 8 2013

Using fastpath installer in MAAS...

MAAS 1.4 supports installing images via curtin (fastpath).

To enable fastpath for a node we need to tag it with use-fastpath-installer that is understood by MAAS and fastpath. As far as I can tell this has to be accomplished via maas-cli.

Set your...

Oct 7 2013

Configuring VLANs in MAAS node deployment...

Since Debian installer doesn’t have the ability to configure vlans we need to make any additional network modifications within the preseed/late_command stage. If you aren’t familiar with vlan or would like some more details on setting it up take a...

Oct 2 2013

Run MAAS in Vagrant...

This article covers the steps I took to run a MAAS instance within vagrant.

I think of this more like the most direct and reproducable approach I could think of. You could build off of this and automate a lot of the installation tasks with a vagrant...

Sep 5 2013

New mojolicious plugin: leaflet.js...

Started working on a new Mojolicious plugin for integrating the popular javascript mapping library leaflet.js. You can find it on metacpan or help with contributions at the github project page.

A quick synopsis of how to use it:

# Mojolicious
$self...
Sep 4 2013

perl cms - skryf updated to version 0.12...

Released a new version of skryf a perl cms engine. Some features to highlight are:

  • Markdown Editor
  • Enhanced wiki plugin
  • Extended csrf protection for forms and ajax requests
  • Automated menu generator and hooks for new plugins
  • Enhanced admin section...
Sep 2 2013

quickly beautify your javascript in emacs...

This is for the javascript version of js-beautify and could easily apply to their python version as well. You’ll need to have node installed with npm and run the following:

$ sudo npm install -g js-beautify

Next, open up your emacs init file (~...

Aug 23 2013

sosreport: on the road to 3.1...

We’ve got an aggressive feature list for the next milestone release and welcome any involvement from the community. A few of the big ticket items are the following:

Top priority items

  • Python 3.3 and Python 2.7 support - yes we’d like to keep supporting...
Aug 20 2013

vimntu; easiest way to get up and running with vim...

I’ve spent some time working on a stupid simple script that would install latest snapshot of VIM along with janus and my additional plugins. It’s really easy to get started, to install simply run:

$ curl -L https://github.com/battlemidget/vimntu/raw...
Jul 29 2013

SOSreport now in Debian unstable(sid) and Ubuntu saucy...

sosreport v3.0 is now in Debian Unstable(Sid) and was synced this morning into Saucy (13.10). I’ve created some backport requests to hopefully have sosreport put into Precise, Quantal, and Raring.

Another goal of mine is to have sosreport included...

Jul 18 2013

Streamline your build system with vagrant + sbuild...

Remembering what to do in order to get your sbuild environment setup with deb caching and configuring Barry Warsaws repotools for those packages not in the archive can be a little tedious at times.

For me I hated upgrading my systems knowing I had...

Jul 14 2013

Juju deploy Apache2+SSL, Gunicorn, Django, Postgresql...

Goal of this document is to explain how Chris Arges and I managed to get Apache w/SSL proxy to gunicorn which is serving up a django application with postgresql as the database and everything be deployable through Juju.

As an added bonus I’ll also...

Jul 1 2013

New Mojolicious plugin - Disqus::Tiny...

Another small plugin for easing inclusion of socially enabled software. This
plugin only concentrates on including the necessary javascript code to get
comments enabled on your blog or web app.
Mojolicious::Plugin::Disqus gives you more control over...

Jun 22 2013

New Mojolicious plugin: Google Analytics...

A new plugin up on cpan for making it easy to add your Google Analytics
tracking code.

To get started just include the plugin in your Mojolicious web application and
use the builtin helper.

Installation

  $ cpanm Mojolicious::Plugin::GoogleAnalytics...
Jun 20 2013

Get up and running with skryf a perl blog engine...

Another blog engine utilizing Mojolicious, Markdown, Hypnotoad, Rex, and Ubic for a more streamlined deployable approach.

PREREQS

I like perlbrew, but, whatever you’re comfortable with. I won’t judge.

INSTALLATION (SOURCE)

$ git clone git://github...
Jun 18 2013

Simple way to get wordpress going in vagrant...

Im working on some wordpress stuff recently and realized how much I dislike
setting up php development environments. Specifically anything prior to php 5.4
because of the lack of a built in web server.

I decided at this point it is a good time to...

Jun 10 2013

SOSreport reaches 3.0...

New release!

After what seems like the longest development cycle ever we’ve finally released
sosreport 3.0.

Because of the lengthy development cycle I am just going to point you to the
commits to see what
changes were made. The most notable changes...

Jun 1 2013

A new Mojolicious Plugin Blog in the works...

New plugin in the works to integrate a simple blogging system as a plugin for
Mojolicious.

So far it supports most relational databases through DBIx::Connector and
support for some social networks are coming soon.

Getting it going is straightforward...

May 23 2013

Deploy blagger with starman, rex and ubic...

If you come from a python or ruby background and are used to services
such as virtualenv, rbenv then this document should be easy to
follow. If not, no problem it is still easy :)

Pre-reqs

Youll want to install perlbrew which is perl’s equivalent...

May 21 2013

blagger - perl blogging software...

I was using octopress for awhile but I still have mixed feelings about
ruby. There isn’t anything wrong with ruby, but, as the creator of
ruby said "its how you feel when writing in a language" and I don’t
think me and ruby are on the same page.

May 20 2013

python-salesforce on pypi...

I’ve got a project going to utilize Salesforce.com api over json and oauth rather than soap. Today I uploaded the package to the cheeseshop in hopes to pull in some interest from the community.

Right now the library contains authorization over OAuth...

Mar 22 2013

x230T, realtek wifi, and my solution...

Recap

I can ping all devices on the network except the gateway
(192.168.0.1) and in turn can not access outside of the network
without proxying through another device.

The system:

Lenovo x230 Tablet with a Realtek wifi adapter running on Quantal...

Feb 21 2013

Mental Note: Django 1.4.x and Storm .19...

Some notes on getting Storm used as a database backend for Django. Props to James Henstridge for doing the heavy lifting.

Setup virtualenv and install dependencies:

$ virtualenv --prompt=stormy venv
$ source venv/bin/activate
$ pip install django...
Jan 8 2013

SOSreport now supports Debian/Ubuntu...

Sosreport is a set of tools is designed to provide information to support organizations
in an extensible manner, allowing third parties, package maintainers, and
anyone else to provide plugins that will collect and report information that
is useful...

Dec 4 2012

Multiline sql statements in clojure...

NB Most of these articles are geared towards those are who not
really familiar with Clojure and are just getting started. (like me)

As I’m continuing to dig through clojure and specifically database
interactions I’ve been writing some simple sql statements...

Dec 4 2012

Experimenting with clojure and protocols...

I started messing around with some clojure code recently to see what I
could come up with in a short period of time. My main goal was to
provide some sort of overlay to adding a specific dispatch to handle
different datatypes when inserting into a...

Nov 1 2012

Lenovo x230 Tablet tips...

Some tips for getting around the lack of tablet functionality with Ubuntu Precise and even Quantal. First is a small shell script for disabling finger touch on the tablet when you want to use the stylus for writing/drawing.

    #!/bin/bash
    #...
Oct 18 2012

Exporting variables for Eshell...

Usually when I’m working in Emacs it is running as a daemon. A lot of
times when I’m doing patch work and commits it’ll want to dump me into
an editor set by my shell settings. More times than not this is
problematic because my editor may be set to...

Sep 27 2012

Tornado 2.3+ dropbox auth mixin...

Working on Tornado web application server has been a great
experience. I’ve written a few simple OAuth mixin’s and this
one is for dropbox. It’s been tested and works, however, I am
probably including way to many method overrides. If anyone
would like...

Sep 27 2012

What happened?...

Sorry was away, been busy. Setup and migrated my old blog posts over
to octopress and hosting it on Linode.com. Some of the older blog
posts may see double titles. The migration script I used automatically
added them and eventually I’ll get to cleaning...

Mar 20 2010

c++, cxxtest, cmake...

Been messing around lately with CMake and how to intregrate
additional testing frameworks such as CxxTest. So far everything
has been very simple to configure and get setup so I thought
I’d post my findings here.

  • Fedora provides both cmake and cxxtest...
Feb 12 2010

Setup a broker federation in qpid...

One of the things with matahari is that we didn’t want our agents to be tied down to just 1 broker. With qpid we can setup broker federation and squash any of the use case scenarios that may involve differences in location, etc.

To start setup 2-3...

Feb 20 2008

Fedora 8, Thinkpad T61, fingerprint authentication...

Using a T61 or any IBM laptop that has the fingerprint scanner install the package thinkfinger :

# yum install thinkfinger

Add your user:

# su -
# tf-tool --add-user adam

Swipe your finger 3 times.

Alter /etc/pam.d/system-auth to include the...

Nov 9 2006

VMWare Server installed as host on FC6...

If you run into errors related to this :

make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686' 
CC [M]  /tmp/vmware-config1/vmnet-only/driver.o 
CC [M]  /tmp/vmware-config1/vmnet-only/hub.o 
CC [M]  /tmp/vmware-config1/vmnet-only...
Aug 23 2005

VIM tips...

Just thought I would post some things I find helpful when working with
VIM. Remember if you are running Fedora Core you can install VIM with
the following command: Also for those curious, here is my vimrc file.

  yum install vim-enhanced

That should...

Jul 25 2005

Configuring imap with mutt...

Place this in your ~/.muttrc

1
2
3
4
5
6
7
my_hdr From: [email protected] (Joe Blow)
set spoolfile=imaps://mail.server.com/INBOX
set folder=imaps://mail.server.com/
set imap_user=username
set move=no
set mail_check=60
set timeout=15