Wednesday, September 21, 2022

Kibana: NoShardsAvailable Error Solved

 Most likely your Kibana shards are not allocated. 

You can check if some or all of your shards are UNASSIGNED using curl -XGET <host>:9200/_cat/shards?v.


In Dev Tools in Kibana:

GET /_cat/shards?v


I have deleted the UNASSIGNED Status index from Kibana Now the Error is resolved


Monday, July 4, 2022

Log rotate error :error: skipping "log file name or path of the file" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.

 Error Description:

error: skipping "<log file name>" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.


Answer

su <user> <group>

Thursday, March 3, 2022

Selection of Specific Characters from Given Text or Word

 

To select the "XX" characters 

issue the following command

 

echo "C2312GGG999XXL0021"|cut -c 12-13`

Thursday, February 24, 2022

Friday, December 24, 2021

HP Color LaserJet PRO MFP M176n Network Scanning Steps

 HP Color LaserJet PRO MFP M176n

Step 1

Use the “simple scan” Application for Scanning


Check the scanner is detected through Simple Scan -> Document -> Preferences -> Select the default scanners 



Step 2:

Step 1 Not working try this step 

HP Color LaserJet PRO MFP M176n Network Scanning :


  1. Go to the printer and determine the IP address of printer e.g.  10.x.x.156

  2. Key the printer's IP address into chromium web browser

  3. Go to Scan, there should be a Webscan option. If it says "You cannot use this function....", you'll need to enable it.

  4. Enabling Webscan : Click on "Settings"> "Security">"Administrator Settings" (just "Continue" if there are any warnings regarding Certificates, you may need to click on "Advanced" to continue)

  5. Under "Administrator Settings", there should be a "Webscan" option, make sure that is "Checked" and "Apply" or "Save" your settings.

  6. Go back to Scan and you should be able to see the options to Scan. Select "Document Source" to be "ADF", "Document Type" to be PDF and "Start Scan"! (You can also select “Document Source” to be “JPEG”)

  7. Once scanning is done, Right-click and save your file to the desired destination.



To know the list of scanners connected in your machine

scanimage -L

sane-find-scanner

hp-scan

Thursday, December 23, 2021

EPSON-L3150 and EPSON-L6190 Driver installation

 Step 1:


Connect to BOSS Repository update it


sudo apt-get update 


Step 2:


Download the following package


http://ftp.us.debian.org/debian/pool/main/l/lsb/lsb-compat_9.20161125_amd64.deb


Step 3:


Install following packages


sudo apt-get install lib32z1 libc6-i386


Step 4:


Install the package downloaded in step 2 sb-compat_9.20161125_amd64.deb


sudo  dpkg -i sb-compat_9.20161125_amd64.deb


Step 5:


EPSON-L3150  Driver installation


http://download.ebz.epson.net/dsc/du/02/DriverDownloadInfo.do?LG2=EN&CN2=IN&CTI=4&PRN=L1110%20Series&OSC=LX

Download the epson-inkjet-printer-escpr_1.7.17-1lsb3.2_amd64.deb from above link and install


sudo apt-get install epson-inkjet-printer-escpr_1.7.17-1lsb3.2_amd64.deb


Step 6:


EPSON-L6190 Driver installation


http://download.ebz.epson.net/dsc/du/02/DriverDownloadInfo.do?LG2=EN&CN2=SG&CTI=4&PRN=L6190%20Series&OSC=LX


Download the epson-inkjet-printer-escpr2_1.1.45-1lsb3.2_amd64.deb from above link and install


sudo apt-get install epson-inkjet-printer-escpr2_1.1.45-1lsb3.2_amd64.deb


Monday, July 5, 2021

How to Specify Directory for Windows in Python Program

 

you can use always:

'C:/mydir'

this works both in linux and windows. Other posibility is

'C:\\mydir'

if you have problems with some names you can also try raw string literals:

r'C:\mydir'

however best practice is to use the os.path module functions that always select the correct configuration for your OS:

os.path.join(mydir, myfile)

How to interact with the non-interactable Web Elements in Selenium

How to interact with the non-interact able Web Elements in Selenium    // Find the non-interactable element element WebElement element = dr...