Skip to content

Instantly share code, notes, and snippets.

View jadeallenx's full-sized avatar

Jade Allen jadeallenx

View GitHub Profile
@jadeallenx
jadeallenx / 05_rt113851.t
Created April 19, 2016 04:59
Test case for RT#113851
use strict;
use blib;
use Test::More;
#BEGIN {
# if (! $ENV{AWS_ACCESS_KEY_ID} || ! $ENV{SECRET_ACCESS_KEY} ) {
# plan skip_all => "Set AWS_ACCESS_KEY_ID and SECRET_ACCESS_KEY environment variables to run these _LIVE_ tests (NOTE: they will incur one instance hour of costs from EC2)";
# }
# else {
# plan tests => 5;
@jadeallenx
jadeallenx / princess_family_cruise.md
Last active February 27, 2016 06:32
Our Caribbean Princess Family Cruise

Our Caribbean Princess Family Cruise

I finally got around to writing some thoughts and recap of our recent family cruise on the beautiful Caribbean Princess earlier in Feburary.

https://flic.kr/p/EoG8yh

tl;dr

The value for the money was outstanding, the itinerary was to spots we hadn't visited before, and our trip over all was very enjoyable and all of us had a great time. We would sail Princess again as a family, especially if another "cruise of opportunity" came up with the kind of fares we got on this past trip. There are also some important things to be aware of sailing Princess as a family like debarkation waits, on board activities and kids center hours.

@jadeallenx
jadeallenx / why_scratch.md
Last active January 19, 2016 18:04
Why my kid is learning Scratch, and why your kid should too.

Why My Kid is Learning Scratch and Yours Should Too

I have been thinking about what programming language I ought to start my kids with for a good long while. It wasn't that I felt like programming for its own sake was quote worthwhile unquote - more that I wanted my children to be able to take a complex task, analyze it, and then break it down into smaller procedures that when assembled in the right order gave the same result. I want them to be able to think computationally about things. Most math curriculums that I've looked at get at this, but the feedback loop with computers is more engaging for my kids.

So at most conferences over the past several years, I've asked people who spend a lot of time teaching and instructing (some with kids andsome without kids) what they recommend as far as a way to get started with programming computers. The results have been interesting. I've heard (or read) recommendations for everything from Racket (be still my litt

@jadeallenx
jadeallenx / genfile.go
Last active October 22, 2015 15:43
Generate random machi files
// genfile
//
// Make random files with random content
// Copyright (C) 2015 Mark Allen. All rights reserved.
//
// Licensed under the MIT license.
package main
import (
@jadeallenx
jadeallenx / alvaro.md
Last active November 25, 2015 19:14
Yeah, I think I See What You Mean

tl;dr You should watch this.

It's interesting to me that a significant number of talks in this year's Strange Loop conference referenced a 1966 paper by Peter Landin called (somewhat tongue in cheek) "The Next 700 Programming Languages". In this paper, Landin describes a programming language which he says in a footnote might be aptly called "Church without the lambda" - but which in the paper is called "If You See What I Mean" (ISWIM).

Alvaro's talk delved deeply into the question of "What is the semantics or meaning of a program?" Alvaro's thesis is that the meaning of a program is to produce desired outcomes from a computing system but that current languages focus on

@jadeallenx
jadeallenx / riak.md
Last active August 29, 2015 14:26
Links for Riak GET/PUT paths

Reading List for Riak Get/Put paths

  1. [John Daily's series on configurable behaviors][1]
  2. [Riak's get fsm][2]
  3. [Riak's get "core"][3]
  4. [Riak's put fsm][4]
  5. [Riak's put core][5]
lager_test_backend: error_logger_redirect_test_ (info messages with unicode characters in Args are printed)...ok
lager_test_backend: error_logger_redirect_test_ (warning messages with unicode characters in Args are printed)...*failed*
in function lager_test_backend:'-error_logger_redirect_test_/0-fun-60-'/2 (test/lager_test_backend.erl, line 1000)
in call from lager_test_backend:'-error_logger_redirect_test_/0-fun-63-'/0 (test/lager_test_backend.erl, line 1000)
**error:{assertEqual,[{module,lager_test_backend},
{line,1000},
{expression,"Level"},
{expected,16},
{value,8}]}
output:<<"">>
mallen-rMBP:ponyc mallen$ /usr/local/bin/llvm-config --version
3.6.1
mallen-rMBP:ponyc mallen$ make
Linking ponyc
Undefined symbols for architecture x86_64:
"typeinfo for llvm::FunctionPass", referenced from:
typeinfo for HeapToStack in libponyc.a(genopt.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [build/debug/ponyc] Error 1
%% @spec local_client() -> {ok, Client :: riak_client()}
%% @equiv local_client(undefined)
local_client() ->
local_client(undefined).
%% @spec local_client(binary()|undefined) -> {ok, Client :: riak_client()}
%% @doc When you want a client for use on a running Riak node.
%% ClientId should be a 32-bit binary. If it is not, a
%% 32-bit binary will be created from ClientId by phash2/1.
%% If ClientId is the atom 'undefined', a random ClientId will
-record(state, {client, % local client
req, % current request (for multi-message requests like list keys)
req_ctx, % context to go along with request (partial results, request ids etc)
client_id = <<0,0,0,0>> }). % emulate legacy API when vnode_vclocks is true
%% @doc init/0 callback. Returns the service internal start
%% state.
-spec init() -> any().
init() ->
{ok, C} = riak:local_client(),