Friday 17 September 2010

DJ Fresh - Gold Dust OFFICIAL VIDEO (Out NOW)

My collegue Anamur sent me this. Check out this video on YouTube:

Posted via email from Mark Kennard's Posterous

Monday 16 August 2010

Lost Generation

A friend emailed this to me. Not sure if the generation in question will indeed make a difference, but it's clever and thought provoking.

Posted via email from Mark Kennard's Posterous

Saturday 14 August 2010

Tuesday 20 July 2010

Quick Tip – Optimizing DOM Traversal » Learning jQuery - Tips, Techniques, Tutorials

The topic of optimization has come up a number of times in the jQuery mailing list. jQuery’s DOM traversal is powerful and easy, but it can sometimes be slow as well. As with any JavaScript library or framework, the helper methods will be slower than the plain old JavaScript (p.o.j) methods. Nevertheless, if we keep in mind the jQuery’s speed hierarchy, the speed difference between jQuery and p.o.j. will often be negligible.

The “speed hierarchy” goes like this, in order of fastest to slowest:

  1. ID : $(‘#some-id’)
  2. Element : $(‘div’)
  3. Class : $(‘.some-class’)

jQuery uses JavaScript’s native getElementById() to find an ID in the document. It’s fast — probably the single fastest way to find something in the DOM — because it’s only looking for a single unique thing, and it’ll stop looking once it has found it. So, if we have <h2 id="title">This is my title</h2>, we would use $('#title'), not $('h2#title') to access it.

To find a bare class name, as in #3 above, jQuery goes through every element in the entire DOM. To find an element, on the other hand, it uses getElementsByTagName(), thereby limiting the number of elements it has to traverse right from the start. Therefore, if we know which element the class is tied to, we can speed up the traversal significantly by referring to it, using, for example, $('div.some-class') rather than $('.some-class').

Likewise, we can help jQuery gather our classes faster if we can limit where jQuery looks to a particular ID: $('#sidebar .menu'), not $('.menu').

I’m sure there other ways to make DOM traversal speedier, so if anyone knows any other tricks, I’d love to see them in the comments. Also, I should probably reiterate that if speed is all you care about, no library/framework is going to beat p.o.j.

Update: Motivated by enej’s comment, I put together a little speed-test page where you can try out a number of different DOM queries and see how fast they are. Since I posted a link to the page on the jQuery mailing list, there has been quite a bit of activity in this area. Aaron Heimlich extended the speed test to work in conjunction with Firebug for some awesome reporting, and rumor has it that Yehuda Katz is working on an entire speed-test suite.

Update

Please be aware that these optimizations are not necessarily helpful as of jQuery 1.3 because of the new “Sizzle” selector engine.

A handy tip for those who are interested in speeding up their jQuery code. It may seem obvious, but I've had a conversation about this in the last couple of days, so thought it would be handy to post!

Posted via email from Mark Kennard's Posterous

An open letter to Harvester Restaurants

To Whom It May Concern.

I visited your Harvester in Fareham last night as a family gathering to celebrate my girlfriend's birthday, and frankly, it was probably the worst meal of my life, after a catalogue of issues from the moment we arrived. I shall list each point for you so you can see just how badly your Fareham branch is run.

1) When we arrived, we were greeted by a barman who was surly at best. There was no "good evening, what can I get you", and when I want to pay by card, he just said "I havent got a card reader" in a merable surly fashion, and walked off, then returned and just held the reader out for me to use. Maybe, as a front of house member of staff, he should be a little more polite and maybe even try to engage customers as they arrive.

2) When we got to our table, despite the staff seeing we had two children with us, we had to wait nearly over 10 minutes for a child's menu

3) When I went to the salad bar, there were no white rolls, no potatoe salad left, no pasta salad left, and the coleslaw was made with lettuce!! The lettuce all looked dry and tired, the peppers looked slimy and frankly, I was unwilling to eat any of it.

