<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Gullele's Corner</title>
	<atom:link href="http://gullele.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://gullele.wordpress.com</link>
	<description>Sharing thoughts...iznit cooool..</description>
	<lastBuildDate>Fri, 27 Jan 2012 21:20:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='gullele.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Gullele's Corner</title>
		<link>http://gullele.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://gullele.wordpress.com/osd.xml" title="Gullele&#039;s Corner" />
	<atom:link rel='hub' href='http://gullele.wordpress.com/?pushpress=hub'/>
		<item>
		<title>dumping mysql database ignoring some tables</title>
		<link>http://gullele.wordpress.com/2012/01/27/dumping-mysql-database-ignoring-some-tables/</link>
		<comments>http://gullele.wordpress.com/2012/01/27/dumping-mysql-database-ignoring-some-tables/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 21:20:31 +0000</pubDate>
		<dc:creator>gullele</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[dumping database in mysql]]></category>
		<category><![CDATA[ignore in mysqldump]]></category>
		<category><![CDATA[mysql ignore dump tutorial]]></category>
		<category><![CDATA[mysqldump tutorial]]></category>

		<guid isPermaLink="false">http://gullele.wordpress.com/?p=502</guid>
		<description><![CDATA[Mysql comes with a handy tool for dumping database, like from remote server to local machine or vice versa. Sometimes you might want to dump some tables but not the other here you go! mysqldump -h[HOST] -u[USERNAME] --port=[PORT] -p --ignore [ignoretablename] databasename &#62; databasename.sql The database.sql would contain all the schema + data. Then import [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gullele.wordpress.com&amp;blog=7308586&amp;post=502&amp;subd=gullele&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Mysql comes with a handy tool for dumping database, like from remote server to local machine or vice versa.<br />
Sometimes you might want to dump some tables but not the other here you go!</p>
<pre>
mysqldump -h[HOST] -u[USERNAME] --port=[PORT] -p --ignore [ignoretablename] databasename &gt; databasename.sql
</pre>
<p>The database.sql would contain all the schema + data.<br />
Then import it as </p>
<pre>
mysql -h[host] -u[username] -p databasename &lt; databasename.sql
</pre>
<p>You can provide -p[password] or if you leave it as -p you would be prompted for password later which is a cool way to proceed.<br />
ENJomYsql!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gullele.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gullele.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gullele.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gullele.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gullele.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gullele.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gullele.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gullele.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gullele.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gullele.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gullele.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gullele.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gullele.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gullele.wordpress.com/502/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gullele.wordpress.com&amp;blog=7308586&amp;post=502&amp;subd=gullele&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gullele.wordpress.com/2012/01/27/dumping-mysql-database-ignoring-some-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f39c248f0250d610dc82ab5e20a1207?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gullele</media:title>
		</media:content>
	</item>
		<item>
		<title>Mass/Multiple file upload in Java ServerFaces JSF</title>
		<link>http://gullele.wordpress.com/2012/01/02/massmultiple-file-upload-in-java-serverfaces-jsf/</link>
		<comments>http://gullele.wordpress.com/2012/01/02/massmultiple-file-upload-in-java-serverfaces-jsf/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 01:46:24 +0000</pubDate>
		<dc:creator>gullele</dc:creator>
				<category><![CDATA[JavaServer Faces]]></category>
		<category><![CDATA[JSF]]></category>
		<category><![CDATA[multipart form data]]></category>

		<guid isPermaLink="false">http://gullele.wordpress.com/?p=496</guid>
		<description><![CDATA[Without knowing if it is the best approach or not, I will post how I solved the multiple file upload problem in JSF as follows. Here is the xhtml file that would take the files &#60;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&#62; &#60;html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:t="http://myfaces.apache.org/tomahawk"&#62; &#60;h:head&#62; &#60;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js"&#62; &#60;/script&#62; &#60;meta http-equiv="Content-Type" [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gullele.wordpress.com&amp;blog=7308586&amp;post=496&amp;subd=gullele&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Without knowing if it is the best approach or not, I will post how I solved the multiple file upload problem in JSF as follows.<br />
Here is the xhtml file that would take the files</p>
<pre>

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:t="http://myfaces.apache.org/tomahawk"&gt;
&lt;h:head&gt;
&lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js"&gt;
&lt;/script&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
&lt;h:outputScript library="javascript" name="amharic.js"/&gt;
&lt;title&gt;OH YEA, PUT your face HERE&lt;/title&gt;
&lt;/h:head&gt;
&lt;h:body&gt;

&lt;h:form id="uploadForm" enctype="multipart/form-data"&gt;
&lt;h:panelGrid columns="3"&gt;
&lt;h:outputLabel for="file1" value="Select file" /&gt;
&lt;t:inputFileUpload id="file1" value="#{myBean.uploadedFile}" required="true" /&gt;
&lt;h:message for="file1" style="color: red;" /&gt;
&lt;h:outputLabel for="file2" value="Select file" /&gt;
&lt;t:inputFileUpload id="file2" value="#{myBean.uploadedFile}" required="false" /&gt;
&lt;h:message for="file2" style="color: red;" /&gt;
&lt;h:outputLabel for="file3" value="Select file" /&gt;
&lt;t:inputFileUpload id="file3" value="#{myBean.uploadedFile}" required="false" /&gt;
&lt;h:message for="file3" style="color: red;" /&gt;

&lt;h:panelGroup /&gt;
&lt;h:commandButton value="save" action="#{myBean.uploadFiles}" /&gt;
&lt;h:message for="uploadForm" infoStyle="color: green;" errorStyle="color: red;" /&gt;
&lt;/h:panelGrid&gt;
&lt;/h:form&gt;
&lt;/h:body&gt;
&lt;/html&gt;
</pre>
<p>As you can see, the file would be dealing with a single backing bean property uploadedFile. You would tomahawk for the file upload one. There is also file upload in richfaces as well.</p>
<p>Now, let&#8217;s see what is the hood of MyBean.java. In the bean you would have to member variables for this purpose:</p>
<pre>
private List&lt;UploadedFile&gt; uploadedFiles;
private UploadedFile uploadedFile;
</pre>
<p>You can get the uploaded file from org.apache.myfaces.custom.fileupload.UploadedFile.<br />
Then have a normal getter and setter for both.<br />
The trick is in the setter of the uploadedFile:</p>
<pre>
public void setUploadedFile(UploadedFile uploadedFile){
this.uploadedFiles.add(uploadedFile);
}
</pre>
<p>When the file is requested, add it to the list of the uploadedFiles.<br />
For the action which would would do the actual uploading of the file, I have used the snippet from http://balusc.blogspot.com/2008/02/uploading-files-with-jsf.html.</p>
<pre>
public String uploadFiles(){
for(UploadedFile uploadedFile : this.uploadedFiles){
if (uploadedFile !=null ){

// Prepare filename prefix and suffix for an unique filename in upload folder.
String prefix = FilenameUtils.getBaseName(uploadedFile.getName());
String suffix = FilenameUtils.getExtension(uploadedFile.getName());

// Prepare file and outputstream.
File file = null;
OutputStream output = null;
try {
// Create file with unique name in upload folder and write to it.
file = File.createTempFile(prefix + "_", "." + suffix, new File("Your_Path"));
output = new FileOutputStream(file);
IOUtils.copy(uploadedFile.getInputStream(), output);

// Show succes message.
FacesContext.getCurrentInstance().addMessage("uploadForm", new FacesMessage(
FacesMessage.SEVERITY_INFO, "File upload succeed!", null));
} catch (IOException e) {
// Cleanup.
if (file != null) file.delete();

// Show error message.
FacesContext.getCurrentInstance().addMessage("uploadForm", new FacesMessage(
FacesMessage.SEVERITY_ERROR, "File upload failed with I/O error.", null));

// Always log stacktraces (with a real logger).
e.printStackTrace();
} finally {
IOUtils.closeQuietly(output);
}
}
}
return "done";
}
</pre>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gullele.wordpress.com/496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gullele.wordpress.com/496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gullele.wordpress.com/496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gullele.wordpress.com/496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gullele.wordpress.com/496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gullele.wordpress.com/496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gullele.wordpress.com/496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gullele.wordpress.com/496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gullele.wordpress.com/496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gullele.wordpress.com/496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gullele.wordpress.com/496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gullele.wordpress.com/496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gullele.wordpress.com/496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gullele.wordpress.com/496/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gullele.wordpress.com&amp;blog=7308586&amp;post=496&amp;subd=gullele&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gullele.wordpress.com/2012/01/02/massmultiple-file-upload-in-java-serverfaces-jsf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f39c248f0250d610dc82ab5e20a1207?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gullele</media:title>
		</media:content>
	</item>
		<item>
		<title>webxml attribute is required error on maven build of war</title>
		<link>http://gullele.wordpress.com/2011/12/23/webxml-attribute-is-required-error-on-maven-build-of-war/</link>
		<comments>http://gullele.wordpress.com/2011/12/23/webxml-attribute-is-required-error-on-maven-build-of-war/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 06:32:02 +0000</pubDate>
		<dc:creator>gullele</dc:creator>
				<category><![CDATA[JavaServer Faces]]></category>
		<category><![CDATA[jsf error]]></category>
		<category><![CDATA[webxml attribute missing]]></category>

		<guid isPermaLink="false">http://gullele.wordpress.com/?p=493</guid>
		<description><![CDATA[This error appears mostly when Maven could not find the web.xml file. If you are following the default maven structure, make sure the webapp folder is named correctly &#8211; like not webapps or something like that. Once you make sure, you can try by explicitly telling maven where the web.xml file is using   &#60;plugin&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gullele.wordpress.com&amp;blog=7308586&amp;post=493&amp;subd=gullele&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This error appears mostly when Maven could not find the web.xml file. If you are following the default maven structure, make sure the webapp folder is named correctly &#8211; like not webapps or something like that.<br />
Once you make sure, you can try by explicitly telling maven where the web.xml file is using</p>
<pre> 
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
&lt;version&gt;2.0&lt;/version&gt;
&lt;configuration&gt;
&lt;webXml&gt;src/main/webapp/WEB-INF/web.xml&lt;/webXml&gt;
&lt;/configuration&gt;
&lt;/plugin&gt;
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gullele.wordpress.com/493/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gullele.wordpress.com/493/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gullele.wordpress.com/493/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gullele.wordpress.com/493/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gullele.wordpress.com/493/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gullele.wordpress.com/493/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gullele.wordpress.com/493/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gullele.wordpress.com/493/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gullele.wordpress.com/493/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gullele.wordpress.com/493/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gullele.wordpress.com/493/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gullele.wordpress.com/493/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gullele.wordpress.com/493/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gullele.wordpress.com/493/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gullele.wordpress.com&amp;blog=7308586&amp;post=493&amp;subd=gullele&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gullele.wordpress.com/2011/12/23/webxml-attribute-is-required-error-on-maven-build-of-war/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f39c248f0250d610dc82ab5e20a1207?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gullele</media:title>
		</media:content>
	</item>
		<item>
		<title>nosuchfielderror tokentypetoastclassmap Error in JPA</title>
		<link>http://gullele.wordpress.com/2011/12/14/nosuchfielderror-tokentypetoastclassmap-error-in-jpa/</link>
		<comments>http://gullele.wordpress.com/2011/12/14/nosuchfielderror-tokentypetoastclassmap-error-in-jpa/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 03:35:04 +0000</pubDate>
		<dc:creator>gullele</dc:creator>
				<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[Java Web]]></category>

		<guid isPermaLink="false">http://gullele.wordpress.com/?p=491</guid>
		<description><![CDATA[Did you come across this error while trying to access Hibernate query language like simple select? The problem is mainly on the version of the antlr.jar If you are not using Application server and putting all the jar by your self, check if you have added antlr-build.jar or some earlier version of that jar. Replace [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gullele.wordpress.com&amp;blog=7308586&amp;post=491&amp;subd=gullele&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Did you come across this error while trying to access Hibernate query language like simple select?<br />
The problem is mainly on the version of the antlr.jar<br />
If you are not using Application server and putting all the jar by your self, check if you have added antlr-build.jar or some earlier version of that jar. Replace it and you should be fine.<br />
Good luck.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gullele.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gullele.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gullele.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gullele.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gullele.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gullele.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gullele.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gullele.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gullele.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gullele.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gullele.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gullele.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gullele.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gullele.wordpress.com/491/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gullele.wordpress.com&amp;blog=7308586&amp;post=491&amp;subd=gullele&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gullele.wordpress.com/2011/12/14/nosuchfielderror-tokentypetoastclassmap-error-in-jpa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f39c248f0250d610dc82ab5e20a1207?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gullele</media:title>
		</media:content>
	</item>
		<item>
		<title>Submit is not a function javascript error</title>
		<link>http://gullele.wordpress.com/2011/12/12/submit-is-not-a-function-javascript-error/</link>
		<comments>http://gullele.wordpress.com/2011/12/12/submit-is-not-a-function-javascript-error/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 18:34:26 +0000</pubDate>
		<dc:creator>gullele</dc:creator>
				<category><![CDATA[jQuery/JavaScript/CSS]]></category>
		<category><![CDATA[javascrit submit error]]></category>
		<category><![CDATA[submit is not function error]]></category>

		<guid isPermaLink="false">http://gullele.wordpress.com/?p=488</guid>
		<description><![CDATA[Simple but annoying error. This occurs when you access the submit function of the form. Check the button you used to submit is named submit or not &#8211; that is causing it!!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gullele.wordpress.com&amp;blog=7308586&amp;post=488&amp;subd=gullele&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Simple but annoying error.<br />
This occurs when you access the submit function of the form. Check the button you used to submit is named submit or not &#8211; that is causing it!!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gullele.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gullele.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gullele.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gullele.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gullele.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gullele.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gullele.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gullele.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gullele.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gullele.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gullele.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gullele.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gullele.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gullele.wordpress.com/488/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gullele.wordpress.com&amp;blog=7308586&amp;post=488&amp;subd=gullele&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gullele.wordpress.com/2011/12/12/submit-is-not-a-function-javascript-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f39c248f0250d610dc82ab5e20a1207?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gullele</media:title>
		</media:content>
	</item>
		<item>
		<title>was not found in the haystack error for select element in zend</title>
		<link>http://gullele.wordpress.com/2011/10/05/was-not-found-in-the-haystack-error-for-select-element-in-zend/</link>
		<comments>http://gullele.wordpress.com/2011/10/05/was-not-found-in-the-haystack-error-for-select-element-in-zend/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 18:30:02 +0000</pubDate>
		<dc:creator>gullele</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[zend form in array error]]></category>
		<category><![CDATA[zend in array error]]></category>

		<guid isPermaLink="false">http://gullele.wordpress.com/?p=486</guid>
		<description><![CDATA[You might get this error while working on zend form which has select element on it. And most probably you are messing with this element on your controller or from your front end friend javascript [ that was in my case ] Just put the following in the controller and you should be fine $form-&#62;getElement('selectElementNameHere')-&#62;setRegisterInArrayValidator(FALSE); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gullele.wordpress.com&amp;blog=7308586&amp;post=486&amp;subd=gullele&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You might get this error while working on zend form which has select element on it. And most probably you are messing with this element on your controller or from your front end friend javascript [ that was in my case ]</p>
<p>Just put the following in the controller and you should be fine</p>
<pre>
$form-&gt;getElement('selectElementNameHere')-&gt;setRegisterInArrayValidator(FALSE);
</pre>
<p>This is a behavior of zend adding a default validator of inarray.<br />
You would find more detailed explanation on zend website.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gullele.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gullele.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gullele.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gullele.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gullele.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gullele.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gullele.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gullele.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gullele.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gullele.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gullele.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gullele.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gullele.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gullele.wordpress.com/486/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gullele.wordpress.com&amp;blog=7308586&amp;post=486&amp;subd=gullele&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gullele.wordpress.com/2011/10/05/was-not-found-in-the-haystack-error-for-select-element-in-zend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f39c248f0250d610dc82ab5e20a1207?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gullele</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding new line for mail, outlook showing new line as it is</title>
		<link>http://gullele.wordpress.com/2011/09/29/adding-new-line-for-mail-outlook-showing-new-line-as-it-is/</link>
		<comments>http://gullele.wordpress.com/2011/09/29/adding-new-line-for-mail-outlook-showing-new-line-as-it-is/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 20:57:21 +0000</pubDate>
		<dc:creator>gullele</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[new line mail issue]]></category>
		<category><![CDATA[php mail new line]]></category>

		<guid isPermaLink="false">http://gullele.wordpress.com/?p=483</guid>
		<description><![CDATA[This has funny solution. Most probably you are trying to have message and appending the character \r\n in single quote, try it using double quotes as $mail_message = "some message \n"; Assuming you are programming PHP..<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gullele.wordpress.com&amp;blog=7308586&amp;post=483&amp;subd=gullele&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This has funny solution.<br />
Most probably you are trying to have message and appending the character \r\n in single quote,<br />
try it using double quotes as </p>
<pre>
$mail_message = "some message \n";
</pre>
<p>Assuming you are programming PHP.. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gullele.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gullele.wordpress.com/483/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gullele.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gullele.wordpress.com/483/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gullele.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gullele.wordpress.com/483/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gullele.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gullele.wordpress.com/483/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gullele.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gullele.wordpress.com/483/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gullele.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gullele.wordpress.com/483/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gullele.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gullele.wordpress.com/483/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gullele.wordpress.com&amp;blog=7308586&amp;post=483&amp;subd=gullele&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gullele.wordpress.com/2011/09/29/adding-new-line-for-mail-outlook-showing-new-line-as-it-is/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f39c248f0250d610dc82ab5e20a1207?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gullele</media:title>
		</media:content>
	</item>
		<item>
		<title>An association from the table refers to an unmapped class Hibernate Exception</title>
		<link>http://gullele.wordpress.com/2011/08/28/an-association-from-the-table-refers-to-an-unmapped-class-hibernate-exception/</link>
		<comments>http://gullele.wordpress.com/2011/08/28/an-association-from-the-table-refers-to-an-unmapped-class-hibernate-exception/#comments</comments>
		<pubDate>Sun, 28 Aug 2011 00:08:46 +0000</pubDate>
		<dc:creator>gullele</dc:creator>
				<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[association from table]]></category>
		<category><![CDATA[exception]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[mapping error]]></category>
		<category><![CDATA[org.hibernate.mappingexception]]></category>
		<category><![CDATA[unmapped class hibernate]]></category>

		<guid isPermaLink="false">http://gullele.wordpress.com/?p=480</guid>
		<description><![CDATA[Got An association from the table refers to an unmapped class exception while running hibernate on your app? Here is a solution Mostly it would be related to the hbm file of the table that it is complaining. On that hbm file, make sure if you have the class attribute on the option properly addressed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gullele.wordpress.com&amp;blog=7308586&amp;post=480&amp;subd=gullele&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Got An association from the table<br />
<table> refers to an unmapped class  exception while running hibernate on your app?<br />
Here is a solution<br />
Mostly it would be related to the hbm file of the table that it is complaining. On that hbm file, make sure if you have the class attribute on the  option properly addressed like if you haven&#8217;t added the package on the top, make sure you provide the FQN of the class.</p>
<p>Also make sure if the hbm file is listed on the hibernate.cfg.xml/ where ever the list of the hbm files are listed.</p>
<p>Mostly this would solve the problem. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gullele.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gullele.wordpress.com/480/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gullele.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gullele.wordpress.com/480/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gullele.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gullele.wordpress.com/480/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gullele.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gullele.wordpress.com/480/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gullele.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gullele.wordpress.com/480/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gullele.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gullele.wordpress.com/480/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gullele.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gullele.wordpress.com/480/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gullele.wordpress.com&amp;blog=7308586&amp;post=480&amp;subd=gullele&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gullele.wordpress.com/2011/08/28/an-association-from-the-table-refers-to-an-unmapped-class-hibernate-exception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f39c248f0250d610dc82ab5e20a1207?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gullele</media:title>
		</media:content>
	</item>
		<item>
		<title>Updating repository with previous revision in SVN</title>
		<link>http://gullele.wordpress.com/2011/08/25/updating-repository-with-previous-revision-in-svn/</link>
		<comments>http://gullele.wordpress.com/2011/08/25/updating-repository-with-previous-revision-in-svn/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 05:20:14 +0000</pubDate>
		<dc:creator>gullele</dc:creator>
				<category><![CDATA[Programming Tools]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[SVN Merge]]></category>
		<category><![CDATA[svn merge example]]></category>
		<category><![CDATA[SVN Update]]></category>
		<category><![CDATA[SVN update exmaple]]></category>
		<category><![CDATA[svn update merge]]></category>
		<category><![CDATA[SVN Update with previous revision]]></category>
		<category><![CDATA[update in subversion merge]]></category>

		<guid isPermaLink="false">http://gullele.wordpress.com/?p=475</guid>
		<description><![CDATA[OK, you want to update the current repository with one of your previous revisions. It could be a single file you want to update Here is what you would do: Lets assume you have a module/folder svnrepos and it has two files soap.php and xml.php And lets say you want to update and commit the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gullele.wordpress.com&amp;blog=7308586&amp;post=475&amp;subd=gullele&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>OK, you want to update the current repository with one of your previous revisions. It could be a <b> single file you want to update</b><br />
Here is what you would do:<br />
Lets assume you have a module/folder svnrepos and it has two files soap.php and xml.php<br />
And lets say you want to update and commit the file soap.php with the previous revision number</p>
<p>1. Go to the folder svnrepos<br />
2. type svn up to make it up-to-date<br />
3. type svn log &#8211;limit 10 (or whatever deep you want to go the past revisions<br />
4. From there you would grab the revision number you want to get back to.<br />
Now the trick is merging the current revision and the one you want to get back to: lets say the revision number you want to get back is 7865<br />
5. do svn merge full/path/to/repository/svnrepos/soap.php@HEAD full/path/to/repository/svn/repos/soap.php@7865 soap.php<br />
This would update your local, which was up-to-date, to the one from 7865.<br />
6 svn st would show you soap.php is updated<br />
7. svn commit -m &#8216;Reverting back to old revision&#8217;</p>
<p>ZAT is IT!!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gullele.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gullele.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gullele.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gullele.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gullele.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gullele.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gullele.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gullele.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gullele.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gullele.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gullele.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gullele.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gullele.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gullele.wordpress.com/475/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gullele.wordpress.com&amp;blog=7308586&amp;post=475&amp;subd=gullele&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gullele.wordpress.com/2011/08/25/updating-repository-with-previous-revision-in-svn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f39c248f0250d610dc82ab5e20a1207?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gullele</media:title>
		</media:content>
	</item>
		<item>
		<title>Run php from command line without script file</title>
		<link>http://gullele.wordpress.com/2011/08/16/run-php-from-command-line-without-script-file/</link>
		<comments>http://gullele.wordpress.com/2011/08/16/run-php-from-command-line-without-script-file/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 03:15:26 +0000</pubDate>
		<dc:creator>gullele</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[command line optoin to run php]]></category>
		<category><![CDATA[command line script]]></category>
		<category><![CDATA[how to run php from command line without file]]></category>
		<category><![CDATA[no file run php]]></category>
		<category><![CDATA[php commandline]]></category>
		<category><![CDATA[php from command line]]></category>
		<category><![CDATA[run php without script]]></category>

		<guid isPermaLink="false">http://gullele.wordpress.com/?p=473</guid>
		<description><![CDATA[Do you want to run a quick php script, a line or two, without having file? Thanks for PHP&#8217;s cute command line option you can do that. If you have some file the way to run it, as you know would be php file.php But without file if you want to run a simple function [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gullele.wordpress.com&amp;blog=7308586&amp;post=473&amp;subd=gullele&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Do you want to run a quick php script, a line or two, without having file? Thanks for PHP&#8217;s cute command line option you can do that.<br />
If you have some file the way to run it, as you know would be </p>
<pre>
php file.php
</pre>
<p>But without file if you want to run a simple function like date then use -r option</p>
<pre>
php -r "echo date();"
</pre>
<p> would do the trick</p>
<p>Also if you want to get explanation on some built-in function </p>
<pre>
php --rf strtoupper
</pre>
<p> would give you an explanation that is something like</p>
<pre>
Function [  function strtoupper ] {

  - Parameters [1] {
    Parameter #0 [  $str ]
  }
}
</pre>
<p>For more use php &#8211;help!!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gullele.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gullele.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gullele.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gullele.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gullele.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gullele.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gullele.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gullele.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gullele.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gullele.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gullele.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gullele.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gullele.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gullele.wordpress.com/473/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gullele.wordpress.com&amp;blog=7308586&amp;post=473&amp;subd=gullele&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gullele.wordpress.com/2011/08/16/run-php-from-command-line-without-script-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f39c248f0250d610dc82ab5e20a1207?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gullele</media:title>
		</media:content>
	</item>
	</channel>
</rss>
