Skip to content

Instantly share code, notes, and snippets.

ERROR in (test-parse-line-op) (FlowStepJob.java:173)
Uncaught exception, not in assertion.
expected: nil
actual: cascading.flow.FlowException: step failed: (1/1) ...QDWpEp0jBsowT4Bo4U+++TI/-Tmp-/sink/0ba51806-c2a2-41bf-96cf-06bfe61b86bc"]"], with job id: job_local_0001, please see cluster logs for failure messages
at cascading.flow.FlowStepJob.blockOnJob (FlowStepJob.java:173)
cascading.flow.FlowStepJob.start (FlowStepJob.java:138)
cascading.flow.FlowStepJob.call (FlowStepJob.java:127)
cascading.flow.FlowStepJob.call (FlowStepJob.java:39)
java.util.concurrent.FutureTask$Sync.innerRun (FutureTask.java:303)
java.util.concurrent.FutureTask.run (FutureTask.java:138)
;; Logical / unsigned shift right in Clojure (>>> operator in Java)
;;
;; Algorithm from http://www.sitepoint.com/forums/php-34/unsigned-right-bitwise-shift-449434.html
(defn logical-shift-right [n s]
(if (neg? n)
(bit-or (bit-shift-right (bit-and n 0x7fffffff) s)
(bit-shift-right 0x40000000 (dec s)))
(bit-shift-right n s)))
#!/bin/bash
set -x
# fix time drift
boot2docker ssh sudo ntpclient -s -h pool.ntp.org
DOCKER_IP=$(boot2docker ip)
DOCKER_IMAGE=cppeth
DOCKER_NAME=moveth
@jorisbontje
jorisbontje / alethzero-version.sh
Created March 17, 2015 09:16
Show exact commit of installed AlethZero and Mist on OSX
#!/bin/sh
cd /Library/Caches/Homebrew/cpp-ethereum--git && git log --pretty=format:"%h" -1
@jorisbontje
jorisbontje / test_sha256.py
Created March 3, 2015 14:07
test_sha256.py
import bitcoin as b
from pyethereum import tester, utils
class TestSHA256(object):
CONTRACT = """
def func():
return(sha256([1,2], items=2))
"""
@jorisbontje
jorisbontje / test_ecrecover.py
Created March 2, 2015 07:22
test_ecrecover.py
import bitcoin as b
from pyethereum import tester, utils
class TestECRecover(object):
CONTRACT = """
def test_ecrecover(h, v, r, s):
return(ecrecover(h, v, r, s))
@jorisbontje
jorisbontje / inviteme.py
Created September 8, 2014 18:46
Tox InviteMe Bot
#!/usr/bin/env python
#
# @file echo.py
# @author Wei-Ning Huang (AZ) <aitjcize@gmail.com>
#
# Copyright (C) 2013 - 2014 Wei-Ning Huang (AZ) <aitjcize@gmail.com>
# All Rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@jorisbontje
jorisbontje / Dockerfile
Created July 7, 2014 11:19
cpp-ethereum Dockerfile
FROM ubuntu:14.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -qy build-essential g++-4.8 git cmake libboost-all-dev
RUN apt-get install -qy automake unzip libgmp-dev libtool libleveldb-dev yasm libminiupnpc-dev libreadline-dev scons
RUN apt-get install -qy libncurses5-dev libcurl4-openssl-dev