Sunday, June 10, 2007

You need to use a Key for Google's AJAX search.  This key happens to be per domain sub folder.  Since you can get to my site via thisoldcode.net or thisoldcode.microfisch.com Googles search would throw an error depending which entry point you enter.  I don't seem to have the ability to forward all thisoldcode.microfisch.com traffic to thisoldcode.net ( I should but the godaddy settings are not taking).  In the search api documentation they load the search via a js file with a hard coded key.

<script src="http://www.google.com/uds/api?file=uds.js&amp;v=1.0&amp;key=This Old Code Key" type="text/javascript"></script>

so I added a simple JavaScript function to dynamically write this include based on the website entry point.

    function SetGoogleSearchKey()
{
var DomainKey = 'This Old Code Key';
if( document.domain == "thisoldcode.microfisch.com" )
DomainKey = 'Microfisch Key';

var ScriptTag = 'script';//trick the bloody browser. document.write('<' + ScriptTag + ' src="http://www.google.com/uds/api?file=uds.js&amp;v=1.0&amp;key=' + DomainKey + '" type="text/javascript"></' + ScriptTag + '>');
}
 

It would have been nice if Google's JS script file did not display an alert when it cannot load do to the key error. I would have simply allowed thisoldcode.microfisch.com to have the search. after all I don't really need two. But its cool.

posted by Aaron Fischer on Sunday, June 10, 2007 3:50:47 PM (Pacific Standard Time, UTC-08:00)   #    Comments [0]
 Friday, June 08, 2007

 

So what happens when Mr. Spock falls asleep in a sitting position?

BBC NEWS | Health | Patient bleeds dark green blood

posted by Aaron Fischer on Friday, June 08, 2007 5:44:03 AM (Pacific Standard Time, UTC-08:00)   #    Comments [0]
 Thursday, June 07, 2007

There was a new drop of the AJAX Control Toolkit 10606 release.

for more details about what was included see Delay's notes.  If you would like pics with that visit Shawn's notes.  And just to play with the new coolness.

posted by Aaron Fischer on Wednesday, June 06, 2007 11:44:31 PM (Pacific Standard Time, UTC-08:00)   #    Comments [0]

I have set the blog address to thisoldcode.net with some luck it will make this blog searchable.  I also added windows live search :( no Google search.  Why because I could not get Google form based search to work on this blog, live on the other hand uses some nifty java script and worked with out a problem. ( maybe the search box should resize with the page.)

I look forward to seeing a nice search from Google that rival the look of live search and ease of setup.

posted by Aaron Fischer on Wednesday, June 06, 2007 11:22:41 PM (Pacific Standard Time, UTC-08:00)   #    Comments [0]
 Wednesday, June 06, 2007

 

courant.com | Amero Granted New Trial

Go figure Computer experts know more then a police stations self proclaimed computer expert.

The judge cited a forensic computer analysis conducted by the state police crime lab - conducted after the guilty verdict - to support the argument that the verdict should be set aside. She said the lab report "contradicts testimony of the state's computer witness."

It doesn't look like there will be a new trial thankfully.

Prosecutor Smith said state would take no position on Dow's motion for a new trial, making it unlikely she will be tried again. Smith also acknowledged that erroneous information about the computer was presented during trial.

Evidently if people opine it is an attempt to improperly influence the court.

Judge Strackbein criticized the bloggers today, saying they tried to "improperly influence" the court.

I think Strackbein should lose her job over that comment.  Its a free country and an open court. the trial was over for the criminal conviction.  The one thing that is clear to me, Amero was jury was her peers the held a very naive view about what unscrupulous people can do with modern technology.

posted by Aaron Fischer on Wednesday, June 06, 2007 9:31:18 AM (Pacific Standard Time, UTC-08:00)   #    Comments [0]
 Saturday, June 02, 2007

Jeff likes this comparison of Background compilation to background spell checking(Background Compilation and Background Spell Checking).

 

Perhaps the my issue is not with the concept of background compilation but its current implementation. Background compilation is some what slow process on my machines.  If I trigger it, I will be forced to wait 15-20 seconds before I can do any thing in that IDE.
I remember a time when the red squiggly first appeared in Word and I turned it off because it was to slow.  Unlike Jeff and Ian my spelling and grammar are atrocious.  back ground spell check is now at the point where it really is seamless.   And a great benefit to my written communication.  I find its most beneficial feature is that it offers practical suggestions to my mistake as apposed to just flagging the word.  Grammar check on the other hand, well we just don't get along

posted by Aaron Fischer on Saturday, June 02, 2007 7:36:46 AM (Pacific Standard Time, UTC-08:00)   #    Comments [0]
 Friday, June 01, 2007
Long behold Microsoft has a reason for their Surface demos to still being in Flash

# re: Microsoft Surface and WPF

Wednesday, May 30, 2007 8:06 PM by ScottGu

Hi Portman,

The www.microsoft.com/surface site above is still in Flash, but will move to Silverlight (along with the other parts of Microsoft.com) once Silverlight 1.0 ships this summer.  

Some companies ban installing beta software on client machines, which is why for really big announcements we still need to use non-Silverlight solutions in the interim.  We are, though, starting to pilot using Silverlight on www.microsoft.com for "opt-in" scenarios already, and will use it in a lot more places once the final 1.0 release ships.

Hope this helps,

Scott

go figure.
posted by Aaron Fischer on Friday, June 01, 2007 1:31:30 PM (Pacific Standard Time, UTC-08:00)   #    Comments [0]

ARIN love the name too.

Ripe

posted by Aaron Fischer on Friday, June 01, 2007 1:23:59 PM (Pacific Standard Time, UTC-08:00)   #    Comments [0]
 Thursday, May 31, 2007

I guess I don't get this Google Gears thing.  This morning Scott posted Google Gears - Maybe all Rich Internet Applications needed was Local Storage and an Offline Mode

RIA I see but for offline storage?

My response was Cookies 2.0 to which Carlos  reply's

Cookies 2.0?
Have you even looked at SQLite? You can stuff all sorts of things in the database and get it back out via SQL.
You can build a synchronizing n-tier web app on the desktop. If the thought of that doesn't make you drool, nothing will.

I actually use SQLite a lot, there are things I like and things I don't but as a local data store for RIA its a fine choice.  Google providing a simple framework for access via JavaScript is great.  But unless my app is written in 90% JavaScript client side what good is this Gears thing in the offline world?  I perused the frame work and I don't see any Synchronization.  So yes Cookies 2.0 I can store much more rich information on your computer and I will be able to deliver some very compelling user experience, all with a relatively speaking easy API.  I am just not seeing what this has to do with an offline environment.

posted by Aaron Fischer on Thursday, May 31, 2007 7:07:00 PM (Pacific Standard Time, UTC-08:00)   #    Comments [0]