Friday, December 25, 2015

Spotify Apollo: new Microservice libary

public final class App {

    public static void main(String[] args) throws LoadingException {
        HttpService.boot(App::init, "my-app", args);

    static void init(Environment environment) {
            .registerAutoRoute(Route.sync("GET", "/", rc -> "hello world"));

blogodex = {"toc" : "Apollo", "idx" : ["microservice", "java"]};

Saturday, December 19, 2015

Getting a classpath out of Maven

Got the classpath blues? Here's some maven incantations:

$ mvn dependency:build-classpath

$ mvn dependency:build-classpath -Dmdep.outputFile=classpath.txt
[INFO] Wrote classpath file '/Users/mh/g/javalogic/ggprocessor/classpath.txt'.

And some more maven magic here, including copying jar files and building an executable directly.

blogodex = {"toc" : "Maven", "idx" : "classpath"]};

Tuesday, December 15, 2015

Centos requires these packages to build Python2.7

yum groupinstall -y "Development tools"
yum install -y zlib-devel
yum install -y bzip2-devel
yum install -y openssl-devel
yum install -y ncurses-devel
yum install -y sqlite-devel
yum install -y readline-devel.x86_64

leaving a few leftovers:

Python build finished, but the necessary bits to build 
these modules were not found:

_bsddb             _tkinter           bsddb185        
dbm                dl                 gdbm            
imageop            sunaudiodev                        

Tuesday, December 1, 2015

Awesome Forth Tutorial

I've always loved Forth, so I was really happy to discover Nick Morgan's online tutorial "Easy Forth."  Not only does he do a great job introducing the concepts, he's wrote an embeddable Forth interpreter in Javascript so that all the examples can be typed into a live interpreter.  He wraps it up by writing the Snake game in Forth running in an interpreter window.

And if this whet's your retro-enthusiasm, he's got got an Easy 6502 book as well!

blogodex = {"toc" : "Forth", "idx" : ["online emulators"]};