Serve svg images as svg instead of plain text
User agents such as browsers use media types to determine how the content should be processed. When a svg image is not served with correct MIME type in the content type header, It might not rendered as intended by the author.
Solved: Disable google weblight for your website
Google weblight is a google service, which shows the compressed view of the webpages listed in the search results when a slow network is detected. It removes websites default styles and js files, So user can view the webpage much quicker. But it can be disabled by setting cache control header to no transform.
Grep files and copy / move selected files to another place recursively
Grep command allows us to filter the content from the input which matches the pattern. Here we are going to use combination of three commands including grep, to copy / move the files recursively to another directory which matches our pattern
Mount a device in linux
Devices can be easily mounted in linux using mount command. Lets check how to do it.
TypeError: Value does not implement interface HTMLInputElement jquery
Usually this error occurs when an jquery object sent through ajax request
Get string between parentheses or brackets
We can easily get the string between parentheses or brackets using regular expression. This regular expression can be applied in any programming language / scripts like php, javascript,java,perl,python,c#,asp etc.