« back to blog Archive for August, 2009

Fun with Firebugs console.log

Many of you will be using firebug and console.log regularly to dump data from your javascript apps – mainly for quick and easy debugging. There are actually many more powerful logging functions built into console.log to help organise this data.

Logging object hyperlinks

You can pass any kind of object to console.log and it will be displayed as a hyperlink. Clicking these links will inspect the object in whatever tab is most appropriate. console.log and its related functions can do a lot more than just write text to the console.

String formatting

console.log can format strings in the great tradition of print. For example, you can write console.log("%s is %d years old.", "Bob", 42).

Color coding

In addition to console.log, there are several other functions you can call to print messages with a colourful visual and semantic distinction. These include console.debug, console.info (blue), console.warn (yellow), and console.error (red). – give them a try!

Nested grouping

Sometimes a flat list of messages can be difficult to read, so Firebug gives you a solution for indenting in the console. Just call console.group("a title") to start a new indentation block, and then console.groupEnd() to close the block. You can create as many levels of indentation as you please.

Object inspection

How many times have you hand-written code to dump all of the properties of an object, or all of the elements in an HTML fragment? With Firebug, you’ll never write that code again.

Calling console.dir(object) will log an interactive listing of an object’s properties, like a miniature version of the DOM tab. Calling console.dirxml(element) on any HTML or XML element will print a lovely XML outline, like a miniature version of the HTML tab.

Hope these help!

We Love… Looking for a freelance IA/UE guru

Hi all – Hope you are enjoying your bank holiday :)

We are in need of an IA guru to join us for a 4-5 week booking (project price please). Starting around the 14th – 21st Sept. (Still waiting for confirmation of start date), for a fairly technical piece of work.

Be willing to work at our offices here in Maidstone for approx 50-60% of the time. The rest at home with a few days in the clients office in SE1.

Apply to james@welove72.com

Magento code snippets – Snippi.net

Trying to find a solution to a specific problem in Magento? Rescue has arrived!

Snippi is a community driven Magento code snippet sharing site. The site was started by Branko Ajzele, author of ActiveCodeline.com whose blog is another great resource. Not just another code sharing site – this is all about Magento code snippets and even has the tested version number next to each post. More likley than not you’ll find your answer here, far quicker than the documentation and forum slog at magentocommerce.com

This site has been a real help in our recent project for Sugagloss – watch this space. Check it out here: http://www.snippi.net/

A Tribute To 8 Bit

We Love invited to .NET’s Design Off

Mark, our creative director and one of the founding partner’s here at We Love, has been invited to participate in this months .NET Magazine’s Design Off.

Each Month .Net invite some the badest, madest, bestest and just plain ugly(est) – (now, where does Mark fit in to that lot?) – to see if they can make the grade by designing to a fictitious brief set by .NET mag. This month it’s re-thinking and re-designing a theatre site…

Mark is no stranger to .Net Magazine, he picked up a .NET Site of the Month for his Creative Direction on Canon’s EOS 400D digital extravaganza while working for MediaCatalyst in Amsterdam.

Good job he’s still a very much a hands on / can do guy… keep your eyes wide open to see if Mark has still got the mojo. (Oh and Mark, the deadline… it may be in a month, but you have 1 week :) … you are going on holiday!!! LoL. No sleep for the wicked)

Friday fun! – The Ashes Finale..

After England’s display at the Oval yesterday, it wasn’t the best of starts – it might have had the guys at Marston’s worrying about their newly launched Ashes ad…

Another humorous strapline used in this campaign was a˜We’re English We Brew Beer. You’re Australian, You Serve It’ :D

Anyway, after an awesome afternoon’s bowling, it is looking a lot better for us – enjoy the weekend, and fingers crossed we can send Freddie off in style with a deserved English victory!!

THE BIG FAT 100 GIVEAWAY

To celebrate our blazing hot summer (well, late June was nice..) the guys at Dripping in Fat have decided to give away some of their cool designs in a lucky prize draw.

To enter, simply log on to www.drippinginfat.com and purchase any t-shirt before the 30th of September 2009 to be entered into the draw.

The first 100 names drawn will each win a free t-shirt!

Now Go Buy A Tee >>

Update – Charles Lee Love You – Makes it to No. 2

Yep. We thought it would be a pop-tastic site and climb its way up. This weeks highest mover is…

We Love… are a TOP 100 GLOBAL CREATIVE AGENCY

Well, what a nice start to the week. We were first nominated back in June… and now we have just been informed that We Love has been confirmed as one of the TOP 100 GLOBAL CREATIVE AGENCIES. I feel all glowy inside.

After someone (we know not who) kindly nominated us… we were contacted by The Creative Agency Awards and asked to submit a piece of custom work for the ‘FINAL JUDGEMENT’ to these unbiased, independent and indeed secret guys and girls… The agencies (not just digital, but offline as well) that made the grade were judged on their creative over the past year and their submission to the judge. Its good to be loved.

The book is to be published soon :)

Well done crew, keep up the good work.

Friday Funnies – Great Viral

Brilliant. VIral for the Swedish tourist board aimed at us Brits…