CloudWatch custom metrics
Wednesday, December 16th, 2015 05:40 pm GMT +2

In this post we’re going to investigate how to create custom metrics for the AWS CloudWatch service. In some cases it’s not enough to have default set of AWS metrics which are already defined for you in dashboard. Let’s say you want to monitor the number of active customers on your website, or you would like to know the number of failed requests to your API backend.

Whatever it is, CloudWatch will allow you to record any time-based data using AWS APIs.


Continue reading →

Installing optware on Dune HD-TV 102
Monday, November 4th, 2013 12:36 am GMT +2

Dune company has given us a miryad of excellent media players, especially by producing high quality software. In this article I’ll give you step-by-step instructions on how to convert your media player into full-fledged NAS with ability to download torrents and perform any task a generic linux box could do.



Continue reading →

Intellij IDEA and Go plugin
Wednesday, August 21st, 2013 03:39 pm GMT +2

Ever wondered where to find IDE for programming Google Go language?
Well, there are not a lot of choices out there and some of them lack pretty significant functionality, especially if you’re a newbie in Go like me.

Some popular choices include:

1. LiteIDE the only IDE targeted specifically towards Go
2. GoSublime a Sublime Text plugin

I’ve tried both of them and found out that both of them lack Go to declaration feature, which is crucual in the process of digging around new code. On top of that LiteIDE requires installation of gocode daemon for autocompletion to work fine.

As you can see usage of these IDEs requires a lot of bells and whistles to get basic functioning.


However there’s a third option which I’m going to talk about in this post: Google Go language plugin for IntelliJ Idea

It covers two of my initial requirements for Go IDE:

  1. Go to declaration feature, i.e. you may click on any declaration and go check how it’s implemented under the hood
  2. Autocompletion, that’s a huge time saver and a great helper in exploring available options

If you’re familiar with any Intellij IDEs you’ll get additional time-saving benefits too. Let’s proceed!

As of time of this writing, there’s no up-to-date binary distribution of the plugin (hence, the post:),
so we’re going to build everything from the sources.

Continue reading →

How to setup TimeMachine on a network drive with disk quota
Wednesday, October 17th, 2012 11:45 pm GMT +2

Well, once you bought your NAS or configured a dedicated PC with network drive you’ll obviously want to setup Time Machine. The problem is, once configured to backup to a networked drive your TimeMachine will eat all available space.

For those lucky ones, who shared a dedicated disk partition on their drive — there’s no problem at all. But I was not one of them. Recently, I’ve purchased a used Buffalo LS-WXL Linkstation duo inserted two new 1TB drives and configured it as a RAID0 array. As a result, almost whole 2Tb partition became available for sharing — despite how hard I tried to figure out xfs quotas on target partition, no success.

Well, there are bad and good news.

  • The good news is that you may limit your Time Machine disk quota by using something called sparse disk bundles.
  • The bad news is that you’ll need root access to your NAS in order to apply permissions hack to make it work with latest versions of Time Machine



Continue reading →

Phonegap vs. Titanium
Monday, July 2nd, 2012 03:59 pm GMT +2

For a while we’ve been spiking on different solutions to implement mobile app for our platform, and here are some of my initial thoughts on the problem.  Given that I’m too lazy and not so enthusiastic about Objective-C for iOS or Java for Android I was searching for some solution which could deliver value from both worlds with minimum initial effort.

Phonegap (hybrid approach)

 

Pros

  • Ability to develop apps in HTML5 ( means more web devices are captured)
  • Overall speed of iterative development is high (it’s almost like refreshing the page)
  • Easy to debug (remote WebKit console in Emulator)
  • It’s JavaScript!
  • Huge amount of JS-frameworks for touch devices (Sencha, iUI, jQuery mobile, iWebkit, etc) ready for use
  • Ability to make bindings to native hardware by writing Objective-C plugins
  • Good  documentation & large community

Continue reading →