A Quick C# Question: Sealed classes
If you have a sealed class are all the methods inside the sealed class also typed as sealed.I am asking this because I have some virtual functions inside an abstract class that I would like to seal, I don’t want the class to be extended so sealing the class makes sense. Therefore if I just seal the class can all the methods be considered sealed by the JIT’er or do I have to seal the methods too.
Google Search Query: internet explorer 7 favorites
A user visited my site with the Query “internet explorer 7 favorites”. My original content for IE7 favorites was with Beta 1, so I thought that it was only fair that I provided an update not that Beta 2 is on the streets.I had two major problems: The favorites menu when open would crash IE7 Beta 1 The favorites menu when extremly large would file the screen and you couldn’t see what was happening.
Internet Explorer Browser Objects in C#
Rich Crane reports that he has posted the Code to Internet Explorer Browser Modules along with some examples.It looks like a pretty cool framework for getting .Net to interact with Internet explorer. I can’t wait to have a play, and not have to worry about me handling all the COM interop etc [it is already done in this framework]. I did notice that the number of Browser Events that are available seems to be less than what IE exposes.
Rabbits
This is just a shout for one of my friends.If you are into rabbits [i.e the animal] the check out http://nibblin.com, it is a forum for rabbit owners and enthusiasts. It has a nice comunity already.
Microsoft Feed Manager Events Example
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 codeFeedsManagerClass fmc = new FeedsManagerClass(); IFeed f = (IFeed) fmc.GetFeed(“Internet Explorer Team Blog”); IFeedEvents_Event ife = (IFeedEvents_Event) f.
A Question about RSS Readers
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?
Google Adsense For Search Limits Use [In a Bad Way]
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.
IE Developer Tool Bar Beta 2
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.
Microsoft Feed Management API c# problems
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: 80040154Which from what I can tell the CLSID is not installed on my system.
Note To Self
http://blogs.msdn.com/heaths/archive/2006/02/08/528077.aspx
Google Search: Are switchmedia any good
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.
IE7 Beta 2 Select Boxes
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.
Answer to CSS Regex Question
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;
IE7 Font Rendering
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.
Microsoft Feed Manager API
Is it me or is theMicrosoft 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….
Updated Answer to CSS Regex Question
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 :)
Simple List Extensions
Does anyone know if there are any applications that implement and use Microsoft’s Simple List Extensions for RSS? I am trying to work out how the extensions could be used to good effect.
IE7 Beta 2
In the past I have written about the IE7 Beta’s. Well, it is time to do it again :) By Following from the IEBlog post you can download Beta 2 of Internet Explorer 7 [http://www.microsoft.com/windows/ie/ie7/].Stay tuned for my impressions. :)
Regex To Get Class Names From CSS 2.0
I have just read part of the CSS 2.0 spec and to tie in with one of my side projects about creating a CSS 2.0 parser in c#, I have created a regex [based off the spec] that should find all the class names in a CSS file..[-]?[_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 intend to create more regex’s over the next few days to parse all the other elements that appear inside the CSS spec.
CSS C# Token Reader
I was just reading the CSS 2.1 with the aim to create a CSS token reader in C#. It is a pretty tough document to get through. It defines the sytnax of a CSS file and provides regex’s that could be used to read the CSS correctly.It will however take me a little while to get anywhere with it though :)