January 2007 - Posts

Today, I opened my e-mail and received tons of messages from pinoyjug. Apparently, some guy is saying that his former company is suing him for working for another competitor. I kind of feel some sympathy towards him since I also before I left my first company and my team lead resigned from that company, we were also given a contract(a second one actually other than the one we signed before joining the company) that says that we can't work for another competitor for 2 years using the languages earned or used in that company such as C/C++, Java, VB, etc. Some people at pinoyjug state that such clauses are illegal. Anyway, here is a copy of the e-mail posted there but for security reasons, and for fun also; I tried changing some  things such as the name of the company.:)


 I am currently an IT Professional and I will be attending a
summary hearing at the Pasig Regional Trial Court that will be
presided by Judge ( new Judge().getName() ) for DBOSFT's application for a
Temporary Restraining Order upon me to stop from working with
CAI-STA(my present employer) while a civil case that they filed is
ongoing. Usually, thise case might take several months, 6 months usually.

 I am married with a 3 year old child and my husband is an ordinary
employee as well. I am also supporting my parents who are both
retired so that any decision on Jan 23 would really affect not only me
but my family to live.

 The civil case ( new Company().getName() ) filed against me was regarding a "breach of
contract" when I transferred to CAI-STA last Oct. 2005. I worked in
( new Company().getName() ) for 6 years, 1999-2005, and though I signed for a contract not
to be enggaged in their direct competitors within 2 years after my end
of employment with them, I am fully aware that CAI-STA is not one of
their direct competitors.

 But as it is, ( new Company().getName() ) Phils. Inc., is claiming that all IT
Companies that are engaged in software development are thier competitors.

 Of all the resigned employees, even before me, I am the only one
having this case at the moment. I might be being used to threaten
other employees of theirs not to resign. I am very clean with
clearance when I left ( new Company().getName() ) and so I know that my defense are strong.
What really worries me is their request for a TRO for me to stop
working while this case is open. I am just an employee trying to earn
a living practicing my profession. I can't believe that such a
company would want this to happen to me after the 6 years I've been
loyal to them.

 And worse, if TRO will be granted, not even proven guilty, ( new Company().getName() )
had already won destroying not only my career but my life as well. In
connection, this would mean all IT Companies would follow the same
style as ( new Company().getName() )'s and all IT Professionals could suffer the same.

 I am asking for your prayers that ( new Judge().getName() ) would be
enlightened by the Holy Spirit and that TRO would not be granted. I
do have a lawyer but it would really depends on the judge's decision.

 I am also asking for your help to forward this email to as many
friends as you have even outside Philippines so that all employees
would be aware that such case is possible. If you could paste this
letter on blogs or forums I would really appreciate it. Who knows,
this email might reach Judge Quiroz before the hearing on Tuesday.

 As per my lawyer, it would be much better to let this out in media
so that the world would be fully aware of such case.

 I promise to keep you updated and thank you in advance for your
prayers and help.

 If you want to contact me, you could email back or you can call me
at (new Contact().getNumber() ) or ( new Contact().getNumber() ).
Posted by lamia | 11 comment(s)
Filed under:
Ok, perhaps some of you remember my post about IllegalStateException and what caused it on my first post. You can find it here. Right now, I encountered another one and this time, the servlet caused the exception and not the JSP. Got the solution right here. First, take a look at my code.



1
2
3
4
5
6
7
8
9
10
    if ( searchesList.size() != 0 && webSearchList.size() != 0 && searchEngineList.size() != 0 )
    {
      request.getRequestDispatcher(FORWARD_VIEW_MONTHLY).forward(request, response);
    }
    else
    {
      request.getRequestDispatcher(FORWARD_NORECORDS).forward(request, response);
    }
    
    return;


For some reason, it just throws that IllegalStateException. The main point here through is that the servlet doesn't exit the doPost() or doGet() method right away. The code can be further improved by doing this.



1
2
3
4
5
6
7
8
9
10
    if ( searchesList.size() != 0 && webSearchList.size() != 0 && searchEngineList.size() != 0 )
    {
      request.getRequestDispatcher(FORWARD_VIEW_MONTHLY).forward(request, response);
      return;
    }
    else
    {
      request.getRequestDispatcher(FORWARD_NORECORDS).forward(request, response);
      return;
    }


