Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles by seetha
Page 4 of 6
Get the HTTP header for the information of the content attribute in HTML
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 MoreHow to specify that the styles only apply to this element's parent element and that element's child elements in HTML?
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 MoreHow to print a byte array in Java?
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 MoreConvert bytes to a string in java
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 MoreGet all occurrences of the string between any two specific characters in SAP ABAP
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 MoreAssign image source dynamically in XML View in Fiori app in SAP UI5
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 MoreWhile connecting to one MySQL database, how can I see the list of tables of other MySQL database?
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 MoreHow can we get the list of MySQL server-side help categories?
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 MoreUsage of font-family property in CSS
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 MoreWhat are the ways to include style sheet rules in an HTML document
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