Re: Clojure needs a web framework with more momentum

2015-05-05 Thread Thorsten Wilms
developers for collaborating on furthering the whole field. -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

Re: Interest in a Full Featured Clojure Blog Engine

2013-07-19 Thread Thorsten Wilms
urce would have a unique name (or path/name combination), created and modified timestamps, owner, permissions ... Such a data set would then be associated with an entity-type specific data set to store what's special to a post or a comment or an image ... -- Thorsten Wilms thorwil&#x

Re: Interest in a Full Featured Clojure Blog Engine

2013-07-18 Thread Thorsten Wilms
r down the road, I wanted to look into versioning, perhaps backed by git and realtime collaborative editing. I haven't be traveling, lately :} -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- -- You received this message because you are subsc

Re: Interactive form workflow with Friend, can't log in

2012-11-13 Thread Thorsten Wilms
hub.com/marianoguerra/immutant-recipes/tree/master/friend-acl -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

Re: question concerning macros by a newbie

2012-11-13 Thread Thorsten Wilms
accomplish, I'm sure someone can suggest a much better approach. -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send em

Re: Interactive form workflow with Friend, can't log in

2012-11-12 Thread Thorsten Wilms
localhost:8080/login?&login_failed=Y&username= So please, how/where shall I *add* wrap-keyword-params (and the others?) exactly? -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to the Googl

Interactive form workflow with Friend, can't log in

2012-11-12 Thread Thorsten Wilms
te/6569 This version does not specify encoding and thus falls back to some windows encoding, but a later version with a full html5 body with utf-8 shows the same result. Where's my mistake, or what can I do to further diagnose the problem? -- Thorsten Wilms thorwil's design

Re: Teaching beginners to program using an interactive ClojureScript REPL

2012-07-17 Thread Thorsten Wilms
onder; The Little Schemer starts with atoms, lists, s-expressions and I think the first mention of define is on page 16. -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Cl

Re: Lambda: A lniux distro for clojurists

2012-05-25 Thread Thorsten Wilms
o could be similar to cloning a repo, later on allowing you to take all your local changes to apply them as patch to the next release version. -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to th

Re: A New Core.logic Primer

2012-03-15 Thread Thorsten Wilms
the arguments to be atom-or-list, list, list? Otherwise an enlightening and inspiring read, thank you! -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Clojure&qu

Re: i am so bored

2012-01-14 Thread Thorsten Wilms
be a quite challenging and expandable project that could benefit from using Clojurescript. -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Clojure" group. To pos

Re: Do you use Monads in your real clojure applications

2012-01-04 Thread Thorsten Wilms
bind to 134 (not "134"), this route will not match "/order/abc". Example taken from https://github.com/cgrand/moustache -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to t

Re: Clojure list syntax sugar: f(x) notation

2011-12-27 Thread Thorsten Wilms
On 12/26/2011 07:09 PM, Louis Yu Lu wrote: With some experiments, I found the code is more readable for me to use f(x) notation for function call, and (op x) for operator. Operator? It's all function calls! -- Thorsten Wilms thorwil's design for free software: http://thorwil.wor

Re: Literate Programming example

2011-11-21 Thread Thorsten Wilms
flows and the features of related hard-and software. Starting to be off-topic, so this is as far as I will take it on this list ;) -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to the Goo

Re: Literate Programming example

2011-11-20 Thread Thorsten Wilms
all that remains. But the research, concepts and conscious decisions regarding trade-offs could actually outlive any implementation, they are portable and could be argued to be more valuable. So funny as it might sound, there's a need for literate design! -- Thorsten Wilms thorwil&#x

Re: appengine-magic, directory not found, strange file: hierarchy

2011-10-27 Thread Thorsten Wilms
ave had it installed long before getting into Clojure, to then forget about it, on Ubuntu 10.04. Since there's apparently no package for 11.10, I followed http://www.webupd8.org/2011/09/how-to-install-oracle-java-7-jdk-in.html Thanks! -- Thorsten Wilms thorwil's design for

appengine-magic, directory not found, strange file: hierarchy

2011-10-27 Thread Thorsten Wilms
ncies [[appengine-magic "0.4.6-SNAPSHOT"]]) --- Using Leiningen 1.6.1.1 on Java 1.6.0_23 OpenJDK 64-Bit Server VM, swank-clojure plugin 1.3.2. Starting Jetty via appengine-magic's serve. Any idea what's going on? -- Thorsten Wilms thorwil's design for free software: h

Re: Rich Hickey: "Simple Made Easy" from Strange Loop 2011

