This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-06
Channels
- # adventofcode (1)
- # aleph (9)
- # announcements (22)
- # beginners (59)
- # boot (8)
- # calva (1)
- # cljdoc (7)
- # cljs-dev (10)
- # cljsrn (9)
- # clojars (10)
- # clojure (23)
- # clojure-dev (6)
- # clojure-europe (3)
- # clojure-italy (26)
- # clojure-nl (3)
- # clojure-seattle (1)
- # clojure-spec (46)
- # clojure-uk (85)
- # clojurescript (97)
- # core-async (13)
- # cursive (3)
- # data-science (10)
- # datomic (156)
- # duct (34)
- # emacs (37)
- # figwheel (3)
- # figwheel-main (9)
- # fulcro (59)
- # hyperfiddle (4)
- # immutant (1)
- # jackdaw (3)
- # jobs (1)
- # off-topic (112)
- # parinfer (1)
- # qlkit (2)
- # re-frame (1)
- # reagent (35)
- # ring-swagger (2)
- # shadow-cljs (104)
- # spacemacs (9)
- # speculative (12)
- # tools-deps (30)
- # yada (10)
Confirming isak's comment, I had to combine stderr with stdout, as follows, to get output from the shell command: /usr/bin/ffmpeg -i myfile.mpg 2>&1 | grep Duration | cut -d' ' -f4 | cut -d, -f1
Also, you should not need to shell out to a cmd.exe or bash shell to run ffmpeg, provided you pass the arguments properly to the process execute command. (much later); I added a comment to the gist as an improved version, to remove cut/split/grep/bash dependencies. (I'm still a Clojure novice, so my code is not well-formatted)
@tallpeak fyi def inside a function alters a single global value, but it's easy to move those defs into the adjacent let
but yeah, def inside any other form is very rarely what you want
I guess I liked def for testing in the repl, but should remember to reformat my code a little after my interactive testing/debugging
I use Component + tools.namespace.repl and very occasionally I encounter these spurious errors:
java.lang.IllegalArgumentException: No implementation of method: xxx of protocol: #'yyy found for class: zzz
The code is certainly right, it's simply a code loading issue
Can one fix these without a JVM restart?
Using :extend-via-metadata
and meta to implement protocols made these errors go away for me
@vlaaad hmm... trouble might arise when most of the app reloads but the the via-meta protocol implementations do not, and therefore get out of synch.
How to fill a vector like [:a :b :c]
with seperators :sep
to get this: [:a :sep :b :sep :c]
?
@alexmiller looks like http://insideclojure.org is down
It’s github pages, so not much I can do if it is
@alexmiller Do you use a SSG? If so, which one?
what’s an SSG?
Static Site Generator, like Jykell or Hugo
if I wanted to spend time on it I’d use a Clojure one like stasis (Strange Loop site is done with that) or Cryogen
for something like this, Cryogen is probably ideal
cool, thank you!