<?xml version="1.0" encoding="UTF-8"?>
<rss version="0.92">
<channel>
	<title>Narcanti</title>
	<link>http://narcanti.keyboardsamurais.de</link>
	<description>deep geeks click here</description>
	<lastBuildDate>Fri, 12 Feb 2010 09:15:16 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Hardening WordPress: Basic generator obfuscation</title>
		<description><![CDATA[As previously noted, here another part of my Hardening WordPress series. This time I&#8217;ll show you the really basic technique of how you can obfuscate at least the generator-tag for your blog.

The generator tag is the one in the sourcecode with &#60;meta name=&#8221;generator&#8221; content=&#8221;Wordpress version&#8221;/&#62;. Ususally it should provide visitors or search engines some meta [...]]]></description>
		<link>http://narcanti.keyboardsamurais.de/hardening-wordpress-basic-generator-obfuscation.html</link>
			</item>
	<item>
		<title>Hardening WordPress the geek way</title>
		<description><![CDATA[My Wordpress installation was hacked several times, and all because I was too lazy to use basic protection and hardening mechanisms. After some time I decided to investigate more on the security of my blog and applied some well known protection techniques as well as some really geeky dirty hacks right in the database.

For the [...]]]></description>
		<link>http://narcanti.keyboardsamurais.de/hardening-wordpress-the-geek-way.html</link>
			</item>
	<item>
		<title>Hibernate DataViewObjects</title>
		<description><![CDATA[When working with Hibernate and nested domain object models, it can be a performance problem when trying to display several (including nested) properties in a view. Usually for such cases the use of view objects is practical.
This is the first scetch of my idea to automate population of view objects with hibernate.

Meanwhile I worked out [...]]]></description>
		<link>http://narcanti.keyboardsamurais.de/hibernate-dataviewobjects.html</link>
			</item>
	<item>
		<title>Javascript Dateformatting</title>
		<description><![CDATA[I just recognized that there is no convenient method in Javascript to format a date-object to a string with the help of a dateformat-pattern, like in java.text.SimpleDateFormat. So I have writen a simple method, which just does this, including most important patterns.


/*
Usage:
formatDate(new Date(), 'yyyy/MM/dd HH:mm:ss.SSS');
will return current date as something like '2010/01/01 14:41:52.957'.
&#160;
Implemented:
y  	Year [...]]]></description>
		<link>http://narcanti.keyboardsamurais.de/javascript-dateformatting.html</link>
			</item>
	<item>
		<title>Spring Acegi/Security auto-login</title>
		<description><![CDATA[Usefull and thus noted:
In one of my current workprojects I had a registrationform the user filled. After formvalidation, I wanted to login the user automatically. This can be achieved in Spring / Acegi quite easy:


User user = createUser&#40;&#41;;
final RememberMeAuthenticationToken auth = new RememberMeAuthenticationToken&#40;webKey, userAccount.getUser&#40;&#41;, userAccount.getUser&#40;&#41;.getAuthorities&#40;&#41;&#41;; 
auth.setAuthenticated&#40;true&#41;; 
SecurityContextHolder.getContext&#40;&#41;.setAuthentication&#40;auth&#41;;

Also logging user out (after database new creattion or [...]]]></description>
		<link>http://narcanti.keyboardsamurais.de/spring-acegisecurity-auto-login.html</link>
			</item>
	<item>
		<title>Java Collections</title>
		<description><![CDATA[Derzeit arbeite ich viel mit Java 1.5. Durch das Interface Iterable kann man hier die kurze Schleifenvariante

Collection c = ...
for &#40;final Object o:c&#41;&#123;
  ...
&#125;

einsetzen, die genauso auch f&#252;r Arrays funktioniert.
Was jedoch nicht geht, ist das Hinzuf&#252;gen von Arrays in Collections via collection.addAll(anArray);.
Hier hilft meine kleine Utilityklasse Collections weiter, die auch die Collection zur&#252;ck liefert.
Zwei [...]]]></description>
		<link>http://narcanti.keyboardsamurais.de/java-collections.html</link>
			</item>
	<item>
		<title>Hibernate Deeper OrderBy</title>
		<description><![CDATA[Hibernate unterst&#252;tzt in der Criteria API bei der Angabe von Properties f&#252;r Criterions oder auch Sortierungen lediglich die Angabe von Properties der Tiefe 1.
Beispielsweise ist criteria.addOrder(Order.asc("id")) m&#246;glich, jedoch criteria.addOrder(Order.asc("parent.id")) oder gar criteria.addOrder(Order.asc("parent.parent.id")) nicht m&#246;glich.
Um diese Abbilden zu k&#246;nnen, muss man sich einiger Joins oder Aliase bedienen.
Im folgenden wird dies anhand der Sortierung gel&#246;st.

Angenommen wir erhalten [...]]]></description>
		<link>http://narcanti.keyboardsamurais.de/hibernate-deeper-orderby.html</link>
			</item>
	<item>
		<title>Spring Hibernate Snipplets</title>
		<description><![CDATA[Few snipplets making the usage of hibernate with annotations within spring easier.


&#60;bean name=&#34;systemProperties&#34; 
  class=&#34;org.springframework.beans.factory.config.PropertyPlaceholderConfigurer&#34; 
  lazy-init=&#34;false&#34;&#62;
  &#60;property name=&#34;location&#34; value=&#34;classpath:myproject.properties&#34;/&#62;
&#60;/bean&#62;
&#160;
&#60;bean id=&#34;dataSource&#34; class=&#34;org.apache.commons.dbcp.BasicDataSource&#34; destroy-method=&#34;close&#34;&#62;
  &#60;property name=&#34;driverClassName&#34; value=&#34;com.mysql.jdbc.Driver&#34; /&#62;
  &#60;property name=&#34;url&#34; value=&#34;${db.url}&#34; /&#62;
  &#60;property name=&#34;username&#34; value=&#34;${db.user}&#34; /&#62;
  &#60;property name=&#34;password&#34; value=&#34;${db.password}&#34; /&#62;
  &#60;property name=&#34;maxActive&#34; value=&#34;${db.maxconnections}&#34;/&#62;
  &#60;property name=&#34;maxIdle&#34; value=&#34;${db.minconnections}&#34;/&#62;
  [...]]]></description>
		<link>http://narcanti.keyboardsamurais.de/spring-hibernate-snipplets.html</link>
			</item>
	<item>
		<title>Mukke: I need you</title>
		<description><![CDATA[Diesmal ein etwas schnulziger Trance, den ich f&#252;r Sarah geschrieben habe.
Die Vocals stammen aus dem Lied &#8220;So in love with you&#8221; von Duke.



Download
]]></description>
		<link>http://narcanti.keyboardsamurais.de/mukke-i-need-you.html</link>
			</item>
	<item>
		<title>Natural Order Filename Comparator</title>
		<description><![CDATA[K&#252;rzlich geschrieben und als n&#252;tzlich empfunden:
Ein Comparator f&#252;r Files, der eine nat&#252;rliche Reihenfolge schafft, Nummernprefixe in Dateinamen ihrem Wert entsprechend sortiert, also z. B. "1.jpg", "2.jpg", "11.jpg", "a.jpg", was bei alphabetischer Sortierung (wie in den meisten Betreibssystemen eingesetzt) zu "1.jpg", "11.jpg", "2.jpg", "a.jpg" wird.


import java.io.File;
import java.text.Collator;
import java.util.Comparator;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
&#160;
public class FilenameNaturalOrderComparator implements Comparator&#60;File&#62;&#123;
  private [...]]]></description>
		<link>http://narcanti.keyboardsamurais.de/natural-order-filename-comparator.html</link>
			</item>
</channel>
</rss>
