Blog Archives

Obscure Sitecore Features, inspired by Julian’s Flight Simulator

To the untrained eye, this blog might look a little neglected when really it’s just been taking a hiatus from publishing blog posts. More regular updates are around the corner including a project I’ve wanted to finish for almost six months.

In the meantime, I wanted to highlight an excellent blog post by Julian over at Igloo.

I’ve worked with Julian twice before and now for an account at Reactive we’re working together to create an SVN masterpiece that will allow two separate development teams to compete directly to create code conflicts. You can follow Julian on Twitter.


Microsoft Flight Simulator 9/11

This is Julian's screen most days


Around June, Julian took a break from playing Microsoft Flight Simulator and wrote a blog post about some useful but obscure features of Sitecore. Only coming across it last night, I notice that it’s only be re-tweeted five times which is a shame because it’s really useful.

The Gloo: Top 5 Obscure Sitecore Features

Hopefully this blog post and my excessive use of WordPress SEO plugins will help generate some more views for this piece. A couple of the most interesting for me were: BulkUpdateContext; is a must-have for anyone who is doing content migration using Sitecore and the third (UrlString Class) is something I’ve used before, but like many parts of the Sitecore API, aren’t widely known.

Not sure if I can come up with five of my own but here’s a couple, perhaps not-as-obscure features.

  1. Developer Center: XPath Builder: hardly obscure you might say but the number of certified developers I’ve come across who didn’t know it existed is surprising. In the CMS, open the menu and run Developer Center, when it loads click  Tools > XPath Builder from the menu.

    XPath Builder

    This tool allows a developer to test Sitecore XPath queries in the CMS against the database, these queries can then be used by the Sitecore.Data.Database methods: SelectItems, SelectItemsUsingXPath, SelectSingleItem and SelectSingleItemUsingXPath. The Sitecore Developer Network has an excellent reference on using Sitecore Query, you’ll need an SDN login to view it.

    Besides from testing query syntax, it’s also a useful way to compare query:/ vs fastquery:/ speeds.

    Here’s a basic rundown of the fields in XPath Builder:

    • Context Node: the node from which the query will be executed, this can help you test ancestor and descedant queries
    • Database selector: choose to run the query against core, master or web
    • XPath Expression: enter a Sitecore Query using query or XPath notation
    • Result: returns the results of the query (or any error messsages). The number of items returned is limited by web.config setting Query.MaxItems
  2. Utility classes in the root Sitecore namespace: they can be easy to miss if you’ve never looked in the Sitecore namespace or the documented API before, here’s a rundown of a few that I’ve found useful in the past:
    • Sitecore.Constants: system-wide constants, far too many to describe here but I’ve no doubt many places/developers have coded their own ways to get these values
    • Sitecore.DateUtil: Sitecore stores all datetimes in ISO format “yyyyMMddTHHmmss”, this class contains methods to convert this string to and from .Net’s DateTime type
    • Sitecore.DaysOfWeek enum: pretty straight-forward
    • Sitecore.FieldIDs: a static class for holding well-known GUIDs relating to template fields, useful for API work on Templates
    • Sitecore.ItemIDs: a static class for holding assorted well-known GUIDs, for example the ID of the Layouts root folder or the Templates root folder
    • Sitecore.MainUtil: far too broad to describe in detail but here’s a few functions included you may have coded yourself in previous Sitecore projects: ColorToString, CombineArrays, DecodeName, EncodeName, SendMail (uses SMTP settings from the web.config).
    • Sitecore.StringUtil: utility functions for string manipulation
    • Sitecore.TemplateIDs: (really, really useful) a static class for holding well-known GUIDs relating to core Sitecore templates, i.e. Command, Folder, Image, MediaFolder and many more.

    Details of all these classes and more are available through SDN, especially useful in Windows Help format for the entire API as part of the documentation package.

Finally, just to continue the private jokes with Igloo, Julian has been kind enough to wait for us to do something on the shared server “when you’re finished playing Microsoft Flight Simulator”, and I’ve told him repeatedly that it’s actually The Sims we’re all hooked on. The pool trick I told Julian about last week, well I found the page where I learnt about it as a kid in my late teens (with no friends). On Sammys Kill your Sim tutorial (possibly the greatest title in SEO history) the example you see below has not been photoshopped.

 

Nice ass Jules

This is what will happen if Igloo commit code that breaks the build

LinkedInDiggRedditTumblrGoogle GmailPrintFriendlyEmailShare

Amazing feature of Google+ discovered!

At least I didn’t have to beg for invites again like with Wave or whatever it was, so yeah there’s this amazing new feature of Google+ that none of the other blogs will tell you about and I can only keep it to myself for so long. Share this with your friends, who may become a lot better looking.

Secret feature of Google+

 

Happy Friday!

LinkedInDiggRedditTumblrGoogle GmailPrintFriendlyEmailShare

