Trouble changing the country of Google account

So a couple of years ago I moved back to Lithuania, but my Google account was still bound to UK. The guides I used to change the country did not work and I did not have an option to change the country as described in the Google documentation. I had to do a few extra steps:

  • Delete the Google Family group
  • Change my phone number associated with the account to a Lithuanian one

As soon as I did the last step, the option to switch to Lithuania appeared on my phone’s Settings and then General and then Account and device preferences and then Country and profiles section.

Now I just need to wait and see what content will no longer be available for me as it takes 48 hours for the change to happen. I have a few games I bought for my kids to share with, but the most important one is obviously Minecraft! Fingers crossed it’s still available to install 😅

Sometimes it is worth just to wiggle the wires

Had an issue with a Linx 10 (model 1010B) tablet: touching anywhere on the screen would end up opening up Windows Start menu and touch registration was behaving erratically. This made the tablet pretty much unusable without mouse and keyboard attached.  The fix turned out to be very simple.

Continue reading “Sometimes it is worth just to wiggle the wires”

Loss of networking after apt-get upgrade on 1and1 dedicated server

Recently upgraded my Ubuntu 14.04 server at 1and1 with apt-get update and apt-get upgrade to find out that the server is no longer accessible. Was still able to connect to the server via serial console supplied by 1and1 and found out that the server was having trouble setting up network interfaces during boot process. Continue reading “Loss of networking after apt-get upgrade on 1and1 dedicated server”

Fixing Wanhao Duplicator 4S MightyBoard


Recently I bough a faulty Wanhao Duplicator 4S to increase the capacity of my 3D printing requirements as I already own one and know the machine inside out. eBay seller’s description wrote that the 3D printer stalled in the middle of a print. I did some digging across the internet before I purchased the machine and was suspecting that some wires were not shielded correctly which resulted in electromagnetic interference. It cost me £300 and that’s half of the retail price so even if I couldn’t be able to fix it, I would have plenty of spare parts for my current 3D printer.

Continue reading “Fixing Wanhao Duplicator 4S MightyBoard”

Compare version strings with InnoSetup

I recently had to implement version string comparison for InnoSetup, because the solutions that I found on the internet did not suit my needs. Hopefully this will be useful for somebody else.

// Procedure to split a string into an array of integers 
procedure Explode(var Dest: TArrayOfInteger; Text: String; Separator: String);
  i, p: Integer;
  i := 0;
    SetArrayLength(Dest, i+1);
    p := Pos(Separator,Text);
    if p > 0 then begin
      Dest[i] := StrToInt(Copy(Text, 1, p-1));
      Text := Copy(Text, p + Length(Separator), Length(Text));
      i := i + 1;
    end else begin
      Dest[i] := StrToInt(Text);
      Text := '';
  until Length(Text)=0;

// Function compares version strings numerically:
//     * when v1 = v2, result = 0  
//     * when v1 < v2, result = -1  
//     * when v1 > v2, result = 1
// Supports version numbers with trailing zeroes, for example 1.02.05.
// Supports comparison of two version number of different lengths, for example
//     CompareVersions('1.2', '2.0.3')
// When any of the parameters is '' (empty string) it considers version number as 0
function CompareVersions(v1: String; v2: String): Integer;
  v1parts: TArrayOfInteger;
  v2parts: TArrayOfInteger;
  i: Integer;
  if v1 = '' then
    v1 := '0';

  if v2 = '' then
    v2 := '0';

  Explode(v1parts, v1, '.');
  Explode(v2parts, v2, '.');
  if (GetArrayLength(v1parts) > GetArrayLength(v2parts)) then
    SetArrayLength(v2parts, GetArrayLength(v1parts)) 
  end else if (GetArrayLength(v2parts) > GetArrayLength(v1parts)) then
    SetArrayLength(v1parts, GetArrayLength(v2parts)) 
  for i := 0 to GetArrayLength(v1parts) - 1 do 
    if v1parts[i] > v2parts[i] then
      { v1 is greater }
      Result := 1;
    end else if v1parts[i] < v2parts[i] then
      { v2 is greater }
      Result := -1;
  { Are Equal }
  Result := 0;

To test the code in InnoSetup, you can use the following function:

procedure TestVersions(v1: String; v2: String);
  Log(v1 + ' : ' + v2 + ' = ' + IntToStr(CompareVersions(v1, v2)));

And call it with some parameters:

  TestVersions('1', '2');
  TestVersions('2', '1');
  TestVersions('3', '3');
  TestVersions('1.1', '1');
  TestVersions('2.1', '1');
  TestVersions('1.1', '2');

  TestVersions('2.12.11', '2.12.25');
  TestVersions('', '2.12.25');
  TestVersions('2.12.25', '');
  TestVersions('', '');
  TestVersions('2.12.11', '2.012.11');

