Re: Why is the start function called -main

2017-09-07 Thread Cecil Westerhof
dea of having a prefix is that any Clojure function used for > interop, in the sense that it is designed to be called from Java, is > prefixed, so you can easily know its purpose is Java interop. So by > default, all Clojure function prefixed with "-" can be assumed to be > in

Re: Why is the start function called -main

2017-09-06 Thread Cecil Westerhof
2017-09-06 23:42 GMT+02:00 Justin Smith : > To define a method in gen-class you need to use a prefix on the function > name, "-" is the default prefix > ​I have to delve a little deeper into that on a rainy day. ​ > On Wed, Sep 6, 2017, 14:41 Cecil Westerhof wrote: >

Re: Why is the start function called -main

2017-09-06 Thread Cecil Westerhof
2017-09-06 23:27 GMT+02:00 Matching Socks : > There is a hint, as to this, in the API doc of gen-class: > > https://clojure.github.io/clojure/clojure.core-api.html# > clojure.core/gen-class > ​That explains what happens, not why. ;-) -- Cecil Westerhof -- You received this

Why is the start function called -main

2017-09-06 Thread Cecil Westerhof
In C, C++ and Java the start function is called main. Why is it called -main in Clojure? -- Cecil Westerhof -- 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

Re: What am I doing wrong

2017-09-06 Thread Cecil Westerhof
2017-09-06 15:18 GMT+02:00 Cecil Westerhof : > 2017-09-06 14:15 GMT+02:00 Gary Trakhman : > >> The second to last apply argument doesn't spread args like the last slot. >> > > ​OK, I changed it to: > (def digits > (apply str (map char (inclusive-range (int

Re: What am I doing wrong

