poll

Is there a C# secure socket other than SSLStream?

.NET 2.0 provides only the System.Net.Security.SslStream class for secure sockets in .NET 2.0 and higher, but this uses the Stream interface, which provides the blocking Read/Write members and asynchronous Begin{Read,Write} members. I'm looking for a class that provides functionality similar to System.Net.Sockets.Socket. Specifically, s...

How to use Event notification in Solaris 10 when a directory change

I read the following page: Robert Benson's article on ECF developers.sun.com/solaris/articles/event_completion.html I also read the Solaris man pages but they are not very clear of how to use event notifications for directories. For example, If I add a new file into a directory, I would like to get some notification of that event. I f...

How to poll a file in /sys

Hi, I am stuck reading a file in /sys/ which contains the light intensity in Lux of the ambient light sensor on my Nokia N900 phone. See thread on talk.maemo.org here I tried to use pyinotify to poll the file but this looks some kind of wrong to me since the file is alway "process_IN_OPEN", "process_IN_ACCESS" and "process_IN_CLOSE_NOW...

I Have a problem with 2 FIFO for read and write in each

The attached code should allow the communication between 2 terminals. The communication is made through 2 FIFO, which are created in the current directory. The program has to open the 2 fifos and the son reads from STDIN and puts on the fifo1 and the father reads from the other fifo and prints on terminal. In this way the communication t...

try to throw ratio in C++

This question got me thinking about the ratio between the number of exception throw sites and the number of try blocks in my own code. A swift grep on a couple of non-library projects indicated it is something like 150 throws to 1 try. This kind of surprised me - I was expecting something like 50 to 1 - and I wondered if others would lik...

Facebook Polls Integration

Hello! I want to create a Facebook poll. Ideally, I would want it to be viral and show on people's pages if they voted. Even more, I would want it to be Flash so that I can have better control over the general look and feel if possible. How can I do this, please? Thank you! ...

Redirect users to the pool page after they vote

how redirect the user to same poll page instead of homepage after voting ? . I'm unable find which function to override. ...

polling based method

How the polling based method is supported by the processor?? How many devices I can set for polling based and interrupt based mode?? My understanding is: If poll interval of a device AA is 100ms. After every 100ms the processor polls(check the status of the device) that device and process it if required otherwise it will switch to...

[PHP] Round, poll answers (3 values)

Welcome, I would like to round up poll answers, but i can't get it working. When i try to round_up and ceil, but get 10x percents (over 100% most 101%). This is Example values 33.3333333333 16.6666666667 50 Any idea ? ...

Sitecore SSM - Poll Module failing to install

During the installation of the Poll module (Sitecore 6.2 package: 1.1.0 OMS version), an error occurs preventing the completion of the installation. I downloaded the package from here: http://trac.sitecore.net/Poll We are using: Sitecore.NET 6.2.0 (rev. 100507) I've tried repeating the install several times, restoring the database...

Drupal Core Poll - http 403 error

Hello! I've asked this before but with other questions so I posted it again. I'm actually receiving an error message An HTTP error 403 occurred. /poll/js when trying to add additional option in poll. I'm using the Drupal Core Poll and the latest version of files. I have several modules including boost which is known to have issue...

Lightbox not working in Drupal Advanced Poll module

Hi, I needed a poll to vote on pictures, so I chose Advanced Poll module. In choices I added html for images together with link to the picture and attributes for lightbox ... this is the code: <a title="picture" rel="lightbox" href="/sites/default/files/pic.jpg" class="lightbox-processed"> <img class="image image-big image-center" src=...

select vs poll vs epoll

Iam designing a new server which needs to support thousands( somewhere between 100,000 sessions) of udp connections. What is the best polling method to use for socket FD's. I have read that epoll is better than select/poll. Any input or suggestions on which one to use. Thanks. ...

Abort linux polling

I am porting an audio mixer from directsound on Windows to alsa on Linux. I am polling on, let's say, 16 file descriptors using the system call "poll". Now i need to be able to abort the polling somehow. On Windows i am using the WaitForMultipleObjects using events and when i need to abort the waiting i just SetEvent on one of the events...