Flying Rainbow Pop-Tart Cat (the MP3)

So it’s the latest meme from College Humour. All it needs is an MP3 for those nutty enough to want to listen to it more than once, twice or even a hundred times.

My gift to you; an attempt to see just how much traffic I can drive to my little corner of the interweb and a not-too-subtle attempt to drive a friend to full-blown psychosis (or at least his partner). I give to you, the Flying Rainbow Pop-Tart Cat… on MP3. Encoded at 192 kbps, so you can catch every little meow, in glorious MP3 so you can take with you on your journey through this world devoid of pop-tart cats.

Flying Rainbow Pop-Tart Cat MP3

Link will go offline if this gets too popular. ;)

Has anyone else noticed this song is extremely useful for doing repetitive work like data entry? Meow meow meow meow meow?

 

LinkedInDiggRedditTumblrGoogle GmailPrintFriendlyEmailShare

Firefox overtakes Internet Explorer in Germany

Das Spiegel Online

Good news!

LinkedInDiggRedditTumblrGoogle GmailPrintFriendlyEmailShare

A really good xkcd

I’m allowed to use a web comic as a blog post right?

xkcd: Creepy

xkcd: Creepy

Today is a good day, but I could use more sleep!

LinkedInDiggRedditTumblrGoogle GmailPrintFriendlyEmailShare

Why I deserve a Google Wave invite

Dear Google,

I believe I deserve a Google Wave invite far more than the other people who are desperately begging all over the ‘net, turning every tech forum into a gigantic, online slum for the Wave-deprived. Here are a list of reasons why I expect Lars Rasmussen to personally deliver my invite to me in Melbourne.

  • During the early days of Gmail beta I offered Gmail invites to friends who were using Hotmail for a small fee. This shows a history of taking advantage of Google’s ingenuity for my own personal profit and if given access I promise to do the same with Wave invites.
  • This included selling one to my own sister; “1 gig of storage for your emails doesn’t come cheap!”
  • Very few people know, or will admit, that I am actually the person responsible for the two o’s in the middle of ‘Google’. ;)
  • Sergey Brin lost the company to me in a game of rock-paper-scissors in 1999 but I was too busy becoming the world’s best Counterstrike player to take ownership of the domain.
  • Wave is useless if you don’t have friends, I have created more fake accounts to add to my friends list on Facebook than the average developer :p

Seriously, it does look very exciting, but personally I’m more interested in the mythical GDrive project and when Google think they might release this. With Microsoft now offering 25 gig free on Windows Live Skydrive, I don’t know how much longer I can wait for Google to make their offering in this space public.

PS. My google username is ronald80. Important I add that so you know where to send my invite!

LinkedInDiggRedditTumblrGoogle GmailPrintFriendlyEmailShare

Web browsers battle to convert IE6 users

Web browsers battle to convert IE6 users

Wikipedia: History of Internet Explorer

I wish I could be there to delete, format or physically destroy the very last IE6 installation in existence. Probably somewhere in the year 2027… at which point the resistance would send me back to Redmond in 2000 to stop Microsoft from attaching this thing to Windows in the first place.

LinkedInDiggRedditTumblrGoogle GmailPrintFriendlyEmailShare

Apple secrecy is damaging the brand

I’d be the last person who would call themselves an Apple fanboy but I don’t hate the company either. I own two iPods, use iTunes and was pretty close to buying an iPhone (opted for a HTC Magic, Android OS instead). I’ve had a chance to use Macbooks too so I like what they do overall, but it’s easy to see what happens when you don’t have a commitment to “not do evil” that Google aspires to.

Apple’s Chickenshit Approval Process Has Gone Too Far

Apple in hot water over ‘exploding iPhones’

Blocking competition from the Apple App Store is one thing, covering up exploding hardware is another, I’m a big supporter of open-platforms and would love it if my friends who have iPhones could have access to the same awesome Google apps I do.

I might not be a regular Apple fan but I’ll think even longer now before buying any more of their products, or using iTunes for music and movies. Incidentally, just the other week I rented a movie on iTunes for the first time.

It’s interesting to see how long they’re going to let this public relations disaster continue.

LinkedInDiggRedditTumblrGoogle GmailPrintFriendlyEmailShare

When 4Chan fails

Breaking: It’s not just Facebook. 4Chan hack Christian’s social network, email, Paypal accounts and more…

(updated) 4Chan launches embarrassing attack on devout Christians on Facebook

Why you need to be careful with programs that can post photos to Facebook. [REALLY NSFW]

This is why 4Chan are not a hacking group. What self-respecting hacker would post an innocent woman’s sex-toy order invoice without cropping out the person’s name and address? Also, it’s one thing to target Scientology but what exactly have these guys done besides being Christians? Not funny.

LinkedInDiggRedditTumblrGoogle GmailPrintFriendlyEmailShare

Switch to our mobile site