
Search In
If you wish to turn on Bluetooth in android when your app run then use the code written below .This code will ask you to turn on your mobile Bluetooth if the Bluetooth is off.
BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter()
Optimization is the process to finding an alternative with the most cost effective or highest achievable performance with given constraints. Optimization refers to a positive and intrinsically concept of minimization or maximization to achieve the
Welcome to Findnerd.
There are two new functions named random_int and random_bytes which are introduced in PHP7. You can generate the cryptographically secure integers and strings
with these functions. random_int takes two parameters, one is min va
Welcome to FindNerd. Today we are going to discuss the function natsort. There are many sorting function available for different types of sorting like usort,asort etc.
natsort uses natural order algorithm. It is nothing but to sequence element accord
For combine the result of two or more select query we use union in sql query.If you want to use union in yii query you can use the below code
$queryFirst = (new \yii\db\Query())
->select("id, name")
->from('tableA')
->limit(10);
input : Reads a number from user input.You can assign (store) the result of input into a variable.
Example:
age = input("How old are you? ")
print type(age)
print "Your age is", age
print "You have", 65 - age, "years until retirement
In the following article we will go through a solution to a very common requirement of getting count of duplicate rows from SQL server table.
Let us first create a table and add sample data to this table. Col1 in the table is an identity column.
CRE
In my previous blog How to use Limit clause in MySQL Query, there is explanation of LIMIT clause and its use with SELECT statement. This article explains the use of LIMIT with ORDER BY clause to get 'n' number of Highest and Lowest records in MySQL.
Sorting the result using Order By clause:
ORDER BY clause is used to sort the data fetched using select statement either in ascending order or in descending. By default data fetched is sorted in ascending order.
Syntax:
Select columnname(s) from t
Welcome to FindNerd. We are going to discuss the in-build functions reset and each. each works like a loop. It returns the current element and move the pointer forward.
reset moves the pointer to first element. Please have a look.
<?php
$salaryAr
