not idle

Archive for the 'programming' Category

If like me you decided to stick to Long Term Support versions of Ubuntu, and miss some of the new stuff in R 3.1+ such as XGBoost, you probably found out that you can’t install them due to some missing packages (namely plyr) for R 3.0. One option is to add R’s repositories and install [...]

Read the rest of this entry »

Quick reference to OpenADR 2.0 standard

Friday, April 10th, 2015

The standard OpenADR 2.0 is a standard for automated demand response in power grids. It includes both a human-readable description and a formal specification  in the form of XML schema. (Please note that, while the standard specification can be downloaded for free for evaluation purposes, actual usage is subject to limitations as specified by the [...]

Read the rest of this entry »

Fibonacci, nature and GIMP

Tuesday, September 4th, 2012

I’m a fan of Vi Hart‘s mathematical videos, and was particularly blown up by a 3-videos series on Spirals, Fibonacci and being a plant that I strongly suggest (if you can keep up the pace!). My wife tried to reproduce some of the Vi’s great drawings, but small errors in the angle quickly added up [...]

Read the rest of this entry »

Importing your Python modules into Ruby

Sunday, January 8th, 2012

I am considering using Cucumber for testing a project we have in Python. Since Cucumber uses Ruby for doing the actual work, the question is how to bridge with Python. There are, of course, several options, like calling the Python code as a shell script from Ruby. Or maybe XML-RPC? To me, however, the most [...]

Read the rest of this entry »

Testing old web pages with new tools

Monday, December 5th, 2011

Recently I discovered a great tool for doing acceptance and unit tests of the web interfaces named Capybara. It works nicely as a back-end to Cucumber / Gherkin, but it is possible, if need be, to be used stand-alone. My goal was to validate an old page we’d created using ASPX.Net  One thing, though, some [...]

Read the rest of this entry »

When I wanted to pack a simple java desktop application as a Web Start application I had problems with already signed jars – after Web Start dialog showed on the screen, I got “jar resources in jnlp file are not signed by the same certificate” problem. There exist other ways to tackle the problem (for [...]

Read the rest of this entry »

There’s a Blob in my Android

Wednesday, September 7th, 2011

It turns out that storing large blobs in Android’s sqlite3 database is not quite straightforward. The blobs (say, a few megabytes in size) get stored all right, however, what’s the point in storing things you never retrieve? So, we attempt to retrieve this little blob of ours; the usual, straightforward Java-bound sqlite3 way (inside an [...]

Read the rest of this entry »

When developing a non-trivial Eclipse plug-in, chances are that you would like to use existing modules, libraries etc. The most widely used stuff, e.g. log4j, is already available as an Eclipse plug-in, so you can just mark your plug-in as dependant on the appropriate existing ones. For others, the right way is to convert them [...]

Read the rest of this entry »

<?php konferenca 2010

Monday, July 5th, 2010

Od 8. do 10. julija 2010 se bo v Ljubljani odvijala PHP konferenca 2010 – letos bo potekala 3 dni z dvema večernima networking dogodka in s tem še več možnosti za druženje. Upoštevana so bila mnenja udeležencev s prejšnjih konferenc in sestavljen je še boljši program konference. Poleg najbolje ocenjenih predavateljev prejšnjih php konferenc [...]

Read the rest of this entry »

Netbeans Classloaders

Tuesday, September 29th, 2009

Netbeans classloader system consists of three types of classloaders, namely module classloader, system classloader and original classloader. Usually, module classloaders are used to load classes and resources from within the module itself. However, there are situations when you need to access classes and/or resources from other modules. Imagine two modules, A and B. Class Ca [...]

Read the rest of this entry »