Tuesday, 5 June 2012

Daily_UpdateBacklog.au3

Task reminders in morning or evening don't really work. Especially when quite busy last thing and opening explorer, locking a file, opening excel takes a few minutes. So. Automate the open folder, get svn lock and open file part and pop all up as a reminder. Hudson daily task and AutoIt script.

Prompt user, svn update, get lock, open .xls file, commit and release lock (or timeout and release lock) handle lock fail or user not present run from Hudson or other regular cron tool.



;http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-automation.html
;http://www.autoitscript.com/autoit3/docs/libfunctions/_IECreate.htm
;http://stackoverflow.com/questions/9667957/automation-of-right-clicking-of-file-in-windows-explorer


#include <GUIListView.au3>
#include  <Excel.au3>

$Title = "UPDATE BACKLOG"
$Path = "C:\SVN\DocsPlanning\XXX\"
$File = "C:\SVN\DocsPlanning\XXX\Sprint36.xls"

$TortoisePath = "c:\Program Files\TortoiseSVN\bin\TortoiseProc.exe"
;http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-automation.html
; TODO: change all to /closeonend:1 when all are working
;/closeonend:1 auto close if no errors

Local $iSvnPid = Run($TortoisePath & " /closeonend:1 /command:update /path:" & $Path)
ProcessWaitClose($iSvnPid)
$x = MsgBox(0,$Title & ": svn update done","svnpid:"&$iSvnPid&"\nsvn update done",5)

;http://www.autoitscript.com/autoit3/docs/libfunctions/_IECreate.htm
;#include
;Local $oIE = _IECreate("www.autoitscript.com")

$x = MsgBox(33,$Title & ": Try and Lock Backlog?",$File&"\nTry and Lock Backlog?",1800)
;$x = MsgBox(0,$Title & ": Debug","Debug answer = " & $x,900)
; $x = 1 okay $x = 2 cancel

If $x = 1 Then
  ;Hmpfh. the lock command doesn't take logmsg
  Local $iSvnPid = Run($TortoisePath & " /closeonend:0 /command:lock /logmsg:""update jco integration tasks"" /path:" & $File)
  ProcessWaitClose($iSvnPid)
  $x1 = MsgBox(33,$Title & ": Locked?",$File&"\nDid you lock it?")

  ;http://stackoverflow.com/questions/9667957/automation-of-right-clicking-of-file-in-windows-explorer
  ;Local $hList = ControlGetHandle("[CLASS:CabinetWClass]", "", "[CLASS:SysListView32; INSTANCE:1]")
  ;Local $aClient = WinGetPos($hList)
  ;Local $aPos = _GUICtrlListView_GetItemPosition($hList, _GUICtrlListView_GetSelectedIndices($hList))
  ;MouseClick("Right", $aClient[0] + $aPos[0] + 4, $aClient[1] + $aPos[1] + 4)
  
  ;MouseClick("Right", "Optical_SW_Sprint_36.xls")

  If $x1 = 1 Then

    ;pull up explorer window for commit or if there is trouble
    Local $iPid = Run("C:\WINDOWS\EXPLORER.EXE /n,/e," & $Path)
    ProcessWait($iPid)
    MsgBox(0,$Title & ": EXPLORER","pid:"&$iPid,5)
    Sleep(3000)
  
    $excel_file = _ExcelBookOpen($File)

    $x2 = MsgBox(33,$Title & ": Commit and unlock Backlog","Now edit backlog.\nWhen finished commit and unlock Backlog.\nFinished?\n")

    If $x2 = 1 Then
      ; commit and release lock
      Local $iSvnPid = Run($TortoisePath & " /closeonend:0 /command:commit /logmsg:""update jco integration tasks"" /path:" & $File)
      ProcessWait($iSvnPid)
    EndIf
   
  EndIf

  ; unlock in case the commit didn't unlock
  Sleep(30000)
  Local $iSvnPid = Run($TortoisePath & " /closeonend:1 /command:unlock /path:" & $File)
  ProcessWait($iSvnPid)

  ; close explorer
  ProcessClose($iPid)

EndIf

Exit

Tuesday, 13 March 2012

