How to rotate YouTube videos in YouTube Studio Beta?

Rotate YouTube videos in YouTube Studio Beta. Very Easy. Step by step instructions.

1) Open your youtube channel in chrome browser
2) Click on Create Studio Classic
3) Click on Skip button
4) Go to Edit-Enhancements
5) Go to More tools-Developer tools or press CTRL+SHIFT+I
6) Go to 'Element tab'
7) Press CTRL+F
8) Type 'rotate'
9) Click on the 'search next' button until to see hidden="true" attribute
10) Double click on the 'hidden' attribute
11) Delete hidden="true" attribute.
12) Press ENTER key
13) Now you can see the rotate buttons
14) Close the console window
15) Click on the ROTATE  button and SAVE it.
Done!!!

Note: This will work with almost all browsers. I have done with chrome browser.

Remove background from an image using GIMP


Open an image in GIMP application.
Click on "Select by Color Tool" icon in the left panel.
Then click on the background of the image you want to remove.
Then go to "Select - Invert" menu.
Then go to "Edit - Cut" menu.
Then paste the image in the transparent new layer.
 Then export the image as "PNG".

How to create website shortcut?


How to create website shortcut?
------------------------------------------------
1) Open the browser.
2) Type your url (e.g https://www.bitcompiler.com).
3) Resize the browser window so you can see both your computer's desktop and the browser window on the same screen.
4) Click the icon on the left of the address bar (where the URL is shown).
5) While still holding the mouse button down, move the pointer to the desktop, then release the mouse button. The shortcut will be created.

Beautify HTML, XML, JSON, CSS and JavaScript in Online

HTML, XML, JSON, CSS and JavaScript Beautifier is used for beautify HTML,XML,JSON,CSS and JavaScript in online. Beautifier will reformat and re-indent bookmarklets, ugly JavaScript, unpack scripts. Beautify, unpack or deobfuscate JavaScript and HTML, make JSON/JSONP readable.

https://www.bitcompiler.com/html-beautifier

Trust self signed certificate in Spring Boot

Trust self signed ssl certificate in Spring Boot Rest Template

public RestTemplate getRestTemplateForSelfSsl() throws KeyStoreException, NoSuchAlgorithmException, KeyManagementException {
    TrustStrategy acceptingTrustStrategy = (X509Certificate[] x509Certificates, String s) - > true;
    SSLContext sslContext = org.apache.http.ssl.SSLContexts.custom().loadTrustMaterial(null, acceptingTrustStrategy).build();
    SSLConnectionSocketFactory csf = new SSLConnectionSocketFactory(sslContext, new NoopHostnameVerifier());
    CloseableHttpClient httpClient = HttpClients.custom().setSSLSocketFactory(csf).build();
    HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory();
    requestFactory.setHttpClient(httpClient);
    RestTemplate restTemplate = new RestTemplate(requestFactory);
    return restTemplate;
}

@ResponseBody
public String send(String url, HttpEntity entity, HttpMethod httpMethod) {
    String response;
    try {
        try {
            RestTemplate restTemplate;
            if (url.startsWith("https")) {
                restTemplate = getRestTemplateForSelfSsl();
            } else {
                restTemplate = new RestTemplate();
            }
            ResponseEntity < String > responseEntity = restTemplate.exchange(url, httpMethod, entity, String.class);
        } catch (HttpStatusCodeException ex) {
            log.error(ex);
        }
    } catch (Exception ex) {
        log.error(ex);
    }
    return response;
}

Solved: Object doesn’t support property or method ‘assign’

Object.assign() method is not supported in IE, but there is a polyfill available

Put the below line of code to your <head> for solving this issue.