<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2enclosuresfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-8442013179520708630</atom:id><lastBuildDate>Thu, 31 May 2012 13:28:26 +0000</lastBuildDate><category>facebook</category><category>ghs.google.com</category><category>sample code</category><category>AS</category><category>package</category><category>javascript</category><category>arguments</category><category>java</category><category>photography</category><category>2011</category><category>timeline</category><category>jndi</category><category>startup idea</category><category>blogspot</category><category>vm</category><category>CNAME</category><category>Hibernate</category><category>args</category><category>google io</category><category>social</category><category>privacy</category><category>hudson</category><category>canon</category><category>hdr</category><category>approval</category><category>lytro</category><category>string</category><category>Application Server</category><category>dslr</category><category>integration</category><category>annotation</category><category>blogger</category><category>jasperreports</category><category>ejb</category><category>python</category><category>jpa</category><category>60D</category><category>ejb3</category><category>jboss</category><category>ci</category><category>jasper</category><category>j2ee</category><category>HAR</category><category>reallife</category><category>google</category><category>ACC</category><title>Notepad</title><description /><link>http://blog.sheidaei.com/</link><managingEditor>noreply@blogger.com (!)</managingEditor><generator>Blogger</generator><openSearch:totalResults>67</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/sheidaei/blog" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="sheidaei/blog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><itunes:explicit>no</itunes:explicit><itunes:subtitle></itunes:subtitle><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-6771918566558549543</guid><pubDate>Thu, 31 May 2012 13:26:00 +0000</pubDate><atom:updated>2012-05-31T06:28:26.158-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">timeline</category><category domain="http://www.blogger.com/atom/ns#">facebook</category><category domain="http://www.blogger.com/atom/ns#">reallife</category><title>Timeline</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
This is pretty awesome. If you have not upgraded to timeline and share the fear of being upgraded without your permission, watch this video. You share the same symptoms with this people, suggestion: instead of timeline get reallife. Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen="" frameborder="0" height="236" src="http://www.youtube.com/embed/eaBjccCj9bM?rel=0" width="420"&gt;&lt;/iframe&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-6771918566558549543?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/DAZUfcf7IZtBfkM3f4pGdskcYa8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DAZUfcf7IZtBfkM3f4pGdskcYa8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/DAZUfcf7IZtBfkM3f4pGdskcYa8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DAZUfcf7IZtBfkM3f4pGdskcYa8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2012/05/timeline.html</link><author>noreply@blogger.com (!)</author><media:thumbnail url="http://img.youtube.com/vi/eaBjccCj9bM/default.jpg" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-7809319601002805473</guid><pubDate>Sat, 07 Apr 2012 22:00:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.162-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">60D</category><category domain="http://www.blogger.com/atom/ns#">canon</category><title>Canon 60D Video Tutorial</title><description>This is one of the best videos I've ever seen presenting Canon 60D features in an interactive mode. I did learn a lot from it, you will too. &lt;br /&gt;&lt;br /&gt;&lt;iframe width="420" height="243" src="http://www.youtube.com/embed/eQLwdD9BstY?rel=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-7809319601002805473?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hws2tS_syqx_y0WAohLh_NzUmI8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hws2tS_syqx_y0WAohLh_NzUmI8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hws2tS_syqx_y0WAohLh_NzUmI8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hws2tS_syqx_y0WAohLh_NzUmI8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2012/04/canon-60d-video-tutorial_4321.html</link><author>noreply@blogger.com (!)</author><media:thumbnail url="http://img.youtube.com/vi/eQLwdD9BstY/default.jpg" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-3281505228090792795</guid><pubDate>Wed, 08 Feb 2012 22:42:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.162-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">jpa</category><category domain="http://www.blogger.com/atom/ns#">j2ee</category><category domain="http://www.blogger.com/atom/ns#">annotation</category><title>Sequence generation in JPA</title><description>&lt;blockquote&gt;@Entity&lt;br /&gt;@Table(name = "Facility")&lt;br /&gt;public class FacilityEntity implements Serializable{&lt;br /&gt;&lt;br /&gt; private static final long serialVersionUID = -5193920209461702399L;&lt;br /&gt;&lt;br /&gt; @Id&lt;br /&gt; @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_FACILITY_ID")&lt;br /&gt; @SequenceGenerator(name = "SEQ_FACILITY_ID", sequenceName="SEQ_FACILITY_ID")&lt;br /&gt; @Column(name="facilityid")&lt;br /&gt; private Long facilityId;&lt;br /&gt;..&lt;br /&gt;&lt;br /&gt;}&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;It took me some time to figure this out, you have to have sequenceName in your SequenceGenrator annotation. It might work without it, and might as well give you sequence does not exit problem. The later case in which it is hard to trace what happened.&lt;br /&gt;&lt;br /&gt;To make sure you have enough privileges on your sequence in oracle, you can test getting next generated value by using the following command in oracle:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;SQL&gt; connect shahin/shahin&lt;br /&gt;Connected.&lt;br /&gt;SQL&gt; select shahin.seq_facility_id.nextval from dual;&lt;br /&gt;&lt;br /&gt;NEXTVAL&lt;br /&gt;----------&lt;br /&gt;1&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;if it doesn't show the next available value in the system, you need to login using the sysdba credentials and grant access to that sequence for that user. As follow:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;SQL&gt; connect / as sysdba&lt;br /&gt;Connected.&lt;br /&gt;SQL&gt; grant select any sequence to shahin;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-3281505228090792795?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/QFclydkwz8O1qwFH0SiPNX0JRcI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QFclydkwz8O1qwFH0SiPNX0JRcI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/QFclydkwz8O1qwFH0SiPNX0JRcI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QFclydkwz8O1qwFH0SiPNX0JRcI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2012/02/sequence-generation-in-jpa_8901.html</link><author>noreply@blogger.com (!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-857126357558231547</guid><pubDate>Mon, 21 Nov 2011 22:46:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.162-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">ci</category><category domain="http://www.blogger.com/atom/ns#">hudson</category><title>Hudson - Continuous Integration</title><description>&lt;iframe width="420" height="243" src="http://www.youtube.com/embed/6k0S4O2PnTc?rel=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;People (developers) pricier&lt;br /&gt;Computers Cheaper&lt;br /&gt;Why not use more computers than people? &lt;br /&gt;&lt;br /&gt;Hudson in many companies used (not in Google?)&lt;br /&gt;&lt;br /&gt;community release every week&lt;br /&gt;&lt;br /&gt;detects changes&lt;br /&gt;builds &lt;br /&gt;record results&lt;br /&gt;send notifications&lt;br /&gt;&lt;br /&gt;cron - before hudson (+some customization using perl)&lt;br /&gt;can send emails only not anymore&lt;br /&gt;&lt;br /&gt;hudson - aggregate results, from different platform, different JVMs and so on (great feature)&lt;br /&gt;&lt;br /&gt;hudson has plugins -[]-&gt; findBug plugin&lt;br /&gt;&lt;br /&gt;keep track of changes&lt;br /&gt;&lt;br /&gt;capable of hosting more than one project using in one hudson&lt;br /&gt;&lt;br /&gt;JNLP Launch for slaves who can not see master&lt;br /&gt;&lt;br /&gt;hudson can install JDK for you! Different versions!&lt;br /&gt;&lt;br /&gt;hudson kills processes used for making the builds and won't let them live longer than needed.&lt;br /&gt;&lt;br /&gt;hudson on EC2 (Cloud) (best on Amazon)&lt;br /&gt;&lt;br /&gt;3 / 4 working full-time on hudson core&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-857126357558231547?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/PwQdUVMr_HIBSC3sjGUCBWLPwMk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PwQdUVMr_HIBSC3sjGUCBWLPwMk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/PwQdUVMr_HIBSC3sjGUCBWLPwMk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PwQdUVMr_HIBSC3sjGUCBWLPwMk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/11/hudson-continuous-integration_476.html</link><author>noreply@blogger.com (!)</author><media:thumbnail url="http://img.youtube.com/vi/6k0S4O2PnTc/default.jpg" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-2753663789688117065</guid><pubDate>Thu, 03 Nov 2011 21:47:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.162-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">arguments</category><category domain="http://www.blogger.com/atom/ns#">vm</category><category domain="http://www.blogger.com/atom/ns#">sample code</category><title>VM arguments</title><description>Have you ever wondered where that value came from in a Java program? One place to look for is the VM arguments. They are set in the system and not when you are writing your code.&lt;br /&gt;&lt;br /&gt;A code like this will give you some good understanding of VM arguments.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;import java.lang.management.ManagementFactory;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;import java.lang.management.RuntimeMXBean;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; RuntimeMXBean RuntimemxBean = ManagementFactory.getRuntimeMXBean();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;      List&lt;string&gt; arguments = RuntimemxBean.getInputArguments();&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;string&gt;      Iterator iterator = arguments.iterator();&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;System.out.println("VM arguments");&lt;/div&gt;&lt;div&gt;    &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;int i=0;&lt;/div&gt;&lt;div&gt;    &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;for(;iterator.hasNext();)&lt;/div&gt;&lt;div&gt;    &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;    &lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;System.out.println(iterator.next().toString());&lt;/div&gt;&lt;div&gt;    &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;System.out.println("Number of VM arguments :"+i);&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;    &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;a href="http://stackoverflow.com/questions/1490869/how-to-get-vm-arguments-from-inside-of-java-application"&gt;http://stackoverflow.com/questions/1490869/how-to-get-vm-arguments-from-inside-of-java-application&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-2753663789688117065?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/gpGUPAn4miY2I2o0Z-OA1uv75I8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/gpGUPAn4miY2I2o0Z-OA1uv75I8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/gpGUPAn4miY2I2o0Z-OA1uv75I8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/gpGUPAn4miY2I2o0Z-OA1uv75I8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/11/vm-arguments_9320.html</link><author>noreply@blogger.com (!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-3138813440793417434</guid><pubDate>Tue, 01 Nov 2011 19:29:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.162-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">social</category><category domain="http://www.blogger.com/atom/ns#">privacy</category><title>Ultimate guide to online social privacy</title><description>With emerge of G+, social life on the web has come to a new era. An era, that you can not ignore it. There are lots of advantages in it. A simple sample is a search result, Google will return results that your circles suggest you, and if you are working on testNG as a newbie, you always would appreciate its creators (Cédric Beust @ &lt;a href="http://beust.com/weblog/"&gt;http://beust.com/weblog/&lt;/a&gt; &amp;amp; &lt;a href="https://plus.google.com/u/0/108840253750748459271/posts"&gt;https://plus.google.com/u/0/108840253750748459271/posts&lt;/a&gt;) +1 on testNG links. On the other hand, there is always concerns privacy issues. I am going to suggest some steps in order to protect your online social privacy as much as possible. These steps make your life more private to third parties and not the social network (e.g. Google+, twitter or Facebook) you are using. Let me make it more clear by making an example, let's say you comment on an image in Facebook, after a while you decide that you don't want everyone know that you care about that specific photo and delete that comment. However, as all we know this would be a logical delete in Facebook data center, they are just marking your comment as deleted and won't ever showing that to you or anyone else, but they keep that in their data center to make sure they know as much about you as possible. If you try this on Google+, it would be even more transparent, comment on a photo, then delete it, after deletion you would still get notifications on that photo.&lt;br /&gt;&lt;br /&gt;These are my ultimate rule to online privacy:&lt;br /&gt;&lt;br /&gt;Twitter:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Do not retweet, twitter treat retweet differntly than regular tweets generated by you. Try copying pasting it and give author credit by using @ sing and his/her id&lt;/li&gt;&lt;li&gt;After a while, use tweeterwhipe on your account, &lt;a href="http://twitwipe.com/login.php"&gt;http://twitwipe.com/login.php&lt;/a&gt; this is the best I have found, you will give it access to your tweets, based on your number of tweets, it will delete all tweets, it might take a while if you have lots of tweets&lt;/li&gt;&lt;li&gt;I really like twitter for being so open, you can delete all your tweets (you can not do that in your Facebook, even manually)&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Facebook:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Use like as less as possible specially on webpages outside Facebook. If you have to use Like and nothing else on the world make you happier than hitting Like button, do it. What I suggest is to have a Trace folder/tag in your favorite bookmark and bookmark that page. &lt;/li&gt;&lt;li&gt;Do visit your wall often (e.g. once a week), your wall shows all your interactions on Facebook, like any comments you've made recently. Go over old comments of yours and do delete them, do delete tags of yourself in photos as well (or you can set photos of you to be only available to yourself and no one else, your choice. I selected the later one, I do like to have access to all my photos on Facebook)&lt;/li&gt;&lt;li&gt;Do visit the Trace folder/tag in your bookmark and unLike the pages, photos, groups that you've liked. &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Google+:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Google+ is somehow the same as Facebook, it is more transparent in terms of privacy (at least in my view) but still there is not API announced for it yet. So you can not expect to have whipe all your activities on G+ using some tools like twitwipe. You have to do that manually. &lt;/li&gt;&lt;li&gt;There is not wall in G+, you have to visit your notifications page (&lt;a href="http://twitwipe.com/login.php"&gt;https://plus.google.com/u/0/notifications/all&lt;/a&gt;) and post page (e.g. &lt;a href="https://plus.google.com/101413016003587078317/posts"&gt;https://plus.google.com/101413016003587078317/posts&lt;/a&gt; this is my G+) to be able to see all your transactions with G+. You can delete your posts, your comments, your +1s.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Remember, it is nice to comment on friend's engagement photo, congradulate him/her on his/her best day of his/her life. But there is no point to leaving it there, if he replied back to you and thanked you on that. It means that he received your message. Keeping your comment there is like saving your voice-mails for eternity. I am sure there wouldn't be any use for you, is it? So it is up to you to delete that.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-3138813440793417434?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/MCmoN6tltjbcJWTm-fds0M_sd88/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MCmoN6tltjbcJWTm-fds0M_sd88/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/MCmoN6tltjbcJWTm-fds0M_sd88/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MCmoN6tltjbcJWTm-fds0M_sd88/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/11/ultimate-guide-to-online-social-privacy_01.html</link><author>noreply@blogger.com (!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-3459972358970266309</guid><pubDate>Tue, 01 Nov 2011 18:50:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.163-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ejb</category><category domain="http://www.blogger.com/atom/ns#">jndi</category><category domain="http://www.blogger.com/atom/ns#">jboss</category><title>Access EJB via HTTP in JBoss AS</title><description>If you are trying to acccess EJB through HTTP, you need to use org.jboss.naming.HttpNamingContextFactory for your context factory. However, there is only one small twitch in using that. You need to specify credentials accessing that invoker. This is what you need to add:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;env.put(Context.SECURITY_PRINCIPAL, "admin");&lt;br /&gt;env.put(Context.SECURITY_CREDENTIALS, "admin"); &lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;This is complete code:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Hashtable env = new Hashtable();&lt;br /&gt;env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.naming.HttpNamingContextFactory");&lt;br /&gt;env.put(Context.PROVIDER_URL, "http://localhost:8080/invoker/JNDIFactory");&lt;br /&gt;env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");&lt;br /&gt;env.put(Context.SECURITY_PRINCIPAL, "admin");&lt;br /&gt;env.put(Context.SECURITY_CREDENTIALS, "admin");  &lt;br /&gt;Context ctx = new InitialContext(env);&lt;br /&gt;ejbTestRemote obj = (ejbTestRemote) ctx.lookup("ejbTest/remote");&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;This is how it looks like if you are using NamingContextFactory:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Hashtable env = new Hashtable();&lt;br /&gt;env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.naming.NamingContextFactory");&lt;br /&gt;env.put(Context.PROVIDER_URL, "localhost:1099");&lt;br /&gt;env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming.client");&lt;br /&gt;Context ctx = new InitialContext(env);&lt;br /&gt;ejbTestRemote obj = (ejbTestRemote) ctx.lookup("ejbTest/remote");&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-3459972358970266309?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Lg6Ag6W9Zl-bv4adOtza4AaHd6Y/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Lg6Ag6W9Zl-bv4adOtza4AaHd6Y/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Lg6Ag6W9Zl-bv4adOtza4AaHd6Y/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Lg6Ag6W9Zl-bv4adOtza4AaHd6Y/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/11/access-ejb-via-http-in-jboss-as_6557.html</link><author>noreply@blogger.com (!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-5284133414910990331</guid><pubDate>Mon, 31 Oct 2011 21:39:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.163-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">jndi</category><category domain="http://www.blogger.com/atom/ns#">jboss</category><title>ENC in JNDI JBoss</title><description>The application component environment is referred to as the ENC, the enterprise naming context. It is the responsibility of the application component container to make an ENC available to the container components in the form of JNDI Context.&lt;br /&gt;&lt;br /&gt;// Obtain the application component's ENC&lt;br /&gt;Context iniCtx = new InitialContext();&lt;br /&gt;Context compEnv = (Context) iniCtx.lookup("java:comp/env");&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://docs.jboss.org/jbossas/admindevel326/html/ch3.chapter.html"&gt;http://docs.jboss.org/jbossas/admindevel326/html/ch3.chapter.html&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-5284133414910990331?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/35OtJ6zJz36WrvyG-S2C73Po8pg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/35OtJ6zJz36WrvyG-S2C73Po8pg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/35OtJ6zJz36WrvyG-S2C73Po8pg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/35OtJ6zJz36WrvyG-S2C73Po8pg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/10/enc-in-jndi-jboss_8203.html</link><author>noreply@blogger.com (!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-3127171840634641286</guid><pubDate>Wed, 19 Oct 2011 22:00:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.163-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">dslr</category><category domain="http://www.blogger.com/atom/ns#">photography</category><category domain="http://www.blogger.com/atom/ns#">hdr</category><category domain="http://www.blogger.com/atom/ns#">lytro</category><title>Lytro, living pictures from a light field camera</title><description>&lt;a href="http://lytro.com/"&gt;Lytro&lt;/a&gt;, will be a revolution in photography, no doubt about that. There were so many revolutions in this industry, from film photography with negatives to digital photography to the small cameras you can have it wherever you are carrying your phone with you. I don't want to write a review about Lytro or persuade anyone to buy it. I am going to list my concerns about it. To my opinion, Lytro is nice for taking pictures and viewing them online, or in its small LCD it has. You can't find any discussion about if you can import the image to a jpg file or not. If not, you are stuck with the lpf file and you have to only view your images in that. You can not have images on your cell phone, photo frame or any other device. I believe there will be a conversion tool available (if not already in the software included). Other concerns of mine are the quality of the images imported from the lpf file.&lt;br /&gt;&lt;br /&gt;My other concern is how much noise is going to be there? Is it even comparable to the most amateurish DSLRs in terms of quality in pictures taken? It is half price of some DSLRs. With a DSLR you can adjust everything, ISO, exposure, .... With Lytro you don't even have a flash. Is it good enough for you? If you don't mind the price and are too eager to be among the first people to try it, head to lytro.com and buy it. If you are looking for some point and shoot, you can find cameras for under 100$s. For 1000$s you can buy a really nice DSLR right now, top of the line. You can take HDR images with DSLRs, ... but you can only have a picture taken with Lytro that you can focus later. How many pictures you want to have that functionality? Imagine 350 images (i.e. it's lowest capacity version of Lytro) you have taken from a wedding, how long will it take to figure out the best focus points using its software? isn't it easier to take two or three pictures using a nice DSLR and do no after-taking-focusing anymore?&lt;br /&gt;&lt;br /&gt;&lt;a href="http://i.i.com.com/cnwk.1d/i/tim/2011/10/19/Lytro_stacked_cropped_610x493.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="text-align: left;float: left; margin-top: 0px; margin-right: 10px; margin-bottom: 10px; margin-left: 0px; cursor: pointer; width: 305px; " src="http://i.i.com.com/cnwk.1d/i/tim/2011/10/19/Lytro_stacked_cropped_610x493.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-3127171840634641286?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/INkCsvIyMhUwhol4qH_IC5XHhy4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/INkCsvIyMhUwhol4qH_IC5XHhy4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/INkCsvIyMhUwhol4qH_IC5XHhy4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/INkCsvIyMhUwhol4qH_IC5XHhy4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/10/lytro-living-pictures-from-light-field_6659.html</link><author>noreply@blogger.com (!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-4928087795181489402</guid><pubDate>Wed, 07 Sep 2011 18:10:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.163-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">javascript</category><category domain="http://www.blogger.com/atom/ns#">2011</category><category domain="http://www.blogger.com/atom/ns#">google io</category><title>Javascript in Goole (IO 2011)</title><description>&lt;iframe width="420" height="266" src="http://www.youtube.com/embed/seX7jYI96GE?rel=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;Functional Language&lt;br /&gt;&lt;br /&gt;No type testing (in JavaScript)&lt;br /&gt;&lt;br /&gt;Reads top to bottom (no multi threading)&lt;br /&gt;&lt;br /&gt;Everything an Object (Java Duh!)&lt;br /&gt;&lt;br /&gt;Desugaring&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-4928087795181489402?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Kcna3WH1PdI44YDpFdbJOO9uwF0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Kcna3WH1PdI44YDpFdbJOO9uwF0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Kcna3WH1PdI44YDpFdbJOO9uwF0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Kcna3WH1PdI44YDpFdbJOO9uwF0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/09/javascript-in-goole-io-2011_7203.html</link><author>noreply@blogger.com (!)</author><media:thumbnail url="http://img.youtube.com/vi/seX7jYI96GE/default.jpg" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-77582625329178326</guid><pubDate>Tue, 06 Sep 2011 19:59:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.163-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">2011</category><category domain="http://www.blogger.com/atom/ns#">python</category><category domain="http://www.blogger.com/atom/ns#">google io</category><title>Python &amp; Google</title><description>&lt;iframe width="420" height="266" src="http://www.youtube.com/embed/KKQS8EDG1P4?rel=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;Python an Object Oriented Language&lt;br /&gt;-Script &lt;br /&gt;-Code Compile (first time)&lt;br /&gt;Python is battery included (don't have to download anything else)&lt;br /&gt;Python main designer work at Google App Engine Team&lt;br /&gt;Everything other than PC has python in it (PS3, Nintendo DS, Mac, Linux)&lt;br /&gt;&lt;br /&gt;Two versions of Python&lt;br /&gt;Python 2 (current)&lt;br /&gt;Python 3 (coming soon)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-77582625329178326?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/tXEvC3OvVZngya0I6zz5UHHU4jY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tXEvC3OvVZngya0I6zz5UHHU4jY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/tXEvC3OvVZngya0I6zz5UHHU4jY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tXEvC3OvVZngya0I6zz5UHHU4jY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/09/python-google_5616.html</link><author>noreply@blogger.com (!)</author><media:thumbnail url="http://img.youtube.com/vi/KKQS8EDG1P4/default.jpg" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-6684565617591557819</guid><pubDate>Wed, 24 Aug 2011 22:44:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.163-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">package</category><category domain="http://www.blogger.com/atom/ns#">AS</category><category domain="http://www.blogger.com/atom/ns#">Hibernate</category><category domain="http://www.blogger.com/atom/ns#">Application Server</category><category domain="http://www.blogger.com/atom/ns#">jboss</category><category domain="http://www.blogger.com/atom/ns#">HAR</category><title>HAR files and how to package them (in JBoss AS)</title><description>HAR file is short for Hibernate Archive File (in JBoss world). These types of files are being used to configure JBoss AS to utilize hibernate and access hibernate and be able to provide access to hibernate via itself to the client code. Configuration files can be archived in a .har file and deployed on the JBoss server. Minimum HAR file consists of the entity class heirarchy and its hibernate mapping files (hbm.xml) and an XML file resides under META-INF folder. The xml file which is needed to be ended with -hibernate.xml is for registering SessionFactory and how it handles sessions. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Let's say you are trying to automate your build process, and you are using Ant. How many HAR files you want to generate and in what structure ? &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The best is always the easiest, you only need a single .har file which has all the necessary classes and hbm.xml files. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;hibernate.har&lt;br /&gt;&lt;br /&gt;|META-INF&lt;br /&gt;&lt;br /&gt;-|hibernate-xml-hibernate.xml&lt;br /&gt;&lt;br /&gt;|org&lt;br /&gt;&lt;br /&gt;-|domain&lt;br /&gt;&lt;br /&gt;--|package&lt;br /&gt;&lt;br /&gt;---|Entity.class&lt;br /&gt;&lt;br /&gt;---|Entity.hbm.xml&lt;br /&gt;&lt;br /&gt;---|AnotherEntity.class&lt;br /&gt;&lt;br /&gt;---|AnotherEntity.hbm.xml&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can not have more than one har file with the same SessionFactory name in them. That will result in an exception. Also it won't be a wise choice to have more than one SessionFactory. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;hibernateAnotherEntity.har&lt;br /&gt;&lt;br /&gt;|META-INF&lt;br /&gt;&lt;br /&gt;-|hibernate-xml-hibernate.xml&lt;br /&gt;&lt;br /&gt;|org&lt;br /&gt;&lt;br /&gt;-|domain&lt;br /&gt;&lt;br /&gt;--|package&lt;br /&gt;&lt;br /&gt;---|AnotherEntity.class&lt;br /&gt;&lt;br /&gt;---|AnotherEntity.hbm.xml&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;hibernateEntity.har&lt;br /&gt;&lt;br /&gt;|META-INF&lt;br /&gt;&lt;br /&gt;-|hibernate-xml-hibernate.xml&lt;br /&gt;&lt;br /&gt;|org&lt;br /&gt;&lt;br /&gt;-|domain&lt;br /&gt;&lt;br /&gt;--|package&lt;br /&gt;&lt;br /&gt;---|Entity.class&lt;br /&gt;&lt;br /&gt;---|Entity.hbm.xml&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You might want to create one har file with only the xml file under META-INF and have every class and its hbm.xml in another har file, this won't work either. Since the SessionFactory have not been bound to the classes. The bounding is done by being in the same file (or folder).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;hibernate-xml.har&lt;br /&gt;&lt;br /&gt;|META-INF&lt;br /&gt;&lt;br /&gt;-|hibernate-xml-hibernate.xml&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;hibernate-hbm.har&lt;br /&gt;&lt;br /&gt;|org&lt;br /&gt;&lt;br /&gt;-|domain&lt;br /&gt;&lt;br /&gt;--|package&lt;br /&gt;&lt;br /&gt;---|Entity.class&lt;br /&gt;&lt;br /&gt;---|Entity.hbm.xml&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-6684565617591557819?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/IFXOkvIQtziQ3x3qSr0OQ505rwE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IFXOkvIQtziQ3x3qSr0OQ505rwE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/IFXOkvIQtziQ3x3qSr0OQ505rwE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IFXOkvIQtziQ3x3qSr0OQ505rwE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/08/har-files-and-how-to-package-them-in_9437.html</link><author>noreply@blogger.com (!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-5658881939128927785</guid><pubDate>Wed, 27 Jul 2011 20:28:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.163-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">string</category><category domain="http://www.blogger.com/atom/ns#">args</category><title>String ... VS String []</title><description>Both are the same, but the later one calling the method you need to create String [] first and then call while the first one you can call it without creating String [].&lt;br /&gt;&lt;br /&gt;More @ &lt;a href="http://stackoverflow.com/questions/301563/difference-fnstring-args-vs-fnstring-args"&gt;stackoverflow&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-5658881939128927785?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/2-7LMcToOFHOJgxyXsNoGQU_g4k/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2-7LMcToOFHOJgxyXsNoGQU_g4k/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/2-7LMcToOFHOJgxyXsNoGQU_g4k/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2-7LMcToOFHOJgxyXsNoGQU_g4k/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/07/string-vs-string_27.html</link><author>noreply@blogger.com (!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-8638320970279953735</guid><pubDate>Mon, 11 Jul 2011 22:03:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.164-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">2011</category><category domain="http://www.blogger.com/atom/ns#">startup idea</category><category domain="http://www.blogger.com/atom/ns#">google io</category><title>Google I/O 2011: How to Get Your Startup Idea Funded by Venture Capitalists</title><description>&lt;iframe width="450" height="283" src="http://www.youtube.com/embed/15iWltPLuPY?rel=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Some of the most interesting people in business, founder of Excite, have you ever used it ? Founder of FriendFeed and former employee of google and Seth, creator of scavenger. Watch it if you have time.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-8638320970279953735?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/IeD8VcDfm475C47yyjrA1R4zwyw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IeD8VcDfm475C47yyjrA1R4zwyw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/IeD8VcDfm475C47yyjrA1R4zwyw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IeD8VcDfm475C47yyjrA1R4zwyw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/07/google-io-2011-how-to-get-your-startup_11.html</link><author>noreply@blogger.com (!)</author><media:thumbnail url="http://img.youtube.com/vi/15iWltPLuPY/default.jpg" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-5906754341221381037</guid><pubDate>Mon, 11 Jul 2011 22:03:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.164-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">blogger</category><category domain="http://www.blogger.com/atom/ns#">ghs.google.com</category><category domain="http://www.blogger.com/atom/ns#">CNAME</category><category domain="http://www.blogger.com/atom/ns#">blogspot</category><category domain="http://www.blogger.com/atom/ns#">approval</category><category domain="http://www.blogger.com/atom/ns#">google</category><title>Google Hosting and its problems</title><description>&lt;div style="margin:0;"&gt;It is easy to use Google Sites, Google apps and Google blogs (next generation name for blogger). But it is not that easy to remember if you have registered your blog with one of these services long time ago or is it someone else ? I am saying that for those who encountered &lt;a href="http://www.google.com/?q=Another+blog+or+Google+Site+is+already+using+this+address.#sclient=psy&amp;amp;hl=en&amp;amp;site=&amp;amp;source=hp&amp;amp;q=Another+blog+or+Google+Site+is+already+using+this+address.&amp;amp;btnK=Google+Search&amp;amp;aq=f&amp;amp;aqi=&amp;amp;aql=&amp;amp;oq=Another+blog+or+Google+Site+is+already+using+this+address.&amp;amp;pbx=1&amp;amp;bav=on.2,or.r_gc.r_pw.&amp;amp;fp=42c5306a4f8ee1f3&amp;amp;biw=1069&amp;amp;bih=607"&gt;this&lt;/a&gt; problem in hosting their sites/blogs with the custom domain name with google blogging.&lt;/div&gt;&lt;div style="margin:0;"&gt;It says&lt;/div&gt;&lt;blockquote&gt;&lt;div style="margin:0;"&gt;Another blog or Google Site is already using this address.&lt;/div&gt;&lt;/blockquote&gt;&lt;div style="margin:0;"&gt;Good luck finding that blog or one page that you created long time ago and deactivate it. I couldn't find that, I wasn't even sure if it was me that created it, so I ended up deactivating my whole google apps for my domain, and I am still waiting for it to deactivate to see if it solves the problem. I know google for privacy issues won't let anyone know who is the one hosting your domain name on their sites. It is not fair to the real owner of the sites since even without confirmation that it is their own, you can ask google to host it on its google sites or blogger service. There should be some sort of approval for domains to add to your blog or sites. It might be as easy as first change the CNAME to ghs.google.com. and then use them with google sites, blogger service. That way one who has no control over a domain can't add that to his/her account and blocking you from using it in future.&lt;/div&gt;&lt;div style="margin:0;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin:0;"&gt;There should be some simple way to resolve this issue, and should have been at least addressed in &lt;a href="http://googleblog.blogspot.com/2011/03/whats-new-with-blogger.html"&gt;one&lt;/a&gt; of blogger's posts.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-5906754341221381037?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ZhIxDuQlONqIRj0RC3iEMSacDOU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZhIxDuQlONqIRj0RC3iEMSacDOU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ZhIxDuQlONqIRj0RC3iEMSacDOU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZhIxDuQlONqIRj0RC3iEMSacDOU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/07/google-hosting-and-its-problems_11.html</link><author>noreply@blogger.com (!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-8076424740494701440</guid><pubDate>Mon, 04 Jul 2011 23:56:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.164-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">integration</category><category domain="http://www.blogger.com/atom/ns#">jasperreports</category><category domain="http://www.blogger.com/atom/ns#">Hibernate</category><category domain="http://www.blogger.com/atom/ns#">jasper</category><title>Hibernate / Jasper Report Integration</title><description>I am looking into Hibernate / Jasper report integration. It seems that Jasper Report has not initially been compatible with Hibernate but only from it later versions. This make life harder when it comes to the nature of Jasper Report, whom as a novice I believe treats everything as a row and should be inputed with rows of data to be able to generate the report.&lt;br /&gt;&lt;br /&gt;In different sources, I have come across solution on how to integrate Hibernate with Jasper reports. These are what I have found.&lt;br /&gt;&lt;br /&gt;In &lt;a href="http://community.jboss.org/wiki/UsingJasperReportsWithHibernate"&gt;1&lt;/a&gt; author has mentioned that:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;However, when the Hibernate query returns tuples of objects (each tuple as an array, each array as an element in the returned List), things get a little tricky. Jasper needs a way to reference each object in the array by a field name. This class is a good solution, but at this time you are required to pass an array of field names matching the results of the query.&lt;/blockquote&gt;And he/she is suggesting that it is a helper class needed to interpret those results and transfer them into usable data for Jasper.&lt;br /&gt;&lt;a href="http://www.javalobby.org/articles/hibernatequery103/"&gt;John&lt;/a&gt; is also suggesting the same solution for using Hibernate with Jasper; You can find more tips on optimization of Hibernate / Jasper integration in his post as well.&lt;br /&gt;&lt;a href="http://www.sanjbee.com/content/wp-content/uploads/2008/07/jasper.pdf"&gt;This&lt;/a&gt; is also a really good start for Jasper, a really nice Hello world tutorial for Jasper Reports.&lt;br /&gt;&lt;br /&gt;Resources:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://community.jboss.org/wiki/UsingJasperReportsWithHibernate"&gt;http://community.jboss.org/wiki/UsingJasperReportsWithHibernate&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.javalobby.org/articles/hibernatequery103/"&gt;http://www.javalobby.org/articles/hibernatequery103/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.sanjbee.com/content/wp-content/uploads/2008/07/jasper.pdf"&gt;http://www.sanjbee.com/content/wp-content/uploads/2008/07/jasper.pdf&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-8076424740494701440?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/4XtXqyPVshh_7I-xm2AXtgadGZM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4XtXqyPVshh_7I-xm2AXtgadGZM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/4XtXqyPVshh_7I-xm2AXtgadGZM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4XtXqyPVshh_7I-xm2AXtgadGZM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/07/hibernate-jasper-report-integration_04.html</link><author>noreply@blogger.com (!)</author><thr:total>0</thr:total><enclosure url="http://www.sanjbee.com/content/wp-content/uploads/2008/07/jasper.pdf" length="164701" type="application/pdf" /><media:content url="http://www.sanjbee.com/content/wp-content/uploads/2008/07/jasper.pdf" fileSize="164701" type="application/pdf" /><itunes:explicit>no</itunes:explicit><itunes:subtitle>I am looking into Hibernate / Jasper report integration. It seems that Jasper Report has not initially been compatible with Hibernate but only from it later versions. This make life harder when it comes to the nature of Jasper Report, whom as a novice I b</itunes:subtitle><itunes:author>noreply@blogger.com (!)</itunes:author><itunes:summary>I am looking into Hibernate / Jasper report integration. It seems that Jasper Report has not initially been compatible with Hibernate but only from it later versions. This make life harder when it comes to the nature of Jasper Report, whom as a novice I believe treats everything as a row and should be inputed with rows of data to be able to generate the report. In different sources, I have come across solution on how to integrate Hibernate with Jasper reports. These are what I have found. In 1 author has mentioned that: However, when the Hibernate query returns tuples of objects (each tuple as an array, each array as an element in the returned List), things get a little tricky. Jasper needs a way to reference each object in the array by a field name. This class is a good solution, but at this time you are required to pass an array of field names matching the results of the query.And he/she is suggesting that it is a helper class needed to interpret those results and transfer them into usable data for Jasper. John is also suggesting the same solution for using Hibernate with Jasper; You can find more tips on optimization of Hibernate / Jasper integration in his post as well. This is also a really good start for Jasper, a really nice Hello world tutorial for Jasper Reports. Resources: http://community.jboss.org/wiki/UsingJasperReportsWithHibernatehttp://www.javalobby.org/articles/hibernatequery103/http://www.sanjbee.com/content/wp-content/uploads/2008/07/jasper.pdf</itunes:summary><itunes:keywords>integration, jasperreports, Hibernate, jasper</itunes:keywords></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-9128235780608102397</guid><pubDate>Mon, 04 Jul 2011 21:12:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.164-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ejb</category><category domain="http://www.blogger.com/atom/ns#">ejb3</category><category domain="http://www.blogger.com/atom/ns#">annotation</category><category domain="http://www.blogger.com/atom/ns#">ACC</category><title>@EJB Annotation in EJB Client</title><description>Problem:&lt;br /&gt;&lt;br /&gt;App server is JBoss, I created the Jar file for the bean class and interface in the right directory. Now I created a simple client using EJB annotations, but I am getting a NullPointerException.&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;br /&gt;EJB annotation is an incejction, it is supposed to be deployed on the app server and then executed in an Application Client Container (ACC) so that injection can occur. Starting the ACC requires an application server specific command.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The following wiki explains the usage of the ACC in JBoss (how to package, deploy and launch an ACC): &lt;a href="http://community.jboss.org/wiki/HowtouseanapplicationclientinJBoss-5" style="text-decoration:none;color:rgb(34,136,187);"&gt;How to use an application client in JBoss-5&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;If you don't want to use an Application Client Container and instead just run the application client class through a java command, injection won't be possible and you'll have to perform a JNDI lookup.&lt;br /&gt;&lt;br /&gt;And in both cases, you'll have to provide and use a remote business interface for your bean.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-9128235780608102397?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/X-6KT9BtUa_FdyI3W5KC1M0rpow/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/X-6KT9BtUa_FdyI3W5KC1M0rpow/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/X-6KT9BtUa_FdyI3W5KC1M0rpow/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/X-6KT9BtUa_FdyI3W5KC1M0rpow/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/07/ejb-annotation-in-ejb-client_04.html</link><author>noreply@blogger.com (!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-1319714890244955883</guid><pubDate>Wed, 22 Jun 2011 17:30:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.164-07:00</atom:updated><title>JNDI in POJO</title><description>If you have used JNDI lookup in your services, JSPs or servlets, it was as easy as looking it up using some code like this:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;InitialContext ctx;&lt;br /&gt;ctx = new InitialContext();&lt;br /&gt;MyBean hello = (MyBean) ctx.lookup("MyBean");&lt;br /&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;However, if you want to use this code in a POJO style, you won't be successful, looking up that JNDI. In the first cases, you were running your code within a container, thus you don't need any specific configuration and the container will take care of it. However, in a POJO style (i.e. using main() method), you need to have some specification detailed out. One need to set up server properties to get the InitialContext.&lt;br /&gt;&lt;br /&gt;For JBoss, you need to have the following set and be passed to your InitialContext:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;Hashtable env = new Hashtable();&lt;br /&gt;env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");&lt;br /&gt;env.put(Context.PROVIDER_URL, "localhost:1099");&lt;br /&gt;env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming.client");&lt;br /&gt;Context ctx = new InitialContext(env);&lt;br /&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;You also can create a jndi.properties files with the following parameters, and place them in your class-path.&lt;br /&gt;&lt;br /&gt;java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory&lt;br /&gt;java.naming.provider.url=jnp://localhost:1099&lt;br /&gt;java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces&lt;br /&gt;&lt;br /&gt;Resources:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://community.jboss.org/wiki/AccessEJBsRemotely"&gt;http://community.jboss.org/wiki/AccessEJBsRemotely&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-1319714890244955883?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/35cnn-UHYCeYpVC3cLSGw6RP308/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/35cnn-UHYCeYpVC3cLSGw6RP308/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/35cnn-UHYCeYpVC3cLSGw6RP308/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/35cnn-UHYCeYpVC3cLSGw6RP308/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/06/jndi-in-pojo_22.html</link><author>noreply@blogger.com (!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-75064122649967439</guid><pubDate>Thu, 02 Jun 2011 22:54:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.164-07:00</atom:updated><title>UserTransaction vs. TransactionManager</title><description>The &lt;a href="http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Web_Platform/5/html/Transactions_JTA_Development_Guide/chap-Transactions_JTA_Programmers_Guide-Transactions.html"&gt;UserTransaction&lt;/a&gt; interface allows &lt;strong&gt;applications&lt;/strong&gt; to control transaction boundaries.&lt;br /&gt;&lt;br /&gt;The &lt;a href="http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Web_Platform/5/html/Transactions_JTA_Development_Guide/form-Transactions_JTA_Programmers_Guide-The_API-TransactionManager.html"&gt;TransactionManager&lt;/a&gt; interface allows the &lt;strong&gt;application server&lt;/strong&gt; to control transaction boundaries on behalf of the application being managed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-75064122649967439?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Z7-7baIab2rFhPooeHlouM4Onyw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Z7-7baIab2rFhPooeHlouM4Onyw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Z7-7baIab2rFhPooeHlouM4Onyw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Z7-7baIab2rFhPooeHlouM4Onyw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/06/usertransaction-vs-transactionmanager_02.html</link><author>noreply@blogger.com (!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-5770399574348553901</guid><pubDate>Wed, 18 May 2011 23:52:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.165-07:00</atom:updated><title>XADatasource in JBossAS &amp; Hibernate</title><description>If you have ever wondered how you can use an XA Datasource in your JBoss AS, this is the answer. First you need to define the XA Datasource in your JBossAS, it is as easy as creating an XML file like this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;&lt;br /&gt;    &lt;br /&gt;        XAOracleDS&lt;br /&gt;        true&lt;br /&gt;        false&lt;br /&gt;        oracle.jdbc.xa.client.OracleXADataSource&lt;br /&gt;        &lt;br /&gt;            jdbc:oracle:thin:@monkeymachine:1521:jboss&lt;br /&gt;        &lt;br /&gt;        jboss&lt;br /&gt;        password&lt;br /&gt;        &lt;br /&gt;            org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter&lt;br /&gt;        &lt;br /&gt;        &lt;br /&gt;    &lt;br /&gt;&lt;br /&gt;    &lt;br /&gt;        &lt;br /&gt;            jboss:service=TransactionManager&lt;br /&gt;        &lt;br /&gt;    &lt;br /&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then you need to copy this file to your default (or another profile in your JBossAS) deploy folder, tada! you have registered a JNDI registry for the XA Data-source of yours. Now the question is how to use it with Hibernate. Hibernate configuration files are usually something like:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;  oracle.jdbc.driver.OracleDriver&lt;br /&gt;  rms_owner&lt;br /&gt;  jdbc:oracle:thin:@localhost:1521:HBTTST&lt;br /&gt;  rms_owner&lt;br /&gt;  org.hibernate.dialect.Oracle10gDialect&lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;in this hibernate file as you can see, all the variables required to connect to database are specified. However, now that you have created the Datasource you just need to point hibernate configuration file to the new Datasource file, something like:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;  &lt;br /&gt;            org.hibernate.dialect.Oracle10gDialect&lt;br /&gt;        &lt;br /&gt;        java:XAOracleDS&lt;br /&gt; &lt;br /&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;now you should be able to use Hibernate and it should be able to connect to your database flawlessly.&lt;br /&gt;&lt;br /&gt;Please note that the connection datasource name in hibernate file is java:XAOracleDS and not XAOracleDS.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-5770399574348553901?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/YPjKoup5QFM-6L4-4fHmC6TQP6o/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/YPjKoup5QFM-6L4-4fHmC6TQP6o/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/YPjKoup5QFM-6L4-4fHmC6TQP6o/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/YPjKoup5QFM-6L4-4fHmC6TQP6o/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/05/xadatasource-in-jbossas-hibernate_18.html</link><author>noreply@blogger.com (!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-5385597039154801617</guid><pubDate>Wed, 18 May 2011 18:31:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.165-07:00</atom:updated><title>Google I/O 2011 - Talks</title><description>Google I/O 2011: The Secrets of Google Pac-Man: A Game Show&lt;br /&gt;[youtube http://www.youtube.com/watch?v=ttavBa4giPc?rel=0&amp;amp;w=560&amp;amp;h=349]&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-5385597039154801617?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ncm35EfUsnGYC0CYLGR_YiOXy0g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ncm35EfUsnGYC0CYLGR_YiOXy0g/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ncm35EfUsnGYC0CYLGR_YiOXy0g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ncm35EfUsnGYC0CYLGR_YiOXy0g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/05/google-io-2011-talks_18.html</link><author>noreply@blogger.com (!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-1046203947283781067</guid><pubDate>Fri, 13 May 2011 13:42:00 +0000</pubDate><atom:updated>2012-05-28T07:46:49.389-07:00</atom:updated><title>Google IO 2011 - Countdown Music &amp; Keynotes - Days one &amp; two</title><description>Google IO Countdown Music&lt;br /&gt;
&lt;br /&gt;
&lt;object height="81" width="100%"&gt; &lt;param name="movie" value="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F15406280&amp;amp;show_comments=true&amp;amp;auto_play=false&amp;amp;color=ff7700"&gt;&lt;/param&gt; &lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt; &lt;embed allowscriptaccess="always" height="81" src="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F15406280&amp;amp;show_comments=true&amp;amp;auto_play=false&amp;amp;color=ff7700" type="application/x-shockwave-flash" width="100%"&gt;&lt;/embed&gt; &lt;/object&gt;  
&lt;br /&gt;
Google Keynote Day 1&lt;br /&gt;
&lt;iframe width="420" height="236" src="http://www.youtube.com/embed/OxzucwjFEEs?rel=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;
&lt;br /&gt;
Google Keynote Day 2&lt;br /&gt;
&lt;iframe width="420" height="236" src="http://www.youtube.com/embed/MiYND_zvIc0?rel=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-1046203947283781067?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/A0i9m1s49Gcneln1TdfbANou-_k/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/A0i9m1s49Gcneln1TdfbANou-_k/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/A0i9m1s49Gcneln1TdfbANou-_k/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/A0i9m1s49Gcneln1TdfbANou-_k/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/05/google-io-2011-countdown-music-keynotes_13.html</link><author>noreply@blogger.com (!)</author><media:thumbnail url="http://img.youtube.com/vi/OxzucwjFEEs/default.jpg" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-7059766024710707034</guid><pubDate>Tue, 26 Apr 2011 16:58:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.165-07:00</atom:updated><title>Hibernate First Steps</title><description>For adding a new object (to database) the code below suffice (you still need to define xml files / JPA annotation still for hibernate configuration):&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;  Configuration conf = new Configuration().configure(file);&lt;br /&gt;      SessionFactory sessionFactory = conf.buildSessionFactory();&lt;br /&gt;       session =sessionFactory.openSession();&lt;br /&gt;        //Create new instance of Contact and set values in it by reading them from form object&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        Transaction tx;&lt;br /&gt;        tx = session.beginTransaction();&lt;br /&gt;&lt;br /&gt;        System.out.println("Inserting Record");&lt;br /&gt;        contact contact = new contact();&lt;br /&gt;        contact.setId(6);&lt;br /&gt;        contact.setFirstName("firstt");&lt;br /&gt;        contact.setLastName("lfirstt");&lt;br /&gt;        session.save(contact);&lt;br /&gt;&lt;br /&gt;        System.out.println("Done");&lt;br /&gt;&lt;br /&gt;        tx.commit();&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is not the whole code, you need to take into consideration the flush and close of the session.&lt;br /&gt;For updating or deleting, one should know the uniqeIdentifier, if not you can use SQL query to get that (not described here how).&lt;br /&gt;When you have that identifier, you just need to have the following code:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;       Long identifier = (long) 2;&lt;br /&gt;        contact contact1 = (contact) session.load(contact.class, identifier);&lt;br /&gt;        System.out.println(contact1.getEmail());&lt;br /&gt;&lt;br /&gt;        &lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-7059766024710707034?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/th_jRJZdwPMWLARp62Z2mMvp8yk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/th_jRJZdwPMWLARp62Z2mMvp8yk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/th_jRJZdwPMWLARp62Z2mMvp8yk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/th_jRJZdwPMWLARp62Z2mMvp8yk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/04/hibernate-first-steps_26.html</link><author>noreply@blogger.com (!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-3661196853521890395</guid><pubDate>Mon, 25 Apr 2011 14:12:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.165-07:00</atom:updated><title>Persistence in jBPM</title><description>Trying to persist a jBPM into a database ? and you are searching the internet for it ? that's not going to get you the best result. You might get to this page: http://docs.jboss.org/jbpm/v3/userguide/persistence.html where it says you need to use the jPBMContext but what you need to know is that you don't need to do anything. jBPM if set up correctly, it persists automatically into database. You only need to change (or use) jPBMContext where you want to change the default behavior of the system.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-3661196853521890395?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ky_ZBLmCEnxggOQwf0trctvMm50/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ky_ZBLmCEnxggOQwf0trctvMm50/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ky_ZBLmCEnxggOQwf0trctvMm50/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ky_ZBLmCEnxggOQwf0trctvMm50/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/04/persistence-in-jbpm_25.html</link><author>noreply@blogger.com (!)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8442013179520708630.post-4063848309326097911</guid><pubDate>Wed, 20 Apr 2011 11:51:00 +0000</pubDate><atom:updated>2012-04-16T02:05:54.165-07:00</atom:updated><title>Making external monitor the primary monitor in Linux</title><description>&lt;p&gt;Making some monitor, a primary monitor is a matter of having the panels on that monitor. No one wants to work on one monitor that has panels of its machine on the other one. I have tried this on Red Hat Enterprise 6.&lt;/p&gt;  &lt;p&gt;Here's a step-by-step way of moving a panel to another screen:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Right-click the panel you wish to move and select "Properties".&lt;/li&gt;    &lt;li&gt;Uncheck the "Expand" option under the "General" tab.&lt;/li&gt;    &lt;li&gt;Grab one of the edges of the panel by clicking on the left or right end (top or bottom end for vertical panels).&lt;/li&gt;    &lt;li&gt;Drag the bar to the desired screen and position.&lt;/li&gt;    &lt;li&gt;Check the "Expand" option in the "Panel Properties" window and click "Close".&lt;/li&gt; &lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8442013179520708630-4063848309326097911?l=blog.sheidaei.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hiFrTeKGZL_hsur6zUMTOUu3lDU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hiFrTeKGZL_hsur6zUMTOUu3lDU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hiFrTeKGZL_hsur6zUMTOUu3lDU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hiFrTeKGZL_hsur6zUMTOUu3lDU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.sheidaei.com/2011/04/making-external-monitor-primary-monitor_20.html</link><author>noreply@blogger.com (!)</author><thr:total>0</thr:total></item><language>en-us</language><media:rating>nonadult</media:rating></channel></rss>

