while true; do vim Temp.java; javac Temp.java; java Temp; echo "anykey"; read; done;
UPD: file debugme.sh
#!/bin/bash
class=$1
if [[ "$class" == "" ]]; then echo "usage: debugme.sh ClassName"; exit; fi
if [ ! -f "$class.java" ]; then echo "file $class.java does not exist"; exit; fi
while true; do
vim $class.java;
javac $class.java && echo "compiled. running..." && java $class;
echo "anykey, there is no way out"; read -n1;
done;
Monday, March 16, 2009
Thursday, March 5, 2009
Spring is in the air
The following listing shows a web controller, exclusively based on annotations.
REST Everywhere from Spring 3 is in the air - a first look
@Controller
public class MyController {
@RequestMapping("/removeBook")
public String removeBook( @RequestParam("book") String bookId ) {
// do something meaningful
return "redirect:myBooks";
}
@RequestMapping(value = "/reward/{id}", method = GET)
public Reward show( @PathVariable("id") long id ) {
return rewardsAdminService.findReward(id);
}
}
REST Everywhere from Spring 3 is in the air - a first look
Monday, March 2, 2009
pidgin status message
$ purple-remote setstatus?message="anything you want"
isn't it just fantastic? =)"
Subscribe to:
Posts (Atom)
