Archive

Archive for the ‘Programming’ Category

Controlling Micronova pellet stove motherboard – Stufe a pellet Aria Idro IR telecomando seriale

October 18th, 2015 134 comments

Here is how to control a pellet stove with a Micronova controller remotely either via IR commands or using the serial line.

Read more…

Categories: Arduino, Electronics, Programming Tags:

Reverse-Engineering DVR Protocol

July 19th, 2014 No comments

Just a quick report of me trying to find out how DVR sends video data to the viewer over the network.

Read more…

Parsing XML and HTML using Perl and LibXML

May 31st, 2013 No comments

I used to parse HTML data using regular expressions and XML documents using xml parsers which normally parsed documents into arrays and hashes (key-value pairs).

But this time, I needed to retrieve only specific nodes of an XML document with some specific attribute. To do this, I could retrieve all nodes and then go through all records and use some conditions to get only those I am interested in or use some clever, modern solution. And this is where libXML stepped in.

Read more…

Categories: Programming Tags: , , ,

Using Regular Expressions

November 10th, 2012 No comments

In my opinion, regular expressions are one of the most useful things in general programming and are one of my secret weapons. I use them very often for parsing data from web pages, parsing out language strings from game code (for internationalizing the game), modifying and processing text files, processing output of various utilities like the “svn” terminal client. I mostly use Ruby or Perl for these as they offer various other cool features for text processing (and Perl is super-fast as well).

Read more…

Categories: Programming Tags: , , , ,

GameCenter error “The requested operation has been cancelled.” explanation

October 26th, 2012 No comments

This post is dedicated to iOS developers.

When using the following method:
[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:…]

You may get “The requested operation has been cancelled.” error while trying to authenticate the user to the GameCenter.

Don’t worry. This happens after you cancel GameCenter log in request three times and click to “Disable GameCenter” button. You may have done that during testing.

To make it working again, just open GameCenter app and sign in there.