middleware

Is there a reputation friendly outbound mail agent for linux?

I have a web app that's emailing to a fair number of new and existing users. I'm looking for a simple way to ensure that my site's reputation doesn't get unnecessarily hurt in a way which will decrease deliverability with ISPs or popular web mails. Typical scenarios I want to prevent: trying to email to an address from which an email...

Implement an existing scripting language for a dynamic OO program

Hi, I am working on a program, which handles a lot of objects and data. As I would be able to inject manipulations by having some kind of 'API' to my application. As the application itself does the management of the objects and such, I wonder how this can be implemented. For example, the Unity3D and Panda3D engines allow a variety of la...

Sinatra app as Rails 3 subpath

I'm trying to get a sinatra app as a subpath in my rails 3 app. Specifically, the resque queuing system has a sinatra based web interface that I would like to have accessible through /resque on my usual rails app. You can see the project here: http://github.com/defunkt/resque I found some people talking about adding a rackup file and ...

Django can you receive signals in middleware or alter the response object globally?

I'd like to call a function in my view or any module for that matter and have it update the response body. My initial thinking is to implement a process_response middleware to update the response body, and set up a callback that receives signals sent in my function calls, but when I try, the receiver never fires (I've tested the singal/...

What would you suggest for a DAL for isolation between the BL and a middleware stack?

Here's the situation: I have a middleware stack (third party, no sources) that provides services to a database using an HTTP XMLRPC server. The middleware provides several methods to query data and also a way to pass in a SQL string to the database and return the results if applicable. This is fine for simple scenarios but highly ineff...

Django: What is the most ideal place to store project-specific middleware?

I'm aware I can "store it anywhere in my python path" and all, but what's an organized pattern I can use to store middleware classes for my project? I am appending my project root directory and project directory to the sys path through mod_wsgi: sys.path.append( '/srv/' ) sys.path.append( '/srv/workarounds/' ) The latter line being t...

What is the common practice for targeting Foreign Servers in Oracle WebLogic Server

We’re trying to come up with something approaching a simple and straight-forward model for targeting of JMS resources in WebLogic (fat chance, I know). Queues and Topics can easily and quite intuitively be mapped to JMS servers running on WebLogic servers, but Foreign Servers and the resources within them seem to be a bit more tricky. I...

AttributeError: 'WSGIRequest' object has no attribute 'session'

Hello, I keep getting this error at random times and whenever I touch the django.wsgi file, it gets fixed only to happen again after a few hours. I'm lost as to what to do. my middleware_classes is as follows: MIDDLEWARE_CLASSES = ( 'django.middleware.cache.UpdateCacheMiddleware', 'django.middleware.common.CommonMiddleware', ...

Oracle Fusion Middleware comaprison with other leading middleware products in market

Hello, Anyone please provide "Oracle Fusion Middleware comaprison with other leading middleware products in market" based on features, cost, etc. ...

How do I set a cookie with a (ruby) rack middleware component?

I'm writing a rack middleware component for a rails app that will need to conditionally set cookies. I am currently trying to figure out to set cookies. From googling around it seems like this should work: class RackApp def initialize(app) @app = app end def call(env) @status, @headers, @response = @app.call(env) @r...

Web server - ns2 middleware (in Python)

Hi Developers, I want to integrate ns2 with a web server to show some kind of simulation results. Could anyone plz suggest if there's any middleware for this purpose? Google failed to return me any suitable result for this :( Also, if I plan to develop a middleware from scratch for the same purpose, is there any guideline to follow? In...

App Engine (python) skips webapp middleware (like Appstats) in production but works fine on dev server

I'm using App Engine python to host an application and would love to use Appstats and a couple of other libraries that run as middleware. However, when I set up middleware through appengine_config.py (as shown below) it works on the dev server but not in production. Appstats AND gaesessions work like a charm in the dev server and don't...

A copy of [middleware] has been removed from the module tree but is still active! - error

We use rails version 2.3.5 This error has been reported in SO here I tried the following: adding config.cache_class = true - the problem with this was that, the server had to be restarted every time a change was made to any controller. Also the server start time was too long adding unloadable to the middleware - no use adding config....

Automatically encode Rack output with JSON when Content-Type is application/json

I've got a modular Sinatra app and I'd like to encode the output as JSON when the content-type dictates. At the moment I'm doing so manually in my routes: get 'someroute' do # content-type is actually set with a before filter # included only for clarity content_type 'application/json', :charset => 'utf-8' # .. # {:su...

Where do you put your Rack middleware files and requires?

I'm in the process of refactoring some logic built into a Rails application into middleware, and one annoyance I've run into is a seeming lack of convention for where to put them. Currently I've settled on app/middleware but I could just as easily move it to vendor/middleware or maybe vendor/plugins/middleware... The biggest problem is...

PKCS11 driver for CAC card/ card reader

I have a doubt regarding how to get the pkcs11 driver for interacting with CAC cards .As far as I understood the card reader should provide the driver. I just checked the SCR331 card reader abd they do not seem to have a pkcs11 driver. However the US DoD contracted ActivClient seems to have one which works with the SCR331. Also I got to ...

rails 3 swf_upload InvalidAuthenticityToken and sending cookie session

Hi guys. I have a swfupload working with paperclip on rails 3 (finally!) I turned off the autehnticitytoken with the following line in my controller: skip_before_filter :verify_authenticity_token, :only => :create I know am trying to get sessions working (flash doesn't send this) Of course i googled my ass of but no luck so far. thi...

Non regex WSGI dispatcher.

I've found this regex based dispatcher but I'd really rather use something that only uses literal prefix strings. Does such a things exist? I know it wouldn't be hard to write but I'd rather not reinvent the wheel. ...

which technologies to use for middleware server in .net?

Hi, I don't know whether this is a silly question! I searched the web with no useful hits. I am a dot net user (C#).I want to develop a Server, it may be called a middleware server (actually I am not sure), which does the following tasks, I have a server which cannot be modified and many clients that request the server and receive th...

How to send a secure request to a data tier over a firewall

I've been asked to populate a flash file with some data from a database. I said, "Great, I will write some PHP that talks to the database and outputs xml. The swf can call that file." My boss then told me that that solution wouldn't make the cut with IS, and I would have to find a more secure way of doing it. Ugh! My proposed solution ...