Scott Hanselman

Added Search to my Blog, PLUS Highlighting

January 10, '04 Comments [5] Posted in ASP.NET | DasBlog | Javascript | XmlSerializer
Sponsored By

Chris Brooks mentioned today that I need to add Search to my blog.  Until I get my Google Juice up, he's totally right.  So, I added the new dasBlog 1.5 standard search (notice the search box to the left) and then took the Google Highlighting javascript code and modified it thusly:

function googleSearchHighlight() {
if (!document.createElement) return;
ref = document.referrer;
//START Added by Scott Hanselman
if
(ref.indexOf('?') == -1 || ref.indexOf('hanselman.com') != -1) //catch when I'm my OWN referrer!
{
ref = document.location.href;
if (ref.indexOf('?') == -1) return;
}
//END Added by Scott Hanselman
qs = ref.substr(ref.indexOf('?')+1);
qsa = qs.split('&');
for (i=0;iqsip = qsa[i].split('=');
if (qsip.length == 1) continue;
if (qsip[0] == 'q' || qsip[0] == 'p') { // q= for Google, p= for Yahoo
words = unescape(qsip[1].replace(/\+/g,' ')).split(/\s+/);
for (w=0;whighlightWord(document.getElementsByTagName("body")[0],words[w]);
}
}
}

So this will highlight words on my site when you search from Google, Yahoo, or use the internal search.  
Give it a try!  Here's a link that searches for XmlSerializer.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Tragedy! My Watch has been delayed!

January 9, '04 Comments [10] Posted in Musings
Sponsored By

I know that most of you, especially Mike Gunderloy, have been waiting with bated breath for the arrival of my Geek (Dork) Watch. :) Certainly it should have arrived yesterday, you say?  No no. 

 
Status: Exception

Tracking Number: 1Z ------------------
Service Type: NEXT DAY AIR SAVER

 
Package Progress:
Date
Time
Location
Activity
Jan 9, 2004
8:00 A.M.
SEATTLE, WA, US
ADVERSE WEATHER CONDITIONS DELAY
7:55 A.M.
SEATTLE, WA, US
DEPARTURE SCAN
6:00 A.M.
SEATTLE, WA, US
ADVERSE WEATHER CONDITIONS DELAY
5:49 A.M.
SEATTLE, WA, US
ARRIVAL SCAN
4:20 A.M.
LOUISVILLE, KY, US
DEPARTURE SCAN
2:45 A.M.
PORTLAND, OR, US
ADVERSE WEATHER CONDITIONS DELAY
12:11 A.M.
LOUISVILLE, KY, US
ARRIVAL SCAN
Jan 8, 2004
9:20 P.M.
DALLAS/FT. WORTH A/P, TX, US
DEPARTURE SCAN
7:35 P.M.
DALLAS/FT. WORTH A/P, TX, US
ORIGIN SCAN

You know what the real irony of this is?  If I had the watch NOW, I'd have been instantly notified of this delay... ;)

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

One other thing: I'll be in NYC with INETA on the 15th

January 9, '04 Comments [1] Posted in ASP.NET | INETA | Learning .NET | Web Services | Speaking
Sponsored By

Ah...I forgot, I'll be speaking in NYC at the New York City .NET Users Group next week on Jan 15th.  Its at Microsoft at 1290 Avenue of the Americas (the AXA building - between 51st/52nd Sts.) on the 6th floor. 

I'll be giving my infamous:

Zen and the Art of Web Services

I'll talk a little about the ramifications Indigo and WSDL 2.0, but really, if you're doing Web Services TODAY you'll need to know about the WS-I and the basics.  So, we'll probably start with a historical view starting with the Primordial Ooze and working up to that afternoon.  My talks are very interactive, much like Nickelodeon so even if you're a Web Services Pro, you'll still have fun.

Should be fun, please stop by!

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Anyone going to VSLive?

January 9, '04 Comments [0] Posted in ASP.NET
Sponsored By

I'll be at VSLive!/ASPLive! again this year!  It's always such an interesting crowed at the Live! events.  Again ASPLive! is organized by the very cool and clever Chris Kinsman. (who also suffers from the same Google Problem I do - maybe there's a OTC cream available?)

It's a great Agenda in SFO this year with Ken Getz, Andrew Brust, Paul Sheriff, with Don Box Keynoting the first day. 

If you're in town, come hang out with me on Thursday night!

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Google Juice? Hardly.

January 9, '04 Comments [5] Posted in Musings
Sponsored By

Can someone explain to me why in the name of all that is Google does a search for Scott Hanselman (even via Google Dance) that my LONG ABANDONED Radio Weblog shows up first?  For crying out loud, my posted-to-twice Longhorn Blog is second!  Sigh.  I'll need to keep paying Dave until I figure this out.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.