client

Detecting browser client area size on wide screen using javascript

I've been using the following code to detect browser client area width for ages and it wokred 100% with all browsers, including FF, Safari and various versions of IE. However, now when I switched to a new monitor with widescreen resolution (1280x800) this code fails on IE8. It reports clientwidth of 1024 !!!??? Any ideas how to get the ...

How to send programmatically an email from another mail client than outlook or outlook express?

From within your application you can send an email by using MAPI functions ("MAPISendMail"). But if there is another mail client installed like "Thunderbird" or "David InfoCenter" the use of MAPI functions does not work, because "Outlook" or "Outlook Express" is not the standard email client. The use of shell functions to execute "mailt...

Calling Client-Side WCF Service With Type List<Of T>

Hi. I am designing a multi-file upload service that also shows upload progress for each file. If I was to design my WCF method as a SOAP contract, I would do something like this: var request = IService.UploadMethod(List<Upload> request); But, how do I pass the parameter ""request"" of type "List<Upload>" when I am calling the method...

How to read continous HTTP streaming data in Python?

Hi How to read binary streams from a HTTP streamer server in python. I did a search and someone said urllib2 can do the job but had blocking issues. Someone suggested Twisted framework. My questions are: If it's just a streaming client reads data on background, can I ignore the blocking issues caused by urllib2? What will happen if u...

Available design solutions for a server-client protocol in a web environment

Hi, Let's say I have a server running as a service, I have a client that connects to the server exchanging information. This will work nicely on a "keep-a-live" application (a desktop application, another service etc.), but what are my option in a web environment? Create the client on each web call and connect to the server retrieving...

Stand-alone Mercurial (or other SCM) client for user without administrator rights?

I don't have admin rights to my pc, but would like to use Mercurial (a different SCM is fine, too) to track changes. I have Mercurial installed, but can't install TortoiseHg because I don't have admin rights. Is there an alternative that doesn't require (either directly or through dependencies) admin rights? P.S. I'm looking for a stand...

What are the minimum requirements for writing a Java client for MQSeries?

I need to write a simple MQSeries client in Java. The client just has to connect to the queue and pull off the next message. I have done this before a number of years ago and have all the sample code etc. All I remember needing are the three jar files: com.ibm.mq.iiop.jar com.ibm.mq.jar connector.jar I have been doing some reading...

Configure WCF Client to Use Web Services Security Kerberos Token Profile 1.1

Morning, Does anyone know how to configure WCF (any binding type, we are currently using WSHttpBinding but am happy to move to a CustomBinding or alternative if necessary) to use Web Services Security Kerberos Token Profile 1.1 the details of which can be found here: http://www.oasis-open.org/committees/download.php/16788/wss-v1.1-s...

Client side ADO.NET call fails to fill Dataset

I have a ASP.NET web page that needs to make a SQL Server call from the client side in a script sectipn of my aspx file. I'm calling a stored proc which takes one parm. This sp works fine in SQL Server Management Studio returning records as expected. When I try to fill a dataset from a call to this sp the ds gets filled with zero records...

Question on logistics of hashing at client

I have found a lot of posts on hashing at the client but none that quite answer my question. I would like to hash user passwords at the client so that I don't have to send a plain text password across the web but I have a question as to how i might do so successfully when using a salt. The normal procedure of validating a password is.....

Python socket client to a Java socket server

Hello, I have a Java socket server that is expecting exactly n bytes from some port. I want to write a Python clients that just sends bytes on some port to the Java server. Since Python does not have primitives, I'm not sure to send exactly n bytes. Any suggestions? More details: I have a Java DatagramSocket that takes in n bytes: Da...

Unable to detect client disconnect on SendAsync

Hi, I have Server that needs to echo back data from client continously with a delay of 1 second. Following is the code. private void ProcessSend(SocketAsyncEventArgs e){ if (e.BytesTransferred > 0 && e.SocketError == SocketError.Success) { System.Threading.Thread.Sleep(1000); // Done echoing data back to the client....

Why won't my client/server code work outside of my local machine?

I am trying to create a very basic little client server application, but I can only get it to work locally on my own machine. Server code: int d = 0; try { for (AdministratorPort = 8000; d < 1; AdministratorPort++) { IPAddress ipAddress = IPAddress.Parse("220.101.27.107"); ...

Copying file to client machine

Hi We have a requirement to copy a .txt file into the client machine and open the file using notepad.exe. We develop our application using MS Visual Studio 2008 VB .Net. Any experencied this kind of requirement? Help required... Thanks Shoba Anandhan ...

WCF Security - Client Authorization

Hello there, I need help on securing my WCF Service so that only authorized users can make a call to service methods. The WCF Service is configured with wsHttpBinding and is hosted under Windows Service. The client application is an asp.net website. Also, the users making call to WCF service are already authorized by client applicati...

Tokyo Tyrant transaction support

I've noticed that rufus-tokyo and other apis support transactions in Tokyo Tyrant. I couldn't find any mention of the transaction support in the TT docs (http://1978th.net/tokyotyrant/spex.html#clientprog) Is that transaction support simulated? Or is there a way to do a server-side transaction using the C api? ...

Load and run an EXE file after a website loaded

Is there a way to load and run an EXE file on the client side, after a webpage has been loaded ? [with java script or HTML ] ...

WinSock Client C

I have a client using select() to check if there is anything to be received, else it times out and the user is able to send(). Which works well enough. However, the program locks up waiting for user input, so it cant recv() again until the user has sent something. I am not having much luck with using threads either, as I cannot seem to ...

How to get the browser/client time when the page loads in portlet

Hi, How can i get the browser/client time when the page loads in portlet. I need to do an algorithm based on the clients time zone, What it means is that during the render phase of the portlet I need to get the time zone of the browser. Is it possible, if so how ? Any Help is greatly appreciated. Thanks, Micheal ...

What are the ways of interchanging string data between clients and a server in Delphi?

I have a server and some clients (about 50) in an intranet. The clients send short (about 40 character) string data to the server and the server answers with a similar string. There are up to (but not permanently) 2-3 requests per second for each client. The server has to serialize the requests to get the response strings. The system sh...