Author's posts
Permanent link to this article: https://blog.openshell.in/2010/12/slideshow-using-jquery/
Dec 02
CPU Power States
The CPU power states C0–C3 are defined as follows: C0 is the operating state. C1 (often known as Halt) is a state where the processor is not executing instructions, but can return to an executing state essentially instantaneously. All ACPI-conformant processors must support this power state. Some processors, such as the Pentium 4, also support …
Permanent link to this article: https://blog.openshell.in/2010/12/cpu-power-states/
Dec 02
Escape String Literals for SQL
To run a SQL query with text data containing single quotes ‘ as well as other SQL reserved punctuations, and to prevent SQL injections, you will always want to escape the text values before using them in a SQL query. mysql_real_escape_string() calls MySQL’s library function mysql_real_escape_string, which prepends backslashes to the following characters: x00, n, …
Permanent link to this article: https://blog.openshell.in/2010/12/escape-string-literals-for-sql/
Dec 01
Linux gzip and gunzip commands
gzip: gzip compresses files in linux and unix. If given a file as an argument, gzip compresses the file, adds a “.gz” suffix, and deletes the original file. With no arguments, gzip compresses the standard input and writes the compressed file to standard output( use “>” to redirect to a file). Examples:Compress the file named …
Permanent link to this article: https://blog.openshell.in/2010/12/linux-gzip-and-gunzip-commands/
Dec 01
Passing Parameters to Crystal Report in .Net
Now we are going to see, how we can show report by passing parameters or values. For example, Let us see how to retrieve details of an employee by means of Empid. First Step Create a table like the below structure. Eg: Column name Datatype Name varchar(50) Empid varchar(20) Gender char(10) Designation varchar(30) Second Step …
Permanent link to this article: https://blog.openshell.in/2010/12/passing-parameters-to-crystal-report-in-net/
Dec 01
Java Design Pattern
Design Patterns are recurring solutions to design problems. The 23 design patterns included in Design Patterns all had several known applications and were on a middle level of generality, where they could easily cross application areas and encompass several objects. These patterns are divided into 3 types. Creational Patterns: create objects for you, rather than …
Permanent link to this article: https://blog.openshell.in/2010/12/java-design-pattern/
Dec 01
Who Uses XML?
Introduction XML (eXtensible Markup Language) is self-describing. XML tags act as metadata, describing each element. The main purpose is for information exchange between organizations, applications, services, processes, etc. Who Uses XML? Financial FIXML Financial Information eXchange Protocol http://www.fixprotocol.org FPML Financial Product ML http://www.fpml.org FUNDSML Funds Markup Language http://www.funds-xml.org XBRL eXtensible Business Markup Language http://www.xbrl.org Publication …
Permanent link to this article: https://blog.openshell.in/2010/12/who-uses-xml/
Dec 01
Aptitude question for maths
Six bells commence tolling together and toll at intervals 2,4,6,8,10 and 12 seconds respectively. In 30 minutes how many times they toll together. a) 4 b) 10 c) 15 d) 16 Solution: L.C.M. of 2,4,6,8,10,12 = 120 So they toll together after every 120 seconds i.e. 2 minutes. So in 30 minutes they toll together …
Permanent link to this article: https://blog.openshell.in/2010/12/aptitude-question-for-maths/
Dec 01
Quoting HTML attribute values
The values of attributes can contain text, hexadecimal color codes or numbers. In case of JavaScript event handlers, the values consist of small JavaScript code. A sincere advice for good and clean HTML coding is to always put quotes around attribute values. It is a good habit, will save you many headaches and avoid errors …
Permanent link to this article: https://blog.openshell.in/2010/12/quoting-html-attribute-values/
Dec 01
HTML mailto attribute
The HTML mailto is a quick way to add the facility of receiving feedback from visitor on the web site. when the visitor clicked the HTML mailto, It lanuches their email program with new email window. Note: HTML mailto assumes that the visitor has configured an email client (Outlook Express, Netscape Messenger, Thunderbird or any …
Permanent link to this article: https://blog.openshell.in/2010/12/html-mailto-attribute/