
Search In
// C++ program to output the maximum occurring character in a string
#include<bits/stdc++.h>
#define ASCII_SIZE 256
using namespace std;
char getMaxOccuringChar(char* str)
{
int count[ASCII_SIZE] = {0};//create an array to keep characte
Statement interface:
It provides methods to interact with database means using Statement interface we can execute SQL queries.The createStatement() is present in java.sql.Connection interface and it does not take any argument.
To use Statement inte
Hello Reader's if you are learning, optimizing the mysql query then in this blog you will know some new syntax offered by Mysql where you can make your query fast. Lets see the examples as below:-
In the code below, the results selects all
In MVC projects or in any .NET projects when we use the controls which are not of pure HTML type the page rendering or postback gets occurred.
So for this we need to make sure that you use the function that will not get your control
If you want to make loops and special fields in OpenERP use below code -
def get_totals(self, cr, uid, ids):
countries = {}
for sale in self.browse(cr, uid, ids):
country = sale.partner_invoice_id.country
countries.setdefault(country, 0.0)
countr
If you want to get the strength of some wifi , you can use wifi manager class and can get list of available wifis like this
WifiManager manager;
manager = (WifiManager) getSystemService(WIFI_SERVICE);
List<ScanResult> res = manager.g
Here is the example for making a search box with a matched case which shows the searched text with the highlighted matches available. You have to paste your paragraph text in the text-area and enter the searching keyword in input box given below the
Here is a sample code of simple **Barcode Scanner** app.
Barcode scanner library is attached with this project you just have send an startActivityForResult to open Scanner like this.
Intent intent = new Intent(getApplicationContext(),CaptureActiv
Hello Guys this is a video tutorial in which you will be learning about typography. we will be creating a typographic human face with the help of type, transformation and Warp image mode. font used in this tutorial is Impact which is a bold type font
"ASP.net mvc with unit test example"
In this blog we will discuss how to write unit tests for the controllers in our ASP.NET
MVC applications. We will write following three Test cases:
Test for the view returned by a controller action
Test for t
