Re: Use Require and Import

2014-09-18 Thread Michael Klishin
 On 19 September 2014 at 10:53:32, Gomzee (gettingerr...@gmail.com) wrote: > I am new to clojure can any one give me a good example answer to > differentiate between Use, Require and Import. Specially I > am getting confused with Require and Import. require loads and compiles Clojure namespace

Use Require and Import

2014-09-18 Thread Gomzee
I am new to clojure can any one give me a good example answer to differentiate between Use, Require and Import. Specially I am getting confused with Require and Import. Hoping to get answer soon. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To p

Re: [ANN] Clojure Videos (with options for Linux users)

2014-09-18 Thread Gomzee
I tried to open this link (https://tbaldridge.pivotshare.com). Its not working. Can you check and let me know. On Friday, September 19, 2014 6:21:46 AM UTC+5:30, tbc++ wrote: > > Just wanted to throw this out there, but I've been making steady progress > on my Clojure Tutorial Videos (https://tb

Re: [ANN] Clojure Videos (with options for Linux users)

2014-09-18 Thread Dom Kiva-Meyer
Thanks! On Thu, Sep 18, 2014 at 6:45 PM, Timothy Baldridge wrote: > Sure, send me an email asking for access and I'll set it up. > > Timothy > > On Thu, Sep 18, 2014 at 7:30 PM, Dom Kiva-Meyer wrote: > >> Thanks for the videos and for making this option available. Is it >> possible for existing

Re: Assigning Values in Core.Logic

2014-09-18 Thread Ashton Kemerling
Aha, I believe the "is" method has solved my dilemma. -- Ashton Kemerling On Thu, Sep 18, 2014 at 7:56 PM, Ashton Kemerling wrote: > I can't tell if I'm being silly, but I'm having issues figuring out how to > record the results of my computation in Core.Logic. > > The basic idea is that I'm tr

Assigning Values in Core.Logic

2014-09-18 Thread Ashton Kemerling
I can't tell if I'm being silly, but I'm having issues figuring out how to record the results of my computation in Core.Logic. The basic idea is that I'm trying to determine if a schedule a user has requested is solvable or not. I'm trying to find out how to assign to each hash-map what resourc

Re: [ANN] Clojure Videos (with options for Linux users)

2014-09-18 Thread Timothy Baldridge
Sure, send me an email asking for access and I'll set it up. Timothy On Thu, Sep 18, 2014 at 7:30 PM, Dom Kiva-Meyer wrote: > Thanks for the videos and for making this option available. Is it possible > for existing subscribers to access the videos via Dropbox as well? > > On Thu, Sep 18, 2014

Re: ANN: ClojureScript 0.0-2341, Improved Analysis & Transducers

2014-09-18 Thread Ben Wolfson
On Thu, Sep 18, 2014 at 6:25 PM, Timothy Baldridge wrote: > That'd probably require emails to be in HTML format (or have massive > amounts of text in the email), that would most likely upset a whole other > group of users. > the links seem pretty short: http://dev.clojure.org/jira/browse/CLJS-70

Re: [ANN] Clojure Videos (with options for Linux users)

2014-09-18 Thread Dom Kiva-Meyer
Thanks for the videos and for making this option available. Is it possible for existing subscribers to access the videos via Dropbox as well? On Thu, Sep 18, 2014 at 5:51 PM, Timothy Baldridge wrote: > Just wanted to throw this out there, but I've been making steady progress > on my Clojure Tuto

Re: ANN: ClojureScript 0.0-2341, Improved Analysis & Transducers

2014-09-18 Thread Timothy Baldridge
That'd probably require emails to be in HTML format (or have massive amounts of text in the email), that would most likely upset a whole other group of users. On Thu, Sep 18, 2014 at 7:09 PM, bob wrote: > It would be better that the jira issues have links. > > > On Thursday, September 18, 2014 8

Re: ANN: ClojureScript 0.0-2341, Improved Analysis & Transducers

2014-09-18 Thread bob
It would be better that the jira issues have links. On Thursday, September 18, 2014 8:23:45 PM UTC+8, David Nolen wrote: > > ClojureScript, the Clojure compiler that emits JavaScript source code. > > README and source code: https://github.com/clojure/clojurescript > > New release version: 0.0-2

[ANN] Clojure Videos (with options for Linux users)

2014-09-18 Thread Timothy Baldridge
Just wanted to throw this out there, but I've been making steady progress on my Clojure Tutorial Videos (https://tbaldridge.pivotshare.com). We're up to 43 videos with new episodes added at a rate of about 2-3 a week. Some users have expressed a desire for the raw MP4 files for use on Linux, or ot

Re: Is this a reasonable use of core.async?

2014-09-18 Thread Beau Fabry
Yeah Dan Thomas's code is an awesome example for anyone looking to solve a similar solution with variable load. In my case this is a predictable batch process and I know the load exactly :-) I ended up implementing the futures approach for the reasons you listed, as it was our only use of core.a

Re: it's possible to query for optional parts on many relations?

2014-09-18 Thread Wilker
Yes I could, but I'm trying to stick on the philosophy of "define your data at query time", so I would like to move all "query stuff" to Datomic, also, even if I don't use, I still would like to know if that's possible, I'm still very noob to Datomic and so trying stuff around. But considering all

Re: it's possible to query for optional parts on many relations?

2014-09-18 Thread Ashton Kemerling
Couldn't you just retrieve users and use "entity" to get their photos? On Thu, Sep 18, 2014 at 4:43 PM, Wilker wrote: > Forgot to mention, I tried the (get-else) but it raises an error about > cardinality many not supported, so I guessed it doesn't works here... > --- > Wilker Lúcio > http://abo

Re: it's possible to query for optional parts on many relations?

2014-09-18 Thread Wilker
Forgot to mention, I tried the (get-else) but it raises an error about cardinality many not supported, so I guessed it doesn't works here... --- Wilker Lúcio http://about.me/wilkerlucio/bio Woboinc Consultant +55 81 82556600 On Thu, Sep 18, 2014 at 7:41 PM, Wilker wrote: > Hi > > I'm trying to

it's possible to query for optional parts on many relations?

2014-09-18 Thread Wilker
Hi I'm trying to figure if I can make some parts of my query results to be optional, for example, given the following query: [:find ?name ?age :where [?m :person/name ?name] [?m :person/age ?age]] This will return all entities that has a :person/name and :person/age. Ok, so, if I want to make

Re: Anyone willing to do a tutorial on minecraft modding in clojure?

2014-09-18 Thread Jeb Beich
Is Bukkit an option? I've used https://github.com/CmdrDats/clj-minecraft. Active project, fun and easy to use. On Thu, Sep 18, 2014 at 4:30 AM, Hi-tech Robert wrote: > Hi, I am looking for tutorial on modding minecraft 1.7.4 in clojure. There > are plenty of tutorial that use java e.g. > http://

Re: [ANN] www.core-async.info: a new web resource for core.async

2014-09-18 Thread Daniel Solano Gómez
On Thu Sep 18 12:14 2014, Ashton Kemerling wrote: > That looks really nice! My only feedback is that it doesn't load at all on my > iPhone. Thanks for the information. I haven't yet taken the time to make it entirely mobile-friendly, but it is however on my list of things to do. Sincerely, Dan

[ANN] Yakshave 0.1.2 - Zoooomm :)

