server-side

Want to learn to build a simple java rest server [closed]

六眼飞鱼酱① 提交于 2019-12-31 08:47:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Hello people of the world! I'm an Android developer and so far I've worked only on the client side. My next project is in need of a server to communicate with and I wanna try to build it myself. Can someone give me direction to a good source of learning how to build a nice, small and simple Java restful server?

Getting the referrer URL in php ( including parameters )

眉间皱痕 提交于 2019-12-31 00:56:23
问题 Are there any HTTP Headers I could use to grab the entire referrer URL using a webserver/server-side scripting? Including query string, et cetera? 回答1: You should be able to grab it from the $_SERVER['HTTP_REFERER'] variable. 回答2: To add to Chacha's point, I don't know if you want to capture the client side hash part of the referrer URL (sometimes, you do). I.e. if the client came from "http://www.domain.com?x=3#y=5", the $_SERVER['HTTP_REFERER'] will only contain "http://www.domain.com?x=3",

Appropriate audio capture and noise reduction

╄→尐↘猪︶ㄣ 提交于 2019-12-29 08:19:33
问题 In my android application I need to capture the user's speech from the microphone and then pass it to the server. Currently, I use the MediaRecorder class. However, it doesn't satisfy my needs, because I want to make glowing effect, based on the current volume of input sound, so I need an AudioStream, or something like that, I guess. Currently, I use the following: this.recorder = new MediaRecorder(); this.recorder.setAudioSource(MediaRecorder.AudioSource.MIC); this.recorder.setOutputFormat

Dynamic Stylesheets Using Razor

↘锁芯ラ 提交于 2019-12-28 11:55:04
问题 How can I use Razor in CSS files? I'm using Razor View Engine for some time and I was curious about using it on style sheets. I can use Razor in <style> blocks of .cshtml files but I was wondering if I can use it in external .css files also (would like to have a .cscss format). So I googled it and found two things: The first one is LESS: "The dynamic stylesheet language". It seems easy-to-use and powerful with all the features but I need Razor-C#, really. The second is Dynamic CSS Using Razor

url with multiple forward slashes, does it break anything?

时光毁灭记忆、已成空白 提交于 2019-12-27 12:09:32
问题 http://example.com/something/somewhere//somehow/script.js Does the double slash break anything on the server side? I have a script that parses URLs and i was wondering if it would break anything (or change the path) if i replaced multiple slashes with a single slash. Especially on the server side, some frameworks like CodeIgniter and Joomla use segmented url schemes and routing. I would just want to know if it breaks anything. 回答1: HTTP RFC 2396 defines path separator to be single slash .

Javascript: Getting the contents of a local server-side file [closed]

人走茶凉 提交于 2019-12-25 18:34:16
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I have a file on my web server (test.txt) and I need to get the contents of it, then assign it to a variable for further manipulation and eventual output to the page, and this should happen every second or so

Created Stored procedures in my CosmosDb, how can I access them through my .net wep API (which is connected to my cosmosDb) [closed]

有些话、适合烂在心里 提交于 2019-12-25 17:38:13
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last month . I've made server side stored procedure named sample ( it's the default stored procedure) how can I call it inside my .net web API ? 回答1: Reference: https://github.com/Azure/azure-cosmos-dotnet-v3/blob/master/Microsoft.Azure.Cosmos.Samples/Usage/ServerSideScripts/Program.cs Using

Is it possible to invoke PhantomJS through the browser?

倖福魔咒の 提交于 2019-12-25 08:37:14
问题 I'm trying to generate server-side images of a portion of my DOM, and then serve those images up to users from my server once they're created. I'm curious as to the implementation possibilities of PhantomJS, as I don't entirely understand its purpose beyond exploring and testing. I get that it is a self-contained binary, and I've got it running basic apps like in their tutorials. But is there a way to do something along the lines of the following? <html> <body> <h1>This is a test.</h1>

$_POST remaining empty

Deadly 提交于 2019-12-25 03:55:18
问题 This question came as a result out of: Asynchronous POST to server. To reach people with the correct knowledge (it has to do with the server instead of the objective-C code) I created a new question. I'm trying to POST to a server from within objective-C. When debugging on the server however, I noticed that the $_POST variable remains empty. I think (really not sure) it has to do with one of these things: a redirect that I am not aware of, which empties the $_POST variable print of $_SERVER

dojo datagrid custom sorting server side

这一生的挚爱 提交于 2019-12-25 03:24:14
问题 I am using dojo.data.ItemFileWriteStore to draw a dojo datagrid (which works fine) and the grid shows properly. I was using client side sorting and that was also working fine. but now I need to change the sorting and do that server side. For this I am trying to use onHeaderCellClick event, using which I am able to run a javascript function.. something like gridInfo = { store: myJsonStore, structure: myStructure onHeaderCellClick:getSortedTable }; Now here is the getSortedTable function which