external

Where to put external libs in Glassfish

拈花ヽ惹草 提交于 2019-11-30 19:07:15
I have created a JSF2 project with Netbeans 7 and successfully deployed it on Glassfish 3.1. The ear file has grown quite big (6.5mb) though, most of it consists of external jar files (like apache commons, solrj, primefaces and pdfrenderer etc.) which are copied into the respective war/ejb files. My question is: how can I avoid that and make my ear file smaller - it should only contain the stuff that I created, the external libs should only be deployed once on the server. I searched the web for answers on this and the only thing I found was putting the external jar files under 'domains/domain1

Unload external .js file

江枫思渺然 提交于 2019-11-30 18:54:45
问题 I'm loading some HTML and JS with AJAX: main-page.html loads vía AJAX a page called page-to-load.html . <!-- main-page.html --> <html> ... <script> $.ajax({ type:"POST", url:"page-to-load.html", success:function(data) { $("#some_id").html(data); } }); </script> ... </html> page-to-load.html includes html and a js file: <!-- page-to-load.html ---> <script src="scripts-for-this-html.js"></script> <p>This is a HTML page working with above external .js file</p> As you can see, i'm loading a js

How to configure additional classpath in SpringBoot?

依然范特西╮ 提交于 2019-11-30 17:51:44
I want to make standalone web application. I have some problem with SpringBoot. My application is one jar file from SpringBoot. But my application was usually needed jdbc driver jar. I want to exclude jdbc driver jar for my application. I want to read library jar from lib folder. But SpringBoot lib folder is BOOT-INF/lib is final static . So, I want to add external classpath (lib) for jdbc driver jar. How to configure additional classpath in SpringBoot. Is it available? You may refer this below link from spring boot: https://docs.spring.io/spring-boot/docs/current/reference/html/executable-jar

Quick way to transfer “External Tool Configurations” from one Eclipse install to another?

送分小仙女□ 提交于 2019-11-30 17:42:00
Is there a quick way to transfer the "External Tool Configurations" from one Eclipse install to another? It doesn't seem to offer an import/export setting... I managed to copy my "External Tools Configurations" configuration (i.e. my Ant parameters and environment variables) from one workspace to another by copying .launch files in <workspace>\.metadata\.plugins\org.eclipse.debug.core\.launches I found one more easy way , you can export the Launch Configurations from File -> Export-> Run/Debug -> Launch Configurations reprogrammer Open the "External Tools Configurations" dialog. Open the

How do I update Facebook status from my own website?

青春壹個敷衍的年華 提交于 2019-11-30 16:56:19
I have my own site which I am creating a blog/news entries but I want these to upload directly to my Facebook page as I add them. Is there a simple way to do this? My code is something like this <?php $title = "$_Post['title']; $article = "$_Post['article']; // Upload sql and query code code ?> Is there a code or api I can use to also update to my facebook page You will need to sign up to become a facebook developer, create an application, and then using the PHP SDK you can do exactly this. Developers site: http://developers.facebook.com/ PHP SDK: http://developers.facebook.com/docs/reference

How do I update Facebook status from my own website?

試著忘記壹切 提交于 2019-11-30 16:30:33
问题 I have my own site which I am creating a blog/news entries but I want these to upload directly to my Facebook page as I add them. Is there a simple way to do this? My code is something like this <?php $title = "$_Post['title']; $article = "$_Post['article']; // Upload sql and query code code ?> Is there a code or api I can use to also update to my facebook page 回答1: You will need to sign up to become a facebook developer, create an application, and then using the PHP SDK you can do exactly

Converting file:// scheme to content:// scheme

时光总嘲笑我的痴心妄想 提交于 2019-11-30 15:25:58
问题 I am running to the problem with using Droid X's Files app and Astro file manager to select an image file. This two apps return the selected image with the scheme "file://" while Gallery returns the image with the scheme "content://". How do I convert the first schema to the second. Or how do I decode the image with the second format? 回答1: You probably want to convert content:// to file:// For gallery images, try something like this: Uri myFileUri; Cursor cursor = context.getContentResolver()

external database with Adobe CQ5?

爷,独闯天下 提交于 2019-11-30 15:22:31
Is there any way to connect external data base like mysql can be connected to Adobe CQ5 ? JCR(Java Content Repository) in Adobe cq5 now by default connects to H2 database...how to make it use sql/mysql? Go to: /system/console/configMgr Open up: the JDBC Connections Pool configuration Enter all the standard JDBC config elements (username, password, driver, JDBC URI) Enter a Datasource Name (referred to below as yourDataSourceName) In your JSP or Servlet: <%@ page import="com.day.commons.datasource.poolservice.DataSourcePool" %> <%@ page import="javax.sql.DataSource" %> DataSourcePool dbService

Converting file:// scheme to content:// scheme

纵然是瞬间 提交于 2019-11-30 14:36:43
I am running to the problem with using Droid X's Files app and Astro file manager to select an image file. This two apps return the selected image with the scheme "file://" while Gallery returns the image with the scheme "content://". How do I convert the first schema to the second. Or how do I decode the image with the second format? You probably want to convert content:// to file:// For gallery images, try something like this: Uri myFileUri; Cursor cursor = context.getContentResolver().query(uri,new String[]{android.provider.MediaStore.Images.ImageColumns.DATA}, null, null, null); if(cursor

angular2: how to manually add css files by condition to index.html?

我的梦境 提交于 2019-11-30 14:17:33
问题 The below code is that define for style. <!-- for mobile --> <link rel="stylesheet" href="/dist/css/mobile.css"> <!-- for desktop --> <link rel="stylesheet" href="/dist/css/desktop.css"> I want to add above files to <head> in 'src/index.html' by condition. How can I apply a css file for each device? As you know, I can't use 'Conditional' code in 'index.html'. Note that I will not use the method below. // in angular-cli.json "apps": [ { "root": "src", "index": "index.html", "styles": [ "/dist