Archive for November, 2009

How to print object attributes values with javascript?

Here is code snippet of Javascript to iterate through object and display as an alert: <script language=”Javascript”> var obj = new Object(); obj["firstName"]=”YourFirstName”; obj["lastName"]=”YourLastName”; var str=””; for(prop in obj) { str+=prop + ” value :”+ obj[prop]+”\n”; } alert(str); </script>

Continue reading »

setup HTTP Authentication using htpasswd and htaccess

First create .htpasswd file for allowed users. You can create .htpasswd file using one of the following ways: By using command line htpasswd [-m | -d | -s | -p] /path/to/passwdfile/ <username> Above command will prompt for password. Given password will be assigned to <username> -m : Use MD5 encryption for passwords -d : Use [...]

Continue reading »

htaccess helpful links

Following are useful links to learn htaccess: http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html#RewriteCond http://httpd.apache.org/docs/1.3/misc/rewriteguide.html

Continue reading »

How to change session.save_path?

There can be multiple ways to modify session.save_path. If you have root access or access to php.ini then modify [session] . . . save_path = “/path/to/session/storage/” You can modify .htaccess file php_value session.save_path “/path/to/session/storage/” by using PHP file ini_set(“session.save_path”,”/path/to/session/storage/”); Please post if you have any problem or need any help.  

Continue reading »

HTACCESS useful tricks

Apache Configuration Apache web servers have two main places for configuration information: httpd Config files (httpd.conf) Per-directory .htaccess files Usually only the administrators of a server have access to the httpd config files. Individual users are able to place .htaccess files in their individual directories in order to override the options in the httpd config [...]

Continue reading »

Build iGoogle-Like Personal Information Dashboards using Picok

Picok is an enterprise open source application useful to build iGoogle-Like personal information dashboards. The content is loaded into small portlets (small draggable boxes) and layed out in a tabbed 3-column interface. The maintainers of picok installations can create portlets of their own. The application collects information from external sources and displays them in a [...]

Continue reading »

What is Web2.0? Difference between web1.0 and web2.0

Web 2.0 vs. Web 1.0 The tale of these two Webs is best told once we understand the meaning, importance and the differences between the following key words for each of the two versions of the web: Communities Content Communication Conversations

Continue reading »

How to install pear packages on WAMP/window?

Follow following steps to install any pear package on window using WAMP architecture: Go to command prompt using start->run->cmd Type “pear install <packagename>” (where<packagename> is the name of the package you want to install) OR If the above one does not work, manually download the package from the website and go to that directory that [...]

Continue reading »

migrate SVN Repositories to another server

Make sure you have enough rights to the existing repository: First, dump the repository using svnadmin: svnadmin dump /path/to/your-repository-name > your-repository-name.repo Create your new repository (if you haven’t already): svnadmin create your-new-repository-name Then, load it into the new repository: svnadmin load your-new-repository-name < your-repository-name.repo Then, in your checked out code directory, change the repository location [...]

Continue reading »

What is Amazon S3?

Amazon S3 enables you to upload, download, and store data across the Internet. You can also use the data with other AWS(Amazon WebService) services, such as EC2, Amazon Elastic MapReduce, and Amazon Import/Export. With Amazon S3, you can charge people who download data you make available. You can store up to 5 GB of data [...]

Continue reading »

Follow

Get every new post delivered to your Inbox.