<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-768041320482961618</id><updated>2024-09-10T08:46:51.306-07:00</updated><category term="oracle"/><category term="ubuntu"/><category term="export"/><category term="tablespace"/><category term="amazon"/><category term="import"/><category term="linux"/><category term="schema"/><category term="AMI"/><category term="SVN"/><category term="Sum of columns"/><category term="apache"/><category term="awk"/><category term="blog"/><category term="database"/><category term="debug"/><category term="dotCMS"/><category term="ec2"/><category term="java"/><category term="microsoft"/><category term="mysql"/><category term="port"/><category term="remote"/><category term="screen customization"/><category term="unix"/><category term="1000"/><category term="80"/><category term="BLOCKER"/><category term="CALLS/SMS"/><category term="Channel"/><category term="Custom"/><category term="DND Manager"/><category term="EBS"/><category term="Google"/><category term="Google Suggest Labs"/><category term="Google Translate"/><category term="IntelliJ Idea"/><category term="Materialized View"/><category term="NCPR"/><category term="NDNC"/><category term="PHP"/><category term="Refresh Status"/><category term="SMS"/><category term="SPAM"/><category term="TRAI"/><category term="Tech News Aggregator"/><category term="Xdebug"/><category term="airtel"/><category term="all users"/><category term="block"/><category term="character set"/><category term="class"/><category term="collation"/><category term="configuration"/><category term="connection"/><category term="container"/><category term="csv"/><category term="cursor"/><category term="customer care"/><category term="drop partition"/><category term="equals"/><category term="expdp"/><category term="free"/><category term="ftp"/><category term="hashcode"/><category term="head"/><category term="ibatis source code sql"/><category term="impdp"/><category term="index"/><category term="installation"/><category term="jar"/><category term="local bitmap indexes"/><category term="mac"/><category term="memory"/><category term="multiline"/><category term="nmap"/><category term="openvpn"/><category term="pagesize oracle"/><category term="parallels"/><category term="parameter"/><category term="permission"/><category term="post"/><category term="process"/><category term="rebuild"/><category term="rebuild index"/><category term="records"/><category term="repository"/><category term="resin"/><category term="revision"/><category term="role"/><category term="root volume"/><category term="scan"/><category term="screen in unix"/><category term="script"/><category term="search and replace"/><category term="sed"/><category term="server"/><category term="skype"/><category term="sqlplus"/><category term="storage"/><category term="strip"/><category term="subversion"/><category term="tables"/><category term="template"/><category term="unusable"/><category term="user"/><category term="windows"/><category term="yum"/><title type='text'>Helpful Tips And Tricks</title><subtitle type='html'>Hello World. This is my First of First Blog.&#xa;&#xa;Here I will try to write things related to what I learn, Since I am kinda obsessed with Technology’s lineage. I, being a Java professional, love Java profoundly and so tried to make a blog that will help you and me of course to be in touch with new happenings in the field of technology.&#xa;&#xa;I may soon start a discussion forum based on Java, for that we need to wait a while, after all , not always, good things are FREE….</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>121</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-28797141795631017</id><published>2013-09-17T21:26:00.000-07:00</published><updated>2013-09-17T21:26:11.379-07:00</updated><title type='text'>Sign up for Copy and get 20 GB free!</title><content type='html'>&lt;a class=&quot;UIShareStage_InlineEdit inline_edit&quot; href=&quot;https://www.facebook.com/#&quot; role=&quot;button&quot; style=&quot;background-color: white; color: black; cursor: pointer; display: inline; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 12px; font-weight: bold; line-height: 15px; text-decoration: none; word-break: break-word;&quot;&gt;Sign up for Copy and get 20 GB free!&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Click on below mentioned link and get 20GB cloud storage free on Copy.Com&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://copy.com/?r=piOLeW&quot;&gt;https://copy.com?r=piOLeW&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
As compared to other cloud storage providers like GDrive, Dropbox and Box it is way more than what their free offering is.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://copy.com/?r=piOLeW&quot;&gt;Sign up for Copy and get 20 GB free!&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://copy.com/?r=piOLeW&quot;&gt;https://copy.com?r=piOLeW&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/28797141795631017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/28797141795631017?isPopup=true' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/28797141795631017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/28797141795631017'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2013/09/sign-up-for-copy-and-get-20-gb-free.html' title='Sign up for Copy and get 20 GB free!'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-2141914574530576930</id><published>2013-02-08T21:38:00.000-08:00</published><updated>2013-02-08T21:38:04.152-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="amazon"/><category scheme="http://www.blogger.com/atom/ns#" term="AMI"/><category scheme="http://www.blogger.com/atom/ns#" term="EBS"/><category scheme="http://www.blogger.com/atom/ns#" term="root volume"/><category scheme="http://www.blogger.com/atom/ns#" term="storage"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Adding storage to root volume of Ubuntu Amazon EBS Instance</title><content type='html'>Recently I had to increase the size of root volume of my EBS based Amazon instance. After performing search on Google I got the reply from a Amazon executive.&lt;br /&gt;
&lt;br /&gt;
You can expand the existing root EBS volume for an EBS-backed Ubuntu instance.&lt;br /&gt;
Here are the following steps you need to perform.&lt;br /&gt;
&lt;br /&gt;
&lt;ul class=&quot;jive-dash&quot;&gt;
&lt;li&gt;Stop the instance.&lt;/li&gt;
&lt;li&gt;Create a snapshot of the root EBS volume.&lt;/li&gt;
&lt;li&gt;Create an EBS volume from that snapshot with the new desired size.  (Please ensure it is in the same Availability Zone as the instance)&lt;/li&gt;
&lt;li&gt;Detach the root EBS volume of the instance.&lt;/li&gt;
&lt;li&gt;Now attach the newly created EBS volume to &lt;i&gt;&lt;b&gt;/dev/sda1&lt;/b&gt;&lt;/i&gt; on the instance.&lt;/li&gt;
&lt;li&gt;Now start the instance and then login again.&lt;/li&gt;
&lt;li&gt;Enter &#39;&lt;i&gt;&lt;b&gt;df -h&lt;/b&gt;&lt;/i&gt;&#39; to see the current size of the root volume. You should see the new size coming into picture for the&lt;i&gt;&lt;b&gt; /dev/sda1&lt;/b&gt;&lt;/i&gt; or &lt;b&gt;&lt;i&gt;/dev/xdva1&lt;/i&gt;&lt;/b&gt;. If you are still not getting the new size then execute the following command.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Enter &#39;&lt;i&gt;&lt;b&gt;sudo resize2fs /dev/sda1&lt;/b&gt;&lt;/i&gt;&#39; or&amp;nbsp;&#39;&lt;i&gt;&lt;b&gt;sudo resize2fs /dev/xvda1&lt;/b&gt;&lt;/i&gt;&#39;&amp;nbsp;to get the rest of the expanded disk depending on your instance.&lt;/li&gt;
&lt;li&gt;Enter &#39;&lt;b&gt;&lt;i&gt;df -h&lt;/i&gt;&lt;/b&gt;&#39; again to see the new size of the root volume. Now you should see the new size coming into picture for the &lt;b&gt;&lt;i&gt;/dev/sda1&lt;/i&gt;&lt;/b&gt; or &lt;b&gt;&lt;i&gt;/dev/xdva1&lt;/i&gt;&lt;/b&gt; as per your instance configuration.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
Please note that some of the recent ubuntu instances don&#39;t need to execute the resize2fs command.&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/2141914574530576930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/2141914574530576930?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/2141914574530576930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/2141914574530576930'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2013/02/adding-storage-to-root-volume-of-ubuntu.html' title='Adding storage to root volume of Ubuntu Amazon EBS Instance'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-4137064681534749683</id><published>2013-01-18T01:16:00.001-08:00</published><updated>2013-01-18T01:16:39.151-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BLOCKER"/><category scheme="http://www.blogger.com/atom/ns#" term="CALLS/SMS"/><category scheme="http://www.blogger.com/atom/ns#" term="DND Manager"/><category scheme="http://www.blogger.com/atom/ns#" term="NCPR"/><category scheme="http://www.blogger.com/atom/ns#" term="NDNC"/><category scheme="http://www.blogger.com/atom/ns#" term="SPAM"/><category scheme="http://www.blogger.com/atom/ns#" term="TRAI"/><title type='text'>DND Manager blocks spam calls/sms permanently</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;uiHeader fbTimelineAboutMeHeader&quot; style=&quot;background-color: white; background-image: none; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 11px; line-height: 14px; margin: 15px 15px 15px 22px;&quot;&gt;
&lt;div class=&quot;clearfix uiHeaderTop&quot; style=&quot;zoom: 1;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/LBC5FSO8CJs?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;h4 class=&quot;uiHeaderTitle&quot; style=&quot;font-size: 16px; margin: 0px; outline: none; padding: 0px;&quot;&gt;
&lt;br /&gt;&lt;/h4&gt;
&lt;h4 class=&quot;uiHeaderTitle&quot; style=&quot;font-size: 16px; margin: 0px; outline: none; padding: 0px;&quot;&gt;
About&lt;/h4&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;mbl&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 11px; line-height: 14px; margin-bottom: 20px;&quot;&gt;
&lt;div class=&quot;mhl&quot; style=&quot;margin-left: 20px; margin-right: 20px;&quot;&gt;
DND Manager is an app to block unwanted Calls/SMS. It sends an SMS to 1909 in TRAI specified format to block these numbers. Download it from here&lt;a href=&quot;https://play.google.com/store/apps/details?id=com.webshrub.moonwalker.androidapp&quot; rel=&quot;nofollow nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: initial;&quot; target=&quot;_blank&quot;&gt;https://play.google.com/store/apps/details?id=com.webshrub.moonwalker.androidapp&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;mhl&quot; style=&quot;margin-left: 20px; margin-right: 20px;&quot;&gt;
&lt;div class=&quot;mvm uiP fsm&quot; style=&quot;line-height: 16px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;span class=&quot;fwb&quot; style=&quot;font-weight: bold;&quot;&gt;Description&lt;/span&gt;&lt;/div&gt;
DND Manager is an app to block unwanted Calls/SMS. It sends an SMS to 1909 in TRAI specified format to block these numbers.&lt;br /&gt;&lt;br /&gt;User can initially block/unblock the categories as well. This app marks the pesky number as a spam in NCPR database which is maintained by TRAI.&lt;br /&gt;&lt;br /&gt;After reporting the number to TRAI user gets a confirmation SMS which can be used to track the status of his complain from TRAI. Sending the SMS to 1909 is toll free.&lt;/div&gt;
&lt;div class=&quot;mhl&quot; style=&quot;margin-left: 20px; margin-right: 20px;&quot;&gt;
&lt;div class=&quot;mvm uiP fsm&quot; style=&quot;line-height: 16px; margin-bottom: 10px; margin-top: 10px;&quot;&gt;
&lt;span class=&quot;fwb&quot; style=&quot;font-weight: bold;&quot;&gt;General Information&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;text_exposed_root text_exposed&quot; id=&quot;id_50f911ad647072c46509398&quot; style=&quot;display: inline;&quot;&gt;
1. What is this app for?&lt;br /&gt;&lt;br /&gt;This app reports a spam call/SMS to the concerned authority TRAI in a specified format. These spam calls/SMS are also known as Unsolicited Commercial Communication(UCC)&lt;br /&gt;&lt;br /&gt;2. How does this app do that?&lt;br /&gt;&lt;span class=&quot;text_exposed_show&quot; style=&quot;display: inline;&quot;&gt;&lt;br /&gt;It extracts time, date and number from your call log or SMS log. It then formats them into a SMS and sends it to 1909 using TRAI specified format.&lt;br /&gt;&lt;br /&gt;3. Can i send this message without this app?&lt;br /&gt;&lt;br /&gt;Yes of course, you can. However you need to send the SMS in a very specific format which is hard to be generated by users. If sent in a wrong format, you will receive an error from your operator.&lt;br /&gt;&lt;br /&gt;4. There are other spam blocker apps as well, how this is different from other apps?&lt;br /&gt;&lt;br /&gt;Numbers reported using this app will never be able to send a UCC again because other apps hide such spams from your phone. This app, however, offers something more permanent by sending a SMS to TRAI to block such numbers&lt;br /&gt;&lt;br /&gt;5. I don&#39;t see all my calls and SMS. Why?&lt;br /&gt;&lt;br /&gt;As per TRAI regulations any UCC should be reported within 3 days of receiving. That&#39;s why this app hides SMS/calls older than three days.&lt;br /&gt;&lt;br /&gt;6. Are calls and SMS from my contacts filtered?&lt;br /&gt;&lt;br /&gt;Yes. This app only shows calls and SMS from numbers those are not in your contact list.&lt;br /&gt;&lt;br /&gt;7. What happens when I report a UCC to TRAI?&lt;br /&gt;&lt;br /&gt;You get a confirmation from your operator about your report. You also get a complaint number. Your operator issues a warning to the sender to never send a UCC to your number. If they send you UCC again there are fines for a second incidence.&lt;br /&gt;&lt;br /&gt;8. Is sending SMS to TRAI free?&lt;br /&gt;&lt;br /&gt;Yes. Sending SMS to 1909 is toll-free.&lt;br /&gt;&lt;br /&gt;9. I sent a message, Now I am getting errors about wrong format?&lt;br /&gt;&lt;br /&gt;Even though TRAI has specified one universal format, different operators have implemented their own format for reporting UCC. You let us know the operator name and we will incorporate changes in app to support those operators. However, you might also get &quot;Default not configured&quot;, &quot;Generic failure error&quot; or &quot;Service not available&quot; errors. These are errors on operator&#39;s side. Please contact your customer care.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/4137064681534749683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/4137064681534749683?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/4137064681534749683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/4137064681534749683'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2013/01/dnd-manager-blocks-spam-callssms.html' title='DND Manager blocks spam calls/sms permanently'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-8525615309368605173</id><published>2012-03-01T02:33:00.002-08:00</published><updated>2012-03-01T02:33:23.126-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="amazon"/><category scheme="http://www.blogger.com/atom/ns#" term="AMI"/><category scheme="http://www.blogger.com/atom/ns#" term="Custom"/><category scheme="http://www.blogger.com/atom/ns#" term="ec2"/><title type='text'>Creating a custom AMI on Amazon EC2</title><content type='html'>http://ttlnews.blogspot.in/2009/01/setting-up-amazon-ami-with-java-and.html</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/8525615309368605173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/8525615309368605173?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/8525615309368605173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/8525615309368605173'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2012/03/creating-custom-ami-on-amazon-ec2.html' title='Creating a custom AMI on Amazon EC2'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-2180857133730171202</id><published>2012-02-29T22:06:00.000-08:00</published><updated>2012-02-29T22:06:31.024-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ftp"/><category scheme="http://www.blogger.com/atom/ns#" term="server"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Setting up FTP server on Ubuntu</title><content type='html'>https://help.ubuntu.com/10.04/serverguide/C/ftp-server.html</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/2180857133730171202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/2180857133730171202?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/2180857133730171202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/2180857133730171202'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2012/02/setting-up-ftp-server-on-ubuntu.html' title='Setting up FTP server on Ubuntu'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-5735759774409877958</id><published>2012-02-17T11:33:00.000-08:00</published><updated>2012-02-17T11:33:29.247-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="openvpn"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>How to install OpenVPN on Ubuntu Linux</title><content type='html'>Make sure you run all mentioned command as root not sudo&lt;br /&gt;
$sudo su&lt;br /&gt;
&lt;br /&gt;
http://www.howtoforge.com/internet-and-lan-over-vpn-using-openvpn-linux-server-windows-linux-clients-works-for-gaming-and-through-firewalls</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/5735759774409877958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/5735759774409877958?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/5735759774409877958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/5735759774409877958'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2012/02/how-to-install-openvpn-on-ubuntu-linux.html' title='How to install OpenVPN on Ubuntu Linux'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-2888847328885626604</id><published>2012-02-17T01:27:00.000-08:00</published><updated>2012-02-17T01:27:23.144-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="nmap"/><category scheme="http://www.blogger.com/atom/ns#" term="port"/><category scheme="http://www.blogger.com/atom/ns#" term="scan"/><title type='text'>How to scan a port using nmap</title><content type='html'>nmap -PN ec2-75-101-194-164.compute-1.amazonaws.com -p 80 &lt;br /&gt;
&lt;br /&gt;
Starting Nmap 5.21 ( http://nmap.org ) at 2012-02-17 14:56 IST&lt;br /&gt;
Nmap scan report for ec2-75-101-194-164.compute-1.amazonaws.com (75.101.194.164)&lt;br /&gt;
Host is up.&lt;br /&gt;
PORT&amp;nbsp;&amp;nbsp; STATE&amp;nbsp;&amp;nbsp;&amp;nbsp; SERVICE&lt;br /&gt;
80/tcp filtered http&lt;br /&gt;
&lt;br /&gt;
Nmap done: 1 IP address (1 host up) scanned in 2.43 seconds</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/2888847328885626604/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/2888847328885626604?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/2888847328885626604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/2888847328885626604'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2012/02/how-to-scan-port-using-nmap.html' title='How to scan a port using nmap'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-2561906956596968548</id><published>2012-02-17T00:09:00.001-08:00</published><updated>2012-02-17T00:09:48.119-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="amazon"/><category scheme="http://www.blogger.com/atom/ns#" term="ec2"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>How to setup Amazon EC2 on ubuntu</title><content type='html'>https://help.ubuntu.com/community/EC2StartersGuide</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/2561906956596968548/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/2561906956596968548?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/2561906956596968548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/2561906956596968548'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2012/02/how-to-setup-amazon-ec2-on-ubuntu.html' title='How to setup Amazon EC2 on ubuntu'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-6142649145733737580</id><published>2011-05-10T11:19:00.000-07:00</published><updated>2011-05-10T11:19:19.926-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="character set"/><category scheme="http://www.blogger.com/atom/ns#" term="collation"/><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="Sum of columns"/><category scheme="http://www.blogger.com/atom/ns#" term="tables"/><title type='text'>How to know the character set and collation of mysql database, table and column</title><content type='html'>Here are the SQL commands to know the character set and collation of mysql database and tables/columns&lt;br /&gt;
&lt;br /&gt;
mysql&amp;gt; use database_name;&lt;br /&gt;
mysql&amp;gt; show variables like &quot;character_set_database&quot;;&lt;br /&gt;
mysql&amp;gt;&amp;nbsp;select data_type,collation_name from information_schema.columns where&amp;nbsp;table_schema=&#39;database_name&#39; and table_name=&#39;table_name&#39; and column_name=&#39;column_name&#39;;</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/6142649145733737580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/6142649145733737580?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/6142649145733737580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/6142649145733737580'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2011/05/how-to-know-character-set-and-collation.html' title='How to know the character set and collation of mysql database, table and column'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-6332290125478022827</id><published>2011-05-07T22:06:00.000-07:00</published><updated>2011-05-07T22:06:04.372-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="debug"/><category scheme="http://www.blogger.com/atom/ns#" term="IntelliJ Idea"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="Xdebug"/><title type='text'>Debug PHP project with IntelliJ Idea 10 and XDebug</title><content type='html'>Recently, I was working on a PHP project. I am an ardent fan of IntelliJ Idea and chose to use it for this project as well. Everything went well but I was not able to debug my PHP source code.&lt;br /&gt;
&lt;br /&gt;
After a little bit of googling I found this nice article about &lt;a href=&quot;http://savagelook.com/blog/portfolio/php-debugging-on-intellij-idea-10-with-xdebug&quot;&gt;debugging PHP code using Idea 10&lt;/a&gt;. Since it contained different settings than mine, I modified the instructions to make it work. Here are the modified instructions to debug PHP project in intelliJ Idea 10.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Create and copy a file named info.php to your webserver root that contains the following code:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;lt;?php phpinfo(); ?&amp;gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
3. Open the http://localhost/info.php in a browser to get your PHP configuration.&lt;br /&gt;
&lt;br /&gt;
4. Now view the source of the page in your browser. Copy the entire contents of the source to your clipboard.&lt;br /&gt;
&lt;br /&gt;
5. Goto the &lt;a href=&quot;http://www.xdebug.org/find-binary.php&quot;&gt;XDebug Tailored Installation Instructions&lt;/a&gt;&amp;nbsp;and paste your PHP configuration source into the text box then click “analyse my phpinfo() output”.&lt;br /&gt;
&lt;br /&gt;
6. Follow the resulting instructions for adding XDebug to your PHP installation. Once you make those changes, make sure the new section of your php.ini looks like this:&lt;br /&gt;
&lt;b&gt;[XDebug]&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;zend_extension=&quot;&lt;this gave=&quot;&quot; installation=&quot;&quot; instructions=&quot;&quot; is=&quot;&quot; path=&quot;&quot; that=&quot;&quot; the=&quot;&quot; xdebug=&quot;&quot; you=&quot;&quot;&gt;&quot;&lt;/this&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;xdebug.remote_enable=true&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;xdebug.remote_port=9000&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;xdebug.profiler_enable=1&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;xdebug.profiler_output_dir=&quot;d:\wamp\logs&quot;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
7. Open IntelliJ Idea settings by clicking on the wrench icon or going to File-&amp;gt;Settings menu. Choose PHP on left navigation tree and set the PHP home along with desired debugger support.&lt;br /&gt;
&lt;br /&gt;
I chose to use XDebug.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinwU6GaTd0Hx0WX_LpzsVqCfaX5Z3uLbRTiaG9ar8HBmA0E1c3pQpRFq4IA2ucebEfsJrSgToynVyfsPIUQoLseends0Sxu0rSyvChPsVkmgTNSO7-Yx5OfJHRbOkRS7EY6tDVIp0EeFZ3/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinwU6GaTd0Hx0WX_LpzsVqCfaX5Z3uLbRTiaG9ar8HBmA0E1c3pQpRFq4IA2ucebEfsJrSgToynVyfsPIUQoLseends0Sxu0rSyvChPsVkmgTNSO7-Yx5OfJHRbOkRS7EY6tDVIp0EeFZ3/s320/1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
8. On the same navigation menu choose servers and enter the details of your web server. Don&#39;t forget to mention your web server port. Click on Use path mapping check box and enter the absolute path location of your project files.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjypVx-zqG50UOlZ5C98T8D5LcHxb__u-l94cNXTIhhrLCmgvFGCozhRnNPu3T0JzWzkePgx8vrPGPsNlXCR97Zugxv4F9Q_I0eW7TzFnXX9F23wMoDRqJe6iNUAB_aKOZKKOBcO2gKGmS3/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjypVx-zqG50UOlZ5C98T8D5LcHxb__u-l94cNXTIhhrLCmgvFGCozhRnNPu3T0JzWzkePgx8vrPGPsNlXCR97Zugxv4F9Q_I0eW7TzFnXX9F23wMoDRqJe6iNUAB_aKOZKKOBcO2gKGmS3/s320/2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
9. On the same navigation menu choose Debug and fill the correct value of Debug port. Make sure this entry is same as&amp;nbsp;&lt;b&gt;xdebug.remote_port &lt;/b&gt;in step no 6&lt;b&gt;.&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZwBBcSKC29ESVH-yj2BGIumcpCwY6t7HvnPVJLzen4H4MJquwvM250wioTgMB4iCC1eTZejKI8vtxUrJv4Ro8urjnIgkK4t4BKFBMyJZim-fSDV21i4LEqDAEuPhcOW0LB1V67c6z9v00/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZwBBcSKC29ESVH-yj2BGIumcpCwY6t7HvnPVJLzen4H4MJquwvM250wioTgMB4iCC1eTZejKI8vtxUrJv4Ro8urjnIgkK4t4BKFBMyJZim-fSDV21i4LEqDAEuPhcOW0LB1V67c6z9v00/s320/3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&amp;nbsp;10.&amp;nbsp;Now go to Run-&amp;gt;Edit Configuration menu and add a PHP Web Application configuration. Choose your newly created server from the drop down &amp;nbsp;in Server field. Also fill the value of Start URL field. Generally it is your index page where you want to start the debugging from.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIJ434OiNj6Wim5Chf8_hDNMtYIahCmbitBATfArfCVVgr-G5Zq4-8EZEDcuXzABn2kh4QiovO_ryEdo62GDnzipreSeKOlswMoohAIcaAJFyOUiOUnUIG2LITFQONFu7FXC-IJGM-ZtTy/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIJ434OiNj6Wim5Chf8_hDNMtYIahCmbitBATfArfCVVgr-G5Zq4-8EZEDcuXzABn2kh4QiovO_ryEdo62GDnzipreSeKOlswMoohAIcaAJFyOUiOUnUIG2LITFQONFu7FXC-IJGM-ZtTy/s320/4.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
11. That is all. Now you can start debugging your PHP project in IntelliJ Idea. Just apply a break point in your code and click on Debug button and &amp;nbsp;if everything went well, it will open in your default browser and you&lt;br /&gt;
will be able to debug it in Idea.&lt;br /&gt;
&lt;br /&gt;
Happy Debugging.</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/6332290125478022827/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/6332290125478022827?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/6332290125478022827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/6332290125478022827'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2011/05/debug-php-project-with-intellij-idea-10.html' title='Debug PHP project with IntelliJ Idea 10 and XDebug'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinwU6GaTd0Hx0WX_LpzsVqCfaX5Z3uLbRTiaG9ar8HBmA0E1c3pQpRFq4IA2ucebEfsJrSgToynVyfsPIUQoLseends0Sxu0rSyvChPsVkmgTNSO7-Yx5OfJHRbOkRS7EY6tDVIp0EeFZ3/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-5593514456540342738</id><published>2010-12-21T23:46:00.000-08:00</published><updated>2010-12-21T23:47:08.567-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="free"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="memory"/><title type='text'>How to know free memory on linux</title><content type='html'>Command to know free memory on Linux/Unix machines&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;$ free -m&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
It will show you status in MB. You can optionally use other filters as well &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;-b &lt;/b&gt;switch displays the amount of memory in bytes &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;-k&lt;/b&gt; switch (set by default) displays it in kilobytes &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;-m&lt;/b&gt; switch displays it in megabytes. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;-t &lt;/b&gt;switch displays a line containing the totals. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;-o&lt;/b&gt; switch disables the display of a &quot;buffer adjusted&quot; line. If the -o option is not specified, free subtracts buffer memory from the used memory and adds it to the free memory reported. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;-s&lt;/b&gt; switch activates continuous polling delay seconds apart. You may actually specify any floating point number for delay, usleep(3) is used for microsecond resolution delay times. &lt;br /&gt;
&lt;br /&gt;
You can also use /proc/meminfo to see the current status of memory&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;$ cat /proc/meminfo&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/5593514456540342738/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/5593514456540342738?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/5593514456540342738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/5593514456540342738'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2010/12/how-to-know-free-memory-on-linux.html' title='How to know free memory on linux'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-4224934588548061181</id><published>2010-12-12T01:19:00.000-08:00</published><updated>2010-12-12T01:19:49.810-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="subversion"/><category scheme="http://www.blogger.com/atom/ns#" term="SVN"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="yum"/><title type='text'>Create subversion repository on Ubuntu</title><content type='html'>Recently I had to setup a ubuntu box with subversion on it. I had to also provide web access from subversion with authentication. After few hiccups I managed to do this with installing few packages and configuring them.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Step 1: login to your ubuntu box&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;#ssh root@x.y.z.t&lt;/b&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Step 2: Install required packages &lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;#yum install subversion&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;#yum install mod_dav_svn httpd&lt;/b&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Step 3: Create a parent directory where all your repositories will be set up.&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;#mkdir -p /srv/svn&lt;/b&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Step 4: Create a sample repository using svnadmin tool&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;#svnadmin create /srv/svn/app&lt;/b&gt;&lt;/blockquote&gt;In this step we have created a repository named as app.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Step 5: Change the user and group of the created app repository to give the permission to apache user. &lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;#chown -R apache.apache /srv/svn/app&lt;/b&gt;&lt;/blockquote&gt;This user is created when you installed httpd package in step 2. Without this step user will not be able to access it via webserver http protocal, they can however access it using command promp using ssh protocol.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Step6: Restart apache webserver.&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;#service httpd restart&lt;/b&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Step 7: Create a password file for the authentication of users which will be accessing your app repository via http protocol.&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;#mkdir -p /srv/auth/svn/&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;#htpasswd -c /srv/auth/svn/app.htpasswd ahsan.javed&lt;/b&gt;&lt;/blockquote&gt;In this step we are creating a directory first to store the htpasswd file. then using the htpasswd tool we are creating an user name and password hash entry in created file. This htpasswd tool is by default installed when you perform step 2.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Step 8: Create a virtual host for hosting your subversion access&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
create a new virtual host file at&lt;b&gt; /etc/httpd/conf.d/svn.conf&lt;/b&gt; with the content&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;LoadModule dav_svn_module&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; modules/mod_dav_svn.so&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; LoadModule authz_svn_module&amp;nbsp;&amp;nbsp; modules/mod_authz_svn.so&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Location /repos&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DAV svn&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SVNParentPath /srv/svn&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Location&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Location /repos/app&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AuthType Basic&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AuthName &quot;Subversion Repository&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AuthUserFile /srv/auth/svn/app.htpasswd&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Require valid-user&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Location&amp;gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Step 9: Restart apache webserver&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;#service httpd restart&lt;/b&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Step 10: Access your setup repository in a browser by typing&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;http://x.y.z.t:80/repos/app&lt;/b&gt;.&amp;nbsp;&lt;/blockquote&gt;This will ask a user name and password, provide the username and password created in step 7 to access the repository.</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/4224934588548061181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/4224934588548061181?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/4224934588548061181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/4224934588548061181'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2010/12/create-subversion-repository-on-ubuntu.html' title='Create subversion repository on Ubuntu'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-1604234310867420713</id><published>2010-12-09T02:49:00.000-08:00</published><updated>2010-12-09T02:50:21.914-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="connection"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="remote"/><title type='text'>Enable mysql to connect from desired remote IP</title><content type='html'>Recently I had to work on mysql server on Linux platform.&lt;br /&gt;
&lt;br /&gt;
All our development was done on windows machine and everything went fine.&lt;br /&gt;
&lt;br /&gt;
When we tried to migrate the same code to Linux platform, everything worked fine except that our program was not able to connect to mysql. It was continuously throwing this exception.&lt;br /&gt;
&lt;br /&gt;
Caused by: java.net.ConnectException: Connection refused&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.PlainSocketImpl.socketConnect(Native Method)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.Socket.connect(Socket.java:529)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.Socket.connect(Socket.java:478)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.Socket.&lt;init&gt;(Socket.java:375)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.Socket.&lt;init&gt;(Socket.java:218)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:254)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.MysqlIO.&lt;init&gt;(MysqlIO.java:292)&lt;br /&gt;
&lt;br /&gt;
However we were able to connect via mysqladmin as follows&lt;/init&gt;&lt;/init&gt;&lt;/init&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;#mysql -u username -h localhost -p password&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After doing some google I found that mysql was actually not allowing remote connections from our program. It was only allowing the Unix socket connections in case of mysql admin, thats why it was able to connect to it.&lt;br /&gt;
&lt;br /&gt;
I had to change few configuration parameters in mysql configuration files as follows to allow remote connections to mysql and restart it.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;# vi /etc/my.cnf&lt;/b&gt;&lt;br /&gt;
Once file opened, locate line that read as follows&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;[mysqld] &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Add the following line at the end of this block&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;bind-address=YOUR-SERVER-IP &lt;br /&gt;
#skip-networking&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Where,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; * bind-address : IP address to bind to.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; * skip-networking : Don’t listen for TCP/IP connections at all. All interaction with mysqld must be made via Unix sockets. This option is highly recommended for systems where only local requests are allowed. Since you need to allow remote connection this line should be removed from my.cnf or put it in comment state&lt;br /&gt;
&lt;br /&gt;
Restart the mysql server, enter:&lt;br /&gt;
&lt;b&gt;# /etc/init.d/mysql restart&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/1604234310867420713/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/1604234310867420713?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/1604234310867420713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/1604234310867420713'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2010/12/enable-mysql-to-connect-from-desired.html' title='Enable mysql to connect from desired remote IP'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-6020837966639406820</id><published>2010-11-24T21:30:00.000-08:00</published><updated>2010-11-24T21:30:53.731-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="80"/><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="block"/><category scheme="http://www.blogger.com/atom/ns#" term="port"/><category scheme="http://www.blogger.com/atom/ns#" term="process"/><category scheme="http://www.blogger.com/atom/ns#" term="skype"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>How to know which port is blocked by which process on Windows?</title><content type='html'>Recently I was trying to use my apache server for my web development. However every time, I tried it showed me that port 80 is being used already. So I took a dig and found out the solution as follows.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;C:\&amp;gt;netstat -aon | findstr 0.0:80&lt;/b&gt;&lt;br /&gt;
-a means list all active connections and their ports. -o means include  their process IDs. -n means display the port numbers numerically.&lt;br /&gt;
&lt;br /&gt;
I got this output.&lt;br /&gt;
&lt;b&gt;TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4504&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
It means that process 4504 is currently listening on port 80. So to start apache on this default port we need to kill this process, you can do it by Task Manager and find process by the id 4504 and kill that process.&lt;br /&gt;
&lt;br /&gt;
You can also identify the process by using command line as follows.&lt;br /&gt;
&lt;b&gt;C:\&amp;gt;tasklist | findstr 4504&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
I found that skype is using the port 80. &lt;br /&gt;
&lt;b&gt;Skype.exe&amp;nbsp; 4504 Console 1 107,170K&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
So we need to kill the process as follows.&lt;br /&gt;
&lt;b&gt;taskkill /F /PID 4504&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
Now we can start apache as usual. Even if we start skype again it will work, I think it choses some other random port this time.</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/6020837966639406820/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/6020837966639406820?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/6020837966639406820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/6020837966639406820'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2010/11/how-to-know-which-port-is-blocked-by.html' title='How to know which port is blocked by which process on Windows?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-1324723689228149585</id><published>2010-10-28T09:38:00.000-07:00</published><updated>2010-10-28T09:39:55.280-07:00</updated><title type='text'>Facebook Page for GreenDeewali</title><content type='html'>This is the page for &lt;a href=&quot;http://www.greendeewali.com/&quot;&gt;Green Deewali&lt;/a&gt;.&lt;br /&gt;
&lt;a href=&quot;http://www.facebook.com/pages/Green-Deewali/100290780040511?v=app_4949752878&quot;&gt;http://www.facebook.com/pages/Green-Deewali/100290780040511?v=app_4949752878&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Please visit, this is very nice initiative to make environment greener and cleaner.</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/1324723689228149585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/1324723689228149585?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/1324723689228149585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/1324723689228149585'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2010/10/facebook-page-for-greendeewali.html' title='Facebook Page for GreenDeewali'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-9010762323340785217</id><published>2010-10-28T08:31:00.000-07:00</published><updated>2010-10-28T08:31:42.359-07:00</updated><title type='text'>A nice initiative by webshrub to make environment cleaner</title><content type='html'>&lt;a href=&quot;htttp://www.webshrub.com&quot;&gt;Web shrub&lt;/a&gt; has launched a new initiative to make environment greener and cleaner.&lt;br /&gt;
Please have a look at their another web site &lt;a href=&quot;http://www.greendeewali.com/&quot;&gt;Green Deewali&lt;/a&gt; and take a pledge this year.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.greendeewali.com/take-pledge.html&quot;&gt;http://www.greendeewali.com/take-pledge.html&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/9010762323340785217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/9010762323340785217?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/9010762323340785217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/9010762323340785217'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2010/10/nice-initiative-by-webshrub-to-make.html' title='A nice initiative by webshrub to make environment cleaner'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-5293798951228407239</id><published>2010-06-11T06:46:00.000-07:00</published><updated>2010-06-11T06:46:46.876-07:00</updated><title type='text'>Helpful Tips And Tricks: My letter to Airtel...</title><content type='html'>Facebook page for my problem.</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/5293798951228407239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/5293798951228407239?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/5293798951228407239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/5293798951228407239'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2010/06/helpful-tips-and-tricks-my-letter-to.html' title='Helpful Tips And Tricks: My letter to Airtel...'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-7259309061971262269</id><published>2010-06-10T22:14:00.001-07:00</published><updated>2010-06-10T22:14:39.713-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="airtel"/><category scheme="http://www.blogger.com/atom/ns#" term="customer care"/><title type='text'>My letter to Airtel...</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 13px;&quot;&gt;My letter to Airtel...&lt;br /&gt;
&lt;br /&gt;
Hi,&lt;br /&gt;
I have been facing problems with my internet connection for last 5 days.&lt;br /&gt;
&lt;br /&gt;
Earlier they told me that my DSL link was not stable and they registered my complaint with service request no 33593502.&lt;br /&gt;
&lt;br /&gt;
They told me that this problem will be resolved soon. However when I tried it after a day time, I found that they have closed the ticket without taking any appropriate action.&lt;br /&gt;
&lt;br /&gt;
After that, I fisrt contacted Mr. Sachin Purti(Backend Admin) 0120-4367827 and he said that it will be resolved by few hours. Nothing happened. Some guy visited me and he told me that he cannot do anything in this regard as that was fault with my main line MDF and the guy responsible for maintenance of it was on leave so it could not be fixed at that time as well. They however gave me one more SRN 33635706.&lt;br /&gt;
&lt;br /&gt;
Then I contacted Mr. Yadvendra Kumar Yadav (09810184236) Sector 18 Noida, who said that the problem will be fixed by a day time. I again waited for a day but was not able to get any positive response. My internet connection was still not up, however my DSL Link problem was gone automatically. Fixing the initial DSL problem took them 3 days to fix.&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
After not getting any resolution to my problem for 4 days I contacted Mr Ali Afsar (Escalation Supervisor at Bhopal Centre) who assured me that my problem will be resolved on 5th day. However I still dont see that my problem is getting resolved any soon.&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
I have been very disappointed by Airtel service and seeing such service to customers, I am sure that it will be MOST DESPISED BRAND despite of Sunil mittal&#39;s vision to be the most admired brand by 2010. Your services is just HORRIBLE...! no other service provider can beat this!! Airtel will be crowned the Worst service provider for years to come...!&lt;br /&gt;
&lt;br /&gt;
If this problem is not going to be fixed in near future I am going to take some drastic action and that will of course not be going to consumer forum rather than I will tarnish your brand image via powerful internet/social network media.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Thanks&lt;br /&gt;
A customer who has been tortured by Airtel.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/7259309061971262269/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/7259309061971262269?isPopup=true' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/7259309061971262269'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/7259309061971262269'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2010/06/my-letter-to-airtel.html' title='My letter to Airtel...'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-5080951045628299155</id><published>2010-03-17T23:58:00.000-07:00</published><updated>2010-03-18T00:01:43.213-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="blog"/><category scheme="http://www.blogger.com/atom/ns#" term="dotCMS"/><category scheme="http://www.blogger.com/atom/ns#" term="permission"/><category scheme="http://www.blogger.com/atom/ns#" term="post"/><category scheme="http://www.blogger.com/atom/ns#" term="role"/><title type='text'>Managing content with Role and Permissions in dotCMS</title><content type='html'>In my previous post I mentioned how to create a blog site using templates, containers and contents in dotCMS&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=helpf-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1847193579&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;. After the site has been created you need to add posts to it so that it can go publishing all its posts.&lt;br /&gt;
&lt;br /&gt;
By default the content created contains the permissions of their parent structure. However in most of the cases it is required to give certain permissions to certain group of users/roles. In our case we will create a user mysiteuser and assign it a group mysitegroup. We will also create a role called mysiterole and this role will be granted to mysitegroup.&lt;br /&gt;
&lt;br /&gt;
Using this as an example we will allow users having mysiterole only to add content/post to the blog just created.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. Add New Role&lt;/b&gt;&lt;br /&gt;
Click on CMS Admin link and chose New -&amp;gt; Role from the drop down. This will lead to a screen where you can add a new role named as mysiterole.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2. Add New Group&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Click on CMS Admin link and chose New -&amp;gt; Group from the drop down. This will lead to a screen where you can add a new group named as mysitegroup.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;3. Add New User&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Click on CMS Admin link and chose New -&amp;gt; User from the drop down. This will lead to a screen where you can add a new user named as mysiteuser by filling all its details.&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;4. Assign Role to mysiteuser.&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Click on CMS Admin link and chose Users. This will show a screen containing search button. Click on Search button. It will populate the newly created user mysiteuser. Select the user and click on User Roles tab from the screen. Now there will be a screen showing available and current roles.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Chose CMS User Role from Available to Current list. This role is important because of this is the parent role of all dotCMS editing roles. &amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrVZn0CGp1ve1HIwv8siZXo3OoekSBt78A-BDUdnZx81xlswPwFH45ljfD7yGYjB-usOXxzzVm8U90Q4-ACjwmHs3AfiLEZ6COd48V8W16nJqmf3lsX1IcA0wnb8hTuOt2gwR1cgmmSENV/s1600-h/Aviary+localhost+Picture+1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;248&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrVZn0CGp1ve1HIwv8siZXo3OoekSBt78A-BDUdnZx81xlswPwFH45ljfD7yGYjB-usOXxzzVm8U90Q4-ACjwmHs3AfiLEZ6COd48V8W16nJqmf3lsX1IcA0wnb8hTuOt2gwR1cgmmSENV/s640/Aviary+localhost+Picture+1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;5. Assigning Group to mysiteuser.&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Click on CMS Admin link and chose Users. This will show a screen containing search button. Click on Search button. It will populate the newly created user mysiteuser. Select the user and click on User Groups tab from the screen. Now there will be a screen showing available and current group.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Chose CMS Users group from Available to Current list.&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;6. Adding Role mysiterole to mysitegroup.&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Click on CMS Admin link and chose Permissions -&amp;gt; Groups. This will show a screen containing newly created group mysearchgroup in the left side. Click on mysitegroup. It will enable few options downwards. Click on Edit Roles button. It will open a screen containing available and current roles for th group. Select mysiterole from the available list and click update button.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;7. Editing pages for the role&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Click on CMS Admin link and chose Permissions -&amp;gt; Groups. This will show a screen containing newly created group mysearchgroup in the left side. Click on mysitegroup. It will enable few options downwards. Click on Edit Pages button. It will populate a screen as follows.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiihzS-CFAzcA2E0vWLc0-WbUA4rXGyESnwRY3dWdSRbSkW7Wcitpwdy5r-3lY3lavCkoO_zzSp3PrkogxtJWHTP-menA4ykuBkkvOcdNwhOV03t_DvASNSl0LQW9K0basNPEbDxkaz4oSa/s1600-h/Aviary+localhost+Picture+2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;164&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiihzS-CFAzcA2E0vWLc0-WbUA4rXGyESnwRY3dWdSRbSkW7Wcitpwdy5r-3lY3lavCkoO_zzSp3PrkogxtJWHTP-menA4ykuBkkvOcdNwhOV03t_DvASNSl0LQW9K0basNPEbDxkaz4oSa/s640/Aviary+localhost+Picture+2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Inside the Add New Page text box write the name of content &quot;Content&quot; and click on Update Page Settings button. It will now reflect a new screen downwards as follows.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO-ezxaxJ9_QPTzC0V7__DnyoKteOzQVjw5db4Mr6oRTTk8zVp2aQYgNOZCWxCb3IJ0dIrcFkaamSytuwxytyPnHuR7I6g57VaV7AHuyV4XDpcCcP482FrNLkRNtFioNed9qU95MCAZ_ez/s1600-h/Aviary+localhost+Picture+3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;468&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO-ezxaxJ9_QPTzC0V7__DnyoKteOzQVjw5db4Mr6oRTTk8zVp2aQYgNOZCWxCb3IJ0dIrcFkaamSytuwxytyPnHuR7I6g57VaV7AHuyV4XDpcCcP482FrNLkRNtFioNed9qU95MCAZ_ez/s640/Aviary+localhost+Picture+3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Click on Selected Page &quot;Content&quot; from the drop down &amp;nbsp;menu and click on Content Management link under categories tab. Now select Content Search Manager(n) from the list of checkboxes. Click on Update Content Settings button to make changes permanent.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;8. Change the permissions of Blog structure.&lt;/b&gt;&lt;/div&gt;Click on Structures link and chose structures. This will show a screen containing all structures. Click on Blog. Then click on Permissions tab and check mysiterole and CMS Anonymous role under View column.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibfi32KLzsNM4tOQg0RkrUFVFdc3KBLz949KcVNhSwfwPX6UzusiqqX4m-yLcZxGEHIxx3Ra009C-FVVxSRiDk6sK5xyy-9a6alZ_RNeiY2rlFXgvpxW-qFn3bg-FpUkPpmmf62OTYcYAp/s1600-h/Aviary+localhost+Picture+4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;268&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibfi32KLzsNM4tOQg0RkrUFVFdc3KBLz949KcVNhSwfwPX6UzusiqqX4m-yLcZxGEHIxx3Ra009C-FVVxSRiDk6sK5xyy-9a6alZ_RNeiY2rlFXgvpxW-qFn3bg-FpUkPpmmf62OTYcYAp/s640/Aviary+localhost+Picture+4.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;9. Change the permission of the Blog Entry structure.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Click on Structures link and chose structures. This will show a screen containing all structures. Click on Blog Entry. Then click on Permissions tab and check View, Modify and Publish permissions to mysiterole. Also give View permission to CMS Anonymous role.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVCXBKjrIA2Esu6xQvP3jk8hz9-q7LeFLbB02xXuYd8cwoRe4k92K6_rveIrnrXt1yRePcZ_WCayoxCBgB3F_tMVYsngKhz7S5FtFZaTQ0X8Q9z6hh5gKDUuCUol7Nj-O7_4Dxw5R4QDH9/s1600-h/Aviary+localhost+Picture+5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;284&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVCXBKjrIA2Esu6xQvP3jk8hz9-q7LeFLbB02xXuYd8cwoRe4k92K6_rveIrnrXt1yRePcZ_WCayoxCBgB3F_tMVYsngKhz7S5FtFZaTQ0X8Q9z6hh5gKDUuCUol7Nj-O7_4Dxw5R4QDH9/s640/Aviary+localhost+Picture+5.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;This now completed the assigning permissions and role to a blog site. Now only user mysiteuser will be able to create a blog post when logged into the system. After you login to the system as mysiteuser it will look like as follows.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXynG6iyV1AAPTOOo0MWwFm_Y0zj27_20Ln10mN3pO_F75_SefPiaZQEFARq3Q0IxnDBlKl7b6aywJxUdYImOyJj77MRJnGITQS7ZmaiVC5j9aHkor7BIHZDyLxbkHVsupaYSL1yJh6pct/s1600-h/Aviary+localhost+Picture+6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;436&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXynG6iyV1AAPTOOo0MWwFm_Y0zj27_20Ln10mN3pO_F75_SefPiaZQEFARq3Q0IxnDBlKl7b6aywJxUdYImOyJj77MRJnGITQS7ZmaiVC5j9aHkor7BIHZDyLxbkHVsupaYSL1yJh6pct/s640/Aviary+localhost+Picture+6.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;By clicking on Add New Content and selecting Blog Entry from the drop down you will be able to go to following screen where you can write your contents of post.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbl7aA0M7DTY_5KFG4iAwIsCyQyQ87FW_JMC4SIzfjgN5f8f0WdSJZpVcMvUti0ZYZ1Ll5PM804GFmR07ViSZLnYAF0P_T0p6rhglFljsbu30pyr7s_OkwB_350N9O_FbpEHoZg6HRlJTH/s1600-h/Aviary+localhost+Picture+7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbl7aA0M7DTY_5KFG4iAwIsCyQyQ87FW_JMC4SIzfjgN5f8f0WdSJZpVcMvUti0ZYZ1Ll5PM804GFmR07ViSZLnYAF0P_T0p6rhglFljsbu30pyr7s_OkwB_350N9O_FbpEHoZg6HRlJTH/s640/Aviary+localhost+Picture+7.png&quot; width=&quot;612&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;After you are done with writing your changes, you need to relate this blog post with one of the blogs. You can do it by going to relationship tab and clicking on Relate Content button. This will populate a search screen. You need to search for the relevant blog and relate content.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/5080951045628299155/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/5080951045628299155?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/5080951045628299155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/5080951045628299155'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2010/03/managing-content-with-role-and.html' title='Managing content with Role and Permissions in dotCMS'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrVZn0CGp1ve1HIwv8siZXo3OoekSBt78A-BDUdnZx81xlswPwFH45ljfD7yGYjB-usOXxzzVm8U90Q4-ACjwmHs3AfiLEZ6COd48V8W16nJqmf3lsX1IcA0wnb8hTuOt2gwR1cgmmSENV/s72-c/Aviary+localhost+Picture+1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-8861763137007354751</id><published>2010-03-17T02:10:00.000-07:00</published><updated>2010-03-17T03:13:37.702-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="blog"/><category scheme="http://www.blogger.com/atom/ns#" term="container"/><category scheme="http://www.blogger.com/atom/ns#" term="dotCMS"/><category scheme="http://www.blogger.com/atom/ns#" term="template"/><title type='text'>Creating a blog Site with dotCMS(A Open Source Java CMS)</title><content type='html'>In my organization I had to create a blog site for one of my International team. The obvious options were to chose from vast range of PHP based CMS. But due to some technical issues we could not proceed to them and we were asked to use Open Source Java based CMS. After few days analysis we found that &lt;a href=&quot;http://www.dotcms.org/&quot;&gt;dotCMS&lt;/a&gt; matched our requirements for the blog site.&lt;br /&gt;
&lt;br /&gt;
I searched on the net and found very little documentation on how to work with dotCMS however. It took me couple of days to figure out how to make a customized site only for blogging using dotCMS.&lt;br /&gt;
&lt;br /&gt;
Here are few building blocks of dotCMS architecture.&lt;br /&gt;
&lt;br /&gt;
1.Structure&lt;br /&gt;
2.Content&lt;br /&gt;
3.Category&lt;br /&gt;
4.Relationship&lt;br /&gt;
5.Container&lt;br /&gt;
6.Template&lt;br /&gt;
&lt;br /&gt;
For any site we need to understand these properly and the initial documentation is given at this &lt;a href=&quot;http://www.dotcms.org/documentation/TableOfContents&quot;&gt;url&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
dotCMS&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=helpf-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0596009208&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt; comes bundled with a starter site that contains a blog module in itself. We will use this blog module to create a blog site of us named as MySite.&lt;br /&gt;
&lt;br /&gt;
We will first login as admin user(test@dotcms.org/test) to &lt;i&gt;http://localhost/c&lt;/i&gt; url.&lt;br /&gt;
We see that there are bunch of links available there for managing whole site. However initially we will be interested only in Container and Template section.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgP64Qk2ufr19DhI26GK4SOL7wX8nuSNKyvi5hSKzdJlgaRsuBhNV0sQxkpUdlpx58OhN2RodQ9DjsXp5G6SBAoWFXjgAfywZXiUKspEawWB-dz8LepGQWb7vRkQST_AzQNyAe9SHHqCQT-/s1600-h/Aviary%20localhost%20Picture%201.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;412&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgP64Qk2ufr19DhI26GK4SOL7wX8nuSNKyvi5hSKzdJlgaRsuBhNV0sQxkpUdlpx58OhN2RodQ9DjsXp5G6SBAoWFXjgAfywZXiUKspEawWB-dz8LepGQWb7vRkQST_AzQNyAe9SHHqCQT-/s640/Aviary%20localhost%20Picture%201.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
In every website we have few elements common to all like Header, Footer, Left Side Navigation, Right Side Navigation and Center Body. There also needs to be a template file which will contain all these elements.&lt;br /&gt;
&lt;br /&gt;
Hence we will create/modify few files for things to work.&lt;br /&gt;
&lt;br /&gt;
1.Create a container MySite-Header by clicking on Add/Edit Container link and write down the html that will go to your header&lt;br /&gt;
&lt;br /&gt;
2.Create a container MySite-Footer&amp;nbsp;by clicking on Add/Edit Container link and&amp;nbsp;write down the html that will go to your footer&lt;br /&gt;
&lt;br /&gt;
3.Create a container MySite-CenterBody&amp;nbsp;by clicking on Add/Edit Container link and&amp;nbsp;write down the html that will go to your center body(Make sure you have selected max contents to be non zero). Chose WebPageContent as content&#39;s structure. Normally the code for the body will be&amp;nbsp;&lt;b&gt;&lt;i&gt;$!{Body}&lt;/i&gt;&amp;nbsp;&lt;/b&gt;because it will be replaced with the content you will add to the center body container.&lt;br /&gt;
&lt;br /&gt;
4.Create a container MySite-LeftSideNavBar&amp;nbsp;by clicking on Add/Edit Container link and&amp;nbsp;write down the html that will go to your&amp;nbsp;Left Side Navigation Bar&lt;br /&gt;
&lt;br /&gt;
5.Create a container MySite-RightSideNavBar fby clicking on Add/Edit Container link and&amp;nbsp;write down the html that will go to your&amp;nbsp;Right Side Navigation Bar&lt;br /&gt;
&lt;br /&gt;
6.Create a template MySite-Template by clicking on Templates and then Add/Edit Templates link. You will write here the overall layout of the site. While creating the template code you also need to include the headers, footer, center body, left side navigation bar, right side navigation bar container just created above. For this you need to click on Add Container button and search for all your containers, this selected container will now be included in the code of your template created.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjRcVXKjgDrls8pCcAph4oktNZJ2jKTI11mrxwG2-YMF9ABa7nBdstfGKmi_aTB1Y6hIqLK7-ZOTmyeaS9xZYLDDW7cSYJ85uQMXos0Qv7prc-ix0uL2Rl5OFg2Xbhb1N0lAosONNWQuod/s1600-h/Aviary+localhost+Picture+2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;474&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjRcVXKjgDrls8pCcAph4oktNZJ2jKTI11mrxwG2-YMF9ABa7nBdstfGKmi_aTB1Y6hIqLK7-ZOTmyeaS9xZYLDDW7cSYJ85uQMXos0Qv7prc-ix0uL2Rl5OFg2Xbhb1N0lAosONNWQuod/s640/Aviary+localhost+Picture+2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Click on Save and Publish to make your template active.&lt;br /&gt;
&lt;br /&gt;
Now click on Browser section and browse to /global/images and create a new folder called mysite &amp;nbsp;by right clicking on images-&amp;gt;New-&amp;gt;Folder&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA9PFTtKpPwlxwDIY7bVwcpwXt9WYo8v0RhSYtSK_kbx-0-trt8Z9LjosT0yvbyGvtDaz7RGMEgFCXx2DN1EC0_dhnX2UECiZhqTFeSHA7a14BBXFagm7VR_UCrT8yw_eIQWO7pnggxvAS/s1600-h/Aviary+localhost+Picture+3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;388&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA9PFTtKpPwlxwDIY7bVwcpwXt9WYo8v0RhSYtSK_kbx-0-trt8Z9LjosT0yvbyGvtDaz7RGMEgFCXx2DN1EC0_dhnX2UECiZhqTFeSHA7a14BBXFagm7VR_UCrT8yw_eIQWO7pnggxvAS/s640/Aviary+localhost+Picture+3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Now upload all your css/images files there. You may also create a separate folder for images and css in the same way.&lt;br /&gt;
&lt;br /&gt;
Now Go to Browser section again and disable all shown folders to be shown on Main Menu by right clicking on each folder and selecting Edit. Make sure you have unchecked the Show on Menu checkbox.&lt;br /&gt;
&lt;br /&gt;
Now we will modify the pages in /blog directory to customize them. First of all we will modify the index.dot file by double clicking on /blog/index.dot. &amp;nbsp;When you click on the index.dot you will see a link &amp;nbsp;Page Properties on the top left side of the page. By Clicking on this link we will change the page template to our created MySite-Template.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9TTJlKtlCZ9bfwSvlzT3BsPNJuC7BrkUvUTnxy99mY6-TKME3YDMQkn0zWqumn1DOyMTPRv_ARk5qivNjNu3AbH6ILwfNEek6X4xY6YPYODL-YrpgyDrJZ4ooYDh1eJwdp5gszmy_-TeX/s1600-h/Aviary+localhost+Picture+4.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9TTJlKtlCZ9bfwSvlzT3BsPNJuC7BrkUvUTnxy99mY6-TKME3YDMQkn0zWqumn1DOyMTPRv_ARk5qivNjNu3AbH6ILwfNEek6X4xY6YPYODL-YrpgyDrJZ4ooYDh1eJwdp5gszmy_-TeX/s640/Aviary+localhost+Picture+4.png&quot; width=&quot;374&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
We will change the templates of all the files present in /blog folder so that every page is in consistency with the site template.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will now start adding actual content to all the pages modified.&lt;br /&gt;
&lt;br /&gt;
For doing this we need to click on Add Content link and selecting Reuse content from the drop down. We need to search for &quot;Widget-blog listing&quot; content from the search window.&lt;br /&gt;
&lt;br /&gt;
We need to add the content &quot;widget - Entries by tag&quot; in tags.dot.&lt;br /&gt;
&lt;br /&gt;
Now click on add content button and chose widget - Blog Entry Detail (with audio catcha) to /blog/detail.dot&lt;br /&gt;
&lt;br /&gt;
Add the content &quot;Contributor Blog Entries&quot; in contributor_blog_entries.dot&lt;br /&gt;
&lt;br /&gt;
Add the content &quot;Blog Archived List&quot; in archived_blog_list.dot&lt;br /&gt;
&lt;br /&gt;
Add the content &quot;Widget - Blog listing&quot; again to entries.dot&lt;br /&gt;
&lt;br /&gt;
This now completes the blog site creation tutorial. I will update the role and user creation tutorial in next few days.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkRM-H6tJM3zKZs9YKpaEYcwN3jNW20AQQhdXMUxVwrfs2H3J2aDUAuVS1N5XLF4QpuYBzGrFL2Mt2dCbQFRpoXf8MsHkRlmJKch8p4vvMQ8s5WNfL8E788Lw7F8RcrQcqPJ3snr0Yr41C/s1600-h/Aviary+localhost+Picture+5.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;156&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkRM-H6tJM3zKZs9YKpaEYcwN3jNW20AQQhdXMUxVwrfs2H3J2aDUAuVS1N5XLF4QpuYBzGrFL2Mt2dCbQFRpoXf8MsHkRlmJKch8p4vvMQ8s5WNfL8E788Lw7F8RcrQcqPJ3snr0Yr41C/s640/Aviary+localhost+Picture+5.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/8861763137007354751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/8861763137007354751?isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/8861763137007354751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/8861763137007354751'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2010/03/creating-blog-site-with-dotcmsa-open.html' title='Creating a blog Site with dotCMS(A Open Source Java CMS)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgP64Qk2ufr19DhI26GK4SOL7wX8nuSNKyvi5hSKzdJlgaRsuBhNV0sQxkpUdlpx58OhN2RodQ9DjsXp5G6SBAoWFXjgAfywZXiUKspEawWB-dz8LepGQWb7vRkQST_AzQNyAe9SHHqCQT-/s72-c/Aviary%20localhost%20Picture%201.png" height="72" width="72"/><thr:total>2</thr:total><georss:featurename>New Delhi, Delhi, India</georss:featurename><georss:point>28.635308 77.22496</georss:point><georss:box>28.333978499999997 76.758040999999992 28.9366375 77.691879</georss:box></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-4502437979254836105</id><published>2009-12-18T03:47:00.000-08:00</published><updated>2009-12-18T04:23:05.201-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="awk"/><category scheme="http://www.blogger.com/atom/ns#" term="multiline"/><category scheme="http://www.blogger.com/atom/ns#" term="records"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>awk in multiline records</title><content type='html'>I had a database creation script that looks like spanning thousands of lines. However I was only interested to see only few of them which were only containing name pattern TEST1 and TEST2.&lt;br /&gt;
&lt;br /&gt;
I could have used grep to find the valid lines of the file but my records were spread across the lines means each valid record consisted of multiple lines. So I googled for the problem and found that awk can also do a multi line search given proper inputs.&lt;br /&gt;
&lt;br /&gt;
Suppose I have a file input.sql that contains many multiline database object creation queries. I now have to find all queries which only contains TEST1 and TEST2. All of these queries/records are separated by separator &quot;;&quot;.&lt;br /&gt;
&lt;br /&gt;
Write a awk input script as follows.&lt;br /&gt;
&lt;br /&gt;
#scrip.awk&lt;br /&gt;
BEGIN {&lt;br /&gt;
RS=&quot;;&quot;&lt;br /&gt;
}&lt;br /&gt;
{&lt;br /&gt;
if (($0 ~ /TEST1/ )||($0 ~ /TEST2/)) {&lt;br /&gt;
print $0 &quot;;&quot;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Here I am specifying that my record separator RS is equal to &quot;;&quot;. Also In the awk execution line I specified that if each of my record field which is represented by $0 contains either TEST1 or TEST2 then dump that field to console using print command of awk. Also I have appended a additional string &quot;;&quot; so that my output file output.sql contains actual queries when run on sqlplus prompt&lt;br /&gt;
&lt;br /&gt;
Now I can execute the command as follows on command prompt.&lt;br /&gt;
awk -f script.awk input.sql &gt; output.sql&lt;br /&gt;
&lt;br /&gt;
This should give you the all matching record containing TEST1 and TEST2 in the file output.sql&lt;br /&gt;
&lt;br /&gt;
A very nice awk Related tutorial can be found at&lt;br /&gt;
&lt;a href=&quot;http://www.ibm.com/developerworks/library/l-awk1.html&quot;&gt;http://www.ibm.com/developerworks/library/l-awk1.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.ibm.com/developerworks/library/l-awk2.html&quot;&gt;http://www.ibm.com/developerworks/library/l-awk2.html&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/4502437979254836105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/4502437979254836105?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/4502437979254836105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/4502437979254836105'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2009/12/awk-in-multiline-records.html' title='awk in multiline records'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-5136305168832854411</id><published>2009-12-18T03:20:00.000-08:00</published><updated>2009-12-18T03:34:23.236-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="expdp"/><category scheme="http://www.blogger.com/atom/ns#" term="export"/><category scheme="http://www.blogger.com/atom/ns#" term="impdp"/><category scheme="http://www.blogger.com/atom/ns#" term="import"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><title type='text'>EXPDP/IMPDP example in oracle for database copy</title><content type='html'>Normally we need to have a database copy to export/import on our other database and separate schema. Here are the steps to do the schema copy from one database to another. You need to be admin user for performing some tasks.&lt;br /&gt;&lt;br /&gt;$ mkdir datapump&lt;br /&gt;&lt;br /&gt;$ chmod 777 datapump/&lt;br /&gt;&lt;br /&gt;$ sqlplus adminuser1/adminpassword1@dbsid1&lt;br /&gt;&lt;br /&gt;SQL&gt; create directory datapump as &#39;/path/to/folder/datapump&#39;;&lt;br /&gt;&lt;br /&gt;SQL&gt; grant read, write on directory datapump to public;&lt;br /&gt;&lt;br /&gt;$ expdp user1/password1@dbsid1 dumpfile=datapump:myschema.dmp logfile=datapump:myschema_exp.log schemas=myschema&lt;br /&gt;&lt;br /&gt;$ sqlplus adminuser2/adminpassword2@dbsid2&lt;br /&gt;&lt;br /&gt;SQL&gt; create directory datapump as &#39;/same/path/to/folder/datapump&#39;;&lt;br /&gt;&lt;br /&gt;SQL&gt; grant read, write on directory datapump to public;&lt;br /&gt;&lt;br /&gt;$ impdp user2/password2@dbsid2 dumpfile=datapump:myschema.dmp logfile=datapump:myschema_imp.log remap_schema=myschema:yourschema remap_tablespace=mytablespace:yourtablespace&lt;br /&gt;&lt;br /&gt;You can remove remap_schema and remap_tablespace clauses in case your schema name and tablespace name are same on both the databases.&lt;br /&gt;&lt;br /&gt;You also need to have same datapump location accessible from both the databases.</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/5136305168832854411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/5136305168832854411?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/5136305168832854411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/5136305168832854411'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2009/12/expdpimpdp-example-in-oracle-for.html' title='EXPDP/IMPDP example in oracle for database copy'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-5607729240046142529</id><published>2009-11-25T03:58:00.000-08:00</published><updated>2009-11-25T04:03:23.708-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="repository"/><category scheme="http://www.blogger.com/atom/ns#" term="revision"/><category scheme="http://www.blogger.com/atom/ns#" term="SVN"/><title type='text'>Browsing svn revisions in a web browser</title><content type='html'>Browsing svn revisions in a web browser&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;http://{repository url}/!svn/bc/{revision}/{mymodule}/{trunk or branch}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;for example&lt;br /&gt;I want to see the revision 80121 of module testmodule&#39;s trunk&lt;br /&gt;and my repository is http://svn/repository&lt;br /&gt;&lt;br /&gt;Then the URL will be like&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;http://svn/repository/!svn/bc/80121/testmodule/trunk&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/5607729240046142529/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/5607729240046142529?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/5607729240046142529'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/5607729240046142529'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2009/11/browsing-svn-revisions-in-web-browser.html' title='Browsing svn revisions in a web browser'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-3115572300221936111</id><published>2009-10-26T02:42:00.000-07:00</published><updated>2009-10-26T02:58:02.822-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="configuration"/><category scheme="http://www.blogger.com/atom/ns#" term="debug"/><category scheme="http://www.blogger.com/atom/ns#" term="remote"/><category scheme="http://www.blogger.com/atom/ns#" term="resin"/><title type='text'>Configuring resin for remote debugging</title><content type='html'>I am using resin application server in my development environment. At times I need to debug my applications using resin container. I did some search and found a way to integrate resin to my IDE as follows.&lt;br /&gt;&lt;br /&gt;For Resin-3.1.8.&lt;br /&gt;I added few lines to my resin.conf file as follows&lt;br /&gt;      &lt;span style=&quot;font-weight:bold;&quot;&gt;&amp;lt;jvm-arg&amp;gt;-Xdebug&amp;lt;/jvm-arg&amp;gt;&lt;br /&gt;      &amp;lt;jvm-arg&amp;gt;-Xnoagent&amp;lt;/jvm-arg&amp;gt;&lt;br /&gt;      &amp;lt;jvm-arg&amp;gt;-Djava.compiler=NONE&amp;lt;/jvm-arg&amp;gt;&lt;br /&gt;      &amp;lt;jvm-arg&amp;gt;-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005&amp;lt;/jvm-arg&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For versions prior to Resin-3.1.8.&lt;br /&gt;I added few lines to my resin startup script as follows&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;httpd.exe -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -Xnoagent  -Djava.compiler=NONE  -conf D:\resin\conf\resin.conf&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/3115572300221936111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/3115572300221936111?isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/3115572300221936111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/3115572300221936111'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2009/10/configuring-resin-for-remote-debugging.html' title='Configuring resin for remote debugging'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-768041320482961618.post-5354022538183004027</id><published>2009-10-06T23:13:00.000-07:00</published><updated>2009-10-06T23:25:06.767-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="search and replace"/><category scheme="http://www.blogger.com/atom/ns#" term="sed"/><title type='text'>Using sed to search and replace a token without opening a file</title><content type='html'>&lt;span style=&quot;font-size:78%;&quot;&gt;#!/bin/bash&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;i=0; while [ $i -le 47 ]&lt;br /&gt;&lt;br /&gt;do&lt;br /&gt;&lt;br /&gt;echo &quot; Creating temp file for slice : $i&quot;&lt;br /&gt;&lt;br /&gt;sed s/&lt;slicenum\&gt;slicenum/$i/g adspace_buy.ctl &gt; adspace_buy.ctl.tmp&lt;br /&gt;&lt;br /&gt;echo &quot; Loading Started ...&quot;&lt;br /&gt;&lt;br /&gt;sqlldr  userid=tfr_rep/welcome@datagen1-aswain:1521/tfrdb control=adspace_buy.ctl.tmp data=adspace_buy_data.$i.csv log=logssqlldr_log_adspaceBuy.log bad=logssqlldr_bad_adspaceBuy.log direct = true&lt;br /&gt;&lt;br /&gt;echo &quot;Loading Done for slice : $i&quot;&lt;br /&gt;&lt;br /&gt;i=`expr $i + 1`&lt;br /&gt;&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;echo &quot;Script completed&quot;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-size:100%;&quot; &gt;This script will search for a token slicenum in &lt;/span&gt;&lt;/slicenum\&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;font-size:100%;&quot; &gt;adspace_buy.ctl file and replace it with $i value of the loop counter. Also it redirects the output to a new file &lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;span style=&quot;font-weight: bold;font-size:100%;&quot; &gt;adspace_buy.ctl.tmp.&lt;br /&gt;After that this script uses sql loader utility to load the data to oracle database using this newly generated file. This whole process continues  for 48 times.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://ahsan-javed.blogspot.com/feeds/5354022538183004027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/768041320482961618/5354022538183004027?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/5354022538183004027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/768041320482961618/posts/default/5354022538183004027'/><link rel='alternate' type='text/html' href='http://ahsan-javed.blogspot.com/2009/10/using-sed-to-search-and-replace-token.html' title='Using sed to search and replace a token without opening a file'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09396152438161494032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>