Friday 25 May 2007

motorbike robbers!

 When I got home Wed my neighbour had had his bike stolen from work (city-west IBM).

 4 lads arrived in car
 Made short work of locks with concrete disk cutter
 All on video, security challenged them but they threatened them with the disk cutter at them
  and drove off. 2 on bike.

 Then no news till later on.
 He called a friend in traffic gardai, dunno did that influence it.
 But a guy on a bike burning up his back tyre in Finglas attracted attention.
 And they caught him with unmarked car.

 Apparently the same lads had stolen car in morning.
 Back tyre has a big flat patch - wouldn't have helped them if they were going to use it in another
 robbery!  Ignition broken, scrapes along side where bike fell over, various small things
 broke & bent, generally abused a bit but okay. :(    Cut in the mudgard from the disk cutter.

 They probably caught the stupidest robber but at least they got one!

Wednesday 23 May 2007

Fun late last night, script to add subversion ign...

Fun late last night, script to add subversion ignores
 (incrementally and using wildcards for dotted extensions).
Script should be run on clean repository after build e.g. by a automated buildbot.
Note the bash propadd function. Would be nice if subversion provided that.

#!/bin/bash

# e.g. propadd svn:ignore . "*.a"
# e.g. (multiline) propadd svn:ignore . "*.a
# *.o"
propadd () {
  PROP=$1
  FILE=$2
  ADDVAL=$3
  OLDVAL=`svn propget $PROP $FILE`
  NEWVAL="$OLDVAL
$ADDVAL"
  echo svn propset $PROP \""$NEWVAL"\" $FILE
  svn propset $PROP "$NEWVAL" $FILE
}

#####
# get plain list of files
svn status -u |grep ^? |sed "s/\?  *//" >svn_ignore_files.log

##### Anything with a dotted extension insert wildcard * in place of rest of file name
# sort | uniq to rm duplicates for wildcards
IGNORES=`cat svn_ignore_files.log |sed "s/\([^\/][^\/]*\)\.\([^\.\/]*\)$/\*\.\2/" |sed s/^/BBB/ |sort |uniq`

### for or echo in shell expand <dir>/*.ext to full list of matches
### so add BBB
### meh

##### for each dir/file call propadd svn:ignore
# watch out $fNAME can have wildcard
for f in $IGNORES ; do
    #echo "f=$f" ;
    fNAME=${f##*\/}
    fNAME=${fNAME##BBB}
    fPATH=${f%%"$fNAME"}
    fPATH=${fPATH##BBB}
    if [[ "$fPATH" == "" ]] ; then fPATH=.; fi
    #echo fNAME=$fNAME fPATH=$fPATH
    #ls $fPATH/$fNAME
    propadd svn:ignore $fPATH "$fNAME"
done

#####
echo "Now commit ignores: 'svn ci -m\"updated svn:ignore values\"'"
echo "Or remove unwanted ignores 'svn revert [-R] <dir>'"
echo "'svn status' will show

Fun late last night, script to add subversion ign...

Fun late last night, script to add subversion ignores
 (incrementally and using wildcards for dotted extensions).
Script should be run on clean repository after build e.g. by a automated buildbot.
Note the bash propadd function. Would be nice if subversion provided that.

#!/bin/bash

# e.g. propadd svn:ignore . "*.a"
# e.g. (multiline) propadd svn:ignore . "*.a
# *.o"
propadd () {
  PROP=$1
  FILE=$2
  ADDVAL=$3
  OLDVAL=`svn propget $PROP $FILE`
  NEWVAL="$OLDVAL
$ADDVAL"
  echo svn propset $PROP \""$NEWVAL"\" $FILE
  svn propset $PROP "$NEWVAL" $FILE
}

#####
# get plain list of files
svn status -u |grep ^? |sed "s/\?  *//" >svn_ignore_files.log

##### Anything with a dotted extension insert wildcard * in place of rest of file name
# sort | uniq to rm duplicates for wildcards
IGNORES=`cat svn_ignore_files.log |sed "s/\([^\/][^\/]*\)\.\([^\.\/]*\)$/\*\.\2/" |sed s/^/BBB/ |sort |uniq`

### for or echo in shell expand <dir>/*.ext to full list of matches
### so add BBB
### meh

##### for each dir/file call propadd svn:ignore
# watch out $fNAME can have wildcard
for f in $IGNORES ; do
    #echo "f=$f" ;
    fNAME=${f##*\/}
    fNAME=${fNAME##BBB}
    fPATH=${f%%"$fNAME"}
    fPATH=${fPATH##BBB}
    if [[ "$fPATH" == "" ]] ; then fPATH=.; fi
    #echo fNAME=$fNAME fPATH=$fPATH
    #ls $fPATH/$fNAME
    propadd svn:ignore $fPATH "$fNAME"
done

#####
echo "Now commit ignores: 'svn ci -m\"updated svn:ignore values\"'"
echo "Or remove unwanted ignores 'svn revert [-R] <dir>'"
echo "'svn status' will show

Tuesday 22 May 2007

brazil nuts, garden stones and avalanches

Isn't it annoying that garden/fields seem to grow stones.
I wonder is it maybe http://en.wikipedia.org/wiki/Brazil_nut_effect


http://prs-sun-107-nyeh-peshr-hme0-39.digisle.net/science/science_news/articles/thin_skin.html
Cool. I want a jar of beetles, sand and pebbles on my desk too!

http://www.americanavalancheassociation.org/tar/TAR25_4_CovStory.pdf
http://216.239.59.104/search?q=cache:-Zjsz3jLfzoJ:www.americanavalancheassociation.org/tar/TAR25_4_CovStory.pdf+why+cereals+settle&hl=en&ct=clnk&cd=20&gl=ie&client=firefox-a

"Avalanches are gravitational granular flows,"

"When the avalanche flows over a terrain feature (steeper slope or surface irregularities), the flow can become turbulent (mixing) causing the victim to be pushed down. As the flow smoothes out, it is the particles segregating (de-mixing) that force the person back to surface."

"When an avalanche slows (but before it stops), the snow fragments interlock, resulting in a
change in state from a fluid-like flow to that of a sliding block (everything moves as a single unit or block)."

So. Esentially. Keep arms near face somehow.

brazil nuts, garden stones and avalanches

Isn't it annoying that garden/fields seem to grow stones.
I wonder is it maybe http://en.wikipedia.org/wiki/Brazil_nut_effect


http://prs-sun-107-nyeh-peshr-hme0-39.digisle.net/science/science_news/articles/thin_skin.html
Cool. I want a jar of beetles, sand and pebbles on my desk too!

http://www.americanavalancheassociation.org/tar/TAR25_4_CovStory.pdf
http://216.239.59.104/search?q=cache:-Zjsz3jLfzoJ:www.americanavalancheassociation.org/tar/TAR25_4_CovStory.pdf+why+cereals+settle&hl=en&ct=clnk&cd=20&gl=ie&client=firefox-a

"Avalanches are gravitational granular flows,"

"When the avalanche flows over a terrain feature (steeper slope or surface irregularities), the flow can become turbulent (mixing) causing the victim to be pushed down. As the flow smoothes out, it is the particles segregating (de-mixing) that force the person back to surface."

"When an avalanche slows (but before it stops), the snow fragments interlock, resulting in a
change in state from a fluid-like flow to that of a sliding block (everything moves as a single unit or block)."

So. Esentially. Keep arms near face somehow.

neglected homepage

http://www.dspsrv.com/~jamesc

Oh. great.
So if I enable scripts I can't write in the journal entry textarea. Brilliant.
Lovely.
Marvellous even.

neglected homepage

http://www.dspsrv.com/~jamesc

Oh. great.
So if I enable scripts I can't write in the journal entry textarea. Brilliant.
Lovely.
Marvellous even.