Glencullen Musical and Dramatic Society News March 2012 - The Field


Glencullen Musical and Dramatic Society News March 2012 - The Field

The first week of March was a tremendously busy and exciting week for GMDS. The production of John B. Keane's play The Field had been in rehearsal since Christmas. Members of the Society and the cast met in the Theatre and helped put the set together on Sunday and Monday (4th and 5th March). A quick break had to be made on Sunday to allow paint to dry (and watch Ireland just hold off France in the second half of the rugby!!) Final rehearsals happened Sunday and Monday night, most of the play was set but some scenes had to have some changes at this late stage. Tuesday night saw the show open to a full house and from the start the audience responded to the lively characters on stage.

The Field is perhaps John B. Keane’s best known play. It was first performed in
1965 and is based on a true story.
 In The Field, Keane draws a portrait of rural life in Ireland in the mid-20th
 century that is both loving and damning, sorrowful and censorious. In the
 hearts of villagers involved in the cover-up of an act of violence there is brutality
 and cowardice sitting alongside humour and wit, there is a powerful loyalty to clan and class, and
 a fierce love of the land.
 This staging marks the 10th anniversary of the death of John B Keane and marks the 40th Anniversary of GMDS.

Cast of The Field:
Leamy Flanagan - Nathaniel O’Leary
Bird O’Donnell - Brendan Phelan
Mick Flanagan - Tom Ronayne
Mrs Butler - Emma Smith
Maimie Flanagan - Katie Doyle
Bull McCabe - Liam Corrigan
Tadhg McCabe - Peter O’Brien
Sergeant Leahy - Rex Robinson
William Dee - Jim Blake
Dandy McCabe - George Ward
Mrs McCabe - Laura Seery
Fr Murphy - Garrett Grimes
The Bishop - Colm MacGhiolla Phadraig
Flanagan Children - Sinead Ryan, Sally-Anne Murphy, Caolan Ryan, Eimer Nic Giolla Phadraig, Orla Doyle, Yseult Gallagher

Director - Bernard Doyle
Stage Mgr / Asst Dir - Aoife Ryan

We
 produce a play and a musical every year and have made our home in the
 Mill Theatre, which is a great asset to the community. If you are interested
 in becoming involved either on stage or back stage, we would love to hear from you. Please contact us at info@gmds.ie and join us on facebook. Notice to members, please keep an eye out for notice of AGM on May 24th and next activities. We may attend the Choral festival in New Ross in May and we will be back in the Mill Theatre on Dec 4th-8th.

Thanks to everyone who helped with the production of this play. To our patrons Pat Kinsley, Eileen O'Sullivan, Sean Murphy, Alex White TD, Cllr Jim O'Dea, Lillo McGuinness, Deirdre and David O'Sullivan for providing much needed support. Thanks to St. Tiernan's  Community School for rehearsal space and to Tony who looks after us there. Thanks also to the 137th Balally Scout Group for time in the Scout Den. Thanks to the staff in the Mill Theatre. Thanks  to the Blue Light pub, Bective Rugby Club, Specsavers (Dundrum) and everyone else who helped with props. Thanks to our own Tom (Auctioneer and Publican Mick Flanagan) and Colm (The Bishop) for the hard work building the set. And finally Thanks to committee and members who helped in many ways behind the scenes.



Photographs

GMDS2012_TheField_Cast.jpg

Left to Right
Back row: Maimie Flanagan - Katie Doyle, Tadhg McCabe - Peter O’Brien, Fr Murphy - Garrett Grimes, Sergeant Leahy - Rex Robinson, Bull McCabe - Liam Corrigan, The Bishop - Colm MacGhiolla Phadraig, Mick Flanagan - Tom Ronayne, William Dee - Jim Blake, Bird O’Donnell - Brendan Phelan, Leamy Flanagan - Nathaniel O’Leary
Middle: Mrs Butler - Emma Smith, Dandy McCabe - George Ward, Mrs McCabe - Laura Seery
Front: Flanagan Children - Eimer Nic Giolla Phadraig, Yseult Gallagher, Sinead Ryan, Caolan Ryan, Sally-Anne Murphy, Orla Doyle

