Eclipse Tip – Converting Java Project to Dynamic Web Project
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.
WordPress Upgrade
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 of manual install you can easily install/upgrade your plugins just like Firefox
fresh start…

- Image by Fabiolo (pontedapedra) via Flickr
After a very long time, i just returned to blogging and of course i have lot’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 bank… 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.
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 & solutions are so urgent and all the deadlines are so close, generally because of the legal obligations…
Amsterdam, if you have not visited yet is a nice city to live and travel… Wish me luck at this fresh start
I also have a new personal blog for sharing my experiences about Amsterdam&Netherlands, but this one is in Turkish, my native language
Migrate Eclipse 3.2 to 3.3.1
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 start after 45s.
You need to set server timeout delay = Unlimited from Window>Preferences>Server…
SVN Merge Branch into Trunk using Eclipse
I needed to merge the branch changes into trunk of the project, after many changes at both the branch and trunk…
First we have to commit all changes, in case of some failure at the merge operation we may revert all changes.
Select from menu, select the path of the branch and the revision. Revision number is selected from the Show Log, and is number when we created the branch.
Some useful links for SVN merge:
Eclipse SDK – Subversion Eclipse Plugin Manual
Code Analysis – Finding Duplicate Code
I tried Maven plugins for code analysis and finding duplicate/similar code.
CPD-PMD’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 – Similarity Analyser is also an alternative for finding duplicates.
Code Analysis using PMD and Checkstyle
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… PMD is useful and easy:
pom.xml:
<reporting> <outputdirectory>target/reporting/pmd</outputdirectory> <plugins> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-pmd-plugin</artifactid> </plugin> </plugins> </reporting>
Format and Color Code Snippets For Blog
I need formatting java code snippets at my blogs so i use an eclipse plugin, simply you can copy html code to editor.
I think the most practical way to format html and xml code snippets is using:
http://www.manoli.net/csharpformat
Thanks to Truong Hong Thi for sharing
Edit: I also found a brilliant wordpress plugin for formatting source code.
SyntaxHighlighter
Easy to use, just add source language=’java’ tag
public class FileComponent implements Serializable{
private String fileName;
private String contentType;
private int size;
private String localPath;
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
}
maven 2.0.7 filtering
I upgraded maven 2.0.4 to 2.0.7 and the i couldn’t compile the existing projects because of filtering problem – filtering files couldn’t be read, the source of problem was maven-assembly-plugin. I think such kind of incongruities generally may occur. The simplest solution of such problems is simply renaming the maven folder ….m2repositoryorgapache and installing the project again for full download of all maven and maven plugins
The details of the problem and the solution is below:
http://jira.codehaus.org/browse/MASSEMBLY-178
Adsız Kent
Sonsuza dek yatan sanma ölüdür,
Tuhaf çağlarda ölüm de ölür.
Korku Öyküleri Antolojisi – Karanlıkta 33 Yazar kitabında en beğendiğim öykülerden biri Adsız Kent, ve yazarı H.P. Lovecraft‘in diğer kitapları ve öykülerini okumak için sabırsızlanıyorum


![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=34339992-98c6-4651-87d8-fe1a97bd9a35)
