FAQ Database Discussion Community


Location of python source code in Jython/Java integration

java,python,integration,jython
I could integrate the java/jython from this source. I downloaded the jython with brew, so the jar file is located in /usr/local/Cellar/jython directory. I came up with the following script to build the class file into the _build directory, but the issue is that I had to copy the python...

MATLAB- ode solver: Unable to meet integration tolerances

matlab,integration,ode
I have a problem with ode solver in MATLAB. I used all ode solver like ode23s, ode23, ode15s, ode45 and so on. And my code can not be calculated, because of error-warning: Warning: Failure at t=8.190397e+01. Unable to meet integration tolerances without reducing the step size below the smallest value...

Dynamically loaded AngularJS application

javascript,angularjs,dynamic,integration
I'm looking to integrate an AngularJS web application into a number of websites. I'd like to be able to provide each website administrator with an HTML code, such as the following: <div id='angular-integration-app'></div><script src="widget.js"></script> With this HTML code inserted into the website, the website should load AngularJS and insert an...

How to numerically integrate with infinite limit in MATLAB?

matlab,integration,infinite,numerical
I want to numerically integrate an integral with infinite limit. Does anyone have any idea how should I do that? int(x* exp (v*x + (1-exp(v*x))/v),x, o , inf) does not work. Note that I will have values for v. %n=10; kappa=.5; delta0=.5; Vmax=500; Vdep=2.2; l=2.2; kbT=4.1; %xb=.4; fb=10; k=1; V0=5;...

Numerical Integration, using the trapezium rule in C

c,loops,for-loop,integration,numerical-integration
I am using the trapezium rule to calculate the integral of a function between 0 and infinity. I can calculate the value of the integral for a given value of N, and now I am trying to loop N from two to a given value but it will not work....

Biztalk 2010 : Not able to Query SalesForece through Enterprise WSDL.Illegal Header issue

wsdl,salesforce,integration,biztalk
I am implementing BizTalk 2010 Saleforce integration where I am purely using enterprise wsdl for calling its methods. No C# code for any operation. I am successfully able to call login method and getting result back with all details. Now at the subsequent request where I am calling query method...

excel datasource returning nulls with sql command

excel,excel-vba,ssis,integration
I'm reading excel sheet that has a column formated as number but every now and then contains letters. These are returned as NULLS. I need the values. I added IMEX=1 and that did not help. Changing Values in the registry is not an option. the columns are fixed so is...

How to calculate the integral of log-normal distribution with MATLAB

matlab,statistics,integration,distribution,symbolic-math
I want to calculate the part-expectation of log-normal distribution via: m = 1; v = 2; mu = log((m^2)/sqrt(v+m^2)); sigma = sqrt(log(v/(m^2)+1)); syms x; d = x*lognpdf(x,mu,sigma); int(d, x, 0, 10); However, MATLAB says: Error using symfun>validateArgNames (line 211) Second input must be a scalar or vector of unique symbolic...

Numerical integration, dimensions do not agree despite use of .^ and .*

