Archives for January 2009

Broken Gravatar in GraffitiCMS and the Solution

Somewhere along the path of setting up my blog using GraffitiCMS, I found that you can enable gravatars in the comments. The sample code I picked up looked like this.

$macros.gravatar($comment.Email, $comment.Username, $comment.IPAddress, "%{size ='60'}")

and it was working great for me until today.

I knew Rory had a gravatar setup, but it wasn’t rendering. He suggested (on twitter) that I wasn’t asking for his gravatar with a lower case email, which I wasn’t. A quick script change (adding ToLower()) to the code above fixed the solution.

$macros.gravatar($comment.Email.ToLower(), $comment.Username, $comment.IPAddress, "%{size ='60'}")

Lesson 1: Gravatar’s require lower case emails.

Lesson 2: Graffiti Chalk allows for string calls inside the $() methods, like the ToLower() call. While I didn’t try the others, I imagine that ToUpper(), SubString() and others will work just fine.

Cox Cable Redirecting (Stealing???) Microsoft Live Searches???

This has been driving me nuts for a few months, and I finally got to the bottom of it. I have Live search as my default in Internet Explorer 8. To be honest, I use both Live and Google on a regular basis, they both do great things for me.

Anyway, if I search from the search node [CTRL]+E everything works fine.

If I search from the Address bar [CTRL]+D and I have Live search as the default search provider, then Cox hijacks the search, and shows me a Yahoo search, that is branded by Cox.

There isn’t anything in me that thinks this is ok. Is it possible that Microsoft and Cox Cable have an agreement that let’s them do this, or are they just being shifty?

If a picture is worth a 1000 words, then this video is priceless.

UPDATE:

This only happens in IE. I’ve tested Firefox, Chrome, and Safari. All do native searches. ONLY IE, and ONLY when Live Search is the default provider. Other searches go throguh just fine and return native results. Sure seems like Microsoft is being targeted here. Microsoft customers rather, since they’re going after all the default users.

#35 Details on Outlining in Visual Studio

Onlining,Onlining,Onlining. You know the little [+] in the left margin of your code in Visual Studio? That is called outlining, and if you click the [+] your code region will expand, and the icon changes to a [-]. Pretty straight forward. But did you know you can do all of this from the keyboard, without using the mouse? Check out video trick number #35 to see how it all works.

[CTRL][M]+[CTRL][M] Toggle Expand|Collapse region section

[CTRL][M]+[CTRL][L] Toggle Expand|Collapse document

[CTRL][M]+[CTRL][P] Turn off outlining

[CTRL][M]+[CTRL][O] Toggle Expand|Collapse to definition

This work is licensed under a Creative Commons license.

What’s new in jQuery 1.3? Drew Douglas Answers

This is well worth your time, Drew Douglass spends a few minutes creating a very detailed post about what’s new in jQuery.

http://nettuts.com/tutorials/javascript-ajax/everything-you-need-to-know-about-jquery-13/

This post (well he was already but …) puts Drew Douglas on the map.

Great Job!

#34 Cut and Paste Collapsed code in Visual Studio

Outlining is a very popular feature of Visual Studio. Outlining is the [+] sign you see in Visual Studio on the left margin that lets your collapse and expand code. What happens if you select 3 visual lines of code, and the middle line of code is actually a collapsed region? Watch this video to find out 🙂

[Read more…]