extension

Extending Visual Studio

How can I extend Visual Studio or create a macro that allows me to generate a local resource for all pages automatically? I have about 500 pages and UserControls, and it's difficult to generate resources for every page individually ...

Is there any way to create default property implementations for C# interfaces

I like the technique of creating extension methods against interfaces to provide default functionality. One of the places it is very handy is in putting some meat on dummy classes for unit tests. For example, public interface IEmployee { IAddress Address { get; set; } IAddress GetAddress(); void SetAddress(IAddress addres...

Viewing XAML from a compiled DLL

I'm trying to develop a Visual Studio 2010 extension and it would be a lot easier if I could see what the Visual Studio XAML looks like. I used Reflector and the BAML disassembler but that didn't seem to give me what I want. The URI for the XAML file I'm looking for is: Microsoft.VisualStudio.Shell.UI.Internal;component/mainwindow/mainw...

How to call a dot net asssembly / namespace in XSLT

I am writing dot net code within my XSLT. It gives me below error when I call any namespace OR write "using" directive within XSLT. Error- "Could not recognize 'com.myassembly' " Is it possible to use any assembly within xslt? ...

dot net namespace error in XSLT 2.0

I get below error on calling dot net code within my XSLT file error: The type or namespace name 'com' could not be found in the global namespace (are you missing an assembly reference?) This is code snippet- <msxsl:script language="C#" implements-prefix="callCode"> <msxsl:using namespace="global::com.myassembly.crs.app.services.conten...

.us domain extension vs .com or .net

I have a specific domain name that I would like to purchase. Both the .com and .net versions are owned by different people. I have contacted both owners, and here are the price tags: .com - $25,000 .net - $4,000 Or I could purchase the .us domain name for $10. There's no way I would consider paying that amount for the .com but I mi...

Editing pure JavaScript extensions directly in Chromium

I'm developing a JavaScript extension for Chromium and my current workflow is: Edit file Uninstall old file Install new file Test file Is there a quicker way of doing this? I'm using chromium-browser_5.0.375.125 in Ubuntu 10.04. ...

python c extension for standard deviation

I'm writing a c extension to calculate he standard deviation. Performance is important because it will be performed over large data sets. I'm having a hard time figuring out how to get the value of pyobject once I get the item from a list. This is my first time writing a c extension for python and any help is appreciated. Apparently ...

Can I change the accepted extensions by PHP?

I'd like to accept other type of files that contains PHP code. For example, it would be nice to read an .aspx file by PHP as if it were .php. Could it be possible? Thank you very much in advance ...

Can I use the VS 2010 SDK to create add ons for VS 2008?

I'd like to create an add-on for Visual Studio 2008, but am finding more examples and sample code for VS2010 SDK. Is it possible to build an add-on with VS2010 SDK and target VS2008? If not, are there any good sites for VS2008 add-on dev? Google searches seem to all lead to http://msdn.microsoft.com/en-us/vstudio/, which is focused on VS...

Link from content script to options page.

How to link to options page from content script? ...

Implement CPU extensions in a kernel module

Hi all, I'm looking for information relating to implementing certain CPU extensions in a kernel module. I've found something related: http://www.mirrors.docunext.com/lxr/http/source/arch/mips/kernel/unaligned.c in fact, it's the only source code that I can find that is even close. Basically, I have a binary only shared object built wit...

Extending PDO Statement Class

Is it possible to extend PHP PDO statement class to add custom methods to it? This would be different from extending the base PDO class. If so, how would one go about doing it since the statement class is only returned when running queries through the PDO class? ...

safari 5 extension - javascript problem - safari seems to cache the page and the DOM state

I've written a greasemonkey javascript that works fine in NinjaKit the new Safari userscript manager, but when I try and compile the same script using the Safari 5 extension builder I get some very weird behaviour. The script gives the user an options editing screen, when you click the save button, the script saves the users preferences...

Accessing the underlying struct of a PyObject

I am working on creating a python c extension but am having difficulty finding documentation on what I want to do. I basically want to create a pointer to a cstruct and be able to have access that pointer. The sample code is below. Any help would be appreciated. typedef struct{ int x; int y; } Point; typedef struct { PyObject_HEAD ...

Are trial SSL certificates enough for signing the firefox extension file?

Good afternoon everyone! As you may know, many companies that sell SSL certificates offer free trial certificates (that usually expire in 30 or 50 days). StartCom is the exception - they give 1-year free SSL Class 1 certificates. The question is: are these certificates enough for me to sign my Firefox extension? Note: I'm not asking if...

Is it safe to serve an image on the web without an extension?

I'm treating all *.jpg files as static, but I need to serve a few dynamically. Can I simply omit the extension so I don't have to get fancy with my url rules? Is it enough to just set the file type in the header? ...

Popular games beside WoW that allow addons / extensions / plugins?

I have what I think is a neat idea for a game add-on that I could probably tailor to most genres. The idea isn't a stand-alone game concept, more of an enhancement. As a result, I'm trying to find an existing game that I could try modifying to include it. What'd I'd really like to see is a system like World of Warcraft's for plugins -- ...

SQL Server: How to open .PRC files?

I have old .prc files (SQL Server Stored Procedures) which have exported from SQL Server 2000. Now when I try to open a .prc file using SSMS 2008, I get a bunch of chinese characters and other odd characters. I tried a solution found here, but it did not help. ...

Visual Studio 2008 - Custom XML Designer

Hi Folks! I'm searching for a way to implement a designer/editor like the aspx-Designer in VS2008. We use a custom XML-Format and want to edit it graphically. We already have a Designer and want to integrate in VS. Is there a good tutorial? I want to adapt to features like "switch to code" (and those tabs at bottom of the window). So ...