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-

Thursday, 5 November 2020

Very simple way to create barcode on web page in PHP.

 A barcode or bar code is a method of representing data in a visual, machine-readable form. I have seen many programming techniques to create barcode, but all looks very complex to utilize in your code. Here I have found a simple way to create a barcode in a single line of code. Please see -

You need to download barcode generator file (barcode.php) from here :-

 https://github.com/davidscotttufts/php-barcode/

You will have to use this file on page where you want to generate the barcode like this-

<img alt="arvind" src="path_of_file/barcode.php?text=123456789&print=true" />

Resulted barcode will be -

Another variant of barcode is-
 
<img alt="arvind" src="path_of_file/barcode.php?codetype=Code39&size=60&text=123456789&print=true" />

Result will be -

And if you want it to create vertically then use this code -

<img alt="arvind" src="path_of_file/barcode.php?text=123456789&orientation=vertical&size=40" />

Result will be -

You will have to put your data into text property.

If you want to generate create bar code of dynamic data then you can use it as

<img alt="arvind" src="path_of_file/barcode.php?text=<?php echo $data; ?>&print=true" />

For more please visit-







Monday, 2 November 2020

Host your web page on Google drive.

 It is very easy to host your web page on Google drive. Many people like me do not want to purchase hosting services and sometimes it is not required.

So let see how we can do this. Follow the steps. 

  • Create a folder on your Google drive.


  • Upload your HTML files in this folder. You can also upload a folder instead of creating a new one, but make sure if there are many files in this folder, the home page should be named index.html.
  • Now on your folder, "right click" and select "Get link".



  • Also, click on "Anyone with the link" below the link.


  • Now open a website "https://drv.tw/", and select google drive.


  • Login in with your Gmail account and allow access to DriveToWeb, Admin panel will be opened with a link, which can you share or use to open your web page.

  • Done and enjoy!!! Your web page URL may look like https://etkwv2565bmwgh3ujmnrag-on.drv.tw/test/



You can do the same to host your page on OneDrive.

Note:- Make sure that you trust DriveToWeb
You may be sharing sensitive info with this site or app. Find out how DriveToWeb will handle your data by reviewing its terms of service and privacy policies. You can always see or remove access in your Google Account.

Sunday, 1 November 2020

Textbox to input only number/numeric value in HTML5.

 In this post, we will learn, how to make any textbox in HTML to take the only number or numeric value. This value can be either decimal or float.

It is very easy to create such a textbox using HTML5.

Use the input tag and set type property number

<input type="number" />

So this will not take any value other than numeric, remember that it will take only decimal value, not floating type of number.

If you will input float data like 2.3, it will again be denied like this- 


To take float value you will be required to use step property like this:-

<input type="number" step="0.01" />

Above will take 2 numbers after the decimal and like so on you can define the number to accept.

If you don't want any restriction than use 'any', like this:-

<input type="number" step="any" />



Monday, 5 October 2020

Send message to another PC in network without any software [Windows].

 If you are working on a PC and you want to send a message to your friend/colleague. Then you can use your PC to send any message and it is very simple and it does not require any software. For that, you should know the IP address or system name of the target system.

Now to send a message, open the command prompt of your system and type command

msg /server:172.16.16.110 * /TIME:60 "Your message here."




And on the target system, you will get message like - 



Enjoy!!!


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...