Fork me on GitHub

well, Hikari is installed


but same issues as before


seems like it’s just a migratus thing


I can access the db just fine with, say, yesql


i don’t understand why lein takes so long to start — seemingly non-determinstically


and sometimes crashes, but re-running works fine, even in pretty small, uninteresting projects


lein repl may fail after 40 seconds, or it may launch in 2, or it may just take 30 to start and not fail…. why? i’m fine with even 10 seconds, as long as it’s more consistent and reliable


@bbloom: never seen that happen... I grumble that Leiningen is slow to start up some projects sometimes but it's very consistent for me. If a project works, it always works, and always takes about the same time to start up.


Is that on a specific platform? Any pattern to projects that are problematic?


bbloom: Do you have any SNAPSHOT versions in ~/.lein?


bbloom: It might be doing a bunch of IO, talking to Clojars simple_smile


@bbloom: sounds like network issues


@lvh no snapshots anywhere


can i just blanket disable network IO outside of lein deps calls?


anyone have a snippet for testing for the existence of a resource file in a jar?


everything’s wonderful when working with files on disk, and then the physics of the universe change when you compile to .jar 😐


@cfleming: can cursive also display missing namespaces, for example, when I delete a whole file, I get warnings from places where it was used?


@borkdude: Yeah, you’ll get unresolved symbol warnings for the symbols that were in that namespace


@cfleming: Can I view those for the whole project, without first opening the files?


@borkdude: Ummm…. no, I don’t think so. That would be very nice, though. Issue welcome!


@borkdude: In general, it seems like you’d want to be able to see all usages of elements from a namespace before you deleted it, i.e. you actually want a safe delete of a namespace.


With a preview of the existing usages, if any.


in my case, I'm stripping an old project because I want to use it as a template for a new project


and I have to re-run lein repl all the time to discover new errors


I see. Is it correct that what you probably need is a safe delete of a whole ns?


i.e. you’d want to be able to try to delete a namespace and see where the problems with that are?


or after the fact, both is good


a red curl under the filename to indicate there are warnings inside that file, like Eclipse has and also on the parent directories, would be good


something like that


this is one of the things where Clojure is harder to manage than Java


at least in most IDEs simple_smile


@borkdude: Yeah, the error marker in the file would be good, I’ll have to investigate how to do that.


So I'm planning to make a site which is mainly a SPA, but probably with the usual forest of admin pages done in a traditional HTML forms style. My first thought was to use Rails, just because gems like Devise and Upmin autogenerate all the tricky auth and admin pages. I'm not quite ready to rule out Clojure, though. What do I gain/lose by using, say, Luminus? (Is Luminus still the state of the art?) Rails or not, I'm using ClojureScript for the SPA part.


@amacdougall: I've made a similar site, but I found it easier to implement everything, including admin pages, etc, in Reagent (ClojureScript wrapper for React). Sooner or later you'll want to do some javascript on such a page anyway.


A while ago, I experimented with using Liberator to do a pure REST API, but setting up authentication via Friend using only API requests seemed possible, but not documented or supported. If nothing else, I'd want to use a framework that takes some of those concerns out of my hands. I know enough about website security to know that it's better to use a well-respected library!


So if nothing else, I'd really like a turnkey solution for authentication/security, so I'm not stressing about CSRF and whatnot.


Hi all, I want a middleware to do request logging (ala what nginx would provide) I found this? _ (pprint long)


any others that I should look at?


@stuartsierra: yes.. something with AOT probably.. the thing is that I managed to resolve this (by including the sources in the uberjar, and AOT compiling only the entry point ns IIRC) in very similarly built projects in both 1.6 and 1.7.. not sure why it doesn't help this time. also using lein not boot.


@amacdougall: take a look at ring-defaults


Oh, thanks! That looks really informative.


Yeah, I'm going through the Luminus tutorial right now. It looks like pretty much what I was looking for: a set of "sensible defaults" to show a beginner how to get off the ground with Clojure's various webapp-related libraries.


@amacdougall: I haven’t used it and likely overkill - but I just ran across


Whoa. Definitely overkill for my case, but really interesting.


Mentioned along with Parse and Firebase here :


Yeah, it looked like it fit into the same category as Parse. Since I'm making a small side project for my own education, though, it makes more sense for me to use Luminus and really see how everything is laid out.


Hi all, Im using buddy to do authentication and authorization. I have a split SPA and server side app. And so have two types of endpoints, one set are returning html to render and the others are doing REST/json.


Because of this, if there is a 401 in the API I want to return a 401 and the javascript will handle the redirect. When Its a html page I need to have it redirect on its own.


Is there a way to get buddy to have two unauthorized-handlers?


@donmullen: Last time I tried this (like a year ago), I tried Liberator, and I couldn't quite figure out how to authenticate, store login status in the session/cookie, etc. On the other hand, I really liked its programming model.


I want to make a very short/quick and simple proof of concept to connect to a mysql db. It will need to insert new users who register thru a website, and verify their logins. What could I use? Should I go with strictly cljs instead of normal clj? I intend to do more with it later, but I just need something thrown together by tomorrow afternoon to show what it will basically look like.


Where's everyone hosting their clojure systems?




I think people are shying away from Heroku due to price and limitations of free tier, and Google AppEngine has issues with startup time IIRC


Im hoping to use google app engine


@redbeardymcgee: Making a website which authenticates users against a mysql database is not terribly hard, but if you aren't already familiar with the Clojure web dev ecosystem, you might not get your proof of concept in a day. Do you know how to do this in another language, or is this your first experience?


If the choice of language doesn't matter, and you're a beginner, and you absolutely have to be up and running in a day, I suggest using a more popular language, where you can find dozens of bulletproof walkthroughs.


If it's got to be Clojure, I guess you could do what I'm doing right now and use Luminus! Just be ready to figure out on your own how to hook up mysql, etc. For the specific things you mentioned, I don't expect you to need ClojureScript.


amacdougall: yes i'm not intimately familiar with anything beyond bash/sh but i grok fundamentals and i'm very attracted to lisp/fp.


@redbeardymcgee: Well, give Luminus a shot! I'm doing the tutorial and sample app right now, and it seems pretty reasonable. Luminus isn't a framework, exactly; more like a generator for a pre-built template that represents a known-good configuration of libraries. If you're new to the whole game, though, just be warned that web dev requires at least passing knowledge of a lot of stuff, so it might take a while to gear up mentally.