plugins

Modify Id generation for a Grails Plugin

I am using a plugin for Grails - the Amazon S3 plugin - and the domain object provided by the plugin doesn't specify the Id Generator. I am using Postgresql and require the id genrator to be identity. I could copy the plugin in my plugins directory and mess with the domain object provided but that doesn't sound like a clean approach.Cou...

Test to see if you are in a specific content block in TinyMCE and not allow a plugin to add to that content block if in it

So I have a TinyMCE form on my page and it is pre-filled with "sections" (divs with specific class names). I have a couple of plugins that will add to TinyMCE with more "sections". I need it so when I push the plugin button it will test to make sure the cursor is not inside a "section" and paste a "section" inside another "section". N...

wordpress plugin, access $wpdb on non visible page

I'm creating a wordpress plugin to fetch data from another website, It will be a cron file and I need to store some data in a table. how do I access $wpdb from that file? do I need to link to a wordpress core file? I'm asking this because it's not a file that will be visible in the admin area or public area, it's just a file that run's ...

.NET Plug In ... where to go

Hi all, I'm writing a Windows Application that connects to a webshop through it's API and reads/writes values. The Webshop can have multiple Payment gateways and I was thinking about writing a plugin to each one and create a user interface that will be available to select each one and load the correct assembly... my idea is to have mu...

jQuery Tablesorter Pager- Set first displayed row

I am using the TableSorter and Pager plugin from here: http://tablesorter.com/docs/ I want the table to display results starting at some defined index- for example, if my index is 14, I want the table to display the 'page' of results 11-20, so my row is shown, rather than starting at the default page 1, showing results 1-10. I have thi...

options inheritance

Hi there. I have a plugin module that extends the AR with a before_save callback to log all changes made into a relating acts_as_commentable comment. This works fine. However, I want to add more details to the comment such as who made the change etc. I have made a couple of fields available to the model instance log_message and log_ow...

jQuery crossfade with background images

Hey, I have a jquery crossfade working but the only problem is it fades between two physical images that it places and I need it to fade between background images instead. If there is already a good script that does this that'd be great or maybe what I have can be easily altered. Here is the plugin code: /* * Copyright 2007-2009...

How to write OSX finder new functionality/view

Hi, I am new to Mac programming and I wan't to make a sort of plugin that change the standart view of files in Finder and add some custom buttons. Any idea how can I accomplish it or where to start? Thanks a lot, Adam ...

jQuery Validator Plugin - update custom error messages

I'm using the jQuery Validator plugin successfully on a form. This form is a widget, so space constraints are tight. For that reason, I don't want to show the normal error messages after each form field that doesn't validate. Rather, for each form field, I have a label, and inside the labels of required fields, I have an <em> with the t...

Showing specific categories

I'd like to show only specific wordpress categories (with their sub-categories nested), so for example: Main Category 1 Sub Category 1.1 Sub Category 1.2 Main Category 5 Sub Category 2.1 Sub Category 2.2 ... I can hardcode it inside the sidebar template, but I'd like to know if there's any existing plugin/widget that allows thi...

VCScommand for VIM

I am trying to use HG (Mercurial) with the Vim VCScommand plugin, but am running into a problem "Too many matching VCS: git HG". I removed the vcsgit.vim and the HG binding seemed to work. I thought VCScommand used the folder to determine, which VCS one was using. I guess this is a flawed assumption. ...

Netscape plugin 64 bits compatibility issue

Hello, I wrote a 32 bits netscape plugin that ran fine in 10.5 When 10.6 came out I converted it to 64 bits (standard 32/64 universal architecture). I linked against SDK 10.5 The plugin works file in both 64 and 32 bits mode in 10.6 but refuses to load in 10.5 Did anybody found a way to build a plugin that is compatible for both 1...

Best Way to Extend a jQuery Plugin

I'm a fairly new jQuery user looking to extend an existing jQuery plugin that does about 75% of what I need. I've tried to do my homework on this. I've checked out the following questions on stackoverflow: Extending a jQuery Plugin Extend a jQuery Plugin jQuery: extend plugin question I've read up on the extend method. However, al...

Extend an existing attribute getter in rails model

Hello all, i have a problem using acts_as_textiled and has_foreign_language plugins together. TextElement my model in my app class TextElement < ActiveRecord::Base has_foreign_language :value acts_as_textiled :value HasForeignLanguage def has_foreign_language(*args) args.each do |field| # Define the Getter ...

jquery alert plugin , jConfirm

Hi i got this script which works perfect when i am not using jquery's alert plugin. But i need to use alert plugin and after learning from a tutorial i implemented it. But the script does not seem to work. Can you suggest where i am wrong..Thanks <script type = "text/javascript"> $(document).ready(function() { var pos = $("tr.veri...

Is it possible to configure custom plugin directories for Zend?

I want to be able to store custom plugins in the library folder of my application (currently I am storing them in the Zend library itself). Is there a way of providing additional plugin directories in the application.ini file? ...

Client-Server Application with Plug-in Architecture

I am thinking about a plugin model for my client-server application. A plugin will have a UI part(for configuration, runs on client) and an execution part(does the work, runs on server). For simplicity, I'm trying to figure out if I can locate my plugin DLL on the server side, but still show the UI on the client side. I thought about ...

How to get project wide Remove and Sort Usings for Visual Studio 2010?

We had the Power Commands for Visual Studio 2008 that add a context menu command that Removed Unused Usings and Sorted Usings for all files in a project/solution. How to do the same in VS2010 since this plugin is incompatible? ...

Calling jquery validation valid on form element

I have a form where I am calling the valid() function on each form element separately. I have an field named "altemailaddress" that I set a rule to be "email" and required is false. However the valid() function returns false if there is no value in the input text box. jQuery("#aspnet-form").validate({ onsubmit: false, rules: { ...

jQuery plugin design pattern (common practice?) for dealing with private functions

Hey all, I've been developing jQuery plugins for quite some time now, and I like to think I know how to design one well by now. One issue keeps nagging me though, and that is how to deal with private functions in a powerful yet elegant manner. My plugins generally look something like this: (function($) { $.fn.myplugin = function(.....