Creating a SonarQube custom plugin for Kotlin

In Android we decided that we want to implement a unit test performance monitor. The reason for it is that sometimes some unit tests would execute in more than 1 second and it was all because we would use the Schedulers.trampoline() RxJava scheduler instead of the TestScheduler which is part of the RX package.

Continue reading “Creating a SonarQube custom plugin for Kotlin”

Fix Lubuntu 14.04 Chromium fullscreen mode

I bought an old Dell D430 laptop which is pretty old and small (12″) and I installed Lubuntu 14.04.02

The problem is that the fullscreen mode on Chromium and Chrome is not working as expected. It hides the application bar at the bottom but does not allow the browsers to go fullscreen – tabs and address bar are staying in their place when you press F11.

The problem is that the F11 key is taken from the system to make the current focused window fullscreen. You can see it here: https://help.ubuntu.com/community/Lubuntu/Keyboard
So just go to ~/.config/openbox , backup the lubuntu-rc.xml file and edit the original one replacing the F11 shortcut for toggle fullscreen with F10 for example.
Logout and login again and now when you press F11 in chrome or chromium it will go fullscreen, instead of using the default system shortcut.

Guake Terminal for Ubuntu not opening another terminal in the same folder

I use Guake for Ubuntu as a terminal. And there is this option in the Guake properties to set it to open the same directory you were in if you want another terminal. This is just now working with the latest version of Guake. To fix it just run the following:

gconftool-2 –set /apps/guake/general/open_tab_cwd –type=boolean true

And it will add a variable saying that you want the same folder opened when you open another terminal. 🙂

The bug can be found here: https://github.com/Guake/guake/issues/578

Android adb server version (32) doesn’t match this client (Genymotion)

Probably you have seen this type of error when using Genymotion as the Android emulator on which you test your device. This is how the error looks like:

adb server version (32) doesn’t match this client (35); killing…
error: could not install *smartsocket* listener: Address already in use
ADB server didn’t ACK
* failed to start daemon *

There is one simple thing that worked for me. I opened the Settings menu of Genymotion, then ADB tab and selected: Use custom android SDK tools and I set the path to the tools. By default Genymotion uses its built-in tools. After that killing all working emulators and starting them again makes everything  work.

Hope I have helped!