I haven't tested this yet on our development server. But I'm sure that it will work and get rid of that IllegalStateException thing. Big Smile

UPDATE: 01/23/2007

How silly of me to post this solution without testing it first! It was very stupid of me to say that the return stuff solved the problem. I just wrestled for another whole day searching for the solution because the problem still persisted even after this post. Luckily, I was able to find a solution.

Just replace the lines that use the RequestDispatcher's forward method to include like this

request.getRequestDispatcher(FORWARD_NORECORDS).forward(request, response);

to

request.getRequestDispatcher(FORWARD_NORECORDS).include(request, response);

Whew! Sorted!


Posted by lamia | 3 comment(s)
Filed under: , ,
Ok, so I'm not really a *nix guy. I just happen to know a few handful commands in Linux. I kind of wonder why some people get angry when you ask them something about what they know about Linux. I remember talking to a friend of mine and I asked him how I should organize my files in Linux. He answered,

f*ck, just arrange it anyway you like

I don't know if that's suppose to be a joke or something... The question was came from a Linux newbie and I think that wasn't the correct response. It's not nice to be stingee about that things  you know... So I'm sharing something I learned from my work today while using putty. :)


Ok, how do you list the last 100 lines in a textfile in Linux?

using the command

tail -n 100 mytext.txt

lists the last 100 lines from mytext.txt. Before, I used to do

cat mytext.txt to list the content of a log file, and it gets really annoying especially if you're browsing through a file with a huge file size.


This makes life very convenient indeed...
Posted by lamia | 2 comment(s)
Filed under:
I was wondering for quite sometime now how I will introduce my father to free and opensource software. Linux was fine, he might complain at first but he would probably get used to linux apps such as openoffice. The problem was, I didn't know anything that would help him in his video editing business. I don't think GIMP would be a suitable tool for me, it wasn't for me neither... I liked photoshop much better. Still, I'm sure he could live with that because he never used photoshop. What he needed was a video editing software aka adobe premiere or windows moviemaker. Thanks to google and wikipedia, I found a list of free and opensource software and a free and opensource video editing tool!

http://en.wikipedia.org/wiki/List_of_open_source_software_packages#Video_editing


Introducing Jahshaka

Well, I haven't used it yet. I'm still browsing through their website as I am writing this blog post. But imagine that, even a video editing software has a free and opensource counterpart now! :Big Smile  Here are some features quoted from their website

  • Edit with flexibility and speed
  • Create Effects in real time
  • Animate with unlimited features
  • Paint and design on moving video
  • Create music with all the tools the pros use
  • Work in any format at any resolution

I'm so excited to try this. Release 2.0 is just a 15 MB download.

Visit their website at http://www.jahshaka.org/
Posted by lamia | with no comments
Filed under:
    What a very bad start for my new year... I feel like I totally lost focus of everything. On the previous year I was preparing for my SCJP exam and I felt like I was really doing good. December 2006 was supposedly a dedicated time for me to review for the certification. But I wasn't able to finish my review and now I feel like I've gotten even more rusty.

    There are quite a lot of things which is affecting my concentration right now... First, I'm getting frustrated because I can't work on my C++ game, this is due to the pressure my work is giving me right now. Second, I'm having quite a lot of problems taking care of the requirements for my housing loan. Makes me wonder if I decided too early to make a reservation... Third, it's January! My target date for completing my game is on March, 2006. It's not gonna give me any profit but this would be a very great achievement for me. Hmmmm... What happened with the Christmas wishlist here at devpinoy BTW? Did anyone get a gift from last Christmas?

    On the other hand, I'm getting excited because finally I will be able to work with XML(the real XML stuff) with my next project. Most XML stuff I got my hands dirty on were just configuration stuff. But this time, I get to write them and parse them using SAX API. But still... I'm losing focus... And I feel like I'm not gonna be all that productive for the next few days... Sad
Posted by lamia | 3 comment(s)
Filed under: