extensions

WCF WSDL Soap Header on all operations

By defining an attribute that implements IContactBehavior and IWsdlExportExtension and set that attribute on your service contract, you can easily add Soap Headers to your wsdl (see http://wcfextras.codeplex.com/ for more information) But now I need to set a Soap Header contract in the wsdl on all Operationcontracts and this time I cann...

php_pdo.dll and php_xsl.dll

Can these two items work together? php_pdo.dll and php_xsl.dll. I have a php server and it currently hosts a couple sites - one of which requires the php_xsl.dll to work. I am trying to install Piwik, but it says it needs php_pdo.dll and php_pdo_mysql.dll - whenever I add these to the php.ini file, it crashes both the piwiki site and ...

Effective Extensions for Development Wiki

Our small team of 3-4 developers uses a wiki for documentation and collaboration. I'm trying to put together a list of some solid extensions which would help make it better. We are using MediaWiki, but if you know of a good extension/plug-in for another platform I'd like to hear about that too. Thanks. Here is my list so far: Geshi...

How to Make a PyMe (Python library) Run in Python 2.4 on Windows?

I want to run this library on Python 2.4 in Windows XP. I installed the pygpgme-0.8.1.win32.exe file but got this: >>> from pyme import core Traceback (most recent call last): File "<stdin>", line 1, in ? File "C:\Python24\Lib\site-packages\pyme\core.py", line 22, in ? import pygpgme File "C:\Python24\Lib\site-packages\pyme\p...

PHP extensions not found

PHP keeps failing and telling me that its not finding the /ext/php_mssql.dll for some reason. Obviously, I checked the folder and it is very much there. I'm not sure why it is failing. Any suggestions? EDIT: I put the ntwdblib.dll into my php directory and the error that was giving went from "bad gateway. the specified cgi application ...

C#: Multiple type parameters in extensions

I was trying to create an extension that could slice any array-like class (since slicing is oddly absent in the standard libraries). For example: public static M Slice<M,T>(this M source, int start, int end) where M : IList<T> { //slice code } However, the compiled does not attach this method to objects of type M (even though its ...

What is the correct way to implement the NUnit 2.5 Constraint.Write*() methods?

Hello: I'm planning to implement my own set of constraints, and am having some difficulty understanding how to implement the following methods of the Constraint class. public abstract class Constraint { public abstract void WriteDescriptionTo( MessageWriter writer ); public virtual void WriteMessageTo( MessageWriter writer ); ...

PHP module uploadprogress installed but can't be detected

Hey all. I've successfully installed the php extension uploadprogress on my 1and1 acct. You can verify at www.mgxvideo.com/info.php. Using code I got from this site, I get the following error: Fatal error: Call to undefined function uploadprogress_get_info() Basically, you can view my code at progress.txt and upload.txt. I've spent ...

Extending PHP with C++?

I have a performance intensive routine that is written in PHP that I'd like to port to C++ for a performance increase. Is there any way to write a plugin or extension or something using C++ and interface with it from PHP? WITHOUT manually editing the actual PHP source? ...

Enable php5-curl on OpenSuse with Nginx

Hello, I have OpenSuse Server 10.3 with nginx for web server. I need to enable php5-curl. Installed it successfully. Then restarted web server, but nothing changed. Any ideas? Thank you ...

What language must I use for a Pidgin plugin?

I'm a relatively inexperienced programmer looking to make a plugin for the IM client Pidgin as a first major project. I've written a program in Python that has all the functionality I want, but I have not yet integrated GTK funtionality, so it can't affect the UI yet. In searching for how-tos on Pidgin plugins, I came across the C How-t...

Getting the name & extension of an uploaded file using python (google app engine)

I am using a form to upload files to the google app engine and store them in the datastore. l would also like to store the original file name and extension for presentation purposes. Is there a way of retrieving this data from the post sever side or can it only be gathered client side and sent as separate fields (e.g. http://www.tinyurl...

Sorting/Ordering of extensions of your Eclipse Extension Point

In Eclipse you can publish an extension point for downstream plugins to use. When looping through the extensions for your point, as returned from the registry, is there a way to know/control the order they are returned. How does eclipse find extensions, by order of files on disk?, name? Update: Someone asked why I would want to do this...

Where can I find out what the mime types are for these extensions?

I'm trying to set dynamic compression in IIS 7 and I know I want to enable compression for these file types (along with others): asmx and asjx. However IIS 7 wants their mime type not the extension. Does anyone know where I can find out what the mime-type is? The best I found is text/plain but I highly doubt that's correct. ...

Does .NET have a way of resolving a null string to String.Empty?

I've got a one line method that resolves a null string to string.Empty which I thought might be useful as an extension method - but I can't find a useful way of making it so. The only way I could see it being useful is as a static method on the string class because obviously it can't be attributed to an instance as the instance is null ...

Trace dynamic library calls of ruby C extension

For debugging purposes I want to get some call traces of a ruby app which uses an extension library to interface with a C lib. I found http://unroller.rubyforge.org/ which has nice output but not for the library calls. I want ltrace for ruby extensions. thx Update: I'm after a bug and don't know if its the ruby extension or external l...

why am i getting a SIGTRAP in gdb while debugging Ruby C extension?

I want to use rb_p() to aid in debugging a ruby C extension, but everytime i use it i get a SIGTRAP in gdb! here's an example: (gdb) p user_defaults $3 = 137559900 (gdb) call rb_p(user_defaults) {:fill=>true, :texture=>#} (gdb) n Program received signal SIGTRAP, Trace/breakpoint trap. is_a_hash (try_hash=137560420) at utils.c:65 (...

Plugin/runtime extension architectures

For languages what are some common ways of doing plugins or extending runtime code via user given modules/libraries/code...?? I was thinking of C/C++ but how other languages do this may be applicable as well. ...

XUL Testing Tools

Are there any tools for testing XUL? I'm using yui test for testing XPCOM. But I can't find any for XUL ...

Typo3 Extension Alphabetical site index - How to add additional wrap?

Add extra wrap in Alphabetical site index Situation described in the code. I think my problem is the right scope, but i don't how to solve it. Thanks a lot. # # Alphabetical site index # # @see http://typo3.org/documentation/document-library/extension-manuals/cl_alphabeticalindex/0.1.3/view/toc/0/# # @note typoscript/templates/ext/cl_...