Browsed by
Month: August 2016

An Ideal Home Media Setup

An Ideal Home Media Setup

I love movies and have a bunch of them but I didn’t want to always have to go upstairs and grab a DVD/Bluray each time I needed access to my movies or any other media that I have so I began searching for an ideal home media setup. I think I’ve found it and figured I’d write about it. Everything  is moving towards streaming so of course you need a streaming device on all your home tv’s. You can do…

Read More Read More

Jackson based JAX-RS Providers(JSON, XML, CSV) Example

Jackson based JAX-RS Providers(JSON, XML, CSV) Example

This blog post discusses returning multiple data formats from your RESTFul endpoints using Jackson JAX-RS providers. Jackson provides a lot of providers that you can see here . The providers allow you to return a POJO(plain old java object) from your REST annotated methods and give back the appropriate media type. Jackson also gives you the ability make your own Entity Providers. Documentation for how to do that is here below I’ll show a generic way to provide CSV’s along with XML…

Read More Read More

CXF Jetty Example

CXF Jetty Example

This is a simple example of how to combine CXF and Jetty to get a simple web services up and running. Pom for this example: [code language=”xml”] <?xml version="1.0"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>datadidit.helpful.hints</groupId> <artifactId>parent</artifactId> <version>1.0.0-SNAPSHOT</version> </parent> <artifactId>jetty-cxf</artifactId> <name>jetty-cxf</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-jaxrs</artifactId> </dependency> <dependency> <groupId>javax.ws.rs</groupId> <artifactId>javax.ws.rs-api</artifactId> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>${jetty.version}</version> </plugin> </plugins> </build> </project> [/code]   Here is a simple REST endpoint: [code language=”Java”] package datadidit.helpful.hints.rest.cxf; import javax.ws.rs.DefaultValue; import javax.ws.rs.GET; import…

Read More Read More

Where is your favorite NFL teams cap space going…Part2(AFC)

Where is your favorite NFL teams cap space going…Part2(AFC)

Part 2 takes a look at what teams in the AFC are doing with their cap space. AFC East AFC North AFC South AFC West AFC East Biggest thing standing out to me below is Miami is spending a lot of money on their DL, 2 times more than league average and almost 30% of their cap space. Buffalo Bills Miami Dolphins New England Patriots New York Jets NFL DB 29,479,496 27,616,499 17,018,794 38,402,025 26,240,056 DL 33,279,980 43,671,818 26,648,167 23,376,055…

Read More Read More

Where is your favorite NFL teams cap space going…Part1(NFC)

Where is your favorite NFL teams cap space going…Part1(NFC)

Was interested in getting a look at how each team is spending their cap by position group. In order to get the data I went to spotrac, which is a great site for interactively managing your teams salary cap. The position groups I split that data into are: QB: Quarterback RB: Running back which includes Full backs as well TE: Tight End WR: Wide Receiver OL: Offensive line which includes center, gaurd and tackles ST: Special Teams which includes punter,…

Read More Read More