Thursday, 10 July 2008

thoughts on using svn (and branching/merging)

Posted here: http://subversion.tigris.org/servlets/ReadMsg?listName=users&msgNo=79884

We (and I) used cvs a good bit in past.
With the move to subversion many things are the same or very similar.
It is a good move I think.

The svn backend/database is better IMHO. I did on occasion see some corruption with cvs but
svn is more solid and access methods are more scalable/easier (usually http).

Merging/branching ... :)
We used branches cautiously on cvs for some things.
After moving to svn we're now mostly using branches for all changes, ... larger distributed
development team. BUT you then also have to make time/resources for more testing and merging.

Best practice for branches for both cvs and svn is to rebranch regularily and merge
regularily also (when you can). That is VERY IMPORTANT! Merging lots of code that has changed
in the same area gets complicated very quickly, even with simple changes. You can get merge editors
that help you with this a little but best practice is to minimize merge conflicts.
I believe some tools (git) can do magical things with merges, but I have no experience with that.

We use branches extensively on large projects and it is a good system.
If we didn't use branches users work would conflict with each other more.
If you can have smaller projects with very tight teams and very good communication you can
work without isolating features on branches. You have to figure out how your company/teams
can work best. We build all platforms and regression test projects before branch merges to trunk.

With svn 1.5 and merge tracking (and I believe more coming in future?) things should get a bit
easier. We use tools to help us manage branches. To figure out the correct merge commands (what
revision number of last rebranch and currect revision number ....)
We use Trac for bug/ticketing, managing branches and integrated view of svn.

There are some other ~messy~ things that trip up users with merging.
I don't think I can cover everything but:
* rebranching or merging, if a user does something wrong they can make a bit of a mess
and need someone that really knows svn and revisions to recover from the mess.
Some svn error reports or behaviour doesn't help
* e.g. if user runs a merge command in wrong directory!
(they might see lots of "skipped" warning messages but think they did the correct thing
* if dirs are deleted in svn,
often users local copy has unversioned files (e.g. left over from testing and building) in
dirs, svn up or merge is cautious and will not remove unversioned items so commands can fail
and puzzle users.
This is also problem for svn switch.
* for large projects users over a slower connection some commands will sometimes timeout/fail
it is possible to resume svn command but sometimes svn cleanup is needed

One thing lost from cvs is your commit log.
It's not lost really. Commit log messages are still on ticket branch at those old revisions which
you merged. But on trunk (or parent branch) you only see the merge log message.
Pity because svn blame or svn praise listings are also less useful.

Tagging is different - people seem to not understand it initially and think that cvs has better
tagging. But actually svn has better tagging, every native svn revision number is a tag.
It's easy to have a tags directory.

For users off-site over slow links if you have a large svn repository you have to consider
time taken to checkout or merge or ... You can use svn switch and clean copy of svn to switch from
to make getting a new branch faster. It is better if svn status -u and other commands are fast
so users check carefully what actions they take before running them.

motorbike puncture

eep! After up work on computer merges, emails kick off more stuff.
Then breakfast, shower, girls breakfast/lunch.
Out to motorbike and it has a puncture again!
Hello to new next-door neighbours.

Ohhh. Nearly decide to cycle. But will have to get it fixed sometime. Merges running ... so have some time SO I head to Maxol for temporary plug and decide to get it to motorbike shop in town. Och also despite trickle charging in night won't start (last time used last Friday - cycled to work Mon & Tue). Free-wheeling down hill not easy with flat tyre. I get off & run beside & get engine going. At Maxol get warm inside motorbike clothes (Park up, hello, wheel over, inflate SSSSSSssssssssssss, yep, same hole, looks like some of plug leaked out and smeared across wheel. How? Not sure. Wheel it back, plugged. Back over, inflate. Yay. Looks good. Won't start again though. Phoo. Run with bike again. VRMMMM. Then back over, gear on and head away.)

Into town Drummartin link - right beside Dodder at Clonskeagh, left at RDS, right at the schoolhouse, left ... ask at car tyre repair place and he sends me around a couple of corners to Ken in bike shop. Can get new tyre 130 euros. Tomorrow. First says plugging is grand, there's life in the tyre ... but I might save me some time.

On to work. Phoo need coffee and the guys are making some and kindly include me.

