This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-06-04
Channels
does anyone know of a clojure/java equivalent to this : https://github.com/jimbojsb/emogrify (inline css into html for emails)
@cmdrdats: i don’t, but tweet it and i’ll RT
@robert-stuttaford: thanks - done
have you checked the api ref for http://clojure.java.io, stephen?
@robert-stuttaford: Yeah. I can't find much there..
i believe you use .exists on a File object to check for existence
also, there’s always regex
Ah yes.. I've been here before. There is getPath but this returns the filename as well.
@stephen: You can’t tell which part is or isn’t a directory without asking the filesystem
Not really. What is the directory of “/tmp"
I would have thought if that was passed to the File object it could assume tmp would be the filename - / would be the directory.
@stephen: But that’s not really true. / is the parent, sure but "tmp" is the filename and it is a directory (on my system). You can’t really be sure unless you ask the filesystem.
Which, if the parent is what you need, (.getParent file)
will give it to you.
A directory is a file on *nix
Well, yeah, loosely speaking
any pedestal users around?
@robert-stuttaford: I likely will be one in a month or two
i’ve come right
their docs really need work 😐
yeah. a sample got me out of the trouble i was in
i think if all they did was remove all the no-longer-relevant stuff, that’d be a big step forward
thanks for sharing that
wasn’t aware of http://pedestal.github.io/pedestal/
Do you guys ever use emmet to make hiccup with "|hic" https://news.ycombinator.com/item?id=9657879 [disclaimer: emacs only afaik]
What’s the general consensus on .m2/repository maintenance? I’ve been burning it down every month or so just to, uh, decruftify it.
i’ve never touched it
only 902mb
the _maven.repositories
file sometimes causes really hard to debug dependency resolution errors
this only is a problem if you use different repos that might contain the same coordinates
akiva: if you don't use lein install (and deploy to repos instead) burning down m2 isn't really called for
stephan: for creating the directory a file needs, there's (.mkdirs f) which creates all directories a given file needs