Wednesday, November 14, 2012

How to parse html tag by HTML Agility pack?

 http://www.codeplex.com/htmlagilitypack
 
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(@"<html><body><p><table id=""foo""><tr><th>hello</th></tr><tr><td>world</td></tr></table></body></html>");
 
foreach (HtmlNode table in doc.DocumentNode.SelectNodes("//table")) {
    Console.WriteLine("Found: " + table.Id);
    foreach (HtmlNode row in table.SelectNodes("tr")) {
        Console.WriteLine("row");
        foreach (HtmlNode cell in row.SelectNodes("th|td")) {
            Console.WriteLine("cell: " + cell.InnerText);
        }
    }

CDN for jquery UI themes

http://stackoverflow.com/questions/1348559/are-there-hosted-jquery-ui-themes-anywhere



  • base: Google CDNMicrosoft CDN
  • black-tie: Google CDNMicrosoft CDN
  • blitzer: Google CDNMicrosoft CDN
  • cupertino: Google CDNMicrosoft CDN
  • dark-hive: Google CDNMicrosoft CDN
  • dot-luv: Google CDNMicrosoft CDN
  • eggplant: Google CDNMicrosoft CDN
  • excite-bike: Google CDNMicrosoft CDN
  • flick: Google CDNMicrosoft CDN
  • hot-sneaks: Google CDNMicrosoft CDN
  • humanity: Google CDNMicrosoft CDN
  • le-frog: Google CDNMicrosoft CDN
  • mint-choc: Google CDNMicrosoft CDN
  • overcast: Google CDNMicrosoft CDN
  • pepper-grinder: Google CDNMicrosoft CDN
  • redmond: Google CDNMicrosoft CDN
  • smoothness: Google CDNMicrosoft CDN
  • south-street: Google CDNMicrosoft CDN
  • start: Google CDNMicrosoft CDN
  • sunny: Google CDNMicrosoft CDN
  • swanky-purse: Google CDNMicrosoft CDN
  • trontastic: Google CDNMicrosoft CDN
  • ui-darkness: Google CDNMicrosoft CDN
  • ui-lightness: Google CDNMicrosoft CDN
  • vader: Google CDNMicrosoft CDN


  • How to solve problem, jQuery UI datepicker not working in IE9?

    http://rayaspnet.blogspot.ca/2011/12/how-to-avoid-quirks-mode-in-ie.html

    Put this line into the first place
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
    </head>


    or set this meta tag in IIS server into HTTP response headers.

    Reference:
    How to avoid compatibility view and quirk mode in IE?


    Synchronizing webpages across devices with SignalR

    http://lostechies.com/erichexter/2012/10/30/synchronizing-webpages-across-devices-home-automation/