Monday, July 30, 2007

Cold evening in São Paulo

0 comments


São Paulo: Moóca and Vila Prudente view from Ipiranga.

Sunday, July 29, 2007

Where was I?

2 comments
Have you ever had the feeling that you didn't live the past few months of your life? After around 7 months without even opening my photo album application (more on that later), this week I opened and started organizing the (very) few photos I took during this whole period. Looking back, it's hard to recall many outstanding events where I should have shot some pictures (except for two travels abroad). And, much worse than that, I feel that I haven't lived. It's completely blank in my memory. I lived totally attached to memories and some psychological chains from the past and expectations of a future that may not become true.

What is exactly live mean? Each person consciously or not ascribe a very unique meaning to it. Most of people never spend a second thinking about such a subject, but some of us fortunately have done it. And what I mean here is not breathing, feeding yourself or having a shelter, it's to surviving, but what do you understand by actually living your life. It's the answer that some people are proud to spread when inquired about their lives - and unfortunately usually at the end of them: "I have really lived my life". Unfortunately, to the majority of the population, this is something people regret because, at least partially, they never gave a single thought about that until the moment they have to face it. The bright side is that, at least some of them are privileged enough to have this opportunity while still alive.

To me, the meaning of living is difficult to answer in a few words and only conceptually. At least now, when I start delving into my feelings about it. I realize that taking photos is a good sign of when you are actually living and they lead me to the following thought: actual living is directly related to moments worth of a shot. Yes, that would be a good start of this personal definition of live. Some people define life generally as a handful of moments that are worth remembering. Photos, shot of the moments you are living through, are usually registering moments worth remembering some day in the future - and when your memory will probably fail. As I heard these days, photos are the "memory crutches", assisting us to remember what we've lived. I would go a little further and would say that they are a good tool to live again what you've been through from a different perspective. In summary, there is a tight relation between photos and memories.

Besides having memories worth recalling, and photos turn themselves into somewhat accountable memories, there is something quite important to me when we discussing such a concept: balance. In the past, I used to think that success, mainly professionally and financially would be something very important to me and should require my total focus and energy. After all, when we want something very badly, should we not inject all our energy into that? And be totally focused on it? Yes, I totally agreed with that and I wanted these goals badly.

After you start succeeding on one targeted area or, not even succeeding, but only catching a glimpse of what that would be, your life starts providing data with which you may start a review process. This process is composed of putting together your concepts, your initial goals and how they steered your life - and remember, you did that (and allowed that to happen). A very interesting English phrase related to that is "be careful what you wish for, you may get it". In my opinion, it's a very rich phrase that can lead us to different aspects of this subject, but let's focus now only on one of them.

Getting what you wish for is a very interesting psychological challenge because you experience how achieving a particular goal really is. And, more interesting, you can experience it in comparison to what you expected, what's been an illusion in some degree. Why an illusion? The reason is that you created an illusion on how would feel when that goal is achieved. At minimum. I could write a lot on how far our mind could far (and mine is a good at doing that). How is an achieved goal will be like is something we will never be able to know for sure, even if you are really conservative and your expectations are very close to your actual feelings when you get what you wished. The first and most common feeling after getting what you wished for is that it does not fulfill your expectations. You may start thinking that the achievement was below your expectations? Not necessarily. But it's very likely it will be different from what you expected. That is the point: it's different. Handling these scenarios properly, at least in terms of feeling good about yourself is not an easy task. Most of times achieving a targeted goal brings frustration, despair and we have to find a next goal to live on illusion of the following idealized goal. It can be an endless vicious circle.

I realized that succeeding on different life areas is important to me. I understood that, even being really good at some areas still constantly I caught myself asking myself "what the heck I am doing with my life". I was not enjoying it the way other people were enjoying. And that made me doubtful about my personal choices. Above that, were those initial choices right to me? Are these choices, is my day-to-day life bringing happiness to me? Is the process being enjoyable rather than only the final idealized goal (which is not always reachable)?

A very strong personal work on this front are has been done and will be done. I am struggling to achieve my ideal balance, enjoying the process towards it, and I am sure it's an ongoing process that must be kept alive to avoid making the same mistakes. Seeing my photo album application woke me up from a life where I was blind (at least for the past 7 months) and that was very good. Writing about this makes me feel good and starts to make a later (but still in time) life balance adjustment. Now this lesson must be crystallized in my mind with two questions about any given period of time: Where was I? Were there moments worth a shot? I must be able to answer verbosely the former and the latter must have an answer similar or better than "Yes, there were many of them" to bring me full satisfaction. Last, but not least, "many of them" must be enough, but not too many. It must follow each one's life balance directives, avoiding jeopardizing other areas that are also important. Otherwise, we get "out of the frying pan into the fire" and the unbalance comes back to our lives.

