<?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-8035129377668289301</id><updated>2024-11-01T16:05:46.600+05:30</updated><category term="Java"/><category term="network"/><category term="ubuntu"/><category term="Link"/><category term="database"/><category term="postgresql"/><category term="GPG Error"/><category term="JPA"/><category term="Synaptic Manager"/><category term="apache2"/><category term="data structures"/><category term="interative shells"/><category term="jboss"/><category term="jboss as"/><category term="joomla"/><category term="openshift"/><category term="php"/><category term="pinguy os"/><category term="productivity"/><category term="programming"/><category term="quotes"/><category term="tips"/><category term="yii framework"/><title type='text'>Sahir Maredia&#39;s Blog</title><subtitle type='html'>Person with positive thoughts and believes whatever happens is for the good but work hard for the best. I am a developer, designer, blogger, entrepreneur, camper and overall thinker. I work as a freelancer and can develop applications ranging from CMS to Enterprise Applications using Java and PHP. I am a professional with latest technologies like JEE6, HTML5, CSS3, JQuery, NoSQL Databases, Sql Databases - MySQL, Postgresql, etc. </subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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>42</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8035129377668289301.post-7957309773108215581</id><published>2012-10-07T22:23:00.000+05:30</published><updated>2012-10-07T22:23:07.279+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="network"/><title type='text'>Java program to save a given URL into a file</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;pre class=&quot;java&quot; name=&quot;code&quot;&gt;import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;

/**
 * Program to save web page in a file
 * 
 * @author sahir maredia (Kotia Solutions)
 * 
 */
public class SaveWebPage {

 /**
  * @param args
  */
 public static void main(String[] args) {
  if (args.length != 2) {
   System.out.println(&quot;Please provide valid arguments&quot;);
   return;
  }

  try {
   URL url = new URL(args[0]);
   BufferedReader br = new BufferedReader(new InputStreamReader(
     url.openStream()));
   BufferedWriter bw = new BufferedWriter(new FileWriter(args[1]));

   String input = &quot;&quot;;
   while ((input = br.readLine()) != null) {
    bw.write(input);
    bw.newLine();
   }

   bw.close();
   br.close();
   System.out.println(&quot;Web page written successfully.&quot;);
  } catch (MalformedURLException e) {
   System.out.println(&quot;Error occured : &quot; + e.getMessage());
  } catch (IOException e) {
   System.out.println(&quot;Error occured : &quot; + e.getMessage());
  }
 }

}
&lt;/pre&gt;&lt;br /&gt;
Run this program as follows :&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;consoleClass&quot;&gt;sahir@sahir-laptop:~/networklab$ javac SaveWebPage.java &lt;br /&gt;
sahir@sahir-laptop:~/networklab$ java SaveWebPage http://www.kotiasolutions.com/services.html services.txt&lt;br /&gt;
Web page written successfully.&lt;br /&gt;
sahir@sahir-laptop:~/networklab$&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/7957309773108215581/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2012/10/java-program-to-save-given-url-into-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/7957309773108215581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/7957309773108215581'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2012/10/java-program-to-save-given-url-into-file.html' title='Java program to save a given URL into a file'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-3781697815511823849</id><published>2012-10-07T22:16:00.000+05:30</published><updated>2012-10-07T22:18:11.315+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="network"/><title type='text'>Java program to print parts of given URL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;pre class=&quot;java&quot; name=&quot;code&quot;&gt;import java.net.MalformedURLException;
import java.net.URL;

/**
 * Program to print all the parts of the given url
 * 
 * @author sahir maredia (Kotia Solutions)
 * 
 */
public class URLParts {

 /**
  * @param args
  */
 public static void main(String[] args) {
  if (args.length != 1) {
   System.out.println(&quot;Please provide valid arguments&quot;);
   return;
  }
  try {
   URL url = new URL(args[0]);
   System.out.println(&quot;====== Given URL is : &quot; + args[0] + &quot; ======&quot;);
   System.out.println(&quot;Protocol : &quot; + url.getProtocol());

   // if port not specified as part of url, getting default port
   int port = url.getPort() == -1 ? url.getDefaultPort() : url
     .getPort();
   System.out.println(&quot;Port : &quot;
 + port);
   System.out.println(&quot;Host : &quot; + url.getHost());
   System.out.println(&quot;Path : &quot; + url.getPath());
   System.out.println(&quot;File Name : &quot; + url.getFile());
   System.out.println(&quot;Query : &quot; + url.getQuery());
  } catch (MalformedURLException e) {
   System.out.println(e.getMessage());
  }

 }

}
&lt;/pre&gt;&lt;br /&gt;
Run this program as follows :&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;consoleClass&quot;&gt;sahir@sahir-laptop:~/networklab$ javac URLParts.java &lt;br /&gt;
sahir@sahir-laptop:~/networklab$ java URLParts http://www.kotiasolutions.com/services.html?service=web&lt;br /&gt;
====== Given URL is : http://www.kotiasolutions.com/services.html?service=web ======&lt;br /&gt;
Protocol : http&lt;br /&gt;
Port : 80&lt;br /&gt;
Host : www.kotiasolutions.com&lt;br /&gt;
Path : /services.html&lt;br /&gt;
File Name : /services.html?service=web&lt;br /&gt;
Query : service=web&lt;br /&gt;
sahir@sahir-laptop:~/networklab$ &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/3781697815511823849/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2012/10/import-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/3781697815511823849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/3781697815511823849'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2012/10/import-java.html' title='Java program to print parts of given URL'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-150925399011777419</id><published>2012-10-07T22:12:00.002+05:30</published><updated>2012-10-07T22:17:06.041+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="network"/><title type='text'>Simple nslookup java clone</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;pre class=&quot;java&quot; name=&quot;code&quot;&gt;import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * Program to perform simple functionality of NSLookUp (simple nslookup clone)
 * 
 * @author sahir maredia (Kotia Solutions)
 * 
 */
