This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-06-23
Channels
- # admin-announcements (11)
- # announcements (1)
- # beginners (80)
- # boot (152)
- # cider (22)
- # clojure (141)
- # clojure-berlin (57)
- # clojure-india (2)
- # clojure-italy (18)
- # clojure-japan (4)
- # clojure-russia (27)
- # clojurescript (96)
- # datomic (6)
- # dunaj (29)
- # editors (1)
- # euroclojure (63)
- # instaparse (2)
- # ldnclj (28)
- # off-topic (36)
- # onyx (4)
- # overtone (1)
- # reagent (8)
I’m calling boot build-jar
and then boot push
and getting error java.lang.Exception: missing jar file or repo not found
.
Is this configuration correct?
(set-env!
:source-paths #{"src"}
:resource-paths #{"src" "resources"}
:wagons '[[s3-wagon-private "1.1.2"]]
:repositories #(conj % '["private-repo" {:url ""
:username "---"
:passphrase "---"}])…
I think that worked (I can see file in s3 now). Thanks @micha! Thanks for the tip with :source-paths
and :resource-paths
one more question about using s3-wagon. So I was able to push to s3 my project when I hardcoded :username
and :passphrase
. But when I do
:username (System/getenv "AWS_ACCESS_KEY")
:passphrase (System/getenv "AWS_SECRET_KEY”)
it fails with No matching ctor found for class org.sonatype.aether.repository.Authentication
. Any tips?Hi all I have some trouble with boot-reload it does not seem to reload my css file 😞 I have this config:
(reload :asset-path "public")
and my css file is in
resources/public/css
and just for completenes
<link href="css/main.css" rel="stylesheet" type="text/css" media="all">
in the head
@mitchelkuijpers: do you get “Reload” messages in the browser console?
@mitchelkuijpers: if you expand that message you should see the paths it’s trying to reload
Reload
reload.cljs:60 css/main.css
the path seems correct
I am running in an Iframe if that might be related, cljs reloading works like a charm
Not really any good ideas then. Any errors in Network panel?
No I don't see it doing any requests
Even if CLJS changes?
Make sure your filter is set to “All"
Yes those work
but my base-url is pretty weird maybe that helps?
So to recap: your cljs reloading works fine but CSS does not. A message is sent to the browser window correctly and no errors are visible in the network panel but changes in CSS have no effect?
cljs works perfectly
Are you sure the contents of the CSS file actually changed?
Aha maybe the asset path option only works with js?
Yes 100% even checked the target folder to see if the changes propagated there
and when i refresh i see the changes
Doesn’t look like it’s limited to JS: https://github.com/adzerk-oss/boot-reload/pull/22/files
No I was just reading the code, and the path it sends is correct
Probably best to open an issue then. Then things also don’t get lost in Slack
And I think describing your setup (iframe etc) is critical.
I think i found it
oh cool. What was it?
Will make a pull request when i am sure
(defn- changed-href? [href-or-uri changed]
(when href-or-uri
(let [uri (goog.Uri. href-or-uri)
path (.getPath (.resolve page-uri uri))]
(.log js/console "path" path)
(.log js/console "changed" (first changed))
(.log js/console "ends-with?" (ends-with? path (first changed)))
(when (not-empty (filter #(ends-with? % path) changed))
uri))))
something seems to go wrong here
path /css/main.css
core.cljs:340 changed css/main.css
core.cljs:341 ends-with? true
core.cljs:343 ends-with-original false
some debug loggin
I still find it weird because it works for js..
The problem is that the path get's normalized but the changed files don't get normalized, shall I make a pull request?
@mitchelkuijpers: if you have a fix that you think won’t break other people’s code a PR is great
@martinklepsch: I don't think it will break other people's code 😅
I wanted to search this room, but Slack tells me “Some older messages may not be shown because your team has over 10,000 messages”
@danielsz: of course, IRC retains 0 messages and we can't even pay money to search more
but but http://botbot.me
true, also we can easily run our own archiving bot
There's a bot archiving stuff here too… and a web UI for searching it. no link handy though 😕
If I could find the link, I could tell you 😄 I'm searching slack archives trying to find a link to the clojurians archive… so meta.
and it archives by channel: http://clojurians-log.mantike.pro/boot/index.html
voxdolo: cool, that second link should be pinned here so that people know how to search the archives.
alandipert: I've been playing with the idea of an irc/slack bridge... but it seems like solving the problem the wrong way.
a more slack-like IRC client would probably be the "realer" answer than having a bridge bot.
that would be cool too
The real issue is that there isn't a good way I've found to "connect" to IRC from the usual stack of web technologies... you need some sort of bridge server
the appeal of slack over irc to programmers is a mystery to me, but i'm happy to roll with it
Heh, I actually prefer Slack but I think that most has to do with much of my late-90s IRC experience being caught up with endless netsplits, fighting for your nick, having to have a bounce set up, etc.
I want something fully distributed with persistence.
(i.e. https://github.com/moose-team/friends — immature but right direction imo)
oh cool, a kind of open gitter
maybe that was it... I've seen a couple fully distributed pre-alpha slack clones floating around
I’m hoping that with all this blockchain stuff out there it’s just a matter of time until this stuff finally becomes feasible.
interesting
i suppose a chat thing could be made the same way as that guy's blockchain + bittorrent concept
keep HEAD in the blockchain and blobs on bittorrent
er, distributed github concept
@arrdem: I think you might want one though for name resolution etc
@martinklepsch: yeah namecoin is pretty awesome for stuff like this.
it's just an enormous overhead relative to a chat service to bake it into the block chain and deal with block times IMO.
@arrdem: I really don’t know much about bitcoin but reading that IPFS paper the other day I found the ideas for incentivizing nodes to share data really interesting and I assume you can model that kind of stuff with things like Ethereum
> deal with block times IMO can you elaborate?
would data only be transmitted when blocks are “found”(?)
@martinklepsch: so the whole reason that bitcoin has blocks and mining is to achieve distributed consensus in a truly trust free manner. since the hashing algorithm is presumed to have no inverse function everyone has a "chance" of finding a block proportional to their fraction of the network compute power this meaning that people can't just forge bogus transaction blocks willy nilly. this is a hugely expensive integrity property which is frankly overkill for most applications since it is quite literally a universal stop and synchronize operation with a node randomly elected by the hashing race as the synchronization point. you need this level of integrity for stuff like identities, money and packages, but for sending messages from A to B in an informal context like IRC/Slack it's just engineering overkill to do the blockchain thing forget performance inefficient.
Unlike financial or naming transactions, IRC is valuable even if it's lossy or if we have a relatively short buffer of "history". We don't need a strong global eternal log.
interesting, I thought these kind of properties could be adapted to use case depending on how the chain is setup etc. In any case I’ll need to read more in order to be able to contribute to this discussion 😝
All you really need is to know what message a message came after. Then you can do an N-way merge between arbitrarily many chat histories unlike bitcoin financial transactions or naming transactions where order matters because of the possibility of overspending.
😛 sorry I'll stop now. I have some friends who are hardcore bitcoin will save the world madmen and so this is my well practiced argument that bitcoin is overkill.
Nah, I appreciate your perspective
Would probably be interesting to see how the aforementioned Slack clone handles distributed (trustless) persistence.
Could be a really fun hackathon project to try and build a trusted vector clock chat system..
Rather than not trusting nodes, you require all nodes to have a trusted centrally issued key which can be revoked by an "admin". Messages from bad keys or revoked keys get dropped, other messages get persisted in a receive order vector clock and propagated to all other nodes.
Slightly off-topic, but is anyone here knowledgable about boot-datomic
? I ask because I’ve done similar stuff (reverse-engineering the datomic utilities) in the past, but I’ve never heard from the Datomic team how “kosher” the approach is...
there is an awesome blog post there!
@alandipert: only if it’s implemented in JavaScript
preferably ES6, but yes 😉
I’m running boot build
on https://github.com/hashobject/blog.hashobject.com/blob/master/build.boot (and some variations). What I see that all tasks are working but my target
directory is empty. I assume that all files from :resource-paths
should be copied over to the target
directory. That was working before yesterday (I did some experiment https://github.com/upworthy/heroku-buildpack-boot/issues/2). Now I’m having trouble understanding how to fix my local setup. Any tips?
right now locally too. I assume that happened after I run ~/a/bin/compile your-boot-project ~/a/test-cache ~/a/test-en
from buildpack locally. But not 100% sure
I also tried to reinstall boot today. and it didn’t help
is it possible that another instance of boot is trying to write to the target at the same time?
let me check my terminal tabs
I don’t think I have other boot. Killed java
processes and tried again - same issue
ok, one sec. I had some task that were generating files commented out (for debugging). But I was still expecting boot to copy everything from resources into target
right now it works.
let me check if I can reproduce initial issue
you wouldn't expect the target dir to be emptied out when you do boot repl
for instance
currently it only syncs the target dir if a task in the pipeline created a new file that wasn't already in the fileset
like the serve task there is, i believe, serving from the classpath, which doesn't have these strange issues
like if you were looking in the target dir for the presence of absence of files you could totally use show -f
instead
those are all good advices. Going to check server task implementation.
I think I narrowed down my problem
seems like the problem with my s3-sync
task. When it’s included target
would be empty. If I remove it - everything works. So I found a person to blame:)
and what happened while debugging this issue I commented out all task that created files -> and target directory was again empty. So I thought that I broke target directory completely
no, that is completely fine for me since I know how it works now
thank you for your help