
Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
toString() method in JavaScript
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...
Cropping an Audio File using FFmpeg command
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:...
Get the Current Page URL
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...
Increase Timeout in SoapUI
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...
SQL Server : How to insert values in identity column programmatically?
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...
Overwrite Additional Image Sizes of parent in child theme Wordpress
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-...
What is bundle Id in Android ?
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...
Error in SoapFault from Webservice
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, ...
JSON data insert into MySQL using PHP
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"}
...
Remove Parent theme Shortcodes in Child theme Wordpress
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...
SIF API to get Hub State Ind of Record
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...
MySQL "IF" function
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...
Drupal Core Base Theme Features
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...
how to create custom helpers in cakephp
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');
...
What is the use of param() method?
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 ...
How to save Past search and browsing activity in Google
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...
Join (merge) Video Files
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...
How to remove parent widget and sidebar in child theme wordpress
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...
"IF ELSE" statement in MySQL
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...
Get Facebook profile pic url by user id using graph api
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
...
SQL Server : How to truncate a table being referenced by a FOREIGN KEY constraint ?
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...
Different Modes Of Date Pickr in iOS
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 ...
SQL Server : How to shrink or clear the transaction log file ?
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 ...
Explain slideToggle() effect in jquery?
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.
...
Creating custom component in cakephp
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...
SQL Server : Comparison of stored procedure and UDF
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...
How to Return the 1st UoM present into the Duration category in openerp
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...
The default Drupal themes
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 : Use of sysobjects table
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...
IIS : Http Status Codes
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...
How to lock the mobile device screen in Appium ?
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...
How to Onchange of product and sets some values in openerp
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...
SQL Server : Instead of Trigger
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 ...
How to maximise the maximum size of POST in PHP ?
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 ...
Drupal Theme, Regions, Block
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...
Creating template in Joomla
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...
Test Harness
What Is Test Harness ?
Test Harness is also recognized as automated test framework. This test framework is generally utilized by the programmers or developers.Test harness supplies drivers and stubs to the developers. Developers utilized these...
Difference between File Repository and Database Repository in PDI
Kettle Database Repository: while using Database repository, all the information regarding jobs and transformation is stored in Database, which is the store of ETL metadata.
You have to provide appropriate credential of database, and create a ...
How to make Call State in android
Hello friend's
If you want to create a Call State function in Android see the below code example. Here I have used TelephonyManger method to get the information of call state And I have used PhoneStateListener. In AndroidManifest.xml I have a...
How to perform the screen rotation in Appium ?
Many times the application screen has to be rotated to automate any testcase. Most of the applications opens in portrait mode and if there we have to verify something in landscape mode then we cannot rotate the screen manually in the middle to an...
Remove parent theme menu in child theme Wordpress
Hello Everyone, I am here to teach you how to remove parent theme menu in child theme wordpress.
The below code is in your parent theme for register the menu.
add_action( 'after_setup_theme', 'register_themename_menu' );
function registe...
PDI Components
There are four main components of Pentaho Data Integration tool:
1: SPOON
2: PAN
3: KITCHEN
4: CARTE
SPOON
It is a graphical design interface for buildings ETL jobs and transformation.
It provide a way to create complex ETL j...
Magic Methods and their types
Php functions that starts with double underscore are called magic methods.These functions are not stand alone functions and are defined inside class. Php will call these functions from background means behind the scenes. It is not directly called...
How to make a Round UIView with selected Daimeter programatically in iOS
Create UIView as UIView *myroundView; or watever name suits u...
Allocate it itz memory as well as its frame & its diameter as-
myroundView = [[UIView alloc]initWithFrame:CGRectMake(40, 18, 15, 15)];
[self setRoundedView:myroundVie...
Convert a Video File from One Format to Another Format using FFmpeg command
Hello Readers,
If you want a concert a video file from one a define format to other format, you should to use following command:
ffmpeg -i INPUTVIDEONAME -c:v libx264 -profile:v baseline -c:a aac -strict experimental -ar 44100 -ac 2...
Where to use "__construct" magic function
__construct
The constructor is a magic method, which is immidately initated after declare the object of class and you can write the __construct method at any place in the class.
Right here all of us have a case in point during which, develo...
Remove Custom Post Types and Taxonomies in Wordpress
Hello readers, In this blog I will teach you how to remove custom post type and taxonomies.
The below code is the custom taxonomies of the parent theme inside the functions.php
add_action( 'after_setup_theme', 'parent_gallery_add_post_typ...
How to return an array from a function in PHP?
If we have a function and we want to return multiple values from that function then we can easily return an array from function.Below is the example which returns a multiple array from function.
function myFunc( ) {
$myvar1 = 10;
$myvar2 =...
Explain the each() function in jquery?
Hello Readers,
each() is the jquery function and it is used to iterate over jquery matched object list.
each() is a traversing method which works only jquery objects.
syntax :
$(selector).each(function(index,element))
Parameters :
...
PHP magic function
PHP functions that start with a double underscore __ , are called magic functions in PHP.
__construct()
__destruct()
__call() __callStatic() __get() __set() __isset() __unset() __sleep() __wakeup() __toString() __invoke() __set_state() __...