public class NSLookup {

 /**
  * @param args
  */
 public static void main(String[] args) {
  if (args.length != 1) {
   System.out.println(&quot;Please provide valid arguments&quot;);
   return;
  }

  try {
   InetAddress ipaddress = InetAddress.getByName(args[0]);
   System.out.println(&quot;Name : &quot; + ipaddress.getHostName());
   System.out.println(&quot;Address : &quot; + ipaddress.getHostAddress());
  } catch (UnknownHostException e) {
   System.out.println(&quot;Error occured : &quot; + e.getMessage());
  }
 }

}
&lt;/pre&gt;&lt;br /&gt;
Run this program as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;consoleClass&quot;&gt;sahir@sahir-laptop:~/networklab$ javac NSLookup.java &lt;br /&gt;
sahir@sahir-laptop:~/networklab$ java NSLookup google.com&lt;br /&gt;
Name : google.com&lt;br /&gt;
Address : 74.125.236.163&lt;br /&gt;
sahir@sahir-laptop:~/networklab$ java NSLookup 74.125.236.163&lt;br /&gt;
Name : maa03s16-in-f3.1e100.net&lt;br /&gt;
Address : 74.125.236.163&lt;br /&gt;
sahir@sahir-laptop:~/networklab$ &lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/150925399011777419/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2012/10/simple-nslookup-java-clone.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/150925399011777419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/150925399011777419'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2012/10/simple-nslookup-java-clone.html' title='Simple nslookup java clone'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-6296420402217516045</id><published>2012-10-07T22:09:00.000+05:30</published><updated>2012-10-07T22:17:19.980+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="network"/><title type='text'>Java program to find the whether given IP is IPv4 or IPv6</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;pre class=&quot;java&quot; name=&quot;code&quot;&gt;import java.util.regex.Pattern;

/**
 * Program to find whether given ip is IPv4 or IPv6 address
 * 
 * @author sahir maredia (Kotia Solutions)
 * 
 */
public class IPType {

