stream

FB.Connect.streamPublish error?

Does anybody here know if Facebook is deprecating the existing JS api. The pubblishing pop-up just started showing up blank as of yesterday. It was working fine three days ago. I haven't changed my code. Thanks! Trying to learn information from Facebook itself is an exercise in futility. ...

how to make Red 5 to add to read pure FLV incoming stream?

So... I have FLV stream which can be broadcasted by some user. It vill be live, compressed flv stream. How to make Red 5 add it to list of broadcasting streams (BTW: I do not want Red5 to reencode or do anything with that data - just be able to share live data from it on requests.) Any Java class example to do this? or special lib? or ...

Best way to parse XMPP-like XML streams?

I am working on a server application which receives data over a TCP socket in an XMPP-like XML format, i.e. every child of the <root> element essentially represents one separate request (stanza). The connection is closed as soon as </root> is received. I do know that I must use a stream parser like SAX, somehow. Though, for convenience, ...

relational databases and multicast messages

I have read that relational databases are a terrible way to do multicast messages like twitter. So twitter saves every tweet only one times and then retrieve its in every stream ? or saves every tweet in every users's stream ? I want to know why relational database ( like mysql or postgresql ) doesn't good for twitter-like application....

Stream.play on server side makes video choppy

I have an *.flv file on a FMS. When I play it on the client side the video plays just fine, but when I call Stream.play(filename, 0, -1, false) on the server side the video turns out really choppy. I both cases I use NetConnection to connect to an rtmp and NetStream to play the stream, but in one case I connect to a stream and request t...

Why the streams in C++?

As you all know there are libraries using streams such as iostream and fstream. My question is: Why streams? Why didn't they stick with functions similar to print, fgets and so on (for example)? They require their own operators << and >> but all they do could be implemented in simple functions like above, also the function printf("...

Speech recognition with Flash or Silverlight

I'm developing a web user interface to enter some information that is not very complex but needs to be loaded in real time. I think that the application could make use of speech recognition to facilitate the task. Te core of the interface is being built with Javascript and jQuery, but can easily include a flash or silverlight component...

How do you read data from a ADODB stream in ASP as byte values?

I have an ASP routine that gets a binary file's contents and writes it to a stream. The intention is to read it from the stream and process it st the server. So I have: ResponseBody = SomeRequest (SomeURL) ; var BinaryInputStream = Server.CreateObject ("ADODB.Stream") ; BinaryInputStream.Type = 1 ; // binary BinaryInputStream.Open ; ...

How to do comments in Activity Stream? (like Facebook)

Hi, I'm starting to develop an activity stream. I've read both How to implement the activity stream in a social network and What’s the best manner of implementing a social activity stream?. What I haven't found is the best way to add comments to the activities. As in facebook, each comment can be commented by another person. If each ac...

Is there a better way to publish to stream (Facebook) from an Android app?

The "unofficial" FB library is not working very well, so looking for alternatives. In case there aren't what is the most straight forward way to use the library for this purpose solely? ...

Getting access to a binary response byte-by-byte in classic asp/JScript

I asked this question a few days ago but it seems to have gone cold fairly quickly. What I want to do is pretty simple and I can't believe someone hasn't figured it out. Solution needs to be JScript classic ASP. I am reading a file from a remote server and I want to process that (binary) file on my server and spit the results back to ...

Sending information down a socket in C#

I have built two programs in C# and I am sending simple strings through the sockets. This is fine for the moment but in the near future I will need to send more complicated items, such as objects down the sockets and eventually files. What steps would I take to do this? What purpose do the buffers serve for the sockets/streams? Apolo...

JMF Output Stream

Does anyone have a simple example of how to take a local file and (unicast) stream it with Java JMF? Examples from others seem scarce. ...

TCP socket communication

hello, I am creating a Chat in java. I have a method (onMouseRelease) inside an object that creates a tcp server and waits for a socket like this: ServerSocket server = new ServerSocket(port); Socket channel = server.accept(); Now I want to make a thread that will loop and read data from the socket, so that once the user on the oth...

C++ stream as a parameter when overloading operator<<

I'm trying to write my own logging class and use it as a stream: logger L; L << "whatever" << std::endl; This is the code I started with: #include <iostream> using namespace std; class logger{ public: template <typename T> friend logger& operator <<(logger& log, const T& value); }; template <typename T> logger& operator <...

How can I use one stream and save result to many places?

I using servlet and Apache ServletFileUpload that provides stream to uploaded image. All I want to do is to store that image to db and also store resized (I using JAI) version to db. How can I achieve this without saving image to drive. As I understand stream can be read only once. So I need to store whole image in memory? Is it expensi...

blackberry implement audio player

Hi, I am developing an application which let users to hear songs online. And I used Blackberry Player and Manager APIs. My application works fine and I can play songs. Now I wan't to add more controls to it. As an example I want pause, play songs. Mute the sound, Control the volume. Display the progress of the play back. Display the cur...

Concepts: Channel vs. Stream

Hello, is there a conceptual difference between the terms "Channel" and "Stream"? Do the terms require/determine, for example, the allowed number of concurrent Consumers or Producers? I'm currently developing a Channel/Stream of DataFlowVariables, which may be written by one producer and read by one consumer as the implementation is de...

How to publish to Facebook page stream and appear as application instead of user

Background: I have successfully used the Facebook Graph API to publish activity on a particular web site to a Facebook fan page's stream (wall). To do this I had to create a Facebook application for the web site and add it to my own Facebook user profile, with necessary authorizations. Problem: I don't want all the status updates to ...

Output integral to ostringstream as binary?

I just realized that one can use bitset to output binary data to a stream based on the (fixed) size of the bitset. What's the least-extra-syntax way to output binary data to a stream using integrals? To show what I mean, here's a program and its output. I'd like the second line of output from this program to be identical to the first li...