Ubuntu how to right click and scroll

I have not been using my Ubuntu laptop touchpad for ages, but recently i have been traveling and i am taking my laptop out every day, so i have to use the touchpad way more frequently.

A wrench got thrown in my thinking process when i saw i cannot right click or edge scroll but it looks like this behavior was just changed. If it’s simpler or not it’s for you to judge:

Right clicking in Ubuntu is now achieved by using 2 fingers to click on the touchpad.

Edge scroll seem to not be working anymore, however you can scroll by using 2 fingers instead of one, anywhere on the touchpad.

Happy Ubuntu-ing!

Ubuntu – close Discord but notifications still come

So i am using Discord a lot and i have encountered this problem more than once: you close Discord but the notifications still come even though the icon in the systray is not there. Pretty annoying right?

I found 2 cool things to deal with this:

1 – https://extensions.gnome.org/extension/1031/topicons/ – install topIcons Plus – this will show you the systray at the top and if you close any program from there, it really stays closed.

2 – press “control+q” while having Discord opened. – same result.


Atat de multe

Iar incep asa cum incepeam odata sa spun 🙂 S-au intamplat multe, atat de multe schimbari si atat de multe lucruri noi. O sa dureze ceva sa impartasesc tot.

Era un obicei fain sa scriu pe blog din chestiile interesante care mi se intampla. Cred ca ajuta un pic si sa revizitez actiunile din trecut, si sa constientizez mai bine si daca se poate, sa invat mai mult din experientele avute, fie ele bune sau rele. It’s all part of the game!

Nu stiu daca mai citeste cineva, dar as vrea sa fac asta in primul rand pentru mine. E un proces bun si imi pare rau ca am uitat sa il folosesc in viata de zi cu zi.

Am mai citit din postarile din trecut si am zambit. Multe chestii au fost distractive. Cred ca am evoluat, si cred ca mai sunt povesti care merita spuse, asa ca am inceput cu o mica curatenie, am schimbat tema sa fie foarte minimal si … nowhere to go but up.

In continuare o sa mai existe posturile in engleza despre tech si chestii care le pastrez in jurnal pentru ca sunt chestii de care ma lovesc sau am nevoie mai frecvent. Pe langa ele, o sa fie postari despre ultimii … ani in care a fost tacere.

A fost o aventura decenta si o sa incerc sa aduc incetisor totul la zi.

Daca mai e cineva care ma citeste – salutare si imi pare bine sa va revad. Daca nu – salutare viitorilor cititori 😉

Create MySQL Admin user

If you want to create a MySQL admin user that can connect from anywhere, feel free to tweak the string below:

#create SQL Admin user
CREATE USER ‘clusterAdmin’@’%’ IDENTIFIED BY ‘YOUR_cool_password_here’;
GRANT ALL PRIVILEGES ON *.* TO ‘clusterAdmin’@’%’;

If you want to limit connections to localhost, switch the “%” to “localhost”

Productivity tip – Session Buddy

If you’re like me, you probably have groups of tabs opened in your browser, for instance this is how my taskbar looks like:

So i usually split up my tabs into: work, education, reading and so on.

The problem is that sometimes when Chrome crashes and i don’t get the “restore tabs” option, i have to redo everything aaaaalll over again and it’s quite a pain.

Enter “Session buddy” – an extension from the Play Store. Install it and your sessions get saved quite nicely:

Hope this boosts your productivity!

Google Cloud Platform – FTP

So if you’re getting an error similar to this: “500 I won’t open a connection to (only to…” if you’re trying to use FTP on a VM on Google Cloud, fear not, it’s an easy fix.

You can do this 2 ways:

1 – FTP -p remote-host


2 – FTP remote-host -> log in -> then type “passive” without quotes, and everything should be just fine.


MySQL 5.7 – reset root password

So there’s been a change in the way you reset the MySQL root password in MySQL 5.7 as in the “password” field got removed, so the old way of resetting the password doesn’t work anymore:

| authentication_string | text | YES | | NULL | |

So let’s go:

1 – stop the mysqld:

systemctl mysqld stop

2 – start mysqld with skip-grant so it doesn’t ask for your password:

mysqld –skip-grant-tables &

3 – change the pw:

use mysql;

update user set authentication_string=password(‘yourNewPwHere’) where user=’root’;

flush privileges;


4 – stop the mysql

5 – start the mysql with the new root pw

systemctl start mysqld


Dynamic robots.txt – block search engines for all robots.

If you have multiple websites on a server or wildcard websites and you don’t want to create 1000 robots.txt files, but you want to disallow search engines access,  you can do the following elegant solution:

Create a robots.txt with the content below:
User-agent: *
Disallow: /

Then create your robots.txt file somewhere on your server.

Add the following to your httpd.conf:

# Exclude all robots
<Location “/robots.txt”>
SetHandler None

Alias /robots.txt /path/to/robots.txt

Restart your httpd server and you’re good to go!

Reset wordpress file/folder permissions

If you need a quick and easy fix for broken wordpress permissions - feel free to copy/paste the lines below. These will reset them to defaults.

cd /your/wordpress/folder
find . -type d -exec chmod 755 {} \;  # Change directory permissions rwxr-xr-x
find . -type f -exec chmod 644 {} \;  # Change file permissions rw-r--r--