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

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

86 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
Updated on 30-Jul-2019 22:30:24

1K+ 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

What are the famous cuisines of Rajasthan?

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

190 Views

There are many famous cuisines that are special in Rajasthan. Food habits of the local people depend on the locally available ingredients and weather conditions of that particular region. Based on the climatic conditions, food that could last for several days and could be eaten without heating was preferred. The scarcity of water and fresh green vegetables have all had their effect on the cooking.Dal baati churmaThis is a very famous dish in Rajasthan and very commonly eaten in that region. Baati is basically a hard bread that is cooked in the areas near Rajasthan. Baati or the bread is ... Read More

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

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

486 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
Updated on 30-Jul-2019 22:30:24

84 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

What are the interesting facts about the Nobel Prize?

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

134 Views

Nobel Prize is the award given to men and women to honor their work in physiology, physics, chemistry, medicine, literature or for work in peace. It started in 1901 by Alfred Nobel. Between the years 1901 and 2016, the Nobel Prizes were awarded 579 times to 910 people or organizations. Few organizations or people were awarded the Nobel Prize more than once, thus making the count to a total of 23 organizations, and 881 individuals.The Nobel Prize is regarded as the most esteemed award given to a person in all the available fields like literature, medicine, physics, chemistry, peace. The ... Read More

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

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

749 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

How to create multiple styles inside a TextView on iOS App?

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

354 Views

To create multiple styles inside a textview we need to use attributed string. The text view in ios has a property attributedText which can be used to style the text inside a text view. We’ll see this with help of an example.First, we’ll create an attributelet attributeOne : [NSAttributedString.Key : Any] = [NSAttributedString.Key(rawValue: NSAttributedString.Key.font.rawValue) : UIFont.systemFont(ofSize: 16.0), NSAttributedString.Key(rawValue: NSAttributedString.Key.foregroundColor.rawValue) : UIColor.blue]Then we’ll create an attributed string with the attribute we createdlet string = NSAttributedString(string: "Text for first Attribute", attributes: attributeOne)Similarly, we’ll create another string with different attribute. Then we’ll initialize the text of textView with the attributed string.Now the whole ... Read More

Differences between Flatten() and Ravel() in Numpy

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

200 Views

There are numerous ways to create a numpy array. Numpy provides two different kinds of ways to convert a ndarray to 1Darray: that is using the flatten() method and the other using the ravel() method.Example#Import required library, numpy import numpy as np #create an array from a list arr = np.array( [ (2, 7, 3, 4), (5, 6, 9, 1)]) #flatten_output print(arr.flatten()) #ravel_output print(arr.ravel())Output[2 7 3 4 5 6 9 1] [2 7 3 4 5 6 9 1]Now above we can see that both functions return the same list, so the question arises, why two methods for the same ... Read More

How to select max of mixed string/int column in MySQL?

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

206 Views

To select max of mixed string/int column, you need to use substring() function. The syntax is as follows:SELECT MAX(CAST(SUBSTRING(yourColumnName, 4, length(yourColumnName)-3) AS UNSIGNED)) AS anyVariableName FROM yourTableName;To understand the above syntax, let us create a table. The query to create a table is as follows:mysql> create table StringIntMixHighestDemo    -> (    -> InvoiceId int NOT NULL AUTO_INCREMENT,    -> InvoiceNumber varchar(20),    -> PRIMARY KEY(InvoiceId)    -> ); Query OK, 0 rows affected (0.65 sec)Now you can insert some records in the table using insert command. The query is as follows:mysql> insert into StringIntMixHighestDemo(InvoiceNumber) values('INV129'); Query OK, 1 row ... Read More

Advertisements