Monday, 5 September 2011

Love Money Management Even For Nationwide

Two blog posts in one day! You might be thinking what the heck?!?

Love Money have just released an online service to budget and manage your finances. Due to the nightmare that is the IFA in the UK automation for these kind of services is pretty terrible but they have somehow done it. Genius! I can now even connect to my Nationwide account without having to upload OFX's, CSV's and the like.

It really is looking promising, make sure you give this find of the day a go!

GWT Dialog Box With Close Button

Due to the internals of the GWT Dialog Box, extending it to add support for a close button can be a little tricky if you dont understand what your looking for. Alas below demonstrates adding an anchor to the caption area of the dialog, all that's left to do is for you to style the anchor. Happy GWT'ing.

Some people will moan that adding a library such as Smart GWT will add this functionality. Whilst true it also adds a boat load of library code you may never need. Keep compile times short and sweet and use the minimum amount necessary.

// Create anchor we want to accept click events
final Anchor myAnchor = new Anchor("My Anchor");

// Add handler to anchor
myAnchor.addClickHandler(new ClickHandler() {
  @Override
  public void onClick(ClickEvent event) {
    Window.alert("Anchor was clicked");
  }
});

// Create dialog
final DialogBox myDialog = new DialogBox();
myDialog.setText("My Dialog");

// Get caption element
final HTML caption = ((HTML)myDialog.getCaption());

// Add anchor to caption
caption.getElement().appendChild(myAnchor.getElement());

// Add click handler to caption
caption.addClickHandler(new ClickHandler() {
  @Override
  public void onClick(ClickEvent event) {
    // Get x,y caption click relative to the anchor
    final int x = event.getRelativeX(myAnchor.getElement());
    final int y = event.getRelativeY(myAnchor.getElement());

    // Check click was within bounds of anchor
    if(x >= 0 && y >= 0 && 
      x <= myAnchor.getOffsetWidth() && 
      y <= myAnchor.getOffsetHeight()) {
        // Raise event on anchor
        myAnchor.fireEvent(event);
    }
  }
});

// Show the dialog
myDialog.show();

Thursday, 23 December 2010

Craig and Charlotte's 100 things to do in Britain - #14 Iron Bridge, Shropshire

The birthplace of industry! And its not too bad a place to visit too. With plenty of museums (although you have to pay) to visit and walking trails through the gorge and the surrounding greenery you can definitely make a day of this. Make sure you turn up early though as it is a nightmare to traverse the steep narrow roads whilst trying to find a parking space.

Set in a quaint town/village (although its hard to believe this place exists right next to the M54) Iron Bridge has all the niceties you expect from small tea shops, hand made toy stores and useless garden ornaments! You might just forget that the bridge itself is pretty impressive. Do yourself a favour, take a picnic and make a day of it by getting lost in the woodland.

Rating:

Wednesday, 1 September 2010

Craig and Charlotte's 100 things to do in Britain - #16 Caernarvon Castle

A great little drive towards the back end of beyond 'Bangor' in North Wales will see you come across the mighty castle of Caernarvon. An awesomely English built slap in the face to the welsh all them years ago proving that we indeed were superior :P (until it got sacked by the welsh).

The castle itself houses a small town with coffee shops, cake stores a market and your classic 'bits n bobs' shops. The castle is kept in fabulous condition and is a real charm to walk round, through and under. A small entry fee is well worth the price with museum's and staff on hand to point out just how magnificent it really all is. A small wharf-side also is of interest for those who like a bit of a walk across to the lookout post on the opposite hillside.

Along with the drive this is a great scenic day out, and with a few coastal towns locally to the castle its easy to spend the entire day (neigh weekend!) in the area. Cheap and Cheerful, just how I like it!

Rating:

Thursday, 22 July 2010

Money Off MyProtein.co.uk Order With Referral Code MP253762

Hey, I'm a shameless self-promoter here is the referral code for you all to get money off your first order at www.myprotein.co.uk MP253762

Friday, 30 April 2010

The Red Bull (Light) Challenge (Success)

Hey, i'm not dead! Week over and a steady one can of year old Red Bull light every day with no side effects apart from birthing a small dwarf after the final can. Everyone can feel safe in the knowledge that drinking a year old can of the stuff will not kill you, challenge over!

Thursday, 29 April 2010

Craig and Charlotte's 100 things to do in Britain - #100 Bond Street, London

Back again for the second part of our London trip, i'm afraid it's a bit of a poor show picture wise as the security donned in fitted suits were warding off the bums and japanese tourists.

It's always a great feeling knowing that as you stroll past the many windows you will be coming out of the street with all your money in tact (this I made CLEAR to Charlotte before-hand :D). I do really feel sorry for the number of blokes wincing as the assistant told them how many times they will need to re-mortgage their homes to afford the 'rock' their wives are ogling.

On the whole Bond Street is great to visit if only to see all the amazing amount of crud a woman can attach to herself.


Rating: