Create New DirectShow Filter with VisualStudio 2010 - c++

I need to create new filter with one input and two outputs.
The filter sends ping (from output 1), receives the ping back (from the input) and accordingly sends some value (to output 2).
I already have the code for the ping, but I need to combine the code with the new filter.
I tried very hard to find an example for my needs but with no success.
It will be great if someone knows how to do so, or lead me to good tutorial.
Thanks!

Related

SAS Enterprise Guide Query Builder vs Code

I currently have a query builder set up to create computed columns that then create a dataset. I also want to include traffic lighting to the final data set. I only know how to do traffic lighting using code so I opened up the query builder code to edit it. It said that it could not be edited and that a copy could be made to edit. I created a copy, appended the traffic lighting code and ran the process. Now, whenever I have to make a change to the query builder (for example: editing a computed column) I have to then manually go into the SAS code and edit that. Is there a way that when the query builder is edited that it can automatically flow into the SAS code that I also want to type out? Or is there an easier way all together to go about doing this?
Thanks!
Create a code node that does your traffic lighting, and attach it in the flow after the query node. That way the two things are independent and a change to one does not affect the other.

How to feed bokeh streaming interface by a c++ application

I want to use bokeh to display a time series and provide the data with updates via source.stream(someDict). The data is, however, generated by a c++ application (server) that may run on the same machine or a machine in the network. I was looking into transmitting the updated data (only the newly added lines of the time series) via ZMQ to the python program (client).
The transmission of the message seems easy enough to implement but
the dictionary is column based. Is it not more efficient to append lines, i.e. one line per point in time, and send this?
If there is no good way for the first, what kind of object should I send? Do I need to marshal the information or is it sufficient to make a long string like {col1:[a,b,c,...], col2:[...],...} and send this to the client? I expect to send not more than a few hundred lines with 10 floats per second.
Thanks for all helpful answers.

AT command - 3G connection to another cell (second version)

I know there is already the same question, but because I cannot comment it (I don't have enough votes), I have to open a new question. So I want to know if it's possible to connect to another cell. But rather connect to another, is that possible to avoid to connect to the first one. What I mean is, with the AT+CREG command it is possible to have the cell ID of the base station, it that possible to prohibite the modem to connect to this one?
My main purpose is to receive th RSSI of all the cell around me, and not only the one I am connected to. Until now I was using AT^HSCQ but this just give you the RSSI, RSCP and EC/IO of the cell I am connected with.
So what I wanted to do is to list all the cell around me with AT+COPS, and then step by step, prohibite each cell to have at the end the rssi of every cell.
Maybe there is a command that can already give the RSSI of all the networks around me? I looked in the the AT command interface book from Huawei, I did not find it.
edit 21/04/2015:
I found some commands who can help me such as AT^MONI, AT^SMONC or AT^SMOND. Unfortunately, i think that my Huawei E3531 does not support those commands. Any body knows? Anybody already tried those commands with an other modem/cell phone?
thank you

Changing WMI/WQL results output

Now this is a odd one but as I don't know WMI/WQL I hope someone can help and spot a simple mistake..
I need to find out if a system is a domain controller or not - simple with WMI
select DomainRole from Win32_ComputerSystem gets the data.
However the tool I'm using to run and test the output seems not to understand it needs to look at the values under the object(s) so is it possible to get the result within the object key/name/1st level result?
To provide a example:
If I run that query I get the computer name back.
If I run select Name from Win32_NetworkProtocol I get all the protocol details back.
eg
MSAFD Tcpip [TCP/IP]
RSVP TCP Service Provider
So am I wrong or the tool?
To answer my own question. It doesn't look like we can change how/what is returned.
My issue was caused by the tool were using returning the wrong data.

DVB-T tune request parameters

I'm working in GraphEdit to capture video from a Pinnacle PCTV card, in preparation for writing a program that will do the same, among other things.
What, precisely, is the meaning of the tune request parameters? How do I find the appropriate values to use, and is there a way to do so automatically? (ie, not to have to manually change params in the final program when trying to watch DVB in different countries.)
TransEdit can help you find some parameters. The ONID you can find on dvbservices.com. As far as I know you need to be able to configure the following values:
IDVBTLocator::put_CarrierFrequency()
IDVBTLocator::put_Bandwidth()
IDVBTuneRequest::put_SID()
IDVBTuneRequest::put_TSID()
IDVBTuneRequest::put_ONID()
For the Bandwidth I was even able to use -1. But I have only tested two different countries in europe.