Couchprofile_large

Marnee Dearman (KG7SIO)

Deploy your Python code to AWS Lambda using the CLI

How to get started creating and deploying a Python package

Why am I doing this?

The AWS provided tutorials are too much stuff. Here I have simplified it. Plus I needed to deploy some code.

This is a continuation of my article on getting started with AWS Lambda.

See also my Github repo.

What you will need

  • the AWS CLI
  • some Python code
  • an AWS acount

The AWS CLI

You will want to install the AWS CLI. On . . .

Read More

July 16, 2017

POSTing images to pure F# Web API 2.0

Getting the multi-part form data out of your web API requests

Why am I doing this?

I have a REST API that I built with the Pure F# Web API templates. Mostly my REST API was just designed to output and process JSON, but recently I needed to accept images.

The problem

I need to save some images, through my REST API, that are produced on another system. I need that system to POST those images to my API . . .

Read More

July 06, 2017

AWS Lambda and S3: a quick and dirty tutorial

Figure out the basics without tearing your hair out

Why am I doing this?

I wanted to setup an example of how to use AWS Lambda with S3 for two reasons: do a talk on using these features at the Tucson Python Meetup (TuPLE), and help a a TuPLE member get started with a prototype for his (totally awesome) radiology image-processing functions.

BTW: this is a great reason to go to user group . . .

Read More

July 03, 2017

A bit of Railway Oriented Programming with Coconut

Using Coconut/Python to build a pipeline with error handling

Why am I doing this?

I recently did a talk on Coconut at the Tucson Python Meetup (aka TuPLE). I mostly demoed the examples in the tutorial and the documentation, but I also came up with a way to do error handling like I do in F# with Railway Oriented Programming that I learned from F# for Fun and Profit.

You can find my source code on . . .

Read More

May 27, 2017

Welcome to the Research Bazaar

ResBaz Arizona

Silvrback blog image

The very first Research Bazaar in Arizona will be happening March 31 - April 1. We are trying to bring digital literacy to scientists and researchers. This means helping people learn basic programming skills, like python and the shell, more advanced skills like data visualization, virtual machines, high performance computing, source control . . .

Read More

March 25, 2017

Pure F# Web API and Team City Build

How I fixed the broken build

We use TeamCity at work for continuous integration. I recently added a Pure F# Web API to a solution. Everything was building but this one project. The build (with FAKE) ran just fine locally, but in the Team City environment, running the same FAKE script, the build broke.

And all I got was this fun error:

D:\TeamCity\buildAgent\work\ . . .

Read More

March 13, 2017

Suave bootstrapper upgraded

Why am I doing this?

I recently started building a web API at work. I am building it in F# as a .Net Web API project. This is nice and all but not wholly a functional programming kind of thing. So I thought I would try Suave.io, which is F# all the way through and encourages a functional style, and all the cool kids are doing it.

The . . .

Read More

February 19, 2017

Archive

Cover image credit: http://sciencevsmagic.net/fractal/#0060,0090,1,1,0,0,1