Author's posts

CSS trick (CSS RESET BY ERIC MEYER)

CSS RESET This piece of CSS code resets all the browser default styles preventing any browser inconsistencies in your CSS styles. html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, …

Continue reading

Permanent link to this article: https://blog.openshell.in/2011/01/css-trick-css-reset-by-eric-meyer/

CSS trick (Two classes together)

Two classes together Usually attributes are assigned just one class, but this doesn’t mean that that’s all you’re allowed. In reality, you can assign as many classes as you like! For example: <p class=”text side”></p> Using these two classes together (separated by a space, not with a comma) means that the paragraph calls up the …

Continue reading

Permanent link to this article: https://blog.openshell.in/2011/01/css-trick-two-classes-together/

CSS trick ( CSS box model hack alternative)

CSS box model hack alternative The box model hack is used to fix a rendering problem in pre-IE 6 browsers on PC, where by the border and padding are included in the width of an element, as opposed to added on. For example, when specifying the dimensions of a container you might use the following CSS rule: #box { width: …

Continue reading

Permanent link to this article: https://blog.openshell.in/2011/01/css-trick-css-box-model-hack-alternative/

PHP Pagination Script

In this article, attached the script to make it working and easy to edit. This is a flexible and easy to implement PHP pagination script which will help you split large result sets over multiple pages. Click here to download the script Steps to use: include the ps_pagination.php file to your script. Create a ps_pagination …

Continue reading

Permanent link to this article: https://blog.openshell.in/2010/12/php-pagination-script/

Aptitude Question

Eight peoples take positions in clockwise, direction starting from the position of head of the group around a circular table. There are 4 males: Ajay, Nilesh, Gautam and Vishal and 4 females: Komal, Babita, Chaitali and Divyani in the group. The following conditions are to be followed: The head of the group, Vishal has a …

Continue reading

Permanent link to this article: https://blog.openshell.in/2010/12/aptitude-question/

MySQL Subquery Optimization

Never use a subquery inside a WHERE field IN(…)  the SQL query.  It will slow down the process. Slow: SELECT * FORM table1 WHERE field1 IN (SELECT field2 FROM table2 GROUP BY field1) Instead of using a subquery inside an IN(…),  use INNER JOIN query. It will speed up the process, but in IN(…) query …

Continue reading

Permanent link to this article: https://blog.openshell.in/2010/12/mysql-subquery-optimization/

Exception Handling Provided by Struts

Exception Handling Capabilities of Struts Target Audience: J2EE Developers, Web Component Developers What you should know already: MVC Design Pattern, Struts Framework, Struts configuration file Exception handling is very crucial part in Web application development. Throwing an exception is Java’s way of informing the client that something has gone wrong while doing a certain processing …

Continue reading

Permanent link to this article: https://blog.openshell.in/2010/12/exception-handling-provided-by-struts/

Enable .htaccess in Apache2

At first You should define,  mod_rewrite is a part of Apache server that can rewrite requested urls on the fly. To enable in Ubuntu, you just need to write this command in terminal sudo a2enmod rewrite Then edit /etc/apache2/sites-available/default Find the following Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all and change …

Continue reading

Permanent link to this article: https://blog.openshell.in/2010/12/enable-htaccess-in-apache2/

Configure Ruby on Rails with no database

Although Rails is intended for creating database-backed web applications, this example is simple enough that it doesn’t require one. In this case, you need to edit the enviroment.rb configuration file to indicate that your application does not use a database. It is possible to disable loading ActiveRecord by making a simple modification to environment.rb: 1. …

Continue reading

Permanent link to this article: https://blog.openshell.in/2010/12/configure-ruby-on-rails-with-no-database/

Registering XML Schema to IBM DB2 pureXML

Target Audience: DBA, DB Developers What you should know: XML, XML Schema, Understanding of IBM DB2 pureXML DB2 is unrivaled in its ability to manage both relational and XML data, enabling strong runtime performance and high levels of development time and cost savings. By integrating XML data intact into a relational database structure, users can …

Continue reading

Permanent link to this article: https://blog.openshell.in/2010/12/registering-xml-schema-to-ibm-db2-purexml/