extensions

xcopy directories and subdirectories recursively and filter only filenames by extension

Here is what i have for now: xcopy "c:\projects\SampleProject" "c:\temp\copytest" /E /H /EXCLUDE:elist.txt It does all the job i need except filtering filenames by extensions. For example: copy all *.exe files from c:\temp\copytest and subdirectories. How to do that? ...

What is the best way to detect Copy (Ctrl+C) event in an IWpfTextView?

I am trying to detect a copy event in the text view and I have been researching the best way to do this. Is it to possibly hook into the StandardCommand Copy event somehow and detect it that way? Or is it possible to use the KeyProcessor(and simply detect Ctrl+C keypresses)? My extension is currently implementing the IWpfTextViewCreatio...

Can an extension be made to interact with a floating/dockable window?

Is it possible to create an extension that interacts with a floating/dockable window in VS2010? If so, are there any code samples that could demonstrate this? At the very least could I create a XAML markup to look like a floating window is docked to the view somewhere? Thanks, Nick ...

Cannot open multiple files when implementing IVSTextViewCreationListener.

In the Visual Studio 2010 SDK, I am able to implement the IVsTextViewCreationListener.VsTextViewCreation method: Public Sub VsTextViewCreated(ByVal textViewAdapter As Microsoft.VisualStudio.TextManager.Interop.IVsTextView) Implements Microsoft.VisualStudio.Editor.IVsTextViewCreationListener.VsTextViewCreated Dim textView As I...

difference b/w extentions ?

What is the difference b/w these extentions. 1. *.htm or *.html //HTML 2. *.jpg or *.jpeg or *.jpe //Picture format 3. *.pl or *.plx //Perl Thanks, ...

Visual Studio 2010 Extension Manager crashes

After installing a bunch of extensions to try out I restarted VS 2010 and it started crashing. Unfortunately, it consistently crashes when opening Tools | Extension Manager. Any ideas how to fix and avoid a complete uninstall/reinstall? Event log has this: Application: devenv.exe Framework Version: v4.0.30319 Description: The process w...

jQuery find file extension (from string)

Hi all, I was wondering if it was possible for jQuery to find a file extension based on a returned string? A filename (string) will be passed to a function (openFile) and I wanted that function to do different things based on what file has been passed through, it could be image files or pdf files. function openFile(file) { //if .jp...

browser extension to replace JavaScript file on a live site for testing

I'm looking for a browser extension (Firefox, Chrome) allowing to replace a Javascript file on a live Web site to do some testing/hacking. Basically, it should take a URL and load another one instead (locally or on a HTTP development server). Any idea? ...

What intellisense dropdown is this, and how do I turn it off?

I'm having some problems with Visual Studio and Intellisense - whenever I click Ctrl+Space to get the regular intellisense dropdown, I get the one shown in the picture instead. Which setting should I change to prevent this behavior? This happens in all sorts of files, not just xml... This problem has appeared since I installed some ...

How do you package extensions for Heroku?

I have a gem that uses a binary (htmldoc) that is not bundled into the gem as a native extension (so you can't run rake gems:build to have htmldoc installed). The host machine has to have the htmldoc binary compiled and installed on it in order for the gem to work. How do you get binaries to compile and install when your heroku instance ...

ffmpeg cannot install PHP extension module

Hi there, In the last step of installing FFmpeg-PHP, I had to type sudo make install. At this I get the following error, sudo make install Installing shared extensions: /usr/lib/php5/20060613/ cp: cannot stat `modules/*': No such file or directory make: *** [install-modules] Error 1 Now my extension directory is at /usr/local/...

How to use indexers with Extension Methods having out parameter and function calls

Is it possible to use indexers with extension methods. eg. Consider it as an example only. public static object SelectedValue(this DataGridView dgv, string ColumnName) { return dgv.SelectedRows[0].Cells[ColumnName].Value; } EDIT usage mygrid.SelectedValue("mycol") How to use it as an indexer mygrid....

How do I make an extention for PSPad?

I have used PSPad alot and I would like to make an extension for PSPad, but I don't know how to do it. I cannot find anywhere an API documentation to make the extensions. Can someone please help me? ...

Finding regions that include a point with MySQL

I'm using MySQL GIS and Spatial Extensions. I've a table with "circular" regions described by latitude, longitude and radius. I need a query to get all the rows whose region include a given point defined by a latitude and a longitude. The "circular" regions can intersect and therefore the point can fall in more than one region. ...

How to create a Visual Studio extension to display a block of color over a hex value?

I was told that in Visual Studio I can "create an extension" to create a block of color when the cursor hovers over e.g. "DF7401" or "ffcccc". How would I do that? ...

Safari Extensions and settings

I have a setting that has the following elements: Type: Text fieldTitle: TopKey: topcolour Default value: #00FF00 I can't figure out how to get this data from inside javascript, I am trying to use var colour = safari.extension.settings.topcolour; but this is not working, am I doing this right, am I forgetting something? ...

RDLC Expression Extension Methods

Is it possible to write extension methods for expressions behind RDLC fields? For example, let's say that I have a DateTime field in my datasource that may either have a valid value or may be null. I drag and drop a TextBox onto my RDLC and format its value using the ToShortDateString() method. This works fine for populated DateTime v...

Chrome Extension: How do I poll RSS Feeds to see if there is new content and display that as a number on the extension icon

I wonder if you could help a little. I want to have a simple Extension, that shows the number of new items in a RSS feed since the extension was clicked. It would poll every 2-3 mins for example and if the RSS feed is updated it should display a count of how many new items there are. I assume it has to set the setBadgeText field. An...

Provide a usable interface to integrating Opensearch providers in Firefox

When I started using Bing, there was a link just below the Firefox search bar which said Add Bing to Search Box and when I clicked it, it asked me for a confirmation and also if I wanted to use it right away. How is this functionality achieved? I don't want users of my site to go discover it from the highlighted searchbox and say "add bl...

How to open a url while uninstalling Google Chrome Extension?

I was able to do it in Firefox using nsIObserverService. Is there anything similar? Any link to proper documentation will be very helpful. ...