Set Favicon Size in CSS Rather than HTML Attributes

Jai Janardhan
Updated on 25-Feb-2020 06:32:28

3K+ Views

A favicon is a little icon visible on the web browser tab, just before the page title. It is generally a logo with the smaller size.You cannot add the size using CSS. The standards do not support adding Favicon size using CSS. Let’s add it using attributes,The result after adding Favicon above will be,

Redirect URLs with Your Hosting Account

Fendadis John
Updated on 25-Feb-2020 06:31:24

231 Views

You can easily redirect URLs to the settings under your hosting account. Let’s say you have a blogger blog and you want to redirect it to your website.A redirect automatically sends your visitors to another destination, within the same site or a new URL.Follow the below given steps to redirect URLs to your hosting account, Go to your hosting account and log in.Click Manage Web Hosting and reach the cPanel. Here, search the Domains section and click Redirects, Now, a section can be seen to add a redirect. Here, fill the following fields to redirect URL, TypeThe type of redirect ... Read More

Difference Between System Level Exception and Application Level Exception

Mahesh Parahar
Updated on 25-Feb-2020 06:26:47

3K+ Views

As we know that exception is something that refers to the interruption in the flow of program or application. This unwanted event is known as Exception and is generally gives the indication regarding something wrong within the code. Basically particularly in language C# an exception can be a System or an Application Level exception. So on the basisSr. No.KeySystem level exceptionApplication level exception1DerivationSystem exceptions are derived from the base class System.SystemException which in itself is a derived class of SystemException.On other hand Application-level exceptions are derived from the base class System.ApplicationException which is again a derived class of SystemException2OccurrenceIn general ... Read More

View Colored Man Pages in Linux

Pradeep Elance
Updated on 25-Feb-2020 06:24:40

381 Views

The man pages are important reference pages for any Unix user. But their look and feel is very boring because it is just lines of text with some punctuations. In this article we will see how the different parts of the man pages can be coloured and highlighted. That will make it very easy to follow the instructions in the man pages.Using mostThe most command can be used to display the colour man pages but first we have to install it and then add to our bash profile so that it becomes available in the environment. The below command shows ... Read More

Use Images with HTML5 Canvas

Sharon Christine
Updated on 25-Feb-2020 06:21:01

459 Views

The HTML5 tag is used to draw graphics, animations, etc. using scripting. It is a new tag introduced in HTML5. To use images with HTML5 canvas, use the drawImage() method. This method draws the given image onto the canvas.You can try to run the following code to learn how to use images with HTML Canvas. Here, the image is a reference to an image or canvas object. x and y form the coordinate on the target canvas where our image should be placed.ExampleLive Demo                    function drawShape() {   ... Read More

Run a Command with Time Limit in Linux

Pradeep Elance
Updated on 25-Feb-2020 06:20:57

666 Views

Sometimes a Unix command may run for a very long time without giving the final output or it make a processing giving partial output from time to time. In such scenario we will like to put a time frame within which either the command mast complete for the process should abort. This is achieved by using below options.Using timeout ToolThe Timeout tool forces a command tour abort if it cannot complete within a given time frame. Below is the syntax and example.Syntaxtimeout DURATION COMMAND [ARG]... Where Duration is the number seconds you want the command to run Before aborting ... Read More

Find Specific String or Word in Files and Directories in Linux

Pradeep Elance
Updated on 25-Feb-2020 06:20:08

3K+ Views

Many times we need to search for a particular string which may be present in multiple files. In this article we'll see which commands to use to find all the files that contains a particular string or Word.Using grepIt is a powerful regular expression search tool. At a basic level , it will match an input string with the list of files that contain that string.Below is the syntax and the example.grep 'string' directory-path/*.* #Example grep 'config' hadoop-2.6.5/etc/hadoop/*.*Running the above code gives us the following result −hadoop-2.6.5/etc/hadoop/capacity-scheduler.xml: hadoop-2.6.5/etc/hadoop/core-site.xml: hadoop-2.6.5/etc/hadoop/hadoop-policy.xml: hadoop-2.6.5/etc/hadoop/hdfs-site.xml: hadoop-2.6.5/etc/hadoop/httpfs-site.xml: hadoop-2.6.5/etc/hadoop/kms-acls.xml: hadoop-2.6.5/etc/hadoop/kms-site.xml: hadoop-2.6.5/etc/hadoop/mapred-site.xml.template: hadoop-2.6.5/etc/hadoop/ssl-client.xml.example: hadoop-2.6.5/etc/hadoop/ssl-server.xml.example: hadoop-2.6.5/etc/hadoop/yarn-site.xml:Using grep -rIn ... Read More

Decorate Your Linux Terminal Using Shell

Pradeep Elance
Updated on 25-Feb-2020 06:18:46

1K+ Views

The Linux GUI based terminal window has many colours and font settings which can be enhanced as per the user choice. All these can be done using the shell commands and not just by clicking mouse buttons in the GUI component settings.Most of these settings are handled through variables whose value can be changed or assigned by commands. In this article we will see how to handle the terminal prompt settings in Ubuntu based systems.The PS1 VariableIt is a environment variable which controls the primary prompt string which is displayed when the shell is ready to read a command. There ... Read More

Create Animated Art on Your Linux Terminal

Pradeep Elance
Updated on 25-Feb-2020 06:17:05

4K+ Views

Using the characters like - , / or | and many other from the keyboard, we can create animation characters. These characters can be static as well as moving in the screen. All this involves programming using shell scripting. These scripts are bundled into libraries or packages which can be installed in the terminal. Below we will see the examples of these animations.A Running TrainThis package produces a train animation when run from the terminal. But first we install it and then simple type sl in the terminal.$ sudo apt-get install sl $ slRunning the above code gives us the ... Read More

Initialization, Declaration and Assignment Terms in Java

Arushi
Updated on 25-Feb-2020 06:15:44

2K+ Views

A variable provides us with named storage that our programs can manipulate. Each variable in Java has a specific type, which determines the size and layout of the variable's memory; the range of values that can be stored within that memory; and the set of operations that can be applied to the variable.You must declare all variables before they can be used. Following is the basic form of a variable declaration − data type variable [ = value][, variable [ = value] ...] ;Here data type is one of Java's datatypes and variable is the name of the variable. To ... Read More

Advertisements