Uploading files to Remote Server


There are different ways we can upload files to remote servers. Few command line tools are listed here"
1- Securely Copy files (scp):
scp -v -r -o IdentityFile=<cert.pem> <source folder> <user>@<remoteserverip>:/home/<user>/<destination folder>

Note: If a certificate is needed, then IdentityFile=<cert.pem> should be used.

2- rSync: 
rsync -vcrz --delete-after <source folder> <user>@<remoteserverip>:/home/<user>/<destination folder>

jQuery Chaining Interview question

Which one of the following will break the chain and Why?
A-

$(…)
.html('Breaks chain')
.addClass('chainbreaker')

B-

$(…)
.html()
.addClass('chainbreaker')

Solution:
In A, .html('Breaks chain') behaves like a setter and returns object, on which .addClass(…) adds the given class. But in B, .html() behaves like a getter and returns a string, on which .addClass(…) methods fails to perform and gives runtime error.

Scheduling Repeating Local Notifications using Alarm Manager

Learn about Scheduling Repeating Local Notifications using Alarm Manager in this post .