We are talking on how to create a tar.Z (nicknamed .taz) file in UNIX-based systems like Linux, because this particular file format could not be easily found, so I tried randomly and learned, leading to this share. This is a normally compressed tar file in Unix-based systems The name of the utility itself is compress[1] [2].
Monday, June 10, 2013
Monday, June 3, 2013
Loose Coupling and High Cohesion in Java
These are the most religiously known or learnt but orthodoxly neglected principles of so-called Object-Oriented-Programming concept.
Labels:
cohesion,
coupling,
high cohesion,
Java,
loose coupling,
OOP
Tuesday, May 7, 2013
What is SQL injection? - Infographic
A lot of SQL queries function behind our everyday use, be it on Facebook, Twitter, Gmail or university result. The information that we enter in the web pages or web apps are taken and put into SQL queries to fetch our resutls. The simplest that anyone understands is their username and password for a specific online service. Okay, good. But what if someone passes some tricky input to those fields in order to mess up the system or just by mistake. If there is strong validation in presentation layer (in the user front-end itself), then user will be notified about the wrong/undesirable input, and what if there's no stringent validation?
Monday, April 15, 2013
resultSet.next() always returns “false”!!
You might be executing some query in your application and even though that you verified all the connection parameters like connection URL to the database, username and password, and the SQL statement that you fired, and that data also resides in the database in proper table and there are absolutely no case-related errors like “Scott” in place of “scott” user, resultSet.next() is always returning false.
Thursday, March 7, 2013
A suggestion on how to write the variable names in Java
Following Java variable naming conventions is a very important practice. First of all, if you are breaking the rules, then you will be punished with "Invalid Character" compilation error. Secondly, if you are not following the conventions, it will make your variable names confusing or unmeaningful or both to yourself and others who will use your code. We don't want our life difficult by even a micro-unit. You too.
For example, see the following two code snippets that show off the difference.
Subscribe to:
Comments (Atom)