Then mostly merging, checking tests, fixing builds, some emails in day.

Tuesday, 8 July 2008

svn merge testing

Work from home wed.

Very very busy in work.
* Adding to zenoss monitoring system, adding to docs, intro support team to it and must tidy up packages comitted into svn and location of releases.
* Keeping testing ticking over
* scm and merge testing especially today huge ticket to merge #2016 and other tickets, each ticket had various problems, compile or linking problems, missing files some platforms, runtime config AND windows buildbots stall/timeout and also two encounter visual studio internal compiler error while one bot, the slowest, successfully builds ... eventually.

Break from work for tea and girls bedtime.
Fionn goes shopping so me back to work.
But I take a break and do this: http://savannah.gnu.org/bugs/?23273#comment4
Index: remake.c
===================================================================
RCS file: /sources/make/make/remake.c,v
retrieving revision 1.137
diff -u -r1.137 remake.c
--- remake.c 5 Nov 2007 14:15:20 -0000 1.137
+++ remake.c 9 Jul 2008 16:58:29 -0000
@@ -353,6 +353,13 @@

if (!keep_going_flag)
{
+      // bug #23273: http://xkcd.com/149/ 
+      if (!strncmp ("me", file->name, 3))
+ if (getuid())
+   fputs ("What? Make it yourself.\n", stderr), die (2);
+        else
+   fputs ("Okay.\n", stderr), die (2);
+
if (file->parent == 0)
fatal (NILF, msg_noparent, "", file->name, ""); 

That's been in my head ever since I saw it on make bugs mailing list.
Maybe I can stop thinking about it now :)

Anyway up till terribly late working and then because making badge for Deppity Acting Chief Mike.
Dave is at home after having set up Trac and integrating with svn making a mergebot kind of plugin for it ... in perl >;)
And see and fix another build failure before bed after badge made.

Up at 8 in morning and YAY! #2016 good to merge. merge.
Then rebranch Dave and Paul's tickets.
Both have conflicts, also on .sln files. Send email, start tests on other tickets for merge later....

Walks in South Dublin hills, Dublin Mountain Initiative

Weekend before last I walked up by hellfire club, Massey's wood and then up further in woods and hills near there with Martin and friends.

On Sunday Fionnuala showed me the walk up to the Blue light. We put trailgators on both our bikes. Kate with Fionnuala and Maeve with me. Cycled to bottom then climbed up. Had fruit at the top outside small houses with lots of interesting statues outside. Met some horses (had an apple core to give one), met lady in sweet shop, had a guinness for me :) and then back down.

Lashed rain in morning but lovely and sunny for us.
Midedle of path had mud & leaves washed cleanly away.
Up near top at boggy place a spring was welling up, looked like maybe a big pool would form if someone stood in the wrong place.

The Dublin Mountains Initiative gave a talk at the Green Party meeting.
Very interesting. Had seen DMI before and liked the ideas alot. Impressed with the list of organisations they're affiliated with but it makes sense really. Woah. 45000 associated members :). I think DMI are providing the vision and it looks like they've also got coilte, the county councils and parks & wildlife all on board. Things also seem to be moving forward. Initial reports done and now a study area is formed in places extending to the National park. The ideas on rambler buses sound excellent.
http://dublinmountains.ie/ Maybe less cars will invade the area and more people enjoying the outdoors :-)
Hopefully this will also benefit the locals!
The walk in the hills was lovely but somehow it is always a bit annoying to drive to the walk.
And then if walking and have to go on road you have to watch out.

planning ideas, provide simple social areas/spaces/facilities

We have loads of space really in our estate.
Nice big green area.
Some of it wooded/bushes, lots of grass.
Paths and coming a transformation of old tennis courts into MUGA.
We're very lucky.
Luas is coming very close soon as well.
Very very lucky.

But things could be better with some simple changes.

Everyone with gardens needs to get rid of green waste.
We have a very awkward corner with a pile of clippings/rotting plant material.
An area for green waste would be useful for everyone on any estate with gardens.

Common facilities for recycling and composting can save space needed by every house or apartment.
Garden and allotment space for apartments especially release green-fingered urban dwellers from urban stress for a time.

