Techy Things

Using Backbone.Validation the correct way for client-side validation 0

Using Backbone.Validation the correct way for client-side validation

Client-side javascript validation using Backbone.Validation (1) Make sure backbone.validation.js and backbone.validation.bootstrap.js are included. backbone.validation.js : https://github.com/thedersen/backbone.validation/blob/master/src/backbone-validation.js backbone.validation.boostrap : https://gist.github.com/driehle/2909552 (2) Make sure your model extends Backbone.Model() and add a validation object to your model after the default declaration : SuperApp.Model = Backbone.Model.extend({ defaults : {...

wrong ELF class: ELFCLASS64 0

wrong ELF class: ELFCLASS64

error while loading shared libraries: libXv.so.1: wrong ELF class: ELFCLASS64 [root@kraken sbin]# ./krakend ./krakend: error while loading shared libraries: libXv.so.1: wrong ELF class: ELFCLASS64 Solution : Either install the 32-bit library missing -or- compile...

R-programming help sheet 0

R-programming help sheet

Split data frame by month s <- split(airquality, airquality$Month) # will output a list of data.frame. One data.frame per month. Applying a mean function to data splitted by month Take s from section above...

Saving the master boot record of hard-disk under Debian 0

Saving the master boot record of hard-disk under Debian

Backup The first line is to backup MBR, the second line is to backup extended partitions (important just as well!!) $> dd if=/dev/sda of=/tmp/backup-sda.mbr bs=512 count=1 $> sfdisk -d /dev/sda > /tmp/backup-sda.sfdisk Restore $>...

How to setup an automated git email notifier server 0

How to setup an automated git email notifier server

  (1) sudo wget http://git.icir.org/git-notifier.git/blob_plain/refs/heads/master:/git-notifier -O /usr/share/git-core/contrib/hooks/git-notifier chmod +x /usr/share/git-core/contrib/hooks/git-notifier (2) Add ssh private key to your .shh folder so git operations dont ask for password. This will be automated. (3) For each new...