Skip to main content

Posts

Showing posts from 2018

How to check Properties of JAVA installed

[myuser@localhost ~]$ java -XshowSettings:properties -version
Property settings:     awt.toolkit = sun.awt.X11.XToolkit     file.encoding = UTF-8     file.encoding.pkg = sun.io     file.separator = /     java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment     java.awt.printerjob = sun.print.PSPrinterJob     java.class.path = .     java.class.version = 51.0     java.endorsed.dirs = /home/myuser/java/jdk1.7.0_75/jre/lib/endorsed     java.ext.dirs = /home/myuser/java/jdk1.7.0_75/jre/lib/ext         /usr/java/packages/lib/ext     java.home = /home/myuser/java/jdk1.7.0_75/jre     java.io.tmpdir = /tmp     java.library.path = /usr/java/packages/lib/amd64         /usr/lib64         /lib64         /lib         /usr/lib     java.runtime.name = Java(TM) SE Runtime Environment     java.runtime.version = 1.7.0_75-b13     java.specification.name = Java Platform API Specification     java.specification.vendor = Oracle Corporation     java.specification.version = 1.7     java.vendor = Oracle Corpo…

keytool cheatsheet

Divide photos from mobile to different folders

If photos are of name  20171114_175035.jpg you can divide them into different folders according dates.
Run below commands on photos folder.
rem copy pictures images movies camera/mobile phone to sub folders pics photos
rem ##### make folders according dates of images ##### dir /b *.jpg | sed -e "s/^\(....\)\(..\)\(..\)_\(.\).*/mkdir \1_\2_\3_\4/g" | uniq  |sort > c1.bat c1.bat
rem #### move images to folders ##### dir /b *.jpg | sed -e "s/^\(....\)\(..\)\(..\)_\(.\).*/move \0 \1_\2_\3_\4/g"  > c2.bat c2.bat
rem #### make folders for movies ##### dir /b *.mp4 | sed -e "s/^\(....\)\(..\)\(..\)_\(.\).*/mkdir \1_\2_\3_\4/g" | uniq  |sort > c1.bat c1.bat
dir /b *.mp4 | sed -e "s/^\(....\)\(..\)\(..\)_\(.\).*/move \0 \1_\2_\3_\4/g"  > c2.bat c2.bat
dir /b *.avi | sed -e "s/^\(....\)\(..\)\(..\)_\(.\).*/mkdir \1_\2_\3_\4/g" | uniq  |sort > c1.bat c1.bat
dir /b *.avi | sed -e "s/^\(....\)\(..\)\(..\)_\(.\).*/move \0 \1_\2_\3_\4/g"  …

net::ERR_SPDY_PROTOCOL_ERROR

net::ERR_SPDY_PROTOCOL_ERROR
What is SPDY
SPDY, developed by Google, is a networking protocol. It ensures fast web page download.
When can you encounter the spdy error?
SPDY needs SSL/TLS (Secure Sockets Layer)/(Transport Layer Security) communication security to work. That’s the reason a lot of users encounter this error when visiting secure websites.
Some common examples of secure websites with HTTPS pages are YouTube, Google, Gmail etc.
But you can also encounter the SPDY error when visiting non-HTTPs websites. These websites use TCP (Transmission Control Protocol). SPDY also supports this protocol and throws the error when a user visits these websites.
Although common in Google Chrome, you may also face this glitch in Mozilla Firefox and Internet Explorer.
What causes err_spdy_protocol_error
When you visit a webpage, your browser sends a request using SPDY protocol. An outdated browser will trigger an old version of SPDY. Since Google only supports the latest version, your request w…

elasticsearch cheatsheet (REST)

KB: ElasticSearch - upgrade 2.x to 5.x - Linux

KM03207448


Upgrading Elasticsearch from version 2.x to 5.x (Linux)


SummaryElasticsearch is a required component of ALM Octane. This document is provided as a service and provides instructions on upgrading Elasticsearch on Red Hat Enterprise Linux / Centos platforms. TopicThis article provides the steps for upgrading the Elasticsearch database from version 2.x to 5.x. Elasticsearch is a required database component for ALM Octane. Elasticsearch version 5.x is required for ALM Octane 12.55.25 and later. OverviewThe upgrade is divided into three stages:

Before upgrading: Install the migration plugin and run the cluster checkup to see what you will need to adjust during the upgrade.
Upgrade: Perform the upgrade.
After upgrading: Restart the cluster, and resume indexing and searching. Before upgrading1.Install the migration plugin:  Install the migration plugin with a version corresponding to the version of Elasticsearch currently installed.
You can install from the web or from a local file. Install…