Vrundesha Joshi has Published 289 Articles

Count registers of 8257

Vrundesha Joshi

Vrundesha Joshi

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

638 Views

We have four Counters, ranging from CR3-0, which consists of 16 bits each. At the time when the CR becomes access to the processor which is 16-bits wide, the Least Significant and the Most Significant Byte of the register are accessed in an alternate manner, which starts with the Least ... Read More

8085 Program to compute LCM

Vrundesha Joshi

Vrundesha Joshi

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

3K+ Views

Now let us see a program of Intel 8085 Microprocessor. This program will find the LCM of two8-bit numbers.Problem StatementWrite 8085 Assembly language program to find LCM of two 8-bit numbers stored at location8000H and 8001HDiscussionIn this program we are reading the data from 8000H and 8001H. By loading the ... Read More

Intel 8253 Programmable Interval Timer

Vrundesha Joshi

Vrundesha Joshi

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

598 Views

Many situations may arise, where a microcomputer system requires accurate time delays. For example, when we implement a real time clock, the time needs to get updated at least for once in every second.We generate accurate time delays by using a few instructions in a loop.It is completely software based, ... Read More

How to count distinct values in MySQL?

Vrundesha Joshi

Vrundesha Joshi

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

8K+ Views

To count distinct values, you can use distinct in aggregate function count().The syntax is as follows −select count(distinct yourColumnName) as anyVariableName from yourTableName;To understand the above concept, let us create a table. The following is the query to create a table −mysql> create table DistinctDemo −> ( ... Read More

Email & Phone Validation in Swift

Vrundesha Joshi

Vrundesha Joshi

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

1K+ Views

To validate email and phone in swift language we can use multiple conditional statements like if conditions, but that’s a long process and may contain 50-100s of if statements to validate email.So instead of conditionals we’ll use Regular expression. Swift provides NSPredicates which we can use to evaluate a regular ... Read More

MySQL Select Date Equal to Today and return results for the same date?

Vrundesha Joshi

Vrundesha Joshi

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

839 Views

To get today’s date, use in-built function CURDATE(). The CURDATE() gives only current date not time. With that, to get the records for the same day, you can try the following syntax −select yourColumnName1, yourColumnName2, ......, yourColumnNameN, DATE_FORMAT(yourDateColumnName, '%Y-%m-%d') from yourTableName WHERE DATE(yourDateColumnName) = CURDATE();To understand the above concept, let ... Read More

How to get the creation date of a MySQL table?

Vrundesha Joshi

Vrundesha Joshi

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

10K+ Views

To get the creation date of a MySQL table, use create_time from information_schema.tables. The syntax is as follows −SELECT create_time FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = 'yourDatabaseName' AND table_name = 'yourTableName';My table name is 'skiplasttenrecords' and database is ‘test’.Implement the above syntax for your database and table name. The query is ... Read More

How to rearrange MySQL columns?

Vrundesha Joshi

Vrundesha Joshi

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

628 Views

To rearrange the MySQL columns, check the column arrangement with the help of show create command. The syntax is as follows −show create table yourTableName;The syntax to rearrange the MySQL columns is as follows −alter table yourTableName change column yourColumnName yourColumnName dataType firstFor the same purpose, you can use the ... Read More

MySQL query to extract last word from a field?

Vrundesha Joshi

Vrundesha Joshi

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

3K+ Views

To extract last word from a field, use in-built SUBSTRING_INDEX() function. The syntax is as follows −SELECT SUBSTRING_INDEX(yourColumnName, ’ ‘, -1) as anyVariableName from yourTableName;To understand the above concept, let us create a table. The following is the query to create a table −mysql> create table FirstWordDemo ... Read More

What is embedded bitcode and what does ENABLE_BITCODE do in xcode?

Vrundesha Joshi

Vrundesha Joshi

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

393 Views

Bitcode – Bitcode is an intermediate reperesentation of how the code looks. This code can not be used by us or can’t be installed on a device. When we upload our application to the app store It is uploaded as an bitcode and later converted to app binary by itunes/Apple.When the ... Read More

Advertisements