Ankith Reddy has Published 996 Articles

HTML DOM Anchor download Property

Ankith Reddy

Ankith Reddy

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

139 Views

The HTML DOM download property is used to set or return the value of the download attribute of a link.Following is the syntax to set the download property −anchorObject.download = fileAbove, file represents the file name you can set for the file to be downloaded. The actual extension will get ... Read More

8086 program to generate AP series of n numbers

Ankith Reddy

Ankith Reddy

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

736 Views

In this program we will see how to find AP series using 8086.Problem StatementWrite 8086 Assembly language program to find AP series. The limit of the series is stored at 500, First term is stored at 501, and the common difference is stored at 502.DiscussionAP generation is simple task. We ... Read More

8085 program to sum of two 8 bit numbers without carry

Ankith Reddy

Ankith Reddy

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

2K+ Views

Here we will see how to add two 8-bit numbers without carry in 8085.Problem StatementWrite 8085 Assembly language program to perform 8-bit addition without carry. The numbers are stored at F100, and F101. Result will be stored at F102.DiscussionIn 8085, there is ADD instruction to add two numbers. We will ... Read More

Disable auto resizing to make the JTable horizontal scrollable in Java

Ankith Reddy

Ankith Reddy

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

812 Views

To disable auto resizing, you need to use the setAutoResizeMode() method. After that, set the table to AUTO_RESIZE_OFF.Let’s say the following is our table −String[][] rec = {    { "1", "Virat", "840" },    { "2", "David", "835" },    { "3", "Shikhar", "656" },    { "4", "Steve", ... Read More

HTML DOM Object type Property

Ankith Reddy

Ankith Reddy

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

175 Views

The HTML DOM Object type Property is used to set or return the value of the type attribute of an object. However, the type attribute is used to set the media type like the object.Following is the syntax to set the type property −obj.type = type_of_mediaAbove, type_of_media is the standard ... Read More

How to generate 6-digit random number in MySQL?

Ankith Reddy

Ankith Reddy

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

2K+ Views

You can use LPAD() along with rand() and floor() to generate 6-digit random number. Let us first create a table −mysql> create table DemoTable    (    Value int    ); Query OK, 0 rows affected (0.64 sec)Insert records in the table using insert command −mysql> insert into DemoTable values(1); ... Read More

8086 program to reverse 16 bit number using 8 bit operation

Ankith Reddy

Ankith Reddy

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

1K+ Views

In this program we will see how to reverse a 16-bit number using 8-bit operation.Problem StatementWrite 8086 Assembly language program to reverse a 16-bit number which is stored at location 2000 and 2001, using 8-bit operations.Discussion8086 has 8-bit operation for rotation. For 16-bit number, we are taking the bytes from ... Read More

8085 program to find bit differences between two binary patterns.

Ankith Reddy

Ankith Reddy

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

211 Views

Here we will see how to find the bit differences of two binary patterns using 8085.Problem StatementTwo binary patterns are stored in locations 8030H and 8031H. Load them in registers A and B. Find out the bit positions where bits are differing and put these location numbers at locations starting ... Read More

Order By date ASC in MySQL?

Ankith Reddy

Ankith Reddy

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

356 Views

You can use STR_TO_DATE() function. Let us first create a table −mysql> create table DemoTable    (    AdmissionDate varchar(200)    ); Query OK, 0 rows affected (1.19 sec)Insert records in the table using insert command −mysql> insert into DemoTable values('12-01-2019'); Query OK, 1 row affected (0.14 sec) mysql> insert ... Read More

How to disable only the horizontal scrollbar in Java?

Ankith Reddy

Ankith Reddy

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

1K+ Views

To disable only the horizontal scrollbar in Java, use the JScrollPane.HORIZONTAL_SCROLLBAR_NEVER. Let’s say you created a Box with some button components. Now, create a JScrollPane −JScrollPane scrollPane = new JScrollPane();Set the Viewport view as Box −scrollPane.setViewportView(box);Now, disable the horizontal scrollbar −scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);The following is an example to disable only the horizontal ... Read More

Advertisements