Hello Reader's if you want to crop the images and save them then you can use this code liberay, its a very easy to implement and very useful for thumbnail generation
<?php
$targ_w = $targ_h = 150;
$jpeg_quality = 90;
$src = 'demo_files...
Hello Reader's if your building the html 5 based web form and want to set the value of select box via Jquery then you can learn it from code as below:-
First you need to set the value from html page
<input type = "text" id = "txtEmail" v...
Hello reader's If you are using codeigniter and want to make '<=' mysql query then you can use the code syntax as below:-
->select('COUNT(payment.keyid) AS rec_count')
->where('payment.paymentdate >=', $month_start)
->where...
Hello Reader's if you need to list out the dates between two given dates then you can use the JS code as written below:-
Date.prototype.addDays = function(days) {
var dat = new Date(this.valueOf())
dat.setDate(dat.getDate() + days);
...
Setting up a local development server installing plugins and modules you might need to develop Drupal theme
Firt we need to setup the local sever where we gonna run our Drupal site
1. First we need a server, XAMPP is very popular A...
It is very easy to set up parse.com to anroid project.
After setting up, you can create your own backend very easily.
First of all define dependency on gradle file
dependencies {
compile 'com.parse:parse-android:1.10.2'
}
After this,...
What is Factorial ?
Factorial of a no. means multiplying below numbers. Factorial is denoted by ! Exclamation mark
Eg:- 5! means :- 5 * 4 * 3 * 2 * 1 = 120
What is a Recursive function?
Definition:- A function which calls itself is...
Hold the existing variable and override it
grasp and override the existing variables, to do it we use a function in the template.php file
For example
<?php
function themename_preprocess(&$vars){
$var['title'] = 'your...
Below is the solutions to make transparent view.
1. Using android predefined color
android:background="@android:color/transparent"
2. Create own color
<color name="transparent_color">#80000000</color>
3. D...
JavaScript Array indexOf() method : The indexOf() method is used to return the position of the any given element inside the array. It returns the numeric value and if element not found in that array then it returns the -1. The index is starts fro...
Changes in an organization/company is something that must be expected in the IT change project, due to the change of the company of the main centre IT project should be able to follow the key/main business of the organization.
Change of manage...
Basically XAMPP is abbreviation of some technical terms like it is Cross Platform(X) Apache HTTP Server (A) MySql(M), PHP(P) and Pearl(P) server. Cross platform means it can run on various platform like Windows, Linux, Unix etc. It is first cho...
Accordion Menu are like the dropdown menu with some effects of animation. It has some top menu and dropdown list inside that menu and some other top menu and another dropdown list inside this menu.
When we click on the first top menu the dropd...
Hello Readers,
on() is the jQuery method and it comes in jQuery 1.7 and it is the replacement of bind() and delegate() handlers methods and it is used to attach event to the currently selected elements and it is a faster way to attach to the e...
The first step after the starting the Appium server is to launch or invoke the installed application through the script. First we should set the desired capabilities and then launch the application.
DesiredCapabilities capabilites = new Desire...
The logs that are generated on the Appium server gets removed as soon as we close the server. If there is a need to study the logs to find the root cause of any issue then we have to save the logs before closing the server. Appium provides a way ...
Nowadays it has become very common for Internet providers to be ordered by courts or governments to partially or completely block access to inappropriate contents on websites.The Internet Engineering Task Force (IETF) has approved a special HTT...
In this tutorial we are going to disable the Notifications and still receive the messages. When new notification is posted or removed in status bar, NotificationListener Service is called by the Android OS. NotificationListenerService has methods...
JQuerys :not() selector is used to filter in some cases when we have some selectors. It selects all the elements except the elements that matches the selector.
for example, If we have some checkboxes. When we select any checkbox the backgroun...
Welcome to FindNerd. Today we are going to tell the way how we can reverse a string without using array_reverse function in php. Please have a look.
$string = "FINDNERD";
$count=array_sum(count_chars($string));
for($i=$count -1 ;$i>=0;$...
As more and more people are now looking to be an entrepreneur with the sole aim to work for their own product or services offered from them. This mindset from the majority of people is t...
Marketing is the backbone of every small and big organization. Nowadays big companies are investing and focusing more on Marketing. Without strong marketing, its very hard for a company to survive in the market. Marketing can be defined in dif...
In jQuery, to select all siblings div after a child we use a function nextAll().
Syntax:
$(element).nextAll();
For example:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<...
JavaScript Array concat() method : The concat() method is used to join or combine the two or more arrays. It doesn't change the original array. It return the new array having all the elements of combined arrays.
Syntax of array concat() method...
<-- Chapter 2: SQL Syntax
Chapter 3
SQL Select
SQL Select :
SELECT command describes that through which we can fetch data from MYSQL database tables OR we can say, It is used to retrieve/select data from MYSQL database.
SELECT comma...
In the below code I have used SpellCheckerListener interface and ovrride its method. Here I have created SpellCheckerListener class to check the spelling errors. See the below code it will clearly described how to make Spelling Checker function.
...
To get small image in product module first inherit the product.product object in product module and add one fields like image_small and write the fucntion _get_image in your own module in openerp.
for example you can use the below fucntion in .p...
A function that call itself is known as *Recursive Function*. Recursive function keeps calling itself. We have to set a condition that will stop it, otherwise it will run infinitely. This condition is known as a base case. Basically, base case te...
What is Fibonacci Series ?
Fibonacci succession arrangement or group of the numbers beginning with zero or one followed by a one, and carry on with rule that number is equivalent to the sum of prior 2 numbers.
Fibonacci series is denoted by f...
Hi Reader's,
Welcome to FindNerd, today we are going to discuss what is the use of the @ symbol in PHP ?
so basically @ symbol is an "Error Control Operators" and it's works only on expressions.
In other word we can say that this symbo...
Sometimes we may be required to get the get last N records of a table in SQL server based on ordering on a specific column . In this post we will create a query to get the result. First let us create a table which we will use in our query.
CR...
Hi Reader's,
Welcome to FindNerd, today we are going to discuss how to extract a number from a string in PHP ?
If you just want to filter the numbers out, the easiest is to use preg_replace() function.
It is very simple and easy function ...
Recursive in Cakephp is used to set the depth of result when find() methods are used. It retrieves the records associated with model data.Using recursive we can limit the required data. Lets consider an example of recursive by taking an example o...
JavaScript Array length property : The length property is used to return the total length of the array. It return the number of elements in array.
Syntax of the array length property : to get the array length use following syntax
array.leng...
Hello guys if you are looking to use where clause with multiple attribute in ZEND Framework. Please use the below code for the same::
$databaseObj = Zend_Db_Table::getDefaultAdapter();
$selectQuery = $this->select();
$selectQuery->from...
It should not be a news caution to you that business administration expertise, method and procedure, that are beneficial are required components to operate a successful business in the very competitive business marketplace today. There are many i...
By using the seed value for every new record Microsoft SQL Server's identity column generates sequential values. In this post we will learn how to reseed an identity column.
Following is the command to reset the identity property :
DBCC C...
Hello Guys,
If you are looking to use MYSQL join in zend framework. Please use the below code for the same:
$dbObj = Zend_Db_Table::getDefaultAdapter();
$selectQuery = $this->select();
$selectQuery->setIntegrityCheck(false);
$selec...
Often we may be required to get the names of all columns in a table in SQL server. In this post we will see the different options available in SQL server to fetch the column names.
1) We can use the below query to get the column names.
SELE...
In this post we will see how to use JOIN for deleting data from SQl server table. Let us first create tables which we will use for understanding the deletion process using JOINS.
-- Create table1
CREATE TABLE #Table1 (Col1 INT, Col2 VARCHAR(5...
Hello Guys,
If you are looking to use "Select" mysql query in ZEND Framework. Please use the below code::
$dbObj = Zend_Db_Table::getDefaultAdapter();
$select = $this->select();
$select->from(array('users'),array('count(user_id) as ...
In this article we will learn how to check if a stored procedure exists before creating it. We can use the below script which will drop the proc if it exists and then recreate it.
IF EXISTS (SELECT * FROM sys.objects WHERE type = 'P' AND name...
We know that the data can be changed inside a field by using update command.
In this article I will guide you to replace part of the data without changing the entire data of the field. For this we will use replace command to replace a part of t...
Media queries is used to make web page responsive i.e. for mobile phones, tablet. It is based on the capability of the device instead of checking only the device width and height.
It can check the following points:
Viewport width and heig...
Servlet Filter:
Servlet Filter is used to filter the unnecessary requests that is received at the servlet end. It is used to perform tasks such as conversion, logging, compression, encryption and decryption, input validation etc.
It is call...
Migrate Library in JQuery
While using Jquery you have seen the error $.browser error.
This error comes often when we try to use a legacy jquery function in new version of jquery file.
The latest version does not support the ol...
Hello Friends,
If you are looking to save/fetch session variable in ZEND Framework. Please use the below code:
// DEFINE SESSION VARIABLE
$sess = new Zend_Session_Namespace('MyNamespace');
$sess->username = "you_name"; // define your v...
In PHP, To perform any data task in MySQL database , first we have to connect MySql database to local server
This can be done as :
<?php
$servername = "localhost";
$username = "username";
$password = "password";
// Create connectio...
The MVC structure breaks an application's interface, into three parts: the model, the view, and the controller. It can be mapped with the traditional input, processing & output roles .
Input --> Processing --> Output
Controlle...
What Are Post Condition And Pre-condition ?
Post-Condition:- This is a group of declarations or a declaration defining the result of an activity if true, when the performance has accomplished own job or task. The Post Condition declaration dem...