Link

GlusterFS fix faulty bricks

Great tutorial to manage glusterFS

https://gluster.readthedocs.io/en/latest/Administrator%20Guide/Managing%20Volumes/#replace-brick

 

if you are getting error like

volume add-brick: failed: Incorrect number of bricks supplied 1 with count 2

Then you are trying to add  distribute leg, which requires multiple bricks based on replication setting, try following command

gluster vol add-brick <vol-name> <brick1><brick2>

 

Advertisements
Link

Cache a large array: JSON, serialize or var_export?

http://techblog.procurios.nl/k/n618/news/view/34972/14863/cache-a-large-array-json-serialize-or-var_export.html

Link

Writing modular JavaScript without polluting the global namespace

http://marcofranssen.nl/writing-modular-javascript-without-polluting-the-global-namespace/

Link

HTML5 a tag download Attribute

In HTML5, you can download file when clicking on the link instead of redirecting to the file.

Read More : http://www.w3schools.com/tags/att_a_download.asp