Friday, February 10, 2006

 

Microsoft Feed Manager Events Example [OPML]

Thanks to Matt Dotson, who gave some code up on GotdotNet that shows how to get the GetWatcher in the Feed Management Api to work.

I had a problem the other day with it. I couldn't get the Watcher attached to the feed. It was a simple casting problem and my misunderstanding of Interop.

Here is my code

FeedsManagerClass fmc = new FeedsManagerClass();
IFeed f = (IFeed) fmc.GetFeed("Internet Explorer Team Blog");
IFeedEvents_Event ife = (IFeedEvents_Event) f.GetWatcher(FEEDS_EVENTS_SCOPE.FES_ALL, FEEDS_EVENTS_MASK.FEM_FEEDEVENTS );
ife.FeedItemCountChanged += new IFeedEvents_FeedItemCountChangedEventHandler(ife_FeedItemCountChanged);
ife.FeedDownloadCompleted += new IFeedEvents_FeedDownloadCompletedEventHandler(ife_FeedDownloadCompleted);
f.Download();

Now my code works. I was casting to an FeedsWatcherClass rather than the IFeedEvents_Event interface.

Silly me.

Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , , ,

My Related Documents
, , , , , ,

Related Amazon Books
User Interface Design for Programmers: / Designing the User Interface: / Essential COM: / Developing Feeds with RSS and Atom: / Syndicating Web Sites with RSS Feeds for Dummies (For Dummies S.): / Beginning RSS and Atom Programming: / Hacking RSS: / Filtering the Web to Feed Data Warehouses: /

Related Images From Flickr

Thursday, February 09, 2006

 

Microsoft Feed Management API c# problems [OPML]

I am trying to use the Microsoft Feed Management API in IE7 Beta 2 and I am trying to hook up the a feed watcher event to see when the counts of items in a feed change.

However, I can't get past the following line:
FeedFolderWatcher fwc = new FeedFolderWatcherClass();

I get the exception:
Retrieving the COM class factory for component with CLSID {281001ED-7765-4CB0-84AF-E9B387AF01FF} failed due to the following error: 80040154

Which from what I can tell the CLSID is not installed on my system.

What can I do? Is this an install problem or a problem with the MFM API?
Does anybody have the full screen saver c# example so that I can see what is going on?

Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , ,

My Related Documents
, , , ,

Related Amazon Books
Programming C#: / Filtering the Web to Feed Data Warehouses: / Developing Feeds with RSS and Atom: / Beginning RSS and Atom Programming: / Hacking RSS: / RSS and Atom: Understanding and Implementing Content Feeds and Syndication: /

Related Images From Flickr

 

A Question about RSS Readers [OPML]

Does anyone know of any RSS readers that can filter out languages?

That is I would like an RSS reader that will only display English RSS items [or any other language that I choose to filter by]

Currently I use SharpReader which implements IBlogExtension, but that is about it. It doesn't provide an API to filter individual posts.

Maybe the Microsoft Feed Management API can help me out?

Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , , , ,

My Related Documents
, , , , ,

Related Amazon Books
Syndicating Web Sites with RSS Feeds for Dummies (For Dummies S.): / Beginning RSS and Atom Programming: / Hacking RSS: / RSS and Atom: Understanding and Implementing Content Feeds and Syndication: / Content Syndication with RSS: /

Related Images From Flickr

 