matlab,matrix,integration
I have an issue with Matlab integration. It tells me that there is an error about dimensions. However they do agree and operations are properly done using vectorized operators (.^ .* etc...). It is simple code yet I am stuck A = 1:10; B = 1:10; K_fun = @(x) (x...

Double integration using experimental data

matlab,data,integration,splines
I need to perform a double integration using experimental data, but my integration limits are the same for each integral, in this case, the time. Mathematically I need to calculate: E [ a0+ ∫0T a(t)dt ] = a + limTx → ∞ (1/T) ∫0T ∫0t a dt dT After some...

Solved - Long PHP script does not run completely

php,magento,integration
Problem I'm trying to execute a script in PHP that read a CSV file and for each row that the script read it get the code and verify if already exists in DB. If this code exists in DB update the stock if not exists just insert into DB. But...

Integration of one vector over another

arrays,matlab,integration
I have two vectors of the same size and I want to make a third vector of the same size but values of that third vector are integrated. I did this in origin and it is quite simple, but I need that in matlab. I will post the example: A...

How Spring is injecting properties in Struts actions, that are not defined in applicationContext.xml

spring,java-ee,struts2,struts,integration
I am in a project having frameworks like Spring 3 + Struts 2 + Hibernate 3. Also it uses spring security. Spring and Struts is integrated using spring ContextLoaderListener defined in web.xml <listener> <display-name>Spring Initialization</display-name> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> There are several service classes which usually make db calls. like agentserviceprocess is...

Biztalk 2010 - Salesforce CRUD Operation through WSDL purely

wsdl,salesforce,integration,biztalk,biztalk-2010
I am working on BizTalk 2010 and SalesForce integration where I am purely using SalesForce enterprise WSDL to perform all operations. I am successfully able to login and query through WSDL, now my test is I want to do CRUD operation on any object (eg. Quote or Contact etc) using...

Using machine learning to make a computer learn calculus

machine-learning,integration,neural-network,implementation,calculus
Are there any known approaches of making a machine learn calculus? I've learnt that it is quite simple to teach calculating derivatives because it is possiblen to implement an algorithm. Meanwhile, an implementation of integration is possible but is rarely or never fully implemented due to the algorithmical complexity. I...

I have integrated CLIPS with VC++(MFC), why there are some function does't execute,such as “strcmp”

c++,mfc,integration,clips
I used the CLIPS6.30 version, and the way that I embeded the CLIPS into VC++ was just like the wrappedDLLExample shown in "advance.doc" (using CLIPSWind32.lib and CLIPSWin32CPP.lib). When I write a class myCLIPSCPPRouter, I need to compare the logicalNames.But the function "strcmp" doesn't work. The code line was skipped. int...

Unity3d - Failed to load 'Assets/Plugins/QCARWrapper.dll'

unity3d,integration,vuforia
I want to use c++ dll on unity android application. To use native dll on a android device, I learn that I should use Unity 5. I download unity5 from here. My application requires vuforia. So I download vuforia package from here. Unity 5 is 64 bit. On unity editor,...

How to integrate Google Bigquery with c# console application

c#,integration,google-bigquery
If it is possible to integrate Google big query with C# console application?. If yes how we can do, i searched over internet i could not find proper answer for that. I want connection string format? I have created Client ID from Google Developer console how authentication has done? It...

How to use YouTube API for an iOS app?

ios,objective-c,google-api,youtube-api,integration
I have searched the web for tutorials and instructions but could not find any on this... So I was hoping maybe someone here can point me in the right direction or just link some good tutorials. (By the way I am willing to make a basic YouTube client app which...

how to implement signout functionality for Facebook integration in social-auth for android

integration,socialauth
I am using social auth library for sharing and login with social media in android app. I have logged in and authorize successfully with facebook. class SignUp extends Activity { SocialAuthAdapter adapter; @Override protected void onCreate(Bundle savedInstanceState) { adapter.authorize(SignUp.this, Provider.FACEBOOK);} but I don't know how to signout from this....

Apache Camel: Does MockEndpoint with 'mock:direct:foo' URI correctly mock an endpoint with 'direct:foo' URI?

apache-camel,integration
Does MockEndpoint with 'mock:direct:foo' URI correctly mock an endpoint with 'direct:foo' URI? Does this even make any sense ?

Selenium grid and TeamCity integration

teamcity,automated-tests,integration,selenium-grid
I'm new to TeamCity and Selenium Grid just trying to get my head around it. I'm trying to install Selenium grid. I am a bit confused about starting Selenium Grid. So on the Selenium site it explain to run commands: Hub: java -jar selenium-server-standalone-2.44.0.jar -role hub Node: java -jar selenium-server-standalone-2.44.0.jar...

Spring Integration - Read file by name

java,spring,integration,spring-boot,spring-integration
I want to read a file by name using Spring Integration. I know how to use file-adapter with poller. But in this case I just want to read a file by name and add it to the input channel. My application is a standalone jar, and will be invoked using...

Need Fingerprint Reader Integration with SDK?

sdk,integration,fingerprint,reader
I need to integrate a fingerprint system with my software. Can any one recommend any best fingerprint sdk solution with complete tutorial. Thanks in advance Robert...

SSIS Lookup multiple identical databases

ssis,components,integration,lookup,multiple-databases
I'm working on a project where i need to do lookups on a data warehouse server in Integration Services. My problem is that I need to be able to change what database it i performs the lookup to. The databases are design wise identical. I have solved this problem with...

Matlab integration issue, issue with input function

matlab,integration
I am trying to do a numerical integration on a function which is absolutely horrible to expand and work with analytically. The integral is over dpsi and dtheta. If I store the variables as sym i am told the integral input must be a double or single, if i store...

Camel: How to force enrich() do not invoke aggregate() in case of exception occurred on getting data from resource before version 2.14

java,apache-camel,integration
In camel 2.14 appeared option aggregateOnException to force aggregate() invocation. But we use version 2.8. In my case such code from("some_route").routeId("enrich") .enrich("some_resource_with_useful_info", MyAggregator()) .multicast().stopOnException() .to("first_client", "second_client"); could fail on "some_resource_with_useful_info" and I want camel not to invoke aggregate() in MyAggregator. But it does invoke and there occurred second exception. Also...

Bluemix API Manager Swagger 2.0 import ignores “formData” variables

import,integration,swagger,bluemix,swagger-2.0
In this code, path and query variables are imported, but the form data variable is not. However, (non-IBM) Swagger UI displays it correctly. { ... "paths": { "/stuff/{p}": { "post": { "consumes": [ "application/x-www-form-urlencoded", "multipart/form-data" ], "parameters": [ { "name": "p", "in": "path", "description": "Path variable", "required": true, "type": "string"...

Gradle project including a maven project as a subproject

maven,intellij-idea,gradle,integration
I have a gradle project(uwantsoft-toolkit) and a maven project(test_pom). I want to include the maven project as a subproject into the gradle project,is it possible? I have tried this like normally including a gradle project: In the gradle settings.gradle file add: rootProject.name = 'uwantsoft-toolkit' includeFlat 'test_pom' When I try to...

Spring-data and Spring-security integration

spring,spring-security,integration,spring-data
The document said by introducing a bean of type SecurityEvaluationContextExtension then it will make available all the commons built-in security expressions like 'principal', 'hasRole', etc. The example shows a simple integration using 'principal' in the @Query @Query("select m from Message m where m.to.id = ?#{ principal?.id }") Now what if...

Spring Integration - SpelEvaluationException: The operator 'ADD' is not supported between objects of type 'java.lang.String' and 'null'

java,spring,batch-file,ftp,integration
I have a Spring batch/integration job that's supposed to poll an FTP server, get all .txt-files, transform them using a Spring Batch component and then put them on a queue (implemented with ActiveMQ). However, I'm getting this error when trying to retrieve a file from the FTP area: ERROR [org.springframework.integration.handler.LoggingHandler]...

QML is not recognising C++ functions

c++,qml,integration
I am trying to implement my c++ class into QML, the class is recognised by setting the context property and I can successfully call the class and see all the functions but on runtime they are not recognised and returns the error: TypeError: Property 'getSrcImage' of object Wrapper(0x7b211cbf10) is not...

scipy.integrate.quad gives wrong result on large ranges

python,python-3.x,scipy,integration,quad
I am trying to integrate over the sum of two 'half' normal distributions. scipy.integrate.quad works fine when I try to integrate over a small range but returns 0 when I do it for large ranges. Here's the code: mu1 = 0 mu2 = 0 std1 = 1 std2 = 1...

Count consecutive repetitive element in a sequence using XQuery

xpath,functional-programming,integration,xquery,osb
If the Sequence = [a a b c c c a d d e e e f g h h] then the Output = [1 2 1 1 2 3 1 1 2 1 2 3 1 1 1 2] Have tried to use recursion but no luck...Please Help..Thanks in...

how to store access token for facebook in social auth

android,facebook,integration,socialauth
I am using social auth for integration of social app like facebook, google and many more. I successfully authorized and access token is printed in logcat but i want to store them for send to api. class SignUp extends Activity { SocialAuthAdapter adapter; public void onCreate(Bundle SavedBundleInstanceState ) { adapter...

C - Monte Carlo Integration - Randoms not random and count not counting?

c,random,integration
Heads up, I'm a bit of a C newbie :P I'm trying to figure out why my program isn't running as intended. First, it's supposed return an x and y value within the range 0.0 to 10.0, which it does, but shouldn't randoms reset after each run? I'm getting the...

Best place to store db parameters in IBM Integration bus

integration,ibm,bus
I am wondering where is the best place to store db parameters in IBM Integration Bus. For example if we have dev, test and prod environment, each one with separate database (of course) how to best organize the changing of the db connection properties? User variables? Some external service? Decision...

When compile the CLIPS integration source code,the CLIPSStatic in the CLIPS Solution is failed

visual-studio-2012,integration,clips
I have checked the updated code from the weibsite: http://sourceforge.net/projects/clipsrules/ When I build the CLPSStactic project, there is an error displayed in the output window: ..\clipscpplib.cpp(281):error C2664: "EnvAddRouterWithContext": cannot convert parameter 4 from "int (__cdecl *)(void *,const char *) to "int (__cdecl *)()"" Notes: I use the VS2012 version Using...

How to integrate a multivariate function in MatLab?

matlab,integration
How do I integrate something like (x + y) (or an expression with any number of variables) with respect to just one of the variables, let's say x from 0 to 1, and get a function of the other variable (1/2 + y in this case) back?

How to get access token in social auth in android and how to reuse them

android,integration,socialauth
I know this question is already asked and answered but that didn't help me. I am working on integration of few social apps like Facebook and Twitter by using social auth lib. I have successfully implemented them by following code: public class SignUp extends Activity implements OnClickListener { private EditText...

How to use a private secure connection in a node.js application?

node.js,integration,bluemix
I have established a private Cloud Integration>Basic Secure Connection, but then to use/access it I have to use mutual TLS in my node.js application (which is on also on BlueMix). I have seen this post: https://developer.ibm.com/bluemix/2015/04/17/securing-destinations-tls-bluemix-secure-gateway/ which describes a way to use the private Secure Connection. But what I am...

how to share a Photo Or link on facebook wall without using FBSDKShareDialog from native ios app

ios,facebook,integration
i want to post some photos Or Link on user Facebook wall without using FBSDKShareDialog .I am already post With using the FBSDKSharePhoto And FBSDKShareDialog defult dialog from facebook. for that i do the below code FBSDKSharePhoto *photo = [[FBSDKSharePhoto alloc] init]; photo.image = self.imgView.image; photo.userGenerated = YES; FBSDKSharePhotoContent *content...

Numerical integration in R for indicator functions on the unit square

r,integration,numerical
I am trying to write a simple routine for obtaining the measure of certain regions in the unit square (two dimensions) I know I could use one of the standard num. integration functions but I wanted to try and optimize my code since the class of functions I am interested...

Netsuite Timsheet feature not enabled error even though it should be enabled

api,integration,netsuite
I'm trying to create a timesheet in Netsuite programmatically through API calls but I get "Timesheet featured is not enabled" error even though I checked possibly all timesheet related checkbox features under Setup-->Company-->Enable feature are checked. Anyone has seen this before? Thanks....

Facebook integration in android is not working when Facebook app is already installed

android,facebook,sdk,integration
I have integrated Facebook sdk in my android application. It works fine when I run it in the emulator which is not having Facebook app. It properly allows me to login but when I tried it in emulator and real device having Facebook app it just shows progress bar but...