server-side

Passing client data to server to create Excel or CSV File

半城伤御伤魂 提交于 2019-12-11 05:07:50
问题 I think what I have may actually be a design issue rather than a technical issue, but either way I've seem to a hit a wall in both my ability and understanding to get past this problem. I'm creating a reporting web page as part of a standard VB.NET web application. The page is data driven, with jquery making calls to a web service local to the application to get values of elements that are dynamically created in the DOM. Ultimately these dynamic elements and their values are all wrapped up in

Simple PHP Database Connections

扶醉桌前 提交于 2019-12-11 02:37:46
问题 I am making a simple page to test a database connection. When I tried accessing it from my browser, it says: Server error The website encountered an error while retrieving http://localhost:8888/blah/blah/test.php . It may be down for maintenance or configured incorrectly. Here are some suggestions: Reload this webpage later. HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request. All I am doing is connecting to a

How to run javascript file on the server side?

允我心安 提交于 2019-12-11 02:32:23
问题 Suppose I have server. A client loading an HTML file containing a javascript library will have the script executed by the browser. The problem here is that if the client's computer is slow, the processing will take a long time. So I want to move the processing to the server side. But, instead of having to rewrite the entire javascript library into another language, I simply want to run the javascript on the server. Googling "server side javascript" directs me to Node.JS, which in my

Setting pre-commit-hook server side

帅比萌擦擦* 提交于 2019-12-11 01:29:34
问题 Is it possible to set up pre-commit-hooks in the server repo and have them download to the clients when the repo is cloned? 回答1: From git-scm: The hooks are all stored in the hooks subdirectory of the Git directory. In most projects, that’s .git/hooks . Recall that .git/ is managed locally. So, no, there is no programmatic way using only git to force a repository to install hooks when it is cloned. That said, a common practice is to bundle hooks into a folder like hooks/ within your

Is PHP include() or JS src to include file faster?

谁都会走 提交于 2019-12-11 01:05:21
问题 Sometimes when I need to include the same group of elements in many web pages, I use PHP: <?php include "somefile.html" ?> When somefile.html is this: <h1>TITLE</h1> <h2>Subtitle</h2> And sometimes, when I'm too lazy to use PHP and turn on my local server, I use JS: <script src="somescript.js"></script> When somescript.js is like this: document.write( "<h1>TITLE</h1>" + "<h2>Subtitle</h2>" ); The second version is just a tiny bit more inconvenient, but I use both ways. However, I was

webservice with Qt

微笑、不失礼 提交于 2019-12-11 00:22:02
问题 I'm looking for a code to implement a Web Service with Qt (server side) If you have any information I will appreciate Regards 回答1: You can use libqxt to implement the server-side webservice. If you want to use WebSocket-based webservices this might be more promissing. 回答2: This one is a fantastic technique: Qt in the Cloud with QWebClient. It really works very well under Ubuntu 10.04. 回答3: QttpServer should work for a service requiring: List item Mongo (db) Redis (cache) JSON URL routes and

Expiring Custom PHP Session when browser closes

佐手、 提交于 2019-12-10 20:10:46
问题 I'm building a custom PHP Session handler using MySql, and I've been struggling with something. After a throughout (or not so much, subject to personal opinion) search in Stack Overflow, I couldn't find an answer to my question: most just answer how to expire a session in the client-side, but this question is focused on the server-side. The issue is the following: I store the session data on a SQL database, and send an id of the session as a cookie (basic session handling); if the user

Confirmation box from server side in asp.net

随声附和 提交于 2019-12-10 19:56:47
问题 I want to show the confirmation box in asp.net from server side: I want to call it from server side because I have to take the customer message from server side. I am using the below code string str = "Are you sure, you want to Approve this Record?"; ClientScript.RegisterStartupScript(typeof(Page), "Popup", "return confirm('" + str + "');",true); // More code .... Now it is showing the popup and irrespective of what I click, whether "ok" or "Cancel", my code is executing. Please let me know

Handling server side validation with Ember Data

风格不统一 提交于 2019-12-10 17:14:14
问题 I'm having trouble handling server side validations with Ember and Ember Data. When a validation error occurs, the API returns the code 422. Ember data then triggers the becameInvalid callback on the model. From here, I'm not sure what's the best way to handle the errors I'm getting, and how to make them bubble up to the view. App.Challenge = DS.Model.extend Ember.Validations, title: attr('string') summary: attr('string') # other attributes becameInvalid: (errors) -> # is it the place where I

Implementing a Firebase server-side countdown timer for Android?

一个人想着一个人 提交于 2019-12-10 15:58:04
问题 Is there a way to implement a Firebase server-side countdown timer in Android Studio? I want the timer to be server side, meaning that whenever a user opens my app the counter will always be at the same time for all users. I read the answers to this question, but they're 2+ years old and Firebase changed a lot since. It was acquired by Google in October 2014 and a significant number of new features were featured in May 2016 at Google I/O. If Firebase can't provide that feature, is there