Thursday, 8 April 2021

Popup HTML window/page on centre of screen.

 To create a popup page/window on the screen. Please follow the following script-

The below code will work only on hyperlink

<a href="popup.php"target="popup"  onclick="window.open('database.php','popup','width=300,height=200'); return false;">Click for pop-up page/window</a>

And for open popup window on center of screen on click on any hyperlink, then-

<script>

function CenteredPopup(url, title, w, h) { var left = (screen.width/2)-(w/2);

var top = (screen.height/2)-(h/2);

return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);

}

</script>

<a onclick="CenteredPopup('popuppage.html', 'popup title',350,350);" href="javascript:void(0);">CLICK for centered pop up</a>


If you are using a button to popup any page, then-

If you want to open this window on the non-center of the screen then-

<script>

        function PopupnoncentWin(pageURL, pageTitle,

                    popupWinWidth, popupWinHeight) {

            var left = (screen.width ) ;

            var top = (screen.height ) ;

            var myWindow = window.open(pageURL, pageTitle, 

                    'resizable=yes, width=' + popupWinWidth

                    + ', height=' + popupWinHeight + ', top='

                    + top + ', left=' + left);

        }

    </script>

<button onclick = "PopupnoncentWin('popuppage.html',

            'Pop-Up title', 200, 200);">

        Popup example

    </button>

If you want to open this window on the center of the screen then-

<script>

        function PopupcenWin(pageURL, pageTitle,

                    popupWinWidth, popupWinHeight) {

            var left = (screen.width - popupWinWidth) / 2;

            var top = (screen.height - popupWinHeight) / 4;

           var myWindow = window.open(pageURL, pageTitle, 

                    'resizable=yes, width=' + popupWinWidth

                    + ', height=' + popupWinHeight + ', top='

                    + top + ', left=' + left);

        }

    </script>

          <button onclick = "PopupcenWin('popcenterpage.html',

            'Popup page title', 200, 250);">

        pop up centered example

    </button>

Monday, 15 March 2021

Convert any PDF file text/text image into word document. Free OCR/PDF to word converter.

 If you have any PDF file containing text or scanned text images, you can convert it into a word document, absolutely free. No matter how big a file it is. Generally, online tools and software require money to convert it or convert it in limited pages.

Now see how it is possible.

You require a Gmail account for this, which is not a big deal now a day,  almost all people have a Gmail account currently.

So, upload your PDF file into your Google Drive, then open it in Google doc and then download it as a .docx file. You can see that the PDF file has been converted into a word document.

Steps-

1. In Google drive --->New ----> File Upload


2. Search file in a drive, Right Click on this file ---> Open with ----> Google Docs


3. Now, the file will open in the new tab of Chrome in Google doc,  
File ----> Download as ----> Microsoft word



Now your PDF file will be downloaded in word document format.




Friday, 5 February 2021

How to change Major Performance Caveat to "No". (Enable change background in Google Meet.)

 Here we see that how can we change the value of Major Performance Caveat to No. 

Open Chrome browser and type in the address bar - chrome://flags

Find Override software rendering list and Enable it

Caution:- Enabling this feature might create problems in the audio of video sharing on Google Meet.

Then Relaunch the Chrome browser.


By enabling this flag, You can change the value of Major Performance Caveat to No. You can check this value by opening https://webglreport.com/.

Changing Major Performance Caveat to No resolve the change background problem in Meet.

Click here Resolve not appearing change background in Google Meet.


Enable change background in Google Meet.

 In general, you can see the change background option when you start Google meet.




But if you don't see this option on Google Meet then you will have to check some options in Google Chrome and do some changes in Chrome.

Check your Chrome version - it should be 84 or higher on Mac, Windows, or Linux.

Chrome should also be the version of 64 bit. You can check it by clicking on the three-dot icon




then click on Help ----> About Google Chrome


Now after this, you should check that Use hardware acceleration should be turn on. To check this click on three dots in the right corner of your Chrome, then click on Settings then Advanced, after that System. Here you will find the option Use hardware acceleration when available, make sure that this option should be turned on.




Now after checking all this general information and settings and all are correct according to given, then you will have to check some other requirements.

Check that your browser supports WebGL.

To check open https://webglreport.com/, and check that Major Performance Caveat: should be "No"




If Major Performance Caveat: is "Yes" then change background will not appear on Meet.








  


Sunday, 6 December 2020

Uninstall Wine applications from Ubuntu 20.04.

Below Ubuntu 20.04, you get the Wine uninstaller application to uninstall the Wine applications but in Ubuntu 20.04 you won't get such kind of GUI on the dashboard. But again it is very simple to uninstall the Wine applications.

Open terminal and type command "wine uninstaller"



You will get the Wine uninstaller window to uninstall the application like this -


Select the application, you want to uninstall then click on the "Modify/Remove" button.






Thursday, 3 December 2020

Configure and use Wine in Ubuntu 20.04.

 Recently I updated my Ubuntu 18.04 to 20.04. And I had already installed the Wine from Ubuntu software. After some time I tried to install a .exe file but I was unable to find Wine in my application list.



After a search on web, I found that the Wine can only be configured and launched from terminal only in Ubuntu 20.04. So after installing Wine -
  • If you have installed Wine only then type the command on the terminal to configure Wine
            winecfg
  • And if you have installed Wine (Development Version) the use command on the terminal to configure Wine
            winecfg-development        

You will get the configuration screen of Wine like this-


After configuring Wine, you will be able to launch any .exe file using the command.

wine filename.exe









Subscript and Superscript text in HTML.

 A subscript or superscript is a character (such as a number or letter) that is set slightly below or above the normal line of type, respectively. It is usually smaller than the rest of the text. Subscripts appear at or below the baseline, while superscripts are above. Subscripts and superscripts are perhaps most often used in formulas, mathematical expressions, and specifications of chemical compounds and isotopes, but have many other uses as well. [From Wikipedia] Or you can use it for some other purpose.

So here we can see how can we do this on a webpage using HTML.

There is a tag available in HTML for superscript and subscript.

For superscript, it is <sup>text</sup>

And for subscript, it is <sub>text</sub>

Here is an example-

Superscript-

Arvind <sup>Kumar</sup> 

Output-




Subscript-

Arvind<sub>Kumar</sub>

output-

Change image source dynamically on hyperlink

 Changing image source dynamically using JQuery. Here in this example I have created there hyperlink and stored all images in the same folde...