extension

VS2010 - Can i extend the 2010 text editor window with Graphics?

Hello, I am developing an extension to add graphics around code (text). I've searched around and came up with only one other post refering to IWpfTextView (and related) interfaces. What i want is to "markup" the code with (ex) arrows, boxes and lines. I've read through the mdsn and it seems scrolling up and down does a complete redraw...

Windows Explorer, shell extension, a new view type.

Hello, Is it possible to write shell extensions that add a new view type to the view menu in Windows 7? For example, at the moment I have List, Details, Tile, Content, etc. in the drop-down, but I have an idea for a new type. I've done a little Google on shell extensions but the examples I see are more related to custom content within...

.Net plugin framework choice, enabling defining plugin order (including chained plugins)

[I have read previous posts on MEF vs MAF vs DI etc, they aren't helping me with my specific problem] I am looking to write a .Net application (probably console or Windoes service) which will be extensible. It is an overnight/schedule app to extract data from a database, do something with it, and then output it (or pass it on to anothe...

Local file access and compiling a greasemonkey script to xpi

I want to provide some functionality through an extension. This requires (read and execute) access to some resource files (an mp3 file, a swf file and two js). I know user scripts cannot access local files and I need an extension (add-on) to do that. But can I start by writing a greasemonkey script and compiling it to a xpi? How should...

html 5 video tag file without extension

I have this sample code, that works: <video src="./ellen.ogv" width="320" height="240" type='video/ogg; codecs="theora, vorbis"' controls></video> And this one that doesn't work: <video src="./ellen" width="320" height="240" type='video/ogg; codecs="theora, vorbis"' controls></video> The only change was on the name of the file. Fir...

maven: Removing format file extension from created assembly

I've got a Maven2 project, where I use assembly plugin. Everything would be just fine if created assembly file name wouldn't ended with format extension (ex. ".zip"). I specified in plugin configuration a fileName parameter and setted appendAssemblyId to false. I have already spent few hours on that problem... Any idea? ...

Running a perl script on windows without extension

Hello I am trying to find a way to register the files with extension .pl as executables. I spent some time on the web looking for a solution, but I couldn't find anything. What I can do: I made a script, let's call it myscript.pl I can run it like this : perl myscript.pl [my script parameters] Now since the file is associated with pe...

Change file name suffix(es) (using sed ?)

I'd like to change the file name suffix from files (using a bash script), but sometimes there are files with one period and some with two. Now I use this: new_file=`echo ${file} | sed 's/\(.*\.log.*\)'${suf}'/\1.'${num}'/'` Where 'new_file' is the new file name, 'file' the original file name, '${suf}' the file's suffix and ${num} a n...

rails controller respond_to format with two extensions (e.g. tar.gz)

Is there a mechanism or accepted approach for responding to requests that have a more complicated format extension? My specific scenario involves returning a plist file. However, I need to sometimes return this file as an XML plist file and sometimes as a binary plist file. I thought that URLs composed like /resources.xml.plist and /re...

Using extension methods with runtime assemblies

Is there any way to use extension methods on a class that has been dynamically created using Relection.Emit? For example: class somewhere { somewhere() { // define the type here using ReflectionEmit, etc. Type tableType = CreateTableType(...table parameters...); var table = Activator.CreateInstan...

Cross browser extension development in C++

Hi, I am starting to work on a browser extension and because of the nature of the extension I need to develop it in C++. I am currently working with Firefox but would like my code to be portable across browsers. First of all is there a library or an interface (like the NPAPI) that I can use to ensure this for extensions? What are the t...

How can I automatically open regions in visual studio 2010

I'd like the regions that show up in my visual studio window to be open by default when I open a code file. Is this possible in VS2010, or is there an extension that will do that for me? Barring that, is my request a thing that be written in an extension? ...

Validate Extension (jQuery)

<input type="file" id="css-file" /> <input type="text" id="css-url" value="eg. http://domain.com/style.css" /> I need both the fields to accept only .css files. Can I validate without having to use a validation plugin just for these 2 fields? If anything other than .css is detected, it should give an alert() Thanks! ...

continue show popup chrome extension

Hi, I try to make a chrome extension. For this project I need to have a function that when I activate my popup by clicking on a icon it will not close when I am by instant select a text in a webpage. Normally the popup will hide automatically. I there a way to block the auto hide function in the google chrome extension. Thank you, Wo...

Joomla extension - Custom form with upload function

Does anyone know of a Joomla Form extension with standard Input text fields, textarea fields and Upload field? I need standard form extension that supports file uploading. Your reply will be very much appreciated. ...

In what order are projects returned using ActiveSolutionProjects?

Hi Im using this code, inside a project template wizard. DTE dte = project.DTE; VSProject vsProj = (VSProject)project.Object; Array projects = (Array)dte.ActiveSolutionProjects; Project activeProject = (Project)projects.GetValue(0); But im curious in what order the projects are returned? The code above is running just after the proj...

How to define extension methods for generic class?

Hi All, I am having a generic interface as: public IRepository< T > { void Add(T entity); } and a class as: public class Repository< T >:IRepository< T > { void Add(T entity) { //Some Implementation } } Now I want to make an extension method of the above interface. I made the following class: public stati...

Overcome non-cacheability of pages on Firefox

I'm trying to build an extension to Firefox to get a page from a web server and put it in the browser's cache, so that when the user asks for that link, it'll be retrieved directly from the cache, instead of asking to the original web server. But I'm having trouble with some pages which put headers to avoid cacheability, such as "Cache-...

firefox disable/enable add-on in a specific page

Hi, I'm programming a system to work with in firefox, based on high end javascript. The users sometimes uses add-ons that conflict with the system. Is there a way i can control from my web-site to disable or enable specific firefox add-ons in a page? Thanks. ...

Mozilla Extension - tracking data per opened tab.

In a firefox extension I'm temporarily saving data in javascript to show in a sidebar. When a tab is selected, I want to change the text in the sidebar to the right data. What is the best object to use as the "Identifier" for each tab? I'm trying to use the tab object. However, I'm stuck then on how to associate the data to the tab. ...