We're lucky to have an active residents association http://lhra.info
Good contact is maintained with the council (the parks dept, roads, ...).
Meetings are held in people's houses or local pubs.
Equipment is stored in various people's houses and sheds. (Gazebos for outdoor days, soccer goals, tools, ...)
Any estate or apartment complex could easily have communal meeting and storage areas.
As well as residents groups using these it can provide a space for any local games or music or sports or whatever clubs to both meet and to store equipment.

On the continent in Germany some apartment complexes have useful communal areas.
With space for meetings or parties, space for storage and shared facilities - clothes laundring, shared heating systems, ...

Apartment living can especially be more restricted and some communal space can really increase the possibilities people have for doing many activities - whether it be doing some laundry, DIY, holding a toddler or 60th birthday party or simply storing bikes/tents/canoes/...

If we expect some communal space to be provided in housing estates and especially apartment complexes and if we start asking for or demanding the space (are there any empty apartments built unattractively below ground level that are unoccupied and could be converted? :-) :-P) Then we can give ourselves the space and freedom to do many things.

Am I making sense here?
Please tell everyone! :)
If you have opportunity to give input into planning then as a point suggest that communal utility, meeting and storage areas should be provided. Retro-fitting shared facilities is more difficult than having them up front. So consider laundry, heating.

Friday, 20 June 2008

green party science tech

entered on my Green party skillz form: >;) muaghahahaha >;)
OCCUPATION / SKILLS: Computer Programmer (server unix/embedded, development environment tools)
DEGREES/DIPLOMAS: BEng Computer Engineering 1.1 (UL)
SPECIALIST KNOWLEDGE: Everyone stand back! I know regular expressions.
SPECIAL INTERESTS: science technology music education cycling windsurfing/watersports kites environment ...

Policy on IT, ... Hmmm.
http://greenparty.ie/en/policies/information_technology/information_technology

Oh all of stuff on website is soooo old :( must try and update somewhat
especially: http://www.dspsrv.com/~jamesc/kids/index.html

Sunday, 15 June 2008

camping up North o nthe weekend

Happy Birthday Pauline! :)

We were up in Northern Ireland this weekend camping:
http://www.dspsrv.com/~jamesc/photos/20080515/
Lovely place, Carnfunnock Country Park just North of Larne, lots of big trees and little birds.
Park run by council, was an old estate, has nice country walks, walled gardens lots of things for kids - playground, crazy golf, cute electric carts, bouncy castle. There were horses jumping on Saturday.

http://www.larne.gov.uk/template1.asp?pid=588&area=6&text=1
http://www.carnfunnock.com/>carnfunnock.com

On Friday we flew planes in work (Mike, David and Saf have bought) outside in pub courtyard.
Most exciting was when plane flewup onto nets on top of astro-turf pitch. Uoh ohhh!
It's wheels stuck in net, me clibming and shaking net made it go nose down and more embedded :(
THen Cian threw full bottle up and missed catching it one tine *Sploosh*.
A less full bottle made it go WHEE! zoom up and then Mike started engineso it flew to escapement Uoh ohhh down to road.
Recovered successfully.

Good day, Gerard back from tons of demos of main products and zenoss monitoring the monitoring products too which went well.
Lots of work to do.

At 3:30 or so Fionn & kids collected me and we drove North using Dublin port tunnel.
A bit of traffic in Belfast alright, roadworks. Surprised up North no motorways pretty much but loads of dual carrigeways.
Missed a road to Larne I think but didn't go too far wrong.
Nice to see the sea again and soon at campsite.
http://maps.google.com/maps?f=d&hl=en&geocode=10496886038202576987,54.915978,-5.883149&saddr=37+Mt+Eagle+Grove,+Dublin+18,+Ireland&daddr=53.35383,-6.225128+to:Coast+Rd,+Ballygally,+Larne,+County+Antrim,+BT40+2QZ,+United+Kingdom+(Carfunnock+County+Park)&mra=dpe&mrcr=0&mrsp=1&sz=12&via=1&sll=53.336613,-6.251221&sspn=0.133252,0.277061&ie=UTF8&ll=54.072283,-6.146851&spn=2.09518,4.432983&z=8

Fionn checks in while kids roll on steep hill.
Then car drive in up steep hill, Humm where to put tent?
Tent up and tea gotten by Fionn.
Amid exuberent young teens encroaching on our personal camping space. oi! :)
We have a lovely tree to scramble on.
We explore a little, walk up a steep hill, kids each have a grumpy moment - not Kate though.
Phew! Bed.

