Re: [ClojureScript] Re: [ANN] modern-cljs - 17th tutorial - REPLing with Enlive

2015-12-26 Thread 'Sven Richter' via ClojureScript
ks) fixed in 1.8, so you might want > to give it a try using 1.8 Release Candidate. > > Cheers……..Yuri > > > *From: *'Sven Richter' via ClojureScript > *Sent: *Friday, December 25, 2015 1:08 PM > *To: *Clojure > *Cc: *clojur...@googlegroups.com > *Subject: *Re

Re: [ClojureScript] Re: [ANN] modern-cljs - 17th tutorial - REPLing with Enlive

2015-12-25 Thread 'Sven Richter' via ClojureScript
. Dezember 2015 18:02:28 UTC+1 schrieb Sean Corfield: > > Sven Richter wrote on Wednesday, December 23, 2015 at 11:33 PM: > > While I appreciate everyones work and also like boots approach to building > clojure libs I want to remind you that boot still does not work on windows. > > &

[ClojureScript] Re: [ANN] modern-cljs - 17th tutorial - REPLing with Enlive

2015-12-24 Thread 'Sven Richter' via ClojureScript
> To me the OS is just a commodity, as it is the JVM too. I just don't care > about them until they create me a problem. > > Have great holidays! > > mimmo > > On Thursday, December 24, 2015 at 8:33:50 AM UTC+1, Sven Richter wrote: > > Hi, > > >

[ClojureScript] Re: [ANN] modern-cljs - 17th tutorial - REPLing with Enlive

2015-12-23 Thread 'Sven Richter' via ClojureScript
Hi, While I appreciate everyones work and also like boots approach to building clojure libs I want to remind you that boot still does not work on windows. Therefore you are excluding every windows user from your tutorial. I am not sure if I was into clojure as I am today if some of the

[ClojureScript] Re: sente - client ids and ring plumbing

2015-03-29 Thread Sven Richter
Hi Colin, I had the same need for this almost a year ago. And it turned into this issue: https://github.com/ptaoussanis/sente/issues/65 Peter was very helpful explaining things and so I went with the client side generated uuid which I stored in the localstorage, IIRC. However, I just looked

Re: [ClojureScript] Re: [re-frame] structuring handler and subs

2015-03-22 Thread Sven Richter
/re-frame/wiki/Creating-Reagent-Components#the-three-ways and especially here https://github.com/Day8/re-frame/wiki/Creating-Reagent-Components#form-2--a-function-returning-a-function   On Sun, 22 Mar 2015 at 17:06 Sven Richter sve...@googlemail.com wrote: Hi, thank you both

Re: [ClojureScript] Re: [re-frame] structuring handler and subs

2015-03-22 Thread Sven Richter
that on every render - best to do it once when the component is first mounted. As for multiple subscribes, yes, that works. See the re-frame sample project:  https://github.com/Day8/re-frame/blob/master/examples/simple/src/simpleexample/core.cljs#L73 On Sun, 22 Mar 2015 at 18:34 Sven Richter sve

[ClojureScript] [re-frame] structuring handler and subs

2015-03-21 Thread Sven Richter
Hi, I was integrating re-frame in the last days into an application that I am working on. Now, after finishing one page I get the feeling that my structure is messy and after a few days of a break I have a hard time to mentally follow the dataflow in my application, related to the code. This

[ClojureScript] Re: Again re-frame and external javascript lib needing db state

2015-03-17 Thread Sven Richter
at 4:30:35 AM UTC+11, Sven Richter wrote: Hi, I am still trying to integrate resumable.js. Got it mostly working so far. What I currenlty do is this. Define a global resumable object: (defonce resumable (js/Resumable. (clj-js {:target /files/upload

[ClojureScript] Again re-frame and external javascript lib needing db state

2015-03-14 Thread Sven Richter
Hi, I am still trying to integrate resumable.js. Got it mostly working so far. What I currenlty do is this. Define a global resumable object: (defonce resumable (js/Resumable. (clj-js {:target /files/upload :headers {:X-CSRF-Token (h/get-value

[ClojureScript] Re: re-frame pattern with external javascript

2015-03-13 Thread Sven Richter
at 10:10:55 PM UTC+11, Sven Richter wrote: Hi, I am trying the re-frame pattern with resumable.js. Resumable.js needs one to execute a function on an existing dom element like this: r.assignBrowse(document.getElementById('browseButton')); Now, the problem is, if the button

[ClojureScript] re-frame pattern with external javascript

2015-03-13 Thread Sven Richter
Hi, I am trying the re-frame pattern with resumable.js. Resumable.js needs one to execute a function on an existing dom element like this: r.assignBrowse(document.getElementById('browseButton')); Now, the problem is, if the button is not there yet in the dom, calling assignBrowse will fail

[ClojureScript] Abstract some boilerplate code

2015-03-01 Thread Sven Richter
Hi, I have several functions that do an async request to the server. There are constraints for this functions. 1. Only send an request if some value is not empty 2. Disable and enable some button before and after the request. A function might look like this: (defn add-group [] (let [g-name

[ClojureScript] Re: ANN: re-frame 0.1.7 Initial Release

2015-02-27 Thread Sven Richter
Hi Mike, This looks good :-) Do you consider releasing a library with some convenience functions and an exposed API for this? Best Regards, Sven Am Mittwoch, 25. Februar 2015 12:52:23 UTC+1 schrieb Mike Thompson: A Reagent Framework For Writing SPAs, in ClojureScript. README and source

[ClojureScript] Re: phonegap, cljs and deviceready event

2015-02-19 Thread Sven Richter
:33 AM UTC-6, Sven Richter wrote: Hi, Does anyone here do phonegap development with clojurescript? I was reading up a bit today and looked at sources I found: https://gist.github.com/zentrope/bf359cec33f6fcc02be4 and now I wonder if I have to wait for the deviceready event

[ClojureScript] Re: Updating sorted set inside go block

2014-12-25 Thread Sven Richter
On Thursday, December 25, 2014 6:14:03 PM UTC+1, Sven Richter wrote: Hi Thomas, Thank you for investigating in this. Your explanation makes perfect sense, given one has the knowledge about the internals of clj / cljs and its usage in core.async. You are absolutely right about

[ClojureScript] Updating sorted set inside go block

2014-12-24 Thread Sven Richter
Hi, Using the latest core.async (v0.1.346.0-17112a-alpha) updating a sorted set results in an error. I have this code: (defn get-transformations [] (go (let [[ok resp] (! (h/get-async /csv/all-transformations))] ;(when ok (reset! sess/transformations-cur (:transformations resp))

[ClojureScript] Re: Updating sorted set inside go block

2014-12-24 Thread Sven Richter
, 2014 11:19:04 AM UTC+1, Sven Richter wrote: Hi, Using the latest core.async (v0.1.346.0-17112a-alpha) updating a sorted set results in an error. I have this code: (defn get-transformations [] (go (let [[ok resp] (! (h/get-async /csv/all-transformations))] ;(when ok

[ClojureScript] Re: Updating sorted set inside go block

2014-12-24 Thread Sven Richter
, /thomas On Wednesday, December 24, 2014 3:12:07 PM UTC+1, Sven Richter wrote: Hi Thomas, the code I pasted was maybe a bit misleading. Function one: (defn save-transformation [_] (go (let [trans-name (hel/get-value transformation-name) [ok _] (! (hel/post-async-ch

Re: [ClojureScript] Re: Being productive with clojurescript

2014-12-20 Thread Sven Richter
Am Samstag, 20. Dezember 2014 12:03:51 UTC+1 schrieb Arnaud Bailly: On Sat, Dec 20, 2014 at 12:42 AM, Sven Richter sve...@googlemail.com wrote:Hi Arnaud,  I had a good time with the chestnut template: https://github.com/plexus/chestnut thanks a lot for the pointer sven

[ClojureScript] Re: [ANN] freactive - high performance, pure Clojurescript, declarative DOM library

2014-12-01 Thread Sven Richter
Hi, I am currently trying to make drag and drop work with freactive, but fail so far. This is my code: [:thead [:tr (for [col (first (:content struct))] [:td [:div {:draggable true :on-drag-start (fn [e] (println dragged))

Re: [ClojureScript] Re: [ANN] freactive - high performance, pure Clojurescript, declarative DOM library

2014-12-01 Thread Sven Richter
with setAttribute - please submit an issue on github). Looking at your code, maybe the issue is the event handler names - I believe the DOM events are called dragstart, dragend, etc. without a hyphen. On Mon, Dec 1, 2014 at 10:39 AM, Sven Richter sve...@googlemail.com javascript: wrote: Hi

Re: [ClojureScript] Re: [ANN] freactive - high performance, pure Clojurescript, declarative DOM library

2014-11-21 Thread Sven Richter
20, 2014 at 5:21 PM, Sven Richter sve...@googlemail.com wrote: Hi, I have been playing around and like it so far. I experience some behavior here where I wonder if it is intended or if I am doing something wrong. I have a main-page which I mount like this: (dom/mount! root (main-page

Re: [ClojureScript] Re: [ANN] freactive - high performance, pure Clojurescript, declarative DOM library

2014-11-21 Thread Sven Richter
side. I hope that shows the problem I have. Best Regards, Sven Am Freitag, 21. November 2014 10:13:35 UTC+1 schrieb Sven Richter: Hi Aaron, I took this idea from yogthos blog and the whole session namespace contains an freactive atom plus some helpers: (ns de.sveri.dockerui.session

[ClojureScript] Re: [ANN] freactive - high performance, pure Clojurescript, declarative DOM library

2014-11-20 Thread Sven Richter
Hi, I have been playing around and like it so far. I experience some behavior here where I wonder if it is intended or if I am doing something wrong. I have a main-page which I mount like this: (dom/mount! root (main-page)) and which looks like this: (defn main-page [] [... [:div#content

[ClojureScript] Re: Architectural question about a SPA application

2014-11-03 Thread Sven Richter
Hi Mike, Ok, I get that I can take the data from the atom. I still have trouble accepting that data has to be synchronized between server and local client state, but I think I get used to that. I am just not sure if I like the complexity of keeping both synchronized. Now you can call

[ClojureScript] Architectural question about a SPA application

2014-11-02 Thread Sven Richter
Hi, I am playing around with a SPA application, for this I use reagent, kioo and secretary. This is the basic dataflow I currently have: (session/put! :current-page rules-page) ;set initial page to load, rules-page is a kioo snippet ; render the main component where main-page is a kioo

[ClojureScript] Using cljs-time with a different timezone than utc

2014-04-28 Thread Sven Richter
Hi, I also am one of the happy users of cljs-time and I noticed the latest changes to be more congruent with clj-time, which I find very nice. However, the inline documentation of core.cljs was not updated yet and it still points to some methods handlinge timezone offsets. These methods do not

[ClojureScript] Re: Using cljs-time with a different timezone than utc

2014-04-28 Thread Sven Richter
Just a small correction, what I actually want to do is add the offset to my datetime object. Sven Am Montag, 28. April 2014 12:01:37 UTC+2 schrieb Sven Richter: Hi, I also am one of the happy users of cljs-time and I noticed the latest changes to be more congruent with clj-time, which I

Re: [ClojureScript] om-sync updating the server misses values from map

2014-04-26 Thread Sven Richter
and there I was able to send the whole map to the server. So I guess something is wrong on my side. Or maybe I miss something from the tutorial that I additionally need. Best Regards, Sven On Saturday, April 26, 2014, Sven Richter sve...@googlemail.com wrote: Hi, I am trying to use om-sync

Re: [ClojureScript] om-sync updating the server misses values from map

2014-04-26 Thread Sven Richter
Jeez, I have been looking into this for more than one day now, what I was missing was to update the :id-key option. Now I can pass my unique id and the changed value to the server. Am Samstag, 26. April 2014 16:26:02 UTC+2 schrieb Sven Richter: Am Samstag, 26. April 2014 16:19:34 UTC+2

[ClojureScript] om: render-state in IRenderState called twice

2014-04-21 Thread Sven Richter
Hi, while exploring OM I found out that render-state is called twice if init-state changes the app-state. This small snippet demonstrates this effect: (def app-state (atom {:releases []})) (defn div-list [data owner opts] (reify om/IInitState (init-state [_] (println init

Re: [ClojureScript] om: render-state in IRenderState called twice

2014-04-21 Thread Sven Richter
: Oops, sorry I read this too quickly. Yes this is the expected behavior and not an issue at all. David On Mon, Apr 21, 2014 at 3:44 AM, Sven Richter sve...@googlemail.com wrote: Hi, while exploring OM I found out that render-state is called twice if init-state changes

Re: [ClojureScript] Re: Convert javascript library call to clojurescript call (to canvasjs)

2014-03-31 Thread Sven Richter
Thank you both, it worked exactly as I need it to :-) Am Sonntag, 30. März 2014 23:57:20 UTC+2 schrieb Moritz Ulrich: Also note that you can replace the call to `clj-js' with #js. On Sun, Mar 30, 2014 at 9:32 PM, Creighton Kirkendall ckirkend...@gmail.com wrote: It should look

[ClojureScript] Convert javascript library call to clojurescript call (to canvasjs)

2014-03-30 Thread Sven Richter
Hi, I have trouble converting the following javscript call for canvasjs to clojurescript: var chart = new CanvasJS.Chart(chartContainer, { title:{ text: Fruits sold in First Quarter }, data: [//array of dataSeries { //dataSeries object /***