Testing functions in threading macros (with Midje)

2016-03-03 Thread Timur
them using Midje? Any examples will be appreciated... Regards, Timur -- 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 from new members are moderated - please

Re: What's the best option similar to Vert.x, Reactor, Nodejs for use with Clojure?

2016-01-23 Thread Timur
Yes +1 to qsys, such a library would be quite useful and enable using Clojure in additional enterprise settings. Regards, Timur On Saturday, January 23, 2016 at 9:50:45 PM UTC+1, qsys wrote: > > True, hazelcast, or JGroups, in vertx 3 for clustering/autodiscovery. It > may be

Uberjaring a JAXWS CXF Web Service

2015-12-08 Thread Timur
Hi all, If anyone intends to pack all dependencies of a JAX-WS service with lein uberjar. The trick is to append bus-extensions.txt from different dependencies. You can achieve this with: :uberjar-merge-with {"META-INF/cxf/bus-extensions.txt" [slurp #(str %1 "\n" %2) spit]} Don't forget "\n

Re: How to use :uberjar-merge-with properly

2015-12-08 Thread Timur Sungur
Cleaning the project did the job. On Tue, Dec 8, 2015 at 6:15 PM Timur wrote: > Hi all, > > I'm trying to merge all "META-INF/cxf/bus-extensions.txt" files in > different jars during uberjar command with the following setting: > > :uberjar-merge-with {"M

How to use :uberjar-merge-with properly

2015-12-08 Thread Timur
wrong any ideas? Regards, Timur -- 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 from new members are moderated - please be patient with your first post. To unsu

Re: How to avaoid regresssions in Clojure Applications

2015-12-07 Thread Timur
Thank you for your answers. Especially, thanks to Colin for such a detailed answer. Regards, Timur On Saturday, December 5, 2015 at 5:52:35 PM UTC+1, Magnus Therning wrote: > > > Timur writes: > > > Hi all, > > > > I'm using Clojure to build a set of s

How to avaoid regresssions in Clojure Applications

2015-12-05 Thread Timur
Hi all, I'm using Clojure to build a set of services. Development with Clojure is fun but most of the time, I lose time with fixing regressions due to changing small parts of the codes. Do you have any best practices to avoid regressions occurring due to changes in the code? I use :pre and :p

How to check if a record implements a function of a protocol

2015-11-22 Thread Timur
Hi, A record realizes a protocol but does not implement all functions of it. Is there a function to find out if a specific one is implemented or not? Simple example: (defprotocol IPro (fn1 [_] ) (fn2 [_] )) (defrecord MyRecord [] IPro (fn1 [_] "Test1|)) I want to check if MyRecor

Re: Help with decisions in threading macros

2015-11-04 Thread Timur Sungur
Thanks!! On Tue, Nov 3, 2015 at 7:38 PM Erik Assum wrote: > some->> > > Erik. > -- > i farta > > Den 3. nov. 2015 kl. 17.05 skrev Timur : > > Hi all, > > Often I need to make decisions in simple threading macros, for instance > consider the

Help with decisions in threading macros

2015-11-03 Thread Timur
ere is a better way to do this. Regards, Timur -- 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 from new members are moderated - please be patient with your

Right behavior of core/bean

2015-11-02 Thread Timur
fn__5743 0x118e7d04 "clojure.core$bean$fn__5742$fn__5743@118e7d04"]]] When I put the map into a vector, the values of the bean map are converted into bean functions, e.g., #object[clojure.core$bean$fn__5742$fn__5743 0x118e7d04 "clojure.core$bean$fn__5742$fn__5743@118e7d04"] Wh

Re: Could not locate ring/adapter/jetty__init.class or ring/adapter/jetty.clj on classpath although it's there

2015-10-22 Thread Timur
Ok this time, it works for sure. The problem was because of transitivie dependencies. Thanks and regards, Timur On Thursday, October 22, 2015 at 12:17:07 PM UTC+2, Colin Yates wrote: > > Maybe a sample project might help? > > On 22 Oct 2015, at 10:49, Timur > wrote: &

Re: Could not locate ring/adapter/jetty__init.class or ring/adapter/jetty.clj on classpath although it's there

2015-10-22 Thread Timur
Nope false positive, it did not work :( On Thursday, October 22, 2015 at 11:40:08 AM UTC+2, Timur wrote: > > > Okay that resolved the issue project B was providing some communication > functionality and did not declare any explicit dependeny on jetty-adapter. > After def

Re: Could not locate ring/adapter/jetty__init.class or ring/adapter/jetty.clj on classpath although it's there

2015-10-22 Thread Timur
y that isn’t working but it is highly recommended not to depend > on transitive dependencies. If you need a lib for :compile scope (rather > than :provided) then you should (must?) declare that; projectC should > depend directly on ring-jetty-adapter in this case. > > On 22 Oct 2015, at

Could not locate ring/adapter/jetty__init.class or ring/adapter/jetty.clj on classpath although it's there

2015-10-22 Thread Timur
Hi all, I have a multi-project set-up. Base project A depends on [ring/ring-jetty-adapter "1.4.0"], a project B depends on this project A which is included in project C. So in simple words dependency graph: [ring/ring-jetty-adapter "1.4.0"] -> project A -> project B -> project C When I run r

Retrieving generic type of an object

2015-10-20 Thread Timur
Hi all, Are there any functions to get generic type of an object object method, field, etc.? By calling object methods, I achieve this with the following function: (defn- get-generic-type-of-an-instance-method [m] {:pre [(:obj m) (:method-name m)]} (-> m :obj type

Re: Calling object members with symbols

2015-10-19 Thread Timur
Thanks for the answers! On Monday, October 19, 2015 at 3:15:16 AM UTC+2, dennis wrote: > > In such case you have to use `eval`, another post > > https://groups.google.com/forum/#!topic/clojure/YJNRnGXLr2I > > 2015-10-19 9:10 GMT+08:00 James Reeves >: > >> On 1

Calling object members with symbols

2015-10-18 Thread Timur
)* throws an exception. Here symbol for instance contains toString Any ideas about how I can do this? Regards, Timur -- 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

JAX-B Alternative For Clojure?

2015-10-04 Thread Timur
Hi all, Is there any JAX-B alternative for Clojure that eases generation of XMLs that are complaint with an XML schema and at the same time can be used in Clojure, i.e., enables generation of Clojure maps? Regards, Timur -- You received this message because you are subscribed to the Google

Refactoring namespaces

2015-09-18 Thread Timur
Hi everyone, Is there any recommended way of refactoring namespaces in Clojure? Any tool support, which automates this task? Regards, Timur -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Creating jar specific defaults

2015-06-20 Thread Timur
Hi everyone, I want to specify some defaults for a library that I pack as a jar, for instance standard port a server. It should be read from a property file in the respective jar file automatically. However, when I include a jar in my class path, the file is not loaded from the included jar p

Re: Problem with loading protocols dynamically from checkouts

2015-06-09 Thread Timur
referring to this specific namespace in my lein configuration and as far as I understood the aot compiled classes in the local maven cache have priority, therefore, it needed me to do a lein install each time. Regards, Timur On Tuesday, June 9, 2015 at 2:10:59 PM UTC+2, Stuart Sierra wrote

Problem with loading protocols dynamically from checkouts

2015-06-09 Thread Timur
might be doing wrong? Or is this an expected behavior and I'm missing something? Thanks in advance. Regards, Timur -- 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 No

Re: Adding JavaDocs for Interoperability with Java?

2015-05-20 Thread Timur Sungur
ow complete hiding of the Clojure code behind a Java wrapper. > http://clojure.github.io/clojure/javadoc/clojure/java/api/package-summary.html > > On Tuesday, May 19, 2015 at 4:41:29 AM UTC-5, Timur wrote: >> >> Hi everyone, >> >> Is it possible to add JavaDocs to

Adding JavaDocs for Interoperability with Java?

2015-05-19 Thread Timur
Hi everyone, Is it possible to add JavaDocs to Clojure so that it can support Java programmers. For instance a JavaDoc to a protocol or to an interface defined in Clojure which is later on read by a Java developer? Regards, Timur -- You received this message because you are subscribed to

A Petition for Supporting our On-going Research

2015-05-07 Thread Timur
decided to ask for your support. If you can spare 30 minutes of yours for the following survey, we will appreciate a lot and you would help us a lot http://goo.gl/forms/gtj7AQX6w4 Thanks in advance. Regards, Timur -- You received this message because you are subscribed to the Google Groups "Cl

Re: Debugging with Cider

2015-05-06 Thread Timur
Okay thanks that should be enough. On Wednesday, May 6, 2015 at 12:07:29 PM UTC+2, Artur Malabarba wrote: > > Stepping into a function that wasn't previously isntrumented is not > supported yet. > However, you can just instrument both functions (C-u C-M-x on each one), > and when one function c

Debugging with Cider

2015-05-06 Thread Timur
Hi everyone, I just discovered after reading the post [1], CIDER has debugging facility for Clojure. It seems to be nice but what I could not find was the step in functionality. Is there such a functionality that you are aware of? Thanks in advance! Regards, Timur [1] http

Re: Performance of defmulti in both ClojureScript and Clojure

2015-04-28 Thread Timur Sungur
ly-perf/ > > > On Saturday, April 25, 2015 at 9:39:06 PM UTC-5, Alex Miller wrote: > >> On Saturday, April 25, 2015 at 9:33:18 AM UTC-5, Timur wrote: >>> >>> Hi everyone, >>> >>> There are situations where I want to dispatch functions using based on &

Performance of defmulti in both ClojureScript and Clojure

2015-04-25 Thread Timur
for performance reasons? I read somewhere that they are not really fast but the posts were old and the performance might have been improved in between. Should I favor case and cond branches instead of defmulti when I need performance? Thanks for your help!!! Regards. Timur -- You received

Re: Multi-project Set-up

2015-02-27 Thread Timur Sungur
Okay, just found my mistake: the dependency was not listed in the project which checks out the other project. On Fri, Feb 27, 2015 at 5:12 PM, Timur Sungur wrote: > Thanks for the suggestion but I had already tried it and no success. > > On Fri, Feb 27, 2015 at 7:58 AM, Eldar Gabdull

Re: Multi-project Set-up

2015-02-27 Thread Timur Sungur
Thanks for the suggestion but I had already tried it and no success. On Fri, Feb 27, 2015 at 7:58 AM, Eldar Gabdullin wrote: > Go to your checked out project and run "lein install" there. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To po

Multi-project Set-up

2015-02-26 Thread Timur
oblem? Thanks in advance. Regards, Timur -- 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 from new members are moderated - please be patient with your first post. To u

Re: defmulti: dispatch function is not called

2015-02-22 Thread Timur
Thank you all for your answers. The problem was caused by not starting the REPL. I did not know that defmulti had defonce semantics. On Sunday, February 22, 2015 at 7:04:58 PM UTC+1, Jeremy Heiler wrote: > > On 2/22/15 12:52 PM, Timur wrote: > > Hi everyone, > > > &

defmulti: dispatch function is not called

2015-02-22 Thread Timur
reate-fact [[:a "safs"]] [item-vector] (str "safs")) (mapv create-fact {:a "safs"}) Dispatch function is not called in this case and return is "safs" so the matching key is [[:a "safs"]]. I except it to be :a, why is that [[:a "safs&q

A clojruescript library for canvas applications

2015-02-01 Thread Timur
Hi everyone, Are there any cljs library recommendations for a modeling application based on canvas? There will be modeling elements which are associated with relationships (e.g., similar to UML modeling). Regards, Timur -- You received this message because you are subscribed to the Google

Unmarshalling EDN to Java Object

2014-10-08 Thread Timur
Hi everyone, One can use into-edn [1] to convert from Java objects to EDN structures. Is there a way to convert EDN structures to their original Java objects? Regards, Timur [1] https://github.com/thebusby/into-edn -- You received this message because you are subscribed to the Google

Resolve function or object by name in ClojureScript

2014-08-25 Thread Timur
Hi everybody, Is there a way to resolve a function or object using its string name in ClojureScript? I found this however it is old: http://stackoverflow.com/questions/12020576/resolve-function-throws-an-error-in-clojurescript-but-not-clojure/12020663#12020663 Thanks in advance. -- You rec

Re: Cljs build does not compile the source folders

2014-08-19 Thread Timur
Ok, the problem was the files with .clj suffix are ignored by the watcher. Changing it to .cljs solved the problem. On Tuesday, August 19, 2014 11:58:51 AM UTC+2, Timur wrote: > > Hi everyone, > > My clojurescript build results in a Javascript file which does not contain &g

Cljs build does not compile the source folders

2014-08-19 Thread Timur
Hi everyone, My clojurescript build results in a Javascript file which does not contain the expected namepsace and functions contained in my clojurescript files. What could be the reason? My project setup (simplified) is as follows: (defproject myapp "0.1.0-SNAPSHOT" :description "FIXME: wr

Re: java interoperability: No such namespace error

2014-07-31 Thread Timur
nager]) > > The vector's just for style, a list works just as well. > > > Timur > July 31, 2014 at 1:44 PM > Hi, > > (ns de.uni-stuttgart.iaas.ipsm.base-resource-service.core > (:import (org.apache.logging.log4j.LogManager))) > > (println (LogManager/getL

java interoperability: No such namespace error

2014-07-31 Thread Timur
Hi, (ns de.uni-stuttgart.iaas.ipsm.base-resource-service.core (:import (org.apache.logging.log4j.LogManager))) (println (LogManager/getLogger)) The above simple code throws the following exception and I could not resolve the issue: CompilerException java.lang.RuntimeException: No such names

Enterprise Integration Using SOAP Web Services an Clojure

2014-07-30 Thread Timur
Hi everyone, Are there any libraries other than clj-soap for implementing SOAP Web-Services? Regards, Timur -- 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 post

REPL using Emacs Cider

2014-06-01 Thread Timur
hi everyone, I have a question about using nREPL (cider) in Emacs. In my clojurescript project, I start the repl server using cider-jack-in command. However, whenever I try to execute a function from the clojure file, a CompilerException is thrown with the message unable to resolve symbol... W