Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

How to Convert string to an int?

We can convert the string to an int by using following methods: 1. Convert class 2. Parse method 3. TryParse method 4. A custom method   1.Convert class This method is used to convert one datatype to another datatype. Convert...

How to move UITextField when keyboard shows ?

When we are entering text in a textField and that textField is at bottom of the screen then we need that the textField should appear above the keyboard and the keyboard should not hide the textField.. For that we need to set the height of keyboar...

Policies in Rails

For an application we need some authorization method, Policies in rails is one of them. There is one library Pundit used for authorization. Pundit gem uses object oriented design and Ruby classes. To start with add this gems into your Gemfil...

.Net Boxing and Unboxing explained with example

Boxing The automatic conversion of value type e.g int,char,float etc to a reference type e.g object is termed as Boxing. In general the value type variables are stored in memory space called stack but whenever there is a boxing process the val...

Draper decorator (rails refactoring)

In this tutorial we will have a look on Draper gem, which helps us decorate our views more like in object oriented approach. Its a great gem and provides us lots of options to decorate single object and collection of objects. We discussed present...

Stack View

Stack view is a good option to give less number of constraints to the storyboard items. If we are using stack view then we don’t need to give constraints to each label or button or any object, we can directly place labels or buttons or anyt...

How to use forEach function to get list value in Angularjs

Here I created a small function to get the list values through "forEach" function of Angularjs. In the given functionality, I get the list items and push it in to the "listTextVal" array. Here are the complete Angular funct...

Size Class and Auto Layout

Size Class is used when we need to have different constraints for different screen sizes or orientations. The following table shows how the size classes apply to the different devices and orientations:   Verticle size C...

Use StackView in Android

StackView is used to display views in StackView. StackView is added from API level 11.    Steps to implement StackView 1. add StackView in layout . <StackView android:id="@+id/stackView" android:la...

How to create marquee effect on imageview in Objc

To create marquee effect first set scroll view either via storyboard or via code Here in this example I am setting up scroll view via code. declare these variables     UIScrollView *scrollView;     NSTime...

Variables in Ruby

There are 4 types of variables in Ruby: Global, Local, Instance and Class. Ruby is a language where a variable can contain any type of object, you can assign a string to a variable which has previously an integer value. As in ruby we generally do...

Integrating Omniauth with Devise in Rails

In this article we will going to give privilege to users to log in by their social networking profiles. Here we will discuss to log in by facebook. First we will going to install Devise gem. Now when we have installed and integrated Devi...

Manage Export in PIM

Hello readers This post gives and overview of the Export module in PIM. It describes how Export works in Product Information data. Export The export module in PIM Desktops is used to export the product data to electronic catalogs. I...

Devise gem in Ruby on rails

Devise gem is one of the highly recommended gem used in Ruby on Rails. It has many features such as Email sending, locking User, Authenticating user and many more.   To install Devise gem, you need to specify it in your Gemfile g...

CSS preprocessors

We frequently incorporate frameworks such as Bootstrap with our rails application. For going beyond the standard CSS, We require CSS preprocessors. They not only enhance the standard CSS but also provide several other useful functionalities such ...

Different types of cross-site scripting

Cross-Site Scripting(XSS) is a type of attack in which attacker can insert and run the client side script in the web application. It occurs when user does not validate or encode the user inputs and show it in the browser directly. The most common...

MySQLi functions to run a query and checking for errors occcured on last function call

After connecting database successfully, the next important task in an application is performing the query on the connected database. This article provides the details about how we can run a query to a MySQL database using mysqli extension. The ar...

Xpath Nodes

Xpath Nodes: We will use following XML to cover Xpath nodes:   <Film> <title> Harry Potter </title> <Director> Mr. X </Director> <Producer> $500 </Producer> </Film> ...

ADO.NET : Best Practices

In this blog we will go through a set  of best practices for working with ADO.NET: 1. Database Connection  From performance perspective, it is important that While working with a database that we should open a connection with the ...

How to restrict a list of domain name in Email validation using JS with demo

If you want to validate your email field with a list of domain name and normal email validation, then we can do that with the help of following code: HTML: <div class="form"> <input id="emailAdd" type="text" onkeyup="emailVal()...

Writing Skinny Controller In Rails

Hi friends today I am going to guide you how you can make our controller skinny by following some basic object oriented approach in rails. Often we start writing our program business logic in our controller thus making mess of our controller as t...

Mobile Application Testing Tool

Tester can test mobile application with manual methods or with automated scripts. Please find the following automate testing tool below:   1.Appium :- It's an open-source testing tool for mobile and web application as well. Appi...

How to use EventBus in Android

EventBus is third party library which is best for communication with Activities,Fragment,Thread etc.  It simplifies the communication between components.  It is fast and less code use.   First of all add dependencies to gradl...

How to add CSS file and image file in Django?

In Django framework first we create the project and follow these step shown below: Step1- First we create a project in your Django. If you are not able to create a project then use this link. This link helps to create a project in Django frame...

Form objects with Reform gem (Rails refactoring)

We have been discussing refactoring in our previous posts. Next to our refactoring pattern, we will discuss few gems that can be used to improve our coding style.   In my last post i explained form objects pattern. Form objects are not...

Multiple Progress Bar using HTML, CSS and jQuery

Hello readers, In this tutorial I will guide you to create "Multiple Progress Bar using HTML, CSS and jQuery" which will helps to animate all progressbar's on a single click.   In mine code, I have set the max value for eac...

