Archive - Jul 2004

Date
  • All
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

This weeks* open source contribution

I've just tweaked the key handler code I added to http://dynarch.com/mishoo/calendar/ to fix a bug where it would mistakenly trim chars when it should have been adding one. Hopefully the patch will be accepted.

It now checks to see if appending the pressed key would be out of range, and if so just enters the key press, otherwise it appends the entered key.

Here is the complete code changes, it needs to be inserted after:

if (act) {
cal.callHandler();
cal.hide();
}
break;

case 48://0-9 number keys
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 96://0 -9 num pad
case 97:
case 98:
case 99:
case 100:
case 101:
case 102:
case 103:
case 104:
case 105:
//check where mouse is
var el = document.getElementById('hour');
var _tmp1=0;
if ( (ev.keyCode>=48) && (ev.keyCode<=57) ){
_tmp1=ev.keyCode-48;
}else if ( (ev.keyCode>=96) && (ev.keyCode<=105) ){
_tmp1=ev.keyCode-96;
}

//if hours
if (el.className.search(/hilite/) != -1){
var _tmp3=cal.date.getHours().toString() ;
if ( (_tmp3+''+_tmp1) <= 23 ){
cal.date.setHours(_tmp3+''+_tmp1);
}else{
cal.date.setHours(_tmp1);
}
cal.onSetTime();
cal.callHandler();
}

el = document.getElementById('minute');
//if minutes
if (el.className.search(/hilite/) != -1){
var _tmp3=cal.date.getMinutes().toString() ;
if ( (_tmp3+''+_tmp1) <= 59){
cal.date.setMinutes(_tmp3+''+_tmp1);
}else{
cal.date.setMinutes(_tmp1);
}
cal.onSetTime();
cal.callHandler();

}
break;

You'd think I was the only one with email at work...

... came in, started up KMail, discovered the app server has been bleating about a nearly full disk since 5am.

And I'm the last of the team in, today as most days.

Ho hum.

2.5% pay rise, which is good :-)

Dublin

Well,

Jen & I Got here but couldn't locate Jenny Tibbles so we stayed in a different hostel, called AValon House, that is booked for tonight as well. We're hopefully going tto locate Jenny Tibbles at TGI Friday this evening as that is the only definate timing or Plan we know of.

It is really sunny & we're about to go on the city tour bus.

Work cash flow problem solved

The MD just walked round with a piece of paper with a very large number written on it :-)

Jarrelook at Prestion Guildhall II

I can't wait, so this will be replaced with a full review, pics and video in a few days, but in the meantime, for those of you not going (Tim!), check out what you'll miss (thanks to JarreUK).

Update 6 July: Sorry, still no time to do a proper review, there are raw video and pictures in the gallery though.

Feel free to make copies or reuse them, but if you do so give us a credit.

topical-homopterousif you are reading this, don't click it as it will mark you as a spammer
if you are reading this, don't click it as it will mark you as a spammer