2014-02-22
| 00:00 | nido` | No, I'm on windows 7 for the most part, though I do have an install of ubuntu 12.04 |
| 00:00 | TravisD | oh, never mind then. There is this irritating issue with GUI applications on Mac OS where they don't see the PATH updates in your login scripts |
| 00:01 | nido` | maybe I'll double check my path then, who knows |
| 00:01 | TravisD | did you use lein to install clojure? |
| 00:01 | nido` | yeah |
| 00:02 | TravisD | Hmm, sorry. I don't know very much about it |
| 00:02 | nido` | I only need the .lein in the path, right? |
| 00:02 | nido` | There's no cider-specific file that needs to be available? |
| 00:04 | TravisD | yeah, although I suspect the issue is not with cider, since "lein repl" doesn't work either |
| 00:04 | TravisD | afaik cider relies on leiningen for cider-jack-in |
| 00:06 | dacc | anyone have a favorite property based testing lib? |
| 00:07 | nido` | travisd: thanks, I'll double check along those lines |
| 00:17 | dsrx | dacc: i've used simple-check a little bit, seems good enough |
| 00:19 | dacc | ok thanks |
| 01:23 | TravisD | Can anyone come up with a simpler implementation of this function? https://www.refheap.com/44486 |
| 01:24 | TravisD | Also, the doctoring is awful, sorry :) |
| 01:25 | TravisD | docstring* my IRC client auto-replaces what it assumes are typos |
| 01:26 | Cr8 | you on a phone or what |
| 01:27 | Cr8 | i had to like |
| 01:27 | TravisD | Nah, I use colloquy on MacOS. It's the only app I have that does it, and I can't figure out how to turn it off |
| 01:27 | Cr8 | turn that off on OS X to get work done |
| 01:27 | TravisD | Ah, how do you turn it off? |
| 01:27 | Cr8 | TravisD: prolly the OS X built in auto correct. Its in keyboard settings in system preferences. |
| 01:28 | TravisD | Cr8: Ah, that fixed it. You're a life saver :) |
| 01:28 | Cr8 | https://www.evernote.com/shard/s17/res/d5b0a8df-b995-47d8-a3a0-e2f1e6072677/skitch.png?resizeSmall&width=676 |
| 01:28 | Cr8 | ah |
| 01:28 | Cr8 | yeah |
| 01:28 | TravisD | Don't have access to view that link |
| 01:28 | Cr8 | oh |
| 01:28 | Cr8 | just a screen of that section |
| 01:28 | Cr8 | https://www.evernote.com/shard/s17/sh/dc93870b-f5a9-432a-9beb-1f1569b030bf/431ea0ef6f3c3cadef1fb35a88d92971 |
| 01:29 | TravisD | Haha, I like the annotations |
| 01:29 | Cr8 | Skype has the same issue |
| 01:29 | TravisD | Ah, now that you mention it, I also noticed it there |
| 01:29 | Cr8 | I took that screen when I had to turn it off because it kept "correcting" work-jargon on a war-room groupchat |
| 01:29 | TravisD | war-room? |
| 01:30 | Cr8 | bad stuff happened so we're pulling in folks and making sure they are working on it til its fixed type issue |
| 01:30 | TravisD | ahh |
| 01:30 | TravisD | that sounds so stressful |
| 01:31 | Cr8 | it is. They're not as bad at my current employer, but I used to work at Walmart HQ |
| 01:31 | Cr8 | where there was typically a very high "dollars we are losing per minute this system is broken" figure |
| 01:32 | TravisD | hehe, also sounds a bit exciting. I guess as long as there wasn't risk of being fired |
| 01:33 | Cr8 | Incidentally one of the things I used Clojure for really early was live-coding monitoring dashboards for war-rooms |
| 01:34 | TravisD | so, you used it to write some programs that would mintor other people's editors or something? |
| 01:34 | Cr8 | had some junk-drawer stuff with clj-ssh and jfreechart and swing, and could chart or watch arbitrary metrics and toss them on the projector |
| 01:34 | TravisD | Anyone else being spammed by user linnuxx? |
| 01:34 | Cr8 | monitor system stats on the problem machine usually |
| 01:34 | Cr8 | I am |
| 01:35 | TravisD | Is there something to do about that? |
| 01:35 | Cr8 | hm |
| 01:35 | Cr8 | you can set your user mode +R and then only registered users can /msg you. |
| 01:35 | TravisD | Ah, added him to my ignore list. |
| 01:35 | Cr8 | https://freenode.net/faq.shtml#spambots |
| 01:36 | TravisD | Cool, thanks |
| 01:41 | Cr8 | w.r.t. original paste might look at how tree-seq works https://github.com/clojure/clojure/blob/master/src/clj/clojure/core.clj#L4535-L4550 |
| 01:41 | Cr8 | could prolly augment that with the path |
| 01:41 | Cr8 | ah |
| 01:41 | Cr8 | but it gets -all- nodes, not just leaves |
| 01:42 | TravisD | ah, good idea to have a branch? function |
| 01:43 | Cr8 | branch? is just there so that you can provide a children function that may not be safe to call at all nodes |
| 01:43 | TravisD | I was actually solving a very specific problem and noticed that it had this more general structure |
| 01:43 | TravisD | yeah |
| 01:44 | Cr8 | if your children function returns empty list on any node that doesn't have children, branch? can be (constantly true) |
| 01:44 | TravisD | That's a better interface than nested collections |
| 01:44 | Cr8 | its nice because it works with lots of different representations |
| 01:44 | TravisD | yeah |
| 01:45 | Cr8 | you can tree-seq over stuff from xml and html parsers, for example |
| 01:45 | TravisD | In the code I'm working on, I wanted to transform a "rectangular" string like "...\n...\n..." into a lazy seq of coordinates and characters |
| 01:46 | TravisD | and to do that you can do something like (tree-paths (map seq (clojure.string/split str #"\w+"))) |
| 01:46 | TravisD | but it would be better to use some built-in functions instead of reinventing the wheel :) |
| 01:47 | Cr8 | yeah, unfortunately i don't think anything like what you want is built-in |
| 01:48 | Cr8 | reminds me of Om's cursors, which are super neat |
| 01:48 | TravisD | I haven't heard of them, do you have a link? |
| 01:48 | Cr8 | they're wrappers around clojure structures that "remember" their lookup path |
| 01:49 | Cr8 | https://github.com/swannodette/om/wiki/Conceptual-overview#wiki-cursors |
| 01:50 | Cr8 | explanation |
| 01:50 | Cr8 | ^ |
| 01:50 | Cr8 | and implementation: https://github.com/swannodette/om/blob/master/src/om/core.cljs#L251-L442 |
| 01:51 | TravisD | That sounds pretty neat |
| 01:51 | Cr8 | basically you do something like (:foo (:bar app-state)) and you get the thing at that place in app-state, with metadata attached that knows it was fetched by going down that path, so anything rendered from that path can get auto-updated when it changes |
| 01:52 | TravisD | ah, that's actually really cool |
| 01:54 | TravisD | I've only been using clojure for about a week, but I'm really enjoying it so far. Seems like there are lots of exciting things going on |
| 01:55 | Cr8 | yeah it has a -lot- of breadth |
| 01:55 | xuser | good or bad breadth? |
| 01:56 | xuser | oh I read breath ;) |
| 02:11 | dacc | is there a function to test if something's a ref? |
| 02:15 | TravisD | dacc: Not sure if this helps: http://stackoverflow.com/questions/7293289/how-do-we-test-whether-something-is-a-reference |
| 02:15 | TravisD | It's quite old |
| 02:16 | dacc | TravisD: thanks -- found a different way |
| 02:16 | TravisD | what is it, out of curiosity |
| 02:18 | dacc | polymorphic function takes either an instance of a java class or a ref |
| 02:18 | dacc | so just switched to testing for instances of the class instead |
| 02:19 | dacc | mostly to help with testing -- it's a gen-class situation =) |
| 02:19 | dacc | trying to pass in the :state ref directly from test code |
| 02:19 | TravisD | Ah, cool. I don't know about gen-class |
| 02:21 | dacc | hopefully you'll never need to =) |
| 02:21 | TravisD | hehe |
| 02:24 | bob2 | TravisD, assoc |
| 02:25 | TravisD | bob2: in reference to what? |
| 02:26 | bob2 | non-nested-update-in |
| 02:26 | TravisD | bob2: Ah, but assoc doesn't update with a function, it just replaces the value |
| 02:37 | amalloy | TravisD: one reason update doesn't exist is because it's not actually clear what the &args should do |
| 02:37 | amalloy | you think it should add extra args like update-in does, but why shouldn't it update multiple keys like assoc does? |
| 02:38 | Moilkolaan | amalloy, do you still love me? |
| 02:38 | TravisD | amalloy: Ah, good point |
| 02:38 | amalloy | eg, (update m k1 f1 k2 f2) |
| 02:38 | TravisD | that is a good reason |
| 02:44 | frank_____ | Test |
| 04:43 | borkdude | I just watched this lecture by Rich Hickey, The Language of the System |
| 04:43 | borkdude | http://www.youtube.com/watch?v=ROor6_NGIWU |
| 04:44 | borkdude | in it he recommends: build simple services instead of libraries |
| 04:44 | borkdude | what are good (recent) examples of these services instead of libraries? |
| 04:44 | sm0ke | really? |
| 04:45 | sm0ke | i thought clojures philosophy is to have small libraries rather than big frameworks |
| 04:51 | rob3 | when i think of a service i think of something like a HTTP web service |
| 04:52 | rob3 | didn't check out the video yet |
| 05:53 | scape_ | during system update, "debconf is not responding".. sigh |
| 07:35 | palango | A question regarding the friend auth lib: Is there a way to run a function after the authentification workflow is finished? I'd like to add some data to the session. |
| 08:30 | beyeran__ | Has anyone experience with Leiningen and Cider on Mint Linux? |
| 08:30 | beyeran__ | I'm using the same configuration on Windows (on which it works perfekty), but on Linux it freezes saying: "Connecting to nREPL..." |
| 08:32 | bob2 | does 'lein repl' work in that project |
| 08:32 | jowag | I'm using mint but using nrepl instead of cider and all works fine |
| 08:33 | beyeran__ | bob2: Yes it does |
| 08:33 | beyeran__ | jowag: Is'nt nrepl a part of cider? |
| 08:33 | bob2 | nrepl's afaict the old name for cider |
| 08:34 | jowag | cider is new incarnation of nrepl, but AFAIK is still in alpha |
| 08:34 | bob2 | perhaps you're using apparmor or selinux or iptables or ... |
| 08:34 | bob2 | (but tldr it works excellently on linux) |
| 08:35 | beyeran__ | At first I try, if it works with nrepl |
| 08:38 | beyeran__ | no, same with nrepl |
| 08:40 | beyeran__ | bob2: I'm not so experienced with networking on linux, but by typing "prgrep iptables" or apparmor or selinux, it seems that none of these are running |
| 08:40 | sveri | hi, i setup a luminus project with http-kit, i can start the jetty with "lein run -dev" from command lein, is there a way to start that same server from the project repl? |
| 08:40 | beyeran__ | bob2: It's a pretty fresh install of Mint, I don't know if something was set up automatically |
| 08:41 | beyeran__ | jowag: Do you perhaps know, if Mint has something running in the background, what disturbes the connection to lein? |
| 08:44 | bob2 | beyeran__, none of them are processes |
| 08:46 | beyeran__ | bob2: I restarted emacs, used nrepl again and this time it responded: "Connection refused", does this add with your idea? |
| 08:47 | jowag | I'm using emacs too, but have no problems. Check if you are connecting to the same port as nrepl is listening on |
| 08:47 | bob2 | I don't know what you're running |
| 08:47 | bob2 | I'd suggest using cider-jack-in instead of wahtever you're doing |
| 08:47 | jowag | I have default mint's firewall turned off (by default) |
| 08:49 | zachmassia | Is there a recommended why of automating a ns reload on file change with Quil? |
| 08:49 | beyeran__ | jowag: good to know! |
| 08:49 | zachmassia | s/why/way |
| 08:49 | beyeran__ | bob2: cider-jack-in also freezes |
| 08:51 | hyPiRion | beyeran__: Okay, I have a suggestion. Do `lein repl :headless` in a shell window, and attempt to connect through it in emacs by doing `M-x cider`, and then put in host and port. Does that work? |
| 08:51 | hyPiRion | (`M-x cider RET`) |
| 08:52 | jowag | my conf: emacs 24 (from mints packages), nrepl.el 0.2.0, nrepl 0.2.3, repl-y 0.3.0, clojure 1.6 snapshot, lein 2.3.4, java 1.7, server started with lein nrepl, from emacs M-x nrepl ... |
| 08:56 | beyeran__ | hyPiRion: no, the same with that. (on cider and nrepl) |
| 08:56 | hyPiRion | gurr |
| 08:59 | beyeran__ | jowag: lein 2.3.4? My version seems much older (lein --version = 1.7.1), perhaps that's the problem |
| 09:00 | hyPiRion | beyeran__: oh yeah, that's probably it |
| 09:00 | hyPiRion | did you install it from the package manager in mint? If so, uninstall it and follow the instructions over at leiningen.org. It's very easy to set up leiningen manually |
| 09:17 | beyeran__ | hyPiRion: Oh boy... that solved it... I feel embaressed |
| 09:18 | patrkris | tpope: hi. do you have (or know of somebody else that does) a minimal example showing the setup needed to get :Piggieback working in Vim? I'm getting a NullPointerException trying to get started. |
| 09:21 | hyPiRion | beyeran__: Don't worry, it's not that unusual that people use the package manager for leiningen and end up with that issue. It's more of a problem on our side, really, we should help linux packagers with the packaging of a 2.x version |
| 09:21 | hyPiRion | (not specifically that issue, but some issue related to 1.x/2.x incompatibility) |