ROR: Paperclip styles
I have a model that handles all my uploads of different filetypes. How do I create a style with the same name as the :basename so that the url will be the same for images and non-image files? ...
I have a model that handles all my uploads of different filetypes. How do I create a style with the same name as the :basename so that the url will be the same for images and non-image files? ...
The sexy bookmark plugin is breaking my wordpress site in ie6. It's showing some error message. Is there any way that i can disable the plugin if ie6 is detected? ...
Hello, i'm trying to create a plugin with a custom lifecycle : /** * @goal my-goal * @execute lifecycle="my-custom-lifecycle" phase="attach-foo" */ public class MyMojo extends AbstractMojo { ... with src/main/resources/META-INF/maven/lifecycle.xml file : <lifecycles> <lifecycle> <id>attach-foo</id> <phases> <phas...
Hi, I am using the jQuery countdown plugin and some how i just can't get it to work. the documentation on the plugin is not that helpful. I got to implement the basic/minimal version but after that I'm catching my tail to figure out the plugin. I'm trying to create two things: A time elapsed counter (count-up timer) which starts fro...
I am designing a plugin system for our web based application using Spring framework. Plugins are jars on classpath. So I am able to get sources such as jsp, see below ResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(); Resource[] pages = resolver.getResources("classpath*:jsp/*jsp"); So far so good. But I have...
In my controller @comment = Comment.build_from(@post, @user.id, comment_body) @comment.save When I access, @comment.user this is weird - Watch window shows that this a User object with an object id but it is practically empty meaning the attributes is nil so when I do @comment.user.id, it chokes. The comment.rb...
I'm writing a plugin for Confluence and there isn't much documentation on what you can use in velocity vm files. I'm able to add a base breadcrumb that goes from Dashboard -> ActionName but I want to to do something similar to page edits where you get the full page breadcrumb followed by the action name. Here's what I'm using now: #app...
Firefox extensions can invoke privileged APIs (e.g. nsIProcess to start an external app) without bugging the user, for example this extension does it from the download window: https://addons.mozilla.org/en-US/firefox/addon/10902/ I need to do the same kind of thing, but from a UI on a web page. Can an extension provide a XUL widget (whi...
What is the best Maven2 plugin for IntelliJ? There are a lot of them now, and I don't have the time to play with them all. It would be very helpful to get opinions and a feature synopsis on existing plugins. Here is what I am looking for: a) it keeps my paths and repositories synched to change in the pom file; and b) it doesn't keep ...
I have dowloaded the rails.zip file from http://www.vim.org/scripts/script.php?script_id=1567. and have unzipped it to a folder rails. Now to install the plugin to vim. Here's the vim version am using in my ubuntu 9.04 : version 7.2.79. ...
Hi, How to create template/theme system and plugin system for a custom CMS similar to Wordpress or joomla? Edit: I don't want to use any templating engine similar to wordpress; a reason why it is famous for templating. ...
I’m writing an ASP.NET MVC 2 application where developers could extend it with plugins. I’ve started to consider how create a plugin system. (e.g. like Joomla’s) I have some doubts about how to do this. I have searched over the net and I found that there are two potential solutions. using interfaces or abstract classes to implement me...
Hello, I try to install this plugin on my Visual Studio 2010 Express : http://gitscc.codeplex.com/ But I can't find it in the plugin repository, the "Source Control" category of plugins is empty, is that normal ? Does the Express edition prevent utilization of Source Controls plugins ? Thank you ...
I would like to write an Eclipse plug-in that is able to import existing documentation into JavaDoc comments of existing Java code. Background: I've generated Java code to communicate with an third party (native) program. Now I would like to import the documentation of the third party program into my generated code. What I've already d...
I would like to write a javascript plug in which can string manipulations something like substring, replace, trim and customized user functions. Where from should i start to write (if there is no this kind of plug-in) ? like: $("my string will be this").substr("will","would",{first}); or $("my string will be this").replace("will","w...
I have a JIRA plugin that I'm developing that has a REST service. That service should be able to accept POSTed requests, unmarshall some data and store it. The seemingly suggested way to do this in JIRA is to make use of the Bandana persistence framework. According to this page, I should be able to simply define a setter that Spring shou...
I am using WP-CodeBox to get syntax higlight effect on my WordPress blog. I wish to have the plugin automatically always show the X language, whenever I use < pre > some code < / pre > Any idea how to change the PHP code for that? (I am willing for it to be hard coded to the plugin files) ...
I'm developing my first Wordpress plugin, and I have one line which deletes an entry. I have to use query string parameters to pass in the action and the object id. My code is: $pageText .= '<td><a href="'.$_SERVER['REQUEST_URI'].'?useraction=delete&domainid='.$file.'">Delete</a></td></tr>'; This creates a 'delete' link and populates ...
Hi there, After several plugins got updated yesterday I saw in the source code that actually no plugin is loaded(1) on the frontpage anymore. On all the other pages everything works just fine. The most obvious one is the menubar (wp-menubar-plugin), and for now I made an exception for the homepage(2) loading a hard coded copy of the me...
Does anyone know a simple Jquery plugin or other method (always with Jquery) to get the effect to point out an image in a image grid on mouseover? I would have thought a tiny zoom effect or...somenthing else I don't know. Thank you... ...