<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:series="http://unfoldingneurons.com/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Cemre Ceren Akkan</title>
	
	<link>http://www.cemreceren.com</link>
	<description />
	<lastBuildDate>Fri, 23 Oct 2009 11:33:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/CemreCeren" /><feedburner:info uri="cemreceren" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>log4j Custom Appender For Separate Log Files</title>
		<link>http://feedproxy.google.com/~r/CemreCeren/~3/55wWEX0a33U/</link>
		<comments>http://www.cemreceren.com/2009/10/21/log4j-custom-appender-for-separate-log-files/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 09:58:54 +0000</pubDate>
		<dc:creator>Cemre Ceren</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[custom appender]]></category>
		<category><![CDATA[log4j]]></category>

		<guid isPermaLink="false">http://www.cemreceren.com/?p=266</guid>
		<description><![CDATA[

We needed different log files for a common web project, this gateway project simply loads web services dynamically and generates the wsdd files at runtime, but the problem was huge size of the common log file used by all services. So we needed different log files for different services.
Here is the step by step solution [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="display: block;">
<div class="wp-caption alignright" style="width: 140px"><a href="http://en.wikipedia.org/wiki/Image:Lucania_Log_Book.jpg"><img title="Handbook issued to passengers on Campania" src="http://upload.wikimedia.org/wikipedia/en/thumb/c/ca/Lucania_Log_Book.jpg/300px-Lucania_Log_Book.jpg" alt="Handbook issued to passengers on Campania" width="130" height="215" /></a><p class="wp-caption-text">Image via Wikipedia</p></div>
</div>
<p>We needed different log files for a common web project, this gateway project simply loads web services dynamically and generates the wsdd files at runtime, but the problem was huge size of the common log file used by all services. So we needed different log files for different services.</p>
<p>Here is the step by step solution to separate&amp;customize the log files:</p>
<ul>
<li>The first step is adding a filter to web.xml file so we can set the service names:
<pre class="brush: xml;">&lt;filter&gt;
&lt;filter-name&gt;WSLoggerFilter&lt;/filter-name&gt;
&lt;filter-class&gt;com.logger.WSLoggerFilter&lt;/filter-class&gt;
&lt;description&gt;&lt;/description&gt;
&lt;/filter&gt;

&lt;filter-mapping&gt;
&lt;filter-name&gt;WSLoggerFilter&lt;/filter-name&gt;
&lt;url-pattern&gt;/*&lt;/url-pattern&gt;
&lt;/filter-mapping&gt;
</pre>
</li>
<li>Here is the simple filter &#8211; WSLoggerFilter.java:
<pre class="brush: java;">public final class WSLoggerFilter implements Filter {
private static final String SERVICE_NAME = &quot;serviceName&quot;;

public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
String[] url = ((HttpServletRequest)request).getRequestURI().split(&quot;/&quot;);
MDC.put(SERVICE_NAME, url != null ? url[url.length - 1] : &quot;&quot;);
// Forward the request to the next resource in the chain
chain.doFilter(request, response);
MDC.remove(SERVICE_NAME);
}  .....
</pre>
</li>
</ul>
<ul>
<li>The next step is adding a custom adapter that uses the MDC &#8220;serviceName&#8221; parameter to separate the log files, we just alter the name of the default logging file by adding the serviceName parameter we set at the filter. We add the custom adapter to the log4j.properties file:
<pre class="brush: xml;"># custom file appender
log4j.appender.F=com.logger.WSLoggerAppender
log4j.appender.F.mdcName=serviceName</pre>
</li>
</ul>
<ul>
<li>Next step is implementing the custom appender. I used DailyRollingFileAppender to change the name of the logging file, simply by adding service name. Simply do not forget to override close method to close all the appenders we used. The custom adapter file WSLoggerAppender.java:
<pre class="brush: java;">public class WSLoggerAppender extends DailyRollingFileAppender {
private String mdcName;

private Map&lt;string, dailyrollingfileappender=&quot;&quot;&gt; map = new HashMap&lt;string, dailyrollingfileappender=&quot;&quot;&gt;();

@Override
public synchronized void doAppend(LoggingEvent event) {
Object key = MDC.get(getMdcName());
if (key == null) {
super.doAppend(event);
return;
}
String serviceName = key.toString();
if (serviceName != null &amp;amp;&amp;amp; serviceName.length() &gt; 0 &amp;amp;&amp;amp; !map.containsKey(serviceName)) {
try {
DailyRollingFileAppender dailyRollingFileAppender = new DailyRollingFileAppender(layout, fileName + &quot;.&quot; + serviceName, getDatePattern());
map.put(serviceName, dailyRollingFileAppender);
} catch (IOException e) {
}
}
DailyRollingFileAppender ap = (DailyRollingFileAppender) map.get(serviceName);
if (ap != null)
ap.doAppend(event);
else
super.append(event);
}

@Override
public void close() {
for (Iterator iter = map.values().iterator(); iter.hasNext();) {
DailyRollingFileAppender appender = (DailyRollingFileAppender) iter.next();
appender.close();
}
super.close();
}

public void setMdcName(String mdcName) {
this.mdcName = mdcName;
}

public String getMdcName() {
return mdcName;
}
}</pre>
</li>
</ul>
<p>That was all!</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/33298b56-ded3-486c-8d66-f9cc614e2561/"><img class="zemanta-pixie-img" style="border: medium none ; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=33298b56-ded3-486c-8d66-f9cc614e2561" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<img src="http://feeds.feedburner.com/~r/CemreCeren/~4/55wWEX0a33U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cemreceren.com/2009/10/21/log4j-custom-appender-for-separate-log-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.cemreceren.com/2009/10/21/log4j-custom-appender-for-separate-log-files/</feedburner:origLink></item>
		<item>
		<title>Grails Startup with IntelliJ IDEA</title>
		<link>http://feedproxy.google.com/~r/CemreCeren/~3/oSoI6kBRWq8/</link>
		<comments>http://www.cemreceren.com/2009/01/08/grails-startup-with-intellij-idea/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 08:45:50 +0000</pubDate>
		<dc:creator>Cemre Ceren</dc:creator>
				<category><![CDATA[grails]]></category>
		<category><![CDATA[IntelliJ IDEA]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.cemreceren.com/?p=61</guid>
		<description><![CDATA[I started a toy project just to give Grails a try and want to share the project setup, and other steps. I were really impressed by the demo applications: painless, easy startup and CRUD applications, but yes a bit too late but I were really busy at my new job, and also trying to get [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-77" title="welcome-to-grails" src="http://www.cemreceren.com/wp-content/uploads/2008/12/welcome-to-grails-300x148.jpg" alt="welcome-to-grails" width="300" height="154" />I started a toy project just to give Grails a try and want to share the project setup, and other steps. I were really impressed by the <a href="http://grails.org/Grails+Screencasts">demo applications</a>: painless, easy startup and CRUD applications, but yes a bit too late but I were really busy at my new job, and also trying to get used to my new country, and of course I admit that I am a bit lazy too <img src='http://www.cemreceren.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
After reading the <a href="http://www.infoq.com/minibooks/grails">Getting Started with Grails</a> free booklet, and well prepared <a href="http://grails.org/doc/1.0.x/">Grails Documentation</a> I started playing with it <img src='http://www.cemreceren.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span id="more-61"></span></p>
<p>Well startup steps with IntelliJ IDEA:</p>
<ul>
<li>Download the <a href="http://grails.org/Installation">Grails</a></li>
<li>Set the GRAILS_HOME and add it to path environment variable</li>
<li>Download the Grails IntelliJ plugin <a href="http://www.jetbrains.net/confluence/pages/viewpageattachments.action?pageId=27731">JetGroovy</a> (If you use IntelliJ IDEA 8 you should skip this step, since JetGroovy plugin is bundled in this version otherwise IDE would crash)<a href="http://www.jetbrains.net/confluence/pages/viewpageattachments.action?pageId=27731"><br />
</a></li>
<li>Just unzip the JetGroovy to plugins folder</li>
<li>Change the installation directory for Grails from Settings/Groovy&amp;Grails</li>
<li>Update the JetGroovy plugin from Settings/Plugins (There were some mysterious errors at IntelliJ like crashing at Backspace key <img src='http://www.cemreceren.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  )</li>
</ul>
<p>My first <a href="http://grails.org/doc/1.0.x/">HelloGrails</a> application had the below error, after playing with the Grails version and trying an older version: grails-1.0.4, I realized that the Groovy was also necessary for JetGroovy plugin. I had already installed groovy but GROOVY_HOME environment setting was missing, but still I could not get the point: Why can&#8217;t I use Grails without Groovy @IntelliJ?</p>
<p><code>java.lang.ClassNotFoundException: org.codehaus.groovy.grails.cli.GrailsScriptRunner<br />
at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:156)<br />
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)<br />
at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:128)<br />
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)<br />
at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:98)<br />
at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:130)<br />
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br />
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />
at java.lang.reflect.Method.invoke(Method.java:597)<br />
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)<br />
Process finished with exit code 1<br />
</code></p>
<p>Anyway, you can add two more steps for Grails startup for IntelliJ IDEA users:</p>
<ul>
<li>Download the <a href="http://groovy.codehaus.org/Download">Groovy</a></li>
<li>Set the GROOVY_HOME and add it to path environment variable</li>
</ul>
<p>My startup configuration:<br />
grails-1.0.4<br />
groovy-1.5.7<br />
jdk1.6.0_07<br />
IntelliJ IDEA 7.0.4</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/51b81433-4df9-4297-b277-a9879f68f03e/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=51b81433-4df9-4297-b277-a9879f68f03e" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<img src="http://feeds.feedburner.com/~r/CemreCeren/~4/oSoI6kBRWq8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cemreceren.com/2009/01/08/grails-startup-with-intellij-idea/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.cemreceren.com/2009/01/08/grails-startup-with-intellij-idea/</feedburner:origLink></item>
		<item>
		<title>New Year Gifts :)</title>
		<link>http://feedproxy.google.com/~r/CemreCeren/~3/b_Rv3aIdHJE/</link>
		<comments>http://www.cemreceren.com/2008/12/31/new-year-gifts/#comments</comments>
		<pubDate>Wed, 31 Dec 2008 05:00:37 +0000</pubDate>
		<dc:creator>Cemre Ceren</dc:creator>
				<category><![CDATA[books]]></category>

		<guid isPermaLink="false">http://www.cemreceren.com/?p=98</guid>
		<description><![CDATA[



Cover via Amazon



The books we ordered have just arrived: great gifts for the new year  

The Mythical Man-Month: Essays on Software Engineering

I will start with classic book of software engineering &#8211; The Mythical Man-Month: Essays on Software Engineering first which was first published in 1975 by Fred Brooks. This anniversary edition includes four new [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img zemanta-action-dragged">
<div>
<dl class="wp-caption alignright" style="margin: 1em; float: right; display: block; width: 144px;">
<dt class="wp-caption-dt"><a href="http://www.amazon.com/Mythical-Man-Month-Software-Engineering-Anniversary/dp/0201835959%3FSubscriptionId%3D0G81C5DAZ03ZR9WH9X82%26tag%3Dzemanta-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0201835959"><img title="Cover of " src="http://ecx.images-amazon.com/images/I/51esG7-GjbL._SL200_.jpg" alt="Cover of " width="134" height="200" /></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;"><a href="http://www.amazon.com/Mythical-Man-Month-Software-Engineering-Anniversary/dp/0201835959%3FSubscriptionId%3D0G81C5DAZ03ZR9WH9X82%26tag%3Dzemanta-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0201835959">Cover via Amazon</a></dd>
</dl>
</div>
</div>
<p>The books we ordered have just arrived: great gifts for the new year <img src='http://www.cemreceren.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ul>
<li><a class="zem_slink" title="The Mythical Man-Month: Essays on Software Engineering, Anniversary Edition (2nd Edition)" rel="amazon" href="http://www.amazon.com/Mythical-Man-Month-Software-Engineering-Anniversary/dp/0201835959%3FSubscriptionId%3D0G81C5DAZ03ZR9WH9X82%26tag%3Dzemanta-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0201835959">The Mythical Man-Month: Essays on Software Engineering</a></li>
</ul>
<p>I will start with classic book of software engineering &#8211; <em><strong>The Mythical Man-Month: Essays on Software Engineering</strong></em> first which was first published in 1975 by Fred Brooks. This anniversary edition includes four new chapters and I really wonder about the evolution of software engineering and the human factor in the past 33 years. I can&#8217;t wait especially for the legendary The Mythical-Man Month and No Silver Bullet essays.</p>
<p><span id="more-98"></span></p>
<ul>
<li><a class="zem_slink" title="Peopleware: Productive Projects and Teams   (Second Edition)" rel="amazon" href="http://www.amazon.com/Peopleware-Productive-Projects-Teams-Second/dp/0932633439%3FSubscriptionId%3D0G81C5DAZ03ZR9WH9X82%26tag%3Dzemanta-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0932633439">Peopleware: Productive Projects and Teams</a></li>
</ul>
<p>Peopleware is another oldies/goldies project management book, first published in 1987, described as <em>&#8220;Anti-Dilbert Manifesto&#8221;</em> <img src='http://www.cemreceren.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ul>
<li><a class="zem_slink" title="Agile Project Management with Scrum (Microsoft Professional)" rel="amazon" href="http://www.amazon.com/Agile-Project-Management-Microsoft-Professional/dp/073561993X%3FSubscriptionId%3D0G81C5DAZ03ZR9WH9X82%26tag%3Dzemanta-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D073561993X">Agile Project Management With Scrum</a></li>
</ul>
<p>Agile Project Management book from Ken Schwaber, one of the originators of the Scrum process. Agile development process explained with lots of examples, success and failure projects.</p>
<p>I wish you a Happy New Year! <img src='http://www.cemreceren.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><span style="font-size: 10pt;"><br />
</span></p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://reblog.zemanta.com/zemified/63ce801a-58ac-4aa3-8ee7-edd316e50287/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=63ce801a-58ac-4aa3-8ee7-edd316e50287" alt="Reblog this post [with Zemanta]" /></a></div>
<img src="http://feeds.feedburner.com/~r/CemreCeren/~4/b_Rv3aIdHJE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cemreceren.com/2008/12/31/new-year-gifts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.cemreceren.com/2008/12/31/new-year-gifts/</feedburner:origLink></item>
		<item>
		<title>Eclipse Tip – Converting Java Project to Dynamic Web Project</title>
		<link>http://feedproxy.google.com/~r/CemreCeren/~3/fyCw1RxEvuY/</link>
		<comments>http://www.cemreceren.com/2008/12/09/eclipse-tip-converting-java-project-to-dynamic-web-project/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 09:24:13 +0000</pubDate>
		<dc:creator>Cemre Ceren</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[Eclipse]]></category>

		<guid isPermaLink="false">http://www.cemreceren.com/?p=24</guid>
		<description><![CDATA[We started to work on some projects, and after getting the source code, we could not use the web projects in eclipse because they were not defined as Eclipse Dynamic Web projects. Here is a small trick to convert these general projects to Dynamic Web projects.

First change your perspective to Resource and check your .project [...]]]></description>
			<content:encoded><![CDATA[<p>We started to work on some projects, and after getting the source code, we could not use the web projects in eclipse because they were not defined as Eclipse Dynamic Web projects. Here is a small trick to convert these general projects to Dynamic Web projects.</p>
<p><span id="more-24"></span><br />
First change your perspective to Resource and check your .project file if natures tag also contains <em>facet </em>nature:</p>
<pre class="brush: xml;">
    &lt;natures&gt;
        &lt;nature&gt;org.eclipse.jdt.core.javanature&lt;/nature&gt;
        &lt;nature&gt;org.eclipse.wst.common.project.facet.core.nature&lt;/nature&gt;
    &lt;/natures&gt;
</pre>
<p>And second update your project facets by Project Properties/Project Facets/Add Remove Project Facets:</p>
<p><a href="http://www.cemreceren.com/wp-content/uploads/2008/12/eclipse_prj_facet.bmp"><img class="aligncenter size-full wp-image-51" title="eclipse_prj_facet" src="http://www.cemreceren.com/wp-content/uploads/2008/12/eclipse_prj_facet.bmp" alt="eclipse_prj_facet" /></a></p>
<p>So you can use and add this new web project to Tomcat server.</p>
<p>Note: We still use older Eclipse version 3.2.2 because of some custom plugin problems <img src='http://www.cemreceren.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/CemreCeren/~4/fyCw1RxEvuY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cemreceren.com/2008/12/09/eclipse-tip-converting-java-project-to-dynamic-web-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.cemreceren.com/2008/12/09/eclipse-tip-converting-java-project-to-dynamic-web-project/</feedburner:origLink></item>
		<item>
		<title>WordPress Upgrade</title>
		<link>http://feedproxy.google.com/~r/CemreCeren/~3/Wv87FbuBIpE/</link>
		<comments>http://www.cemreceren.com/2008/12/09/wordpress-upgrade/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 08:56:33 +0000</pubDate>
		<dc:creator>Cemre Ceren</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.cemreceren.com/?p=42</guid>
		<description><![CDATA[
I upgraded my blog to WordPress 2.7 Beta 3 and i am very impressed at first sight   Also with very nice plugins like Zemanta and Organize Series blogging is really a pleasure, thanks to them.
You can also upgrade your WordPress if you do not like installing your plugins every time by ftp, instead [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cemreceren.com/wp-content/uploads/2008/12/icon_wp1.png"><img class="size-full wp-image-46 alignright" title="icon_wp1" src="http://www.cemreceren.com/wp-content/uploads/2008/12/icon_wp1.png" alt="icon_wp1" width="153" height="139" /></a></p>
<p>I upgraded my blog to <a href="http://wordpress.org/development/2008/11/wordpress-27-beta-3/">WordPress</a><a href="http://wordpress.org/development/2008/11/wordpress-27-beta-3/"> 2.7 Beta 3</a> and i am very impressed at first sight <img src='http://www.cemreceren.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Also with very nice plugins like <a title="Visit plugin homepage" href="http://www.zemanta.com/welcome/wordpress/">Zemanta</a> and <a title="Visit plugin homepage" href="http://www.unfoldingneurons.com/neurotic-plugins/organize-series-wordpress-plugin/">Organize Series</a> blogging is really a pleasure, thanks to them.</p>
<p>You can also upgrade your WordPress if you do not like installing your plugins every time by ftp, instead of manual install you can easily install/upgrade your plugins just like Firefox <img src='http://www.cemreceren.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span id="more-42"></span></p>
<p>Some new features:</p>
<ul>
<li>Plugin installer is the best improvement as i mentioned, saves you from lot&#8217;s of manual work</li>
<li>Stylish design &#8211; new admin pages and menu are really cool and easy to use</li>
<li>QuickPress feauture is added</li>
<li><a href="http://wordpress.org/development/2008/11/wordpress-27-beta-3/">and more&#8230;</a></li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://reblog.zemanta.com/zemified/fd3d96d1-e7ec-4d3e-8253-c1c943c6609f/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=fd3d96d1-e7ec-4d3e-8253-c1c943c6609f" alt="Reblog this post [with Zemanta]" /></a></div>
<img src="http://feeds.feedburner.com/~r/CemreCeren/~4/Wv87FbuBIpE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cemreceren.com/2008/12/09/wordpress-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.cemreceren.com/2008/12/09/wordpress-upgrade/</feedburner:origLink></item>
		<item>
		<title>fresh start…</title>
		<link>http://feedproxy.google.com/~r/CemreCeren/~3/J-ZdeIFtryU/</link>
		<comments>http://www.cemreceren.com/2008/12/09/fresh-start/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 08:37:52 +0000</pubDate>
		<dc:creator>Cemre Ceren</dc:creator>
				<category><![CDATA[personal]]></category>
		<category><![CDATA[Amsterdam]]></category>
		<category><![CDATA[expat]]></category>

		<guid isPermaLink="false">http://www.cemreceren.com/?p=23</guid>
		<description><![CDATA[



Image by Fabiolo (pontedapedra) via Flickr



After a very long time, i just returned to blogging and of course i have lot&#8217;s of things to tell   We just moved to Amsterdam, as expats and i changed my job, and to be honest it is a busy one, i work as Software Engineer at a [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img">
<div>
<dl class="wp-caption alignright" style="margin: 1em; float: right; display: block; width: 250px;">
<dt class="wp-caption-dt"><a href="http://www.flickr.com/photos/12548066@N00/3093062729/"><img title="A medio camino de la tormenta" src="http://farm4.static.flickr.com/3193/3093062729_69d275c216_m.jpg" alt="A medio camino de la tormenta" /></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">Image by <a href="http://www.flickr.com/photos/12548066@N00/3093062729/">Fabiolo (pontedapedra)</a> via Flickr</dd>
</dl>
</div>
</div>
<p>After a very long time, i just returned to blogging and of course i have lot&#8217;s of things to tell <img src='http://www.cemreceren.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  We just moved to Amsterdam, as expats and i changed my job, and to be honest it is a busy one, i work as Software Engineer at a bank&#8230; I do not know why but as far as i know banks are really busy and unfortunately stressful compared to the software development jobs in other sectors.</p>
<p>I would appreciate if you can comment if i have the wrong impression but this is my third banking experience and all the issues are fatal, all the problems &amp; solutions are so urgent and all the deadlines are so close, generally because of the legal obligations&#8230;</p>
<p>Amsterdam, if you have not visited yet is a nice city to live and travel&#8230; Wish me luck at this fresh start <img src='http://www.cemreceren.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I also have a new <a href="http://blog.cemreceren.com">personal blog</a> <a href="http://blog.cemreceren.com/"></a> for sharing my experiences about Amsterdam&amp;Netherlands, but this one is in Turkish, my native language <img src='http://www.cemreceren.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/CemreCeren/~4/J-ZdeIFtryU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cemreceren.com/2008/12/09/fresh-start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.cemreceren.com/2008/12/09/fresh-start/</feedburner:origLink></item>
		<item>
		<title>Migrate Eclipse 3.2 to 3.3.1</title>
		<link>http://feedproxy.google.com/~r/CemreCeren/~3/9YADVYDe4a4/</link>
		<comments>http://www.cemreceren.com/2008/03/18/migrate-eclipse-32-to-331/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 19:23:13 +0000</pubDate>
		<dc:creator>Cemre Ceren</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[Eclipse]]></category>

		<guid isPermaLink="false">http://www.cemreceren.com/2008/03/18/migrate-eclipse-32-to-331/</guid>
		<description><![CDATA[I migrated Eclipse 3.2 to 3.3.1, at first I used the same workspace and I had some problems with myln plugins and the server did not start correctly. Then i tried with a new workspace and everything was smooth except at server startup:
Timeout waiting for Tomcat v5.5 Server at localhost to start. Server did not [...]]]></description>
			<content:encoded><![CDATA[<p>I migrated Eclipse 3.2 to 3.3.1, at first I used the same workspace and I had some problems with myln plugins and the server did not start correctly. Then i tried with a new workspace and everything was smooth except at server startup:</p>
<p><em>Timeout waiting for Tomcat v5.5 Server at localhost to start. Server did not start after 45s. </em></p>
<p>You need to set server timeout delay = Unlimited from Window&gt;Preferences&gt;Server&#8230;</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://reblog.zemanta.com/zemified/34339992-98c6-4651-87d8-fe1a97bd9a35/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=34339992-98c6-4651-87d8-fe1a97bd9a35" alt="Reblog this post [with Zemanta]" /></a></div>
<img src="http://feeds.feedburner.com/~r/CemreCeren/~4/9YADVYDe4a4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cemreceren.com/2008/03/18/migrate-eclipse-32-to-331/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.cemreceren.com/2008/03/18/migrate-eclipse-32-to-331/</feedburner:origLink></item>
		<item>
		<title>SVN Merge Branch into Trunk using Eclipse</title>
		<link>http://feedproxy.google.com/~r/CemreCeren/~3/bWgCEx1dEFU/</link>
		<comments>http://www.cemreceren.com/2008/01/20/svn-merge-branch-into-trunk-using-eclipse/#comments</comments>
		<pubDate>Sun, 20 Jan 2008 12:27:35 +0000</pubDate>
		<dc:creator>Cemre Ceren</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://www.cemreceren.com/2008/01/20/svn-merge-branch-into-trunk-using-eclipse/</guid>
		<description><![CDATA[I needed to merge the branch changes into trunk of the project, after many changes at both the branch and trunk&#8230;
First we have to commit all changes, in case of some failure at the merge operation we may revert all changes.
Select Team &#62; Merge from menu, select the path of the branch and the revision. [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to merge the branch changes into trunk of the project, after many changes at both the branch and trunk&#8230;</p>
<p>First we have to commit all changes, in case of some failure at the merge operation we may revert all changes.</p>
<p>Select <em><span class="menu">Team &gt; Merge</span></em> from menu, select the path of the branch and the revision. Revision number is selected from the <em>Show Log, </em>and is number when we created the branch.</p>
<p><a href="http://www.cemreceren.com/wp-content/uploads/2008/01/svn_merge_3.jpg" title="svn_merge"><img src="http://www.cemreceren.com/wp-content/uploads/2008/01/svn_merge_3.jpg" alt="svn_merge" /></a></p>
<p>Some useful links for SVN merge:<br />
<a href="http://svn.collab.net/subclipse/help/topic/org.tigris.subversion.subclipse.doc/html/reference/merge.html"><br />
Eclipse SDK &#8211; Subversion Eclipse Plugin Manual</a></p>
<p><a href="http://svnbook.red-bean.com/en/1.1/ch04.html">SVN Book</a></p>
<img src="http://feeds.feedburner.com/~r/CemreCeren/~4/bWgCEx1dEFU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cemreceren.com/2008/01/20/svn-merge-branch-into-trunk-using-eclipse/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.cemreceren.com/2008/01/20/svn-merge-branch-into-trunk-using-eclipse/</feedburner:origLink></item>
		<item>
		<title>Code Analysis – Finding Duplicate Code</title>
		<link>http://feedproxy.google.com/~r/CemreCeren/~3/UoXqT9YbRvc/</link>
		<comments>http://www.cemreceren.com/2007/12/18/code-analysis-finding-duplicate-code/#comments</comments>
		<pubDate>Tue, 18 Dec 2007 18:32:11 +0000</pubDate>
		<dc:creator>Cemre Ceren</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[Code Analysis]]></category>
		<category><![CDATA[duplicate code]]></category>
		<category><![CDATA[PMD]]></category>

		<guid isPermaLink="false">http://www.cemreceren.com/?p=11</guid>
		<description><![CDATA[I tried Maven plugins for code analysis and finding duplicate/similar code.
CPD-PMD&#8217;s Copy/Paste Detector can be used for finding duplicate code, which is included in PMD, a Java code analysis tool.
run mvn pmd:cpd ,
The report is displayed at cpd.html file, and the results are very efficient.
Simian &#8211; Similarity Analyser is also an alternative for finding duplicates.
]]></description>
			<content:encoded><![CDATA[<p>I tried Maven plugins for code analysis and finding duplicate/similar code.</p>
<p><strong><a href="http://pmd.sourceforge.net/cpd.html">CPD-PMD&#8217;s Copy/Paste Detector</a></strong> can be used for finding duplicate code, which is included in <strong><a href="http://www.cemreceren.com/?p=9">PMD</a></strong>, a Java code analysis tool.<br />
run <em>mvn pmd:cpd</em> ,<br />
The report is displayed at cpd.html file, and the results are very efficient.</p>
<p><a href="http://www.redhillconsulting.com.au/products/simian/">Simian &#8211; Similarity Analyser</a> is also an alternative for finding duplicates.</p>
<img src="http://feeds.feedburner.com/~r/CemreCeren/~4/UoXqT9YbRvc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cemreceren.com/2007/12/18/code-analysis-finding-duplicate-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.cemreceren.com/2007/12/18/code-analysis-finding-duplicate-code/</feedburner:origLink></item>
		<item>
		<title>Code Analysis using PMD and Checkstyle</title>
		<link>http://feedproxy.google.com/~r/CemreCeren/~3/vrtDp7K8yKw/</link>
		<comments>http://www.cemreceren.com/2007/12/18/code-analysis-using-pmd/#comments</comments>
		<pubDate>Tue, 18 Dec 2007 08:19:18 +0000</pubDate>
		<dc:creator>Cemre Ceren</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[Checkstyle]]></category>
		<category><![CDATA[Code Analysis]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[PMD]]></category>

		<guid isPermaLink="false">http://www.cemreceren.com/?p=9</guid>
		<description><![CDATA[We started code review using Crucible, so i searched for some code analysis maven plugins. PMD  is a Java code analysis tool and used to find potential problems like unused code, duplicate code, unused variables&#8230; PMD is useful and easy:
pom.xml:


&#60;reporting&#62;
&#60;outputDirectory&#62;target/reporting/pmd&#60;/outputDirectory&#62;
&#60;plugins&#62;
&#60;plugin&#62;
&#60;groupId&#62;org.apache.maven.plugins&#60;/groupId&#62;
&#60;artifactId&#62;maven-pmd-plugin&#60;/artifactId&#62;
&#60;/plugin&#62;
&#60;/plugins&#62;
&#60;/reporting&#62;


If you get the following error, simply add target-jdk configuration:
 Caused by: net.sourceforge.pmd.ast.ParseException: Can&#8217;t use [...]]]></description>
			<content:encoded><![CDATA[<p>We started code review using Crucible, so i searched for some code analysis maven plugins. <a href="http://pmd.sourceforge.net/">PMD </a> is a Java code analysis tool and used to find potential problems like unused code, duplicate code, unused variables&#8230; PMD is useful and easy:</p>
<p>pom.xml:</p>
<pre class="brush: xml;">

&lt;reporting&gt;
&lt;outputDirectory&gt;target/reporting/pmd&lt;/outputDirectory&gt;
&lt;plugins&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-pmd-plugin&lt;/artifactId&gt;
&lt;/plugin&gt;
&lt;/plugins&gt;
&lt;/reporting&gt;
</pre>
<p><span id="more-9"></span></p>
<p>If you get the following error, simply add target-jdk configuration:<br />
<span style="color: #000080;"> Caused by: net.sourceforge.pmd.ast.ParseException: Can&#8217;t use generics unless running in JDK 1.5 mode!</span></p>
<pre class="brush: xml;">

&lt;reporting&gt;
&lt;outputDirectory&gt;target/reporting/pmd&lt;/outputDirectory&gt;
&lt;plugins&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-pmd-plugin&lt;/artifactId&gt;
&lt;configuration&gt;
&lt;targetJdk&gt;1.5&lt;/targetJdk&gt;
&lt;/configuration&gt;
&lt;/plugin&gt;
&lt;/plugins&gt;
&lt;/reporting&gt;
</pre>
<p>The PMD report is at pmd.html, but i couldn&#8217;t find categories, and more detailed reports.</p>
<p>We can also customize PMD rules &amp; rulesets:</p>
<p><a href="http://pmd.sourceforge.net/howtowritearule.html">How to write a PMD rule?</a><br />
<a href="http://pmd.sourceforge.net/howtomakearuleset.html">How to make a new rule set?</a></p>
<p><a href="http://maven.apache.org/plugins/maven-checkstyle-plugin/index.html"><strong>CheckStyle</strong></a> is also a strong Maven 2 plugin for java code analysis. Simply running <em>mvn checkstyle:checkstyle</em> gives us detailed html/rss report(<em>mvn site</em> gives heap or memory error for some projects).</p>
<pre class="brush: xml;">

&lt;reporting&gt;
......
&lt;plugins&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-checkstyle-plugin&lt;/artifactId&gt;
&lt;/plugin&gt;
&lt;/plugins&gt;
&lt;/reporting&gt;
</pre>
<p>We can customize the reports generated by Maven&#8217;s site plugin. Simply add or overwrite &lt;reports&gt; tag at <em>project.xml</em>. The result gives us reports of project like dependencies, project info, project reports (CMD and PMD reports included), source repository, &#8230;</p>
<pre class="brush: xml;">

&lt;reports&gt;
&lt;report&gt;index&lt;/report&gt;
&lt;report&gt;dependencies&lt;/report&gt;
&lt;report&gt;project-team&lt;/report&gt;
&lt;report&gt;mailing-list&lt;/report&gt;
&lt;report&gt;cim&lt;/report&gt;
&lt;report&gt;issue-tracking&lt;/report&gt;
&lt;report&gt;license&lt;/report&gt;
&lt;report&gt;scm&lt;/report&gt;
&lt;report&gt;maven-pmd-plugin&lt;/report&gt;
&lt;report&gt;maven-checkstyle-plugin&lt;/report&gt;
&lt;/reports&gt;
</pre>
<img src="http://feeds.feedburner.com/~r/CemreCeren/~4/vrtDp7K8yKw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cemreceren.com/2007/12/18/code-analysis-using-pmd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.cemreceren.com/2007/12/18/code-analysis-using-pmd/</feedburner:origLink></item>
	</channel>
</rss>
