Idea and Brainstorming notebook

Friends, Romans and Countrymen.  A lot of my friends ask me how do I generate fucking great out of this world ideas that is manifest-able maybe 1-5 years from conception.  The answer is simple.  I am just too bright and brilliant.  Nah, seriously, I use the Yeah! notebook bought from National Bookstore.  Helps me be creative.  I find it great for journal entry, to-do list, and idea and brainstorming notes.  Don’t forget also to glue your post it notes in there in any angle & color you like. =)  BTW, I use the pilot 0.3 gel pen for finer grain writing.

Advertisements

Specifying Tomcat ports in IntelliJ IDEA to use multiple tomcat servers

Source from: http://www.altuure.com/2008/11/12/tomcat-port-configuration/

Edit the server.xml:

<Server port="${tomcat.init.port}1" shutdown="SHUTDOWN">

<Service name="Catalina">
<Connector port="${tomcat.init.port}2" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="${tomcat.init.port}3"/>
<Connector port="${tomcat.init.port}3" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"/>
<Connector port="${tomcat.init.port}4" protocol="AJP/1.3" redirectPort="${tomcat.init.port}3"/>

</Service>
</Server>

Run it like this:

CATALINA_OPTS=-Dtomcat.init.port=908
 ./startup.sh

so you will have

SHUTDOWN:9081
 HTTP:9082
 HTTPS:9083
 AJP:9084

Am I *TOOL* dependent?

One of my colleagues struck me by saying “you are tool dependent”.   From the very moment he said that to me, I agree deep within – although I never answer or loudly answer YES.  I know what he means by that and now I’m asking myself that very question.  In order to answer that question, lets define first what being tool dependent is?

  • Explores a lot of tools, recursively
  • Is lazy
  • Yet is ideal
  • The goal is to produce or optimize things with very little effort
  • Does not focus on the subject matter but instead focuses on the tools to accomplish the problem or the subject matter
  • Kills time for tool exploration
  • Plays alot with the tools
  • Spends time doing boilerplate codes
  • A tool slave – relies on the tools very much
  • Always buying time or always lacks time
  • Never get things done
  • Couldn’t get things done without the tools
  • Having a hard time controlling oneself
  • Does not have self-discipline
  • Have an attention deficit disorder
  • Easily persuaded by tools
  • Jack of all trades, master of none
  • Critical thinker
  • Creative thinker to the point of once a problem occurs, the solution instantaeneously pops out of the brain and then performs research about what tool accomplishes the problem instead of analyzing the problem first and then acting after.
  • An action man without thinking first
  • You overly submit oneself to that way
  • Has a lot of options because of the result of finding a lot of possible tools and solutions to solving a particular problem.
  • Always planning to escape being tool dependent but cannot
  • Tends to over-analyze things

From this definition alone, I would say I am.  Well, I just made up this definition from what I understand to be a tool dependent.

Upon reflecting, here I think are ways to escape from being a tool dependent person.

  • A determination to change
  • An everyday re-assessment of goals if it gets done
  • Focus and focus on solving the subject matter by not relying from the tools
  • Organize
  • Follow up
  • Focus on personal development – by not using those tools
  • Have a general sense of whats happening – have a birds eye view
  • Think first before acting
  • Always rely to oneself.  Don’t be dependent to things – and don’t escape the situation
  • Develop a sense of independence
  • Believe in your own competency
  • Gain personal mastery and self-control

Systematic way of tackling tool dependence.

  • Being dependent on things means holding on desperately to things to give life a meaning or direction.  In this case, to give you a desired solution to the problem you are tackling.
  1. Be willing to let go of the tools.  Begin by resenting those tools that can keep you back from all that you are capable of.
  2. Have the ability to self-initiate and lead oneself.
  3. Limit the tool selection to just 3, so that at least you have the options.
  4. Don’t over-analyze things for your pleasure.
  5. Practice, practice, practice.  From what I’ve heard, all it takes to acquire a habit is to perform it for two weeks consistently.  For example, if you are lazy to brush your teeth everyday – and you want to do something about it; train your mind and *do* it for two weeks and it becomes a habit.

serialVersionUIDs for IntelliJ IDEA 9

While I was wondering why IDEA did not seem to have a generator for UIDs, I browsed the plugins and found serialver.  I find it stupid enough to use and then I research more from the Code inspections.

Steps for enabling IDEA to generate serialVersionUIDs:

  1. Click the Code Inspection icon from the lower right portion of IDEA.  The one displayed like detective.
  2. Click the Configure inspections link to see the Inspections dialog box.
  3. Find the Inspections -> Serialization issues -> Serializable class without ‘serialVersionUID’.
  4. Check it to enable it.
  5. Click OK to close the Inspections dialog box.

When editing a Serializable class without a serialVersionUID, it will display a warning and a Quickfix balloon to generate it.

Optimal IntelliJ IDEA vmoptions settings

Set the <idea installation dir>\bin\idea.exe.vmoptions to:

-Xms256m
-Xmx1024m
-XX:MaxPermSize=512m
-ea
-server

Just in case you cant get it to work because an error is displaying everytime you start IDEA.  “JVM not started…”

Use the idea.bat to start it.

edit the batch file in this line:

IF “%IDEA_JDK%” == “” SET IDEA_JDK=%JAVA_HOME%

This points to the correct JAVA_HOME installation dir.

 

If you have D: drive, edit also caching in the idea.properties

idea.system.path=D:/Temp/idea8/system

 

Hope this helps

IntelliJ Idea 8 settings

My intellij idea 8 settings found in C:\Program Files\JetBrains\IntelliJ IDEA 8.1.3\bin\:

idea.exe.vmoptions:

-Xms128m
-Xmx724m
-XX:MaxPermSize=256m
-ea

idea.properties:

# path to IDEA config folder. Make sure you’re using forward slashes
idea.config.path=${user.home}/.IntelliJIdea80/config

# path to IDEA system folder. Make sure you’re using forward slashes
idea.system.path=${user.home}/.IntelliJIdea80/system

# path to user installed plugins folder. Make sure you’re using forward slashes
idea.plugins.path=${user.home}/.IntelliJIdea80/config/plugins

My certificate: C:\Documents and Settings\<home dir>\.IntelliJIdea80\config\idea80.key