4) When our order eventually arrived, the waitress didnt clear away all the used salad bowls and side plates, which we had stacked at the end of the table when we finished them.

5) None of the plates of food had any sort of garnish, just a plate of tired, brown looking food. My chips were cold, and the extra prawns my girlfirend ordered to accompany her fillet steak looked revolting, pale and dry, and to add insult to injury they were cold. I asked the waitress to get me some hot chips and sent the prawns back too, but when she returned, the prawns still looked inedble and my chips were still not hot!

6) Not wanting to spoil my girlfriends meal, I decided not to cause a scene or complain until the end of the meal, but when the waitress returned with our drinks order, she then spilt a drink on my meal, and then laughed!!! Maybe if the bowls from the salads had been cleared, she would have had room to put the drinks down safely. At this point, I had to go outside and have a cigarette as I was so angry at the complete ineptitude of your entire operation and how it was spoiling my girlfriends evening out.

7) At this point I complained to one of the waiting staff, who said she had told the manager about the situation, and the managers response to her was "Leave them til they have finished their meal". Surely, a better approach would be to come over and see if she could help sort things out and ensure our evening wasnt completely ruined. No such luck.

8) Finally, when the manager did eventually come over and speak with us, she just said "I understand you havent had a very good meal". I then outlined the catalog of failure to here, and she didnt even say sorry. She just said ok, we will only charge for the drinks. Then she left us. She didnt return to the table, but instead left a waitress to deal with us. As a "manager" maybe she should have made a bit more effort, but frankly, after everything else I witnessed last night, I'm not really that surprised.

9) The final insult came when my girlfriend visited the toilet before leaving, which was dirty, and had no toliet paper!

So. Thanks for a FANTASTIC evening. It was definately a "A Night to Remember". 

I will NEVER step foot in one of your establishments ever again, and I will make it a point to make sure that anyone I know does'nt have to go through the same experience.

Your service is appalling. Your food is disgusting. Your standards are so low I'm not even sure you have any. Unimpressed.

Posted via email from Mark Kennard's Posterous

Sunday 6 June 2010

A Geeky Guitarist Post...

Well, I've just had a week off work, the majority of which was spent sat in the sunshine playing my guitar - A refreshing change from sitting in front of my laptop for hours on end! Anyway, since picking my guitar back up a couple of months ago, I've discovered some web sites and iPhone apps that are really useful to all guitarists, of any skill level, and I thought I'd take time out to share them...

Useful Sites

