Tuesday, June 26, 2007

ant SCP task hangs

problem:
i am running ant 1.6.5 and using the scp task. When the task starts, it stops responding, breaking the rest of my ant build in the process. Sometimes the task transfers one file (out of a few 100) and hangs.

solution:
From doing a bit of research i found out that some versions of the library required by this task - jsch - cause ant build to hang. The trick is finding a version of this lib which works with your version of ant.

I know that jsch version 0.1.29 works with ant 1.6.5.

get jsch-0.1.29.jar here

Tuesday, June 19, 2007

css problems

Ive gotta write this stuff down before i forget it all:

problem:
z-index does not work. div with a higher z-index is getting overlapped by a div with lower z-index

solution:
one of the divs need to have this set -> position:absolute;



problem:
i need IE and Firefox styles on the same style sheet using a hack

solution:
#someId {
/* IE can only see this rule, IE uses this rule */
position: relative;
top: -15px;
}
html>body #someId {
/* Firefox can see this rule, rule overrides previous rule */
position: relative;
top: 25px;
}



problem:
i want to change the position of a div, lift it up by 100 pixels

solution:
there are 2 ways to do this,
margin-top:-100px;
or
position:relative;
top:-100px;

these have slightly different results, and i should try both.