2014-09-18 Thread john walker
Hi everyone, I've produced yakshave, a Nodejs (Clojurescript) utility that currently supports rendering modified Leiningen templates. It's significantly faster than the lein new task, at least before going through https://github.com/technomancy/leiningen/wiki/Faster You can get it with: npm i

Re: ANN: ClojureScript 0.0-2341, Improved Analysis & Transducers

2014-09-18 Thread David Nolen
I just cut 0.0-2342, the only change is a updated dependency on tools.reader 0.8.9 - this fixes an issue where source metadata would leave into the runtime. David On Thu, Sep 18, 2014 at 8:23 AM, David Nolen wrote: > ClojureScript, the Clojure compiler that emits JavaScript source code. > > READ

Re: [ANN] www.core-async.info: a new web resource for core.async

2014-09-18 Thread Ashton Kemerling
That looks really nice! My only feedback is that it doesn't load at all on my iPhone. On Thu, Sep 18, 2014 at 1:01 PM, Daniel Solano Gómez wrote: > Hello, all, > Over the past few months I have been working on creating some resources > to help people learn to use core.async. My goal is make th

[ANN] tools.analyzer[.jvm] 0.6.0 release, pass scheduler

2014-09-18 Thread Nicola Mometto
Today I released version 0.6.0 of the tools.analyzer[1] and tools.analyzer.jvm[2] contrib libraries. With this release comes a new feature I'm really excited about and that I believe will help users of this library significantly: a pass scheduler. Previous to this release, tools.analyzer passes

[ANN] www.core-async.info: a new web resource for core.async

