Ring is a Clojure web applications library written by Mark McGranaghan. It was inspired by Python's WSGI and Ruby's Rack. By abstracting the details of HTTP into a simple, unified API also known as the Ring spec, Ring allows web applications to be constructed of modular components that can be shared ...
0
votes
0answers
17 views
Android Drawable Shape Ring in lower API level
I have defined a simple ring drawable to use it as a button background.
Here's how i am doing it:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="ring"
...
4
votes
1answer
64 views
How to convert map to URL query string in Clojure/Compojure/Ring?
In Clojure / Compojure, How do i convert a map to URL query string?
{:foo 1 :bar 2 :baz 3}
to
foo=1&bar=2&baz=3
Is there any utility method to do this in compojure?
4
votes
2answers
86 views
How would I implement functionality similar to Rails' url_for with Clojure and its web frameworks?
I'm developing a web application with Clojure, currently with Ring, Moustache, Sandbar and Hiccup. I have a resource named job, and a route to show a particular step in a multi-step form for a ...
1
vote
2answers
50 views
How to distinguish html vs xhr/xml/json requests in Compojure/Ring?
How to distinguish between html vs xhr/xml/json requests in Compojure/Ring similar to respond_to in Rails?
http://apidock.com/rails/ActionController/MimeResponds/respond_to
8
votes
1answer
74 views
ring/compojure without jetty
I know it's possible to create a war file using lein ring war, but it seems to still include jetty dependencies. Is there a way to exclude the jetty dependencies when I'm building the war (and ...
1
vote
2answers
67 views
does read() clear kernel ring buffer /proc/kmsg?
I developed my own log processing program. to process logs originated from printk(), I read from kernel ring buffer like this:
#define _PATH_KLOG "/proc/kmsg"
CGR_INT kernelRingBufferFileDescriptor = ...
1
vote
0answers
60 views
Setting context path for routes in Compojure
I'm building a Compojure webapp composed of two Clojure project. The first one is a webapp to visualize some data, the second one is a more complex application which need to use the first one.
I want ...
1
vote
1answer
70 views
Clojure/Ring: Using the ring jetty adapter, large requests give me a 413: FULL HEAD error.
Using Ring's Jetty adapter, if my request is too large I get a 413: FULL HEAD error. I tracked it down to a property called headerbuffersize, but when I try to set it in the run-jetty call, I still ...
0
votes
0answers
49 views
Android, click on icon on a map and then in the OverlayItem click to ring another person
My idea is to have a map with click-able items. When I click to one of them I can see more detailed info about it and in the info I would have somehow ability to click on a field and ring a phone ...
1
vote
1answer
85 views
What is the name of this kind of route?
I was just reading through a Compojure tutorial and saw this route example:
(GET "/addresses/:id" [id] (json-response (address/find id)))
I was wondering what is a proper official name for the kind ...
2
votes
2answers
108 views
Finding ring road of subway scheme
i have a problem, i have been thinking about this for a while.
example :
1-2
3-4
6-4
2-3
1-3
3-5
note : "a-b" mean 'a' connected to 'b' and 'b' connected to 'a'
how can i find a longest ...
0
votes
4answers
83 views
Looping for every character in a string in Python decoder ring
I'm wanting to make a simple decoder ring in Python.
Example: a=b, b=c, c=d, etc.
I want the script to take an encoded message and output the decoded message.
For instance, I would input "ifmmp" and ...
1
vote
1answer
53 views
Attempting to replace all instances of char in a char * that's been read in from a pipe
I'm implementing a function for a homework assignment. The function definition is:
int processchar(int fdin, int fdout, char inchar, char *outstr);
The processchar function reads from file ...
3
votes
1answer
173 views
How to get HttpServletRequest in a Ring handler?
Is there a way to get the HttpServletRequest object in a Ring handler?
I am using Noir to develope a web app. I need to get the HttpServletRequest obj when handling a URI. So I use the ...
1
vote
2answers
98 views
How do sandbar sessions work?
I'm supposed to use sandbar for a Clojure web application. I am wondering how sandbar maintains sessions on the server side? Does it us jsessionid cookies to identify user request? Or is sandbar just ...