This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-27
Channels
- # beginners (34)
- # boot (15)
- # cider (7)
- # cljs-dev (7)
- # cljsjs (2)
- # cljsrn (46)
- # clojure (130)
- # clojure-argentina (1)
- # clojure-colombia (2)
- # clojure-greece (1)
- # clojure-italy (53)
- # clojure-losangeles (1)
- # clojure-russia (15)
- # clojure-spec (8)
- # clojure-uk (100)
- # clojurescript (117)
- # core-matrix (1)
- # cursive (24)
- # datomic (41)
- # duct (1)
- # emacs (11)
- # fulcro (22)
- # graphql (4)
- # hoplon (3)
- # jobs (1)
- # lein-figwheel (3)
- # luminus (18)
- # lumo (52)
- # off-topic (57)
- # pedestal (2)
- # planck (12)
- # re-frame (22)
- # remote-jobs (1)
- # ring-swagger (6)
- # rum (7)
- # shadow-cljs (13)
- # yada (19)
I hear everyone hiring in Clojure comment that they train up most of their devs & have no issues.
what's the going salary for a clojure programmer who's given multiple talks at clojure conj / clojure west ?
Any simple solution (as in the simplest solution that could possibly work) to prepending uuids/asset-ids to index.html for production?
<script src="js/bundle.js"></script>
should become
<script src="a3664ad7-50df-450a-b772-2d67e0c37943/js/bundle.js"></script>
and similarly for css files?@pesterhazy is this for caching?
@dominicm It is for caching, but I prefer prepending an asset-id as a directory. So you can upload each version to an S3 bucket in your CI job and not worry about clobbering old files - each asset-bundle is immutable and neatly separated.
I see. I guess your CI job will need to generate an edn file which contains the hashes of files, and whatever you use to generate your html will need to read that file.
hm I'm actually not planning to hash each file - I just assign a hash for each bundle/build
makes things a bit simpler - people will have to redownload everything for each release though
right but how do I patch it into index.html? It's a static file
yeah it will be generated on CI - but mustache doesn't seem like the simplest possible thing
I was thinking something like this
<script src="js/bundle.js"></script> <!-- FINGERPRINT_REPLACE: s/js\//$ENV{ASSET_ID}\/js\// -->
exactly ๐
where what follows FINGERPRINT_REPLACE is a perl expression ๐
is that valid html?
comments inside of strings
I mean, it doesn't have to be a comment, could also be $$$FINGERPRINT_SENTINEL$$$
, just has to be a string you won't use under normal circumstances in the html
but then it doesn't work for local development anymore
hmm comments insides strings are not valid
I'd prefer to have no preprocessing step for dev use
but I realize my requirements are becoming esoteric here ๐
> Error: Bad value <!-- comment -->js/bundle.js for attribute src on element script: Illegal character in path segment: < is not allowed.
Depending on your dev setup, with/without preprocessing step is easier/harder. We generate a version.cljc via boot, and it works fine in dev/prod without thinking just by design (there's no special case or anything).
yeah boot is not a bad solution, but I'm going to try the minimalist approach
when I say "via" I mean "as part of", I am perhaps not grasping the full breadth of your constraints though ๐
@dominicm seems to work fine ๐ https://gist.github.com/pesterhazy/e59d8c5e863fc45d7317c6dc99c994e4
I didn't expect the s:โฆ:
to be so easy ๐. Perl is obviously greater than I have respect for.
perl is still unmatched (ha!) for regex
I have an RGB buffered image. I'm interested in adding noise to it: * salt & peper noise * gaussian noise * camera distortion effects What's a good existing java library to do all this for me?
processing has a lot of good functionality (and you donโt have to use itโs beginner friendly DSL)
@noisesmith: https://processing.org/ <-- this processing ?
yeah - itโs meant to be a beginner friendly environment for multimedia, but under all that thereโs a java lib with good image manipulation functionality (among a bunch of other things)
also, can some admin remove the default/auto "include snippet of url inline" feature? I feel like I've always clicked the X and never thought "gee, I really wish it'd include an inline snippet" (though if others actually like this feature, keeping it as is would be reasonable)
yeah, I've always viewed processing as "generative art" -- but the existence of an underlying image processing lib makes sense
@qqq Not sure what feature you're talking about there?
@seancorfield: in the above example, it auto throws in a snippet of the website
which I generally remove by clicking the X, as it conveys no new info and just clutters the chat
We can turn that off on a per domain basis -- but I suspect a lot of people find that useful. We have http://youtu.be link expansion blacklisted.
@qqq I'm sure some GitHub URLs do not add value for being expanded -- because they have well known and/or descriptive org and project names -- but there are many GitHub URLs that are pretty opaque. It might seem odd if we arbitrarily "blacklisted" expansion of those popular, well-known projects but not more obscure ones... Can't please everyone ๐