Articles on Trending Technologies

Technical articles with clear explanations and examples

What are the requirements to become a Public Relations Officer?

Ridhi Arora
Ridhi Arora
Updated on 30-Jul-2019 506 Views

Public relations officers also known as public relations or communications specialists, facilitate relations between organizations and the public. They may work for corporations, non-profit groups, or government agencies.Requirements To Become A Public Relations OfficerDegree: One does not usually need a very high-level degree. A foundation level degree is acceptable. MBA is a huge add-on, although.Start Low: One may start as a public assistant, and then become Public relations officer.Confidence: A qualification in such professions would be Confidence and self-motivational skills. These do come under the banner of soft skills, which are a necessity in this field.Excellent Communication Skills: If one ...

Read More

How to convert wrongly encoded data to UTF-8 in MySQL?

Samual Sam
Samual Sam
Updated on 30-Jul-2019 3K+ Views

You need to use CONVERT() function along with binary keyword. The syntax is as follows −SELECT CONVERT(binary CONVERT(yourColumnName using latin1) USING UTF8) as anyAliasName FROM yourTableName;To understand the above syntax, let us create a table. The query to create a table is as follows −mysql> create table UtfDemo    -> (    -> Id int NOT NULL AUTO_INCREMENT,    -> Name varchar(15),    -> PRIMARY KEY(Id)    -> ); Query OK, 0 rows affected (0.76 sec)Insert some records in the table using INSERT command. The query is as follows −mysql> insert into UtfDemo(Name) values('Obama’s'); Query OK, 1 row affected (0.28 ...

Read More

How to use FOR LOOP in MySQL Stored Procedure?

Ankith Reddy
Ankith Reddy
Updated on 30-Jul-2019 3K+ Views

The following is the syntax to work with FOR LOOP in MySQL stored procedure −delimiter // CREATE procedure yourProcedureName() wholeblock:BEGIN DECLARE anyVariableName1 INT ; Declare anyVariableName3 int; DECLARE anyVariableName2 VARCHAR(255); SET anyVariableName1 =1 ; SET anyVariableName3 =10; SET anyVariableName2 = ''; loop_label: FORLOOP IF anyVariableName1 > anyVariableName3 THEN LEAVE loop_label; END IF; SET anyVariableName2 = CONCAT(anyVariableName2 ,anyVariableName1 ,', '); SET anyVariableName1 = anyVariableName1 + ...

Read More

8085 program to subtract two 8-bit numbers with or without borrow

Vrundesha Joshi
Vrundesha Joshi
Updated on 30-Jul-2019 2K+ Views

In this program we will see how to subtract two 8-bit numbers using 8085 microprocessor.Problem StatementWrite 8085 Assembly language program to subtract two 8-bit numbers with or without borrow and store the result at locations 8050H and 8051H.DiscussionIn 8085, the SUB instruction is used 2’s complemented method for subtraction. When the first operand is larger, the result will be positive. It will not enable the carry flag after completing the subtraction. When the result is negative, then the result will be in 2’s complemented form and carry flag will be enabled.We are using two numbers at location 8000H and 8001H. ...

Read More

8085 program to swap two 16-bit numbers using Direct addressing mode

Anvi Jain
Anvi Jain
Updated on 30-Jul-2019 1K+ Views

In this program we will see how to swap two 16-bit numbers in direct addressing mode.Problem StatementWrite 8085 Assembly language program to swap two 16-bit number stored at location 8000H – 8001H and 8002H – 8003H using direct addressing mode.DiscussionHere we are swapping the values using XCHG instruction. This instruction swaps the contents of DE and HL pair contents. We are taking the first number into DE register pair, then the second number into HL pair, then by XCHG we are swapping them.InputAddressData......8000CD8001AB800234800312......Flow DiagramProgramAddressHEX CodesMnemonicsCommentsF0002A, 00, 80LHLD 8000HLoad the first number into HLF003EBXCHGExchange DE and HLF0042A, 02, 80LHLD 8002HLoad the ...

Read More

What is AMBUSH Marketing? Why is it known as surprise attack?

Knowledge base
Knowledge base
Updated on 30-Jul-2019 593 Views

Ambush, as the name implies, is a surprise marketing. The term Ambush marketing was coined by Jerry Welsh, a marketing strategist. Ambush marketing is a type of marketing where the marketer associates the product with an event or property and the marketer is not directly or officially related to that event. This is a type of Guerilla marketing.To be more precise, we often happen to watch some advertisements which refer to some events or personalities indirectly without mentioning them officially. Such advertisements have a lot of impact on unknowingly.Grab the OpportunityThis kind of advertising is done by utilizing the opportunities ...

Read More

How to create scrollable TextView on iOS App?

Samual Sam
Samual Sam
Updated on 30-Jul-2019 2K+ Views

To create a scrollable TextView in iOS we can do it in two ways, one by creating it using the storyboard and other by creating another textView programmatically.A text view is scrollable by default if it has text more than the height of textView and the scrollable property is disabled.1.Using storyboardGo to storyboard and from the object library drag a textView to your view.Now in the text view if the text is more than it’s height than it will be scrollable by default, otherwise it will not be scrollable.Give height constraint along with remaining required constraint.Make sure that scrolling enabled ...

Read More

Using single quotes around database and table name isn't working in MySQL?

Chandu yadav
Chandu yadav
Updated on 30-Jul-2019 775 Views

You need to use backticks around table name as well as database name. The syntax is as follows:UPDATE `yourDatabaseName`.`yourTableName` SET yourColumnName1=yourColumnName1+1 WHERE yourColumnName2=’yourValue’;To understand the above syntax, let us create a table. The query to create a table is as follows:mysql> use test; Database changed mysql> create table Add1Demo    -> (    -> Id varchar(10),    -> Value int    -> ); Query OK, 0 rows affected (1.19 sec)Insert some records in the table using insert command. The query is as follows:mysql> insert into Add1Demo values('1', 780); Query OK, 1 row affected (0.17 sec) mysql> insert into Add1Demo values('2', ...

Read More

What is the SQL command to return the field names of a table?

Vrundesha Joshi
Vrundesha Joshi
Updated on 30-Jul-2019 270 Views

To return the field names of a table, you can use desc command. The syntax is as follows −desc yourTableName;Or you can use column_name field from information_schema.columns table. The syntax is as follows −select column_name from information_schema.columns where table_name = ’yourTableName’;To understand both the syntax, let’s say we have a table ‘ExtractCommentDemo1’.Using the first syntax −mysql> desc ExtractCommentDemo1;The following is the output displaying the fields −+----------+--------------+------+-----+---------+-------+ | Field    | Type         | Null | Key | Default | Extra | +----------+--------------+------+-----+---------+-------+ | UserId   | int(11)      | YES  |     | NULL ...

Read More

8085 program to access and exchange the content of Flag register with register B

Jennifer Nicholas
Jennifer Nicholas
Updated on 30-Jul-2019 1K+ Views

In this program we will see how to exchange the content of Flat register with register B.Problem StatementWrite 8085 Assembly language program to swap the content of flag register and the register B.DiscussionAs we cannot access the flag register content directly, we have to take the help of stack. By using stack, we can push the content of PSW (Accumulator and Flag). Then we can get it back and store into some other registers. Similarly, from other register, we have to push them into stack, then pop it to PSW.Here if we want to exchange the value of B and ...

Read More
Showing 60471–60480 of 61,299 articles
Advertisements