Home » Archive by category "Tools"

Creating TimeSeries chart with jfreechart

Second chart generated by Mavis – chart with my yearly activities with games and books, by each month. As previously described bar chart I use jfreechart to generate data.

Read more

Creating Bar chart with jfreechart

For last few weeks I was working on Mavis – little tool to generate data for posts on this, and personal blogs. Core feature is generating charts describing my monthly and yearly activities, so I’ll write some posts about generating charts with jfreechart library. Read more

Using Travis.CI with Java Eclipse Project

Lately I set up Travis.CI for my Mavis project. It’s hosted continuous integration service free for open source projects. It’ll build your project and, optionally, run tests after every push to remote repository that contains travis.yml configuration file.

As I never really used ant or travis.ci before it took me too many hours to actually setup it correctly, so I figured I’ll share new knowledge.
Read more

MPD-helper post-mortem

MPD-01

It’s post mortem time~! Finally I have enough time to describe my longest – for now – project: MPD-helper. You can get source code from repository on my github.

It is – as name suggests – helping tool for Modeling of Discrette Processes (in polish Modelowanie Procesów Dyskretnych). Purpose was to automatise solving simple, offline scheduling problems for two, or three machines. It supports:

Read more

Strategy pattern in MPD-Helper

Here are some thoughts about last refactoring step for my MPD-Helper (repo’s here, post’s here) – replacing code type with Strategy.

I’ll try to explain pattern (I’ll base on Gang of Four brilliant book), my motivation for this refactoring and (in short) implementation. Read more

Ploter refactoring

Some days ago I mentioned on twitter that I feel trapped inside infinite refactoring loop. I see various places that I’m not satisfied with in my code, and it keeps me from adding new features. Yesterday I finally added one, simple algorithm to check how refactoring simplified code structure… well… it’s not that bad. But I decided to work some more on ploter class. It have some nasty magic numbers and very messy draw function (you can see it here). Read more

Yellow – Red – Blue Refactor

When refactoring really small projects I start with pen & paper and wrote down all classes, variables and methods. Read more