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 ...
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...
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...
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...
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...
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>...
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...
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...
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...
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...
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...
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. ...
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 ...
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...
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 ...
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...
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
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...
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...
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...
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...
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...
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
...
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-...
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...
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...
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 ...
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...
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...
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...
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 ...
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 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...
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="#"&...
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...
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...
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...
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...
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...
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...
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...
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:
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...
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...
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...
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...
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...