Android Notification White Square Icon

We have all seen the white square at the top type of a notification in the notification bar.

May 5, 2020 · 1 min · gmirchev90

Disabling update manager popup in Ubuntu

I want to stop the update manager from popping up in Ubuntu because I think that they release bad updates sometimes and really make the OS unstable. This is my personal opinion after 3 reinstallations in 2 months.

May 4, 2020 · 1 min · gmirchev90

How to handle multiple heroku accounts with GIT

Following the answer from HERE it is becoming a simple task.

May 4, 2020 · 1 min · gmirchev90

Android Studio Live Templates

I was really wondering how I can remove repetitive tasks from Android Studio by assigning shortcuts or tags and I found that IntelliJ has Live Templates which I bet that little programmers use. So as an example I wanted when I type the word “tag” within a class the following to be autocompleted:

May 4, 2020 · 1 min · gmirchev90

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: ...

May 4, 2020 · 1 min · gmirchev90

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. 🙂 ...

May 4, 2020 · 1 min · gmirchev90

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. ...

May 4, 2020 · 1 min · gmirchev90

The difference between a spec and a test (Behaviour Driven Development)

What is a spec There was a time where I saw some tests which my colleagues made where the file name in the test folder would be: “users.spec.coffee”. So “spec” is short of specification and it is a totally different way of how we think about tests.

May 4, 2020 · 3 min · gmirchev90

Card.io issue not supporting Samsung S5 and other devices

card.io 5.4.2 Card.io is a card recognition SDK used by PayPal which allows you to easily scan your own credit/debit cards and get information about them in the code. Problem Using card.io from the source and not from Maven requires you to have the latest Android NDK with which the project will be built. But compiling it with the latest NDK introduces a bug which prevents the library from supporting several phones like Samsung S5, Honor 7 and others.

May 4, 2020 · 1 min · gmirchev90

Mockito anyString() vs any() – null handling

Sometimes, when I mock a method in Mockito, I used anyString instead of any and I get into a mess and my test fails. Why? given(mUserRepo.getUser(anyString(). any())).willReturn(new User()); And what will happen if mUserRepo.getUser(null); UserRepo is called with null? Well, the matcher doesn’t work and the test fails. anyString() does not work with null values. If you pass null to a mocked service then use any() as a matcher.

May 4, 2020 · 1 min · gmirchev90