2014-09-18 Thread Daniel Solano Gómez
Hello, all, Over the past few months I have been working on creating some resources to help people learn to use core.async. My goal is make this the best resource available to help people get started with core.async and to document best practices for composing applications with core.async. It is

Re: jetty restart failing

2014-09-18 Thread Wilker
Nice tricks, thanks again :) --- Wilker Lúcio http://about.me/wilkerlucio/bio Woboinc Consultant +55 81 82556600 On Tue, Sep 16, 2014 at 7:51 PM, James Reeves wrote: > On 16 September 2014 17:06, Herwig Hochleitner > wrote: > >> 2014-09-16 17:28 GMT+02:00 James Reeves : >> >>> On 16 September

Re: Deploy best practices

2014-09-18 Thread Avi Avicenna
How do you deploy and run your application? is it just git push to server and do lein run or creating uberjar then copy the uberjar to server then java -jar ... leiningen contributors recommend using uberjar if possible. you can read it in "Server Side Projects" part lein help tutoria

clojure.org uses a wikispaces TLS certificate

2014-09-18 Thread Laurens Van Houtven
Hi! clojure.org presents a bogus certificate when you attempt to reach it over HTTPS. The cert it provides has *.wikispaces.com as a CN, but is otherwise fine. My apologies if there's a better place to report this; I couldn't find it. hth lvh -- You received this message because you are su

ANN: ClojureScript 0.0-2341, Improved Analysis & Transducers

2014-09-18 Thread David Nolen
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript New release version: 0.0-2341 Leiningen dependency information: [org.clojure/clojurescript "0.0-2341"] This releases comes with considerably better analys

Anyone willing to do a tutorial on minecraft modding in clojure?

2014-09-18 Thread Hi-tech Robert
Hi, I am looking for tutorial on modding minecraft 1.7.4 in clojure. There are plenty of tutorial that use java e.g. http://www.youtube.com/watch?v=e6v5egIkThk but I want to use clojure instead as Java is too verbose. The closest i managed to find is this http://metaphysicaldeveloper.wordpress.

Re: Deploy best practices

2014-09-18 Thread Thomas Heller
I use http-kit as a web server as well. My deployment basically looks like this: My main function starts my "app", once I have an app instance I attempt to start the http-kit server on a specific port. I do this in a loop, catching all socket already bound exceptions and retrying. Additionally

Re: Deploy best practices

2014-09-18 Thread Kalina Todorova
Or maybe try with immutant http://immutant.org/ Best regards | Med venlig hilsen, KALINA TODOROVA T: 0045 52 64 93 73 E: ad...@ki6i.com Frederikssundsvej 194 2 1 2700 Brønshøj

Re: Deploy best practices

2014-09-18 Thread Max Penet
You can use nginx as reverse proxy, load balance on 2 apps that are running on 2 different ports, and manage to always leave one alive when doing deploys. clojars has some document (probably not very up to date) about this kind of setups: http://p.hagelb.org/clojars-deploy On Thursday, Sept

Re: [ANN] Gorilla REPL 0.3.3 - inline docs, CIDER compatibility

2014-09-18 Thread Borkdude
+1 for the feature to connect to an external nREPL session! -- 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 fir

Deploy best practices

2014-09-18 Thread Ruslan Prokopchuk
Community, how do you deploy clojure web applications? This question have been asked several times, but I've not found answer to this particular aspect: what is the best way to deal with startup delay? I develop web application using http-kit and clojurescript. After deploy I clean & rebuild cl

Re: [ANN] om-bootstrap 0.2.6 released

2014-09-18 Thread Daniel Kersten
Forgot to add: IDidMount/did-mount only gets called after mounting. If you want to run code after later renders you can use IDidUpdate. On 18 Sep 2014 09:16, "Daniel Kersten" wrote: > In Om, a good place to put things that need render to have been called is > in IDidMount. You can get the DOM no

Re: [ANN] om-bootstrap 0.2.6 released

2014-09-18 Thread Daniel Kersten
In Om, a good place to put things that need render to have been called is in IDidMount. You can get the DOM node for your component with (om/get-node owner) or (om/get-node owner ref) if you want a sprcific node with a :ref attribute set. On 17 Sep 2014 22:06, "Rostislav Svoboda" wrote: > Concern

Re: Is this a reasonable use of core.async?

2014-09-18 Thread Daniel Kersten
I personally think Thomas' is best if load may vary as it is more predictable and straightforward to understand. If we're talking about line code, here's a shortened version that I don't feel sacrifices readability (typed on a phone so please excuse typos...): (let [exec (Executors newFixedThreadP