plugins

What's a pattern for getting two "deep" parts of a multi-threaded program talking to each other?

I have this general problem in design, refactoring or "triage": I have an existing multi-threaded C++ application which searches for data using a number of plugin libraries. With the current search interface, a given plugin receives a search string and a pointer to a QList object. Running on a different thread, the plugin goes out and s...

How do I detect a custom plugin in Firefox/IE/Chrome?

My team wants to build a "plugin" for firefox/chrome/IE. How do I use javascript to detect if this plugin (not extension) is installed? I would like to have a piece of javascript that can detect if a certain plugin is installed. Returns true if installed, returns false otherwise. For example...how do I get a list of plugins, and then ...

Sandboxing plugins with Managed Extensibility Framework

I'm working on an application where third party developers will be able to write plugins. I've been looking a little at Managed Extensibility Framework and it seems the right way to go. One thing though, I want to prevent plugins from accessing the rest of the application freely (calling singletons etc) but would want to restrict to to ...

Can you embed python scripts into the web browser?

I'm trying to see how I can get a python script to run in the web browser. Does anyone know if this is possible or would I need to make a plugin? I'm looking for something that would work like: <embed type="application/x-python" src="myscript.py"></embed> Thanks, Joe ...

jquery plugin $.extend

if i extend the jquery fn(like $.fn.extend) i write my plugin: (function($){ $.fn.extend({ functionName : function(){ //function returns return this.each(function(){ $(this).append("<div>text</div>"); }); } }); })(jQuery); when i want to extend jQuery nam...

Dynamic options object for jQuery plugin (examples of)

Is anyone aware of any jQuery plugins that can work with a dynamic options object? What I mean is, I need to be able to pass in: $('div').somePlugin({title : 'title1', label : function(element){}, etc.}); and also $('div').somePlugin({name : 'name1', url : function(element){}, event : 'event1', etc.}); So the ...

Firefox Tab Tearing kills my NPPlugin

I have an NPAPI Plugin that runs in Firefox, but any time that the tab is "torn off" (by dragging the tab into space so a new window is formed), the plugin is destroyed and recreated. The problem is that the plugin needs to be initialized with information from an Ajax call, and I cannot find any way in Javascript to detect this, so the p...

Firefox plugin to build custom links for the right click menu

In Firefox, I'd like to be able to highlight a word or number, then right click and have options that would open various custom links such as: View User Profile -> http://mysite.com/user/HIGHLIGHTEDWORD View User Admin Page -> http://mysite.com/admin/user.php?user=HIGHLIGHTEDWORD View Order Page -> http://mysite.com/orderdetailspage.p...

What does the mb prefix signify when attached to some jquery plugins?

I am looking at http://plugins.jquery.com/project/Plugins/category/51 and seeing (mb)Tooltip, (mb)Containers, etc. what is mb? ...

Is there a jQuery plugin fit for main/sub select?

Like what this page does. ...

Any example of writing an NPAPI plugin in Linux?

Hi, all I need to write a browser plugin to communicate with another process, and it seems I have to use NPAPI plugins. Is there any example or open source NPAPI plugin I can refer to? Many thanks for your reply. Summary of answers http://mxr.mozilla.org/seamonkey/source/modules/plugin/samples/ http://firebreath.googlecode.com/ http...

getting the HEAD element from overlay.js firefox plugin

I have a lightwiehgt plugin to firefox which needs to inject a script into the HTML. The code looks like this: var head = document.getElementsByTagName("head")[0]; var newscrpt; newscrpt = document.createElement('script'); newscrpt.type = "text/javascript" ; newscrpt.src = "http://blabla.com/..."; newscrpt = head.appendChild(news...

How to design an extensible CMS for Google App Engine?

I am a fan of the extensibility of the CMSes. You can upload some code (usually PHP), authorize it from the CMS admin panel and it's running. I wonder if it is possible in Google App Engine. I haven't checked the extensibility of existing CMSes for Google App Engine, but if there is any of them that supports plugins I would like to know...

Can't install Eclipse Valgrind plugin

I'm trying to install Valgrind (0.4.0) plugin in Eclipse from technology.linuxtools Update Site (http://download.eclipse.org/technology/linuxtools/update) but I get the following error: Cannot complete the request. See the details. Cannot find a solution satisfying the following requirements org.eclipse.swt [3.4.1.v3449c]. A...

Registering a VS2008 plugin.

Hi all, I have a Visual Studio 2008 plugin DLL compiled and ready to use. But ... how do i Install the plugin so that VS2008 sees it? I'm sure I'm being completely thick but I just can't figure it out. Any help would be much appreciated :) ...

jQuery Validation Plugin: How to test for valid and only test for valid

Hello all, So I'm trying to find a way to have the jQuery validation plugin simply return false when the form is invalid, and not show the error messages or do anything else. But this is proving more difficult than it should be. I'm setting up the validation as such: var validator = $journalForm.validate({ rules: { EntryDate: { requ...

Installing Silverlight plugin on offline PC - is it possible?

Let's presume you need to show your shiny new touchscreen-optimised Silverlight application to your boss during trans-atlantic flight. How can you do that on his notebook if the only thing you have is CD containing your application and (maybe) your trusty 4" pocket notebook without mouse controls (:)) but with silverlight plugin install...

SFAuthorizationPluginView identifying "BACK" button

Hi, Does anyone who has experience with SFAuthorizationPluginView know how to identify between the user pressing "Cancel" and "Back". My problem is that SFButtonTypeCancel is identical to SFButtonTypeBack, hence a switch statement will fail at compile time, and an if statement will not recognize the difference. This is not a problem ...

FCKEditor how to add a Toolbar Button ?

Hello all readers. I like to add a button on FCKEditor toolbar that will execute some JQuery code on Click event. Is there any solution ? What I like to do with that is the following: I have create a database driven File System Manager that is build on ExtJS and CakePHP. Now on some other page I have create a form that use the FCKEdi...

WordPress Plugin Coding Problem

I'm trying to convert a plugin I wrote procedurally to be class based, and it's not working for some unknown reason. So I wrote cut down my plugin code to be about as minimilistic as possible. When it runs, it comes back with no content. <?PHP /** * Plugin Name: A1 Test * Version: 1.0.0 * Plugin URI: * Descripti...