Calender
<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910
Posted by: Jason | Created on: 21/05/2009, 19:43

I have a first generation Kindle and absolutely love it.  I recently purchased a 16GB SDHC card for other purposes but decided to see if it works in my Kindle just for giggles.  I've read enough to know that anything above 2GB is hit or miss on the kindle so I was NOT holding my breath but amazingly.. it works!  16GB is a bit insane but for those of you hunting for a way to store ... I dont know ... a GAZILLION books on your kindle.. Here is the link on TigerDirect to the one I bought that works for me.  I make no promises as I don't know if it's a fluke or what, but good luck.

 

 

Posted by: Jason | Created on: 21/05/2009, 19:09

For some odd reason google maps doesn't show you the lat/lon as your browsing around the map.  Occasionally I've wanted to have that information since often times I'm trying to reference a point way out in the woods for a backpacking trip or whanot.  A quick and handy way to get that information is:

 

  1. Google map your way to the spot in question.  Make sure the map is centered on the exact spot your after, (such as a trialhead or destination :)
  2. paste the following into the address bar of your browser.
  • javascript:void(prompt('',gApplication.getMap().getCenter()));
... and there is your lat/lon in a nice javascript alert box.  Enjoy.

j

 

Posted by: Jason | Created on: 12/05/2009, 19:16

While doing something very rudimentary: adding dynamic tags to some ASP.NET pages for SEO purposes (title, description, keywords, etc ... you know ... the usual suspects), the dynamically created controls were malformed in the following ways

 

  • the <meta> tags had no trailing "/".  
    • <meta name="description" content="some content"> should be <meta name="description" content="some content" />
  • A coworker tried to set the content attribute inline like this:  <meta name="description" content="<%=contentvar%>" /> and the generated code looked like this
    • <meta name="description" content="&gt;%=contentvar%>">
      • notice the <% token get interpreted as HTML and replaced with the encoding for greater than.
      • also notice the trailing "/" still gets removed even though it's clearly written into the aspx file
It was by pure chance that I noticed the following line of code in my web.config.
  • <xhtmlConformance mode="Legacy"/> 
It turns out Visual Studio puts this line of code in your web.config for you when migrating from VS 2003 to VS 2005.  This was quite a while ago as we've been on Vs 2008 for quite some time now.

Removing that line fixed the problem, now I simply have to regression test the entire site to see if removing that line breaks something else.  Greeeaat.

Here is a link to Scott Gu's blog post that is related and helpful, but does not address my exact issues:  


 

Posted by: Jason | Created on: 12/05/2009, 04:59

In order to view the photos and videos, you have to be logged in.

If you do not have a login, please email me and request one.

Thanks!

jason

jason@roodev.com