integration

How to integrate Spring Security and GWT?

笑着哭i 提交于 2019-12-04 10:07:54
问题 I'm trying to integrate Spring Security and GWT. I'm also using gwt-incubator-security. I configured everything as it was described on their wiki pages. I managed to get security working by using intercept-url, but I can't get it working using annotations. Any ideas about what the problem is? P.S. I'm using Spring 2.5.6, Spring Security 2.0.5 and gwt-incubator-security 1.0.1. Any useful links and comments are welcome. Here are my config files applicationContext.xml <?xml version="1.0"

What ClearCase plugin to use with Visual Studio 2008 SP1

丶灬走出姿态 提交于 2019-12-04 09:29:31
At work I have to use ClearCase v7.0.1.2 and ClearQuest v7.0.1.0 with Visual Studio 2008 SP1. Am running on a Windows XP SP2 box. I've done some searching but not found an official installer yet, can anyone advise (provide a link to) on the best plugin/addin to install for Visual Studio 2008 integration? Thanks The official instructions are in this IBM page CC-CQ-VS2008.zip (32 bits) CC-CQ-VS2008.zip (64 bits) Process: Download the appropriate package from the FTP link below to your ClearCase, CCRC or ClearQuest host. Decompress the archive to a temp location. Follow the instructions

C++ from SpeakHere in iPhone app

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 09:06:01
I've made a template app where I've grabbed the recording part of the SpeakHere example and removed the file handling part, but I'm struggeling to get the C++ part of the app working right. As soon as it enters the C++ class, it gets syntax errors. If I don't import the header files from C++ (and then of course don't use the code) into my Objective C classes, all works fine. I cannot see the difference between how I'm doing it and the example is doing it. Can you see the difference? I've posted the entire code here: http://github.com/niklassaers/testFFT The build errors I get are: testFFT

nodeJS and PHP (Laravel) integration for Socket.IO live chat

蹲街弑〆低调 提交于 2019-12-04 07:51:33
问题 Currently I have a website which I wrote on PHP via the Laravel framework . I have wrote a live chat using nodeJS with Socket.IO and Express and now what I want to do is to integrate it inside my already written Laravel website. The problem is the chat must be in the main page, which is currently rendered by the views of Laravel. Currently I am on a shared hosting. The question: What are your best suggestions for such integration? I know that the LAMP stack comes ready in most shared domains

scala sbt test run setup and cleanup command once on multi project

一曲冷凌霜 提交于 2019-12-04 07:38:37
I know I can add setup and cleanup code in sbt for the test phase by modifying the testOptions, e.g.: val embedMongoTestSettings: Seq[Setting[_]] = Seq( testOptions in Test += Tests.Setup( () => createMongod()), testOptions in Test += Tests.Cleanup( () => destroyMongod()) ) The problem I have is that this done on a per project basis and then done once for every project. So when I have a multi project set up, I fire up several databases in this case (which would work, but means I have to configure per project ports, etc.). Is there a way within sbt that makes sure that certain steps are only

Grails Integration Test Filter

与世无争的帅哥 提交于 2019-12-04 07:25:49
Is there a way to test a controller which uses a filter on an integration test? There seems to be a way using the @Mock annotation for Unit Tests and than wrapping the controller call on a withFilter closure. But I can't get to test filters on an integration test which from my pov should be very straight forward. Update So here is the solution I found. Instead of using the @Mock annotation, I instantiated the FiltersUnitTestMixin class and populated it with the necessary values. public class ControllerTest { def controller = new Controller() FiltersUnitTestMixin f = new FiltersUnitTestMixin()

Change detection in Angular 2

我与影子孤独终老i 提交于 2019-12-04 06:41:08
问题 I am integrating angular 1 and angular 2 together. Therefore I have angular 1 controller and service and angular 2 component. Those are working fine for data retrieving and storing vice versa. Below is my html page. <body> <h3>Angular 1 service</h3> <div ng-controller="MainController"> <input ng-model="username" /> <button ng-click="setUser()">Set User</button> <button ng-click="getUser()">Get User</button> <div>User in service : {{user}}</div> </div> <hr> <h3>Angular 2 component uses Angular

Is there an easy way to integrate jshint with netbeans?

廉价感情. 提交于 2019-12-04 06:26:01
Searched the net for a jshint plugin for netbeans, but found none... Can anyone describe or show an easy solution for jshint integration in netbeans? There is no good plugin for netbeans. Install node, use grunt and start rocking! :) I think this may work for you: jshint Netbeans has two plugins for Javascript code quality. JSHist : It is relatively new, It was added on Dic-2013 Only supports version 7.4 of Netbeans and JSLint : It seems that is working as plugin since a while, It was added on Nov-2011 and the last updated was on Oct-2013. Supports versions 7.4, 7.3, 7.2, 7.0 of Netbeans. It

Spring 3 MVC Controller integration test - inject Principal into method

那年仲夏 提交于 2019-12-04 06:19:08
As part of Spring 3 MVC it is possible to inject the currently logged in user (Principle) object into a controller method. E.g. @Controller public class MyController { @RequestMapping(value="/update", method = RequestMethod.POST) public String update(ModelMap model, Principal principal) { String name = principal.getName(); ... the rest here } } This is documented as part of the Spring 3 documentation here: http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html#mvc-ann-requestmapping-arguments . This works in the production code. However I don't know how to

Accessing a web service from CQRS

本小妞迷上赌 提交于 2019-12-04 04:41:08
Supposed I have a CQRS-based system and my domain needs some data from an external web service to make its decisions. How do I model this correctly? I can think of two options: The command handler runs the domain logic and the domain itself calls out to the web service. Once it gets a response, it attaches the appropriate events to the current aggregate and stores them. The domain basically "waits" for the web service to return. The command handler runs the domain logic and the domain immediately emits a domain-internal more data needed event. A process manager reacts on this, talks to the web