Hello,
I started a grails application by grails create-app. For modularity, I feel like it would be better that component be a plugin. Can I convert this application into a grails plugin?
thanks,
Babu.
Hello All...
I have just started the Hello World App using Blackberry Eclipse Plugin.
I have tried one or two configuration for debug my HelloWorld Blackberry App, but unfortunately I could not..
Can anyone let me know that how can I debug any Blackberry App in simulator using Eclipse Plugin ?
Thanks in advance...
I use Notepad++ as my main editing tool. I want to write a plugin for it for a feature I'd like to implement, but am unsure of how to go about it.
Are there any guides / blogs / tutorials that can point me in the right direction for creating a new plugin?
Hi,
Is there any CSS plugin for Eclipse, which supports import CSS files to profile, e.g. like Spket IDE
makes it for JavaScript files.
In result, I want to get the following functionality:
In any html/css file, where defined css class/id, I perform clicking on it,
and it dispatches me to appropriate css file which responsables for that style,
or shows me in left side panel it styles.
Does anyone know such plugin for CSS Eclipse?
Thanks,
I have an Eclipse plugin project, and it depends on other projects that I have in my Eclipse workspace. After adding the project dependencies under "Java Build Path" - "Projects" tab, and also selecting the project in the "Order and Export" I get a java.lang.NoClassDefFoundError.
I'm assuming that the other projects have not been properly included into the plugin. Does anyone know how to fix this?
Thanks,
James
I own a plugin for eclipse, but I want to use it at work. Is there a way to make eclipse use plugin files without it affecting other people using the same central version of Eclipse? Maybe some custom preferences?
Thanks.
EDIT: Started a bounty. Please specify a step-by-step solution to this, as I'm not very experienced with the inner-workings of eclipse.
How do I replace the selected section of code (selected by mouse selection) in eclipse editor and replace it with the same code only in /* selected text / through a plugin?
I have already designed a plugin to create a button in the toolbar. When I click it, I need it to change the text that is selected and put it into / */
How can I call a class in Java, when the name of the class won't be known at compile time (such as if it were a plugin). For example, from a GUI, a user selects a plugin (a Java class), the application then creates a new instance of the class, and calls one of its methods (the method name would be known at compile time (e.g. "moduleMain")).
Thanks for any input.
i try to use the next code to load cforms II plugin only on my CONTACT PAGE
(http://www.deliciousdays.com/cforms-plugin/)
#/template/functions.php
add_action( 'wp_print_scripts', ' ', 100 );
function my_deregister_javascript() {
if ( !is_page('Contact') ) {
wp_deregister_script( 'cforms' );
}
}
add_action( 'wp_print_styles', 'my_deregister_styles', 100 );
function my_deregister_styles() {
if ( !is_page('contact') ) {
wp_deregister_style( 'cforms' );
wp_deregister_style( 'style' );
}
}
but doesn't work
the code worked for contact form 7
( http://wordpress.org/extend/plugins/contact-form-7/)
See the indent guides? They're damn helpful when writing Python code. Any chance I could get something similar for gedit? I wouldn't mind having to write my own plugin, as long as it's in Python... So:
Is there a plugin for this which works with gedit?
If not, would it be possible to write one in Python.
Hello everyone!
So I was just wondering if it was easy to develop a very simple Firefox plugin where you could click a button, and it would execute some Javascript code!
Please note that I have never developed any kind of plugin for firefox, I just want to know if that is an easy task to do (like less than an hour)
Hi.
I am trying to migrate my ant build to maven2. in my build.xml I invoke the hbm2java in the following way:
<hibernatetool destdir="/src/generated/">
<configuration configurationfile="${env.ITP_HOME}/core/xml/hibernate/hibernate.cfg.xml">
<fileset dir="/xml/hibernate">
<include name="*.hbm.xml"/>
</fileset>
</configuration>
<hbm2java/>
</hibernatetool>
my hibernate.cfg.xml is:
<hibernate-configuration>
<session-factory>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
</session-factory>
in my maven2 POM file I have:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>hibernate3-maven-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<id>hbm2java</id>
<phase>generate-sources</phase>
<goals>
<goal>hbm2java</goal>
</goals>
<configuration>
<components>
<component>
<name>hbm2java</name>
<implementation>configuration</implementation>
<outputDirectory>/src/main/java</outputDirectory>
</component>
</components>
<componentProperties>
<jdk5>true</jdk5>
<configurationfile>/src/main/resources/hibernate.cfg.xml</configurationfile>
</componentProperties>
</configuration>
</execution>
but when executing mvn hibernate3:hbm2java i see no files get generated unless they are all listed in hibernate.cfg.xml.
Is there a way to specify a fileset in the maven configuration similar to the ant task?
thanks,
naor
I can't figure out how to make it so the form wont fire unless the realPerson captcha is "valid". I can see that when the user types in the correct/valid letters and clicks submit it adds a class of "valid" to the input. So Ive been trying to figure out how to get the jquery.validate plugin to only fire when the class "valid" is present.
<script type="text/javascript">
$(document).ready(function(){
$('#defaultReal').realperson();
$('#contact_form2').validate({
submitHandler: function(form) {
var str = $("form").serialize();
$.ajax({
type: "POST",
url: "contactpage.php",
data: str,
success: function(){
$('#contact_form2').html("<div id='message'></div>");
$('#message').html("<h2>Contact Form Submitted!</h2>")
.append("<p>We will be in touch soon.</p>")
.hide()
.fadeIn(1500, function() {
$('#message').append("<img id='checkmark' src='images/check.png' />");
});
}});
return false;
}
});
Thank you in advanced!
-Dave
The following works fine when I type it exactly in the command line:
find /<some_path>/{epson,epson_laser,epson_inkjet} -iname "*.ppd"
-exec grep "\*ModelName\:" {} \; | sed 's/.*\"\(.*\)\"/\1/'
However, when I try to call the following from a
bash script I get find: missing argument to -exec'.
I have also tried the following (in many variants):
eval find "$1" -iname "*.ppd" -exec 'bash -c grep "\*ModelName\:" "$1" | sed "s/.*\"\(.*\)\"/\1/" \;
as was mentioned in find-exec-echo-missing-argument-to-exec.
I currently have a project built with maven-archetype-webapp artifact. The default packaging for this project is war.
Is it possible for me to insert the maven-ear-plugin in this webapp pom.xml generate an ear file that contains this project war? I tried that, but the war file doesn't get embedded in the generated ear file. It has everything except the war file.
I read many Maven related articles, and perhaps I could use maven-archetype-j2ee-simple artifact. However, I'm reluctant to this use for 2 reasons:-
This artifact handles ejbs and all the extra features that I don't use. It makes my project looks bloated.
Second, it seems like it requires me to install the web module into the repository first before I can create the ear file. Is this the preferred way to create an ear file?
How do I create an ear file that contains the war file using maven-ear-plugin from my webapp's pom.xml? If this way is not possible, what's the preferred way?
I'm sorry if my questions sound a little novice, I realized I have whole lot more to learn about Maven.
Thanks much.
I have an enterprise application that uses a single database, but the application needs to support mysql, oracle, and sql*server as installation options. To try to remain portable we are using JPA annotations with Hibernate as the implementation. We also have a test-bed instance of each database running for development.
The app is building nicely in Maven, and I've played around with the hibernate3-maven-plugin and can auto-generate DDL for a given database dialect.
What is the best way to approach this so that individual developers can easily test against all three databases and our Hudson based CI server can build things propertly.
More specifically:
1) I thought the hbm2ddl goal in the hibernate3-maven-plugin would just generate a schema file, but apparently it connects to a live database and attempts to create the schema. Is there a way to have this just create the schema file for each database dialect without connecting to a database?
2) If the hibernate3-maven-plug insists on actually creating the database schema, is there a way to have it drop the database and recreate it before creating the schema?
3) I am thinking that each developer (and the hudson build machine) should have their own separate database on each database server. Is this typical?
4) Will developers have to run Maven three times...once for each database vendor? If so, how do I merge the results on the build machine?
5) There is a hbm2doc goal within hibernate3-maven-plugin. It seems overkill to run this three times...I gotta believe it'd be nearly identical for each database.
I am using the jQuery validate plugin. My error labels are styled like tooltips and take many levels of nested divs in order to create. The plugin has a wrapper option that allows for an element type to be specified as a wrapper for the error message, but it's only wrapped once.
Is anyone familiar with how to do nested wrapping?
This isn't my exact markup, but as an example:
<div class="tooltip">
<div>
<div>
<span class="error">This field is required.</span>
</div>
</div>
</div>
* UPDATE *
The response from Chris answers my original question, but creates a new problem. The errors are now being displayed as desired, but the plugin fails to clear them. When a failed validation passes, span.error is set to display:none, but the div.tooltip nested wrapper still displays.
I've been using the JQuery Autocomplete plugin with JQuery version 1.3.2, and it has been working great. I recently updated JQuery in my project to version 1.4.2, and the Autocomplete plugin is now broken. The JQuery code to add items to a textbox on my web page doesn't seem to be getting called at all. Does anyone know if the JQuery Autocomplete plugin is incompatible with JQuery version 1.4.2, and if there is a fix for this problem? Here is some sample code I've built in an ASP.Net web site (which works fine if I change the JQuery file to jquery-1.3.2.js, but nothing happens using jquery-1.4.2.js):
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript" src="js/jquery-1.4.2.js" ></script>
<script type="text/javascript" src="js/jquery.autocomplete.js" ></script>
<script type="text/javascript">
$(document).ready(function() {
var data = "Core Selectors Attributes Traversing Manipulation CSS Events Effects Ajax Utilities".split(" ");
$(':input:text:id$=sapleUser').autocomplete(data);
});
</script>
</head>
<body>
<form id="form1" runat="server">
API Reference: <input id="sapleUser" autocomplete="off" type="text" runat="server" /> (try "C" or "E")
</form>
</body>
</html>
Hi, everybody.
I want to develop a monitor platform which can monitor many different subjects such as database, OS, middle ware etc.
The system includes two parts:
1. Report center(Show some useful chart and report)
2. Collector(Collect information from monitored subject)
For the time being, I just want to monitor some parameters of oracle and Linux. And I will add more monitor subject like MS SqlServer, IBM Db2 ect. later.
I need a good architecture so I can easily add new monitor module and not to disturb original framework too much.
I want to develop it by the method of “Platform + plugin”.
A plugin should have its own UI, setting part and something else.
I plan to use struts2 + spring + hibernate to develop report center.
I am not very sure how to do design this architecture for I have any “Platform + plugin” experience.
I ever googled some information such as OSGI and Portlet. I am not sure which one should be my best choice.
Can anyone give me some instruction about it.
Your help will be appreciated.
I'm using WordPress plugin Category Page to display the most recent 5 posts from a certain category on a regular content page (not the blog page) of a website.
Right now the plugin is limited to display the post title linked to the post page. This is a video blog type site and I need the plugin to display the post title (as it does now) with the video as well. Probably just telling the script to show the content would work but I don't know how to tweak it.
This is the section of the script that is outputting the post title:
function page2cat_content_catlist($content){
global $post;
if ( stristr( $content, '[catlist' )) {
$search = "@(?:<p>)*\s*\[catlist\s*=\s*(\w+|^\+)\]\s*(?:</p>)*@i";
if (preg_match_all($search, $content, $matches)) {
if (is_array($matches)) {
$title = get_option('p2c_catlist_title');
if($title != "") $output = "<h4>".$title."</h4>"; else $output = "";
$output .= "<ul class='p2c_catlist'>";
$limit = get_option('p2c_catlist_limit');
foreach ($matches[1] as $key =>$v0) {
$catposts = get_posts('category='.$v0."&numberposts=".$limit);
foreach($catposts as $single):
$output .= "<li><a href='".get_permalink($single->ID)." '>".$single->post_title."</a></li>";
endforeach;
$search = $matches[0][$key];
$replace= $output;
$content= str_replace ($search, $replace, $content);
}
$output .= "</ul>";
}
}
}
return $content;
}
If anyone has any advice or knows how to help thanks in advance!
I am using a laptop with Windows 7 Home Prem x64. I have installed Java JDK1.6.0_18 and Eclipse Gallileo. I have downloaded and installed the latest version of Android SDK with several Platforms loaded and a AVD defined. I can install the Android Eclipse plugin from the remote site stated in the instructions. The plugin installation performs without any errors and I can verify that the plugins are indeed installed. My problem begins when I go to Windows - Preferences, there is no Android section to configure. And when I go to File - New - Project, there is no Android Project to choose.
I have uninstalled the plugin and reinstalled at least 10 times, trying different things and still no luck. I originally had the 64 bit version of the JDK installed, but removed it and installed the 32 bit version.
Has anyone heard of this type of problem? Is it because I am using Windows 7?
Thanks for any help.
tbneff
Maybe I'm just not doing right, but I can't seem to get genisoimage to
produce a UDF image and preserve the exec bit.
$ genisoimage --version
genisoimage 1.1.11 (Linux)
$ echo "echo 'Hello world'" > script.sh
$ chmod +x script.sh
$ ./script.sh
Hello world
$ genisoimage -input-charset utf-8 -r -udf -volid minimal -o minimal.iso script.sh
Total translation table size: 0
Total rockridge attributes bytes: 250
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 0
420 extents written (0 MB)
$ mkdir mount
$ sudo mount minimal.iso $PWD/mount -o ro,loop -t udf
$ ls -l script.sh mount/script.sh
-r--r--r-- 1 root root 19 Sep 21 18:40 mount/script.sh
-rwxrwxr-x 1 kip kip 19 Sep 21 18:40 script.sh
You'll note in the last command that script.sh was executable at the
time it was injected into the image, but does not appear to be inside of
the mounted image.
Is this a bug in genisoimage, a problem with the way I am mounting the
image, or a problem in my usage of genisoimage?
Ceci est une traduction d'une annonce faite par Sonatype à l'adresse suivante. http://www.sonatype.com/about/in-the-news/20100322
Citation:
Un environnement de développement innovant permet à plus de 3 million de développeurs Maven Java(tm) d'améliorer drastiquement leur productivité
EclipseCon - 22 Mars 2010 - Sonatype, gestionnaire du projet Maven et...
Bhavani has some new over at java.net about the MavenPlugin for GlassFish and how it now supports the ability to deploy multiple applications.
He also has a Tips, Tricks and Troubleshooting entry.
Multiple deployments are done during the Maven pre-integration-test phase but with a goal-specific configuration for app, contextRoot, etc...
The :run (all-in-one) execution also now supports admin and deploy goals.
Note that these improvements will require a recent work-in-progress 4.0 version of GlassFish.