January 28, 2015

[Linux] CHMOD – how to change file permission

chmod 777 config.php
Available permission type: (below is not command)
First number is for the owner, second for the group, and third for everyone.
7 = Read + Write + Execute
6 = Read + Write
5 = Read + Execute
4 = Read
3 = Write + Execute
2 = Write
1 = Execute
0 = All access denied

jQuery check exists element call function

Function:
jQuery.exists = function(selector) {return ($(selector).length > 0);}
Usage:
if($.exists(".datetimepicker")){ $(".datetimepicker").datetimepicker({ pickTime: false }); }

January 27, 2015

There was an error in this gadget