Chariot’s Tech Blog

Page 1 of 24123451020Last »

Posted on Feb 01, 2016 by

Sensu: Finally the Nagios Replacement I Have Been Looking For!

Nagios, the popular open source system and networking monitoring service, is awesome. It gives you so much flexibility that expensive commercial software like Solarwinds and Spiceworks just doesn't have. However after I moved my infrastructure to Chef, Nagios was constantly giving me issues. The configuration scheme just doesn't fit well in an autonomous environment. In this blog article I review how I found a replacement for Nagios,

Tags:, , ,

View post

Posted on Jan 19, 2016 by

Using java.time with ResultSet and PreparedStatement

John Shepard shows us how to use the java.time API in Java 8. While not absolutely complete, and improvements seem to be on deck for Java 9 and 10, there is support for the new time API.

Tags:, , ,

View post

Posted on Jan 09, 2016 by

Testing Http Services in Angular 2 with Jasmine

Right now it's hard to find samples of tests against Angular 2 observable Http code for developers in the current beta. Some of the things you have to watch out for are non-obvious. I expect this will improve vastly over time, but for now hopefully you'll get some working code samples from me to get you going. This post will show you how it's done.

Tags:, ,

View post

Posted on Jan 04, 2016 by

Making a Java SafeString that works with all unicode characters

In Java, there is an issue with String when using characters that take up more than 2 bytes in UTF-16. substring() and similar methods can split the character in the middle. I was thinking switching Strings to UTF-8 might be good, and there are currently two JEPs for Java 9 somewhat related to this. 226: UTF-8 Property Files and 254: Compact Strings. But thinking about this a little more, I don't necessarily want a UTF-8 String class, but a String class that works with all unicode characters. Here's how I did it.

Tags:, ,

View post

Posted on Dec 21, 2015 by

Angular 2 Beta 0 (somnambulant-inauguration) lands – Small App with Rxjs, TypeScript

Now that sonambulent-inauguration, properly known as Angular 2.0.0-beta.0, has dropped, let's see what the public API is shaping up to be. We'll review how to create a component from the application bootstrap, using the Http API to fetch a JSON object from HTTP, and see how the template API has changed now that we have to use camelCased property names.

Tags:, , , ,

View post

Posted on Dec 15, 2015 by

Changing Java 8 – handling nulls with the AST

One aspect of Java 8 that would be nice to change is the handling of nulls. Can testName.getName() be changed so that a NullPointerException is never thrown, even if testName is null? Is it possible to modify java to support this directly? Java does provide an interface to read the Abstract Syntax Tree (AST) in […]

Tags:, , ,

View post

Posted on Nov 08, 2015 by

Migrating Apps to Android 6.0 Marshmallow

We found a few issues while preparing our Android app for Marshmallow 6.0. The easy short-term solution is setting the targetSdkVersion to 22

Tags:, ,

View post

Posted on Oct 26, 2015 by

Angular2 Observables, Http, and separating services and components

What Angular1 brought, Angular2 takes away - for a good reason. No more Promises in ng2! See how observables make Angular2 a reactive, functional platform. We'll roll up our sleeves and get something practical done with Angular2's Http service, and we'll get some data via the new Http service - it's quite a bit different than the Angular 1 $http service semantically, but serves the same purpose, but is also more fully featured.

Tags:, , , ,

View post

Posted on Oct 20, 2015 by

A TypeScript Angular2 starter project walkthrough – putting it all together with Express and LiveReload

This fourth post discusses how to wire up your web server, in our case Express, to serve your files. We'll configure it with Live Reload via the tiny-lr plugin. We'll also test a small Angular2 project to make sure our project has what it takes to get an Angular2 app into the wild.

Tags:, , ,

View post

Posted on Oct 20, 2015 by

A TypeScript Angular2 starter project walkthrough – integrating TypeScript

This is the third in a four-part series that reviews a TypeScript-based Angular2 project. In this post we discuss how to configure and use TypeScript using a tsconfig.json file, and via both the command line and a Gulp plugin.

Tags:, , ,

View post
Page 1 of 24123451020Last »