Hello Reader's!
If you want to send email some other than php mail then php mailer is the best option. PHPMailer provides an object oriented interface, but in case of php mail() is not object oriented. Let's see how to integarte php mailer funct...
In cakephp we load component by using code
public $components = array('Custom');
but we might not need this in all actions so we can load this component on fly under actions for example
public function test(){
$this->Customr = ...
Hello Readers,
Usually, we use the jQuery in our web project as per the requirement. We start the jQuery syntax as $(document).ready() OR $(window).load() function.
Here I will describe the difference between $(document).ready() and $(w...
Cakephp provides simple way to send email. The templates for emails resides in a view directory folder called emails. Email views can also use layouts.
$Email = new CakeEmail();
$Email->template('myemail', 'mylayout')
->emailFormat...
If you are developing web-service, your web-service should be at-least WS-I Compliance to work correctly on other system like SAP, Dynamics etc. You can Check your WSDL for WS-I compliance using the SoapUI WS-I compliance test.
You need to do ...
Appium also provides to remove any application from the device programmatically by just passing the the package name of the application.
Suppose that we have test many applications on the same mobile device and the capacity of the device is not...
First create configuration file name as email.php inside app/config/email.php and setup different config options here.
public $default = array(
'transport' => 'Mail',
'from' => array('fromname@email.com' => 'kshitiz dixit'...
There are many times we have to reset application at some point. Lets take the example of browser in the mobile device. Suppose that we are navigating in the application and at some point on clicking the link it should opened in the browser and i...
Hi Friends,
Today I am going to explain the, how we can delete past search and web activity data, If you want know How to save Past search and browsing activity in Google you can visit my previous blog post.
Today Inte...
JavaScript String valueOf() method : The valueOf() method is used to cast the string object to the primitive value. It doesn't change the original string.
Syntax of the valueOf() method :
string.valueOf()
Example of valueOf() metho...
There are many times there is a need to install the application programmatically in our testcase. The first thing that we should do before installing the application is to check that whether the desired application is installed in the device or n...
Global Theme Configuration
I am asuming this is the fresh installaiton of drupal.
From the menu bar click on Appearance you would see that Bartik is selected as the default frontend and seven is the Administrative theme,
Where to change...
JavaScript String trim() method : The trim() method is used to trim the unwanted extra space from both sides (left and right). It returns the new string without having the white-space on both sides. It doesn't change the original string.
Synta...
JavaScript String toString() method : The toString() method to return the string object, means we can simply say that it is used to casting the primitive object to the.
Syntax of toString() method :
string.toString()
Example of toS...
Hello Readers,
Usually, we need to crop the audio file. FFmpeg is useful command tool or the same task.
To crop part of given an audio file, you can can be utilized the following command to crop the audio file:
ffmpeg -ss 00:...
To get the current page url please check the below php script.
In the below script we define a function named as currentPageURL( ). Then we have created a variable named as $PageURL having value http. Now we are using the PHP superglobal varri...
Default socket timeout in SoapUI is set to 60000 milliseconds i.e. 1 minute. You can change the value if you are facing "Connection timed out:" error. This error could be due to heavy processing in web service, or resources being busy.
Soc...
Identity field is typically used as a primary key in database. When a new record is inserted into a table, this field automatically assigns an incremented value to this column.However, inserting our own value into this column is not straightforwa...
Hello users, today I teach you How to Overwrite Additional Image Sizes of parent in child theme Wordpress.
Below code is the Parent theme for image cropping.
add-action( 'after-setup-theme', 'setup' );
function setup()
{
add-image-...
Bundle Id is basically the package name of the android application and it the unique identifier for all the android applications. Bundle id should always be unique ie the two application should not have same bundle id and if the bundle id is same...
If requirement is to show the error in SoapFault from Webservice, you can use below code. Just pass the faultMessage to the method and it will return the SoapFault:
/**
* Soap Fault return in case of error
* @ chandan Dec 17, ...
We can insert the json data in to mySQL using php .please see the below example for processing json data to mySQL.
Example : -
Suppose we have a file having json data like below -
{"FirstName":"ravi", "LastName":"srivastva"}
...
Hello Everyone, I am here to discuss about "Remove Parent theme Shortcodes in Child theme Wordpress".
You can just copied mine code and put into child theme functions.php file
function remove-parent-theme-shortcode() {
remove-shortcod...
If you want to get Hub State Ind of Record in Base Object, you can use following code illustration for same:
GetRequest req = new GetRequest();
req.setSiperianObjectUid("BASE_OBJECT.MY_BASE_OBJECT"); // Name of the BO
RecordKey...
The function that returns a value based on a condition is MYSQL IF function. Hence MYSQL IF function is one of the control flow functions.
The syntax of the MySQL IF function is as follows:
IF(expr,if_true_expr,if_false_expr)
For examp...
As I mentioned in my previous blog that Drupal 7 is shipped with four default themes, listed below
Bartik
Garland
Seven
Stark
I would like to share some useful features of default themes
Bartik...
Helpers is a classes which contains presentation logic that is shared between many views,layouts and elements.
First need to create helper file which must be stored inside app/Helper/EntriesHelper.php
App::uses('AppHelper', 'View/Helper');
...
Hello Readers,
param() method is the jquery method and is used to perform the array or jquery object in a serialization or in serialize manner.
Syntax :
$.param(object | array, boolValue)
Parameters :
object | array - this is a ...
Hi Guy,
There are so many online activity 'We write online', 'Edit online' and save our data online. In meanwhile we have huge worries about our personal data. All of us have fear about the data security and privacy.
Actually G...
Hello Readers,
If you want to merge multiple video or audio files, FFmpeg application command tool help you for solving this task.
you will need to create a .txt file which will include a list of all the input video files like part1...
Hello Everyone, In this blog I teach you How to remove parent widget and sidebar in child theme wordpress.
Below code is the parent theme sidebar code.
class PWidgetName extends WP-Widget {
// your widget code
}
You can remove this...
The statement which allows you to execute a set of SQL ststements on the basis of certain conditions is known as MYSQL IF statement.
Below I am explaining the structure for if-else statement.
MySQL IF statement syntax-
IF expression THE...
It is very easy to get the url of profile picture from facebook if we have user id.
We just create a url like this:
Here id is the user id of the Facebook account.
try {
// Type may be normal,large or small
...
Many times we need to truncate a table which has an FK constraint on it. Typically we get the following error:
Cannot truncate table 'TableName' because it is being referenced by a FOREIGN KEY constraint.
The solution to the above problem i...
There are 4 Modes of UIDatePicker as-
UIDatePickerModeTime-It is used to
displays hour, minute, and
optionally AM/PM designation..
UIDatePickerModeDate-It is used to
displays month, day, and year
depending on the local settings for
e.g ...
Many times the large size of transaction log file (.ldf) in Microsoft SQL is too big which leads to performance issues and loss of valuable disk space.Therefore it's imperative to periodically do database maintenance.
In order to clear or ...
Hello Readers,
slideToggle() effect is one of the jquery method and is used to give the sliding effect or the animated effect with a sliding motion and it works between slideUp() and slideDown() effect for the selected or matched elements.
...
Cakephp provides number of core components such as Session,cookie ,email etc. Component extends the object class. It allow us to reuse the code and makes our controller code clean. Use camelcase naming convention while creating component.All co...
Stored Procedures are pre-compile database objects which are compiled for first time and execution plan is saved for further use. However UDF is compiled and executed every time when it is invoked.This article provides a detailed comparison of st...
First create fields rent_duration_unity in your own module then create class and use this rent_duration_unity fields which you created first
in .py file, as shown in code given below.
'rent_duration_unity' : fields.many2one('product.uom', s...
There are four default themes included with Drupal 7
To view available themes, log in to your site as an administrator then click on the Appearance link on the Toolbar. The Theme Manager displays a list of all the themes installed ...
SQL Server sysobjects Table contains one row for each object created. In other words, it has a row for every constraint, default, log, stored procedure etc in the database.The two columns most useful in this table are sysobjects.name and sysobje...
The HTTP response consists of the status line, which is the first line of the response to the request and it contains a code along with a human readable phrase. The code is intended to be used by the user agent or the software agent for handlin...
The mobile device screen can able to locked programmatically. Appium provides a method through which we can perform the same.
lockScreen(int seconds)
The argument should be an integer value ie the number of seconds we want the screen to be in l...
In product module use onchange function and sets some value and return dictionary of value in on_client_changed function to first inherit the product module class like as product.template class and then use this function in .py file in openerp
u...
A trigger is a special kind of a store procedure that executes in response to specific actions on the table like insertion, updation or deletion. It is a database object which is bound to a table. Triggers cannot be explicitly invoked. The only ...
Welcome to findnerd, today we are going to discuss How to increase maximum size of POST in PHP ?
If you want to increase the size of POST for sending much more POST request, then you have to follow bellow given point.
There are 2 different ...
What is a theme
In the relation of Drupal, the term "theme" means a collection of inter-related files that are responsible for the look and feel of a Drupal website
One of the key advantages of Drupal's architecture is the ability to obstruc...
Two files are required to create a template in Joomla. First is the index.php file, in this file we can place php code where the content of site should go and second file is templatedetails.xml which includes all the configuration settings and pa...