2011-10-21 Thread Thorsten Wilms
ed to from past experience. But it is decidedly less simple to have these ideas complected. AFAIK, Common Lisp does treat nil and empty lists as equivalent. Looks like a clear difference, not "more similar" to me. -- Thorsten Wilms thorwil's design for free software: http://t

Composing HTML rendering functions

2011-10-10 Thread Thorsten Wilms
/blob/4440f729001ef14ea63115c69f0c868bc59e4686/src/tlog/views/parts.clj The {:keys} specified are like slots. If one is nil, Hiccup makes it fall out. -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to

Re: advantage of dynamic typing

2011-09-20 Thread Thorsten Wilms
ints on the function arguments. And the guarantees on the function's result. Those could then allow more checks at compile time, without sacrificing genericity of the code. Something like Racket's contracts, perhaps? http://pre.racket-lang.org/docs/html/guide/contracts.html -- Thorsten Wi

Re: small project to learn clojure

2011-09-17 Thread Thorsten Wilms
hat is underway, already). -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts

Re: Rounding the edges of an Emacs beginner

2011-09-13 Thread Thorsten Wilms
o API environment is registered for this thread"). Maybe it doesn't matter in other cases, just noting that slime-eval-buffer and entering forms on the repl are different in outcome, regarding threads. -- Thorsten Wilms thorwil's design for free software: http://thorwil.w

Re: Recursion for nested comments

2011-08-24 Thread Thorsten Wilms
s] :as all}] (article-rendition (into all (derive-time-stamps all))) (comments-rendition comments)) -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to the Google

Recursion for nested comments

2011-08-21 Thread Thorsten Wilms
quot;Comments"] (comments-rendition-recur comments)]) (defhtml tree-rendition [{:keys [comments] :as all}] (article-rendition (into all (derive-time-stamps all))) (comments-rendition comments)) Thanks! -- Thorsten Wilms thorwil's design for free softwa

Re: is my understanding correct for function "identity"?

2011-08-13 Thread Thorsten Wilms
only used in one case. It would be slightly more work, otherwise. Are there other functions for the same purpose? I don't see how there could be, for the very same purpose. Though you might want to consider splitting up functions some more, instead. -- Thorsten Wilms thorwil's

Re: passing value to functions

2011-07-28 Thread Thorsten Wilms
e 1st function. But how would you accumulate all the results, then? -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, s

Re: passing value to functions

2011-07-28 Thread Thorsten Wilms
aps a sub-forum for beginners? Kind of embarrassing to ask here questions that are so newbie-ish. Really no reason to feel embarrassed and I doubt the experts here would like to monitor an additional space ... -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.c

Re: monads > macros

2011-07-12 Thread Thorsten Wilms
out macros, whereas articles about monads are like bunnies and have taken to the meta-level. -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Clojure" group. T

Re: Clojure stack

2011-05-19 Thread Thorsten Wilms
structured code because of too many n00bs being able to pick them up easily and write bad code. I even heard complaints about there being way too many bad examples out there for Python. Inevitable, at some point, if a PL goes mainstream, I guess. Luckily, you just need enough users to build

Re: Clojure ideas repository / todo list

2011-05-15 Thread Thorsten Wilms
and action wiring similar to what Nitrogen does. See parts 4 and 5 at http://nitrogenproject.com/doc/tutorial.html. Though I wonder how that could be combined with Enlive, without friction. -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received

Re: Enlive update transformation

