Friday, February 22, 2008

B. Fleischmann - Gain Lyrics

I have looked everywhere for the lyrics of the song "Gain" by B. Fleischmann which is found here on you tube by the way. They dont seem to exist on teh intarwebs.

Anyway, i have transcribed them as best as i can, if anyone thinks i got something wrong, please leave a comment.


B. Fleischmann - Gain Lyrics

lets face another day
lets see another fence
lets have another crash
lets get another chance

where all reason ends, i put my heart
where foresight ends, i want to start
as long as i haven't tried to gain
i will not stop, will not complain

lets give it one more try
don't want to make you cry
how else can we survive
unless we dry our eyes try our lives

where all reason ends, i put my heart
where foresight ends, i want to start
as long as i haven't tried to gain
i will not stop, will not complain

Thursday, February 21, 2008

JSP syntax: empty checks, params, misc

This stuff is so elementary that i am always annoyed to forget it every time i dont use jsp for a few months.

1. Get params from the url request, ie http://dogself.com?param1=test&something=poop
<c:out value="param1 is: ${param.param1} something is:${param.something}"/>

also there is ${params} for getting lists, but i would need to read up on that

2. checking if a request attribute is null or empty:
<c:if test="${param.page != null && not empty param.page}">
<c:import url="${base_html_dir}${param.page}"></c:import>
</c:if>


3. setting variables:
<c:set var="thingToSet" value="${1+ 3}">
this by default has the scope of 'page', also can be 'session' defined by attribute 'scope'

ill add more as i go

Wednesday, February 13, 2008

Document base /path/to/ROOT does not exist or is not a readable directory

I recently installed tomcat 5.5 on my slicehost, and it was somewhat painful, probably because i deviated from the basic setup so much.
Anyway, one last error (in /var/log/tomcat5.5/catalina.out) that i was getting was this:

SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /home/mk/public_html/ROOT does not exist or is not a readable directory

I was setting up my app context path using CATALINA_HOME/conf/Catalina/localhost/ROOT.xml and so it was strange that tomcat was looking for a directory called ROOT.

Solution:

I was overlooking this warning before the error:
WARNING: A docBase /home/mk/public_html/dogself.com inside the host appBase has been specified, and will be ignored

the problem was that i set my appBase inside of /etc/tomcat5.5/conf/server.xml to be /home/mk/public_html/ and this was a parent directory of app's docBase.

Changing the appBase to /home/mk/public_html/webapps solved this problem.

Wednesday, February 06, 2008

Music for february

this place has lots of rock from back when i used to listen to rock:
http://saintsmythe.illemonati.com/tsx/

Recently i've been interested in a progressive metal band called "Sonata Arctica", this place as a decent selection of them:

http://www.rockandroll-server.com.ar/GOD/mp3/Sonata/


a ton of DnB:
http://www.riotnerd.com/nmp3s/

thats all until i find more betterer stuff