rails select loading oncomplete complete

select(“main_filter”, nil, Tag.find_ordered_parents.select{|t| t.products.size > 0}.map{|t| [t.name, t.id]}, { :include_blank => blank_text, :selected => @old_global_filter },
{
:o nchange => remote_function(:loading => “new Effect.Fade($(‘main_filter_’));”, :url => {:action => :change_global_filter}, :with => “‘id=’ + $(‘main_filter_’).value”, :success => “window.location.reload();”),
})

ref: http://apidock.com/rails/ActionView/Helpers/PrototypeHelper/link_to_remote

innosetup how to distribute a java app that will run on 64 or 32 bit jre

I “guess” you need to either add syswow64 to your command line, so that it can fine the 32 bit jre

http://betterlogic.com/roger/2012/05/start-menu-java-program-cannot-find-java-exe-in-64-bit-if-32-bit-java-jre-is-installed/

“or” use some java -> exe helper (like launch4j http://stackoverflow.com/a/856815/32453 ) then just have it “run” that exe, not the jar directly, which I think will work to call out to the 64 bit JRE correctly.

I think the install4j executable will also tell them to install the JRE if absent, which is nice (though ideally, the installer should do that for you, and, ideally, I guess the installer should detect the correct location of java.exe or javaw.exe and use that instead, but InnoSetup doesn’t by default–since it’s 32-bit itself, it gets the path to 32-bit JRE “wrong”).

 

drools woe

Caused by: java.lang.IllegalArgumentException: Unable to instantiate service for Class ‘org.drools.builder.KnowledgeBuilderFactoryService’
at org.drools.util.ServiceRegistryImpl.get(ServiceRegistryImpl.java:161)
at org.drools.builder.KnowledgeBuilderFactory.loadServiceFactory(KnowledgeBuilderFactory.java:131)
at org.drools.builder.KnowledgeBuilderFactory.getKnowledgeBuilderServiceFactory(KnowledgeBuilderFactory.java:125)
at org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilder(KnowledgeBuilderFactory.java:47)
at com.tessella.sdb.core.workflow.drools.TenantKnowledgeBase.<init>(TenantKnowledgeBase.java:38)

 

meant “you also need drools-compiler dependency”

https://community.jboss.org/thread/198727?tstart=0

apparently