Thursday, February 17, 2011

DotNetText C# Extension Methods

I uploaded a beta version of my Extension Method Library written in C# for Text.  It’s a Visual Studio 2010 project that contains numerous methods to simplify operations and manipulation of text strings. Plus a few fun things like IsAnagram().  It’s divided into Partial Classes where all or part of the project can be used as needed.

For the die-hard VB.Net users, yes I ported some common VB.Net methods into C#.  But, it allows for using just what you need. There's no need to reference VB.Net Assemblies. Check it out and let me know what you think.

DotNetText Extension Method Library

Monday, February 7, 2011

Using jQuery in Blogger

While I was experimenting with Windows Live Writer 2011 I started to wonder about using jQuery.  After a bit of trial and error I figured it out.

BTW, jQuery's rounded corner plug-in on this page didn't work in Internet Explorer 9 Release Candidate. It turns out that IE9 wouldn't use a script that started with "https://" but works with "http://" okay.

First, log-in to your blog and go to the Design section.  Click on Edit Html on the Design tab.
In the HTML Edit window go to the <!-- end outer-wrapper –> comment.  Just above there are two </div></div> tags. Between </div></div> and <!-- end outer-wrapper –> comment enter the following:
   1: <script src='http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.min.js' type='text/javascript'/>
   2: <script type='text/javascript'>
   3:         $(document).ready(function () {
   4:             var tag = &quot;[Your selector go here like #content-wrapper]&quot;;
   5:             $(tag).[Your jQuery Function]();
   6:         });
   7: </script>


I ran into problems using the jQuery selector after the $ so I just created a variable and that solved the problem.  Also, there’s other CDNs (Content Delivery Networks) like Google you can use in Place of Microsoft’s. You can see an older post that tells why I use a CDN.

You can look at the source of this page to see how I use the jQuery Corners plugin.

Happy computing…
Technorati Tags: ,,Writer 2011

Windows Live Writer 2011

I just stumbled into Windows Live Writer 2011 at: http://explore.live.com/windows-live-writer so I thought I would try it out.  It’s part of the Windows Live Essentials download.

You can easily insert Bing maps like this one below of the Mojave Desert.
Map picture
Cass Thoroughbred Ranch, Oro Grande, CA – Just South is the original Roy Rogers Ranch off of old Route 66.

Cool so far.  The plug-ins are equally as cool for tasks like mutliple posts and Tweeting to multiple accounts.