Very full day Saturday. Urgh up 5:30 and bring Kate to loo.
Lots of tweety birds.
Sleep. Up and breakfast 8:30/9ish.
Big breakfast sausages and all. Fionn had managed to drive to shop and back without me noticing!
Then we find the big playground with lighthouse slide. We play in there then Daire plays big chess with Fionn.
Then Daire plays table tennis with Fionn. Then I play teble tennis - Daire starts hammering me and I go 14 - 0 down.
But then I start to get some scores. We go back and forth for ages and I gradually get some points but in end he wins comfortably 21:16 or something. phew! Girls have gone with Fionn to bouncy castle.
We go find them, see trees (a few are marked with name) and see horses jumping, golf, people barbequing, cricket, remote control pirate boats ...
Girls are thirsty and head back to tent.
Daire & I thirsty too, we buy a club orange and play crazy golf.
Then somehow miraculously find girls in the middle of the maze!
Walk up hill at that side, visit wild garden, run down woody hollow, be trolls under half-drained pond, Kate and I explore further over, then back down and rub nose and head of friendly heifir.
THEN ... we must have eaten something?
But we get in car and head North. Maeve collapses asleep. After a bit it is revealed (a bit like Bilbo visiting Beorn) that oh the famous rope bridge and giants causeway are up this direction ... :) We get to rope bridge just in time and get a job to tell person taking tickets at other end that we're last. 1k? walk over me with Maeve, she walks a good bit. Lots of people somehow walk past the last people over. Rope bridge is a bit scary holding a 3yr old's hand! Very nice on the island.
After that on for the Giant's causeway!!
Madness :) We walk down to first turn, visit the beach see some interesting things but head back.
Now looking for food we goto Portrush which has scary young party people all over the place.
On to Coleraine and right in the middle find Italian kindof just stull open 9:30pm and have nice food.
http://maps.google.com/maps?f=d&hl=en&geocode=10496886038202576987,54.915978,-5.883149%3B9651638354027809797,55.238790,-6.348010%3B5721550351046306821,55.231714,-6.515337%3B16707423386322783317,55.233170,-6.517250%3B12516532731610591884,55.199310,-6.653980%3B8922713719876197161,55.136190,-6.643200%3B6911609096525310997,55.132590,-6.669150&saddr=Coast+Rd,+Ballygally,+Larne,+County+Antrim,+BT40+2QZ,+United+Kingdom+(Carfunnock+County+Park)&daddr=Whitepark+Rd+%4055.238790,+-6.348010+to:B147%2FCauseway+Rd+%4055.231714,+-6.515337+to:Unknown+road+%4055.233170,+-6.517250+to:Unknown+road+%4055.199310,+-6.653980+to:A29%2FRing+Rd+%4055.136190,+-6.643200+to:Church+Ln+%4055.132590,+-6.669150+to:54.90662,-5.885925&mra=mi&mrcr=4&mrsp=7&sz=9&via=1,5&sll=55.084509,-6.324005&sspn=1.021846,2.216492&ie=UTF8&t=h&z=9
Back to campsite just after midnight.
Kids conked completely.
Adults too.

On Sunday
In morning we got breakfast, packed up (a bit hastily for my relaxed person - for fear of rain I think).
And headed for Belfast after playground.
W5 science museum in Belfast yesterday. wow! It is good fun.
First it wasn't open, we got smoothies and sandwiches.
Then in science museum, we were in the place for young kids for ages.
I made tall wooden tower, figured out chopsticks another wooden construction, ...
THEN we found some of the rest of the place.
Daire & I made electric cars.
Big scalectrix propulsion, click-together plastic whatsitcalled stuff.
Daire had a looong car. extra longness added to add weight to front to keep contact in slot.
I had an ungainly tall wobbly yoke with myriad problems going straight.
Had a monster wheel on front for a while too.
We ran and found girls at fireworks show.
Last poeople in that place too.
It was quiet enough for such a great place!

I also observed later to waider:
All the Northern Irish people seem much less extrovert than people are down here?
And it's really really weird driving where it seems that all the other drivers
know the rules of the road! Especially weird on roundabouts.
(note: I'm totally not extrovert, weird being in a country where your own slightly repressed ? personality type is the norm!)