Skip to main content

Posts

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…
Recent posts

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)