Archive

Archive for the ‘Web Programming’ Category

How to statically link the C++ REST SDK (Casablanca)

April 1, 2014 12 comments

You are trying to use the C++ REST SDK (Casablanca) in your Windows application. You have one of the following problems:

  • you need Windows XP support
  • when your code executes you receive a debug assertion: _pFirstBlock == pHead
  • you get unpredictable behaviour or random crashing
  • you need to build an application which links against static libraries

You have 30 minutes to solve the problem. Here is how:

The issue is that the C++ REST SDK only supports dynamic linking. The solution is to re-build the SDK with static linking. Read more…

AJAX JavaScript Control (2012 Update)

May 18, 2012 1 comment

AJAX Control lets you quickly embed AJAX controls using text, XML and XSLT in a variety of ways to your web pages. Read more…

IE7 Conditional Comments and XSL

March 18, 2008 Leave a comment

About conditional comments

Conditional comments in Internet Explorer 7 are a way to ensure only IE or non-IE browsers parse certain parts of a page. This is mostly used to include CSS compatibility hacks by way of a <link> element in the page header, but they can in fact wrap any amount of HTML anywhere in the document. Read more…

SharpTools: HTTP, GET, POST, uploading files and cookie/session authentication in C#

January 26, 2008 2 comments

SharpTools is a general tool library for C#. This release simplifies using HTTP GET, POST, uploading files and cookie persistence when writing .NET applications in C#. Read more…

Drupal RSS feeds in Internet Explorer 7

November 21, 2006 3 comments

Anybody who’s used Internet Explorer 7 for reading RSS feeds has probably noticed something annoying: it doesn’t support feeds with DTDs (Document Type Definitions).

Ironically, Outlook supports RSS feeds with DTDs but the functionality was conservatively disabled in IE7 due to concerns about Denial of Service attacks (reference: Internet Explorer Chats (12 October 2006)).

Here’s a quick hack to make RSS feeds genreated by Drupal work in IE7:

    1. Open modules/node.module
    2. Towards the end of the function node_feed(), comment out the DTD line as shown:
      $output = "<?xml version=\"1.0\" encoding=\"utf-8\"?>
      ";
      
      // Comment out this line to disable DTD declaration
      // $output .= "<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC \"-//W3C//ENTITIES Latin 1 for XHTML//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent\">]>
      // ";
      
      $output .= "<rss version=\"". $channel["version"] . "\" xml:base=\"". $base_url ."\">
      ";
      $output .= format_rss_channel($channel['title'], $channel['link'], $channel['description'], $items, $channel['language']);
      $output .= "</rss>
      ";
      

      In Drupal 4.6.5, this can be found approximately on line 1172 of the code.

Now go to your feed URL again, and you should be able to successfully subscribe in Internet Explorer 7. Hope this helps somebody!

PHPCron: Running scheduled tasks from PHP on a web server

October 17, 2006 8 comments

PHPCron is a simple PHP script which lets you run multiple tasks on a schedule or timer. It can be run either from the command-line or via a web browser. Its behaviour is very similar to the popular¬†cron¬†program for UNIX. Read more…

Categories: PHP, Releases, Web Programming Tags: , ,

Automatic WSDL Generation in PHP 5

July 27, 2006 4 comments

WSDL Writer allows you to seamlessly create SOAP/XML web services in PHP which are interoperable with Java, C# and other languages. Supports SOAP headers, binary attachments, arbitrary depth object and array hierarchies, and produces WSDL files that can be imported into Visual Studio. Read more…

%d bloggers like this: