Skip to content

Instantly share code, notes, and snippets.

@jstaf
jstaf / biomaRt_tutorial.R
Created March 8, 2015 02:09
R Club - March 10
# biomaRt is a data mining tool that allows you extract massive amounts of data
# from online databases with minimal effort.
# This tutorial will use biomaRt to find the average distance between
# transcription factor binding sites and the genes they are known to act on in
# Drosophila (let's say we want to know how large an area we need to search
# up/down from a gene while looking for new binding sites). Interestingly, I
# don't think there's actually a published value for this, so we're doing
# something new here.
@jstaf
jstaf / ggplot2_tutorial.R
Created May 19, 2015 05:36
ggplot2 Tutorial Script - May 19th
# ggplot2 is a plotting framework that is (relatively) easy to use, powerful,
# AND it looks good.
# Jeff Stafford
library(ggplot2)
# Load the example data
data <- msleep
str(data)
@jstaf
jstaf / ggplot2_tutorial_complete.R
Created May 20, 2015 21:18
ggplot2 Tutorial Script - May 19th (with answers)
# ggplot2 is a plotting framework that is (relatively) easy to use, powerful,
# AND it looks good.
# Jeff Stafford
library(ggplot2)
# Load the example data
data <- msleep
str(data)

Give me back my sanity

One of the many things I do for my group at work is to take care of automating as many things as possible. It usually brings me a lot of satisfaction, mostly because I get a kick out of making people's lives easier.

But sometimes, maybe too often, I end up in drawn-out struggles with machines and programs. And sometimes, these struggles bring me to the edge of despair, so much so that I regularly consider living on a computer-less island growing vegetables for a living.

This is the story of how I had to install Pandoc in a CentOS 6 Docker container. But more generally, this is the story of how I think computing is inherently broken, how programmers (myself included) tend to think that their way is the way, how we're ultimately replicating what most of us think is wrong with society, building upon layers and layers of (best-case scenario) obscure and/or weak foundations.

*I would like to extend my gratitude to Google, StackOverflow, GitHub issues but mostly, the people who make the

@jstaf
jstaf / gist:28da4cc93e8d4d715dca5f5efe2fa76d
Created November 19, 2021 20:41
IBM Terraform provider COS fail
2021-11-19T15:39:17.879-0500 [DEBUG] Starting graph walk: walkApply
2021-11-19T15:39:17.879-0500 [DEBUG] created provider logger: level=debug
2021-11-19T15:39:17.880-0500 [INFO] provider: configuring client automatic mTLS
2021-11-19T15:39:17.912-0500 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.36.0/darwin_amd64/terraform-provider-ibm_v1.36.0 args=[.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.36.0/darwin_amd64/terraform-provider-ibm_v1.36.0]
2021-11-19T15:39:17.916-0500 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.36.0/darwin_amd64/terraform-provider-ibm_v1.36.0 pid=15705
2021-11-19T15:39:17.916-0500 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/ibm-cloud/ibm/1.36.0/darwin_amd64/terraform-provider-ibm_v1.36.0
2021-11-19T15:39:17.940-0500 [DEBUG] provider.terraform-provider-ibm_v1.36.0: 2021/11/19 15:39:17 IBM Cloud Provider version 1.36.0
2021-1