Jennifer Nicholas has Published 332 Articles

How to get the datatype of a column of a table using JDBC?

Jennifer Nicholas

Jennifer Nicholas

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

3K+ Views

You can get the datatype of a column of a table using the getColumnType() method of the ResultSetMetaData class.//Retrieving the ResultSetMetaData object ResultSetMetaData rsmd = rs.getMetaData(); //getting the column type String column_name = rsmd.getColumnTypeName(2);Assume we have a table named employee_data in the database with the description as shown below:+----------+--------------+------+-----+---------+-------+ ... Read More

How to get the number of columns of a table using JDBC?

Jennifer Nicholas

Jennifer Nicholas

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

618 Views

You can get the number of columns of a table using the getColumnCount() method of the ResultSetMetaData class.//Retrieving the ResultSetMetaData object ResultSetMetaData rsmd = rs.getMetaData(); //getting the column type int column_count = rsmd.getColumnCount();Assume we have a table named employee_data in the database with description as shown below:+----------+--------------+------+-----+---------+-------+ | Field ... Read More

Command Line Interface Programming in Python?

Jennifer Nicholas

Jennifer Nicholas

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

547 Views

In this section we are going to develop a command line interface using python. But before we deep dive into program, lets first understand command line.Command line are in use since the existence of computer programs and are built on commands. A command line program is a program that runs ... Read More

How to allow to go next internal pages in android webview?

Jennifer Nicholas

Jennifer Nicholas

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

375 Views

This example demonstrates How to allow to go next internal pages in android webview.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. ... Read More

How to get beginning of the first day of this week from timestamp in Android sqlite?

Jennifer Nicholas

Jennifer Nicholas

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

150 Views

Before getting into an example, we should know what SQLite database in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to ... Read More

Junk File Organizer in Python?

Jennifer Nicholas

Jennifer Nicholas

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

399 Views

This might seem very useful for a lazy python programmer who keeps most of the files and folders at one location and sometimes at confused what all files are there and surely he is too lazy to do it manually. So below is a python program to organize or simplify ... Read More

Linear Regression using Python?

Jennifer Nicholas

Jennifer Nicholas

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

540 Views

Linear regression is one of the simplest standard tool in machine learning to indicate if there is a positive or negative relationship between two variables.Linear regression is one of the few good tools for quick predictive analysis. In this section we are going to use python pandas package to load ... Read More

Image processing in Python?

Jennifer Nicholas

Jennifer Nicholas

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

11K+ Views

Python provides lots of libraries for image processing, including −OpenCV − Image processing library mainly focused on real-time computer vision with application in wide-range of areas like 2D and 3D feature toolkits, facial & gesture recognition, Human-computer interaction, Mobile robotics, Object identification and others.Numpy and Scipy libraries − For image ... Read More

lldiv() function in C++ STL

Jennifer Nicholas

Jennifer Nicholas

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

82 Views

lldiv() function in C++ STL gives the result of quotient and remainder of the division of the two numbers.AlgorithmBegin Take two long type numbers as input. Call function lldiv(). Print the quotient and remainder. End.Example Code#include #include using namespace ... Read More

How to enable webview mixed content in android?

Jennifer Nicholas

Jennifer Nicholas

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

547 Views

This example demonstrated How to enable webview mixed content in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. In ... Read More

Advertisements