IMG_3231.JPG

Mick Flanagan publican and auctioneer (Tom Ronayne), The Bull McCabe (Liam Corrigan), The Bird (Brendan Phelan) and Tadhg (Peter O'Brien) in the bar.

IMG_3255.JPG

A stranger in town (Jim Blake) meeting The Bird (Brendan Phelan) and Maimie Flanagan (Katie Doyle).


IMG_3273.JPG

Dandy (George Ward) and Mrs. McCabe (Laura Seery) with Leamy (Nathaniel O'Leary).

IMG_3260.JPG

Trouble. The Bull (Liam Corrigan) and Tadhg (Peter O'Brien) have heard of the intentions of William Dee (Jim Blake) to buy the field.



Thursday, 23 February 2012

Glencullen Musical and Dramatic Society - The Field by J.B.Keane - Ring Board Rules.


Glencullen Musical and Dramatic Society - The Field by J.B.Keane - Ring Board Rules.

General Rules Of Game  (thanks to http://www.allirelandchampionshipringboard.com)
1. The minimum throwing distance is 8'- 6" ( 259 cm) from the board and shall be clearly marked on the floor by a line.
2. The board is mounted on the wall at a height of 76"(193cm) from floor to top of Hook No.2.
3. Only rings hanging on board can be counted in scoring.
4. All players (team or individual) must play with 6 rings.
5. A team or individual having reached 487 or more is then nominated. That is they need to hang the actual number. For example having reached 487 if game is 500x1, No.13 must be hung exactly.
6. If a player having hung his nomination number, and one, on throwing for the double one, knocks off the nomination number, he is still left for one and may throw any rings he has left for the double one.
7. Only rings hanging down will count as a score.
8. A game must stop when 500x1 is reached.
9. The individual or team to reach 500 with the least number of rings, wins the game.
 
Approx dimensions: Board: 51 x 37cm. Rings approx 102mm diameter, inner diameter 80mm, 2.5mm inch thick.

        



History Of The Game
The game has been played for generations in Ireland. Back in the days before television or radio, nearly every house in Ireland had a ring board game hanging on the wall or the back of a door. They were still very common up to about 30 years ago. With the introduction of television in modern times, this game had almost died out.
As many Irish Emigrated to America during the famine, and were sent to Australia as convicts, the game travelled with them. Any Irish taking the game to the 4 corners of the world. This game is part of the rich heritage of the Irish People.
In the 20th Century, Irish emigrating to England brought the game with them and played it competitively in the Irish Pubs and Clubs. The playing of the game was mainly concentrated around the Degham area, where many Irish found employment in the Ford car plant. This brought about the All England Rings Championship. Up until recent times, teams from the Essex area competed at All Ireland Level, as they took it in turns travelling across the Irish sea to compete in each others venues. Many times, when a hook would get broken on a board, the man of the house would borrow a cup hook from the kitchen dresser (traditional Irish kitchen furniture) and fix his ring board.
Many Irish Americans, now in their 60s of over, would remember playing this game as children in their own Irish homes. Ring, Bowls Skittle and Horseshoes (Meggars) had one thing in common, all games were played underhand with their own separate All Ireland competitions. Rings was considered a winter game played indoors, the rest were played during the summer session.
Up to this day, the game of rings is still played competitively at All Ireland level on this All Ireland Standard Ring Board. In 1980, the All Ireland Rings Association was formed by J. Behan, D. Murphy, A. Moynihan & G. Cartwright. The next year, the first All Ireland competition was played in the ESB complex, Dublin. The final was between Dublin vs. Cork, Dublin won on that occasion. Currently, the game is still played in  Ireland in Pubs around the country. It has become a traditional Irish Pub game which still live on.
If you would like to keep this tradition alive and compete at All Ireland Championship level, then investing in the purchase of this board is your opportunity to partake in this competitive Irish sport on home turf. The All Ireland Ring-board Finals are held in the Clare Inn Ennis, Co. Clare on the 1st & 2nd of March each year.
Glencullen Musical and Dramatic Society The Field by J.B.Keane
6-10 March 2012 at 8pm
Tickets 15-12 euros
Bookings (01) 296 9340      milltheatre.ie

 
http://www.allirelandchampionshipringboard.com/page2.htm

For children up to the age of 9 an approximate distance of 160cm and height of 140cm are more suitable. Up to the age of 13, a distance of 180cm and a height of 160cm should provide a good challenge.

There are three Ringboard games in particular that are very suitable for schools:

1. Beginners – The highest score after each player has thrown 3 sets of rings wins the game.
2. Fifty Plus - The first player to reach or exceed a pre-agreed number [e.g.50] wins the game.
3. Thirty-one – The first player to reach a score of 31 using as few rings as possible, e.g. if a player hooks a 10 then a 9 he must add these together to get his total score so far (19) and subtract this from 31 to find which number he must hook to win (12). If he hangs no.5 he must subtract this from 12 and now he knows he must hang no.7 to win, thereby getting the player quickly using mental arithmetic.

As skills levels develop and increase players can move on to the more traditional games of ‘Round the Clock’ (hang each number in sequence, from 1 to 13) and ‘100 + 1’ (players must reach 100 points, then hang the no. 1 to win)
This could eventually lead to competing in the All Ireland Ringboard Championships, which are held annually in Co. Clare, All England Ringboard Championships or even the World Ringboard Championships, usually held in the autumn.

Kit comes with 13 Hooks and 6 Rings, paper template for making board and instructions.


School Size Ringboard measurements: 38.5cm x 30cm

Thursday, 19 January 2012

cause and recover from svn update failure: "Delta source ended unexpectedly"

svn update fails with message: "Delta source ended unexpectedly"

I saw this happen with updates to my svn working areas after a svn replication problem was fixed on server(wandisco). The svn working areas were inconsistent with svn server (after the change on the server) and had this error which needed fixing. The problem was particular to certain directories (the ones where replication was broken for a time). Probably the svn replication problem fix changed the svn version history, order or svn revision numbers. 

How can you identify the directory or files with the problem?

Look at svn status, directory or files with problem status marked with "!" (after you get "Delta source ended unexpectedly" error) are the problem. The dame dirs/files in other working copies probably also have the problem.


How can problem be solved?
Delete the problem directory or files and do svn update.
You may need to repeat this for any dir with problem.
Or do a complete fresh svn checkout.

http://www.google.ie/search?q=svn+delta+source+ended+unexpectedly

http://blog.manontheground.net/traveller/2008/07/svndeltasourcee.html

Tuesday, 3 January 2012

svn commit helper without using svn agent. no auth cache

Use svn agent to store svn credentials securely and avoid having to enter username and password multiple times. But if setting up svn agent is not practical and password security is not an issue this svnci alias and getmysvndetails script can be used to help do checkins and NOT update svn stored passwords.

p.s. aliases are deprecated :) svnci should be a bash function or script also

cat getmysvndetails
#!/bin/bash

# svn client use results in svn credentials being re-written to svn cache by svn client
# the last username entered becomes the default (even if password not stored in cache)
# use this alias to assist working as different svn users in the same unix/other user accounts
#alias svnci='. getmysvndetails; svn ci --username $MYSVNUSER --password $MYSVNPASS --no-auth-cache'

if [[ $0 == $BASH_SOURCE ]] ; then echo "This script must be sourced. Try again:"; echo " . $0"; exit; fi

if [[ "$MYSVNUSER" == "" ]] ; then
  read -p "Enter SVN username: " MYSVNUSER ;
fi

if [[ "$MYSVNPASS" == "" ]] ; then
  read -p "Enter SVN password: " MYSVNPASS ;
fi

export MYSVNUSER
export MYSVNPASS

Monday, 2 January 2012

flexagon. square.

I made a flexagon on new year. and followed the paths through it.

Published with Blogger-droid v1.4.9

Saturday, 26 November 2011

we made a charger for Kate's ds.

universal charger, about 4.5V. a ds plug from a different usb universal charger which didn't work. some wires and sellotape.

Kate and I tried plugging in the different combinations. we're quite pleased we found one which works. too much or too little voltage doesn't work.

Published with Blogger-droid v1.4.9