Type Conversion in Javascript

JavaScript has member functions for all objects, such as “valueOf” and “toString”. When you use literal numbers, Booleans, strings, undefined and null are different from the counterparts that you use for objects. This example shows this: There are ways that you can implicitly convert an object into a literal number, boolean or string. You can…

Using Firebug

JavaScript is easy to write but can be difficult to debug effectively due to the limited debugging functionality it provides. One big difficulty is the lack of an effective display of debugging messages. You can overcome these limitations with the help of external debuggers. If you are developing JavaScript code for the Firefox browser, then…

Assertion

Assertion is a technique you can use to debug JavaScript code. You use assertion to ensure that an expression evaluates to true during script execution. This means that if any expression evaluates to false, there is possibly a bug in your code. There is no inbuilt assert function in JavaScript, but it is simple to…

MySQL Tips and Tricks

The most popular open-source database engine in the world, MySQL is a powerful database engine known for its high performance, reliability and ease of use. Many large internet companies use MySQL to power their databases and applications based on the LAMP stack (Linux, Apache, MySQL, PHP/Perl/Python). MySQL is platform-independent and runs on more than 20…

Secure your MySQL Server

It does not matter what data is stored in your database, you want to prevent unauthorized access. If the data is not secure, then anyone with the time and motivation can potentially access it over the internet. Once they are in your database, they can take all your data or delete it if they want….