bridge

What is the best architecture to bridge to XMPP?

If I have a separate system with its own concept of users and presence, what is the most appropriate architecture for creating a bridge to an XMPP server network? As far as I can tell there are three primary ways: Act as a server. This creates one touchpoint, but I fear it has implications for compatibility, and potentially creates c...

Can network interfaces be bridged "automatically" with Windows?

I'm working on a portable device, that when I connect it to a windows machine (over USB), it shows up as a seperate network interface to the PC. This is great, except when I want to connect several devices together, and want them to all be on the same network (subnet). I'm looking for the ability to bridge network interfaces together au...

Creating a Mixed Mode C++ Bridge from C to C#?

I hope someone can help me with this, I'm mostly a C# developer so my C and C++ skills are bad. I have a native C dll that is a plugin of a larger application. I cross compile this dll for windows on linux using gcc. In the native dll when I create a D3DSurface I want to call a function in a Mixed Mode C++ dll and pass in the pointer ...

Extending both sides of a Visitor/Bridge pattern

Say I have a hierarchy of classes, let's use the classic Shape examples: abstract class Shape Circle : Shape Square : Shape I have a second hierarchy of renderer classes that handle the rendering of shapes in different ways: abstract class ShapeRenderer HtmlShapeRenderer : ShapeRenderer WindowsFormsShapeRenderer : ShapeRenderer Al...

How do I make C# talk to PHP session

I have a C# web-app that I wants to integrate an PHP shopping cart, it is possible? Thanks ...

How to call java objects and functions from CPython?

I have a python program, which runs on the CPython implementation, and inside it I must call a function defined in a java program. How can I do this? It would be nice to be able to use some java objects too. Jython is not an option. I must run the python part in CPython. ...

What is the difference between the bridge pattern and the strategy pattern?

I tried to read many articles on dofactory, wikipedia and many sites. I have no idea what the difference is between them. I know both of them decouple an abstraction from its implementation and can change implementation at run time. But I still don't know in which situation I should use strategy or in which situation I should use brid...

How do you deploy from svn when your original repository is in Git

My team develops using Git, making good use of many of its features. We are measurably more efficient at using git that svn. However our current client want us to deploy code from an svn repository, which means we are required to somehow regularly move our code from git to svn. At the moment we are maintaining a directory that is both...

How to execute COM+ libraries from Java?

I have a COM+ component developed with VB6. After registering it with the component services manager COM+ application, I can use it from ASP like this Set Comando = Server.CreateObject("JuiciosComando.clsComando") ComandoExecute = Comando.execute(Xml) Set Comando = Nothing That's all I need, the component just receives a (maybe huge)...

Use C++ with Cocoa Instead of Objective-C?

Hi. I would like to write applications that use C++ and the Cocoa frameworks because Apple are not making Carbon 64-bit capable. C++ seems to be pretty vanilla in it's implementation on Linux and Windows but on Mac OS X it seems like additional Apple specific pieces of code are required (like an Obj-C wrapper). It also seems that Apple a...

Query Windows Search from Java

I would like to get to query Windows Vista Search service directly ( or indirectly ) from Java. I know it is possible to query using the search-ms: protocol, but I would like to consume the result within the app. I have found good information in the Windows Search API but none related to Java. I would mark as accepted the answer tha...

Feed java with characters/string/bytestream from a c# class

I want to have a java app running, using a function/method (with as little delay as possible I hope!) in a c# class... The c# function takes a string from the java app, and returns a string.. Had to do it in c# to make a OleDbConnection in windows.. Thanks :) ...

JSF Faces Bridge get java.lang.NullPointerException when deploying to oc4j container

I am running JDeveloper 10.1.3.4 with the webcenter pre-configured oc4j. I'm trying to portletize a vanilla JSF webcenter project. I create a application using the webcenter application template. Add a JSF JSP, simple called it index with all the default values. Add a deployment profile and deploy to local oc4j navigate to the jsf pag...

Query Mac OS X Spotlight from Java

Related to: Query Windows Search from Java But this time to use OSX's spotlight I would like to consume OSX spotlight service from Java. Is there an API available? Thanks. ...

Mixing Qt with STL and Boost - are there any bridges to make it easy?

Are there any bridges to make mixing Qt with STL and Boost as seamless and easy as possible? This is a followup to Mixing Qt and Boost, where no specific answers how to accomplish this were given. ...

Need help with connecting c++ and c# code with a c++/cli bridge

I have a client application in native c++ code which is using native c++ dlls. I am investigating the possibility of connecting this code with c# dlls as they would be much easier to write. I decided to write a c++/cli bridge dll which can be loaded with LoadLibrary and which would pass the calls to c# dll. The communication between the...

Know any creative ways to interface Python with Tcl?

Here's the situation. The company I work for has quite a bit of existing Tcl code, but some of them want to start using python. It would nice to be able to reuse some of the existing Tcl code, because that's money already spent. Besides, some of the test equipment only has Tcl API's. So, one of the ways I thought of was using the sub...

Not receiving callbacks from the Java Access Bridge

I'm trying to use the Java Access Bridge to get information about Swing components from inside a C++ app. However, none of the callbacks I register ever get called. I tried enuming the windows an then calling IsJavaWindow() on each handle, but it always returns false. Any ideas on why it apparently is not working? I presume it's a pr...

Flex-Ajax Bridge issue on Safari

My flex project uses FA-Bridge, and apparently in Safari browser I cannot call any of my public AS functions that have arguments passed in. For example I can call this AS function from javascript: var myButton = CreateNewButton(); myButton.setLabel('Click here'); But if I try calling it in a single statement like this: var myButton = Cre...

What am I missing to get a PHP ScriptEngine in Java

I try to get a PHP ScriptEngine from the ScriptEngineManager, but getEngineByName("php") returns null. The following unit test works, if I replace "php" with "javascript", but it fails for "php". import static org.junit.Assert.*; import org.junit.Test; import javax.script.*; public class ScriptEngineTest { @Test public void exe...