Wednesday, May 30, 2012

In HTML5, we use cache manifest file for caching contents. While updating the content, there is a problem to view the latest changes as the browser stores the contents as cache. To solve this problem, we type the below command on the browser console to update the cache of the application:

Thursday, May 24, 2012

If we add any contents dynamically, the jQuery doesn't apply styles to that contents. Suppose, we add contents using $.html() function of jQuery. But found that the styles are missing on that code block.

To solve this problem, we need to trigger create event on that html element. Like the following:

My Books:

Tuesday, May 8, 2012

Sometimes we need to sync files with different remote servers. We can use rsync, but we need to use cron for that. And this means at a certain time, a request need to be made. So, this involves some memory usage.
By mounting a remote folder, we can easily make synchronization. For this, first we need to install the sshfs.

sudo apt-get install sshfs

To mount a specific folder, we need to write the below command:

sshfs user@hostname: mount point

If you have a customized port:

sshfs -p 3000 hostname: mountpoint

We can set several options with the command, like allow_others, no_remote_lock etc.

My Books:

While install eclipse in my machine, I came across this error message for install PDT.
An internal error occurred during: "Computing size". Incompatible profile file name. Expected format is {timestamp}.profile.gz (or {timestamp}.profile) but was ._1328723081571.profile.g
I then found that this is a mac profile issue. To solve this problem, we need to go to the eclipse folder and delete the hidden files. Just run the following command and the error will be gone.