Labels (tags)

0 comments
Inspired by many other sites and blogs (like Tiago Luchini's or flickr), I will start tagging my blog posts to make it easier to search throughout the blog from now on.

Saturday, July 21, 2007

Lake Louise and Visa to Canada

0 comments
Yesterday I was dreaming about spending a future vacation in Chateau Lake Louise, in Canada. It's a wonderful (and expensive) place to visit, but definitely it will be worth it.

Then I thought about any visa requirements for Italians to visit Canada. I found the Canadian Embassy in Italy and the good news is that, like the US Waiver Program, we don't need any visa to visit this country provided that we have a return ticket, a valid passport and enough money for the expenses incurred during the travel period. Really great!

JasperReports Scriptlet Example

23 comments
Back in October 2005, I posted some directions on how to create a Scriptlet. Since that project, I had some experience with Eclipse BIRT, but never used JasperReports again. But that post was very popular and _lots_ of people wrote comments or send me an email asking for examples. I never had the time or energy to search my old projects and find the example that motivated that post until today (finally!). This code is in production since November 2005, although it's been a long time since I was called by the company for any maintenance.

So, below you can find an example class and some report excerpts. Refer to the previous post for more details on how they were built. I will also send both files to everyone who wrote a comment or sent me an email (if I find all emails here). In case you want to receive these files, please drop me a note that I will send whenever I have some spare time.

PriorityScriptlet.java

package br.com.specchia.cerville.sac.returns;

import net.sf.jasperreports.engine.JRDefaultScriptlet;
import net.sf.jasperreports.engine.JRScriptletException;

public class PriorityScriptlet extends JRDefaultScriptlet {
public String priorityDescription()
throws JRScriptletException {
Integer priority =
(Integer) this.getFieldValue("priority");

if (priority.intValue() == 1)
return "Importante";
if (priority.intValue() == 2)
return "Normal";
if (priority.intValue() == 3)
return "Baixa";

return "Nenhuma";
}
}


priority_list.jrxml - excerpt 1
(scriptletClass line was manually inserted)

<jasperReport
name="priority_list"
columnCount="1"
printOrder="Vertical"
orientation="Portrait"
pageWidth="595"
pageHeight="842"
columnWidth="535"
columnSpacing="0"
leftMargin="30"
rightMargin="30"
topMargin="20"
bottomMargin="20"
whenNoDataType="NoPages"
scriptletClass="br.com.(...).PriorityScriptlet"
isTitleNewPage="false"
isSummaryNewPage="false">


priority_list.jrxml - excerpt 2
(where the method is called - I used iReport to edit this)

<textFieldExpression class="java.lang.String">
<![CDATA[" " +
$V{PriorityNumber} + ". " +
$P{REPORT_SCRIPTLET}.priorityDescription()]]>
</textFieldExpression>

Wednesday, July 18, 2007

Fim da CPMF

0 comments
Um amigo me indicou um abaixo-assinado da FIESP com relação ao fim da CPMF. Se você compartilha da opinião de que esse imposto não deve ser prorrogado, contribua com esse abaixo-assinado.

Switching back to Microsoft Office?

0 comments
That's not a very common news: a company switching back to MS Office from OpenOffice. And it probably will happen happen more much often in the future for other open source software (like Linux) than we may expect. Many aspects of a migration are not considered or are totally unknown, and not always it ends up paying off. And I am writing this text from a Linux box :-)

Wednesday, July 11, 2007

UTF-8/Accented characters and 406 Not Acceptable?

0 comments
If you have an URL with accented or UTF-8 characters and start getting a 406 not acceptable error, check if you have mod_security enabled in your apache configuration. I have mod_security enabled, and had also a particular setting "SecFilterCheckUnicodeEncoding On".

Although my Apache configuration has a "AddDefaultCharset UTF-8", mod_security blocked all URLs that have words in Portuguese with accents with a "406 Not Acceptable" error. Disabling this unicode encoding check fixed the problem.

Saturday, July 07, 2007

Opera; L'Italiana In Argeli

0 comments
If you are in São Paulo and like (or would like to get to know) opera, a very good option is to go to Theatro Municipal and watch "A Italiana em Argel" (original title "L'Italiana In Argeli) by Gioachino Rossini. It's surprisingly good and unexpensive. See more details on Wikipedia.

Movie: A Soap

0 comments
Movie Suggestion: a Soap (in Portuguese, Além do Desejo).

Quote from Scrubs

0 comments
"Nothing in this world that's worth having comes easy."