
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
How to add click event on marker in Google Map?
I was facing issue while populating markers and adding click event on them. When the user clicks on a marker I would like it to send the user to different webpage. For example: If marker represents home page, when you click on this marker it will...
Google Map v3: How to calculate distance between two end points?
Google Map v3: Calculate Distance
How to calculate distance between two end points in google map v3?
Use the Haversine formula to calculate distance between two end points.
Note: you must add &libraries=geometry to your script source...
7 Strange Factors That Influence Online Conversions
7 Strange Factors That Influence Online Conversions:-
The online client is an unusual creature. They are influenced by factors on your site or in your articles that shouldn't make a difference when they shop online. Some of these...
Lets create jQuery plugin: part 1
jQuery have been widely used for interactive websites. There are plenty of plugins available built on jquery. We can also create our plugins. In this tutorial we will create a plugin and add few options.
We will create a jquery.myplugin....
Android app development for beginners 2: Your first hello world application
In this tutorial we'll:
1.Set up and develop Android project
2.Go through basic essentials to let you start with the development
How to parse \n character received from server in text output and display it to the view using Angular
While working with AngularJS, sometimes when we are receving data from the server and that data contains a string which has line-seperations in it in the form of \n, the angularJS is not able to parse \n and thus we see the entire string in one l...
move an object
When we are developing games then sometime we need an object which generate from a position and move by itself in a particular direction. So here is the simple code from which yo u can do this.
You just make your object a prefab and add a scri...
Animation effect to object through script
Add a animation effect to your game object through simple line code in unity
Add this line to your script update funtion and the object in which this script is added will show you a rotating animation at its position
void Update () {
...
Camera follow player
Add a new script to Main Camera of your scene.
public class CameraController : MonoBehaviour
{
public GameObject player; // add your player object in the tool
private Vector3 offset;
void Start ()
...
Rails 5 features
Rails 5 is soon going to release. Many New features have been introduced in this major release. We will discuss the improvements and features here.
1. A few improvements have been made in Turbolinks. Tubrolinks allows us to reload require...
Own configuration section in .net application
We always add a key with a value in our XML configuration and read it at run time but we can extend configuration settings in our XML configuration. To do this, we must create a custom configuration section handler. The handler must be a .NET Fra...
How to reset your Magento admin password from Database?
If you forget the username or password to of the Magento admin panel,you can recover or change it from Magento database from phpyadmin. Most of the times forget password or username do not work, so we can use this method to recover magento admin ...
How to make ServiceLifeCycle in android
In the below example code I have created android Service program. In activity_main.xml layout, first I have created a LinearLayout then in LinearLayout added two Button. Now See in coding part Here I have created a new MyService class and then My...
How to declare functions in jQuery
1. The basic JavaScript function
The simplest way to declare a function in JavaScript. In below example. we have written a simple function called abcd(x,y) which is simply taking two parameters x and y,.
function abcd(x,y) {
return (x *...
NOT LIKE in Hibernate Criteria
The Hibernate Criteria Not like, selects the records that don't match to the matching string given in like parameter.
Example:
Criteria criteria=session.createCriteria(Tickit.class); //Here you can pass class on which you want to perf...
MySQL: selecting rows where a column is null
In MySQL, we can select rows where a column is null by using IS NULL operator.
We have a table "employee" as below:
employee
id first_name salary country
............................................
What is the use of IFNULL Operator in MySQL?
In MySQL, the IFNULL operator is used as conditional statement for NULL values. When we need to fetch NULL values with LIKE operator then we can use this operator.
Example:
We have a table "employee" as below:
...
How to make WHERE col LIKE '%' select NULL values too?
When we apply LIKE keyword to any query then it doesn't return NULL values, and sometimes it required to return NULL values as well. We can do this by using IS NULL or IFNULL operator.
Example:
We have a table "employee" as be...
Initialize AngularJS Model with MVC Model
Hi All,
When we need to use AngularJS to bind controls with AngularJS Model but we have MVC Model filled through MVC Controller, we can follow below steps to do the same without using "ng-init".
Step 1: Create two js files in Scri...
PIM- launching the client (overview)
Hello
Todays blog will throw some light on the PIM desktop and the various features and options available to manage and configure the same.
Launching the client
PIM Desktop works on the client/server concept. In order to use the cl...
Setting cookies in php
Cookies in php is defined in the following line of code, CookieComponent is a wrapper in a PHP setcookie method.It offers user a number of methods for working with the Cookies in the document, cookies will allow user to remember their username an...
how to do save the cookies in cakephp and remember me in cakephp
In your login page you have two fields that are username/email and password in that page you have a checkbox . In that form you have a checkbox if you select that check box then your cookies will be saved in your browser for that remember me code...
Bind Dropdown using AngularJS
Hi All,
This log will help you to bind data to dropdown/html select control using AngularJS. Data is populated using webmethod.
<select ng-options="Country.CountryName for Country in CountryList" ng-model="selectedCountry">
</se...
Stop Event Propagation on click in AngularJS
Sometimes you have a click event on parent div as well as child elements of it. If you click on the child element, it automatically calls the parent click function along with its own function. This is called event bubbling. To restrict or stop th...
What Is State Transition Testing ?
State Transition Testing is a kind of black box testing approach. In this approach the outputs are provoked by the changes to the input circumstances or changes to the situation of the system. In other words we can say that tests are considered f...
How to send pushnotifications via iPhone/Android devices
In this tutorial we will learn how to send the pushnotifications iPhone/ Android apps.
Below is the code that requires the follwoing elements to send the pushnotification from iPhone
1-) The device token to which we need to send the pushnot...
Simple XML GET with php
To get the node values from we use xml file with XML Get . The example to get the data from xml.
Note.xml is xml file,
<SUBJECT>
<COURSE>Android</COURSE>
<COUNTRY>India</COUNTRY>
<CO...
Get HTML element using class name or Id in AngularJS
Hi All,
In this blog we will see how easy is to get HTML element in AngularJS. We many a times stuck in situation where we need to get HTML element that are not bind to AngularJS Model. Here is quick and easiest way of doing that.
Using Cla...
simple XML with PHP
The simple XML parser
It is used to parse Name, attributes and textual content.
simplexml_load_file()
This function is the one which always requires a file path as mandatory parameter.
simplexml_load_file(($fileName,$...
Use of ng-cloak in AngularJS
Hi All,
When we use AngularJS in any of our page, while rendering it on browser we happen to see flicker in HTML with uncompiled raw html. And once the AngularJS is compiled then it will show the compilled output. To avoid this flickering we c...
How to implement 'Remember me' functionality in cakephp
To implement 'Remember Me' functionality in cakephp, you need to follow following steps.
Step1 : Add the following code in app/Config/core.php
Configure::write('Session', array(
'defaults' => 'php'
'defaults' => ...
Disable back button after login and logout.
Hello Readers! While creating an application what we notice is when user log in to the application using the credentials and while being logged in if user clicks on the browser back button he/she is redirected to the login page again. Same is the...
How to perform all checks on lines in Odoo?
If you want to perform all checks on lines in Odoo follow the following code:
if 'account_id' not in vals or 'journal_id' not in vals:
raise UserError(_("It is mandatory to specify an account and a journal to create a write-of...
Defining Path in MVC
Hi All,
This blog is simply to know the fact that in MVC4 we no longer need to use "Url.Content".
The Content method is a helper method which is responsible for converting a relative path into an absolute path. But with MVC4 release...
Authorize ajax call in MVC
Hi All,
In many of our scenario's we intent to make ajax calls to get or post data. What if the session logged off before you made the ajax call, what will and should happen in this scenario. What will happen is the call will never be comp...
How to use forget password function in cakePHP
Forget Password function use in cakePhp for making it secure by sending the code to the database in encrypted form, and fetch the value from by using find keyword in the list, this will give you detail on the bases of email id.
Forexample:...
How to make Snackbar in android
In the below example function I have created Snackbar in android. When you click on button a message show at the bottom of the device(mobile) screen. Snackbars appear above all other elements on screen and only one can be displayed at a time and ...
using audio data in unity 5
1. On format and loading type
Audio files imported in unity 5 are by default set to be preloaded i.e. audio clip will be loaded at the moment when game is being loaded.
This can cause game to take much time to load if audio files are heav...
Alpha, Beta and Gamma Testing
Hello Readers …
By this blog i am explaining the distinguish between ‘Alpha Testing’, ‘Beta Testing’ and ‘Gamma Testing’. These three types of testing are very important in the software testing field....
encode password before saving it to database
Hello Readers. Here is small code to encode password before it is saved into database.
Add the following code in your Model file User.php
App::uses('BlowfishPasswordHasher', 'Controller/Component/Auth');
class User extends AppModel {
...
Formatting date in different format in java
Formatting Date in java:
There is a predefined format for dealing with dates in java , but suppose if you want the date in some other format other than the default one then you can use the SimpleDateFormat class of the java.text ...
How to check and complete value of journal entry method in Odoo
If you want to check and complete value of journal entry method in Odoo follow the following code:
if 'account_id' not in vals or 'journal_id' not in vals:
raise UserError(_("It is mandatory to specify an account and a...
MVC Custom Authorize Attribute with Use of Enum
Hi All,
In many of our scenario's we need to use Authorize Attribute in our MVC project. The limitation of which is just that we can't use our custom user roles. What if we intend to use custom enum to Authorize some of our Action Meth...
Reset Password link code in cakephp
Hello Readers! Here is a cakephp code to reset your password.
Create a view reset.ctp and paste the below code to it:
<?php echo $this->Session->flash(); ?>
<div class="container">
<div class="midBlock clearfix"...
Manage old database to new database in PostgreSQl (OpenERP)
In OpenERP if users manage old database to new database and delete all record in old database and use this database in new financial year so using database query in Postgresql framework to manage database. This is very helpful for new financial y...
Forgot Password link code in cakephp
Hello Readers! Here is the code to send link to your email address when you click on Forgot Password link during login in cakephp.
Create a view forgot_password.ctp and paste the below code to it:
<?php echo $this->Session->flash...
Delegates in C#
Delegates in C#
1) Delegate is a kind of function pointer as we have in C or C++.
2) It holds the reference to a method.
3) Reference to a method can be changed at run-time.
4) We can add or remove reference to method using += and -= ...
How to set the expected payment date in Odoo?
If you want to set the expected payment data in Odoo follow the following code :
if vals.get('expected_pay_date') and self.invoice_id:
msg = _('New expected payment date: ') + vals['expected_pay_date'] + '.\n' + vals.get('intern...
Elements and Layouts in Cakephp
If we are required to Create elements and add it in layouts and views ithe can do it as In app/views/elements folder create an element file adminsidebar.ctp with the below code :
<?php
echo Hello Cakephp !!;
?>
Call t...
How to create and exchange rate difference journal entry in Odoo?
If you want to create and exchange rate difference journal entry in Odoo follow the following code:
rate_diff = rec.debit_move_id.debit / rec.debit_move_id.amount_currency - rec.credit_move_id.credit / -rec.credit_move_id.amount_currency
...