Vote count: 0 I have a similar problem than MobileFirst Direct update customization using adapter But I'm not using the Adapter to modify the DirectUpdate, I'm trying to make a record about the state of the DirectUpdate when it finish, but seems that the call to the adapter not works. There is any restriction to call WL.Client.invokeProcedure on main.js after the DirectUpdate finish? asked 7 mins agoDaniel Contreras Aladro Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am starting to use Java AIO (better than NIO) in the program that keep monitoring thousands of web sites for port 80 by interval time (seconds), now I have issues that: There are no timeout settings if coection is timeout, just have completed() and failed() method It is still to use many threads for every AIO? I mean every thread for looping by time and use AIO inside? it have better ways to do so? I have tried to use schedulable executors with HTTPURLCoection, Apache HTTP client even Netty, but it seems that the CPU is very high almost 70-80% every time concurrent, Now my server is 4x core Xeon CPUs and 8G memory :(, I also found that the issue not related to memory! Thanks!...
ادامه مطلبVote count: 0 I'm trying to make a POST to a GraphQL server in a React Redux app. retu (dispatch) => fetch(API_URL, { method: 'POST', body: JSON.stringify(query) }) .then(response => response.json()) .then(json => dispatch({ type: CREATE_USER, payload: json })) When I place a breakpoint in the response.json() part of the code and the browser pauses there, the network panel shows a 200 OK but no response and was me that my request is not finished yet. The response object looks like this: Response { body: null, bodyUsed: false, headers: Headers, ok: false, status: 0, statusText: "", type: "opaque", url: "" } The code never reaches the second then and the console shows an error SyntaxError: Une...
ادامه مطلبVote count: -1 I'm making a web application using ASP.NET MVC (.Net 4.6). My application allows user to register an account and upload file to my site. I don't know how I can secure user's image files, and display the image to View only to the owner (just like the Imageshack) I don't know what steps I have to take, and how to do it. Can anyone give me advices please ? Thank you :). asked 1 min agoRedplane Let's block ads! بخوانید...
ادامه مطلبVote count: -1 I have to build a (PHP based) landingspage that is used on WIFI access points (HP Aruba). The requirement would be: "If already filled the form for access, just show www.google.com (without loging in or something), if not, show them the form". I would have done that by registering their MAC adresses, but I found out that was impossible trough PHP. Do you guys have any idea of how I could achieve this? Thank you already ! asked 2 mins agoSolidTerre Let's block ads! بخوانید...
ادامه مطلبVote count: 0 We have Client who holds On-Premise machine and would like to send text information to server in Encrypted format. What are best approaches for encrypting string before sending to WEB API hosted in Azure. We are thinking of either SSL thumbprint for encryption and decryption another thing is Azure Key vault where it hold the Symmeteric Key which is used for encryption and decryption. Can this be scenario for Azure Key Vault. previously we used SSL, but it needs to renewed for every 2 year. So we would like to prefer KeyVault rather than Certificate (SSL). We use 3 AES for Encryption of string asked 2 mins agouser145610 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am looking for a way to use the native elasticsearch client in order to retrieve the source when script fields are used. Here is a way to do it using JSON/http: http://stackoverflow.com/a/11856215/536299 I have not been able to find a way to achieve this through the native java client. Can anyone please help? asked 5 mins agobalteo Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have a c# project with a RESTfull client and RESTfull server. I am unable to get PUT request to work. I think I am maybe not using PutAsJsonAsync() correctly. The client... using System.Net.Http; using System.Net.Http.Formatting; public class RequestParams { public String param1 { get; set;} } fullUrl = "http://localhost:3578/api/v1.0/config"; client = new HttpClient(); var requestParams = new RequestParams { parm1 = "value1" }; response = client.PutAsJsonAsync(fullUrl, requestParams).Result; var result = response.Content.ReadAsStringAsync().Result; The server (nancy self hosting)... Put["/api/v1.0/config"] = x => { NameValueCollection requestParams = HttpUtility.ParseQuerySt...
ادامه مطلبVote count: 0 I have the following nodejs server code http = require('http'); fs = require('fs'); url = require('url'); server = http.createServer( function(req, res) { console.dir(req.param); if (req.method == 'POST') { console.log("POST"); // I WANT TO EMIT THIS DATA TO CLIENT } else { console.log("GET"); } }); //THIS IS A WORKING EXAMPLE WHICH I FOUND ONLINE TIED TOGETHER io = require('/usr/local/lib/node_modules/socket.io').listen(server); io.sockets.on( 'coection', function ( socket ) { console.log("runing time"); sendTimeMessage(socket); }); function sendTimeMessage(socket){ console.log("in time"); var now= new Date().getTime(); socket.emit('notification', {'message': now}); setTimeout...
ادامه مطلبVote count: 0 This stack is shaping up to be perfect for our use case: Azure Mobile App Azure AD C# backend (using GetAppServiceIdentityAsync() to authorize users to API endpoints based on security group membership) Cordova client The missing piece of the puzzle for me is the ability to silently obtain a refresh token. Can the Token Store take care of this for me? Or is there a supported method of doing this either with the Cordova plugin, or in the C# backend? I mean, the inappbrowser caches credentials, so it's not like the users have to type a password again, but still, the window pops up and it would look a bit more polished if it was silent. Thank you. asked 1 min agomarkau Let's block ...
ادامه مطلبVote count: 0 Hi i'm trying to get some data through a WSDL file using NuSoap. the path to the wsdl file and the endpoint are below in the example. So far what I have is the following: try { require_once('../includes/nusoap/lib/nusoap.php'); $wsdl = 'https://service.stadt-zuerich.ch/jobs-ws/JobServiceV1/JobServiceV1.wsdl'; $endpoint = 'https://service.stadt-zuerich.ch/jobs-ws/JobServiceV1'; $useame = "xxx"; $password = "xxx"; $client = new nusoap_client($wsdl,true); $client->setEndpoint($endpoint); $client->namespaces = array( 'SOAP-ENV'=>"http://schemas.xmlsoap.org/soap/envelope/", 'v1'=>"http://egov.stzh.ch/jobs/service/v1" ); $client->setHTTPEncoding ($enc='gzip, deflate'); $client->loadW...
ادامه مطلبVote count: 0 I have a delphi code that coects to a server using TIdTCPClient. The server is an advanced ARM microcontroler, the network is a local network (with one switch). When the software runs under delphi, TIdTCPClient.Coect runs fast, but when the software runs as a standalone EXE, the coection time is 3s ! For a local coection, this seems very long. I'm using TIdTCPClient.Coect in a dedicated thread. Any idea to overcome this is welcome. asked 36 secs agoAlcor Prism Let's block ads! بخوانید...
ادامه مطلبVote count: -1 Its a continuation to my previous post. I'm trying to create a web-service client with CXF and now managed to create it with code-gen plugin. But my service takes a few params to to authenticate the service (Say useame, password and clientId). While looking at the generated code, I'm unable to find a way to supply there parameters wile ruing the static client code generated by CXF. Is there any detailed tutorial available which describes the step by step process? Or any pointers would be helpful. Dev asked 7 mins agoDevak Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am using a command-line mqtt client. https://github.com/shirou/mqttcli I would like to publish a message with r carriage retu character inside. Below is what I did. mqtt-cli mqtt.test.com topic "mqtt_msg 1r" However, the carriage retu character is not sent. Instead, the ASCII "r" characters are sent. How can I put the r carriage retu inside the mqtt message? asked 54 secs agoLit Aiy Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I searched in jar finder and googled.. still I couldn't find the jar that would resolve my import. Please let me know if any one knows it. asked 1 min agouser2742897 Let's block ads! بخوانید...
ادامه مطلبVote count: 1 What I am trying to do is use aws-lambda to import zipped sql files in aws-rds. In my case zipped sql files are inserted in s3 constantly by some crawlers. What I want to do is when any sql file is uploaded to an s3 bucket, I want aws-lambda to use a mysql-client to import these files into aws-rds. They way I have think of doing this is by packaging a mysql-client inside the zip for the aws-lambda handler. But I can't really figure out how to package mysql inside a zip. Is this possible? If yes, then a list of steps to achieve this would be really helpful! PS: I am using python-2.7 for writing the aws-lambda handler. I am not interested in using any python-mysql library to achi...
ادامه مطلبVote count: 0 This is my first major project in Java for a friends' company. The company does stock taking for multiple clients and and I have a few questions about the overall architecture. I will need to have a maximum of 10 concurrent coections. I will use: PostgresSQL for my db Hibeate for ORM Server application that manages the db Client applications that coect to the the server app and send requests My questions: Is that a good way of organising the structure? From my research it seems that hibeate is single threaded; Is it a good idea then to setup a FIFO request queue (on the server app) that will take the requests from multiple threads(clients) and retu the results in order OR is th...
ادامه مطلبVote count: 0 I have a requirement, that involves with the manipulation of an excel sheet. I was thinking about using Apache POI library for the same, and then I came across an incredibly awesome parser in Javascript : http://oss.sheetjs.com/js-xls/ http://oss.sheetjs.com/js-xlsx/ Now my question is ,whether there is a trade-off in doing the parsing at the client side? What are the potential problems I may face if I do it client-side. Thanks a lot in advance. asked 3 mins agojava_maniac Let's block ads! بخوانید...
ادامه مطلبVote count: 0 A little react-router common knowledge With react-router, you can use the match function on the server to match the routes to a location without rendering. The callback is passed renderProps which contains an array of components that will eventually be rendered for the matched route. What I am doing On the server, I'm using that matched list of components to pre-fetch data (from an API) before rendering. This is pretty common. I want to do something similar on the client, pre-fetch data before transitioning to the next route. Except, according to the docs: Note: You probably don't want to use this in a browser unless you're doing server-side rendering of async routes. Here's th...
ادامه مطلبVote count: 0 I am not sure if anyone will know the answer to this unless they have worked with VNC before, or even this exact VNC Client app. I am working with the source code of multi-VNC client for android (https://github.com/bk138/multivnc). My question is how to update the frame buffer of the VNC Client (in VNCCo.java) AS I SCROLL, not after I am done scrolling and my finger has left the screen (mouse button is toggled off). The screen on my mobile device stops updating the Framebuffer when I put my finger down and start scrolling. I know that pointer inputs are constantly being updated as my finger scrolls on the screen because I can see the VNC SERVER scrolling as my finger scrolls on...
ادامه مطلب