É sobre colocar a tecnologia ao serviço das pessoas, dos portugueses, da democracia que vos venho falar hoje. Antes de mais há 40 anos deram-nos a democracia e a liberdade. Podemos estar descontentes com o rumo que a democracia tomou, mas todos devemos estar eternamente gratos a quem lutou e morreu para que hoje tivéssemos essa liberdade. Muito obrigado. Ofereceram-nos uma ferramenta – a democracia – mas não nos disseram como usá-la. Não é perfeita, há maneiras de a aperfeiçoar.
At a job interview I was asked to explain if I was an optimistic or a pessimistic person. The title of this post was my answer, let me explain you why.
Turns out people aren’t like magnets; they’re more like puzzle pieces of the same color.
Can a person be too nice? Yes, and you should stop being that person… unless you want to be a saint, but in that case you can’t have a girl.
You know what you’re also being? Fake. And if you’re trying that hard that’s because she doesn’t notice you. Probably you’re attracted to that girl for the wrong reasons. Probably she’s one of those barbie girls that enters the room and makes all boys drool, and you’re just one of those boys. Look at her, enjoy the sight, carry on.
“Leagues” do exist, so play on yours. Don’t search for the perfect girl, look for a girl that fits you, that complements you.
Can a person be too nice? Yes, and you should stop being that person… unless you want to be a saint, but in that case you can’t have a girl. Problem solved.
Let’s assume you have an existing app using Play! 2.1.A and a 2.1.B version was released. You want to update your environment to use that new release. Note: This tutorial was tested to be working with 2.1.* versions; A and B are two arbitrary numbers.
play runwill start the local (Netty) server and your app will be available at localhost:9000.
play ~runwill start the local server and reload it automatically every time you change a file of you app, that way you don’t need to hit refresh (F5) on your browser.
- Useful tip: If you don’t want to have to worry about applying evolutions each time you restart Play, add
applyEvolutions.your_database_name=trueto your application.conf file. For instance, considering the default database, you should add
Debugging using Eclipse
- First you must start the Play! app in debug mode by executing the command
play debug run.
- On Eclipse add your breakpoints as you would normally do.
- Then go to
Run > Debug Configurations...and double-click
Remote Java Application. This will add a new configuration.
Connection propertiesand change
Debugso that it later appears below the Debug icon. Click
That’s it! Check this video for a live explanation.