 private static final String IPv4 = &quot;(([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.){3}([01]?\\d\\d?|2[0-4]\\d|25[0-5])&quot;;
 private static final String IPv6 = &quot;([0-9a-f]{1,4}:){7}([0-9a-f]){1,4}&quot;;

 /**
  * @param args
  */
 public static void main(String[] args) {
  if (args.length != 1) {
   System.out.println(&quot;Please provide IP address as argument&quot;);
   return;
  }
  String ipaddress = args[0];
  
  Pattern ipv4 = Pattern.compile(IPv4);
  Pattern ipv6 = Pattern.compile(IPv6);
  if (ipv4.matcher(ipaddress).matches()) {
   System.out.println(&quot;Given IP Address : &quot; + ipaddress + &quot; is IPv4&quot;);
   return;
  } else if (ipv6.matcher(ipaddress).matches()) {
   System.out.println(&quot;Given IP Address : &quot; + ipaddress + &quot; is IPv6&quot;);
   return;
  } else {
   System.out.println(&quot;Given string is an invalid IP address&quot;);
  }
 }

}
&lt;/pre&gt;&lt;br /&gt;
Run this program as follows :&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;consoleClass&quot;&gt;sahir@sahir-laptop:~/networklab$ javac IPType.java &lt;br /&gt;
sahir@sahir-laptop:~/networklab$ java IPType 192.168.1.1&lt;br /&gt;
Given IP Address : 192.168.1.1 is IPv4&lt;br /&gt;
sahir@sahir-laptop:~/networklab$ java IPType 0000:ffff:1234:4567:0000:4321:4567:ffff&lt;br /&gt;
Given IP Address : 0000:ffff:1234:4567:0000:4321:4567:ffff is IPv6&lt;br /&gt;
sahir@sahir-laptop:~/networklab$ &lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/6296420402217516045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2012/10/java-program-to-find-whether-given-ip.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/6296420402217516045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/6296420402217516045'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2012/10/java-program-to-find-whether-given-ip.html' title='Java program to find the whether given IP is IPv4 or IPv6'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-6566112970899780272</id><published>2012-10-07T21:13:00.000+05:30</published><updated>2012-10-07T22:18:50.604+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="network"/><title type='text'>Java program to find all IP addresses of given Host</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;pre class=&quot;java&quot; name=&quot;code&quot;&gt;import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * Program to print all ip addresses of given domain
 * 
 * @author sahir maredia (Kotia Solutions)
 * 
 */
public class FindIP {

 /**
  * @param args
  */
 public static void main(String[] args) {
  if (args.length != 1) {
   System.out.println(&quot;Please provide a valid input&quot;);
   return;
  }
  try {
   InetAddress[] ipaddresses = InetAddress.getAllByName(args[0]);

   for (InetAddress ip : ipaddresses)
    System.out.println(ip.getHostAddress());
  } catch (UnknownHostException e) {
   System.out.println(&quot;Error occured : &quot; + e.getMessage());
  }
 }

}
&lt;/pre&gt;&lt;br /&gt;
Run the program as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;consoleClass&quot;&gt;sahir@sahir-laptop:~/networklab$ javac FindIP.java &lt;br /&gt;
sahir@sahir-laptop:~/networklab$ java FindIP google.com&lt;br /&gt;
74.125.236.163&lt;br /&gt;
74.125.236.164&lt;br /&gt;
74.125.236.165&lt;br /&gt;
74.125.236.166&lt;br /&gt;
74.125.236.167&lt;br /&gt;
74.125.236.168&lt;br /&gt;
74.125.236.169&lt;br /&gt;
74.125.236.174&lt;br /&gt;
74.125.236.160&lt;br /&gt;
74.125.236.161&lt;br /&gt;
74.125.236.162&lt;br /&gt;
2404:6800:4007:802:0:0:0:100e&lt;br /&gt;
sahir@sahir-laptop:~/networklab$&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/6566112970899780272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2012/10/java-program-to-find-all-ip-addresses.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/6566112970899780272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/6566112970899780272'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2012/10/java-program-to-find-all-ip-addresses.html' title='Java program to find all IP addresses of given Host'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-4052345781724208430</id><published>2012-10-07T20:06:00.000+05:30</published><updated>2012-10-07T21:14:52.873+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="network"/><title type='text'>Java Program to find Computer name, IP Address and list all network interfaces</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;pre class=&quot;java&quot; name=&quot;code&quot;&gt;import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.net.UnknownHostException;
import java.util.Collections;
import java.util.Enumeration;

/**
 * Program to display current computer name, IP Address and network interfaces
 * 
 * @author sahir maredia (Kotia Solutions)
 * 
 */
public class ComputerName {

 /**
  * @param args
  */
 public static void main(String[] args) {
 try {

  InetAddress ipaddress = InetAddress.getLocalHost();
  System.out.println(&quot;Computer Host Name : &quot;
    + ipaddress.getHostName());
  System.out.println(&quot;IP Address of Localhost : &quot;
    + ipaddress.getHostAddress());

  // getting list of network interfaces
  Enumeration&amp;lt;NetworkInterface&amp;gt; interfaces = NetworkInterface
    .getNetworkInterfaces();

  System.out.println();
  System.out
    .println(&quot;================ Following are the available network interfaces ===============&quot;);
  System.out.println();
  if (interfaces == null) {
   System.out.println(&quot;No network interfaces found&quot;);
  } else {

   for (NetworkInterface netIf : Collections.list(interfaces)) {
    System.out.println(&quot;Display Name : &quot;
      + netIf.getDisplayName());
    System.out.println(&quot;Name : &quot; + netIf.getName());
    System.out.println();
   }
  }
 } catch (UnknownHostException ex) {
  System.out.println(&quot;Error Occured : &quot; + ex.getMessage());
 } catch (SocketException e) {
  System.out.println(&quot;Error Occured : &quot; + e.getMessage());
 }
 }

}
&lt;/pre&gt;&lt;br /&gt;
Run the program as follows : &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;consoleClass&quot;&gt;sahir@sahir-laptop:~/temp/networklab$ javac ComputerName.java &lt;br /&gt;
sahir@sahir-laptop:~/temp/networklab$ java ComputerName &lt;br /&gt;
Computer Host Name : sahir-laptop&lt;br /&gt;
IP Address of Localhost : 127.0.1.1&lt;br /&gt;
&lt;br /&gt;
================ Following are the available network interfaces ===============&lt;br /&gt;
&lt;br /&gt;
Display Name : wlan0&lt;br /&gt;
Name : wlan0&lt;br /&gt;
&lt;br /&gt;
Display Name : lo&lt;br /&gt;
Name : lo&lt;br /&gt;
&lt;br /&gt;
sahir@sahir-laptop:~/temp/networklab$ &lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/4052345781724208430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2012/10/java-program-to-find-computer-name-ip.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/4052345781724208430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/4052345781724208430'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2012/10/java-program-to-find-computer-name-ip.html' title='Java Program to find Computer name, IP Address and list all network interfaces'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-4601600508998298773</id><published>2012-10-06T23:06:00.000+05:30</published><updated>2012-10-06T23:06:54.539+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Add Custom Application to Ubuntu Dashboard</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To add a custom application icon to Ubuntu dashboard, create a file with name &lt;i&gt;&lt;b&gt;AppName.desktop&lt;/b&gt;&lt;/i&gt; in 
&lt;code&gt;~/.local/share/applications&lt;/code&gt;

Put Following into that file&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;[Desktop Entry]&lt;br /&gt;Name=Application Name&lt;br /&gt;Comment=Application Description&lt;br /&gt;Exec=&amp;lt;path to executable;&amp;gt&lt;br /&gt;
Icon=&amp;lt;path to application icon&amp;gt;&lt;br /&gt;Terminal=false&lt;br /&gt;Type=Application&lt;br /&gt;StartupNotify=true&lt;br /&gt;Keywords=&amp;lt;some keywords&amp;gt;&lt;/code&gt;

&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/4601600508998298773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2012/10/add-custom-application-to-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/4601600508998298773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/4601600508998298773'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2012/10/add-custom-application-to-ubuntu.html' title='Add Custom Application to Ubuntu Dashboard'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-5411019410337318665</id><published>2012-05-27T11:48:00.001+05:30</published><updated>2012-05-27T11:48:59.056+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="openshift"/><category scheme="http://www.blogger.com/atom/ns#" term="postgresql"/><title type='text'>Deploying and Managing PostgreSQL on OpenShift</title><content type='html'>&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;270&quot; src=&quot;http://www.youtube.com/embed/0Ebr3X5VTJw?fs=1&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/5411019410337318665/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2012/05/deploying-and-managing-postgresql-on.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/5411019410337318665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/5411019410337318665'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2012/05/deploying-and-managing-postgresql-on.html' title='Deploying and Managing PostgreSQL on OpenShift'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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://img.youtube.com/vi/0Ebr3X5VTJw/default.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8035129377668289301.post-1822279818612021618</id><published>2012-01-13T22:25:00.000+05:30</published><updated>2012-01-13T22:25:08.587+05:30</updated><title type='text'>The Object Oriented Life: Useful Eclipse Plugins that didn&#39;t made it to the ...</title><content type='html'>&lt;a href=&quot;http://jyops.blogspot.com/2012/01/useful-eclipse-plugins-that-didnt-made.html?spref=bl&quot;&gt;The Object Oriented Life: Useful Eclipse Plugins that didn&amp;#39;t made it to the ...&lt;/a&gt;: Eclipse  IDE  project is started aiming to provide a universal tool set for development. Open Source IDE, mostly provided in Java, but the...</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/1822279818612021618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2012/01/object-oriented-life-useful-eclipse.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/1822279818612021618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/1822279818612021618'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2012/01/object-oriented-life-useful-eclipse.html' title='The Object Oriented Life: Useful Eclipse Plugins that didn&#39;t made it to the ...'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-3178445757093572070</id><published>2012-01-09T15:37:00.002+05:30</published><updated>2012-01-11T17:43:58.419+05:30</updated><title type='text'>URL to add facebook Page Tab</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
http://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&amp;amp;display=popup&amp;amp;next=REDIRECT_URI&lt;br /&gt;
&lt;br /&gt;
Update - We can also use this url&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&amp;lt;a href=&amp;quot;http://facebook.com/add.php?api_key=YOUR_APP_KEY&amp;amp;pages=1&amp;amp;page=YOUR_PAGE_ID&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;PAGE NAME&amp;lt;/a&amp;gt;&lt;/code&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/3178445757093572070/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2012/01/url-to-add-facebook-page-tab.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/3178445757093572070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/3178445757093572070'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2012/01/url-to-add-facebook-page-tab.html' title='URL to add facebook Page Tab'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-9112174289617144813</id><published>2012-01-08T20:09:00.000+05:30</published><updated>2012-01-08T20:11:21.139+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="yii framework"/><title type='text'>Making Admin Panel using YIi Framework</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Recently, I have started coding in PHP. After coding for 2 -3 weeks, I started missing all those wild cards that frameworks provided me while coding in &lt;i&gt;Java&lt;/i&gt;.  All the basics things required in any project are taken care by those frameworks. We just need to configure and things are ready.&lt;br /&gt;
This magic of getting things easily made me to search for frameworks in PHP. Earlier, I have used Joomla and Code Igniter(CI). I believe Joomla is great CMS, but using it for any other purposes does not give me flexibility. Code Igniter, I used it long long ago. I came across article saying CI vs Yii vs Kohana. This comparison interested me to use Yii Framework. I found the documentation to be good and also community is good. I have started using this framework. I like the Active Record support which fills the space of hibernate framework.&lt;br /&gt;
First thing I started with is to create a admin panel. I got a very good link through google. It explains all and we can easily create Joomla kind of admin panel in our applications.&lt;br /&gt;
Link to tutorial : &lt;a href=&quot;http://bit.ly/wCDLab&quot;&gt;http://bit.ly/wCDLab&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/9112174289617144813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2012/01/making-admin-panel-using-yii-framework.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/9112174289617144813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/9112174289617144813'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2012/01/making-admin-panel-using-yii-framework.html' title='Making Admin Panel using YIi Framework'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-5701705648314465932</id><published>2011-12-31T17:43:00.000+05:30</published><updated>2011-12-31T18:09:51.356+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="jboss"/><category scheme="http://www.blogger.com/atom/ns#" term="jboss as"/><title type='text'>Configure Database Server LoginModule Realm in Jboss AS 7</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If we want to do a Database login for JavaEE6 application, We need to configure the DatabaseServerLoginModule of Jboss by creating a Realm. Put following lines in standalone.xml ( or domain.xml) :&lt;br /&gt;
&lt;br /&gt;
&lt;pre &quot;=&quot;&quot; class=&quot;xml&quot; name=&quot;code&quot;&gt;&lt;subsystem xmlns=&quot;urn:jboss:domain:security:1.0&quot;&gt; &lt;security-domains&gt;
   &lt;security-domain name=&quot;MyRealm&quot;&gt;
    &lt;authentication&gt;
          &lt;login-module code=&quot;Database&quot; flag=&quot;required&quot;&gt;
               &lt;module-option name=&quot;dsJndiName&quot; value=&quot;java:jboss/datasources/MyDatasource&quot;&gt;
               &lt;module-option name=&quot;principalsQuery&quot; value=&quot;select password from users where username=?&quot;&gt;
               &lt;module-option name=&quot;rolesQuery&quot; value=&quot;select r.role, &#39;Roles&#39; from roles r, users u where r.userId = u.id and u.username=?&quot;&gt;
               &lt;module-option name=&quot;hashAlgorithm&quot; value=&quot;SHA-256&quot;&gt;
               &lt;module-option name=&quot;hashEncoding&quot; value=&quot;base64&quot;&gt;
          &lt;/module-option&gt;&lt;/module-option&gt;&lt;/module-option&gt;&lt;/module-option&gt;&lt;/module-option&gt;&lt;/login-module&gt;
     &lt;/authentication&gt;
  &lt;/security-domain&gt;
&lt;/security-domains&gt;
&lt;/subsystem&gt;
&lt;/pre&gt;
Replace values with your respected values. If you are using custom database module class replace code=&quot;Database&quot; with code=&quot;&amp;lt;your class name&amp;gt;&quot;&lt;br /&gt;
&lt;your class=&quot;&quot; name=&quot;&quot;&gt;Now the realm is configured into server, We need to tell our application to use this realm. This can be achieved using web.xml&lt;br /&gt;

&lt;/your&gt;&lt;br /&gt;
&lt;pre class=&quot;xml&quot; name=&quot;code&quot;&gt; &lt;login-config&gt;
  &lt;auth-method&gt;FORM&lt;/auth-method&gt;
  &lt;realm-name&gt;MyRealm&lt;/realm-name&gt;
  &lt;form-login-config&gt;
   &lt;form-login-page&gt;/login.jsp&lt;/form-login-page&gt;
   &lt;form-error-page&gt;/loginerror.jsp&lt;/form-error-page&gt;
  &lt;/form-login-config&gt;
 &lt;/login-config&gt;
 &lt;security-role&gt;
  &lt;role-name&gt;SuperAdmin&lt;/role-name&gt;
 &lt;/security-role&gt;
 &lt;security-role&gt;
  &lt;role-name&gt;Admin&lt;/role-name&gt;
 &lt;/security-role&gt;
 &lt;security-role&gt;
  &lt;role-name&gt;Manager&lt;/role-name&gt;
 &lt;/security-role&gt;
 &lt;security-role&gt;
  &lt;role-name&gt;Employee&lt;/role-name&gt;
 &lt;/security-role&gt;
&lt;/pre&gt;
From lines 1 to 8 we inform the application to make use of FORM method to authenticate users with Realm MyRealm and also provide the login and error pages.&lt;br /&gt;

Next we need to declare the security roles in the application. We have declared 4 roles SuperAdmin, Admin, Manager and Employee from lines 9 to 20. &lt;br /&gt;

Now we have configured the application we will add security constraint in web.xml to our application as below. &lt;br /&gt;


&lt;pre class=&quot;xml&quot; name=&quot;code&quot;&gt;
&lt;security-constraint&gt;
  &lt;web-resource-collection&gt;
   &lt;web-resource-name&gt;MyApplication&lt;/web-resource-name&gt;
   &lt;url-pattern&gt;/administration/*&lt;/url-pattern&gt;
   &lt;http-method&gt;GET&lt;/http-method&gt;
   &lt;http-method&gt;POST&lt;/http-method&gt;
  &lt;/web-resource-collection&gt;
  &lt;auth-constraint&gt;
   &lt;role-name&gt;SuperAdmin&lt;/role-name&gt;
   &lt;role-name&gt;Admin&lt;/role-name&gt;
  &lt;/auth-constraint&gt;
 &lt;/security-constraint&gt;
 &lt;security-constraint&gt;
  &lt;web-resource-collection&gt;
   &lt;web-resource-name&gt;Unprotected area&lt;/web-resource-name&gt;
   &lt;url-pattern&gt;/resources/*&lt;/url-pattern&gt;
  &lt;/web-resource-collection&gt;
 &lt;/security-constraint&gt;
&lt;/pre&gt;
We added two security constraints. First is to allow only SuperAdmin and Admin to enter the admin panel. Another example is when you have protected entire site but want to allow access to resources to all.
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/5701705648314465932/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2011/12/configure-database-server-loginmodule.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/5701705648314465932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/5701705648314465932'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2011/12/configure-database-server-loginmodule.html' title='Configure Database Server LoginModule Realm in Jboss AS 7'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-4882156542625694243</id><published>2011-12-31T10:50:00.001+05:30</published><updated>2011-12-31T10:50:27.095+05:30</updated><title type='text'>11 Things every Software Developer should be doing in 2012.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Link : &lt;a href=&quot;http://bit.ly/uo1DwM&quot;&gt;http://bit.ly/uo1DwM&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/4882156542625694243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2011/12/11-things-every-software-developer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/4882156542625694243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/4882156542625694243'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2011/12/11-things-every-software-developer.html' title='11 Things every Software Developer should be doing in 2012.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-9109454877958358594</id><published>2011-12-24T21:39:00.000+05:30</published><updated>2011-12-31T10:30:57.727+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="JPA"/><category scheme="http://www.blogger.com/atom/ns#" term="Link"/><title type='text'>JPA Performance, Don&amp;#39;t Ignore the Database</title><content type='html'>http://weblogs.java.net/blog/caroljmcdonald/archive/2009/08/28/jpa-performance-dont-ignore-database-0</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/9109454877958358594/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2011/12/jpa-performance-don-ignore-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/9109454877958358594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/9109454877958358594'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2011/12/jpa-performance-don-ignore-database.html' title='JPA Performance, Don&amp;#39;t Ignore the Database'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-8051677991053456471</id><published>2011-12-16T22:56:00.000+05:30</published><updated>2011-12-31T10:30:57.717+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="postgresql"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Install Postgresql 9.1 in Ubuntu 9.04</title><content type='html'>&lt;strong&gt;first install python-software-properties:&lt;/strong&gt;&lt;br/&gt;sudo apt-get install python-software-properties&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;now add repository and update apt.&lt;/strong&gt;&lt;br/&gt;sudo add-apt-repository ppa:pitti/postgresql&lt;br/&gt;sudo apt-get update&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;now instal postgresql&lt;/strong&gt;&lt;br/&gt;sudo apt-get install postgresql-9.1 libpq-dev&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Now change the postgres user password (still running as root):&lt;/strong&gt;&lt;br/&gt;su postgres&lt;br/&gt;psql -d postgres -U postgres&lt;br/&gt;alter user postgres with password &#39;a&#39;;&lt;br/&gt;\q&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;To install GUI client pgsql &lt;/strong&gt;&lt;br/&gt;sudo apt-get install pgadmin3&lt;br/&gt;&lt;br/&gt;original article: &lt;a href=&quot;http://bit.ly/sUFCgb&quot;&gt;http://bit.ly/sUFCgb&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/8051677991053456471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2011/12/install-postgresql-91-in-ubuntu-904.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/8051677991053456471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/8051677991053456471'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2011/12/install-postgresql-91-in-ubuntu-904.html' title='Install Postgresql 9.1 in Ubuntu 9.04'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-4426329442177946653</id><published>2011-12-16T17:56:00.000+05:30</published><updated>2011-12-31T10:30:57.707+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Link"/><category scheme="http://www.blogger.com/atom/ns#" term="productivity"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><title type='text'>How to Accomplish More by Doing Less - Tony Schwartz - Harvard Business&#xa;Review</title><content type='html'>&lt;a href=&quot;http://blogs.hbr.org/schwartz/2011/12/how-to-accomplish-more-by-doin.html?utm_source=twitterfeed&amp;amp;utm_medium=twitter#.TurrfcgelO4.wordpress&quot;&gt;How to Accomplish More by Doing Less - Tony Schwartz - Harvard Business Review&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/4426329442177946653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2011/12/how-to-accomplish-more-by-doing-less.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/4426329442177946653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/4426329442177946653'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2011/12/how-to-accomplish-more-by-doing-less.html' title='How to Accomplish More by Doing Less - Tony Schwartz - Harvard Business&#xa;Review'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-2742053368706227301</id><published>2011-12-16T16:35:00.000+05:30</published><updated>2011-12-31T21:34:45.090+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="interative shells"/><category scheme="http://www.blogger.com/atom/ns#" term="pinguy os"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Enable AutoComplete commands in Pinguy OS 11.04</title><content type='html'>To enable bash completion in interactive shells do following steps:&lt;br/&gt;&lt;code&gt;&lt;br/&gt;$ sudo vi /etc/bash.bashrc&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;uncomment following line in it&lt;br/&gt;&lt;code&gt;&lt;br/&gt;# enable bash completion in interactive shells&lt;br/&gt;if [ -f /etc/bash_completion ]; then&lt;br/&gt;. /etc/bash_completion&lt;br/&gt;fi&lt;br/&gt;&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;Restart your terminal and its done!!!</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/2742053368706227301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2011/12/enable-autocomplete-commands-in-pinguy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/2742053368706227301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/2742053368706227301'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2011/12/enable-autocomplete-commands-in-pinguy.html' title='Enable AutoComplete commands in Pinguy OS 11.04'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-3183172581872475958</id><published>2011-12-16T16:22:00.000+05:30</published><updated>2011-12-31T10:30:57.699+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="GPG Error"/><category scheme="http://www.blogger.com/atom/ns#" term="Synaptic Manager"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Fix GPG error:....NO_PUBKEY</title><content type='html'>In Ubuntu, when we try to update the system we sometimes get error for GPG No_PUBKEY as follows:&lt;br/&gt;&lt;code&gt;&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;&lt;code&gt;W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: &lt;a href=&quot;http://ppa.launchpad.net/&quot; rel=&quot;nofollow&quot;&gt;http://ppa.launchpad.net&lt;/a&gt; lucid Release: The following signatures couldn&#39;t be verified because the public key is not available: NO_PUBKEY C1622487AAA521A8&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;This does no harm as its not a security issue but its very annoying everytime getting the same error. It happens because you don&#39;t have a suitable public key for a repository. Follow this steps to get rid of the error:&lt;br/&gt;&lt;code&gt;&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;&lt;code&gt;gpg --keyserver keyserver.ubuntu.com --recv 9BDB3D89CE49EC21 &lt;/code&gt;&lt;br/&gt;&lt;br/&gt;Which retrieves the key from ubuntu key server and then this:&lt;br/&gt;&lt;code&gt;&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;&lt;code&gt;gpg --export --armor 9BDB3D89CE49EC21 | sudo apt-key add - &lt;/code&gt;&lt;br/&gt;&lt;br/&gt;Which adds the key to apt trusted keys. This will solve you problem.&lt;br/&gt;&lt;br/&gt;The solution can be found &lt;a href=&quot;https://help.ubuntu.com/community/Repositories/Ubuntu#Authentication%20Tab&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; &amp;amp; &lt;a href=&quot;http://cultoffree.wordpress.com/2009/02/03/w-gpg-errorno_pubkey-60d11217247d1cff-wtf/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/3183172581872475958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2011/12/fix-gpg-errornopubkey.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/3183172581872475958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/3183172581872475958'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2011/12/fix-gpg-errornopubkey.html' title='Fix GPG error:....NO_PUBKEY'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-6164662615412100858</id><published>2011-12-14T16:51:00.000+05:30</published><updated>2011-12-14T16:52:40.309+05:30</updated><title type='text'>Sun Certified Java Programmer 310-065 - Mr.Bool Courses</title><content type='html'>&lt;a href=&quot;http://mrbool.com/course/Sun-Certified-Java-Programmer-310-065/226&quot;&gt;Sun Certified Java Programmer 310-065 - Mr.Bool Courses&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/6164662615412100858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2011/12/sun-certified-java-programmer-310-065.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/6164662615412100858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/6164662615412100858'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2011/12/sun-certified-java-programmer-310-065.html' title='Sun Certified Java Programmer 310-065 - Mr.Bool Courses'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-7999564981658722157</id><published>2011-12-13T23:57:00.000+05:30</published><updated>2011-12-13T23:59:42.909+05:30</updated><title type='text'>Real Java Geeks</title><content type='html'>&lt;iframe width=&quot;480&quot; height=&quot;270&quot; src=&quot;http://www.youtube.com/embed/BNJIjgFhpUA?fs=1&quot; frameborder=&quot;0&quot; allowFullScreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;br/&gt;
Code hard! And get out of your cubicles!

Video created for the Community Keynote at JavaOne Brasil.</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/7999564981658722157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2011/12/real-java-geeks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/7999564981658722157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/7999564981658722157'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2011/12/real-java-geeks.html' title='Real Java Geeks'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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://img.youtube.com/vi/BNJIjgFhpUA/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8035129377668289301.post-1059167753467779664</id><published>2011-12-12T22:23:00.001+05:30</published><updated>2011-12-12T22:23:44.489+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="joomla"/><title type='text'>Create intro flash / page in Joomla</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Recently I am doing a website in joomla and I wanted to have an intro page for it. By default, there is no facility for it in joomla by default. Dont worry. Create an index.html file and put in the root directory. It will first take up that html file and you have successfully created an intro page. On this intro page provide a link to index.php file and you just entered into your joomla site. 

What if your hosting takes index.php as default? Then create .htaccess file and add following line in it:
&lt;pre name=&quot;code&quot; class=&quot;bash&quot;&gt;
       DirectoryIndex index.html index.php
&lt;/pre&gt;

This tells apache to load index.html as default page. replace index.html with your intro filename.

Another option is to install joomla inside sub-directory and put intro file outside joomla directory and point index.php inside that sub directory.
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/1059167753467779664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2011/12/create-intro-flash-page-in-joomla.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/1059167753467779664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/1059167753467779664'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2011/12/create-intro-flash-page-in-joomla.html' title='Create intro flash / page in Joomla'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-268537300818415138</id><published>2011-12-12T17:41:00.000+05:30</published><updated>2011-12-12T17:49:43.786+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache2"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Reset Apache2 on Ubuntu</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Recently I was experimenting on apache2 and edited many config files. Soon I realised that PHP was not working properly on it. While installing joomla it was failing. So I removed apache2 using command:
&lt;br /&gt;
&lt;pre name=&quot;code&quot; class=&quot;bash&quot;&gt;     sudo apt-get purge apache2&amp;nbsp;&lt;/pre&gt;
The problem was I didnt removed apache2 completely. Then I quicked googled and find out the correct way of getting it working back use following snippet.
&lt;pre name=&quot;code&quot; class=&quot;bash&quot;&gt;
APACHE_PKGS=`sudo dpkg --get-selections | grep apache | cut -f 1`
# Make sure things are sane:
echo $APACHE_PKGS
# Example output: apache2 apache2-mpm-prefork apache2-utils apache2.2-common \
# libapache2-mod-php5 libapache2-mod-python libapache2-svn
# Likely if you have a Python application:
# libapache2-mod-python libapache2-mod-python-doc libapache2-mod-wsgi
# Or if you roll with the PHP:
# libapache2-mod-php5
sudo apt-get remove --purge $APACHE_PKGS
# You might want to consider not re-installing the whole list;
# instead dump it out, audit, and install what you need:
sudo apt-get install $APACHE_PKGS
&lt;/pre&gt;

After this apache2 got resetted and working as it was freshly installed with all configurations replaced.
&lt;br/&gt;
Reference : http://bit.ly/uBxq7L
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/268537300818415138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2011/12/reset-apache2-on-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/268537300818415138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/268537300818415138'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2011/12/reset-apache2-on-ubuntu.html' title='Reset Apache2 on Ubuntu'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-3103684376298198686</id><published>2011-12-12T16:44:00.001+05:30</published><updated>2011-12-12T17:27:50.398+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="quotes"/><title type='text'>Quote</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&quot;Never take decision when angry and Never make promise when happy.&quot;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/3103684376298198686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2011/12/quote.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/3103684376298198686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/3103684376298198686'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2011/12/quote.html' title='Quote'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-4945206292245043485</id><published>2011-12-10T23:51:00.001+05:30</published><updated>2011-12-11T00:32:40.501+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="data structures"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><title type='text'>Data Structures: Stack</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Data Structures can be defined as arrangement and storage or 
organization of data so that inserting, retrieving and modifying the 
data becomes efficient, faster and easier. There are different kinds of 
data structures available and can be used in our applications according 
to our requirement. Any application we develop is all about manipulating
 the data. So data structures are always required to write any 
application.  Any data structure we consider can be implemented in any 
language of your choice. Hence data structures are independent of 
language. Data Structure consists of two parts:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Data.&lt;/li&gt;
&lt;li&gt;Operations on that data.&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;We all know about the data. What are operations? Any data structure 
will commonly give insert, read, update and delete operations. In 
addition to these operations specific functions can be written for that 
data structure like if we consider List we can have sort() functionality
 in addition to the above functionality.  As Data Structures are 
important of the application development, I have decided to write all 
the data structures that I know on my blog. To start with the simplest 
one Stack.&lt;br /&gt;
STACK:  Stack can be defined as LIFO kind of data structure i.e last 
in first out. I remember an example which my professor gave us. In mess,
 the plates in which we are served food are all kept piled one upon 
another. Stack is same as that pile of plates. The plate which was put 
first on table will be the last to be served and last becomes first to 
be served.  Stack is very restricted data structure. It has only two 
operations push() and pop(). Push is used to put any data into the 
stack. It is equivalent to arranging the plates. Pop is used to retrieve
 the data back from the stack. It is equivalent to serving the food to 
people. Stack can be graphically can be imagined as:&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;http://blockedsiteaccess.com/browse.php?u=Oi8vc2FoaXJ6bS53b3JkcHJlc3MuY29tLzIwMTAvMTAvMDkvZGF0YS1zdHJ1Y3R1cmUtc3RhY2svc3RhY2sxLw%3D%3D&amp;amp;b=5&quot; rel=&quot;attachment wp-att-65&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;aligncenter size-full wp-image-65&quot; src=&quot;http://blockedsiteaccess.com/browse.php?u=Oi8vc2FoaXJ6bS5maWxlcy53b3JkcHJlc3MuY29tLzIwMTAvMTAvc3RhY2sxLnBuZz93PTU5NQ%3D%3D&amp;amp;b=5&quot; title=&quot;stack1&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
In the stack shown above. Element in colour red was first to be 
inserted and element in navy blue was the last element inserted. Now if I
 call push() operation on above stack element with orange colour will be
 inserted above fourth element as shown.&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;http://blockedsiteaccess.com/browse.php?u=Oi8vc2FoaXJ6bS53b3JkcHJlc3MuY29tLzIwMTAvMTAvMDkvZGF0YS1zdHJ1Y3R1cmUtc3RhY2svc3RhY2syLw%3D%3D&amp;amp;b=5&quot; rel=&quot;attachment wp-att-66&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;aligncenter size-full wp-image-66&quot; src=&quot;http://blockedsiteaccess.com/browse.php?u=Oi8vc2FoaXJ6bS5maWxlcy53b3JkcHJlc3MuY29tLzIwMTAvMTAvc3RhY2syLnBuZz93PTU5NQ%3D%3D&amp;amp;b=5&quot; title=&quot;stack2&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Now if i call pop() operation on above stack last inserted element 
i.e. orange element will be removed from the stack getting us back to 
the previous stack.&lt;br /&gt;
Stack is used to manage memory of the program during runtime. When a 
sub-routine is called current state of memory is saved into the stack 
which corresponds to the push operation. when sub-routine execution 
finishes, pop() operation is called to get the previous state of the 
program.&lt;br /&gt;
This brings us to the end of stack data structure. Please write in 
your comments and any queries. In the next post, I ll be explaining 
another data structure Link List. Thank you.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/4945206292245043485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2011/12/data-structures-stack.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/4945206292245043485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/4945206292245043485'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2011/12/data-structures-stack.html' title='Data Structures: Stack'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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-8035129377668289301.post-2971630035746570813</id><published>2010-10-07T13:22:00.000+05:30</published><updated>2010-10-07T13:22:00.110+05:30</updated><title type='text'>You&#39;re a Bad Manager. Embrace It.</title><content type='html'>&lt;a href=&quot;http://feeds.dzone.com/%7Er/javalobby/frontpage/%7E3/BI41Ah-vKD0/youre-bad-manager-embrace-it&quot;&gt;You&#39;re a Bad Manager. Embrace It.&lt;/a&gt;: &quot;You manager developers and you&#39;d like to think you&#39;re a good manager... but look at the evidence. Most, if not all, of your projects are late. Your team often delivers products riddled with bugs. Quite a few never ship at all. How can you be a good manager if you constantly fail? Isn&#39;t getting the job done a big part of being a good manager? Let&#39;s look at this situation.Let&#39;s look at a few of...&lt;img src=&quot;http://feeds.feedburner.com/%7Er/javalobby/frontpage/%7E4/BI41Ah-vKD0&quot; height=&quot;1&quot; width=&quot;1&quot; /&gt;&quot;</content><link rel='replies' type='application/atom+xml' href='http://sahirzm.blogspot.com/feeds/2971630035746570813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sahirzm.blogspot.com/2010/10/youre-bad-manager-embrace-it.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/2971630035746570813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8035129377668289301/posts/default/2971630035746570813'/><link rel='alternate' type='text/html' href='http://sahirzm.blogspot.com/2010/10/youre-bad-manager-embrace-it.html' title='You&#39;re a Bad Manager. Embrace It.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02354360463963945130</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>