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

Workers in Rails

Sometimes to improve the performance of application we need to schedule some slow tasks into background, that is where Workers comes in the picture. So instead of executing slow tasks during the HTTP request execute them into background. In ...

Difference between Hashing and Encryption?

Hashing: A hashing is a protected version from string or text in the form of string or number. A string or number is generally have a fixed length. Hashing is a irreversible process, when we apply hashing on some string then it can't be deco...

Audio Recorder

To record the audio, Android provide a class "MediaRecorder" , you just need to create its instance. Step 1:- In your xml, take two buttons to start and stop recording. Step 2:- Declare the needed variables private MediaR...

Image Flipping Effect By Css

Flipping Image can be extremely valuable these days. The most basic use-case for flipping images that I can consider would incorporate some sort of image on the front, and some data related to it on its  back. By using below code we can u...

Best practices for error handling and logging

In this blog I have summarized the best practices for error handling and logging. 1) Appropriate use of try/catch. 2) Log sufficient contextual information. All exceptions are logged(with userid , page or proc name, timestamps ,inner except...

SQL Server : Best Practices

Following is a list of best practices for SQL Server 1) Use correct formatting    Following is a sample select query for reference:             SELECT X.column...

Responsive table using CSS3 and HTML5

We can easily create the table responsive using CSS3 and HTML5 thats makes our table more readable on small screen without the use of javascript. In my example ,I had simply used the table tags such as <table></table>, <thead>...

Send correct emails depending on customers language settings

Hi guys, When customer creates an account in language other than english (e.g. german) Magento sends an email using default english template account_new.html. Email template account_new.html in app/locale/de_DE/template/email seems to be ignored...

Install symfony using composer

To install symfony following are the list of required requirement: - The minimum version of PHP should be 5.5.9 - Need to enable JSON - Need to enable ctype - Your php.ini should have the date.timezone setting   Run the following c...

How to fetch data from one table in cakephp

Suppose we have a table name employees in which a number of employees are there. id Employee Age 1 User1 23 2 User2 34 3 User3 22 4 User4 35 ...

Android app development for beginners 3: Building a simple Simple User-Interface

In this tutorial you'll learn: 1. How to interact with a simple User-Interface 2. LinearLayout and some basic attributes of the basic UI elements.

How to check connection errors and change default database in MySQLi

My previous articles titled Connecting MySQL database with MySQLi Object Oriented style and How to connect MySQL database using the MySQLi procedural function demonstrate about different ways to connect to a MySQL database with PHP application. T...

How to add Team members to Projects in SharePoint 2013 using CSOM?

In SharePoint, while creating projects we would also have to add team members for each projects. Team members can contribute source control and other team item activity. Team member are of two types: 1.Enterprise team member 2. Non enter...

How to set default Unit of Measure Categories(UOM) in odoo-9

In odoo-9 we create functional fields and validate to function and set also set to default value of Unit of Measure Categories(UOM) in selected form. Use this step show in given below Step1- First create fields in your own module in .p...

Associations (Linking Models together) in cakephp

Association is the relationship between two models. By using associations we can join tables. It is like a glue between different related models. Cakephp provides us very powerful feature of linking models together, just by call of one function. ...

How to implement SMS Gateway in cake php

Hi Reader's,   Welcome to FindNerd, today we are going to discuss how to implement SMS Gateway  in cake php. In web applications sending SMS Gateway is a very important feature for sending SMS in a application. So clickatell ...

How to create floating toolbar in android ?

In this blog we have defined Floating Toolbar which is new component into android with the introduction of material design. Floating Toolbar view just expand after click on Floating Action button with some icons. With the help of some followin...

Coin exchange problem solution Implementation in Java

Hi, In this blog I tried to provide an efficient solution for a famous coin exchange problem using dynamic problem in bottom up approach whose time complexity is O(mn). Problem Definition In coin exchange problem you can think of ...

How to rotate a text

As we see in many  website some text get rotated and other text come in its place this is known as text rotation. It is a very basic thought where we can display more than one word without taking much space by simply rotating an individual w...

Small tutorial about local.xml in Magento

Hello Readers, This tutorial will guide you about local.xml file in magento. The local.xml file does not exist by default. We will have to create it in the layout folder of current theme. By Using local.xml, we can modifying the existing layou...

Remember Me using Cookie in CakePHP

Remember Me using Cookie We can remember username and password by using Cookie. As we know cookie resides in a browser and used to store user data and other informations. We will remember username and password by using cookie when user chec...

HTML5 Semantic Elements

SEMANTIC ELEMENTS The word semantic is the study of the implications of words and  phrases in language. A semantic element clearly depicts its intending to both the browser and the developer. These are the elements that are used...

How to change the Product Price at the time of adding it to cart in Magento?

In Magento sometimes we are required to apply our own custom price on the products while adding to the cart.  To do so we can work upon the event checkout_cart_product_add_after.   Lets see how we can do it: 1. Create a module...

Dynamic DataBinding In Android

This Blog simply illustrate how to use dynamic data binding in android Tired of writing same code again and again for finding views and setting data into it ? here is a simple solution which will now reduce the developer's effort for do...

How to create web service in Odoo-9?

In Odoo-9 you have to create module and xmlrpc folder in server and install the apache2 in your system. After this follow the step given below: Step1- First create apache2 for our system using the command show below sudo apt-get instal...

How to get images on Canvas from device

