pipeline

Powershell: how do you read & write I/O within one pipeline?

I'd like to be able to type quick, simple commands that manipulate files in-place. For example: # prettify an XML file format-xml foo | out-file foo This won't work because the pipeline is designed to be "greedy." The downstream cmdlet acquires a Write lock to the file as soon as the upstream cmdlet processes the first line of input...

Importing Maya ASCII to game

I am currently working on creating an import-based pipeline for my indie game using Maya ASCII .ma as source format and my own format for physics and graphics as output. I'll keep stuff like range-of-motion attributes inside Maya, such as for a hinge joint. Other types of parameters that needs a lot of tweaks end up in separate source fi...

Efficient XSLT pipeline in Java (or redirecting Results to Sources)

I have a series of XSL 2.0 stylesheets that feed into each other, i.e. the output of stylesheet A feeds B feeds C. What is the most efficient way of doing this? The question rephrased is: how can one efficiently route the output of one transformation into another. Here's my first attempt: @Override public void transform(Source data, ...

C# -Pipeline Style event model

In ASP.NET Web Apps , events are fired in particluar order : for simplicity Load => validation =>postback =>rendering Suppose I want to develop such pipeline -styled event Example : Event 1 [ "Audiance are gathering" ,Guys{ Event 2 and Event 3 Please wait until i signal }] after Event 1 finished it task Event 2 [ { Event 2, ...

IIS 7 Applications and asp.net - newbie question

Just getting started on a project to migrate from win 2003 iis6 to win 2008 / IIS7, and after reading the MS documentation and also various articles I am a little confused, as it states a site needs to have one or more applications. However I have setup a new site pointed at my .Net 3.5 directory and it works. This means that .... A...

Is it possible to use the pipeline operator to call a method on a returned object?

Is it possible to call a method on a returned object using the pipeline infix operator? Example, I have a .Net class (Class1) with a method (Method1). I can currently code it like this: let myclass = new Class1() let val = myclass.Method1() I know I could also code it as such let val = new Class1().Method1() However I would like t...

Best way to stop Firefox pipe-lining from messing up my stats

I've noticed that my pageview counts are being messed up by the pipe-lining feature in Firefox. People who visit using Firefox with pipelining enabled count two (or more) times for each visit. What is the best way to detect or block these duplicate requests? I need to know how to block it on my server, not just how to disable pipeli...

Non-blocking HTTP requests in object-oriented PHP?

I have a PHP client application that is interfacing with a RESTful server. Each PHP Goat instance on the client needs to initialize itself based on information in a /goat request on the server (e.g. /goat/35, /goat/36, etc.). It does this by sending an HTTP request to its corresponding URL via cURL. Working with 30+ goat objects per page...

Adding Connection to PipelineComponent

I am writing a custom PipelineComponent for SSIS, and need to access a connection as defined within the package connection manager. I have tried using the AcquireConnections method as described here but when i call ComponentMetaData.RuntimeConnectionCollection.Count I get 0 (zero) count. Currently my class has the below attribute: ...

How do I set BTS.Operation in a custom pipeline?

Up until now I've only been using orchestrations in my BizTalk application and it's been working fine so far. But now I want to convert some of the unnecessary orchestrations to pure message routing instead in order to get better performance. I've got a WCF service with only one method and that works fine because I can set the BtsAction...

Parallel pipelining

(fileNameToCharStream "bigfile" |>> fuse [length; splitBy (fun x -> x = ' ' || x = '\n') removeEmpty |>> length; splitBy (fun x -> x = '\n') keepEmpty |>> length; ]) (*fuse "fuses" the three functions to run concurrently*) |> run 2 (*forces to run in parallel on two threads*) |> (fun [num_chars; num...

C# Stream Design Question

I have an appliction right now that is a pipeline design. In one the first stage it reads some data and files into a Stream. There are some intermediate stages that do stuff to the stream of data. And then there is a final stage that writes the stream out to somewhere. This all happens serially, one stage completes and then hands off to ...

Calling biztalk pipeline component from .NET C#

Hi All, Currently decryption/encryption and signature validation is implemented in my BTS application by using custom pipeline component which internally uses pipleline assembly that is the BTS assemblies, I was thinking of shifting the message encryption/decryption logic to the web service layer so that once messages are authenticated/...

IIS 7 - Windows Authentication not working

Hello, We have several web apps that use Windows Authentication that worked fine on IIS6. After deploying them to IIS7, Windows Authentication no longer works (we get 401.2 errors) UNLESS we set the web app to use the "Classic Pipeline" I realize that Forms auth and Windows Auth aren't simultaneously supported as mentioned here and he...

What determines whether the Powershell pipeline will unroll a collection?

# array C:\> (1,2,3).count 3 C:\> (1,2,3 | measure).count 3 # hashtable C:\> @{1=1; 2=2; 3=3}.count 3 C:\> (@{1=1; 2=2; 3=3} | measure).count 1 # array returned from function C:\> function UnrollMe { $args } C:\> (UnrollMe a,b,c).count 3 C:\> (UnrollMe a,b,c | measure).count 1 C:\> (1,2,3).gettype() -eq (UnrollMe a,b,c).gettype() True ...

Encryption/Decryption using X509 certificate in biztalk custome pipeline component

Hi All, I need to use X509 certificate in the BizTalk Custom Pipeline component to Encrypt/Sign the message and to Decrypt/Verify signature, please let me know some good samples/artcile/blogs etc which explains how to acheive this. RSA needs to be the encrypton algoritham. Thanks. ...

XNA: Dynamic content loading without Game Studio installed?

Hi. I'd like to enable my game to load content (such as a model, a jpg file, etc.) during run-time and display them. I looked at the sample on XNA website (http://creators.xna.com/en-US/sample/winforms%5Fseries2), however this method requires Game Studio (which means Visual Studio too) installed on the client computer. What are the ap...

Using Scala Actors to create sth like a Pipeline

Hello I am struggling with the following problem for a week by now and need some advice. def query(title: String): List[Search] // query("Terminator") => ["Terminator I", "Terminator II", "Terminator 1984", etc...] def searchIMDB(s: Search): List[SearchResult] def searchTMDB(s: Search): List[SearchResult] def filterRedundantSearchR...

parsing git output

I'd like to integrate git into production pipeline to stage 3dsmax files. While it is alright to work with git through TortoiseGit, I'd like to communicate with it from the Maxscript to add custom menu commands to 3dsmax. Should I parse git status output text to determine folder status or should I use some wrapping tool to correctly com...

Would this be a pipeline, a chain of responsibility, or something else?

I'm building a multiprocess architecture that seems to be a strange meld of a pipeline and a chain of responsibility. Essentially, I have a chain of handlers linked up by queues. Each handler will receive an object that represents the input data, forward it to the next handler so that it can start working on it, and then determine if i...