Ensar Basri Kahveci

overly distributed

Recent posts

Oct 12, 2014
cd to the directories you "frequently and recently" use pretty easily with Z Z is a command line tool that helps you to cd to directories you use with just a few key stores. It manages this by tracking the directories you visit, and weighting them by how frequently and how recently they have been visited. I have been using it happily for a long time, and now I think that I can recommend it to other people. It uses a term frecent for ranking directories.…
Sep 2, 2012
Embedding Groovy scripts into your Java application I like Groovy for a lot of things like being easy to learn, its dynamic feature, readable syntax etc. But one of the things I like and utilize most is its embedding feature which helps you to run Groovy scripts in your already-running Java application. If you have a stateful Java application, running arbitrary Groovy scripts to examine your state can be very useful when things screw up on run-time.…
Jun 20, 2012
A Simple Jedis Publish / Subscribe Example Hello again, after more than 4 months :) So many things have changed in my life since my last blog post. I will try to talk about them from time to time, which I am not very sure about that actually :) I have been playing with Redis and its Java client Jedis lately. It looks very promising. I’m making experimental things on it and I really liked it. I will probably use it one of my personal projects for some use cases.…
Dec 25, 2011
Integration Testing with Maven, Jetty and Selenium 2 For the last few days, I was busy with preparing a integration test environment for our PrimeFaces showcase. Showcase project was already a Maven project, so I made a little research about maven phases, maven plugins, Selenium and Jetty and figured out how can I make things work. You can see similar blog posts on Google about the topic. I looked at most of them and they helped me on the way.…
Oct 21, 2011
Configuring Spring Security to persist the SecurityContext to places other than session between requests Yeah I agree, I suck at titles :) But, again and again, Spring guys are real badasses :) By default, Spring Security keeps the SecurityContext object in session objects of user between requests. SecurityContextPersistenceFilter manages this task. When a request comes, it reads the SecurityContext object from a security context repository (which I will mention in a second), puts it to SecurityContextHolder to be used by other filters and the application.…