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
Operator operloading in C# via a custom Vector3 class
using System ;
class MyVector3{
public float X {get; set;}
public float Y {get; set;}
public float Z {get; set;}
public MyVector3(float x, float y, float z){
X = x ;
Y = y ;
Z = z ;
}
public static MyVector3 operato...
count pixels under each finger in multi touch in android
Hello I need to count pixels that are covered by each fingers in multi-touch.When fingers down one by one it should plus pixels in count and finger up it should subtract pixels of that finger.I have did this but it is not getting exact counts i d...
Pagination in rails using 'will_paginate' gem
Lets suppose we have articles listing page and we need to show the 10 article per page. So there are we can use 'will_paginate' gem to divide the articles in number of pages.
There are the following steps to integrate the 'will_pag...
multiple angular app in one page
While working in jsp with some parts common in few pages and ran into a problem to attach multiple apps to a single jsp page. After doing lot of search I found this one the best solution. Create a new app and take all other apps as an parameter. ...
Integrate bootstrap-sass in Rails
Bootstrap is an open-source web design framework from Twitter.
Bootstrap framework makes it easy for a developer to create a layout for an application. There are predefined CSS classes for creating common components such as widgets, elements, li...
jquery autocomplete in AngularJs not working on first click
Hi,
I was using jquery autocomplete functionality in angularJs using directive. Whenever I tried to load static data it was working fine, but when I loaded data from server side the first click was not working.
I was using code someth...
Lag in receiving packets from ble device
Hi
I am using a ble device which send me data packet every second in onCharacteristicChanged() method. But the problem is, the above method not called every second as expected and there is a random milliseconds delay. I searched a lot on googl...
Saving objects into SharedPreferences
To Save Object values into SharedPreferences, you can use GSON library.
To save objects follow these steps:
Add Gson library dependency in your Gradle (App Level):
dependencies {
compile 'com.google.code....
How to use MaterialDesignIconicFont in iOS
With the help of MaterialDesignIconicFont we can use icons as texts and set them on label or title of buttons etc.
To include the font first download the attached Material-Design-Iconic-Font.ttf file at the bottom of this blog.
...
Object prototype in Javascript
Every javascript object has a prototype by default. And the prototypes is also an objects.
All objects in JavaScript inherit methods and properties from their prototype and we can override it, but we can not override an Object with a...
How to set favicon in Asp.net mvc
Whenever you open any website, you see an small icon or image on left side of the window tab, That small icon is called Favicon. If you have not noticed earlier,then just open any website and check.
For an example: open www.w3schools.com and s...
Creating objects in JavaScript...
Hey guys in this blog we are going to look at creating objects in JS, having properties and methods attached to them :
var car = new Object();//Creating a brand new object...
//Adding properties to the newly created object ...
car.Wheels =...
How to print the data from my array?
I want to print a file with the data of this struct.
struct dados
{
char matr[50];
char ele[50];
float ela[50];
float final[50];
int freq[50];
float recu[50];
...
Create rake task to import csv file in rails
Lets suppose that a file named product.csv exists into db folder in our applications. To import this file we will create file import.rake in my_app/lib/tasks/.
The import.rake file looks like...
require 'csv'
desc "Import product from cs...
Import products from a CSV file in rails
Lets suppose we want to import a products CSV file in rails i.e. reading rows from CSV file and inserting its into a table. There are the following steps which we will use to import CSV file.
Create an application using command
rails new ...
How to blur UIView in iOS?
Hi Reader's,
This blog includes the code which is used to blur UIView in iOS in a very simple way. This code can be used according to the need of the user to blur the UIView. Code is given below which includes how to blur UIView ...
Analytics for Ruby
To integrate analytics into Rails application analytics-ruby gem can be used. By using this gem we can identify users and track their activity.
To install into gemfile:
gem 'analytics-ruby', :require => "segment"
After tha...
jQuery .bind() vs .delegate() vs .live() vs .on() Methods
Introduction
jQuery is a compressed and fast JavaScript library which can be used to facilitate event handling, AJAX interactions , HTML Document traversing and animated effects for the website development.
jQuery is a free open-source libr...
How to make a Plasma effect by using transparency mode in illustrator?
In this tutorial, we"ll learn to make Plasma effect.
Step 1: Firstly, we need to open a new document with any size and make sure your color mode is in RGB. Create a rectangle on the canvas.
Step 2: Now Select a rectangle and Fill with ...
Installation of ionic 2.
Hello Readers,
We can create apps with ionic2 very fast as ionic1. To create a ionic project first of all we need to install ionic2 beta version SDK via CLI.
$ npm install -g ionic@beta
Important : First of all we n...
LightBox
LightBox is a plug-in we use to create image gallery with the image overlay effects. Like you must have Google for some images once in your life and on clicking on a particular image, the size of the image zooms out which we define as an overlay ...
How to create Animation using XML code in android?
This tutorial will guide you to do animation in android. There are two ways to do animations in android , through XML code or java code. In this tutorial, we are using only first way through XML code. In this tutorial, we are defining animations ...
set the correct answers equal to 1?
i'm working in query to insert answer into answers table and i need to set to correct answer equal to 1 and the incorrect answer equal to 0 for that i'm using radio buttons to assigned value into the answer but every time when i run the q...
How to Write a Python program that Stores App Information in A Text File?
Write a Python program that reads in from a text file. You should briefly prepare a textfile containing information about items sold in a bakery. The information like type of buns,cookies, cakes and more with the price lists should be i...
How to implement Picaso Image Loader Library in Android?
In this tutorial, we will know that how to implement Picasso Library to loading images in android.
This is an open source library to loading images in Android. It provides a functionality to fast processing and caching data into memory. ...
Money-Rails
While working on any e-commerce application,we need to deal with money and currency conversion.Money-Rails gem can be used for that. Money-Rails is a Ruby Library that integrates money gem with Rails.
Some of the advantages of using ...
How to change query string value on keyup of a text-box?
Let's suppose we have a situation where we want to change query string value of anchor tag href on text-box keyup event
Text-box keyup event is triggered when we release a key on the keyboard.
We are considering that our HTML page...
getModel() and getResourceModel() in magento
Magento have two parts first as the model, with the Model it handles the business-logic, as Entity Attribute Value (EAV) Model, and the another Resource part, which only deals with talking to the database.
The collections in magento ...
Tower of Hanoi Implementation in Java
Hi Readers,
In this blog i will provide you the Java solution for the famous Tower of Hanoi problem using Stack.
Problem definition
Tower of Hanoi is a mathematical puzzle. It is also known as Tower of Brahma or Locus' Tower. Th...
Crop UIImage in iOS
Hello all !
To crop an UIImage in iOS the following code can be used :-
- (void)viewDidLoad {
[super viewDidLoad];
[_originalImage setImage:[UIImage imageNamed:@"Scenery.jpg"]];
CGRect rect = CGRectMake(...
CSS3 Dropdown menu
Hello reader's in this blog we are making a css3 dropdown menu with custom html. We dont use <select> element for creating it. I have used list <li> element for making the dropdown of the menu.
HTML:-
In the html...
Software Prototyping
What Is Software Prototyping ?
Software prototyping acknowledges to the constructing software prototypes which shows the behaviour or characteristics of the expected software in the time of software development. This prototype software does no...
Converting a Decimal to a Hexadecimal Value
Hello readers in this blog we will discuss about the conversion of a decimal into a hexadecimal value. In this case if we have a decimal value. we have to find its hexadecimal equivalent, we use the Number object’s toString method :-
S...
Genie effect on Ubuntu
Hi there,
This is an interesting blog if you want to use Mac OS like Genie effect on your Ubuntu machine then this blog might be useful for you. Follow these steps and at the end you will get changed minimized and maximized animation...
Software Test Managers Roles And Responsibilities
Hello Readers,
As we know that software ‘Test Manager’ is a high level person in the testing team. Test manager have a lots of roles and responsibilities in the team. Every Test manager play his/her role and responsibility thr...
Pure CSS3 mobile menu
Hello reader's, in this blog we are going to create a navigation menu for mobile with CSS3 and HTML. I am using the Javascript for the clicking function. Here i used "+" Adjacent sibling combinator selector to make click function fo...
How to change the font family using JQuery?
In this blog, we will see how we can change the font family of text through jQuery. In this blog we have two div in the left div we show the text and in the right section, we make a selectbox( ) from which we select the particular font whatever y...
Multiple Ways To Concatenate A string using JavaScript
Hello, readers . In today's blog I am trying to give multiple ways to concatenate a string using JavaScript.
Basically the term “Concatenate” means joining two or more strings and returns a new joined string .
&nbs...
Sorting an Array
Hello Readers! In this blog we are going to focus on the sorting method of an array in javascript. We use sort() method to sort the array in Javascript. The possible order in which an array can be sorted can be either in ascending or descending, ...
Top 5 SEO Keyword Research and Analysis Tools
With so much competition vying for attention, especially when it comes to search rank, you need to take extra care.
Nowadays, SEO(Search engine optimization) is a vital part of any Digital marketing campaign. And we all know, the fir...
What Are Graphical User Interface Design Activities ?
Graphical User Interface Design Activities-
There are various operations executed for the designing of any GUI. The methods for any GUI designing and accomplishment is similar as SDLC. As we know that, there are few SDLC models like ...
What is XML Sitemap and How Does It Work?
What is a Sitemap?
A sitemap is an organised list of the web pages, videos, pictures and other data in a website. It is a file that can help the major search engines like Google, Bing, Yahoo, Yandex etc. to crawl and index the web pa...
Converting Strings in a Table to Numbers
Hello reader's in this tutorial we will convert string in a table to a numbers, for doing this we have to access the values in a HTML table and for processing we have to convert into numbers.
Using the Document Object Model (DOM)...
The Ultimate Cheat Sheet On Social Media Image Dimensions
In this booming era of technology, social media has become a vital part of everybody's lifestyle. We use social networking platforms not only for entertainment purposes but also for some other more important things like business, research and...
Acts As Votable
Acts As Votable is a Ruby Gem. It is used to give user a way to Like and unlike something(Post, Link etc) and update the counter each time they click without refreshing the page.
This gem is specically written for Rails/ActiveRecord models, and ...
Node.js Event loop
The event loop in Node.js works or runs in a single thread. That shows the application developer the code he/she will write that will be checked on a single thread. There are n number of threads which node js uses itself through libuv. But we don...
How to create keyframe animations using css3?
In this blog, we will learn how easy to create rotating and translating images by using css3 keyframes, here we will create spinning wind turbine and a blue sky with clouds floating in the background.
In this example I have taken images of clo...
Adding custom logo in wordpress
From a client's point of view, when the Custom Logo feature is provided, changing the logo of a site is really simple. That was the point of the element all things considered. To use the custom logo feature you need to declare it. T...
Validating Array Contents
Hello reader's in this tutorial we will validating the array contents. We want that array meets the certain criteria. I am using the array object's method to check every given element.
For example, the following code checks an alphan...
How to implement animation on custom view in android?
In this tutorial, we will know that how to implement animation on our custom view in android through a simple example using a Library AndroidViewAnimations. The Animation is a technique which can effect to any still view. In this tutorial, ...