
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
PHP - A brief Overview - Part -1
This posts will provide you a brief overview of PHP which is the most popular web development language. It is targeted to the audience having basic knowledge of programming. The readers searching for more in-depth knowledge will be disappointed.
...
How to make CustomDialog Fragment in android
In the below example code I have created a CustomDialog Fragment. Here, first I have created custom_dialog.xml layout , On this xml layout I have added EditText and Button. In next step, in activity_main.xml layout I have added a Button and...
Ruby: Dynamic method call using send method
Ruby: Dynamic method call using send method
Hi friends,
As everybody says rails is a dynamic language. They says this because of its functionalities that makes it dynamic. One of the feature of rails is it's send method. It is an instan...
Solution of exception: This row already belongs to another table
When you try to read row from one table and add to another table, if you get the exception i.e. ""This row already belongs to another table". For example:
foreach (DataRow drWrite in dtRead.Rows)
{
dtWrite.Rows.Add(drWri...
Ruby: Metaprogramming: Method that makes methods
Ruby: Meta Programming: Method that makes Methods
Hi friends,
The normal way of defining method is to give the method name after def and write code between def .... end, and it is pretty fine for most of the cases, but sometimes suppose we ...
Management Tips for Great Leaders
Management is an art to deal people. Managers must be good listeners, motivator, friend who deal with ease and trust with his/her sub-ordinates. Managers must be a good team player who should always boost team spirit. Various managers ...
Implementing Pagination in CakePHP
Pagination:
It is used to limit the number of records to be displayed in a page. In cakephp we can easily implement pagination. We can use pagination by putting the following code in controller:
public $paginate = [
'li...
How to install SSH server on Ubuntu 14.04?
Install SSH Server on Ubuntu 14.04
In order to install SSH server on Ubuntu, you need to install OpenSSH server package. Use the following command to setup SSH server:
sudo apt-get install openssh-server
Configure SSH Server
After i...
Create and Delete and Recreate Table
Hi i have been asked to the following task.
Your project must meet the following specifications:
1. Create a table tbl_User in MySQL using the console or phpMyAdmin, consisting of the following column names:
a. The table struct...
How to set up SSH with Public Key authentication on Ubuntu?
How to Setup SSH with Public Key Authentication on Ubuntu 14.04
This blog will let you know how to set up an SSH server with public-key authorization SSH is a great tool to control Linux-based computers remotely.
Installing SSH On The...
How to add a Refresh Control on a tableView
Hi Readers,
To refresh the table whenever you pull down the table, we need to use Refresh Control.
To add a UIRefreshControl on a TableView you just have to add a below code in your viewController.
UIRefreshControl ...
Create your own Ruby Gem
Hi friends,
The popularity of Ruby on Rails now a days is so much because of its rapid development, which is possible because of its gems. For every generic functionality there is a gem available, so why not create our own gem. Today I am going ...
How to make a simple timer in angularjs
Hi all,
We are going to implement count-up timer. In Count up timer, timer starts from 00:00:00 to time you defined. It is used to show duration for example video duration , call duration , etc
In Html file , Just add binding variable in yo...
Rails Environment Configuration Variables
While developing Rails application we need to keep our project specific sensitive information secure. For example api keys for third parties like stripe, paypal or passwords or configuration data such as the URL. We can set these as environment...
LinkedList class
LinkedList class:
It provides a linked-list data structure. It uses doubly linked-list to store elements. It extends the AbstractList class and implements List interface. We can use LinkedList class by importing java.util package.
Exa...
How to setup Virtual Domain Name on apache2 Ubantu
Step 1 :- Create new project like /var/www/html/staging/blog
Step 2:- create index.php
Step 3:- Write <?php echo “Hello World”; ?> inside index.php
Step 4:- Check If you can access project via http://localhost/staging/b...
Tic-Tac-Toe
Hi all,
Tic-Tac-Toe is simple game in which you will try to mark your sign in three blocks to make a row , column or diagonal.
RULES FOR TIC-TAC-TOE
1. The game is played on a grid that's 3 squares by 3 squares.
2. You a...
Block, Proc and Lambda
Blocks, Procs, and Lambdas
Hi friends,
Today I am going to explain one of the most confusing part in Ruby, that is Block, Procs and Lambdas. It always troubles you during interviews or any other places wherever you deal with Ruby. But actua...
Integrating payment gateway in Rails - Part 1
Payment gateways are used in websites for online shopping and money transactions. It safely handles customer payments. Payment gateway can easily be integrated in Rails application. Few applications for payment gateway integration in Rails are Sr...
Display Child Content by clicking parent Element in multiple listing
Hello Friends,
Today I have created a simple example of child element show and hide function in jQuery. Many times I found that we are facing an issue of showing child element of each list by clicking list parent element.
Here in jQuery code,...
How to add multiple images with animation in UIImageview in iOS
If you want to display the multiple images with animation in UIImageview then use the following code:
Here you can also set the repeat count of the images.
UIImageView* animatedImageView = [[UIImageView alloc] initWithFrame:self.view.boun...
How to create fragment In android
In the below example I have created a simple fragment app code. Here, first I have created two new fragment xml layouts and neamed them fragmentone and fragmenttwo then in this I have added TextView and backgraund image. Now In activity_main.xml ...
How to create set wallpaper app in android
In the below example I have created set wallpaper app. Here I have added two button and ImageView in activity_main.xml layout. In MainActivity I have used setOnClickListener method , displayWallpaper() and Toast function, and I have also used Bit...
How to convert from NSSTRING TO NSDATE ?
// date from string
NSString *dateString = [NSString stringWithFormat:@"%@",_model.time]; // model.time is the field in which we are fetching the string.
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFo...
How to search two or more words in php using explode and implode function ?
How to search words in php using explode and implode function?:
I am posting this blog as many php coders got stuck while searching multiple terms using implode and explode. I have the form in which users are going to search multiple terms.
...
How to create sudo user on CentOS ?
This blog will let you know how to create sudo users on CentOS.
Steps to create new sudo user
Step One: Login to your server as root user
$ ssh root@server_ip_address
Step Two: Use the adduser command to add new user to your system
...
How to Install Grails on Ubuntu?
About Grails:
Grails is open source web framework based on Groovy programming language which runs on Java platform.
Steps to install Grail:
Step One: Install JDK
sudo apt-get install openjdk-6-jdk
&n...
How Offering Sales Can Benefit Your Internet Business
How Offering Sales Can Benefit Your Internet Business:-
There's an incredible technique online that can give you a sudden surge of requests immediately. Do you know what this method is? Well… I'm discussing the force of of...
Android support Library 23.2 features
Here are some features of Android Support library 23.2
1. Support vector drawable (support-vector-drawable).
Help to replace multiple bitmap images to single vector graphic xml file. While vector drawable only support in lol...
Best practices to create match rules in MDM
Hello
The intention of this blog is to provide directions for tuning match rules in Informatica MDM.
Steps for Match Rules Setup and Tuning
Data Audit
Data analysis can be performed only for the use of the match process or a...
How to create Triangular imageview in objective C
Here is the code for creating the triangular uiimageview -
UIBezierPath *bzrPath = [UIBezierPath new];
[bzrPath moveToPoint:(CGPoint){0, self.imgView.frame.size.height}];
[bzrPath addLineToPoint:(CGPoint){80, 0}];
[bzrPath...
Converting a given string to SHA1 hash using c#
SHA1(Secure Hash Algorithm 1) is an encryption type which is useful while saving password and other information which we want to keep secured.
Here is the sample code of converting a string to SHA1 hash.
public static string GetSha1(strin...
Reset Password without taking old password as parameter in Asp.Net Identity
Reset password is a part of forgot password functionality in ASP.Net identity. When a user forgets his/her password and want to change his password without using old password, then we use reset password functionality.
In Asp.Net identity, we h...
Listview items sets to default after scrolling
I have list view which uses base adapter class for each item view, when I make changes in one item of list view and scroll the list view the changed item sets to default value, I need to retain my values even after scrolling.
@Override
pu...
Change Password using ASP.Net Identity
Change password is a common functionality which is used in almost every app that takes user credentials to login.
In ASP.Net Identity, we have the inbuilt method to change the password of currently logged in user.
Here is the sample code fo...
Fetch the poi from google in ios
To fetch the poi from google we can use the GOOGLE API to get the list of POI near user location.
1- For creating the Key you can get the refrence from Link : https://developers.google.com/maps/documentation/ios-sdk/get-api-key#overview
...
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...
need help for my future career
I am fares i am 17 old years i like developer game i started dev for 3 years i think to get in future a game designer i started with Game maker for two years and now i learn in unity .My question is: can i work at game developer company with only...
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
...
Convert object to xml
i want to make a program that will create automatically XML data structures. I will not know from the beginning which is the class, and which the attributes so i cant use JAXB.
For example, if the input is:
Employee, name,id
Employeelist, co...
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...
find the longest sub-arraythat all of its elements are less or equalA[i]
I have an array A[1,...,n] of positive numbers, for example:
[1, 2, 5, 3, 7, 2, 8, 4]
I need to build an array S[1,...,n] according to the definition:
S[i] = max {k|ik <ji :A[j] A[i] and k i}
It means ...
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 ...