Posts

Showing posts from April, 2019

FATAL: Peer authentication failed for user "postgres"

When we are getting error likeWhen we get error at the time of import the postgres database :- : FATAL:  Peer authentication failed for user "postgres"then:-
The problem is still your pg_hba.conf file (/etc/postgresql/9.1/main/pg_hba.conf). This line:local   all             postgres                                peer

Should be

local   all             postgres                                md5

After altering this file, don't forget to restart your PostgreSQL server. If you're on Linux, that would be 

sudo service postgresql restart

SEE ALSO,

http://stackoverflow.com/questions/18664074/getting-error-peer-authentication-failed-for-user-postgres-when-trying-to-ge

I cannot sign in to Blogger using my gmail account

Image
I cannot sign in to Blogger using my gmail account after April 2, 2019 - being redirected to the homepage all the time.  I believe it's related to the shutdown of Google+. I can view my blog but cannot go to Blogger to edit it.  I was able to sign in before April 2. I do use Google+ in the About Me section of my blog but that should be an easy change after I login to Blogger. Any ideas how to sign in to Blogger after the Google+ shutdown?My solution for this problem was to load again this "profile change" page -> enter my "Display Name" -> click "Continue to Blogger" . Here's the URL:https://www.blogger.com/switch-profile.g It only works if you've used your Google+ profile so far, or if you haven't yet chosen a Display Name for your Blogger profile. If you are currently not logged in to any of Google's services, you can do it here first: https://accounts.google.com/ServiceLogin

reason: 440 5.7.40 Access denied, banned sending IP [440.185.193.75]

reason: 440 5.7.40 Access denied, banned sending IP [440.185.193.75] Error 440 5.7.40 banned sending IP To troubleshoot the problem, verify which IP address you are using to communicate with Office 365. To easily identify your Public IP, type in Google what is my ip. You can just go that below and see the solution.https://nolabnoparty.com/en/office-365-error-505-5-7-606-banned-sending-ip/

Create a zip file with subfolders in Rails

Create a zip file with subfolders in RailsUsing system command we can create a zip file from Rails code.Here is the command-system "zip -r zipfile_name . -i /foldername/*"

Screen rotation issue in Ubuntu 18.04 LTS on system restart

Screen rotation issue in Ubuntu 18.04 LTS on system restart Whenever I restart my system. My screen rotate automatically. I recently installed Ubuntu 18.04. However I observed for another laptop for which I have installed same Ubuntu version, this is not happening. This issue can be temporary resolved by typing below command.Type below command to switch to normal screen  $ xrandr -o normalTry this command to stop and disable  $ sudo systemctl stop iio-sensor-proxy.service
  $ sudo systemctl disable iio-sensor-proxy.serviceTry this command to remove  $ sudo apt-get remove iio-sensor-proxy See also,https://www.programsbuzz.com/article/screen-rotation-issue-ubuntu-1804-lts-system-restart
https://askubuntu.com/questions/1035209/how-to-turn-off-screen-rotation-in-ubuntu-18-04-lts

How to install sublime text on Ubuntu

how-to-install-sublime-text-3-on-ubuntu-18-04 To install Sublime Text 3 on your Ubuntu system, follow these steps: 1.  Update the apt package list and install the dependencies necessary to fetch packages from https sources:

      sudo apt update

      sudo apt install apt-transport-https ca-certificates curl software-properties-common


2.   Import the repository’s GPG key using the following curl command:

      curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

     Add the Sublime Text APT repository to your system’s software repository list by typing:

      sudo add-apt-repository "deb https://download.sublimetext.com/ apt/stable/" 

3.   Once the repository is enabled, update apt sources and install Sublime Text 3 with the following commands:

sudo apt update

     sudo apt install sublime-text


See also https://linuxize.com/post/how-to-install-sublime-text-3-on-ubuntu-18-04/#installing-sublime-text-on-ubuntu



Wi-Fi Not Working on Ubuntu? Here's How to Fix it.

Wi-Fi Not Working on Ubuntu? Here's How to Fix it
Temporarily Solution:We need to open file /etc/resolv.conf# add this below line...

nameserver 8.8.8.8
then restarted using sudo /etc/init.d/networking restart
Now your system is connected with wifi. See also,https://askubuntu.com/questions/1021888/ubuntu-18-04-beta-cannot-connect-to-wifi-internet
https://www.youtube.com/watch?v=-qnCG3IOOvE Permanent Solution:We need to install Nvidia Proprietary Drivers in Ubuntu We need to follow link below,https://itsfoss.com/install-additional-drivers-ubuntu/