UiSplitView Controller in Swift

To Create a SplitViewController in swift follow the steps:- 1- Create a new Project. 2- Add a splitViewController. 3- Create a cocoaTouch Class inherits from UIViewController named as DetailViewController 4- Create another CoCoatouchC...

Checkbox and Radio Buttons using Bootstrap(Touch Friendly)

Hello Readers,In my example I have simply created Radio and Checkbox buttons using Bootstrap framework. We basically use checkboxes when we need to select one or several options from a given list while radio buttons are used for selecting one ...

Decorators in Rails

We use Decorators for cleaning up view logic and models of a rails application. So if we use decorators, models and views would be less complex. When we use decorator for a project we might have a 1:1 mapping between models and decorators which m...

Quick Sort Implementation in Java

In this blog I am going to explain Quick Sort and also implement it using Java. Quick Sort is an efficient sorting algorithm. It is also known as partition-exchange sort. Quick sort shows an average time complexity&nbs...

How to append the data of an input box to another div

Suppose we want to add the content of different elements in a single element, we use append for that. Below is the example which will append the text of an input into a div. HTML-  <div class="aside_header" id="s...

Reusability of Cucumber steps

Many times it has been noticed that some set of steps were required in another cucumber step. One way is to write previous steps again in the required cucumber step but this violates the “Reusability” feature of cucumber. So, the best...

Hot to use action script to call ANE ?

This post is helpful to generate action script to call adobe native extension files. Here we are using FDT IDE used to create Action script for ANE. 1. Download FDT from http://fdt.powerflasher.com/docs/Installing_and_Running_FDT#Standalone_In...

String Literals and Character Classes of regular expression

String Literals: The string literals is the most basic form of pattern matching of regular-expression. For example if regular-expression is srinivas and input string is srinivas then match will succeeds. Enter the regex: srinivas Ente...

Special Finders in Ruby on Rails

Rails has different types of finder methods that reduces your great amount of time. Suppose you want to create a record only if it doesn't exist already, your first approach would be first find the record and if is not already exist then you ...

IOT Testing

The Market got the revolution now a days, the revolution of hand held device. Smart Watches, Personal Computer, Home devices, Home TV, Etc all connected with Internet and are operated by hand hold devices like mobile and tablets. So, IOT “I...

How to add and access TextField in UIAlertController ?

The following code will show the Alert with textField :- UIAlertController *alert=[UIAlertController alertControllerWithTitle:@"Alert Title" message:nil preferredStyle:UIAlertControllerStyleAlert]; // to add textField [aler...

How to ignore specific files in git ?

Git is a version control system which keeps the track of changes made in the source code. There are many times, we do not want to upload the credentials file on git because those will be visible to all the stakeholders. Also, there are many files...

Cucumber Feature file in different languages

There are many applications that run on different geographic locations and teams from locations also work on the same project. It may be possible the different team members are comfortable in writing feature files in different languages. So, cucu...

Step Definitions in Cucumber

Cucumber is a command-line tool that reads specifications from plain-language text files but cucumber itself does not have any idea as how to execute the scenario steps. Cucumber needs step definition to convert Gherkin step into some desired act...

Gherkin keywords

Gherkin is a Business Readable language that Cucumber understands and describes the application flow. In cucumber each line should start with a Gherkin keyword. Gherkin provides the following keywords:   Feature Scenario Scenario...

custom scrollbar using jQuery UI

A scrollbar is a communication method or gadget in which nonstop content, pictures, or some other substance can be looked in a foreordained heading (up, down, left, or right) on a PC showcase, window, or viewport so that the majority of the subst...

How Cucumber Works ?

Cucumber a command-line tool has scenario inside the Feature file which contains a list of steps for the Cucumber to work through. Cucumber follow some basic rules or syntax called Gherkin to understand these feature files.   Since eac...

Animated checkbox using CSS3

Hello,readers I had created a simple animated checkbox using Font Awesome ( CSS Bootstrap file), along with pseudo elements, CSS3 Transition property and opacity. In my example, I had created an unordered list and placed checkbox tag along wit...

How to get iframe contents inside a jquery selector

This has been noticed that many times we try to locate an element and we do not get the element. The syntax of jquery selector is also correct but it is unable to find the element. In that case first take a look on entire HTML of the page and the...

Face Detection Android

From Google Play Services 7.8 Face Detection include in Mobile Vision API.  It helps to Detect and track faces from Live Camera or Video.   1. add google gms service  dependencies to gradle file. compile 'com.google.andr...

How to change the Order total in PDF and Add our custom field in magento?

In magento sometimes we are required to apply our own custom fee charges to reflect them when we generate the PDF from invoice in admin panel.  Lets see how we can do it: 1. Create a module with namespace as Custom and module as Fee. ...

Difference Between The Test Completion Matrix And Test Completion Report

Test Completion Matrix:- When we completed our testing activity than there are so many matrices which are accumulated to make the testing reports. Few of them are mentioned as below -- Total number of accomplished tests. Total number o...

How to set custom circular reveal effect animation in android?

Hello guys, In this tutorial I have defined about reveal effect animation and this tutorial will also help you to set custom circular reveal effect animation in  your app like whatsapp. First, Lets look what is reveal effect animation and...

PIM workflows

Hello Readers Today we will discuss about workflows for PIM Desktop. The steps to interrupt or continue an active workflow. Workflows A workflow is a group of tasks that are organized in order to automate any business process. ...
1 109 292
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: