back soft

مطالب مرتبط با «client» در back soft | نویسنده: استخدام کار

Architecting a server-client application in Java for an intranet

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...

ادامه مطلب

Parsing excel files client-side?

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! بخوانید...

ادامه مطلب

React-Router: Is match safe to use on client

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...

ادامه مطلب

Framebuffer update on Multi-VNC Client

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...

ادامه مطلب

LocationClient.getLastKnownLocation() is null

Vote count: 0 I gets the following error compilation: AndroidRuntime: FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity ComponentInfo{fsy.wydra/fsy.wydra.MainActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2295) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2349) at android.app.ActivityThread.access$700(ActivityThread.java:159) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:176) at android.app.ActivityThread.main(ActivityThread.java:5419) at java.lang.reflect.Me...

ادامه مطلب

Hive Error as direct MetaStore DB connections, we don't support retries at the client level

Vote count: 0 Objective: Just trying to create a simple table in hive hive> create table employee(emp_id int, name string, salary double) row format delimited fields terminated by ','; FAILED: Execution Error, retu code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:For direct MetaStore DB coections, we don't support retries at the client level.) hive> Please note that I have download the apache hive and have not configured derby asked 1 min agoRaghvendra Mishra Let's block ads! بخوانید...

ادامه مطلب

PHP HTTP client not passing AUTH_USER

Vote count: 0 I'm trying to fetch an image file from an IIS 7 server ruing some ASP code. The goal is to bypass authentication by including the useame and password in the URL. Without authentication, a user is redirected to a login page. This URL-based authentication method (which was provided by the software vendor) works fine from a browser, or from wget on the CLI, but not from within PHP using either file_get_contents() or curl functions. I've tried creating a stream context for file_get_contents() to include a Basic authentication header, in the hopes it would show up there, but no luck. The ASP code it's getting caught on looks like this: var authUser = String(Request.ServerVariables("...

ادامه مطلب

Connect IPV6 client to server without knowing server's interface name

Vote count: -1 IPV6 client wants to coect to IPV6 server. Able to coect to IPV6 server using scoped address which is of format ip%interface_name. But client does not know the interface to which server is bound. Then how to proceed about it. asked 3 mins agouser2137306 Let's block ads! بخوانید...

ادامه مطلب

How can the client and server pause to wait for the other to send the next message?

Vote count: 0 I am building a java client and server that plays a guess my number game. The server tells the client the range of numbers, the client enters a guess, and the server retus "Try Again" or the number if the client guessed the correct number. The server also needs to be multithreaded. I have up to the part where the server sends the range but I caot get the server and the client to pause at the points indicated by the comments in Client.java and in WorkerRuable.java. I need the server and client to pause at this point so that it will wait to receive the message from the corresponding sender. import java.net.ServerSocket; import java.net.Socket; import java.io.IOException; public c...

ادامه مطلب

Socket programming between linux client and linux/windows server and android

Vote count: 0 I want to send data from a Linux client to a Linux/Windows server (maybe a shared host) and finally to an android application like this figure : The data can be a text or stream video or audio. What are the best technologies and languages for this scenario ? What is your suggestion ? asked 1 min agoMike Let's block ads! بخوانید...

ادامه مطلب

java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder Error?

Vote count: 0 I am encountering the error: java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder however i have imported the classes so am not sure why it is popping up. My build.gradle and code is below: private String getAccessToken() { try { Log.e("tree","get access entered"); javax.ws.rs.client.Client client = javax.ws.rs.client.ClientBuilder.newClient(); javax.ws.rs.client.Entity payload = javax.ws.rs.client.Entity.text("grant_type=client_credentials&redirect_uri=https://facebook.com/intellidevco"); javax.ws.rs.core.Response response = client.target("https://v2.api.xapo.com/oauth2/token") .request(MediaType.TEXT_PLAIN_TYPE) .header("Authorization","Basic MjVj...

ادامه مطلب

Acting as a oauth2 client/proxy

Vote count: 0 I hope you can help me solve my dilemma. I am building an API which uses a custom JWT token based authentication. To make it simple let's say that the client request a token and said token is associated to an inteal id. Now, I would like the client to be able to choose to authenticate with an oauth2 provider, which I would ideally link to my inteal id. It is worth noting that the client acts independently of my API, but uses the API for some of its functions. The first question is: which workflow is the correct one: Client->oauth2 server->retrieve token->send token to my api or Client->my api acting as a proxy ? Furthermore, in these cases what data should I keep on my server? ...

ادامه مطلب

How to retrieve and display a JSON object in a REST client?

Vote count: 0 I am attempting to lea node and JavaScript. I have implemented the use of a node module that retrieves train jouey times. I can retrieve and display the times within the command line but i caot display in the RESTFUL client. //GET ALL TRAIN TIMES router.route('/train_times') //get all the times (accessed at GET http://localhost:8000/api/times) .get(function(req, res) { cw.times(function(err, res, json){ var times = json.films; for (index = 0; index < time.length; ++index) { console.log(time[index].data); } //It is here i try and display the train times res.json(times); }); }); asked 44 secs agoPerfect_Comment Let's block ads! بخوانید...

ادامه مطلب

wampv2 autobahn.js publish messages to group of clients

Vote count: 0 I'm tring wampv2 and plan to use on my project. However, there's several things I do not how to handle. I do not know how to publish to a group of clients who subscribed a topic rather than publish to all subscribed the topic. General Question: how to publish to specific clients? I know that autobahn.js has an API: session.publish('com.myapp.hello', ['Hello, world!'], {}, {eligible: [123, 456]}); However, how to get the client ids for the eligible array? I did the following: start crossbar.io router write a nodejs client using autobahn.js I was trying this nodejs client as a publisher. Here's the sample code: var autobahn = require('autobahn'), _ = require('underscore'), md5 = ...

ادامه مطلب

Stuck at "Client modified--refreshing" on Terminal after Code Refresh

Vote count: 0 I installed Meteor (p.s I'm new to app developement) onto my laptop (ruing Windows 10) and have created an app for which I have downloaded packages for (materialize, accounts-ui and passwords). The problem that I'm facing is that whenever I make changes to the html,css or js files, I get "client-modified" on my terminal, but it never actually refreshes. It's just stuck there in a loop after no matter how many modifications I make. Is this due to the current Meteor version I have installed (1.2.1)? => Client modified -- refreshing asked 5 mins agoPsingh This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, ple...

ادامه مطلب

python-twisted server with iphone client for gpio

Vote count: 0 I came across an iphone app where you can control the gpio pins on a raspberry pi. I am now trying to replicate this in a html format so that the gpio pins on a raspberry pi are controllable from a web page too and not just an iphone app. the server side code is as follows from twisted.inteet.protocol import Protocol, Factory from twisted.inteet import reactor import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) ## Use board pin numbering GPIO.setup(7, GPIO.OUT) ## Setup GPIO Pin 7 to OUT class RaspberryLight(Protocol): def coectionMade(self): #self.transport.write("""coected""") self.factory.clients.append(self) print "clients are ", self.factory.clients def coectionLost(self, rea...

ادامه مطلب

Files encrypting program with also Windows and Android clients?

Vote count: 0 Do you know any good Files encryption program that Ic could use on my Windows PC and also on my Android phone? asked 1 min agoMr.ME This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب

Zookeeper Read Write Consistency Within a Client Session

Vote count: 0 Please note that the context of the question is "within a client session". i.e. I understand that a different client session to a different server could see stale data. My question is how does Zookeeper guarantee that within a client session, a subsequent read always observes a previous write? (I'm pretty sure it is the case) More specifically, consider the following set up (to simplify the discussion assuming the operation is synchronous): I have Zookeeper server s1, s2 and s3. s1 is the ZAB master. I have a client c, which coects to s3 (its local replica) and establish a session with s3. (1) c issues a write, which goes to s3, s3 identifies that it is not the master, s3 forwa...

ادامه مطلب

Cannot send messages to all clients

Vote count: 0 I'll just cut to the chase here.I want to send a message from the server to all the clients.My approach is to make an array list of all the clients that are currently coected the server.If anyone user sends a message,I simply iterate through the list and send each of the clients a message.The problem is that my clients are not receiving any message.Here is my send method on server-side. private void message() { while(true) { DataInputStream fromClient; try { fromClient = new DataInputStream(socketNew.getInputStream()); message=fromClient.readUTF(); for(Socket s:socs) {System.out.println(message); DataOutputStream toClient=newDataOutputStream(s.getOutputStream()); toClient.write...

ادامه مطلب

Web forms ClientIDMode default changed in IIS8 - how to get back to good old aspnetForm?

Vote count: 0 Let's be clear, I don't really like WebForms. Which is why I do not wish to spend hours debugging a legacy code base that ran perfectly well on one server (IIS7) and a new one (IIS8). I heard there is this new ClientIDMode, which makes forms and other controls change their IDs or not to something sensible, but I didn't touch it. It seems like the default value has changed (ie is not backwards compatible)? I had a form in a master page that looked like...

ادامه مطلب