seetha

seetha

54 Articles Published

Articles by seetha

Page 4 of 6

Get the HTTP header for the information of the content attribute in HTML

seetha
seetha
Updated on 03-Mar-2020 338 Views

Use the http-equiv attribute to get the HTTP header for the information of the content attribute in HTML.ExampleYou can try to run the following code to implement http-equiv attribute −           HTML http-equiv attribute                                 Document content goes here    

Read More

How to specify that the styles only apply to this element's parent element and that element's child elements in HTML?

seetha
seetha
Updated on 03-Mar-2020 299 Views

Use the scoped attribute to specify that the styles only apply to the parent element and the element’s child elements −Example                    h2 {             color:yellow;          }                                           h2 {                color:grey;             }                    Grey Heading             Yellow Heading    

Read More

How to print a byte array in Java?

seetha
seetha
Updated on 24-Feb-2020 18K+ Views

You can simply iterate the byte array and print the byte using System.out.println() method.Examplepublic class Tester {    public static void main(String[] args) {       byte[] a = { 1,2,3};       for(int i=0; i< a.length ; i++) {          System.out.print(a[i] +" ");       }    } }Output1 2 3

Read More

Convert bytes to a string in java

seetha
seetha
Updated on 24-Feb-2020 652 Views

Use String(byte[]) constructor to convert byte[] to String.Examplepublic class Tester {    public static void main(String[] args) {       String test = "I love learning Java";       byte[] bytes = test.getBytes();       String converted = new String(bytes);       System.out.println(converted);    } }OutputI love learning Java

Read More

Get all occurrences of the string between any two specific characters in SAP ABAP

seetha
seetha
Updated on 13-Feb-2020 2K+ Views

I usually use REGEX in all such cases as it is faster and easily readable and would recommend the same to you.You can use something similar as the snippet to get your job done.DATA: lv_para TYPE string. lv_para = ' You &are like& kite &flying& in a &hurricane&'. REPLACE ALL OCCURRENCES OF REGEX '&[^&]+&' IN lv_para WITH ''. WRITE lv_para.Let me explain the regex for you. It should match the first ‘&’, then you can have any combination with multiple occurrences of ‘&’ and the last occurrence of ‘&’ must be matched.

Read More

Assign image source dynamically in XML View in Fiori app in SAP UI5

seetha
seetha
Updated on 13-Feb-2020 1K+ Views

Yes, it can be done but you need to compute the dynamic field.Firstly, you need to mention that the binding is complex so change the flag −“data-sap-ui-bindingSyntax="complex" ”. Then have a helper function which can be used for formatting.fnImageFmtr: function(value) {    var imgSrc = "Image" + value;    return imgSrc; }And lastly, use the function in the image tag in the XML view.

Read More

While connecting to one MySQL database, how can I see the list of tables of other MySQL database?

seetha
seetha
Updated on 13-Feb-2020 219 Views

With the help of SHOW TABLES From Database_name query, we can see the tables of another database. Here Database_name is the name of the database which we are not using currently. Consider the following example in which we run the query for getting the list of tables in database name ‘tutorial’.mysql> show tables from tutorial; +--------------------+ | Tables_in_tutorial | +--------------------+ | employee           | | showzerofill       | | student            | +--------------------+ 3 rows in set (0.00 sec)

Read More

How can we get the list of MySQL server-side help categories?

seetha
seetha
Updated on 11-Feb-2020 154 Views

We can get the list of MySQL server-side help categories by giving the keyword contents to the help command.mysql> help contents You asked for help about help category: "Contents" For more information, type 'help ', where is one of the following categories:    Account Management    Administration    Compound Statements    Data Definition    Data Manipulation    Data Types    Functions    Functions and Modifiers for Use with GROUP BY    Geographic Features    Help Metadata    Language Structure    Plugins    Procedures    Storage Engines    Table Maintenance    Transactions    User-Defined Functions    Utility

Read More

Usage of font-family property in CSS

seetha
seetha
Updated on 30-Jan-2020 202 Views

The font-family property is used to change the face of a font. Possible value could be any font family name.                            This text is rendered in either georgia, garamond, or the default serif font          depending on which font you have at your system.          

Read More

What are the ways to include style sheet rules in an HTML document

seetha
seetha
Updated on 30-Jan-2020 595 Views

To include stylesheet rules, use the element or style attribute or even external stylesheet using .The element can be used to include an external style sheet file in your HTML document.An external style sheet is a separate text file with .css extension. You define all the Style rules within this text file and then you can include this file in any HTML document using element.Here is the syntax of including external CSS file:     The following are the attributes of a element:AttributeValueDescriptionTypetext/cssSpecifies the style sheet language as a content-type (MIME type). This attribute is required.HrefURLSpecifies ...

Read More
Showing 31–40 of 54 articles
Advertisements