<?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/"
	>

<channel>
	<title>hugomonteiro.net</title>
	<atom:link href="http://hugomonteiro.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://hugomonteiro.net</link>
	<description>&#34;When two men in business always agree, one of them is unnecessary.&#34; - William Wrigley Jr.</description>
	<lastBuildDate>Wed, 14 Dec 2011 00:12:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>My trip to NY</title>
		<link>http://hugomonteiro.net/2011/12/11/my-trip-to-ny/</link>
		<comments>http://hugomonteiro.net/2011/12/11/my-trip-to-ny/#comments</comments>
		<pubDate>Sun, 11 Dec 2011 22:27:09 +0000</pubDate>
		<dc:creator>Hugo Monteiro</dc:creator>
				<category><![CDATA[Entrepreneurship]]></category>
		<category><![CDATA[Travel]]></category>
		<category><![CDATA[new york]]></category>
		<category><![CDATA[travel]]></category>

		<guid isPermaLink="false">http://hugomonteiro.net/?p=461</guid>
		<description><![CDATA[In the beginning of November I made a trip to the city that never sleeps, New York. I decided to share  my thoughts about the differences between my country and this big city. In NY, there is a culture of &#8220;image selling&#8221;. They always try to negotiate something, for instance, I found an homeless guy who negotiated with me, [...]]]></description>
			<content:encoded><![CDATA[<p>In the beginning of November I made a trip to the city that never sleeps, New York. I decided to share  my thoughts about the differences between my country and this big city.</p>
<p>In NY, there is a culture of &#8220;image selling&#8221;. They always try to negotiate something, for instance, I found an homeless guy who negotiated with me, the amount of money I should give to him, because he helped me with the ticket to the airport.</p>
<p>NY is the capitalism capitol. Every service is private, and the public ones are very expensive. I talked to a girl in Wall Street that payed 40 000 dollares for a college degree! So, who has the money, has the education. The city of NY is very multi-cultural. A sign of it, is that some of the publicity that is shown are in spanish, because of the increasing people coming from South America.</p>
<p>The majority of the people that I have met in NY, are not americans, but immigrants looking for a better life.</p>
<p>The trip showed me that Europe is the zone of the world where the level of education is higher, but from my point of view and seeing my country, Portugal, we are not very entrepreneurs to create our own company. In the USA we see a lot of people that doesn&#8217;t have access to a college education, but still create successful companies. There are some private Universities like <a href="http://www.stanford.edu/">Stanford</a> and <a href="http://berkeley.edu/">Berkeley</a> that gives for free, online courses, for instance: <a href="http://www.venture-class.org/" target="_blank">http://www.venture-class.org</a>.</p>
<p>The difference between the rich and the poor in NY is very high. I watched a lot of homeless people in subway stations asking for food. This is really disturbing because some of them, don&#8217;t ask for money, but for food. That happens in Europe too, but not in that much quantity.</p>
<p>&nbsp;</p>
<p><strong>Conclusion</strong></p>
<p>NY city is one of the best places to launch a business. One of the reasons is that we can do everything. If you have an interest in something, you will certainly find the group of people in the city that does it. There is a show called <a href="http://howtomakeitinamerica.com/">How to make it in America</a> that happens in NY and show how entrepreneurship and persistence are very important in today&#8217;s market.</p>
<p>We should learn more about the entrepreneurship model of the USA, where they instigate people from the faculties to launch a business. In Portugal, there are a lot of improvements in that area. We have a lot of entrepreneurship events like <a href="http://lisbon.startupweekend.org/">Startup Weekend</a>, <a href="http://www.startuppirates.org/">Startup Pirates</a>, <a href="http://switchconf.com/">SwitchConf</a>, etc.</p>
<p style="text-align: left;">If I will return to NY? Off course!</p>
<p style="text-align: left;"><a href="http://hugomonteiro.net/wp-content/uploads/2011/12/IMG_1177.jpg"><img class="aligncenter size-medium wp-image-481" title="Top of the Empire State Building" src="http://hugomonteiro.net/wp-content/uploads/2011/12/IMG_1177-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p style="text-align: left;">
]]></content:encoded>
			<wfw:commentRss>http://hugomonteiro.net/2011/12/11/my-trip-to-ny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Week 1: Testing personal Kanban</title>
		<link>http://hugomonteiro.net/2011/11/02/week-1-testing-personal-kanban/</link>
		<comments>http://hugomonteiro.net/2011/11/02/week-1-testing-personal-kanban/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 23:20:03 +0000</pubDate>
		<dc:creator>Hugo Monteiro</dc:creator>
				<category><![CDATA[Personal Development]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[agile]]></category>
		<category><![CDATA[kanban]]></category>
		<category><![CDATA[personal development]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[tasks]]></category>

		<guid isPermaLink="false">http://hugomonteiro.net/?p=451</guid>
		<description><![CDATA[The personal Kanban experience is enforcing the way I define goals each week. When I write on the post-it, that goal is possible because I imagine it how it should be finished. At my first week with this tool, I noticed that with my board always insight I have a global view of the tasks [...]]]></description>
			<content:encoded><![CDATA[<p>The personal <a title="Kanban" href="http://en.wikipedia.org/wiki/Personal_Kanban">Kanban</a> experience is enforcing the way I define goals each week. When I write on the post-it, that goal is possible because I imagine it how it should be finished.</p>
<p>At my first week with this tool, I noticed that with my board always insight I have a global view of the tasks that I need to finish. And that is really important, because it gives the feeling that you are progressing. It is my first week with this, and I am very lazy, so with this board I get an additional pressure to finish my tasks.</p>
<p>I felt the need to signalize blocked post-its (blocked post-its are tasks that are blocked from some reason) to differentiate from other tasks. That way you get an extra-motivation because it does not only depend on you if that task is not completed.</p>
<p>At the end of the week I make the question &#8220;Why you are not completed?&#8221; to each one of the post-its that are in the backlog column. Off course the answer should not be laziness, if it is, you need to change something like DON&#8217;T PROCRASTINATE (like me sometimes).</p>
<p>Conclusion:<br />
The personal <a title="Kanban" href="http://en.wikipedia.org/wiki/Personal_Kanban">Kanban</a> tool is still a very recent experience for me, and I am still learning how to be more effective and productive. The column &#8220;done&#8221; of the board is very important for me, because it gives me the motivation each time I complete a new task and see a lot of post-its there.</p>
<p><a href="http://hugomonteiro.net/wp-content/uploads/2011/11/2011-11-02-22.33.27.jpg"><img class="aligncenter size-medium wp-image-453" title="Week1: Testing personal Kanban" src="http://hugomonteiro.net/wp-content/uploads/2011/11/2011-11-02-22.33.27-300x224.jpg" alt="" width="300" height="224" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://hugomonteiro.net/2011/11/02/week-1-testing-personal-kanban/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing Personal Kanban</title>
		<link>http://hugomonteiro.net/2011/10/23/testing-personal-kanban/</link>
		<comments>http://hugomonteiro.net/2011/10/23/testing-personal-kanban/#comments</comments>
		<pubDate>Sun, 23 Oct 2011 20:13:20 +0000</pubDate>
		<dc:creator>Hugo Monteiro</dc:creator>
				<category><![CDATA[Personal Development]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[agile]]></category>
		<category><![CDATA[kanban]]></category>
		<category><![CDATA[personal development]]></category>
		<category><![CDATA[productivity]]></category>

		<guid isPermaLink="false">http://hugomonteiro.net/?p=441</guid>
		<description><![CDATA[&#8220;Personal Kanban is a productivity and effectiveness tool for individuals or small groups&#8221; - wikipedia. I decided to test the Kanban tool to see if it is really powerful. This tool has two core rules: Visualize your work (imagine what you need to do to accomplish that goal) Limit your work in progress (this is very important, [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;Personal Kanban is a productivity and effectiveness tool for individuals or small groups&#8221; - <a title="wikipedia" href="http://en.wikipedia.org/wiki/Personal_Kanban">wikipedia</a>.</p>
<p>I decided to test the Kanban tool to see if it is really powerful. This tool has two core rules:</p>
<ul>
<li>Visualize your work (imagine what you need to do to accomplish that goal)</li>
<li>Limit your work in progress (this is very important, because our mind can&#8217;t focus when you are doing a lot of tasks at the same time)</li>
</ul>
<div>To do this experiment I build a &#8220;Kanban board&#8221; with three columns (which you can see at the bottom of this post):</div>
<div>
<ul>
<li><strong>Backlog</strong>: All tasks that I need to do</li>
<li><strong>Doing (3)</strong>: Tasks that I am doing, with a limit of 3 at the same time</li>
<li><strong>Done</strong>: Completed tasks</li>
</ul>
</div>
<div>I am going to document this experience here and do a little balance each week to see if this really works.</div>
<p>&nbsp;</p>
<div>
<dl id="attachment_442">
<dt><a href="http://hugomonteiro.net/wp-content/uploads/2011/10/personal_kanban.jpg"><img class="aligncenter" title="My Personal Kanban" src="http://hugomonteiro.net/wp-content/uploads/2011/10/personal_kanban-300x225.jpg" alt="" width="300" height="225" /></a></dt>
<dd></dd>
</dl>
</div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://hugomonteiro.net/2011/10/23/testing-personal-kanban/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The power of a peer group</title>
		<link>http://hugomonteiro.net/2011/09/30/the-power-of-a-peer-group/</link>
		<comments>http://hugomonteiro.net/2011/09/30/the-power-of-a-peer-group/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 23:10:00 +0000</pubDate>
		<dc:creator>Hugo Monteiro</dc:creator>
				<category><![CDATA[Personal Development]]></category>
		<category><![CDATA[future]]></category>
		<category><![CDATA[goals]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[peer group]]></category>
		<category><![CDATA[person]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[tasks]]></category>

		<guid isPermaLink="false">http://hugomonteiro.net/?p=429</guid>
		<description><![CDATA[How many times, we listen to our friends saying that &#8220;it was so good, if I could win the euro millions&#8220;, &#8220;it was so good if I had 6 months of vacation each year&#8220;, &#8220;it was so good if I had my own company&#8220;&#8230; It was so good if my future could depend only on [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="peer group" src="http://farm7.static.flickr.com/6121/6195626951_126c4a6218.jpg" alt="" width="500" height="375" />How many times, we listen to our friends saying that &#8220;<em>it was so good, if I could win the euro millions</em>&#8220;, &#8220;<em>it was so good if I had 6 months of vacation each year</em>&#8220;, &#8220;<em>it was so good if I had my own company</em>&#8220;&#8230; It was so good if my future could depend only on me. Well, as a matter of fact, the future depends just on you. We have just to be the person we want to be. If you want to build a company, why don&#8217;t you create your business cards, why don&#8217;t you see <a href="http://inc.com">inc.com</a> website searching for tips and businesses. What if you talk to management teachers at the universities, or invite some entrepreneurs to dinner. Seems pretty easy, when you want it. You don&#8217;t need to always delay your future. Instead of saying that you don&#8217;t have time, use that time to do something.</p>
<p>There is a methodology that helped me to accomplish more goals each week.</p>
<p>I learned this with a personal development Guru called <a href="http://danielsanogueira.com">Daniel Sá Nogueira</a>. He said that we need to have a <a title="peer group" href="http://en.wikipedia.org/wiki/Peer_group">peer group</a>. A peer group is a group that motivates you to accomplish the objectives each week. I have now a <a title="peer group" href="http://en.wikipedia.org/wiki/Peer_group">peer group</a> with two of my friends, and the main objective of it is to define the goals for the next week and accomplish that. What if you don&#8217;t complete all of the tasks? The peer group will &#8220;<em>kick you</em>&#8221; and ask &#8220;<em>why didn&#8217;t you completed it</em>&#8220;? You have to come up with a good excuse for that. That expectation makes you want to do more and more each week!</p>
<p>I know that we live in difficult times, but we have to try to be the best and study to accomplish each day, something!</p>
<p>Now that I did this article I can say to my peer group that I accomplished another goal!</p>
<p><strong>Challenge:</strong></p>
<p>Create your own peer group and define goals each week.</p>
<h1>Good luck!</h1>
]]></content:encoded>
			<wfw:commentRss>http://hugomonteiro.net/2011/09/30/the-power-of-a-peer-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Client Certificates and Play!</title>
		<link>http://hugomonteiro.net/2011/09/30/client-certificates-and-play/</link>
		<comments>http://hugomonteiro.net/2011/09/30/client-certificates-and-play/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 23:09:20 +0000</pubDate>
		<dc:creator>Hugo Monteiro</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[play]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[certificates]]></category>
		<category><![CDATA[keytool]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[rsa]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://hugomonteiro.net/?p=409</guid>
		<description><![CDATA[Sometimes we need the authentication of the client. That means, for instance, if you want to limit the access to your web application, from the people who has the right certificate. This is possible, using client certificates, which are installed inside the browser, and the user without this certificate cannot access the web application. To [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes we need the authentication of the client. That means, for instance, if you want to limit the access to your web application, from the people who has the right certificate.<br />
This is possible, using client certificates, which are installed inside the browser, and the user without this certificate cannot access the web application.</p>
<p>To create client certificates, you need to check if you have <em><a title="openssl" href="http://www.openssl.org/">openssl</a></em> installed. After this verification, you need to find where the auxiliary command CA and/or CA.pl is installed. On my Mac  it&#8217;s located in &#8220;<em>/System/Library/OpenSSL/misc/CA.pl</em>&#8220;.</p>
<p><strong>1. First, we need to create a Certificate Authority (CA): </strong></p>
<pre>$ CA.pl -newca</pre>
<p>After pressing enter, and following some instructions, a new folder &#8220;<em>demoCA</em>&#8221; is created with our newly created Certificate Authority.</p>
<p><strong>2. Create a certificate signing request:</strong></p>
<pre>$ CA.pl -newreq</pre>
<p>Follow the instructions to create the certificate signing request. Two files will be created: &#8220;Request is in <em>newreq.pem</em>, private key is in <em>newkey.pem</em>&#8220;.</p>
<p><strong>3. Sign it with the CA:</strong></p>
<pre>$ CA.pl -sign</pre>
<p>The signed certificate <em>newcert.pem</em> is generated.</p>
<p><strong>4. Create a client certificate that our user will install in his browser:</strong></p>
<pre>$ openssl pkcs12 -export -inkey newkey.pem \
           -in newcert.pem -out clientCertificate.p12</pre>
<p>As we can see, we use the private key <em>newkey.pem</em> and the CA signed certificate to create the client certificate.</p>
<p>Now that we have all the certificates created we need to use a tool to save our Certificate Authority that will be verified when someone asks for authorization with a certificate. I prefer to use the &#8220;<em>keytool</em>&#8220;. Verify that you have <em>keytool</em> command available before you begin:</p>
<p><strong>5. Create a keystore:</strong></p>
<pre>$ keytool -genkey -keystore truststore.jks</pre>
<p><strong>6. Add CA to keystore</strong></p>
<pre>$ keytool -import -trustcacerts -alias "my CA" \
                -file demoCA/cacert.pem -keystore truststore.jks</pre>
<p><strong>7. Configure Play! Framework:</strong></p>
<p>Add to the  <em>application.conf </em>file, the keystore configurations:</p>
<pre>play.netty.clientAuth=need
keystore.algorithm=jks
keystore.file=conf/truststore.jks
keystore.password=mykeystorepassword</pre>
<p><strong>Conclusions:</strong></p>
<p>Inside the keystore, there is the Certificate Authority that will be verified when the client tries to comunicate with the server, using a certificate signed by the CA. This is very helpful if you want to build a web application that is in the Internet, and you just want the people from inside the company to access to it. Off course, the disadvantage of this approach is that if your user steals the certificate, he also can access the application everywhere.</p>
<p><strong>References:</strong></p>
<ul>
<li><a href="http://www.playframework.org/documentation/1.2.3/configuration#play.netty.clientAuth">http://www.playframework.org/documentation/1.2.3/configuration#play.netty.clientAuth</a></li>
<li><a title="http://www.ipsec-howto.org/x595.html" href="http://www.ipsec-howto.org/x595.html">http://www.ipsec-howto.org/x595.html</a></li>
<li><a title="http://shib.kuleuven.be/docs/ssl_commands.shtml" href="http://shib.kuleuven.be/docs/ssl_commands.shtml">http://shib.kuleuven.be/docs/ssl_commands.shtml</a></li>
<li><a title="http://stackoverflow.com/questions/1666052/java-https-client-certificate-authentication" href="http://stackoverflow.com/questions/1666052/java-https-client-certificate-authentication">http://stackoverflow.com/questions/1666052/java-https-client-certificate-authentication</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://hugomonteiro.net/2011/09/30/client-certificates-and-play/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Keeping the motivation HIGH!</title>
		<link>http://hugomonteiro.net/2011/08/19/keeping-the-motivation-high/</link>
		<comments>http://hugomonteiro.net/2011/08/19/keeping-the-motivation-high/#comments</comments>
		<pubDate>Fri, 19 Aug 2011 14:25:09 +0000</pubDate>
		<dc:creator>Hugo Monteiro</dc:creator>
				<category><![CDATA[Entrepreneurship]]></category>
		<category><![CDATA[knowledge]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[meeting]]></category>
		<category><![CDATA[motivation]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[scrum]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://hugomonteiro.net/?p=392</guid>
		<description><![CDATA[Our life and work, specially the second, are very focused in goals and deadlines. Many of us had terrible experiences putting together these two words: goals and deadlines. Many companies think that if you have goals and deadlines, and money at the end, without motivation effort inside work environment, you are going to achieve your [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" src="http://site.suamente.com.br/wp-content/uploads/2011/08/stress1.jpg" alt="" width="323" height="301" />Our life and work, specially the second, are very focused in goals and deadlines. Many of us had terrible experiences putting together these two words: goals and deadlines.<br />
Many companies think that if you have goals and deadlines, and money at the end, without motivation effort inside work environment, you are going to achieve your goals pretty quickly. I don&#8217;t think like that. Working with a carrot in front of our noses is not the way to motivate people to work more. So, the question is, how can we motivate people to work more without worrying about the money?</p>
<p>There are some things that we can do, but they are not a recipe for everything. It depends mostly on the people you have working with you or for you. As <a href="http://twitter.com/#!/alexkjerulf">Alexander Kjerulf</a> says, &#8220;the only two things that motivates you at work are your relationships and your work progress&#8221;.<br />
<strong>1. Relationships: </strong>You work more and you will be more motivated if you like your colleagues at work. How many times you asked for help? How many times you shared knowledge? How many times you told stuff that made someone laugh? To improve your relationships at work you can do simple things like:</p>
<ul>
<li>Give a good morning like you mean it!;</li>
<li>Short breaks with your colleagues;</li>
<li>Ask for help;</li>
<li>Share something you know that will improve your work environment;</li>
<li>Do events outside work. For instance invite your colleagues for parties, dinners, football games, etc.</li>
</ul>
<p><strong>2. Work progress: </strong>What is our motivation above all? Help the world and get recognized for it! It is exaggerated but it is true. You are here to leave your mark to the world above all. And if your company knows how to motivate you for this, you will love your job. See google for example, they work to improve our lives, with gmail, calendar, with android or more recently google+. What can we do to motivate people to work more and to achieve their goals quickly and sometimes to handle deadlines pressure? As I said previously this is not a recipe, but are simple things that we can do to improve our work:</p>
<ul>
<li>Apply <a href="http://en.wikipedia.org/wiki/KISS_principle"><em>KISS</em></a> principle (Keep it Simple Stupid). Split your goal into smaller goals. If you have smaller goals and you surpass one by one, you get more motivated, because you notice that your cleaning your list. If you have a long list of goals, you get lost;</li>
<li>Give your team more meetings to show them the progress they are doing. For instance, <em><a href="http://en.wikipedia.org/wiki/Scrum_(development)">SCRUM</a> </em>is an Agile development method which has one meeting day to know the progress of the team;</li>
<li>Let the experienced people of your team to do workshops on how to make your work more productive, sharing their knowledge on how to handle big sums of work;</li>
<li>Have a constantly updated team wiki about the business/technology you are working on.</li>
</ul>
<p><strong>Conclusion</strong></p>
<p>Nowadays, motivation is one the most important aspects that changes our work environments everyday. To have your team or your colleagues motivated with the job they are doing, you have to join the professional and your personal life. If you go to your work with &#8220;friends&#8221;, it is easier to handle pressure and deadlines, because you are not alone and you have people that will certainly help you.</p>
]]></content:encoded>
			<wfw:commentRss>http://hugomonteiro.net/2011/08/19/keeping-the-motivation-high/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Access DB manager from the PlayFramework</title>
		<link>http://hugomonteiro.net/2011/06/26/access-db-manager-from-the-play-framework/</link>
		<comments>http://hugomonteiro.net/2011/06/26/access-db-manager-from-the-play-framework/#comments</comments>
		<pubDate>Sun, 26 Jun 2011 14:50:09 +0000</pubDate>
		<dc:creator>Hugo Monteiro</dc:creator>
				<category><![CDATA[play]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[dbmanager]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://hugomonteiro.net/?p=387</guid>
		<description><![CDATA[With the new 1.2 version of play, now it&#8217;s possible to see all the tables in the database without needing an external database manager program. I have been developing in play, and I always feel the need of having a database in memory with test data being loaded each time I run the server. With [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="playframework" src="http://www.realjenius.com/wp-content/uploads/2010/03/play.png" alt="The playframework logo" width="177" height="64" />With the new <strong>1.2 version</strong> of <a href="http://www.playframework.org/">play</a>, now it&#8217;s possible to see all the tables in the database without needing an external database manager program.</p>
<p>I have been developing in <a href="http://www.playframework.org/">play</a>, and I always feel the need of having a database in memory with test data being loaded each time I run the server. With this approach, I don&#8217;t need to have a SQL server running and I don&#8217;t need to be worried about changing my database model (for instance, conflict test data), so I just need to change my test data and run the <a href="http://www.playframework.org/">play</a> server again.</p>
<p>The new database manager that <a href="http://www.playframework.org/">playframework</a> uses is called <a href="http://www.h2database.com/">H2</a>. <a href="http://www.h2database.com/">H2</a> is a Java SQL database which allows to access in-memory/embedded/server databases. In my case, which I use a memory database and I have test data already, I just need to have a line in my Application.conf:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">db=mem</div></div>
<p>The second thing is to do to access the <a href="http://www.h2database.com/">H2</a> database manager inside the <a href="http://www.playframework.org/">play</a> is access the <em><strong>http://localhost:9000/@db </strong></em>url (I am supposing that the dev server is running on your localhost). After accessing the database you just need to configure the <a href="http://www.h2database.com/">H2</a> login like the image:</p>
<p><a href="http://hugomonteiro.net/wp-content/uploads/2011/06/h2-server-login.png"><img class="aligncenter size-medium wp-image-388" title="h2-server-login" src="http://hugomonteiro.net/wp-content/uploads/2011/06/h2-server-login-300x212.png" alt="" width="300" height="212" /></a></p>
<p>Now you just need to press the connect button and voilá! <img src='http://hugomonteiro.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><strong>Conclusions:</strong></p>
<ol>
<li>Run your playframework: <strong>play run myproject</strong> (with the &gt;=1.2 version of <a href="http://www.playframework.org">playframework</a>)</li>
<li>Access <strong><em>http://localhost:9000/@db</em></strong></li>
<li>Configure JDBC URL: <strong><em>jdbc:h2:mem:play </em></strong>(you can access other databases, for instance mysql)</li>
<li>Default authentication:<strong> username: sa / Password: (empty)</strong></li>
</ol>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://hugomonteiro.net/2011/06/26/access-db-manager-from-the-play-framework/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>I have a networking-based company! A WHAT?</title>
		<link>http://hugomonteiro.net/2011/06/15/i-have-a-networking-based-company-a-what/</link>
		<comments>http://hugomonteiro.net/2011/06/15/i-have-a-networking-based-company-a-what/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 22:23:47 +0000</pubDate>
		<dc:creator>Hugo Monteiro</dc:creator>
				<category><![CDATA[Entrepreneurship]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[entrepreneur]]></category>
		<category><![CDATA[motivation]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[people]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://hugomonteiro.net/?p=373</guid>
		<description><![CDATA[Yes, a networking-based company. The well-known method to offer services using the knowledge of our friends. Seems strange, but we hear often that we don&#8217;t have the expertise to do something, or we don&#8217;t know how to make a pie. You don&#8217;t need to know any of that. You just need to know a good [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://hugomonteiro.net/wp-content/uploads/2011/06/2673866489_df85f5e8a8.jpg"><img class="alignleft size-medium wp-image-375" title="networking" src="http://hugomonteiro.net/wp-content/uploads/2011/06/2673866489_df85f5e8a8-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>Yes, a networking-based company. The well-known method to offer services using the knowledge of our friends. Seems strange, but we hear often that we don&#8217;t have the expertise to do something, or we don&#8217;t know how to make a pie. You don&#8217;t need to know any of that. You just need to know a good friend who knows how to make great pies.</p>
<p>We meet people everywhere, that&#8217;s why we call it networking. We create connections between people, and that&#8217;s why it makes it so powerful. We don&#8217;t need to know the knowledge of the universe, we just need to know the people that together have the knowledge of the universe. As an example, many of you, thought that couldn&#8217;t make a big project. Think again, how many &#8220;friends&#8221; or strategic connections have you? Do you know how to design something or do you know rails programming, or java? No? But you know the people that can have that expertise? Talk to them! The greatest experience in the world is not how to make great ideas came true but is how to join great people to do something even greater.</p>
<p>Sometimes, even if we have a lot of friends, they don&#8217;t have the expertise that we need. Don&#8217;t worry. That is something called conferences. A lot of my networking is built going to conferences, going to public events where we share our business cards and our knowledge! We need to take the first step and don&#8217;t expect that someone will talk to you.</p>
<p>This is networking. Talk to people. Know them, and maybe create a business or a service in your company that uses your networking knowledge. If we are good project managers, we know how to motivate people to work in a project. If we don&#8217;t know how to motivate, we need to learn, and that&#8217;s a really important subject! Happy at work is not something that we do in 2 hours. In May of 2011 I was in a conference in Oporto, Portugal, called <em><a href="http://www.talks20.com/">&#8220;Happiness and creativity in your work life&#8221;</a></em> where <a href="http://twitter.com/#!/alexkjerulf">Alexander Kjerulf</a> spoke about happiness at work. His <a href="http://positivesharing.com/happyhouris9to5/bookhtml/happyhouris9to5overview.html">book</a> has little tips of what we can do at work to motivate our collaborators.</p>
<p>Conclusions:</p>
<p><strong>Tips for creating a networking-based company:</strong></p>
<ul>
<li>Have business cards (You can order it through <a href="http://moo.com">moo.com</a> &#8211; they have great designs for a variety of businesses)</li>
<li>Talk to your friends, know them (What they like, personal projects, etc)</li>
<li>Use your personal projects to sell yourself (If you don&#8217;t have a personal project, create one, in your area of expertise)</li>
<li>Go to conferences now!</li>
<li>Use outsourcing (Don&#8217;t spend hours to do something that costs so little, time is important! &#8211; I learned this with <a href="http://www.fourhourworkweek.com/blog/">Tim Ferriss</a>)</li>
<li>We can do it! (Yes, it&#8217;s a tip!)</li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://hugomonteiro.net/2011/06/15/i-have-a-networking-based-company-a-what/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Schools kill creativity</title>
		<link>http://hugomonteiro.net/2010/05/29/schools-kill-creativity/</link>
		<comments>http://hugomonteiro.net/2010/05/29/schools-kill-creativity/#comments</comments>
		<pubDate>Sat, 29 May 2010 12:36:48 +0000</pubDate>
		<dc:creator>Hugo Monteiro</dc:creator>
				<category><![CDATA[Entrepreneurship]]></category>
		<category><![CDATA[Education]]></category>

		<guid isPermaLink="false">http://hugomonteiro.net/?p=360</guid>
		<description><![CDATA[Ken Robinson talks about how the educational system is killing student creativity.]]></description>
			<content:encoded><![CDATA[<p>Ken Robinson talks about how the educational system is killing student creativity. </p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="334" height="326" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="wmode" value="transparent" /><param name="bgColor" value="#ffffff" /><param name="flashvars" value="vu=http://video.ted.com/talks/dynamic/SirKenRobinson_2006-medium.flv&amp;su=http://images.ted.com/images/ted/tedindex/embed-posters/SirKenRobinson-2006.embed_thumbnail.jpg&amp;vw=320&amp;vh=240&amp;ap=0&amp;ti=66&amp;introDuration=15330&amp;adDuration=4000&amp;postAdDuration=830&amp;adKeys=talk=ken_robinson_says_schools_kill_creativity;year=2006;theme=how_we_learn;theme=the_creative_spark;theme=bold_predictions_stern_warnings;theme=master_storytellers;theme=how_the_mind_works;theme=top_10_tedtalks;event=TED2006;&amp;preAdTag=tconf.ted/embed;tile=1;sz=512x288;" /><param name="src" value="http://video.ted.com/assets/player/swf/EmbedPlayer.swf" /><param name="bgcolor" value="#ffffff" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="334" height="326" src="http://video.ted.com/assets/player/swf/EmbedPlayer.swf" flashvars="vu=http://video.ted.com/talks/dynamic/SirKenRobinson_2006-medium.flv&amp;su=http://images.ted.com/images/ted/tedindex/embed-posters/SirKenRobinson-2006.embed_thumbnail.jpg&amp;vw=320&amp;vh=240&amp;ap=0&amp;ti=66&amp;introDuration=15330&amp;adDuration=4000&amp;postAdDuration=830&amp;adKeys=talk=ken_robinson_says_schools_kill_creativity;year=2006;theme=how_we_learn;theme=the_creative_spark;theme=bold_predictions_stern_warnings;theme=master_storytellers;theme=how_the_mind_works;theme=top_10_tedtalks;event=TED2006;&amp;preAdTag=tconf.ted/embed;tile=1;sz=512x288;" bgcolor="#ffffff" wmode="transparent" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://hugomonteiro.net/2010/05/29/schools-kill-creativity/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Deploying PlayFramework Apps in JBoss</title>
		<link>http://hugomonteiro.net/2010/04/01/deploying-playframework-apps-in-jboss/</link>
		<comments>http://hugomonteiro.net/2010/04/01/deploying-playframework-apps-in-jboss/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 17:19:57 +0000</pubDate>
		<dc:creator>Hugo Monteiro</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[play]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jboss]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://hugomonteiro.net/?p=352</guid>
		<description><![CDATA[After you created your web application you need to create the WAR file that will insert the framework and other dependent libs inside the folder that you specify: play war myapp -o myapp.war Now to deploy on JBoss, you need to do some changes on your WAR file: Create a file called jboss-web.xml in the [...]]]></description>
			<content:encoded><![CDATA[<p>After you created your web application you need to create the WAR file that will insert the framework and other dependent libs inside the folder that you specify:</p>
<pre>play war myapp -o myapp.war
</pre>
<p>Now to deploy on <a href="http://www.jboss.com/">JBoss</a>, you need to do some changes on your WAR file:</p>
<ul>
<li>Create a file called<strong><em> <strong>jboss</strong>-web.xml </em></strong>in the myapp.war/WEB-INF/ directory container the  following:</li>
</ul>
<pre class="brush: xml;" >
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;&nbsp;?&gt;
&lt;!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd"&gt;
<jboss-web>
<class-loading java2ClassLoadingCompliance="false">
<loader-repository>
com.example:archive=myapp.war
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
</loader-repository>
</class-loading>
</jboss-web>
</pre>
<ul>
<li>Download hibernate-validator and hibernate annotation using the compatibility matrix (<a title="Hibernate Compatibility Matrix" href="http://74.125.77.132/search?q=cache:Q9VmeUcio1MJ:https://www.hibernate.org/6.html+https://www.hibernate.org/6.html%23A3&amp;cd=1&amp;hl=nl&amp;ct=clnk&amp;gl=nl&amp;client=safari">Hibernate Compatibility Matrix</a>).  Play is using hibernate core 3.3.2 GA. Once you are done, place the  relevant jars in the myapp.war/WEB-INF/lib directory. You should end up with:
<ul>
<li>hibernate-annotations.jar</li>
<li>hibernate-entitymanager.jar</li>
<li>hibernate-validator.jar</li>
<li>hibernate-commons-annotations.jar</li>
<li>hibernate-search-3.1.1.GA.jar</li>
<li>hibernate3.jar (Do not overwrite this library, as Play! has a modified version of it)</li>
</ul>
</li>
<li>Now that we&#8217;re prepared for WAR, you need to move your application to the deployment folder of JBoss. The default folder for it is: <em>jboss_home/server/default/deploy </em>(jboss_home == folder of jboss). There are some things you need to be aware of:<em><br />
</em></p>
<ol>
<li>Use a superior java version in JBoss to avoid class version errors</li>
<li>Verify that the WAR folder has the necessary permissions. In my case I needed to make a &#8220;<em>chown -R jboss myapp.war</em>&#8221; where jboss is the user that controls the jboss application server</li>
<li>Do a &#8220;<em>tail -f jboss_home/server/default/log/server.log</em>&#8221; to see if your application is being deployed. You&#8217;ve an Administration Console in <em>http://yourserverip:8080</em></li>
<li>Don&#8217;t change your routes file at runtime<em>. Stop the war, change routes and then start the war (in the administration console I said before)<br />
</em></li>
</ol>
</li>
<li>Now you should have your application working. You can access to your app at: <em>http://yourserverip:8080/myapp.war</em></li>
<li><strong>This tutorial was tested in JBoss 5.0.1</strong><em><br />
</em></li>
</ul>
<p>Thanks to <a href="http://www.twitter.com/nicolasleroux">Nicolas Leroux</a> from <a href="http://lunatech.com">lunatech.com</a> for helping me to create this tutorial.</p>
]]></content:encoded>
			<wfw:commentRss>http://hugomonteiro.net/2010/04/01/deploying-playframework-apps-in-jboss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

