Wednesday, 13 April 2016

CSRF with Spring and AngularJS


csrf angularjs.jpg
In this blog, We will see how to configure CSRF protection and how to make AngularJS allowed to send information with a CSRF token to the server.

In AngularJS, $http service reads a token from a cookie which is named by default XSRF-TOKEN and sets it in HTTP header with name X-XSRF-TOKEN. Once it is configured, now spring running on server is supposed to insert token in cookie inside HTTP header. Now server can verify that the cookie matches X-XSRF-TOKEN HTTP header.
Let's see how it can be configured with Spring.

Step 1. Configure and enable CSRF.

Spring security comes with CSRF protection enabled. Please have a look of my previous blog.

Step 2. Configure Cookie in HTTP Header to enable CSRF for AngularJS

Here is the code below in your security configuration -
  1. http.csrf()
Read full Blog about CSRF with Spring and AngularJS at Findnerd.

Monday, 11 April 2016

Difference between High Level and Low Level Testing & their advantages


Difference vs Advantages.jpg

Difference between High level testing and Low level testing:-

High Level Test Cases:- These test cases define the functionality of a software/product in a broader way without going into deep functionality. Like if we have to write high level test cases for login functionality we'll test that 'User should be able to login success full with valid credentials'.
Advantages :-Its advantage is that a tester is not bound to follow the test cases step by step and thus it gives a chance to explore more edge cases. This also increases the chance to find new bugs.
Disadvantages:- Its disadvantage is that its not sure that all scenarios are covered and its difficult for an inexperienced tester to work with these test cases. Read more about Difference between High Level and Low Level Testing & their advantages at Findnerd.

About Findnerd
FindNerd was started as a Q&A Portal and Knowledge Base for people of Evon Technologies. Gradually, we, at the company, made it more interactive and evolved it as a Collaboration Tool. It began to get exciting and next; we branched out and evolved it as a Project Management tool and Employee Productivity Management tool too. Soon, we realized that now when we have savoured the taste of the multi-functional platform, why not to present it to the world to use!
Read more about Findnerd here>> Findnerd-A Social Network for Developers

Laravel 5.0 Creating Download CSV Link


laravel-logo.jpeg
In Laravel, many times we may need to create a link to download sample CSV file. So that user can download sample CSV file from our website and upload correct formatted file.

It's a very simple task and to accomplish that we need to follow following simple steps.
Step 1 :- Creating a link to download sample CSV file in our view.
  1. {!! Html::link('admin/employee/sample-csv-download', 'Download Sample CSV', array("class" =>"btn btn-default", "style" => "")) !!}
Step 2:- Make a route configuration in your routes.php
For more You can read full Blog about Laravel 5.0 Creating Download CSV Link at Findnerd.

Thursday, 7 April 2016

How Offering Sales Can Benefit Your Internet Business.


4268.png

There's an incredible technique online that can give you a sudden surge of requests immediately. Do you know what this method is? Well… I'm discussing the force of offering sales in your business. People love a decent deal – particularly in the event that they're love with the quality of your items/products.

I can recall when I was younger that significant retail stores would have some non-offering items out for sale outside of their store. These things costs were essentially reduced for the attempts of inspiring somebody to examine them and purchase. Also, trust it or not, this was a decent and fruitful technique/strategy.

I trust you can do likewise as well. It's very easy to take a considerable measure of non-selling things/items and pack them together to create 1 "super" product – all reduced to remove stock, and to profit from moderate offering things.


Wednesday, 6 April 2016

Difference between AngularJS Expressions and JavaScript Expressions


AJS.jpg

Like JavaScript expressions, AngularJS expressions can contain literals, operators, and variables.
Unlike JavaScript expressions, AngularJS expressions can be written inside HTML.
AngularJS expressions do not support conditionals, loops, and exceptions, while JavaScript expressions do.
AngularJS expressions support filters, while JavaScript expressions do not.
Example:
  1. <!DOCTYPE html>
  2. <html>
Here is not the end.. To view the full blog about Difference between AngularJS Expressions and JavaScript Expressions visit Findnerd.

You can also ask questions over Findnerd such as Android, C, Javascript, Java,iOS developer forum etc and also  have a look for its various replenishing features like Desktop Recording Tool, Project Management Tool etc.

Tuesday, 5 April 2016

Kanban view in Odoo-9


odoo.jpg

Kanban view defined as “A kanban view shows a set of cards possibly grouped in columns” it is important for odoo module to describe xml functionality. For example you can see below code which is use in .xml file.
  1.   <record model="ir.ui.view" id="view_openacad_session_kanban">
  2.       <field name="name">openacad.session.kanban</field>
  3.       <field name="model">openacademy.session</field>
  4.       <field name="arch" type="xml">
  5.           <kanban default_group_by="course_id">
  6.               <field name="color"/>
  7.               <templates>
  8.                   <t t-name="kanban-box">
  9.                       <div
Read full Blog about Kanban View in Odoo-9 at FindNerd.

Monday, 4 April 2016

FindNerd Project Management Tool



Hello Technerds,Today we are going to introduce you with our Online Project Management Tool. By using this tool at http://FindNerd.com you can Collaborate with team and clients to monitor task, bugs, resources and sprints easily for Free.