<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Error Solved</title>
	<atom:link href="http://solveme.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://solveme.wordpress.com</link>
	<description>Finally I solved the error</description>
	<lastBuildDate>Wed, 11 Nov 2009 07:19:00 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='solveme.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/605bab9a55109a23e84e1160bb1e5c3b?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Error Solved</title>
		<link>http://solveme.wordpress.com</link>
	</image>
			<item>
		<title>DDD Without any ORM tool, is it possible !!</title>
		<link>http://solveme.wordpress.com/2009/11/11/ddd-without-any-orm-tool-is-it-possible/</link>
		<comments>http://solveme.wordpress.com/2009/11/11/ddd-without-any-orm-tool-is-it-possible/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 07:19:00 +0000</pubDate>
		<dc:creator>daringtakers</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[DDD]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=86</guid>
		<description><![CDATA[DDD Without any ORM tool, is it possible !!  
Look at the thread http://tech.groups.yahoo.com/group/domaindrivendesign/message/16021
If you have done DDD without any ORM, your comments are valuable.
Please write your views.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=86&subd=solveme&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>DDD Without any ORM tool, is it possible !!  </p>
<p>Look at the thread <a href="http://tech.groups.yahoo.com/group/domaindrivendesign/message/16021">http://tech.groups.yahoo.com/group/domaindrivendesign/message/16021</a></p>
<p>If you have done DDD without any ORM, your comments are valuable.<br />
Please write your views.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=86&subd=solveme&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2009/11/11/ddd-without-any-orm-tool-is-it-possible/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/66e04160aa66aeb25c4340959c5f2995?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">daringtakers</media:title>
		</media:content>
	</item>
		<item>
		<title>CentOS: Server refused to allocate pty</title>
		<link>http://solveme.wordpress.com/2009/07/14/centos-server-refused-to-allocate-pty/</link>
		<comments>http://solveme.wordpress.com/2009/07/14/centos-server-refused-to-allocate-pty/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 10:43:26 +0000</pubDate>
		<dc:creator>daringtakers</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=83</guid>
		<description><![CDATA[The Problem
When I tried to login to my VPS using putty, It gave me message.
 Server refused to allocate pty
And then I was not able to execute any commands.
The solution
Execute following two commands, and it should solve the problem.

/sbin/MAKEDEV pty
/sbin/MAKEDEV tty

I am using lxadmin, so I logged into lxadmin and run above commands from command [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=83&subd=solveme&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>The Problem</strong><br />
When I tried to login to my VPS using putty, It gave me message.</p>
<blockquote><p> Server refused to allocate pty</p></blockquote>
<p>And then I was not able to execute any commands.</p>
<p><strong>The solution</strong><br />
Execute following two commands, and it should solve the problem.</p>
<p><code><br />
/sbin/MAKEDEV pty<br />
/sbin/MAKEDEV tty<br />
</code></p>
<p>I am using lxadmin, so I logged into lxadmin and run above commands from command center.<br />
That&#8217;s it ! It works.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=83&subd=solveme&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2009/07/14/centos-server-refused-to-allocate-pty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/66e04160aa66aeb25c4340959c5f2995?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">daringtakers</media:title>
		</media:content>
	</item>
		<item>
		<title>Foreign key violation when saving embedded forms</title>
		<link>http://solveme.wordpress.com/2009/06/30/foreign-key-violation-when-saving-symfony-embedded-forms/</link>
		<comments>http://solveme.wordpress.com/2009/06/30/foreign-key-violation-when-saving-symfony-embedded-forms/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 06:11:53 +0000</pubDate>
		<dc:creator>daringtakers</dc:creator>
				<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=75</guid>
		<description><![CDATA[The problem
For one of my symfony  based project, I required to create embedded forms.
I have following schema

propel:
user:
id: ~
name: {type: varchar(100)}
password: {type: varchar(100)}
registrations:
id: ~
user_id: {type: integer, foreignTable: user, foreignReference: id, required: true}

Schema shown above is not complete, it just shows important fields only.
I generated model and form classes using propel:build-all task, and then embedded UserForm [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=75&subd=solveme&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h3>The problem</h3>
<p>For one of my <a href="http://www.symfony-project.org">symfony </a> based project, I required to create <a href="http://www.symfony-project.org/blog/2008/11/10/call-the-expert-nested-forms-a-real-implementation">embedded forms</a>.</p>
<p>I have following schema</p>
<p><code><br />
propel:</p>
<p>user:<br />
id: ~<br />
name: {type: varchar(100)}<br />
password: {type: varchar(100)}</p>
<p>registrations:<br />
id: ~<br />
user_id: {type: integer, foreignTable: user, foreignReference: id, required: true}</p>
<p></code><br />
Schema shown above is not complete, it just shows important fields only.<br />
I generated model and form classes using propel:build-all task, and then embedded UserForm into RegistrationsForm as follow.</p>
<p><code><br />
class RegistrationsForm extends BaseRegistrationsForm<br />
{<br />
public function configure()<br />
{<br />
unset($this['user_id']);<br />
$user = $this-&gt;getObject()-&gt;getUser();<br />
$userform = new UserForm($user);<br />
$this-&gt;embedForm("User", $userform);<br />
 }<br />
}<br />
</code></p>
<p>It works when updating an existing Registration, but when creating new registration, user_id is not set on new Registration, so no association is made between Registration and user and it gave exception of foreign key constraint violation.</p>
<h3>The solution</h3>
<p>So what was I doing wrong?</p>
<p><code><br />
$user = $this-&gt;getObject()-&gt;getUser();<br />
$userform = new UserForm($user);<br />
</code></p>
<p>This was the wrong way to create new UserForm. It works when updating an existing registration, because the user is already associated with Registration so $this-&gt;getObject()-&gt;getUser() will return an instance of User.</p>
<p>It won&#8217;t work when creating new Registration as $user = $this-&gt;getObject()-&gt;getUser(); will return null.<br />
You need to check if User is null, then create a new user and set it on Registration.</p>
<h3>Correct code</h3>
<p><code><br />
class RegistrationsForm extends BaseRegistrationsForm<br />
{<br />
public function configure()<br />
{<br />
unset($this['user_id']);<br />
$user = $this-&gt;getObject()-&gt;getUser();<br />
if(is_null($user)) {<br />
$user = new User();<br />
$this-&gt;getObject()-&gt;setUser($user);<br />
}</code></p>
<p>$userform = new UserForm($user);<br />
$this-&gt;embedForm(&#8220;User&#8221;, $userform);<br />
}<br />
}</p>
<p>That&#8217;s it.. it works like a charm.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=75&subd=solveme&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2009/06/30/foreign-key-violation-when-saving-symfony-embedded-forms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/66e04160aa66aeb25c4340959c5f2995?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">daringtakers</media:title>
		</media:content>
	</item>
		<item>
		<title>ubuntu: install multimedia codecs without internet connection</title>
		<link>http://solveme.wordpress.com/2009/02/12/ubuntu-install-multimedia-codecs-without-internet-connection/</link>
		<comments>http://solveme.wordpress.com/2009/02/12/ubuntu-install-multimedia-codecs-without-internet-connection/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 12:14:53 +0000</pubDate>
		<dc:creator>daringtakers</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[codecs]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=63</guid>
		<description><![CDATA[Problem: You can&#8217;t play certain audio/video formats, because required codecs  are not installed. So you need to install this extras but again, your machine don&#8217;t have direct internet connection.
Solution:
I am still looking for solution. if you have any, let me know.
I think this can solve it http://crashsystems.net/2009/01/keryx-tutorial/
Still trying out and not sure, if it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=63&subd=solveme&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Problem: You can&#8217;t play certain audio/video formats, because required codecs  are not installed. So you need to install this extras but again, your machine don&#8217;t have direct internet connection.</p>
<p>Solution:<br />
I am still looking for solution. if you have any, let me know.</p>
<p>I think this can solve it <a href="http://crashsystems.net/2009/01/keryx-tutorial">http://crashsystems.net/2009/01/keryx-tutorial/</a><br />
Still trying out and not sure, if it provide an alternative.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=63&subd=solveme&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2009/02/12/ubuntu-install-multimedia-codecs-without-internet-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/66e04160aa66aeb25c4340959c5f2995?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">daringtakers</media:title>
		</media:content>
	</item>
		<item>
		<title>Javascript CSV parser</title>
		<link>http://solveme.wordpress.com/2009/02/10/javascript-csv-parser/</link>
		<comments>http://solveme.wordpress.com/2009/02/10/javascript-csv-parser/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 13:41:38 +0000</pubDate>
		<dc:creator>daringtakers</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[parser]]></category>
		<category><![CDATA[regular expression]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=61</guid>
		<description><![CDATA[
var expr = /,(?=(?:[^\"]*\”[^\"]*\”)*(?![^\"]*\”))/g;
var array = str.split(expr);

it works for me

function parseLineCSV(lineCSV) {
// parse csv line by line into array
 var CSV = new Array();
 // Insert space before character ",". This is to anticipate 'split' in IE
 // try this:
 //
 // var a=",,,a,,b,,c,,,,d";
 // a=a.split(/\,/g);
 // document.write(a.length);
 //
 // You will see unexpected result!
 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=61&subd=solveme&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><code><br />
var expr = /,(?=(?:[^\"]*\”[^\"]*\”)*(?![^\"]*\”))/g;<br />
var array = str.split(expr);<br />
</code><br />
it works for me</p>
<p><code><br />
function parseLineCSV(lineCSV) {<br />
// parse csv line by line into array<br />
 var CSV = new Array();</p>
<p> // Insert space before character ",". This is to anticipate 'split' in IE<br />
 // try this:<br />
 //<br />
 // var a=",,,a,,b,,c,,,,d";<br />
 // a=a.split(/\,/g);<br />
 // document.write(a.length);<br />
 //<br />
 // You will see unexpected result!<br />
 //<br />
 lineCSV = lineCSV.replace(/,/g," ,");</p>
<p> lineCSV = lineCSV.split(/,/g);</p>
<p> // This is continuing of 'split' issue in IE<br />
 // remove all trailing space in each field<br />
 for (var i=0;i<br />
	&lt;lineCSV.length;i++) {<br />
 lineCSV[i] = lineCSV[i].replace(/\s*$/g,"");<br />
 }</p>
<p> lineCSV[lineCSV.length-1]=lineCSV[lineCSV.length-1].replace(/^\s*|\s*$/g,"");<br />
 var fstart = -1;</p>
<p> for (var i=0;i=0) {<br />
 for (var j=fstart+1;j&lt;=i;j++) {<br />
 lineCSV[fstart]=lineCSV[fstart]+","+lineCSV[j];<br />
 lineCSV[j]="-DELETED-";<br />
 }<br />
 fstart=-1;<br />
 }<br />
 }<br />
 fstart = (lineCSV[i].match(/^"/)) ? i : fstart;<br />
 }</p>
<p> var j=0;</p>
<p> for (var i=0;i<br />
	&lt;lineCSV.length;i++) {<br />
 if (lineCSV[i]!="-DELETED-") {<br />
 CSV[j] = lineCSV[i];<br />
 CSV[j] = CSV[j].replace(/^\s*|\s*$/g,"");     // remove leading &amp; trailing space<br />
 CSV[j] = CSV[j].replace(/^"|"$/g,"");         // remove " on the beginning and end<br />
 CSV[j] = CSV[j].replace(/""/g,'"');           // replace "" with "<br />
 j++;<br />
 }<br />
 }</p>
<p> return CSV;<br />
}<br />
</code><br />
It works for me, I got it from here http://purbayubudi.wordpress.com/2008/11/09/csv-parser-using-javascript/</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=61&subd=solveme&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2009/02/10/javascript-csv-parser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/66e04160aa66aeb25c4340959c5f2995?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">daringtakers</media:title>
		</media:content>
	</item>
		<item>
		<title>SVN commit failed: Property &#8220;svn:needs-lock&#8221; needed</title>
		<link>http://solveme.wordpress.com/2009/01/22/svn-commit-failed-property-svn-needs-lock-needed/</link>
		<comments>http://solveme.wordpress.com/2009/01/22/svn-commit-failed-property-svn-needs-lock-needed/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 07:34:57 +0000</pubDate>
		<dc:creator>daringtakers</dc:creator>
				<category><![CDATA[svn]]></category>
		<category><![CDATA[locking]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=53</guid>
		<description><![CDATA[Error description: Can not commit binary files into SVN repository.
Error message:
 A repository hook failed
svn: Commit failed (details follow):
svn: MERGE request failed on 'XYZ'
svn: Commit blocked by pre-commit hook (exit code 2) with output:
ERROR: Commit failed for the following reasons:
Property "svn:needs-lock" needed for file "xyz binary file".
Must match regex '.*'.
Look at http://subversion.tigris.org/faq.html#binary-files to see how [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=53&subd=solveme&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Error description: Can not commit binary files into SVN repository.</p>
<p><strong>Error message:</strong><br />
<code> A repository hook failed<br />
svn: Commit failed (details follow):<br />
svn: MERGE request failed on 'XYZ'<br />
svn: Commit blocked by pre-commit hook (exit code 2) with output:<br />
ERROR: Commit failed for the following reasons:<br />
Property "svn:needs-lock" needed for file "xyz binary file".<br />
Must match regex '.*'.</code></p>
<p>Look at <a href="http://subversion.tigris.org/faq.html#binary-files">http://subversion.tigris.org/faq.html#binary-files</a> to see how does subversion handles binary files.</p>
<p>When a file consists of binary data, it&#8217;s often difficult or impossible to merge two sets of changes made in parallel by different users. For this reason, Subversion 1.2 and later offers a feature known as locking, often known as “reserved checkouts” in other version control systems.</p>
<p>Once a file is locked by an user, another user can not commit it.</p>
<p><strong>svn:needs-lock property</strong><br />
If the property is attached to a file (the value is irrelevant), then the file will have read-only permissions. When the user locks the file and receives a lock token, the file becomes read-write. When the lock is released—either explicitly unlocked, or released via commit—the file returns to read-only again.</p>
<p>Binary files must have this property, otherwise it can not be committed. the value of this property is irrelevant.</p>
<p>Look at <a href="http://subversion.tigris.org/faq.html#binary-files">http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html</a> it explains SVN locking model</p>
<p><strong>Solution</strong><br />
Add the svn:needs-lock property to the file in question. The SVN property can be set using SVN client like tortoise or using SVN propset  sub command from command prompt.</p>
<p><code>svn propset svn:needs-lock '*' file name</code></p>
<p>For more information on SVN properties, look at <a href="http://subversion.tigris.org/faq.html#binary-files">http://svnbook.red-bean.com/en/1.4/svn.advanced.props.html</a></p>
<p>That&#8217;s it, try to commit it.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=53&subd=solveme&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2009/01/22/svn-commit-failed-property-svn-needs-lock-needed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/66e04160aa66aeb25c4340959c5f2995?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">daringtakers</media:title>
		</media:content>
	</item>
		<item>
		<title>Eclipse project missing java builder</title>
		<link>http://solveme.wordpress.com/2009/01/06/eclipse-project-missing-default-java-builder/</link>
		<comments>http://solveme.wordpress.com/2009/01/06/eclipse-project-missing-default-java-builder/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 09:43:13 +0000</pubDate>
		<dc:creator>daringtakers</dc:creator>
				<category><![CDATA[eclipse]]></category>
		<category><![CDATA[builder]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=46</guid>
		<description><![CDATA[Description: Eclipse can not build the project, because  project is missing default builder.  It happens most of the time when checking out project from SVN or CVS.
Solution:  You need to add the default Java builder into .project file.
Verify that following lines are present in .project file of the eclipse project. If it is not present [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=46&subd=solveme&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Description: Eclipse can not build the project, because  project is missing default builder.  It happens most of the time when checking out project from SVN or CVS.</p>
<p>Solution:  You need to add the default Java builder into <strong>.project</strong> file.</p>
<p>Verify that following lines are present in <strong>.project</strong> file of the eclipse project. If it is not present in the file, copy it from here and save the file.</p>
<h3>Adding default Java builder</h3>
<p><code><br />
&lt;buildSpec&gt;<br />
&lt;buildCommand&gt;<br />
&lt;name&gt;org.eclipse.jdt.core.javabuilder&lt;/name&gt;<br />
&lt;arguments&gt;<br />
&lt;/arguments&gt;<br />
&lt;/buildCommand&gt;<br />
&lt;/buildSpec&gt;<br />
&lt;natures&gt;<br />
&lt;nature&gt;org.eclipse.jdt.core.javanature&lt;/nature&gt;<br />
&lt;/natures&gt;<br />
</code></p>
<p>That&#8217;s it! select the Java builder from project propertiese &gt; builder, clean and build the project again. you should be able to build the project now.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=46&subd=solveme&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2009/01/06/eclipse-project-missing-default-java-builder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/66e04160aa66aeb25c4340959c5f2995?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">daringtakers</media:title>
		</media:content>
	</item>
		<item>
		<title>SSLHandshakeException: When trying trying to access a HTTPS URL</title>
		<link>http://solveme.wordpress.com/2008/12/10/javax-net-ssl-sslhandshakeexception/</link>
		<comments>http://solveme.wordpress.com/2008/12/10/javax-net-ssl-sslhandshakeexception/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 14:05:40 +0000</pubDate>
		<dc:creator>daringtakers</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[exception]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=39</guid>
		<description><![CDATA[I was trying to access a HTTPS URL using java.net.HttpURLConnection and got following error.
Error
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Most of the time, this exception occurs when you are using selfsigned certificate.
Reason:  The host that you are trying to connect has an self signed certificate, and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=39&subd=solveme&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was trying to access a HTTPS URL using java.net.HttpURLConnection and got following error.</p>
<p>Error<br />
<code>javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target</code><br />
Most of the time, this exception occurs when you are using selfsigned certificate.</p>
<p><strong>Reason</strong>:  The host that you are trying to connect has an self signed certificate, and that certificate is not in your truststore.</p>
<p><strong>Description</strong>:<br />
Actually I am using the tomcat server and I have enabled HTTPS connector. I have created a selfsigned certificate for the tomcat.</p>
<p>I have a standalone Java program which connects to the server and downloads file over HTTPS. But when I try to connect to the server, it threw SSLHandshakeException.</p>
<p><strong>Solution</strong>:  Solution to resolve this exception is to import the selfsigned certificate into the system truststore.<br />
Below steps explains how to do it.</p>
<h3>Step-1: Export the certificate.</h3>
<p>Export your self signed certificate using keytool utility provided with JDK.open the command prompt and change current directory to JAVA_HOME/bin. Now run following command.<br />
<code><br />
keytool  -export -alias tomcat -storepass changeit  -file tomcat.cer<br />
</code><br />
It will create a tomcat.cer file in the current directory.</p>
<p><strong>Note: You may need to modify -alias and -storepass options if required. Default keystore  password is &#8216;changeit&#8217;.</strong></p>
<h3>Step-2: Import the certificate into truststore.</h3>
<p><code> keytool -import -alias tomcat -file tomcat.cer -keystore &lt;path to JAVA_HOME&gt;\jre\lib\security\cacerts</code><br />
or<code><br />
keytool -import -alias tomcat -file tomcat.cer -keystore ..\jre\lib\security\cacerts<br />
</code><br />
It will ask you to enter keystore password. Default password is &#8216;changeit&#8217;.  when it ask, &#8216;Trust this certificate?&#8217;, type yes and press enter.</p>
<h3>Step-3: Verify that the certificate is added successfully</h3>
<p><code> keytool -list -keystore C:\j2sdk1.4.2_16\jre\lib\security\cacerts<br />
</code><br />
It will list all the certificate. verify that the certificate you just added is present in list.</p>
<p>That&#8217;s it! now run your program again.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=39&subd=solveme&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2008/12/10/javax-net-ssl-sslhandshakeexception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/66e04160aa66aeb25c4340959c5f2995?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">daringtakers</media:title>
		</media:content>
	</item>
		<item>
		<title>Could not perform XSLT transformation. Make sure PHP has been compiled/configured to support XSLT.</title>
		<link>http://solveme.wordpress.com/2008/11/13/could-not-perform-xslt-transformation-make-sure-php-has-been-compiledconfigured-to-support-xslt/</link>
		<comments>http://solveme.wordpress.com/2008/11/13/could-not-perform-xslt-transformation-make-sure-php-has-been-compiledconfigured-to-support-xslt/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 13:42:31 +0000</pubDate>
		<dc:creator>daringtakers</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[pear]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wamp]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=35</guid>
		<description><![CDATA[Error when running symfony on wamp server.
Description:   I was trying to run the symfony PHP framework. I tried to build the model using command
php symfony propel:build-model.
And it gave error Could not perform XSLT transformation. Make sure PHP has been compiled/configured to support XSLT. 
Environment: Wamp server 2.0, PHP 5.2.5, Apache 2.2.6.
Reason: PHP-XSL extension is not [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=35&subd=solveme&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Error when running symfony on wamp server.</p>
<p><strong>Description</strong>:   I was trying to run the <a href="http://www.symfony-project.org">symfony PHP framework</a>. I tried to build the model using command<br />
<code>php symfony propel:build-model.</code></p>
<p>And it gave error <strong>Could not perform XSLT transformation. Make sure PHP has been compiled/configured to support XSLT. </strong></p>
<p><strong>Environment</strong>: Wamp server 2.0, PHP 5.2.5, Apache 2.2.6.</p>
<p><strong>Reason</strong>: PHP-XSL extension is not enabled. By default, Wamp server doesnt enable php-xsl php extension. and php-xsl is required.</p>
<p><strong>Solution</strong>: Enable php-xsl extension.</p>
<p align="justify">left click on WAMP’s tray icon and than in PHP&gt;PHP extensions select php-xsl and enable it.But there is one more <em>php.ini</em> file, which WAMP won’t change, we need to do it by hand, open: <em>C:\wamp\bin\php\php5.2.5\php.ini</em> and remove “;” from the line</p>
<p align="justify"><strong>;extension=php_xsl.dll</strong></p>
<p align="justify">And then restart the server. Try to run the build command again.</p>
<p align="justify">Some useful links to get symfony running properly on wamp.</p>
<p align="justify"><a href="http://trac.symfony-project.org/wiki/SymfonyOnWAMP">http://trac.symfony-project.org/wiki/SymfonyOnWAMP</a></p>
<p align="justify"><a href="http://anandshahil11.wordpress.com/symfony-php-framwework-installation-on-windows-wamp/">http://anandshahil11.wordpress.com/symfony-php-framwework-installation-on-windows-wamp/</a></p>
<p align="justify">
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=35&subd=solveme&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2008/11/13/could-not-perform-xslt-transformation-make-sure-php-has-been-compiledconfigured-to-support-xslt/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/66e04160aa66aeb25c4340959c5f2995?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">daringtakers</media:title>
		</media:content>
	</item>
		<item>
		<title>An internal error occurred during updating JSP index</title>
		<link>http://solveme.wordpress.com/2008/10/06/an-internal-error-occurred-during-updating-jsp-index/</link>
		<comments>http://solveme.wordpress.com/2008/10/06/an-internal-error-occurred-during-updating-jsp-index/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 13:32:05 +0000</pubDate>
		<dc:creator>daringtakers</dc:creator>
				<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=30</guid>
		<description><![CDATA[Problem  Whenever I replace any jar file in workspace, eclipse shows error
An internal error occurred during updating JSP index
Solution the only solution I know so far is, restart eclipse workspace.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=30&subd=solveme&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Problem </strong> Whenever I replace any jar file in workspace, eclipse shows error<br />
An internal error occurred during updating JSP index</p>
<p><strong>Solution</strong> the only solution I know so far is, restart eclipse workspace.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=30&subd=solveme&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2008/10/06/an-internal-error-occurred-during-updating-jsp-index/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/66e04160aa66aeb25c4340959c5f2995?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">daringtakers</media:title>
		</media:content>
	</item>
	</channel>
</rss>