How to make SMS sent confirmation program in android

If you want to create sms delivery app you can use my below code. In the below code I have used Intent , PandingIntent and Broadcastreceiver. In the below code I have also used Toast function to deliver SMS notification. See the below example it ...

Log cleaning in magento database for site performance

How to Clean log in Magento for database maintenance & site performance ? Log cleaning gives dramatic improvement in site performance. Manage DB through log cleaning decrease DB size which gives better site performance. There are 2 ways t...

Encryption in SQL

For providing security and privacy we need to store data in encrypted form. In SQL this can be done with series of steps: CREATE TABLE dbo.Employees( EmployeeID int primary key, EmployeeName varchar(50) NULL, n...

Split array up into n-groups of m size?

A very good method i found in ruby so just thought to share it with everyone, so i am writing this blog to share and help others. This particular blog is for splitting up of array into many groups. Lets see this as an example below: 1) arr = (...

What are the ways to Boost Up Your Leadership Power?

A President is a leader of a country. A Father is a leader of a family. You are a leader of your self. It is really true that you are the leader. Want proof? Well, who manage/controls your hands? Who manages your feet? Who manage your mouth? Who ...

Binary search in C++

If you want to find the presence of a element in a given sorted range, then you can use the binary_search function defined in the STL algorithm. The range should be sorted in ascending order to perform binary search. It returns true if el...

Use .pluck If You Only Need a Subset of Model Attributes

If you want few attributes from a table, instead of instantiating a collection of models and then running a .map over them to get the data you need, its very much economical to use .pluck to pull only the attributes you need as a array. There...

URL rewritting in PHP with .htaccess

Hello Guys, If you are looking to change your website URLs on SEO friendly mode URL rewriting with .htaccess file is a good practice to do same. Suppose you want to change your website URL like htttp://www.abc.com/prodDetail.php?prodID=15&am...

How to check your description is valid or invalid in openerp

First install the description module and check weather the description in valid or invalid you can do this on basis of the partner name and company name and user signature and also date in description module in openerp. using below fucntion in ....

SQL Tutorial ->Introduction to SQL

Chapter 1 Introduction to SQL Introduction to SQL : SQL stands for Structured Query Language or we can call it as "sequel" or "S-Q-L" . SQL is a query Language used to accessing and modifying information in a database.There are some common ...

How to make Status bar Notification in Android

If you want to create Status bar Notification you can use my below code. Notification are used to alert users on some events that requires their attention. The NotificationManger is service used to manage Notification. In below code i have also u...

How to check company unique or not in openerp

To configure and check weather the company is single or double in openerp you have to write this function in your own module in .py file, def check&_companyuniq(self, cr, uid, ids, context=None): sr_id = self.search(cr,uid,[],cont...

import assemblies in SQL

In SQL Server there are situations when you need to import assemblies to perform a specific task For doing that you need to write the path where assembly is present and provide the permissions to the assembly and associating with the particu...

Features of Android 5.0 version

New major features added in 5.0: Introduced Material design ,new widgets, custom shadows, vector drawables and custom animations. ListView is now replaced by RecyclerView and use of CardView, with better optimization. You can now add more ...

Get n number of highest and lowest records in MySQL

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 MyS...

Create a dynamic view on Odoo-9

If you want to create dynamic view in Odoo-9 me have to move on .xml file and In dynamic view we can manage view from xml.file in Odoo module, for example you can see below code . <record model="ir.ui.view" id="session_tree"> ...

Trick to change text color inside setError method of EditText?

If you want to customized the error message of EditText than you can simply use the code given below. Using below code you can declare your edit text // Declare your edit-text. EditText editText=(EditText)view.findViewById(R.id.editText); ...

Copying Data from one table into another

INSERT INTO SELECT statement: INSERT INTO SELECT statement is used to copy data from existing table into another table. Syntax-1: INSERT INTO tablename2 SELECT * FROM tablename1; Syntax-2 INSERT INTO tablename2 (columnname(s)) ...

Arrays in JavaScript

JavaScript Arrays : Array is a like a container which contains the same type of objects or elements. Arrays has fixed length. We can access the array elements using the index value.The index of the array starts from 0. Example of creating ...

How to load page from the browser history ?

History go() method : The history object has the go() method which is used to load page from the browser history. You can choose specific url or index of the previous or next browsed page. Syntax of the go() method : history.go(number|...

Transaction on braintree

Welcome to FindNerd. Today we are going to discuss the creation of transaction. We use the sale function for transaction creation. You need to pass the amount,customer id, and nonce from client side. Please have a look. $result = Braintree_Tr...

SQL Tutorial -> Sql Syntax

<-- Chapter 1 Introduction to SQL Chapter 2 SQL Syntax SQL Syntax : SQL syntax is basically followed by sql commands which modifies the database tables such as "users" , "students" etc. All the SQL statements always starts with the key...

How to block all incoming calls in android

To block all incomming calls in your android device we have to use a class Broadcast Receiver. Broadcast Receivers simply respond to broadcast events from other applications or from system itself. All the events are notified once the event occure...

How to capture screenshot in Appium ?

There are many times when we run our testcases there might be the possibility that testcases may fail and when the testcase may fail then the screenshot of the screen should be captured. We should use the following code to capture the screenshot:...

How to use json_encode() function in php ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to use json_encode() function in php ? So, Firstly let us know what is the use of json_encode() function ? JSON stands for JavaScript Object Notation. json_encode() is ...

Converting Themeable functoin to templates, Drupal 7

The final option is the creation of individual template files that are dedicated to overriding specific themable functions. This could be very helpful for the designer as PHP developer have done his work and designer now can do this XHTML and...

Token generation in braintree

Welcome to FindNerd. Today we are going to discuss the client token generation on braintree. You can create a unique client tokens for different process. Please have a look. public function getBraintreeClientToken($customer_id = null) { ...

Overriding Theme functions, Drupal 7

Overriding functions Themable functions can be overridden by copying the functions and placing them in the active theme's template.php file though the template file is optional but this is the only file you can use override the function defied...

How to make a download link ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to make a download link ? So we will use HTML anchor download attribute for making a download link.Because The download attribute is used to specifies that the target will...

Overriding the Default Styling, Drupal 7

Overriding the Default Styling Three approaches we can adopt to override templates in Drupal 7 Themes Overriding templates Overriding functions Converting themable functions into new template Theme Registry Plays a vit...

Customer creation on Braintree

Welcome to FindNerd. Today we are going to discuss the customer on braintree. Braintree is a company of paypal which provides different payment tools. You need to integrate the library of braintree with your project. It is available in differen...

What is the use of fgets() in PHP ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss what is the use of fgets in PHP ? Firstly let us know what is fgets() The fgets() function is used to return a line from an open file. syntax of fgets() fgets(file...

How does caching helps and how to use caching in jQuery?

Hello Readers, In jquery when we use the two or more than two same id's as a selector or elements and operate over jquery event than sometimes effect on its performance due to caching. For Example : $("#mydemo").css("color", "red"); //...

To find duplicate records in SQL

In SQL if we dont have used primary keys then our id gets repeated accidentally or unintentionally. In this case we need to find out how many records are same. We need to find out the same tuples or rows from a table. For doing that...

jquery function after() and before()

Hello Readers, We can use .after() and .before() methods for different tasks. If we want to add any other HTML tag or content after or before define HTML tag, then we can use these jquery methods for the same tasks. Example: meth...

How to set different menu for different page in wordpress

We can set different menu links for every page in wordpress. Sometimes we get the requirements from the client to have different menu links for every pages. It can be done, Its quite coding part. For each pages we have to set different menus from...

How to clear field in Appium ?

There are many times that we have some fields that were prefilled and we have to pass some value in the field. So, we first have to clear the textbox and then click the pass the desired text in the field. Suppose we have to check the login funct...

How to use Limit clause in MySQL Query

This tutorial explains how to use limit clause within MySQL query to fetch records. The MySQL LIMIT clause is used to limit the number of records returned from MySQL query by using value passed with LIMIT clause. Limit clause is used with the SEL...

How to redirect 404 error page to custom 404 page

When a visitor visits any wrong URL in the site , they see 404 not found error comes from server side by default. We can redirect the visitor from any invalid URL to any of the custom page or any page we want. For the most of the sites , we see t...

Bound Services - Xamarin

Hello all, In this blog we will discuss about Bound service in Xamarin.Android. A Bound service at its core is just a service like a started service and a Bound service allows you to get a reference to that service which is within your acti...

How to disable Updates in WordPress ?

The simplest way to disable word-press updates by installing and activating Disable Updates Manager plugin from the given below link. [https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/][1] WordPress updates disable by Manua...

Making different colored type alert box with less

For example Lets create an alert box, so for this we define the base styles; some padding , a border and background. To start with it, we have to set out the list of colors and name variations of the alert box. Then count the number of variati...

Relationship between Activity lifecycle and asynctask

An Asynctask doesn't depend on Activity life-cycle that contains it. Like if we start an AsyncTask inside an Activity and then we rotates the device, the Activity will be destroyed at that point but the AsyncTask will remain same or not die until...

What is Cookie ?

What is Cookie ? Normally cookie is known as a little fragment of the information which is dispatched by the web server to save on a web browser, after that it can be interpreted by the browser. Therefore browser reminds few particular indivi...

Check for target activity available or not

We know that implicit intents are used to perform an action that your application can't but others can do. Like to send some sms we uses this intent : Intent intent = new Intent(); intent.setAction(Intent.ACTION_SEND); intent.putExtra(In...

Change time zone in CodeIgniter

Some time developer wants to change the timezone in codeigniter application. There is may way to change the timezone in codeigniter. Here I am explaining you the best way to change the timezone in codeigniter, which is- First open the index.ph...

Add CSS in html tag using jQuery

Hello Readers, Probably, we need to add css property in HTML tag using jQuery. Here I am describing different kinds of syntax to adding style property using jQuery 1.) If you want to add single css property using jquery, then you...

What is phpScaffold

phpScaffold Scaffold is a powerful standalone PHP class that dynamically creates CRUD functionality for a database table. It is designed to dramatically decrease the time it takes to get your database-driven application up and running. phpSc...

Difference between =, == and === in PHP

In PHP programming, Many times we have seen and used different operators of PHP. This article demonstrate the difference between the operators which looks identical but used for different operations. In PHP we have three types of equal sign (=) o...

How to create log file in PHP

If you want to debug a large amount of data. You need to create a Log file with the following piece of code. $file = fopen ( "testfile.txt" , "a+" ); fwrite ( $file , serialize ( print_r ( $_POST , true ) ) ); fopen(): It is inbuilt func...
1 168 292