I am using axios to scrape some data from some websites. Currently, I hit the case where the encoding of the website is in windows-1251 and the response I got from the request wasn’t readable at all.Continue reading “Parse windows-1251 (cyrillic) request in axios”
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”
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.Continue reading “Disabling update manager popup in Ubuntu”
Following the answer from HERE it is becoming a simple task.Continue reading “How to handle multiple heroku accounts with GIT”
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.
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
Recently I had to install manually an Ubuntu with the xfce4 desktop. I couldn’t read Chinese symbols so here is the solution:
sudo apt-get install fonts-wqy-zenhei
It installs wide range of fonts for Chinese
I wanted to stop the mongod service running on system boot in Ubuntu. This service is starting the mongodb database.Continue reading “How to stop services from running in Ubuntu or how to stop mongo from autostart?”
I just wanted to share with you how my terminal looks like and how to export the PS1 variable.
To achieve it for Ubuntu: sudo gedit ~/.bashrc
For Linux Mint: sudo gedit /etc/bash.bashrc
And paste the following there at the line before the last one:
export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[01;33m\]$(__git_ps1)\[\033[01;34m\] \$\[\033[00m\] '
Recently, I installed MongoDB following the tutorial on their site on Ubuntu 16.04 64 bit. But when trying to start the mongod service I got the following error: “Failed to start mongod.service: Unit mongod.service not found.”Continue reading “Failed to start mongod.service: Unit mongod.service not found. – Ubuntu 16.04”