Re: Resources don't work in uberjar

2015-01-27 Thread Jeroen van Dijk
Hi Dan, Not sure if there are better options, but I know `slurp` does work on resources in jars. You could (ab)use `spit` to do the copying. HTH, Jeroen On Tue, Jan 27, 2015 at 3:24 AM, Dan Harbin wrote: > I've created a sample project at Github[1] to demonstrate the problem I'm > facing with

Re: Hi I am a new user of clojure ,I am not being able to use lein

2015-01-27 Thread Niels van Klaveren
There are some problems with the lein MSI and Chocolaty installs, because of wget/curl certificate handling on Windows. If you use lein.bat without wget or curl (you can remove wget or curl exes from the lein.bat directory), lein will default to Powershell for downloading which works as intende

[ANN] Introducing semantic-csv, a tool for higher-level CSV parsing/processing functionality

2015-01-27 Thread Christopher Small
Hi everyone I'm pleased to announce the release of [semantic-csv](https://github.com/metasoarous/semantic-csv), a humble library for working with CSV data. Existing Clojure libraries for working with CSV data ([clojure.data.csv](https://github.com/clojure/data.csv) and [clojure-csv](https://g

[ANN] Introducing semantic-csv, a tool for higher-level CSV parsing/processing functionality

2015-01-27 Thread Christopher Small
Hi everyone I’m pleased to announce the release of semantic-csv , a humble library for working with CSV data. Existing Clojure libraries for working with CSV data (clojure.data.csv and clojure-csv

Re: Resources don't work in uberjar

2015-01-27 Thread Benjamin VanRyseghem
I face something similar. The issue was that inside a jar file, a resource is not a java.io.File anymore. I could turn around using an InputStream (I was in the case I wanted to serve a resource via http-kit) If you want more info, I can point you to the code where I use it Hope it

Re: Resources don't work in uberjar

2015-01-27 Thread Dan Harbin
Ben, I would appreciate it if you'd show me the sample code. Thanks for your help, everyone! On Tuesday, January 27, 2015 at 6:28:59 AM UTC-6, Benjamin VanRyseghem wrote: > > I face something similar. > > The issue was that inside a jar file, a resource is not a java.io.File > anymore. > > I c

Re: [ANN] Introducing semantic-csv, a tool for higher-level CSV parsing/processing functionality

2015-01-27 Thread Sébastien Orban
Wow, nearly perfect timing for me - lot of csv to parse, and transform into their final destination (mostly map with correctly asserted/cast value - some with instaparse, joy of badly separated data). So, cast-with is very appreciated ! Seem to cover everything - even lazy loading so... what's

Re: Resources don't work in uberjar

2015-01-27 Thread Benjamin VanRyseghem
The code can be found here: https://github.com/teamwall/teamwall/blob/develop/src/server/teamwall/api.clj#L85 Here I used to do something like `io/as-file path-to-my-file` but it failed because it’s not resolved as a file anymore when it’s jarred Good luck, Ben On Tue, Jan 27, 2015 at 2:0

Re: Convenient memoization with destructured arguments

2015-01-27 Thread David James
Thanks for mentioning it, Rob. (I have looked at Prismatic Graph before. Putting arguments in a graph (at macro time) is a powerful idea; plumbing uses this to offer a declarative way to offer various evaluation strategies. It is nice to show off Clojure macros! In this case, it makes Clojure f

Re: Resources don't work in uberjar

2015-01-27 Thread David James
You may find value in reading this: From: http://docs.oracle.com/javase/8/docs/technotes/guides/lang/resources.html > Methods in the classes Class and ClassLoader provide a location-independent way to locate resources. On Tuesday, January 27, 2015 at 9:12:23 AM UTC-5, Benjamin VanRyseghem wrot

Re: [ClojureScript] Re: ANN: Om 0.8.6, Hello CLJSJS

2015-01-27 Thread David Nolen
I think expecting every last thing to work especially from third parties who may be wisely lagging behind is unlikely at least for the near future. I haven't kept up with Light Table and what issues it may have. Now is probably a good time to remove the Light Table centric nature of the Om tutoria

Re: Hi I am a new user of clojure ,I am not being able to use lein

2015-01-27 Thread Mark Hinshaw
Did you install with this http://leiningen-win-installer.djpowell.net/ ? This is what I used. I did have to make sure that the batch file was added to my PATH. I don't believe the installer does that, but I could be wrong (it's been a while). The bat file is located in C:/User//.lein/bin Also

Re: [ANN] Introducing semantic-csv, a tool for higher-level CSV parsing/processing functionality

2015-01-27 Thread Christopher Small
Fabulous. I'm glad you'll find it useful :-) Chris On Jan 27, 2015 6:11 AM, "Sébastien Orban" wrote: > Wow, nearly perfect timing for me - lot of csv to parse, and transform > into their final destination (mostly map with correctly asserted/cast value > - some with instaparse, joy of badly sep

Re: Resources don't work in uberjar

2015-01-27 Thread Marshall Bockrath-Vandegrift
On Monday, January 26, 2015 at 9:24:28 PM UTC-5, Dan Harbin wrote: > > > io/file > > Just delete that line. The `io/resource` function returns a URL which all the Clojure IO functions can handle just fine-as is. When running in development the URL happens to be a `file://` URL, and thus s

vertigo question

2015-01-27 Thread Ryan Waters
In working with vertigo I've found the need to parameterize the struct field I wish to examine. Unfortunately vertigo doesn't seem to like vars in its macros. For example: - - - - ;; vs is 'vertigo.structs and vc is 'vertigo.core (vs/def-typed-struct mystruct :ints (vs/array vs/uint32 10)) (def

Re: [ClojureScript] Re: ANN: Om 0.8.6, Hello CLJSJS

2015-01-27 Thread Daniel Kersten
A figwheel-based tutorial would be fantastic. I don't have an awful lot of time to convert it right now, but if nobody does before I do get time, I'll happily take a stab at it. Will likely be a month or two though. On 27 January 2015 at 16:24, David Nolen wrote: > I think expecting every last

Re: ANN: Om 0.8.6, Hello CLJSJS

2015-01-27 Thread David Nolen
Just released Om 0.8.7. The only change was bumping the cljsjs.react dependency to get proper externs support. David On Mon, Jan 26, 2015 at 7:57 PM, David Nolen wrote: > The only significant change is that Om now relies on the cljsjs.react > artifact instead of the one I maintained myself. clj

alternatives to component (like) systems

2015-01-27 Thread Huey Petersen
Hello, I just started writing my first non-toy clojure program and I'm curious how people handle global resources without component (or component like) systems. I plan to make use of component but I'm trying to add new concepts one by one. As an example I have a scheduler (quartzile): (def s

Clojurescript :advanced compilation extern only partly working.

2015-01-27 Thread Crispin Wellington
Hi there, I have been trying to compile some audio code in clojurescript in advanced mode. I have setup the w3c_audio.js extern (from: http://closureplease.com/externs/) into my extern list. When I compile, it prevents the munging of "AudioContext" (without the extern, this is being munged, so

alternatives to component (like) systems

2015-01-27 Thread Mike Haney
I can say from experience that it's quite a bit easier to use component from the beginning than to retrofit it, plus it solves the problem of controlling startup order quite nicely (among others). If you're planning on using component anyway, you might as well bite the bullet and start with it