2011-05-10 Thread Thorsten Wilms
On 05/09/2011 10:15 PM, Thorsten Wilms wrote: I tried to turn that into a transformation: (defn substitute-token [& values] #(map (fn [m] (update-in m [:content] (fn [c] (apply (partial replace-str "token" %) c values)) Apparently I had my brain knotted, but raek and

Re: [Enlive] Search for a node querying on attrs

2011-05-05 Thread Thorsten Wilms
quot;keywords")]]) first :attrs :content) -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googl

Re: Appengine-magic and Text properties

2011-04-02 Thread Thorsten Wilms
On 03/31/2011 10:57 AM, Thorsten Wilms wrote: My Article entity has a "body" property for text. The default String property doesn't handle long text, so it needs to be a Text property. In https://github.com/thurn/ackbar, I found: --- (ns (:import (com.google.appengin

Appengine-magic and Text properties

2011-03-31 Thread Thorsten Wilms
https://github.com/gcv/appengine-magic#readme, but same error message as above. (ds/as-text (Text. body)), too, but (Text. (ds/save body)) leads to: "com.google.appengine.api.datastore.Text cannot be cast to java.lang.String" Any ideas? -- Thorsten Wilms thorwil's design f

Re: Macro compile vs run time, appengine-magic defentity

2011-03-30 Thread Thorsten Wilms
version. Or should I do so already, perhaps, given that all I use is appengine-magic, moustache and envlive, so far? -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Cloj

Re: Macro compile vs run time, appengine-magic defentity

2011-03-29 Thread Thorsten Wilms
ity ~type ~(vec (concat [(with-meta key {:key true})] (eval attrs) (def-entity-and-attrs Article slug article-attrs) -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you a

Re: Macro compile vs run time, appengine-magic defentity

2011-03-29 Thread Thorsten Wilms
ce as ID/name, once with its given name). The following do not work at all: [`^:key ~key] `[^:key ~key] -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Clojure" group

Macro compile vs run time, appengine-magic defentity

2011-03-28 Thread Thorsten Wilms
updated-t]) and work with that. It's not the first time I run into a situation where things beg to be composited/concatenated, but can't be, at least not easily. Any ideas? -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You rece

Re: Implicit unpacking of a map

2011-03-25 Thread Thorsten Wilms
engine-magic. It appears in a defprotocol and if I get this right, is mapped to a save!-helper function in a defprotocol. So at my current level, I really couldn't have written that :) https://github.com/gcv/appengine-magic/blob/v0.4.0/src/appengine_magic/services/datastore.clj -- Thorste

Re: Implicit unpacking of a map

2011-03-25 Thread Thorsten Wilms
he same order; pass them to the amended Article constructor appropriately). -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send emai

Re: Implicit unpacking of a map

2011-03-24 Thread Thorsten Wilms
: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol (I doubt I managed to introduce a mistake, as it looks alright with macroexpand.) -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message b

Re: Implicit unpacking of a map

2011-03-24 Thread Thorsten Wilms
.com/group/clojure/browse_thread/thread/a9504c4c9b1a4d9b explaining :strs, :keys and :syms. -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Implicit unpacking of a map

2011-03-24 Thread Thorsten Wilms
tent of form-params explicitly? (Not to save on typing, more for my understanding.) -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: Extra params for a handler inside Ring's wrap-params

2011-03-24 Thread Thorsten Wilms
On 03/23/2011 02:32 PM, Thorsten Wilms wrote: Hi! Routing, using ring.middleware.params and net.cgrand.moustache: (def tlog-app-handler (app ["admin" &] {:get (app ...snip...) :post (app wrap-params [[path not-empty] &] submit-article)} Thanks to wrap-params,

Re: Emacs with Lisp and Clojure.

2011-03-23 Thread Thorsten Wilms
out of the way. You can delete it, if that works. But - 1) There is no auto indentation (so when I go to the next line, after say (defn some[]), it starts with the first col. in this new line) Could be the job of Paredit (I'm not sure what does what, here). -- Thorsten Wilms thor

Extra params for a handler inside Ring's wrap-params

2011-03-23 Thread Thorsten Wilms
h" from the request map, but I would prefer a solution where what has been taken apart already is used, instead of repeating that work. -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/ -- You received this message because you are subscribed to the

Re: lein appengine-prepare

2011-03-21 Thread Thorsten Wilms
nevermind, in the hours it's been since I send this mail, I fixed that issue (a stray :main in my project file and the need to run "lein clean". On 03/21/2011 10:26 AM, Thorsten Wilms wrote: Hi! After working with appengine-magic a bit, I wanted to use the datastore viewe

lein appengine-prepare

2011-03-21 Thread Thorsten Wilms
eq.invoke(core.clj:122) at clojure.core$filter$fn__3714.invoke(core.clj:2130) at clojure.lang.LazySeq.sval(LazySeq.java:42) ... 29 more This leaves me totally puzzled. Note that my project does compile, otherwise. So, do I need :aot, am I stumbling over a bug in

Re: Better Workflow with App Engine?

2011-02-16 Thread Thorsten Wilms
controller.clj file. The slime repl is now in that namespace, and I can, for instance, evaluate (my-app {:uri "/test", :request-method :get}). I must have read about C-M-x, but it didn't "click". Many thanks for your excellent answer, it's already making me a much

Better Workflow with App Engine?

2011-02-15 Thread Thorsten Wilms
hing else. Would it be sensible/feasible to somehow hook compiling of the core to saving any .clj file in Emacs? Or would monitoring the filesystem and recompile on changes, daemon-style be better, and if so, how to accomplish that? -- Thorsten Wilms thorwil's desig