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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
/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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
: 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
.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
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
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,
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
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
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
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
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
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
50 matches
Mail list logo