 of rainfall from the Global Precipitation Measurement (GPM) mission with an assessment of the underlying susceptibility of terrain.
Steep slopes are the most important factor that make a landscape susceptible to landslides. Other key factors include deforestation, the presence of roads, the strength of bedrock and soils, and the location of faults.Personal Development Archives - Pause. Think. Consider.The Canadian Taxpayers Federation (CTF) is marking Labour Day by sending a memo to Ottawa: Crack down on the abuse of workplace sick leave by government employees.
CTF wants the federal government to address the issue when union contracts expire in 2014 and 2015.
Pointing to a Treasury Board survey, CTF said federal employees took 17.9 days of sick leave per year. That compares to 6.7 days by employees working outside the government, according to Statistics Canada data from 2012.
Employees at the Department of National Defence took 18.6 days on average in the 2011-2012 fiscal year, and that’s on top of paid vacations which range from three to six weeks, it said. Veterans Affairs employees booked off 24.2 sick days, averaging more than a month of sick time, the CTF said.<reponame>naveena12/Collobration-chat
package com.niit.colloboration.controller;

import java.util.List;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.niit.colloboration.model.Friend;
import com.niit.colloboration.model.User;
import com.niit.collobration.DAO.FriendDAO;

@RestController
public class FriendController {

    @Autowired
    FriendDAO friendDAO;

    @Autowired
    Friend friend;

    @RequestMapping(value="/myFriend",method = RequestMethod.GET)
public ResponseEntity<List<Friend>> getMyFriend(HttpSession session) {

            User loggedInUser = (User) session.getAttribute("loggedInUser");
            List<Friend> myFriend = friendDAO.get(loggedInUser.getUser_id());
            return new ResponseEntity<List<Friend>>(myFriend, HttpStatus.OK);
    }

    @RequestMapping(value="/addFriend/{friendID}", method = RequestMethod.POST)
    public ResponseEntity<Friend> sendFriendRequest(@PathVariable("friendID") String friendID,HttpSession session) {

            User loggedInUser=(User) session.getAttribute("loggedInUser");
            friend.setUser_id(loggedInUser.getUser_id());
            friend.setFriend_id(friendID);
            friend.setStatus("N");
            friend.setIsonline('Y');
            friendDAO.save(friend);
            return new ResponseEntity<Friend>(friend, HttpStatus.OK);
    }

    @RequestMapping(value="/unFriend/{friendID}", method = RequestMethod.GET)
    public ResponseEntity<Friend> unFriend(@PathVariable("friendID") String friendID, HttpSession session) {

            User loggedInUser = (User) session.getAttribute("loggedInUser");
            friend.setUser_id(loggedInUser.getUser_id());
            friend.setFriend_id(friendID);
            friend.setStatus("U");//N -> New, R-> Rejected, A -> Accepted
            friendDAO.save(friend);
            return new ResponseEntity<Friend>(friend, HttpStatus.OK);
    }

    @RequestMapping(value="/rejectFriend/{friendID}", method = RequestMethod.GET)
    public ResponseEntity<Friend> rejectFriendFriendRequest(@PathVariable("friendID") String friendID, HttpSession session){

            User loggedInUser = (User) session.getAttribute("loggedInUser");
            friend.setUser_id(loggedInUser.getUser_id());
            friend.setFriend_id(friendID);
            friend.setStatus("R");
            friendDAO.update(friend);
            return new ResponseEntity<Friend>(friend, HttpStatus.OK);
    }

    @RequestMapping(value="/getMyFriendRequests",method = RequestMethod.GET)
    public ResponseEntity<Friend> getMyFriendRequests(HttpSession session) {

            User loggedInUser = (User) session.getAttribute("loggedInUser");
            friendDAO.get(loggedInUser.getUser_id());
            return new ResponseEntity<Friend>(friend, HttpStatus.OK);
    }

    @RequestMapping(value="/acceptFriend/{friendID}", method = RequestMethod.GET)
    public ResponseEntity<Friend> acceptFriendRequest(@PathVariable("friendID") String friendID, HttpSession session) {

            User loggedInUser = (User) session.getAttribute("loggedInUser");
            friend.setUser_id(loggedInUser.getUser_id());
            friend.setFriend_id(friendID);
            friend.setStatus("A");
            friendDAO.update(friend);
            return new ResponseEntity<Friend>(friend, HttpStatus.OK);
    }

    //Just for testing purpose from restclient.
    @RequestMapping(value="/myFriends/{id}", method = RequestMethod.GET)
    public ResponseEntity<List<Friend>> getMyFriendsTemp(@PathVariable("id") String id) {

            List<Friend> myFriend = friendDAO.get(id);
            return new ResponseEntity<List<Friend>>(myFriend, HttpStatus.OK);
    }



}
Labels! Labels! It’s working with the Americans that’s given you this obsession with labels and brand names.
We live in a crass commercial world with no faith or trust!
Police: Suspect hits officer with vehicle
High speed car chase ends in K-9 attack
A Bakersfield police officer is recovering after being struck by a fleeing suspect's car.
BAKERSFIELD, Calif. - A Bakersfield police officer is recovering after police said a suspect struck him with his SUV.
Bakersfield police said Wednesday night that a BPD officer tried to make contact with 21 year-old Michael Mickelson while he was in his vehicle in the area of Hageman Road and Calloway Drive. Police said they wanted to talk with him about a burglary that had happened earlier in the day.
Police said Mickelson's girlfriend was also in the car with him. Neighbor's only identified her as "Alex" and said her mother is a peace officer with BPD.
Police said Mickelson put the SUV in reverse and struck the officer knocking him off his feet and onto the hood of his patrol car. Police said that's when Mickelson took off giving chase and crashing into at least three cars along the way.
Sheriff's deputies caught up with the suspect and chased him into the area of Wilson Road and Freemont Street where Mickelson's mother lives.
Deputies said at that point he tried to take off running but they deployed a K-9 and took him into custody. He was taken to Kern Medical Center for treatment. "Alex" was also arrested at the scene.
23ABC spoke with Mickelson's mother, Shelley Mickelson. She said her son did have a warrant out for his arrest, but that Mickelson did not hit the officer with his car and plans to file a claim against BPD.
The officer suffered cuts, bumps and bruises but is expected to be ok. The officer's name has not yet been released.A nice twist to paying up.
Clemson beat North Carolina in the ACC Championship Game, so to honor a bet with South Carolina governor Nikki Haley, North Carolina governor Pat McCrory put a Clemson flag up in his office... with a twist. He also put a referee's uniform on his desk in homage to a bad offsides call that ruined the Tar Heels' chance of an upset.
At least Clemson won this bet. Last season, former Tigers running back C.J. Spiller had to wear a Florida State shirt after a lost bet.So there we were, deep in the heart of South Dakota pheasant country chasing roosters with our dogs.
We were working a large section of public walk-in land north west of Watertown.
Our good friends, Los Hermanos Castaneda, were working a tree line ahead with their dog Quell.
Souris and I were making our way through a low spot full of cat tails.
Lisa was following along a ridge-line with her camera taking shots of the action.
As we made or way across the field, Lisa heard the sound of something running behind her. At first she thought it was one of the dogs that had somehow