Note To Self [

http://blogs.msdn.com/heaths/archive/2006/02/08/528077.aspx

 

Google Adsense For Search Limits Use [In a Bad Way] [OPML]

With the introduction of IE7 Beta 2's custom search providers, I was hoping that I could implement an opensearch specification that will use all the parameters that hook up to my Google Adsense for search account. This way I could provide a site search directly within IE7 that hooks up with google's adsense for search and perhaps generate a little extra revenue.

Google does not allow it!


AdSense for Search. If You have elected to receive Search Results, You will display on Your Site(s) a Google search box (a "Search Box") in accordance with the specifications provided by Google. Each Web page(s) that contains a Search
Box must also contain other content related to Your Site. Except for related Google queries, all search queries (including queries entered into an Ad search box) must originate from individual human end users inputting data directly into a Search Box (or Ad search box, as applicable) on Your Site(s). You will send any and all queries (without editing, modifying, or filtering such queries individually or in the aggregate) to Google and Google will use commercially reasonable efforts to provide You with corresponding Search Results and/or Ads, as applicable and as available. Search Results and any accompanying Ads will be displayed on Web pages hosted by Google (each, a "Search Results Page"), the format, look and feel of which may be modified by Google from time to time.

If only Google allowed you to do this it would be great. Opensearch is an amazing idea, but google are stifling what I can do.

Ah well.

Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , ,

My Related Documents
, , ,

Related Amazon Books
Make Easy Money with Google: Using the Adsense Advertising Program: / The Search: How Google and Its Rivals Rewrote the Rules of Business and Transformed Our Culture: / Google's PageRank and Beyond: The Science of Search Engine Rankings: / Search Me: The Surprising Success of Google: / Winning Results with Google Adwords: /

Related Images From Flickr

 

IE Developer Tool Bar Beta 2 [OPML]

A Quote From the IEBlog.

Beta 2 of the developer toolbar is now available. Beta 2 includes numerous fixes to improve stability, usability and performance along with a couple of additional features such as the ability to enable and disable CSS on the page.

The developer toolbar has become an essential tool for us in diagnosing issues with web pages. Being able to click on an element in the page and find out where it is in the element hierarchy is just one of the invaluable facilities it provides.

Let us know if you have any feedback either here or at the Wiki on Channel 9 about the toolbar. We’d certainly like to hear of issues and suggestions for further improvements.

We did hear one report that the previous preview of the developer toolbar did not work with the recently released preview of beta 2 of IE7. However we have been unable to reproduce the issue. Do let us know if you have any issues with either IE6 or the IE7 preview so that we can thoroughly investigate them for final release.
Thanks
- Dave

It is a really handy tool, but it suffers from some serious flaws which bug me like crazy. [I have reported them too]. It simply can't outline elements in a frame correctly, all the offsets for the outlines are completly shot. Also, scollable div's seem to suffer from the same problem.

I also found if you disable CSS and then reneable it, the page is not rendered how it was originally.

Great tool but too many bugs still. Sort these issues out and I would say it is one of the best Developer tools ever :)

Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , , , , , ,

My Related Documents
, , , , , , , ,

Related Amazon Books
The ZEN of CSS Design: Visual Enlightenment for the Web: / Bulletproof Web Design: Improving Flexibility and Protecting Against Worst-Case Scenarios with XHTML and CSS: / Head First HTML with CSS & XHTML: / CSS Advanced Web Standards Solutions: / Professional CSS: Cascading Style Sheets for Web Design: / Eric Meyer on CSS: / The Computer Insectiary: A Field Guide to Viruses, Bugs, Worms, Trojan Horses, and Other Stuff That Will Eat Your Programs and Rot Your Brain: / Fatal Defect: Chasing Killer Computer Bugs: / No Bugs!: Writing Error-free Code in C and C++: /

Related Images From Flickr

Tuesday, February 07, 2006

 

Google Search: Are switchmedia any good [OPML]

One of the Google searches that came to my site was "are switchmedia any good?"

I have been a customer for a while now and I have had no problems at all. They are very web hosting company. I have seen some of the sites they have done, and they look great too.

This site is a template off Blogger that I use.