2017-09-06 Thread Cecil Westerhof
e apply str … > On Sep 6, 2017 8:11 AM, "Cecil Westerhof" wrote: > > I have: > (def digits > (apply str > (map char (inclusive-range (int \0) (int \9) > > and this gives: > "0123456789" > > I also have: > (def hex-di

What am I doing wrong

2017-09-06 Thread Cecil Westerhof
56789clojure.lang.LazySeq@4659426eabcdefghijklmnopqrstuvwxyz" Why does it not give: "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" The definition of inclusive-range: (defn inclusive-range ([start end] (inclusive-range start end 1)) ([start end step] (range start (inc end

Re: Starting Clojure again

2017-09-06 Thread Cecil Westerhof
t; (def create-pin (partial create-pin-base digits)) > (def create-pin-hex (partial create-pin-base hex-digits)) > ​Works great, thanks. ​ ​By the way it shows why it is important. You had:​ ​​(create-pin chars 8)) inste​ad of: ​(create-pin-base chars 8)) -- Cecil Westerhof -- You r

Re: Starting Clojure again

2017-09-06 Thread Cecil Westerhof
2017-09-06 9:58 GMT+02:00 Cecil Westerhof : > I want to start using Clojure again. I made the following simple function > to generate a PIN: > (defn create-pin > ([] (create-pin 8)) > ([n] >(let [chars (map char (range (int \0) (inc (int \9] > (reduce str

Re: Starting Clojure again

2017-09-06 Thread Cecil Westerhof
2017-09-06 11:00 GMT+02:00 Ray Miller : > On 6 September 2017 at 09:50, Cecil Westerhof > wrote: > >> >> ​I am trying the following throwaway code: >> (defn create-pin >> ([] (create-pin 8)) >> ([n] >>{:pre [(<= n 128) >>(>=

Re: Starting Clojure again

2017-09-06 Thread Cecil Westerhof
2017-09-06 10:13 GMT+02:00 Cecil Westerhof : > Answering my own question. ;-) > > 2017-09-06 9:58 GMT+02:00 Cecil Westerhof : > >> The next step is that I want to use hexadecimal numbers. So I should use >> (range (int \0) (inc (int \9))) combined with (range (int \A) (i

Re: Starting Clojure again

2017-09-06 Thread Cecil Westerhof
ge is better as a long string. But that is something to think about. On Wed, Sep 6, 2017 at 1:13 AM, Cecil Westerhof > wrote: > >> Answering my own question. ;-) >> >> 2017-09-06 9:58 GMT+02:00 Cecil Westerhof : >> >>> The next step is that I want to use hex

Re: Starting Clojure again

2017-09-06 Thread Cecil Westerhof
at not a > > significant performance increase?​ -- Cecil Westerhof -- 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 pat

Re: Starting Clojure again

2017-09-06 Thread Cecil Westerhof
oncat > > (concat seq1 seq2) > ​I should have wait a little longer with asking. I already found it. But thanks anyway. ​ -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloj

Re: Starting Clojure again

2017-09-06 Thread Cecil Westerhof
Answering my own question. ;-) 2017-09-06 9:58 GMT+02:00 Cecil Westerhof : > The next step is that I want to use hexadecimal numbers. So I should use > (range (int \0) (inc (int \9))) combined with (range (int \A) (inc (int > \F))). > How would I do that? > ​(concat (rang

Starting Clojure again

2017-09-06 Thread Cecil Westerhof
should do differently? Of-course I make a general function that is then called from create-pin and create-pin-hex. -- Cecil Westerhof -- 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

Re: Writing an Android application with Clojure

2017-09-05 Thread Cecil Westerhof
of-course even less verbose. :-D -- Cecil Westerhof -- 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

Re: Writing an Android application with Clojure

2017-09-03 Thread Cecil Westerhof
inking about that, but then I thought that I could use Clojure to get experience with it again. ​ > But ClojureScript with ReactNative is great for iOS + Android > compatibility for more normal apps. > ​I have to evaluate it then​ On Saturday, 2 September 2017 00:59:36 UTC-7,

Re: Writing an Android application with Clojure

2017-09-02 Thread Cecil Westerhof
2017-08-31 14:46 GMT+02:00 Luke Gessler : > Check out cljsrn <http://cljsrn.org/>. > ​Thanks, but from https://www.youtube.com/watch?v=mVXTcAEKgF8 I understood it is better to go native.​ > On Thursday, August 31, 2017 at 5:45:08 AM UTC-5, Cecil Westerhof wrote: >> &

Writing an Android application with Clojure

2017-08-31 Thread Cecil Westerhof
-Android mailing-list is very silent. -- Cecil Westerhof -- 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

Re: Did something change in future

2017-08-19 Thread Cecil Westerhof
2017-08-20 1:57 GMT+02:00 Sean Corfield : > And, yes, definitely, you should pick up Clojure again!! > ​:-D -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegrou

Re: Did something change in future

2017-08-19 Thread Cecil Westerhof
and it works again. I do get: Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException But I think I always got that, but never saw. Something to look after. ​ > *From: *Cecil Westerhof > *Sent: *Saturday, August 19, 2017 2:38 PM > *To: *clojure@googlegroup

Did something change in future

2017-08-19 Thread Cecil Westerhof
urrent version is 1.8, but sadly I do not know what the original version was. And I should pick-up Clojure again also. ;-) -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegrou

Re: Writing (firstly) simple application for Android with Clojure

2017-03-13 Thread Cecil Westerhof
> ​I always understood that those kind of things where only for initial testing, but that when you wanted to be really sure you needed real hardware. But I will cross the bridge when I get there. :-D ​ -- Cecil Westerhof -- You received this message because you are subscribed to the Google

Re: Writing (firstly) simple application for Android with Clojure

2017-03-12 Thread Cecil Westerhof
problem’ is that I should buy an iPhone​ ​and an iPad. ;-) -- Cecil Westerhof -- 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 pat

Re: Writing (firstly) simple application for Android with Clojure

2017-03-12 Thread Cecil Westerhof
7;-( >> Thanks for replying anyway. :-D >> I am going to evaluate you suggestions. >> > -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.

Re: Writing (firstly) simple application for Android with Clojure

2017-03-12 Thread Cecil Westerhof
)76 303 4477 <+41%2076%20303%2044%2077> cell > skype: ariamedia > > On Sun, Mar 12, 2017 at 7:52 PM, Cecil Westerhof > wrote: > >> I have little experience with Clojure and none with Android programming. >> Is it feasible to use Clojure to write applications for Android?

Writing (firstly) simple application for Android with Clojure

2017-03-12 Thread Cecil Westerhof
I have little experience with Clojure and none with Android programming. Is it feasible to use Clojure to write applications for Android? Or is it better to start programming in Java and when I have some experience with Android applications to switch to Clojure? -- Cecil Westerhof -- You

Re: Source Code for Stuart Halloway's ETL Talk

2017-03-10 Thread Cecil Westerhof
2017-03-11 4:00 GMT+01:00 Alex Miller : > Sorry, I don't have any control over the page - that's the publisher. > ​I hope they read this list. ;-) ​ ​I have a busy weekend. I'll give them a heads-up after the weekend. -- Cecil Westerhof -- You received this me

Re: Source Code for Stuart Halloway's ETL Talk

2017-03-10 Thread Cecil Westerhof
that want you to activate a lot more. Those I do not use anymore.) But it directs you to the page ‘no_js’, so a refresh after activating JavaScript does not work. Personally I find this a design flaw. If you really want another page, you could include the link to the original page. -- Cecil W

Re: Trying to make an uberjar

2017-03-04 Thread Cecil Westerhof
ou'd want it is to AOT that > namespace outside of the uberjar profile. That's up to you, but typically > not a concern. > ​Thank you. I thought so, but it is better to be sure. -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups "Clo

Re: Trying to make an uberjar

2017-03-04 Thread Cecil Westerhof
2017-03-04 8:13 GMT+01:00 Jeaye : > On Sat, Mar 04, 2017 at 08:09:39AM +0100, Cecil Westerhof wrote: > > 2017-03-04 7:44 GMT+01:00 Jeaye : > > > > > Cecil, > > > > > > > But when running: > > > > lein uberjar > > >

Re: Trying to make an uberjar

2017-03-03 Thread Cecil Westerhof
namespace, you should add > a (:gen-class). Example: > > ```clojure > (ns quotes.core > (:gen-class)) > ``` > ​That was what was needed. Thanks. And I could remove the added: :profiles { :uberjar {:aot :all} } -- Cecil Westerhof -- You received this message because

Trying to make an uberjar

2017-03-03 Thread Cecil Westerhof
be executable as expected. A gen-class directive may be missing in the namespace which contains the main method, or the namespace has not been AOT-compiled. Created /home/cecil/Clojure/Quotes/target/quotes-0.0.1.jar Created /home/cecil/Clojure/Quotes/target/quotes-0.0.1-standalone.jar What do I need t

Re: Prgram uses a lot of swap

2017-03-01 Thread Cecil Westerhof
be less. At the moment it is 320 MB, but it can be probably be even less. But I let it first run for at least a week to see if it is going to use swap. -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: Prgram uses a lot of swap

2017-02-27 Thread Cecil Westerhof
program. > ​What is the best way to determine the right value for this? I remember that in the past I had a lot of little Java​ ​programs running and got a much better performance by limiting memory usage. -- Cecil Westerhof -- You received this message because you are subscribed to the Go

Re: Prgram uses a lot of swap

2017-02-27 Thread Cecil Westerhof
the grep. And in the project.clj I removed the ^:replace. By the way why is the value of profiles.clj taken instead of project.clj? I would expect that the profiles.clj value only would be used when there is no value in project.clj. -- Cecil Westerhof -- You received this message because you

Re: Prgram uses a lot of swap

2017-02-27 Thread Cecil Westerhof
2017-02-27 13:57 GMT+01:00 Cecil Westerhof : > Maybe you have some other conflicting configuration somewhere that sets it >> explicitly to 4G? Usually no maximum is set and the JVM will automatically >> adjust it based on your system. >> > > ​Not that I know of, bu

Re: Prgram uses a lot of swap

2017-02-27 Thread Cecil Westerhof
s it > explicitly to 4G? Usually no maximum is set and the JVM will automatically > adjust it based on your system. > ​Not that I know of, but I will try to find it out. > On Sunday, February 26, 2017 at 10:14:22 PM UTC+1, Cecil Westerhof wrote: >> >> 2017-02-26 21:59 GM

Re: Prgram uses a lot of swap

2017-02-26 Thread Cecil Westerhof
2017-02-26 21:59 GMT+01:00 Cecil Westerhof : > To control the memory you can add :jvm-opts ["-Xmx512m"] to your >> project.clj. It will set the max memory of the JVM to 512mb which should be >> enough for your program. >> > > ​Did not work either, but at th

Re: Prgram uses a lot of swap

2017-02-26 Thread Cecil Westerhof
dive in these things. ​ > On Saturday, February 25, 2017 at 11:41:03 AM UTC+1, Cecil Westerhof wrote: > >> 2017-02-24 15:07 GMT+01:00 Timothy Baldridge : >> >>> What are the JVM memory settings set at? And how much physical memory >>> does the box have? >

Re: Prgram uses a lot of swap

2017-02-25 Thread Cecil Westerhof
-Xmx4096M-Dclojure.compile.path=/home/cecil/Clojure/Quotes/target/classes-Dquotes.version=0.0.1-Dclojure.debug=falseclojure.main-i/tmp/form-init417092364626579473.clj ​So maximum memory is set to 4 GB. That could probably be a lot less.​ Where can I change that? And can I set the maximum memory for lein?

Prgram uses a lot of swap

2017-02-24 Thread Cecil Westerhof
107 MB of swap. And my own program uses 135 MB of swap. I find this a ‘bit’ excessive. What could be the problem? I am using openSUSE and leiningen 2.6.1. -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: Setting the font size

2016-10-06 Thread Cecil Westerhof
2016-10-06 14:33 GMT+02:00 Sanel Zukan : > Cecil Westerhof writes: >> I saw that I already had: >> (use 'seesaw.core) >> and called: >> (invoke-later >> >> So I changed your call also into (invoke-later. Is this OK, or is >> there a reas

Re: Setting the font size

2016-10-06 Thread Cecil Westerhof
2016-10-06 12:08 GMT+02:00 Sanel Zukan : > Cecil Westerhof writes: >> Two points: >> When using: >> (seesaw/invoke-later >> I get: >> Exception in thread "main" java.lang.RuntimeException: No such >> namespace: seesaw >> &g

Re: Setting the font size

2016-10-06 Thread Cecil Westerhof
(seesaw/invoke-later >(set-font "Sans Serif" 11) >(seesaw/show! ))) Thanks that works. I should put it always on my high-resolution screen then. Two points: When using: (seesaw/invoke-later I get: Exception in thread "main" java.lang.RuntimeException: No

Setting the font size

2016-10-05 Thread Cecil Westerhof
. I now have amiddle and high resolution screen. It would be nice if when I put things on the other monitor, the fonts would scale. -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloj

Displaying functions generated for the REPL

2016-07-23 Thread Cecil Westerhof
this print. Is there a way to generate this list? I probably lose the parameters, but for a long list of functions this could be handy. -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send emai

Re: How to work with photos in Clojure

2016-07-19 Thread Cecil Westerhof
2016-07-19 11:19 GMT+02:00 Cecil Westerhof : > 2016-07-19 10:49 GMT+02:00 Cecil Westerhof : > >> 2016-07-19 10:23 GMT+02:00 Miguel Ping : >> >>> If you want to learn clojure by image processing, thats fine, but if >>> your goal is to do the image process

Re: How to work with photos in Clojure

2016-07-19 Thread Cecil Westerhof
2016-07-19 9:26 GMT+02:00 Cecil Westerhof : > > My pictures have a dimension of 5,184x3,456 and I need to make a crop of > 1.080x1.080. This is a little to big for my screen. So I am thinking about > dividing everything by 8. > > I need to know two things: > - How would I dis

Re: How to work with photos in Clojure

2016-07-19 Thread Cecil Westerhof
m/loudmoauth > and here is an example using the library with instagram among other APIs > > https://github.com/blmstrm/loudmoauth-examples/blob/master/src/loudmoauth_examples/core.clj > ​Thank you. I will look into it. ​ > Den 19 juli 2016 4:26 em skrev "Cecil Westerhof&qu

Re: How to work with photos in Clojure

2016-07-19 Thread Cecil Westerhof
2016-07-19 10:49 GMT+02:00 Cecil Westerhof : > 2016-07-19 10:23 GMT+02:00 Miguel Ping : > >> If you want to learn clojure by image processing, thats fine, but if your >> goal is to do the image processing part rather sooner than later, I >> recommend using an external

Re: How to work with photos in Clojure

2016-07-19 Thread Cecil Westerhof
easy to consume those service's > APIs via clojure. > ​I will look into it. But first my crop program. ;-) > On Tuesday, July 19, 2016 at 8:26:15 AM UTC+1, Cecil Westerhof wrote: >> >> It never hurts to combine things. I just started again with Clojure and I >> starte

How to work with photos in Clojure

2016-07-19 Thread Cecil Westerhof
Twitter? -- Cecil Westerhof -- 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 unsubscribe

Good Open Source project to learn Clojure

2016-07-15 Thread Cecil Westerhof
challenging enough to continue. I would not like to come, learn and go away. ;-) -- Cecil Westerhof -- 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 m

Re: Running a certain function of your project

2016-07-15 Thread Cecil Westerhof
2016-07-15 10:54 GMT+02:00 Erik Assum : > It's coming to Linux as well. > ​I will keep an eye out then. :-) ​ > > Den 15. jul. 2016 kl. 10.41 skrev Cecil Westerhof < > cldwester...@gmail.com>: > > > > I myself are on Linux, but maybe interesting fo

Re: Running a certain function of your project

2016-07-15 Thread Cecil Westerhof
lf are on Linux, but maybe interesting for someone else. > Den 14. jul. 2016 kl. 23.15 skrev Cecil Westerhof >: > > In my project I have some functions I use when calling ‘lein repl’ in the > project directory. Would it be possible to use just that function? So use > lein to

Re: Error when upgrading yesql from 0.4.2 to 0.5.0

2016-07-15 Thread Cecil Westerhof
ent=safari > > > > And, yes, a LOT of API changes… > ​It was luckily a simple project. Everything has been updated. :-D -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email t

Re: Error when upgrading yesql from 0.4.2 to 0.5.0

2016-07-14 Thread Cecil Westerhof
gt; > > It looks like 0.5.0 was a pretty major rewrite with a lot of API changes. > ​I got it figured out what to do (the link to Migration Guide does not work), but that makes for a pretty big overhaul of my code. :'-( > On 7/14/16, 2:47 PM, "Cecil Westerhof" behalf of cl

Error when upgrading yesql from 0.4.2 to 0.5.0

2016-07-14 Thread Cecil Westerhof
ening here? -- Cecil Westerhof -- 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 unsubs

Re: Running a certain function of your project

2016-07-14 Thread Cecil Westerhof
2016-07-14 23:18 GMT+02:00 Gary Trakhman : > Boot <https://github.com/boot-clj/boot/wiki/Scripts> and inlein > <http://inlein.org/> are both more suitable for one-off scripts. > ​OK, I will look into them.​ > On Thu, Jul 14, 2016 at 5:16 PM Cecil Westerhof > wrote

Running a certain function of your project

2016-07-14 Thread Cecil Westerhof
In my project I have some functions I use when calling ‘lein repl’ in the project directory. Would it be possible to use just that function? So use lein to call this function and return? Maybe not very useful because of the time it takes to start the JVM, but I like to experiment. ;-) -- Cecil

Re: lein repl and own functions

2016-07-14 Thread Cecil Westerhof
, not for projects. I could make a dummy project and always do lein repl there, but I find that a bit of a bother. I will look into it. > ​ > > On Thu, Jul 14, 2016 at 11:50 AM, Cecil Westerhof > wrote: > >> >> 2016-07-14 18:18 GMT+02:00 Timothy Baldridge : >>

Re: Use latest stable

2016-07-14 Thread Cecil Westerhof
s easy to update project.clj > ​Yes, in another tread I was pointed to that. Very handy indeed. I could write a script that I run every week in crontab that would notify me when something is to old. Have to take care of a few things: - Latest of H2 is 1.4.192, but latest stable is 1.3.176. - La

Re: Use latest stable

2016-07-14 Thread Cecil Westerhof
2016-07-14 18:38 GMT+02:00 Sean Corfield : > Toby gave you a good answer re “LATEST” and “RELEASE” but I’ll comment on > stability of Clojure Alpha builds in general: > > > > We first went to production with Clojure in 2011 on 1.3.0 Alpha 7 (or 8, I > no longer remember which). We’re currently in

Re: lein repl and own functions

2016-07-14 Thread Cecil Westerhof
4, 2016 at 7:52 AM, Cecil Westerhof > wrote: > >> When I first worked with Clojure I used a Bash script with had: >> rlwrap java -cp "${CP}" clojure.main --init "${CLOJURE_INIT}" --repl >> >> In this way I had several of my own functions in the R

Re: Notification about newer versions

2016-07-14 Thread Cecil Westerhof
especially show-versions handy. -- Cecil Westerhof -- 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 fi

lein repl and own functions

2016-07-14 Thread Cecil Westerhof
e a method to get my own functions also included when using ‘lein repl’? -- Cecil Westerhof -- 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

Re: Notification about newer versions

2016-07-14 Thread Cecil Westerhof
2016-07-14 15:00 GMT+02:00 Cecil Westerhof : > It says you can check your profile also: > ancientCheck your projects and profiles for outdated > dependencies/plugins. > > But that is not true: if I run it in a not project directory, I get: > (warn) not inside of a project.

Re: Notification about newer versions

2016-07-14 Thread Cecil Westerhof
: if I run it in a not project directory, I get: (warn) not inside of a project. On Thu, Jul 14, 2016 at 6:56 AM, Cecil Westerhof > wrote: > > In a project.clj I have: > > :dependencies [[org.clojure/clojure"1.8.0"] > > [

Notification about newer versions

2016-07-14 Thread Cecil Westerhof
ng team, but I think it a good idea (most of the time) to upgrade to a newer version when that is possible. -- Cecil Westerhof -- 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 Not

Use latest stable

2016-07-14 Thread Cecil Westerhof
ant to use that one. -- Cecil Westerhof -- 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.

Re: Use latest Clojure with lein repl

2016-07-13 Thread Cecil Westerhof
^:displace [org.clojure/clojure "1.4.0"] ] } } And that worked. I only used 1.4.0 to be sure that it worked. I put i​t back to 1.8.0. -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gro

Re: Problem upgrading from 1.6.0 to 1.8.0

2016-07-13 Thread Cecil Westerhof
2016-07-13 16:21 GMT+02:00 James Reeves : > You'll need to update your version of Instaparse as well. > ​I added: [instaparse "1.4.2"]​ and problem solved. -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups "Cloju

Re: Use latest Clojure with lein repl

2016-07-13 Thread Cecil Westerhof
2016-07-13 14:44 GMT+02:00 John Szakmeister : > On Wed, Jul 13, 2016 at 7:20 AM, Cecil Westerhof > wrote: > > After a long time I want to start with Clojure again. As I understand > it, it > > is best to use: > > lein repl > > > > But then I work wit

Problem upgrading from 1.6.0 to 1.8.0

2016-07-13 Thread Cecil Westerhof
lojure"LATEST"] it wants to work with: clojure-1.9.0-alpha10 -- Cecil Westerhof -- 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 m

Use latest Clojure with lein repl

2016-07-13 Thread Cecil Westerhof
After a long time I want to start with Clojure again. As I understand it, it is best to use: lein repl But then I work with 1.5.1. Is there a way to work default with the latest stable version of Clojure? -- Cecil Westerhof -- You received this message because you are subscribed to the

Re: Better outputs produced by the REPL

2015-03-12 Thread Cecil Westerhof
o not ask me why.) -- Cecil Westerhof -- 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: Adding directory to classpath in leiningen

2015-03-12 Thread Cecil Westerhof
could use (soft) links, but I was just wondering if it would be possible to extend the classpath. By the way: I moved them to: ~/Clojure/repl that is a better place I think. > On Thu, Mar 12, 2015 at 9:10 AM, Cecil Westerhof > wrote: > >> I have some files in: >>

Adding directory to classpath in leiningen

2015-03-12 Thread Cecil Westerhof
I have some files in: ~/Clojure that I want to use in a project I start with: lein repl But I do not see how to do this. How can I acomplish this? -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Would it be better to move future to the called function

2015-03-02 Thread Cecil Westerhof
tes db-spec I was wondering if this could be done better? Now every function calling info-table needs to call future, because the call to generate the sequence can take some time. The parameters of the different functions to generate the sequences are not the same. -- Cecil Westerhof -- Yo

Re: Breaking out of a sequence

2015-03-01 Thread Cecil Westerhof
) I must say I like Clojure. It is a bit different and I need to get used to it, but it looks like when I am proficient in it, my productivity will be quit a bit higher. ​ > On 1 Mar 2015 10:30, "Cecil Westerhof" wrote: > >> I have a program where I change a lot of records ba

Breaking out of a sequence

2015-03-01 Thread Cecil Westerhof
I have a program where I change a lot of records based on id's in a sequence. It is a manual process, so I want to give the user an option to terminate the sequence. What would be the correct way to stop (for example) a doseq? -- Cecil Westerhof -- You received this message because yo

Re: :reload does not always work correctly in leiningen

2015-02-28 Thread Cecil Westerhof
would know that something was broken. For the moment I think it was a gremlin and not a real problem. On Saturday, February 28, 2015 at 9:25:56 AM UTC-5, Cecil Westerhof wrote: > >> I discovered: >> (require 'project.core :reload) >> >> Very handy indeed a

Re: Is this the right way to prevent repetitive code

2015-02-28 Thread Cecil Westerhof
2015-02-28 16:51 GMT+01:00 Marc Limotte : > You might wonder how to get 'i' if you remove the dotimes. Here is one > way: > > (doall > (map-indexed > (fn [i [description f]] > ...) > search-fields)) > ​Done, see other reply. -- Cecil Wes

Re: Is this the right way to prevent repetitive code

2015-02-28 Thread Cecil Westerhof
es Begin (Case Independent)" > show-search-quotes-begin] > ["Search Quotes End (Case Independent)" > show-search-quotes-end] > ["Search Quotes Java Regular Expression" > show-search-quotes-java-regex] > ["Search Quotes Jav

:reload does not always work correctly in leiningen

2015-02-28 Thread Cecil Westerhof
I discovered: (require 'project.core :reload) Very handy indeed and a big time saver. But it does not always work correctly. At a certain moment I got strange results. An exit and a new 'lein repl' solved the problems. -- Cecil Westerhof -- You received this message

Is this the right way to prevent repetitive code

2015-02-28 Thread Cecil Westerhof
(function search-str ] Is that the correct way, or can it be done better? -- Cecil Westerhof -- 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 tha

Re: printf does not always generate output

2015-02-27 Thread Cecil Westerhof
2015-02-27 22:47 GMT+01:00 Sam Raker : > I have > https://jafingerhut.github.io/cheatsheet/grimoire/cheatsheet-tiptip-cdocs-summary.html > bookmarked and also like basically always open in a tab forever, fwiw. > ​Also good information. ​ -- Cecil Westerhof -- You received

Re: printf does not always generate output

2015-02-27 Thread Cecil Westerhof
his case, it does: > > http://clojuredocs.org/clojure.core/printf > ​That is certainly a place I should look more often. :-) A wealth of information. On Fri, Feb 27, 2015 at 11:12 AM, Cecil Westerhof > wrote: > >> My core.clj ends with: >> (println (format

Re: Is it possible to determine that I did a 'lein repl'

2015-02-27 Thread Cecil Westerhof
2015-02-27 21:10 GMT+01:00 Sean Corfield : > On Feb 27, 2015, at 6:56 AM, Cecil Westerhof > wrote: > > Caused by: java.lang.RuntimeException: Unable to resolve symbol: jvm-opts > in this context, compiling:(/home/cecil/Clojure/quotes/project.clj:9:38) > > > Right, as I sa

printf does not always generate output

2015-02-27 Thread Cecil Westerhof
both are shown. Also when I do 'lein run' both are shown. What could be happening here? For the moment I changed all my printf to println with format, but it is a little annoying. -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups &quo

Re: Reflection warning on setCaretPosition

2015-02-27 Thread Cecil Westerhof
he places I have now: ^JLabel (text … lein check gives no warning, neither does lein compile. And lein run just runs the application. Is that not strange? I say that a JTextField is a JLabel, but the application does not choke on it.​ -- Cecil Westerhof -- You received this message becaus

Re: Reflection warning on setCaretPosition

2015-02-27 Thread Cecil Westerhof
he :text option. ​ > or use config: > > (config! editor-pane :caret-position 0) > > On Fri, Feb 27, 2015 at 4:07 AM, Cecil Westerhof > wrote: > >> >> 2015-02-27 11:34 GMT+01:00 Gary Verhaegen : >> >>> It means the Clojure compiler cannot emit the effic

Re: Is it possible to determine that I did a 'lein repl'

2015-02-27 Thread Cecil Westerhof
2015-02-27 15:56 GMT+01:00 Cecil Westerhof : > 2015-02-27 14:29 GMT+01:00 Sean Corfield : > >> On Feb 27, 2015, at 12:09 AM, Cecil Westerhof >> wrote: >> >> In my application I have a quit button which does: >> (System/exit 0) >> >> But when I

Re: Is it possible to determine that I did a 'lein repl'

2015-02-27 Thread Cecil Westerhof
2015-02-27 14:29 GMT+01:00 Sean Corfield : > On Feb 27, 2015, at 12:09 AM, Cecil Westerhof > wrote: > > In my application I have a quit button which does: > (System/exit 0) > > But when I used 'lein repl' I do not want to exit, but just close the > frame.

Re: Is it possible to determine that I did a 'lein repl'

2015-02-27 Thread Cecil Westerhof
e, but not when I called it from the REPL, then I should just close the window. So that if I could see it was called from the REPL then I could only close and not exit. I could set a variable before I call -main, but I would prefer it when I did not need to. ;-) ​​ -- Cecil Westerhof -- You recei

Re: Reflection warning on setCaretPosition

2015-02-27 Thread Cecil Westerhof
ml-start html-records html-end)) ] (.setCaretPosition html-table 0) So html-table is a JEditorPane. Should Clojure not be able to determine that? Just to satisfy my curiosity

Re: Is it possible to determine that I did a 'lein repl'

2015-02-27 Thread Cecil Westerhof
o System.exit() attempted"); > // note: there is no call to proceed() > } > > > } > ​How would I implement this in Clojure? -- ​​ Cecil Westerhof -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Reflection warning on setCaretPosition

2015-02-27 Thread Cecil Westerhof
? By the way, I get also some on jdbc and seesaw.​ -- Cecil Westerhof -- 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 pa

  1   2   3   >