client

How do you add scripts to custom buttons on rows in jqgrid?

孤街醉人 提交于 2019-12-10 15:41:22
问题 I am trying to handle the click of custom button in a jqgrid. I have the buttons showing up, but when they are clicked, my function does not run. If I click a button outside the jqgrid, the script runs. Does jqgrid consume the button click? Not sure what I am missing or not understanding. Here is the grid. The reason I am not reloading the entire grid is there is too much processing on the server, and need to manually remove the row on the client once the editurl processes the "send." See: $(

Soap Delphi Client end with a timeout for a 1MB call

ⅰ亾dé卋堺 提交于 2019-12-10 14:27:27
问题 we are developing a SOAP webservice (Apache/PHP). All run well for small size calls, but with a 1Mb soap call (the HTTPS call size is 1MB) our Delphi Soap client stop with a timeout on all PC but one, and our PHP clients run well with a default_socket_timeout=300, but stop with a "Error Fetching http headers" with default_socket_timeout=60. How can we change the timeout for Delphi? In fact this timeout seem to be in a Windows XP network library (wininet.dll called by soaphttptrans.pas) Thanks

Device fingerprint for secure client access over tls network

徘徊边缘 提交于 2019-12-10 12:15:29
问题 We want to create a unique machine id - key fingerprint, in order to use it to identify a PC(s) over a secure network (probably ssl/tls), so that we are sure that the server delivers to the certain PC , and not to someone who has stolen the license. The pc(s) will be on Linux OS. How should we do it? 回答1: Couple of suggestions. Create a unique hashing algorithm that hashes the computer name and MAC address together, sends the hash back to the secure server, and stores it in a binary file on

How to disable the close button in GTK?

被刻印的时光 ゝ 提交于 2019-12-10 11:46:12
问题 I have created a One Time Password mechanism in OpenERP 6.0.3's GTK client. After login the GTK client shows a window to enter the One Time Password as below. Now I want to disable the close button at the top left of the window. How can I do that? I am using python and the code to create the window is: EDIT class sms_auth(gtk.Dialog): def run_thread(self): code=self.textbox_code.get_text() self.result = rpc.session.rpc_exec_auth('/object', 'execute', 'res.users', 'check_code', code) return

Client Server application with PHP and Python

此生再无相见时 提交于 2019-12-10 11:34:21
问题 I am trying to send data from PHP Client to Python Server. CLIENT <?php $host = "127.0.0.1"; $port = 2000; $output="datatatatatatta" ; $socket1 = socket_create(AF_INET, SOCK_STREAM,0) or die("Could not create socket\n"); socket_connect ($socket1 , $host,$port ) ; socket_write($socket1, $output, strlen ($output)) or die("Could not write output\n"); socket_close($socket1) ; ?> SERVER import socket import sys s=socket.socket(socket.AF_INET,socket.SOCK_STREAM) host= 'VAC01.VACLab.com' port=int

iPhone client server application

旧巷老猫 提交于 2019-12-10 10:58:24
问题 I am quite new to this and I have a few questions mainly about the backend (server side) implementation of an iPhone client server application. 1) I have looked around and it seems like JSON is a good approach to communicate with a server. What does the server need in order for this to work? 2) I have looked on several tutorials and all the tutorials use urls which are in the format of api.somewebsite.com/rest/... at the momement I only have http://www.websitename.com/Microsoft2.jsp. The user

How do I use a browser as a client in python sockets?

不羁岁月 提交于 2019-12-10 10:35:23
问题 I tried to search in the internet for this subject, But I didn't found some answers. If some know how can I use a browser as a client in python sockets it will be very good. 回答1: To use the browser as a client to a python (server) socket, you simply need to point it to the right endpoint. Assuming you are running the browser and the python server on the same machine, and that you're opening port 1234 on the server socket, you simply need to open the localhost:1234 URL in your browser. Of

How to successfully use RDAP protocol instead of whois

那年仲夏 提交于 2019-12-10 10:25:28
问题 I'm a little confused about the new RDAP protocol and whenever it makes sense to pursue it any further. It looks to me like everyone agreed on it to be the successor of whois, but their databases seem empty. On ubuntu I tried rdapper, nicinfo and even their RESTful API: http://rdap.org/domain/google.com (this results in a "File not Found", but is correct according to here) Am I misunderstanding something? Is RDAP dead, did the service not start yet or am I doing something wrong? Nicinfo

What would you recommend for this project? [closed]

不打扰是莪最后的温柔 提交于 2019-12-10 07:16:15
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I have a to create an application using C# for the Windows Platform. Normally all of the work I've done was on a single machine: It

How to increase message size in grpc using python

谁说我不能喝 提交于 2019-12-10 04:24:49
问题 I am using grpc for message passing and am testing a simple server and client. When my message size goes over the limit, I get this error. grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.INVALID_ARGUMENT, Received message larger than max (7309898 vs. 4194304))> How do I increase the message size on the server and client side? 回答1: Changing the message_length for both send and receive will do the trick. channel = grpc.insecure_channel( 'localhost:50051', options