Technorati Tags
[feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , ,

My Related Documents
,

Related Amazon Books
Web Hosting Manual - How To Start Your Own Web Hosting Business: / Strategies for Web Hosting and Managed Services: / The Web Hosting Manager: / Web Hosting: A Complete Strategy: / Understanding Web Hosting on Linux: /

 

IE7 Beta 2 Select Boxes [OPML]

Remember how in IE6, when you had a SELECT box on the screen it would be rendered as the top most element, this affected menu systems because the select box would appear over the menu and it would look really bad.

Well not anymore, IE7 Beta 2 seems to have fixed this.

Read http://blogs.msdn.com/ie/archive/2006/01/17/514076.aspx for more information, I have checked it out and it works pretty well it seems.

I have not tried any extra CSS styles but I hope they work.

Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , ,

My Related Documents
, , , , , ,

Related Amazon Books
The ZEN of CSS Design: Visual Enlightenment for the Web: / Bulletproof Web Design: Improving Flexibility and Protecting Against Worst-Case Scenarios with XHTML and CSS: / Head First HTML with CSS & XHTML: / CSS Pocket Reference: / HTML for the World Wide Web with XHTML and CSS: Visual Quickstart Guide: / Explorer's Guide to the Semantic Web: / Windows Longhorn Developer Beta Preview: / Microsoft Internet Explorer 7: Introductory Concepts and Techniques: / Course Ilt Internet Explorer 7: / Internet Explorer 7: Basic: /

Related Images From Flickr

Monday, February 06, 2006

 

Microsoft Feed Manager API [OPML]

Is it me or is the Microsoft Feed Manager API not a Managed API? I have just read through it and it all seems to be COM based.

What has happened to Microsoft "policy" of creating nearly everything for Vista via Managed Code? Additionally, condsidering RSS is XML and .Net Handles XML like nobodies business I would have thought a managed API was a no-brainer. All this means that I have to Interop just to use this new feature.... give me a break.

Am I being silly?

Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , , , , , , ,

My Related Documents
, , ,

Related Amazon Books
Professional ASP.NET 2: / Programming C#: / Build Your Own ASP.NET Website Using C# and VB.NET: / Service-Oriented Architecture: Concepts, Technology, and Design: / MCAD Training Guide 70-320: Developing XML Web Services and Server Components with Visual C#.NET and the .NET Framework: / Content Syndication with RSS: / RSS and Atom Hacks: / Secrets of RSS: /

Related Images From Flickr

 

IE7 Font Rendering [OPML]

I have been playing around a bit with Internet Explorer 7 Beta 2 and one of the first things that I noticed about it [other than the new UI] is that the fonts seem to render with ClearType. It was a bit of a shock because it was really subtle at first but now I really notice the difference. If you have IE7 Beta1 and goto http://news.bbc.co.uk and then try it with Beta2 you will see exactly what I mean.

Sweet.

I also found a link on the IE Blog about what has changed [http://blogs.msdn.com/ie/archive/2006/02/03/524367.aspx].

Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , ,

My Related Documents

Related Amazon Books
Microsoft Internet Explorer 7: Introductory Concepts and Techniques: / Course Ilt Internet Explorer 7: / Internet Explorer 7: Basic: / New Perspectives on Microsoft Internet Explorer 7, Brief: / Windows Longhorn Developer Beta Preview: /

Related Images From Flickr

 

Updated Answer to CSS Regex Question [OPML]

I gave out a bit of duff information in my last post. Thanks Rasmus!

The code should have been:

string css = @"
.class1{
color:pink;
}
.class2{
color:blue;
}";
string patt = @"\.[-]?[_a-zA-Z][_a-zA-Z0-9-]*|[^\0-\177]*\\[0-9a-f]{1,6}(\r\n[ \n\r\t\f])?|\\[^\n\r\f0-9a-f]*";
MatchCollection arr = Regex.Matches(css, patt);
}


The "arr" Collection will contain all the class names found in the input string. arr.Count will be the number of matches, and it can be indexed like so: arr[0].Value etc. etc.

Sorry about that :)


Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , ,

My Related Documents
,

Related Amazon Books
The ZEN of CSS Design: Visual Enlightenment for the Web: / CSS Pocket Reference: / Professional CSS: / Eric Meyer on CSS: /

Related Images From Flickr

 

Answer to CSS Regex Question [OPML]

I have had a question in my Comments by Rasmus about CSS Regex for obtaining CSS class names. And rather than post it in the comments, I will post it as abn entry just so everyone can see it.

The Regex I gave was
\.[-]?[_a-zA-Z][_a-zA-Z0-9-]*|[^\0-\177]*\\[0-9a-f]{1,6}(\r\n[ \n\r\t\f])?|\\[^\n\r\f0-9a-f]*

I think this is nearly correct and the C# that it is not supposed to work with is:


string css = @"
.class1{
color:pink;
}
.class2{
color:blue;
}";
string patt = @"\.[-]?[_a-zA-Z][_a-zA-Z0-9-]*[^\0-\177]*\\[0-9a-f]{1,6}(\r\n[ \n\r\t\f])?\\[^\n\r\f0-9a-f]*";
string[] arr = Regex.Split(css, patt);
}

I tried the above code and it worked as Expected, there is an array entry in arr at the index of each class. Therefore each entry in arr contains the text between the class names.

Try Regex.Match if you want to get at the names of the classes. And Check that the | character comes out correctly.

Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , ,

My Related Documents
,

Related Amazon Books
The ZEN of CSS Design: Visual Enlightenment for the Web: / CSS Pocket Reference: / Professional CSS: / Eric Meyer on CSS: /

Related Images From Flickr

This page is powered by Blogger. Isn't yours?