A practical example can be used as follows:

if CompareVersion(currentVersion, newVersion) = -1 then
  //do the upgrade

Windows 7 on Acer E1-530

My wife’s Acer E1-530 is a nice laptop which comes with Windows 8 – rather a big misunderstanding by Microsoft of how proper OS should work. Windows 8 is OK for tablets, but it’s absolute rubbish for laptops without touchscreen. For no reason whatsoever I had to completely reinstall it twice, because after some time it failed to boot due to some mysterious error. The only option was to reset it which fixed it for a few weeks. After the boot problem happened for the third time it was time to load Windows 7 on the laptop.

The process is fairly simple, you just need to go to BIOS (keep pressing F2 during boot screen) and enable legacy boot mode instead of UEFI. Acer does not provide Windows 7 drivers on their website for download, but all drivers are in the C:\OEM\Preload\Autorun\DRV hidden folder. Just stumbled on this blog post which turned out to be very handy by providing the tip on where to find drivers for the Acer E1-530! The only missing driver is the “USB eXtensible Host Controller” which you can download from my blog:


I replaced the HDD with an SSD and Windows 7 on the laptop and now it’s become a very fast and nice piece of kit.

Visual Studio 2013 hangs after each debug session

Stumbled upon this issue when Visual Studio 2013 Update 4 would hang after each debug session. Very annoying especially when you want to quickly run the application test something, fix code and back to the beginning of this cycle. The hanging would occur for about 15-30s every time I would close the application and debug session ends. To resolve this I tried a lot of solutions suggested by Google which didn’t help:

  • Resetting Visual Studio 2013 settings via “devenv.exe /ResetSettings”
  • Deleted *.suo file
  • Rebuilt new solution file with all projects
  • Even disabled internet as I was suspecting some sort of network communication issue was causing this
  • Attempted to disable git integration with Visual Studio by renaming .git folder to _git as a temporary solution
  • Tried to disable IntelliSense with no luck

The only solution that worked for me was to disable Visual Studio host process for the project. To do this on the Project menu, click Properties, then click the Debug tab and uncheck the Enable the Visual Studio hosting process check box.

Hope this post saves a few hours messing around with settings for somebody trying to resolve this issue.

Cheap USB MIDI cable: some self assembly may be required


I had recently bought a Rock Band 3 Wii keyboard which has come down in price to around £10 with an intention to connect it to a cheap Chinese USB to MIDI interface cable for around £3 pictured above to do some MIDI experiments on my computer. Videos online demonstrated that connecting the IN connector to the keyboard and USB cable to the PC was all that was needed to use it, but I just couldn’t get it working. The Rock Band keyboard detected a MIDI cable and switched to MIDI mode, PC properly detected USB MIDI device, but there were no messages in the MIDI-OX application. That’s when I decided to open up the plastic casing to find a few surprises…

Continue reading “Cheap USB MIDI cable: some self assembly may be required”

Problems with Samsung Series 5 Ultrabook and USBTinyISP

Well, this is somewhat disappointing… I recently acquired a Samsung Series 5 530U3B Ultrabook which is really nice and was going to make my main laptop for on the work on the go. Unfortunately it supplies insufficient power to my USBTinyISP programmer. The effect is that when I try to program ATTiny45, I get this error:

Binary sketch size: 2,752 bytes (of a 4,096 byte maximum)
avrdude: verification error, first mismatch at byte 0x0040
 0x02 != 0x36
avrdude: verification error; content mismatch

The verification fails on random memory addresses. This means that I will need to add an external power supply to my custom programmer or find a USB hub with external power supply. I think that the latter will be the easiest.

Repairing Syma S031G helicopter

A few weeks ago I found this boxed Syma S031G helicopter in a ModelZone store on a special shelf where they are selling broken or otherwise non working gadgets. There were more of those broken helicopters for sale, but they were in a range of £30 and were listed as having RC transmitter problems or other faulty parts. It wouldn’t have made sense buying one without investigating if repairs wouldn’t even cost more than a new heli retailing for £59.99 at the same store (or 30% cheaper on eBay). Mine only had a handwritten sticker “broken” stuck to it and a price of £9.99. A quick inspection through the box didn’t show any signs of significant damage and shop assistant was kind enough to let me open the box and check if it had all parts. Transmitter, charger, heli, instructions and even spare rear propeller was in the box so I decided to take the risk and bough it.

Continue reading “Repairing Syma S031G helicopter”