Ankitha Reddy has Published 75 Articles

How to debug obfuscated JavaScript?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

463 Views

To debug obfuscated JavaScript code, you need to use a JavaScript formatter or beautifier. Go to the following link to beautify JavaScript, In the left section, add your obfuscated JavaScript code and click Beautify as shown below, On clicking, you can see Beautified JavaScript code in the right section.

How can I check how much time MySQL query, without printing it on the console, is taking?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

127 Views

To check this we need to have the profiling information which indicates resource usage for the statements executed during the course of the current session. Profiling information can get by SHOW PROFILE and SHOW PROFILES statement. Before running these statements, the profiling session variable must be set to 1 as ... Read More

What is object slicing in C++ or Java?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

2K+ Views

Object slicing is used to describe the situation when you assign an object of a derived class to an instance of a base class. This causes a loss of methods and member variables for the derived class object. This is termed as information being sliced away. For example, class ... Read More

What is the role of Keyboard Event ctrlKey Property in JavaScript?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

96 Views

The ctrlKey property is used to show whether the CTRL key is pressed or not when key event was triggered. You can try to run the following code to learn how to implement a ctrlKey property in JavaScript − Example Live Demo ... Read More

What happens if the output of MySQL TIMEDIFF() function surpass the range value of TIME field?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

92 Views

As we know that the range of TIME field in MySQL is ‘-838:59:59’ to ‘838:59:59’. Now, if TIMEDIFF() function’s output surpasses this range then MySQL will return either ‘-838:59:59’ or ‘838:59:59’ depends upon the values of the argument. Example mysql> Select TIMEDIFF('2017-09-01 03:05:45', '2017-10-22 03:05:45')AS 'Out of Range TIME ... Read More

How can we count a number of unique values in a column in MySQL table?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

168 Views

By using DISTINCT keyword along with column name as the argument of COUNT() function we can count the number of unique values in a column. The syntax is as follows − SELECT COUNT(DISTINCT Col_name) FROM table_name; Example Suppose we have the following table mysql> Select * from ... Read More

Difference between HashMap and HashTable in Java.

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

20K+ Views

HashMap is non-syncronized and is not thread safe while HashTable is thread safe and is synchronized. HashMap allows one null key and values can be null whereas HashTable doesn't allow null key or value. HashMap is faster than HashTable. HashMap iterator is fail-safe where HashTable iterator is not fail-safe. ... Read More

How can we create user accounts in MySQL database server?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

213 Views

As we know that, MySQL database server is having the user table in MySQL database which is used to store the user accounts so by using MySQL database we can create user accounts in MySQL database server. There must be two things while creating the new user account, one is ... Read More

With JavaScript RegExp search an octal number character.

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

169 Views

To find an octal number character with JavaScript Regular Expression, use the following. Add the octal number here − \xxx You can try to run the following code to find an octal number character. It searches for octal number 123 i.e S − Example Live Demo ... Read More

Why do we use a volatile qualifier in C++?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

347 Views

volatile means two things − The value of the variable may change without any code of yours changing it. Therefore whenever the compiler reads the value of the variable, it may not assume that it is the same as the last time it was read, or that it is ... Read More

Advertisements