plugins

Model-View-Presenter lifecycle management in a plug-in based GUI

When a GUI is composed of several subcomponents that I treat as individual Views with their own Presenter and Models, is there a pattern for gluing them together? Some subcomponents are persistently on the screen while others would get swapped in and out. What would be a good factory pattern for instantiating the respective MVP triad f...

casting an object to base interface

Hello, I have got a problem on casting an object to one of it's base interfaces living in another library. Here is the code for it: BaseSDK.dll public interface IPlugin { void Run(); } CustomPlugin.Definition.dll: public interface ICustomPlugin { void DoCustomStuff(); } CustomPlugin.dll (has reference to BaseSDK.dll and Cu...

Can I have plugins within my Rails Engine?

I have 3 rails apps that currently use a "shared" rails app (complete rails app generated). They shares the model, controller, initializers and plugins from this app. So its time to convert the shared application to a rails engine! (less symbolic links). My question is this, how can I share my plugins among multiple applications in thi...

Accessing data in a Frame or Iframe with IE plugin Browser Helper Object (BHO)

I am writing an IE plugin that wrap phone numbers in a link that connects to a phone system and dials that number when clicked. I am accomplishing this by using DocumentComplete event. //using SHDocVw.WebBrowser webBrowser.DocumentComplete += new DWebBrowserEvents2_DocumentCompleteEventHandler(this.OnDocumentComplete); The problem is ...

How to create an Icon attribute for a plugin in C#?

I’ve created my own plugin architecture based on the common practices but I’m stuck with icons. First of all my plugins define Clients to be used by the host and each Client is defined with attributes like: [Client("Heroes of Newerth", "Heroes of Newerth Chat Client", "hon_16.png")] With this my host application can read the plugin/c...

Provisioning a wordpress user/blog

I have a wordpress blog inside the company where I write blogs. I want the people inside the organization to comment on the blogs. I was able to grok through the authentication inside the company and get the person's username. I want to auto register a user if he/she doesn't already exist in the system based on their username. Can someon...

Installing MySQL so file

Hi, Probably an easy question, but I'm trying to install sys_exec into MySQL. It contains an so file, along with a few other things. Where do I place the .so file? I'm running Debian + MySQL5 I've tried /var/lib/mysql/, /usr/share/mysql and /usr/local/mysql/lib/mysql which according to MySQL Docs is the location for libs/plugin direct...

jQuery: xLazyLoader plugin discontinued? / recursion

hi all, i'd like to checkout the xLazyLoader plugin for jQuery which should be located here: https://code.google.com/p/ajaxsoft/wiki/xLazyLoader unfortunately i'm getting a forbidden error :( anyone know if it was discontinued? i could find it somewhere else - version 1.3 but - it will hang my firefox because of an "too much recursio...

accepts_nested_attributes_for as Rails 2.1.0 plugin (or equivalent)

I've developed a Rails app under Rails 2.3.5, and have made use of accepts_nested_attributes_for. Now I come to deploy it, I find my deployment environment is Rails 2.1.0 with no scope for upgrade. Obviously, 2.1.0 doesn't have accepts_nested_attributes_for. Is there any way I can get the nested functionality under 2.1.0, as a plugin, s...

Review Site > Need common post template or plugin for product thumbnail, details and description

I'm working on a site in which each post will be dedicated to a single product review. I'd like to have a consistent look for each review so that the product image or cover art is at the top left. To the right of the product image, I'd like a listing of items (author, sales page, product cost, etc). Below these two, I'd like a summary d...

Searching for a jQuery plugin: Does this exist?

I want to combine a content slider with a fancybox, lightbox type plugin. Does a plugin like this exist? ...

internet explorer multiple jdk versions

Hi, Is there a way to switch between multiple versions of JDK/JRE in Internet Explorer ? Wanted to use jdk 1.4, jdk 5 & jdk 6. Thanks, Michael ...

How do I change certain plugins under Eclipse 3.6 product export to deploy as exploded Jars?

I am using Eclipse 3.6 product export to build an Equinox-based OSGi application. I would like to be able to configure some of my plugins to deploy exploded instead of as JARs. Is there a way to do this? ...

Sortable ul/li tree with move to parent/child and handle

Hey, i need a lib or a plugin to sort a ul/li tree. It should have the handle option, like the on for jQuery UI. And you should be able to move the li's to the parent or child ul's. ...

How to retrieve the selected image in Webcontrol/IE with .Net(C#)

Nice! Now I can get the selected text with my IE plugin. Now I have another problem. How to grab the selected Image on the webcontrol/IE???? Thanks I really appreciate the help. ...

Web App that uses Webcam...any Rails plugins/gems?

Hello, I;m a developer looking to make an app similar to chat roulette. I'm pretty comfortable with Ruby on Rails as my platform and would like to program it in that. The downside is I have no idea about how to do anything using webcams. Is there a plugin or gem for rails that integrates webcams easily? Some quick browsing brought m...

How do I get Rails to exclude some bundled gems from plugin-loading?

I have a Rails application that uses Bundler for dependency management. I've got the following in my Gemfile: # default group: gem 'json' group 'development' do gem 'my_profiler' end group 'test' do gem 'mocha' end group 'deployment' do gem 'foo' end I call Bundler.setup(:default, RAILS_ENV.to_sym) and Bundler.require(:defaul...

jQuery Plugin: Get the "this" object inside other functions

Hi, I am trying to crate a panorama slider as a jQuery plugin, and I have the following code.. $.fn.panorama = function(settings) { var myPanorama = this; .. this.mousedown(function(e){ //do stuff $(this).css... //this all work } //Call mouseup on document in case user lets go of mouse outside dr...

jquery and jquery-ui not working in Springsource Tool Suite 2.3.3.M1

Hi, I installed the jquery and jquery-ui plugins for grails into SpringSource Tool Suite (STS-Eclipse) following the documentation located at http://www.grails.org/plugin/jquery and using the grails command-line tool included with STS-Eclipse as follows: grails> install-plugin jquery grails> install-plugin jquery-ui According to the d...

sfDoctrineGuardPlugin : signin form, error 'csrf token : required'

Hello, I have just installed sfGuardPlugin to manage my user. But since I have try to customize the signin page, I have an error "csrf token : required". And I don't find where the error come from, I think I didn't change other thing that the template. My signin form : <?php use_helper('I18N') ?> <span id='message'>Vous devez vous co...