I've found it really helpful to sit down in front of my PC with my guitar and learn from online tabs and video lessons, so here's my list of some of the best guitar sites...

  • Ultimate Guitar - I suspect most guitarists already know this one, so forgive me for stating the obvious, but this site definately needs mentioning. Great content, including reviews of guitars, hardware, bands and more, a huge repository of song tabs and chords, interviews, lessons and much more. This should be your first stop!
  • Free Guitar Videos - I really like this site. A huge amount of video based lessons in all styles, with well produced videos. A good one to site in front of your PC with your guitar and actually have "virtual lessons". This is a site that has really helped me get back up to speed since picking my guitar up after not playing for a few years!
  • JGuitar - Although it's design looks very dated, JGuitar has a few handy features, including a Chord Calculator that automatically determines every mathematically possible fingering for a chord based on the options you specify, handy for sussing out alternative fingerings, a Tab Mapper, that takes a tab URL and generates chord structures, and a Chord Search function. It's well worth exploring.
  • Justin Guitar - If you want to learn how to play well known tracks, or you're interested in getting to grips with some music theory, Justin Sandercoe's site is brilliant. Justin Sandercoe is a London based guitarist, songwriter, performer, producer and educato, and his video lessons on YouTube have had over 60 million views! I've spent quiet a bit of time on this site, and my playing has definately improved! Even if you spend just 10 minutes on Justin Guitar, you will see how much much time, effort and enthusiasm Justin has spent on making his site a brilliant guitarists resource.
  • Guitarists.net - Another site with great content, although the design and layout is a bit dated. It features quite a few good lessons, for beginners and also for more advanced players, covering music theory, scales, licks, tricks and more. There is also an interesting directory of music/guitar related software. Check it out!
  • Chops from Hell - This is one for my colleague Tristan! A proper "RAWK" site with cheesy design, but this site has some lessons and videos for the "shredder" guitarist. Definately not for beginners, but worth checking out if you want to see some guys who can really play "metal" lead guitar. While I'm not really into some of the heavier rock music, I really admire people who can "shred".
  • Guitar Player - Another really good resource, from the magazine Guitar Player. Lots of great content, including video lessons from some amazing musicians (Check out Joe Bonamassa's blues videos). This site has also has some interesting "non-lesson" articles - Have a read of "
  • Guitar Player World - This site has a few good lessons, covering beginners and some more advanced stuff, along with articles and lessons about playing different styles. A lot of the lessons are more text/theory based, rather than video or tabs, but still worth reading!
  • YouTube - Although not a dedicated guitarist's site, there are literally thousands of video guitar lessons available on YouTube. Some are definately better than others, but a few users worth checking out include RockOnGoodPeople, BerkleeMusicGuitarJamzDotCom and LickLibrary
  • ChordBook - This one's a bit different, as it is Flash based, with an interactive section allows you to choose guitar type (electric or acoustic) and find any chord and hear them played on the virtual guitar. You can also create your own chords and save them for later use. Chord book also has a Flash based interactive Scales tool to help you learn your scales!

iPhone Apps

As well as using my PC to improve my guitar skill, I've also discovered "there's an app for that" when it comes to the iPhone too! Here's the list of guitar related apps I have on my iPhone...

  • Guitar Toolkit - This is one of my favourites. A really well put together app, with a tuner for most popular tunings and suitable for 6 and 12 string guitars, bass, banjo, mandolin and ukelele, a metronome, complete with tap pad to set your own timing, and chord and scale libraries. A must buy, and a definate bargain at £5.99.
  • Ultimate Guitar Tabs - Another app that I have used almost daily since getting back into guitar. It uses Ultimate Guitar's huge database of tabs and chords, allowingyou to search for any song you want to learn to play, with both tabs and chords. Most songs have multiple versions, rated by other users so you can easily see which is the best or most accurate version to learn. This one would be good on the iPad, as tab and chords tend to need a decent screen area so you can read and play, but still handy on the iPhone.
  • Guitar: Play and Share - This one is just amazing. there are quiet a few "iphoine guitar" apps, that allow you to "play" chords and scales, but to be honest, none of them work that well, as the iphone is'nt really anything like a guitar! Guitar: Play and Share gets around this by simply providing buttons for chords (over 1900 in the library, and you can define your own) , then you simply hit the strings you want to play. A simple, but ingenious solution, and it's a fantastic tool for creating your own progressions and songs, even without your guitar. If you ever find yourself having an idea, but you don't have a guitar to hand, this is a must have.
  • Fretboard - FretBoard holds a collection of more than 140 instrument tunings in 15 instrument groups and a huge amount of music theory packed in a simple and intuitive interface guaranteeing fast access and easy understanding, and helps visualize chords and scales.
  • ChordMaster - A very handy chord library, from D'Addario. With more than 7800 chords and variations, with the ability to strum and hear individual notes in each chord. Very handy indeed!

I'm sure there are more iPhone apps out there, but that's the list of apps I've installed and use regularly. I hope those of you who play guitar finds something handy, in the meantime, I'm off to sit in the garden and practice!

 

 

Posted via web from Mark Kennard's Posterous

Friday 30 April 2010

Thursday 29 April 2010

Its All Their Fault. Politics for the Facebook Generation

Watch the video, then visit the site. Idealist? Probably, but maybe this is the first general election in the UK where there is a real desire for change, and a means to influence it. The internet gives us all a voice and a way to educate ourselves about the issues, and to make informed decisions. Check it out.

Posted via web from Mark Kennard's Posterous

An interesting DOCTYPE and JavaScript fix.

I've been working on a new project at work this week and found this interesting little bug. My JavaScript worked perfectly in a static page on my local server, but when it was moved into a dynamic template driven page, it failed, with a cryptic message in Firebug..

syntax error

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">

Not much use for debugging huh? Especially considering identical code worked perfectly on the static box. It turns out, that if you have a script without an "src"attribute set correctly, or if you have an error in an external JSON feed, the DOCTYPE will fail.

So then, this tricky to find, but easy to fix error is fixed by making sure every script your page is being called correctly. In my scenario, it was due to an error in and external JSON file.

Hope it helps.

Posted via web from Mark Kennard's Posterous

Monday 26 April 2010

Why Some Men Have Dogs And Not Wives

The lovely Jo sent me this, made me chuckle....

1. The later you are, the more excited your dogs are to see you.
2. Dogs don't notice if you call them by another dog's name.
3. Dogs like it if you leave a lot of things on the floor.
4. A dog's parents never visit.
5. Dogs agree that you have to raise your voice to get your point across.
6. You never have to wait for a dog; they're ready to go 24 hours a day.
7. Dogs find you amusing when you're drunk..
8. Dogs like to go hunting and fishing.
9. A dog will not wake you up at night to ask, "If I died, would you
get another dog?"
10. If a dog has babies, you can put an ad in the paper and give them away.
11. A dog will let you put a studded collar on it without calling you a pervert.
12. If a dog smells another dog on you, they don't get mad. They just
think it's interesting.
13. Dogs like to ride in the back of a pickup truck.

And last, but certainly not least:

14. If a dog leaves, it won't take half of your stuff.

Posted via email from Mark Kennard's Posterous

Another bit of Dan Bull genius

This is very good, an open letter to Lily Allen

Nice one!

Posted via web from Mark Kennard's Posterous

Posterous. First Impressions

I've noticed quite a few people using Posterous of late, so I thought I'd see what the buzz was about.It's a very cool idea. Post something once, by email, SMS or web, and publish to your Posterous homepage, Twitter feed, Flickr stream, Facebook profile etc.

So, here goes. My first posterous post. Overall, I'm impressed. Lot's of really nicely done interface design, with a bit of Prototype goodness thrown in. It was easy to setup an account, it's possible to be up and running almost instantly, but I opted to go through the signup process so I could customise my posts and setup publishing to Blogger etc. I'm hoping that now I have the means to post once and publish everywhere in one hit, I will be able to post more often, as I usually find myself too busy to sit and write long posts. Fingers crossed, you may even see proper regular posts.

My one gripe? It's a biggie I'm afraid.

Posterous allows you to import from your other blogs. I thought this would be a great idea, being able to put everything in once place so I have some historic content from the off, but in practice, it seems a bit flawed. As you can see, I have quite a few posts here already, but the import process has truncated them all! So, you can read the first paragraph, and that's it. Not even a link through to the original blog article. Arrrgh. For the time being, bear with me while I go back and manually add the missing content.

Other than that, very cool. I'm definately going to try to post regularly and see how it goes. Watch this space!

Posted via web from Mark Kennard's Posterous

So, you need a typeface?

My collegue Sarah just sent this to me, very cool, so I'm sharing....

Posted via email from Mark Kennard's Posterous

Sunday 28 March 2010

Site of the Moment, - Carsonified

Carsonified have a genuinely eycatching new site. I found this by accident a couple of days ago, and it really made me smile. Colourful, playful, and really confident design, really well thought out, from the guys behind the Future of Web Design and the Future of Web App events.

I really like the way each page is a different colour, with white text and illustrations. Funky indeed.

Well worth having a look around.

A fresh new look from the Blogger Template Designer

Well, those of you who have been here before will probably notice new fresh new look., which is the result of me spending an hour or so experimenting with the new Blogger Template Designer, which I found over at Blogger in Draft.

It’s a very nice web application, and it’s a huge improvement on the current template tools available on Blogger, and has some very cool touches, such as theme suggestions to match background images and text colours, a live preview of your changes, and some really nice new starting point templates.
I’ve only spent a bit of time playing on it so far, but I like what it can do some much I decided to apply one of the new templates, instead of my old custom template. I'm not the greatest designer in the world, so it's great to be able to come up with something that looks fresh without having to spend hours in Photoshop and Aptana.


A couple of things to note though. Firstly, the new templates aren’t built with IE6 in mind, so users who choose to punish themselves by using IE6 may not see your page as you intended. Secondly, as far as I can see, you are limited to the background images provided by Blogger, rather than being able to add your own. I’m going to have a play with the template XML and see what I can come up with to workaround this. If I succeed, I’ll post the details.

I've also added a new template based design to my other blog, just to give it a bit of a makeover (note to self: Post on Sidetracked sometimes huh?)

Other than that, give it a whirl, see what you can come up with!

Wednesday 17 March 2010

First Impressions of the Dell Studio 1558 Laptop

Well, after being a loyal Toshiba user for the last 7 years, I was tempted into buying a Dell when upgrade time came around this again.

Despite appalling post-order/pre-delivery customer service, having my order cancelled, then replaced, and waiting 7 weeks instead of the original 2 weeks promised by Dell when I ordered, my patience paid off today when my new Studio 1558 arrived!

My job demands that I have a fast, reliable machine, and with that in mind, when it came to configuring the machine to my specification, I ended up almost doubling the base price, which gave me the following spec:

  • Intel® Core™ i7-820QM Mobile Processor (1.73GHz, turbo up to 3.06GHz, 8MB L3 Cache)
  • Genuine Windows® 7 Professional, 64bit
  • 8 gigs 1333MHz Dual Channel DDR3 SDRAM
  • 500GB (7,200rpm) Serial ATA Hard Drive
  • GB ATI Mobility Radeon™ HD5470 Graphics Card
  • DVD +/- RW Drive (read/write CD & DVD)
  • 15.6in Widescreen Full High Definition (1920 x 1080) WLED with TrueLife
  • Internal UK/Irish Qwerty Backlit Keyboard
  • Intel® Wireless LAN 6200 2x2 802.11a/b/g/n card
  • 2.0 Mega pixel Integrated Web Camera
  • Dell Wireless 365 Bluetooth Module
  • Creative Sound Blaster X-Fi MB

First impressions are great! It feels well built, and looks the business. I’m particularly pleased with the optional back-lit keyboard, which makes life a bit easier in poorly lit conditions, and the performance monitor in the task manager shows 8 (yes 8!) processors, which I’m assuming means that each of the quad processors are dual core – I’m looking forward to see how this speeds things up when running applications like Photoshop, After Effects and Premiere!

I have already run into a couple of issues associated with moving from 32 bit to 64 bit however. I guess I should have done a bit of research up front, but anyway…

  1. Cisco VPN Client is NOT supported. If you need VPN access, you need to find an alternative method, such as NCP Secure Entry Client
  2. Adobe Flash Player – There is no support for 64 bit browsers, so you have to use 32 bit IE or 32 bit Firefox if you want to view Flash based content.
  3. Aptana, my JavaScript, CSS and jQuery weapon of choice, doesn’t yet have full 64 bit support. You can install in into Eclipse, or install the 32 bit version only.
  4. So far, I’ve had no joy with a 64 bit version of Firefox, but have got the 32 bit version installed instead.

I’m sure I’ll find a few more problems, but so far, so few. Fingers crossed that none that arise are deal breakers!

More to come as I use the 1558 more, but for now, I have to stop writing and carry on installing software, so I can use my new toy at work tomorrow.