CSS generated content for ::after and ::before
CSS property content is used with the ::before and ::after pseudo-elements to generate content in a document. Example – display url after a tag text read more
CSS clip
CSS property clip (clipped region) defines what portion of an element’s border box is visible. The clip property applies only to absolutely positioned (position=absolute, fixed) read more
Test site css, javascript, html in old IEs
We frequently need to test css, javascript and HTML in old IE (internet explorer) browsers on Windows. This can be done using IE11 developer tools read more
Linux du – find disk usage of directories or files
Linux du command can be used to find disk usage of files and directories. Here are some handy du commands on Ubuntu Linux (or any read more
CSS clearfix – clear float automatically using ::after
A clearfix class is a way for an element to automatically clear left and right float on its child elements. This eliminates the need to read more
Make an element draggable using Vanilla Javascript
Javascript event handler mousedown and mousemove can be used to make an element draggable without using any other library. This can be made to work read more
Linux – how to create swap partition
Step to create swap partition on Ubuntu Linux. It should work on any other Linux also. Create storage file (say 4GB) using fallocate for swap read more
Linux – how to create a large file like 1GB
Sometimes we need a large file with any content on Linux. This may be needs for benchmarking and testing purpose. Here are some ways to read more
Rsync – show progress and transfer rate
Rsync can be used to sync directories and files from one machine to another. Sometime we want to see the progress and transfer speed. For read more
Linux/Unix – find inode number of a file
To find the inode number of a file on Linux/Unix the following approaches can be used. Find inode using ls $ ls -i file1.txt 412882 read more