
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 get time intervals in hours between start time and end time in objective C
If we want to get the time intervals between the start time and end time then use the following code-
it will return the array of hours according to the start time and end time.
+ (NSMutableArray *)getTimeIntervals:(NSString *)startTime a...
Change the Flash mode of camera in ios
To set the camera flash on or off in ios Use the code below:
-(void)setFlashMode:(AVCaptureFlashMode)flashMode forDevice:(AVCaptureDevice *)device
{
if ( device.hasFlash && [device isFlashModeSupported:flashMode] ) {
...
Image is Blurred after cropped from a view
if you are going to take a snapShot of a view in ios and resultant image is blurred please change your code to following.
CGRect rect = [ScreenShotView bounds];
UIGraphicsBeginImageContext(rect.size);
Please change thi...
How to install Django Web Framework on Ubuntu 14.04 ?
Django is Python web framework for developing dynamic websites and applications. Using Django we can develop Python web applications faster.
There are number of ways for installing Django, for now I will discuss two ways for installing Django
...
How to upgrade ubuntu 14.04 to 14.10 ?
This blog will let you know how to upgrade Ubuntu 14.04 to 14.10 through GUI. Firstly we would need to upgrade some packages command line:
$ sudo apt-get update
$ sudo apt-get dist-upgrade
Now on the search bar of Ubuntu type
...
How to deploy Ruby on Rails with Nginx on Ubuntu 14.04 ?
Ruby on Rails runs on web server Webrick. But in order to deploy Ruby on Rails with Nginx server we will need Passenger too.
Install Passenger and Ngnix
First install PGP key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key...
How to create an automatic table of contents in Microsoft Word 2013
If you want to include the table of contents in word Doc.
First you have to choosing the heading styles — for example, Heading 1 for main headings, Heading 2 for subheadings, and Heading 3 (and so on) Microsoft Office Word searches ...
How to install Ruby on Rails on Ubuntu 14.04 ?
Install Ruby On Rails: Quickest way
The quickest way of installing Ruby on Rails with rvm is to run the following commands:
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get....
How to draw radius around a point in Google Map?
Draw radius around a point in Google Map
I want to add 10 miles radius around each marker. This is a very good example which will explain you how it works : https://www.freemaptools.com/radius-around-point.htm . This example will show you that...
How to create circles on Google map?
Draw a circle - Create a circle on a google map
Following javascript code will create circles on the map and it will represent populations in respected town. For that first you need to create an object containing latitude and longitude and pop...
Google Map driving direction
How to display the directions between to locations in google map?
The easiest way for adding driving directions to the webpage is to create a map and then create a DIV for the directions panel, and fire off a query to it!
Here's a very ...
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....