
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
String methods charAt and charCodeAt in JS
charAt() method : This method returns the character exist in a specified index of string.The index in a string always starts with 0.
Syntax of charAt() method :
string.charAt(index)
The index is required field. If no character is foun...
length property in JavaScript String
length property in JavaScript String : Strings in JavaScript are sequence of characters. What if you want to know the number of characters a string has, solution is call the property called length on string object. JavaScript string has the prope...
Listing the videos stored in gallery
Hello friends,
The following code can be used to show the videos stored in gallery:
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
imagePicker.sourceType = UIImagePicke...
Lazy loading in android RecyclerView
Step 1:- create an xml file image_recyclerview.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_h...
How to make Linkify function in android
Using below code i have created Linkify function. Here I have created MainActivity class and In main.xml layout I have added Text View property. Below code will clearly described you how to make Linkify function.
Step(1)-Create MainActivity-
...
Sending notification to IOS device using C# code
In one of my current project, I had to develop and integrate the IOS notification functionality in my server side C# code. I did some RnD for this and found below mentioned code to serve this purpose.
public void SendNotification(string device...
How to Generate Google Analytic Code and Implement on Website
Google analytic code generation and implementation on website is an important SEO task that need to be done so that a webmaster can easily analyse and monitor the performance of his webs...
How to use Less Mixins
LESS gives us the oportunity to use an existing class or ids and apply all its styles directly to another selector.
Example:-
#circle{
background-color: #4CAF50;
border-radius: 100%;
}
#small-circle{
width: 50px;
height: 50...
Change UISearchBar Field Text Color in iOS
You can change UISearchField text color in iOS. Use single line of code to do it.
[[UILabel appearanceWhenContainedIn:[UISearchBar class], nil] setTextColor:[UIColor whiteColor]];
Happy Coding!!!
Change UISearchBar appearance in Objective C
If you want to change the appearance of UISearchBar and its related elements then use below code.
-(void)changeSearchBarAppearance{
[[UITextField appearanceWhenContainedIn:[UISearchBar class], nil] setBackgroundColor:[UIColor whiteCol...
Pure virtual function in C++
In C++, Pure virtual method or pure virtual function is a virtual function in which virtual function does not contain a definition inside the function declaration. A pure virtual function/method is declared by assigning a function equal to 0 in d...
Android Studio Tips and Tricks: Keyboard Commands
Programming key commands
Action
Android Studio Key Command
Command look-up (autocomplete command name)
CTRL + SHIFT + A
Project quick fix
ALT + ENTER
Reformat code
CTRL + ...
How to use SharedPrefrence in Android
SharedPrefrence help us to store private primitive app data in form of key value pairs, but the data is lost when you uninstall the application or you clear application data through settings.To use the SharedPrefrence in your android app follow t...
How to Create Perfect Meta Title Tags for Web-pages
Meta Title Importance
When we talk about keyword rank with respect to some specific search engine let us say Google t...
Laravel join with 3 Tables
As we all know that when we are working on the big project then there is a need of join 2-3 table to get the result.
We can easily understand that by using example of joining 3 table.
Example:
$shares = DB::table('shares')
->join...
Structure of Android Manifest file
In every android application AndroidManifest.xml is the necessary part. Manifest file contains every essential information about your appliucation. It contains information about your package, activities, permissions, services, brodcast receiver a...
How to autoload Guzzle in Laravel 4
It becomes easier with Guzzle, which is a PHP HTTP, to send HTTP requests. Moreover, one can easily perform the task of integrating with web services. Guzzle enables to send both synchronous and asynchronous requests.
Guzzle using Laravel 4.x:...
For Loop in C
For Loop: allow us to efficiently write a loop that needs to be executed specific number of times.
Syntax:
for(init statement; test expression; increment)
{
code(s) to be executed;
}
The init statement allow us to
initia...
Installing mongodb on ubuntu
Install mongodb on ubuntu
Hi friends,
Today I am going to give you a step-by-step guide of how to install mongodb on ubuntu server. The steps are:
First we need to import the mongodb public GPG key to verify the authenticity of di...
Variables in Less
The one of the main feature of Less is the variables just like in a standard programming language. Variable can store any type of value colors, dimensions, selectors, font names, URLs etc. The use of less is to reuse the CSS syntax where ever pos...
How to load string array value from string.xml in android
Using below code I have created a load string array value from string.xml. String is a simple resource using the value provided in the name attribute. So we can combine string resources with other simple resourecs in the xml file. Below code will...
How to install windows applications on Linux using Wine.
Linux by default cannot run windows application directly, both operating systems are too different. There are tons of Linux applications which are available and ready to install and use.
If you want to use windows programs on Linux than you ne...
Unwinding Stack in C++
Unwinding Stack in C++
Stacks are Last in First Out(LIFO) data structures i.e item last inserted is the first one to be out. C++ perform function calls using stack data structure.The function Call Stack is used for function call/return mechan...
Why Should You Consider Ruby on Rails Programming and Its Framework?
Source: tinhthongsoft.com
Ruby, an Object Oriented scripting language for web-development, gets extension from a software library called Rails. As a collective framework for web developm...
Loops in C
Loops are used to execute a block of statements in repetition until a specific condition is satisfied.
There are 3 types of loops in C:
1. for loop
2. while loop
3. do while loop
1. for Loop:
Syntax...
Structures in C++
Structures in C++ is a collection of dissimilar data types .Structures is denoted by struct keyword .In structures we can access different data in a single block.It is usually used to keep the track of different kinds of records in a single block...
How to remove objects from a photo?
In this tutorial you'll learn how to remove an object using content aware fill in Photoshop.
In the above photo, to select the girl, I'll pick quick selection tool to make a selection of the girl, then I"ll make a copy of the selecti...
Fetching Second Highest Salary
If we want to find highest salary we can use max() function simply.
Example:
SELECT max(salary) FROM Employee;
It will return the highest salary from Employee table.
But if we need to find the second highest salary then we have...
How to remove duplicate key values in a Multidimensional array using PHP
Hello Reader's If you have an multidimensional array which you want to sort. Then PHP offers you many ways to do it.
Let's see the easiest way to achieve it:-
Array
(
[0] => Array
(
[0] => dave
[1] => jones...
How to convert string into an array using PHP
Hello Reader's! If you're having a problem to convert a string into an array then you can use the html entity in php.
Let's see the example below:-
&
then be sure to use html_entity_decode
// Input string //
$input = 'pg_id=2_parent_...
When, What & not to AUTOMATED?
QA plays a crucial part in product quality and product delivery. In agile development procedure like scrum, QA needs to work in highly flatten verification execution cycles. One of the provocation the QA engineer's face is that the coding that wa...
ASP.NET MVC: How to Check Session Timeout and Redirect to Login Page
The following post captures the implementation details to manage session timeout in ASP.NET MVC. If session has expired we will redirect the user to login page
First you need to make modificaions in web.config as below:
<system.web>...
Create an ASP.NET MVC controller that returns an Image
It is a common requirement where we need to create a controller that simply returns an image.
Following is one of the possible solutions for implementing the above functionality.
We need to add the following code on controller page
public...
How to Upload a file in ASP.NET MVC
The following post captures the implementation details for uploading file in ASP.NET MVC.
First we need to create HTML form which would receive the file as input:
@using (Html.BeginForm("Index", "Home", FormMethod.Post, new { enctype = "m...
How to create a dropdownlist from an enum in ASP.NET MVC
Many times in an application we need to populate a dropdown list from enum.In the following article
I will show how to implement the same using SelectListItem.
First we create an enum, FileType, under the Models folder as shown below.
na...
How to declare model attribute in Odoo
In a Model attribute order should follow the series given below.
Private attributes (_name, _description, _inherit, ...)
1. Default method and _default_get
2. Field declarations
3. Compute and search methods in the same order as field declara...
.NET must have tools
1) .NET Reflector
Reflector is used to examine and decompile. NET assemblies in IL, C#, and Visual Basic. You can view the class hierarchies of .NET assemblies, without having
source-code for them. This is a must have for any .NET developer...
What is the difference between Error and Exception?
Error is the real something happen from exception. Exception is the way to catch the error. For example when you get the variable let say String str, we got Null Pointer. The error is because our variable has NULL value and it catch with Exceptio...
How to use Symbols in Odoo ?
Odoo Python Class : use case for code in api v8, underscore lowercase notation for old api.
And Variable name use following classes and Api to given below.
use camelcase for model variable
use underscore lowercase notation for common variable....
ImageMagick basic
ImageMagick is a free available collection of programs for image manipulations. You can essily play with 200 different extensions images with ImageMagick. You can
install it with the help of simple commands on unbuntu.
sudo apt-get install ...
String in JavaScript
strings in JavaScript : Like other languages JavaScript also supports the string objects. String object is kind of collection of characters. We can store single character or sequence of characters in the String object.
Example of defining stri...
Best way to send array with URL using PHP
Hello Reader's! If you want to send an array as a Param with the url then you can use the serialize and deserialize option from PHP Lets see the example below:-
<?php
$array["a"] = "Thusitha";
$array["b"] = "Sumanadasa";
$array["c"] = "L...
What is Software Testing and How it is done in the real world?
Software testing is a part of software development life cycle in which we verify the requirement given by user. When we start testing of a software first of all we take a look and do analysis of user stories or use cases, then on the basis of the...
FPDF class php
FPDF is a library to handle the pdf files. FPDF stands for free pdf. It provides high level functions to generate the pdfs. FPDF does not require any support. It is
pure php library. You can download the library from this website http://www.fpd...
How to use Imports file in Odoo
The imports are ordered as
1. External libraries (one per line sorted and split in python stdlib)
2. Imports of openerp
3. Imports from Odoo modules (rarely, and only if necessary)
Inside these 3 groups, the imported lines are alphabetically ...
How to detect Android Softkeyboard
When user hits the BACK-Button on his android device, the keyboard disappears. How can I catch that event? In order to track softkeyboard is open or not, this tutorial is helpfull for you, and you will easily dissmiss the softkeyboard by pressing...
Multi-day event spans 1 day short in FullCalendar
When we Integrate The Full Calendar in our web applications/ blog if we come accross an issue in which the multi-day event spans 1 day short. Therefore to get rid of the issue do the following steps with the start and end date as mentioned below....
PHP date_add() Function ?
The date_add() function is mainly used for adding some days, months, years, hours, minutes, and seconds to a date.
Syntax of date_add()
date_add(object,interval);
you can take belloe example for better understanding:
<?php
//her...
Friend Class in C++
Friend class in C++
Friend class
Protected and private members of a class cannot be accessed from outside the class in which they are declared. A friend class can access these members of another class in which it is declared as friend.Frien...
File handling operation in c language
File handling in C
In C programming language we use a structure pointer of file type for declaring a file.
Syntax:-
FILE *fp;
The fopen() function is used to create a new file or to open existing file.
Syntax :
*fp = FILE *fo...