Step 1:- Create a custom CanvasView class that must extend View class and includes below function.   1) Declare the required variables in CanvasView class private Drawable mImage; // width and height of original image ...

How to add value in text box using click of button in odoo-9

In odoo-9 first we have to create the three fields in .py file and then add two fields and store it in third fields to click the button to help the get_total function. Then pass get_total function in button. Use this point show in below: 1-...

Using rolify devise and cancan gem together for user authorizations and access in rails

Hi friends, Whenever we create an application, there is always a case where we want to have different kind of users who needs to login into the app but they have different access rights, so that some functionalities are hidden for some users and...

Form objects pattern (refactoring)

In previous tutorial we discussed refactoring code and decorators pattern. In this tutorial we will take our discussion further to form objects pattern. We use forms in our application to take inputs from user. The form data is received in our co...

dependent: :destroy in rails models

Let's consider this example.We have two tables events and tags in our database having a many-to-many relationship between them.So We create a third table taggings behaving as a junction table .So taggings table has a many-to-one relationship ...

How to use CollapsingToolbar with RecyclerView

In the below example I have created a Collapsing toolbar. When you scoll your recycler items then your header image will hide. Here In actvity_main.xml I have first created CoordinatorLayout as root element, In CoordinatorLayout I have added AppB...

Sending JSON data from one HTML page to another using Session

Here is the code of the send.html file: <ul id="ul-list"> <li><input type="text" class="input-text"><input type="text" class="input-text"></li> <li><input type="text" class="input-text"><i...

How to resize a div with mouse drag with html css and javascript

Have you ever taken a risk at doing some movement utilizing plain Javascript or moving DIVs here and there or resizing them?! All things considered, you know then the amount of torment it is as not just you need to handle the troublesome piece of...

OWASP TOP 10 VULNERABILITIES

  Injection-A1 :  The A1 vulnerabilities is a injection attacks. In which sending data was infected Like  SQL command which can bypass the authentication.   Broken Authentication and Session Management-A2 : The A-2 ...

Flipping Effect using CSS3

Introduction to CSS3 CSS3 is the successor of CSS2 which comes with various new modules such as selectors, borders and background, 2D/3D Transformations, text-effects, box-model, Animation and Multiple column layouts etc.   Flipping...

Binary Search using Java

Binary search is an efficient linear search algorithm which is also known as half-interval search or logarithmic search. In this algorithm we try to find the target value inside the linear structure. The range should be sorted in order to apply b...

How to Save the selected item of a dropdown

If we want to save the selected item of a dropdown, we can save it by simply using Selectmenu widgets. Below is the simple example of Selectmenu widgets:- HTML- <body> <div class="example"> <form action="#"&...

Connecting MySQL database with MySQLi Object Oriented style

My previous article "How to connect MySQL database using MySQLi procedural function" demonstrates the use of MySQLi procedural function mysqli_connect() is used to connect with a MySQL database and MySQLi extension also provides an Obje...

javascript:How to remove element of an array

Hii, This post is in the continuation  with my previous post in which i had discussed about  inserting mutliple values in  an array using different method as per requirements and in this post i will discuss about removing elemen...

Isometric-art

Hello Everyone,   In this blog, I am going to elaborate on isometric art. Later on I will introduce softwares which are best to design isometric art. So let's start with this - First we clear our basics   What is pers...

List of phonegap addEventListener

In phonegap application there are many events that can be used and for these events the application code may add a listeners. Lets take an example to evaluate this thing: HTML: <html> <head> <title>Events Ex...

Send email in CakePHP from localhost using CakeEmail Component

Email is the important functionality in web applications. CakeEmail is a class used to send Email from your application. By using CakeEmail class you can send email any where in your application. When we use CakeEmail in our application, it re...

Interactor in Rails

Ruby on Rails Interactor Before interactor we use to write complex business logic in some class in the ActiveRecord /models directory and that class can have too many responsibilities so while testing we could stuck between tediously slow te...

Limit the number of records to be displayed in cakephp

Showing a limited number of records per page has been a basic part of each application and it is very difficult task to bring out. CakePHP provides a easy way for limiting record to be display or for paginate data. The PaginatorHelper gives us...

Angularjs Scope

In AngularJS, Scope is a javascript object by which we can join our controller with the views. In scope we will contain model data which we can access by using $scope object. The use of $scope is easily explained by the simple example. Example...

Except Clause in SQL

Except Clause: It combines two select statements and return tuples from first SELECT statement which are not returned by second SELECT statement. It is used to achieve Distinct and Not In queries operation in a single clause(Except). S...

How to get city name with geolocation API from a input form ?.

Hi Reader's,   Welcome to FindNerd, today we are going to discuss how to get city name from google maps from a PHP input form. If you are trying to get city name displaying location information based on the IP address geolocation fro...

How to apply Custom Discount in magento

In magento sometimes we are requiered to apply our own discount on the cart total section.  To do so we can work upon the event sales_quote_collect_totals_after. Lets see how we can do it: 1. Create a module with namespace as Custom a...

Show a pdf file in ios WebView in swift

Hi to load a swift file in webView in ios :- 1- Add a WebView in your viewController 2- Create an IBOutlet for this. 3- set the delegate fro webView. 4- if you want to load the pdf from server or from an url use the function loadFromU...

Image into base64 dataurl using javascript with demo

Converting image in base64 data url reduces the count of HTTP request and will increase the performance of the website because the load time to transfer data over the internet is too long and it will save the server request time. There are man...
1 110 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: