How to display image with javascript?

You could make use of the J avascript DOM API . In particular, look at the createElement() method. You could create a re-usable function...

Read more

How to print content of JavaScript object?

Print content of object you can use console.log(obj_str); you can see the result in console like below. Object {description: &...

Read more

Joomla Changing the site favicon

The file you created in this way will have the extension .ico.  Copy the file   to the   /joomla/templates/<your template>   director...

Read more

Read file in Node.js

Asynchronously reads the entire contents of a file. var fs = require('fs'); var path = require('path'); exports.te...

Read more

Magento site down due to mysql error General error: 1030 Got error -1 from storage engine

This error is generated when InnoDB cannot write to its data files. I have seen reports of this when the disk is full. if the files or f...

Read more

How to make links between files in ubuntu

ln - make links between files Synopsis ln [OPTION]... [-T] TARGET LINK_NAME Example    cd /var/www sudo ln -s /home/xyz/ni...

Read more

Faster Page Load Times / Bandwidth Saver .htaccess

This basically checks to see if mod_czip.c is found and if it is it will compress the files for you so they are faster to send to the brows...

Read more

Deny Access Directory Listing with .htaccess

Don't have an index in all your directory's? Use this to deny access to all the directory listings, if there is no index file. O...

Read more

How to Leverage Browser Caching via .htaccess

By using this code, our main static files (images, CSS, PDF’s, JS, etc.) will be cached in order to produce faster loading times in the fut...

Read more

how can I add comments to a batch file?

The REM statement This is the most common way to write comments. Any line in your bat-file that starts with REM is completely ignored by...

Read more