Fork me on GitHub
#clojure
<
2016-05-01
>
thiagofm08:05:25

Is there any nice way of parsing a file path in clojure/java?

thiagofm08:05:55

such as a/b/c.jpg, being c.jpg the file name

thiagofm09:05:15

Okay. .getName on a java.io.file simple_smile

niwinz09:05:39

@thiagofm: apache commons io

thiagofm09:05:04

@niwinz: how can I import it? simple_smile (import org.apache.commons.io.FilenameUtils) won't do

thiagofm09:05:31

@niwinz: found it. It's a dep. Thought it was included in java

thiagofm09:05:28

Thanks a lot

thiagofm12:05:52

@curtis.summers: I'll refactor it later and add it as a dependency -- looks good! I already use conch(also from Raynes)

risto14:05:00

The routing step, git checkout step3, fails with string.cljs:38 Uncaught Invalid match arg: /^#/ when going to localhost:5050

risto14:05:05

Or am I doing something wrong?

leov18:05:55

Hi all! Quick Figwheel question - (defonce whatever* (.log js/console "DEFONCE DOES NOT WORK!!!")) prints all the time I save the files and they get reloaded. What am I doing wrong?

darwin18:05:58

@leov you should ask in #C03S1L9DN or better in #C0B22RS2Y

niwinz18:05:39

@leov is because log returns nil (or undefined) and it seems that defonce expects something different, I found the same issue and just fixed returning a proper value:

niwinz18:05:03

(defonce whatever* (do (.log js/console "DEFONCE DOES NOT WORK!!!") true))

leov19:05:49

@niwinz omg you saved me. 1000x thanks.

adamkowalski23:05:47

is there a slack channel or a gitter channel for https://github.com/funcool/catacumba?

juliobarros23:05:20

@adamkowalski: … there is a #C093UFM4M channel if that helps.

adamkowalski23:05:28

awesome thanks!