« Back to channel list

#ruby - 05 February 2016

« Back 1 day Forward 1 day »
[00:01:13] Ox0dea: Er, and /boot as well, but I guess that makes sense.
[00:01:47] Deck`: has joined #ruby
[00:02:10] skade: has joined #ruby
[00:03:00] B1n4r10: has joined #ruby
[00:03:17] volty: thx Ox0dea. I see I have only to take it back from /etc
[00:04:08] dlitvak: has joined #ruby
[00:04:18] Ox0dea: volty: No worries. Back in a bit.
[00:05:54] Ox0dea: has joined #ruby
[00:06:34] kies^: has joined #ruby
[00:06:38] davedev24: has joined #ruby
[00:06:57] visudo: has joined #ruby
[00:10:27] agent_white: has joined #ruby
[00:13:13] donske: has joined #ruby
[00:15:49] peterevjan: has joined #ruby
[00:17:20] pawnbox: has joined #ruby
[00:20:02] dlitvak_: has joined #ruby
[00:20:41] dlitvak_: has joined #ruby
[00:22:47] kirillzh: has joined #ruby
[00:23:55] celly: has joined #ruby
[00:24:11] TomPeed: has joined #ruby
[00:25:37] platzhirsch: has left #ruby: ()
[00:26:36] jnj: has joined #ruby
[00:26:38] peterevjan: has joined #ruby
[00:26:45] guacamole: has joined #ruby
[00:27:58] jnj: Hey, I'm trying to create a ruby script that tests a java program by running java program testfiles, I already have it running through and out putting to the terminal the results of all the test files, is there anyway to take each output and compare them to text files that contain the answers?
[00:28:33] jnj: I know I can just write each output to a text file, then compare the files, but I'd rather I just compare the output of standard output so that I won't end up creating a whole bunch of text files
[00:29:52] wolffles: talking about output texts, my output text file font size is 512. not sure whats causing it
[00:30:07] jnj: wow, thats very strange
[00:30:17] s00pcan: has joined #ruby
[00:30:20] agentmeerkat: has joined #ruby
[00:31:03] ramfjord: very strange - I didn't know text files had font sizes ;)
[00:31:50] volty: jnj: you could redirect to StringIO, then read both and compar
[00:31:50] ramfjord: jnj: if you're just worried about makign a bunch of files, you can use Tempfile
[00:32:03] Rodya_: has joined #ruby
[00:32:05] jnj: Thanks! I'll check out tempfile
[00:32:26] volty: I was thinking he wants to compare on fly
[00:32:43] wethu: has joined #ruby
[00:32:46] jnj: I do wanna compare on the fly
[00:33:03] jnj: So basically, would I just be creating a new string for each result, then compare that string to it's corresponding text file?
[00:33:05] victortyau: has joined #ruby
[00:33:15] baweaver: has joined #ruby
[00:33:34] volty: StringIO, redirect the $stdout, etc etc
[00:34:33] volty: StringIO behaves as file, so File::read(stringio_object) == File::read(expected_result)
[00:35:17] volty: and of course truncate in between
[00:35:25] harly_: has joined #ruby
[00:35:45] dexter-tzu: has joined #ruby
[00:35:51] s00pcan: has joined #ruby
[00:35:55] hahuang65: has joined #ruby
[00:36:02] cdg: has joined #ruby
[00:36:24] johnny56: has joined #ruby
[00:36:47] arthurix_: has joined #ruby
[00:37:14] AdamMeghji_: has joined #ruby
[00:37:34] volty: but before all you have to capture the stdout of those java programs. no idea how you run them.
[00:37:59] lilvim_: has joined #ruby
[00:38:00] aupadhye: has joined #ruby
[00:38:03] peterevjan: has joined #ruby
[00:38:46] carella_: has joined #ruby
[00:38:59] kiez0rd: has joined #ruby
[00:39:33] colleenm_: has joined #ruby
[00:39:37] peterhu_: has joined #ruby
[00:39:59] volty: probably IO.read("| the_prog") would be sufficient
[00:40:01] idefine_: has joined #ruby
[00:41:07] colleenm_: has joined #ruby
[00:41:07] gregf__: has joined #ruby
[00:41:56] Mekkis: has joined #ruby
[00:42:49] Rodya_: has joined #ruby
[00:42:59] agent_white: has joined #ruby
[00:47:28] pawnbox: has joined #ruby
[00:50:05] arlek: has joined #ruby
[00:51:52] Conflict: has joined #ruby
[00:52:24] DLSteve: has joined #ruby
[00:54:25] psayian: has joined #ruby
[00:55:14] idefine: has joined #ruby
[00:55:18] psayian: What is a good ruby book for me to learn from? I have a C, bash, C++, and I've done the ruby on code academy.
[00:55:39] sucks: has joined #ruby
[00:56:28] Brklyn: has joined #ruby
[00:57:34] domgetter: has joined #ruby
[01:01:07] snapcase: has joined #ruby
[01:02:34] Deck`: has joined #ruby
[01:04:23] law: has joined #ruby
[01:04:38] law: hey all, any thoughts on how I can 'flatten' a hash for output in a Nagios check?
[01:04:58] jnj: psayian: I've recently bought the well grounded rubyist and eloquent ruby
[01:04:59] law: http://paste.lopsa.org/201 has the code, with the current and desired output at the bottom
[01:05:25] jnj: psayian: the well grounded rubyist will teach you how to write in ruby, eloquent ruby will teach you the right ways to write ruby
[01:05:41] jnj: I keep on getting the error: `testfile': undefined local variable or method `run' for main:Object (NameError)
[01:06:58] Coldblackice: has joined #ruby
[01:08:11] karapetyan: has joined #ruby
[01:08:20] moeabdol2: has joined #ruby
[01:09:18] jnj: oh wait nevermidn
[01:09:57] ur5us: has joined #ruby
[01:10:04] ur5us: has joined #ruby
[01:11:49] psayian: jnj: thanks
[01:11:59] idefine: has joined #ruby
[01:12:20] at46: has joined #ruby
[01:12:51] RUDIS: has joined #ruby
[01:13:49] hays: How do I do this with a Fiber? "That???s pretty big because now you can wrap an incoming web request in its own fiber and tell it to send a response back when it???s done doing its things. In the meantime, you can move on the to next incoming request."
[01:14:01] hays: having trouble seeing how that is structured
[01:15:15] RUDIS: la personas de cuba por aqui
[01:15:20] paradisaeidae: has joined #ruby
[01:15:32] idefine: has joined #ruby
[01:16:05] moeabdol3: has joined #ruby
[01:16:30] davedev24: has joined #ruby
[01:16:34] at46_: has joined #ruby
[01:17:10] pawnbox: has joined #ruby
[01:17:32] jnj: How do I redirect stdout back to stdout instead of a file
[01:18:00] AccordLTN: has joined #ruby
[01:18:18] domgetter: jnj the original stdout should still be in STDOUT
[01:18:33] jnj: Ah, ok, so I could do $stdout = STDOUT?
[01:18:37] Ox0dea: Unless you mutated it with something like #reopen.
[01:18:58] domgetter: And you can always just do STDOUT << "some string"
[01:19:15] domgetter: unless you want puts (and family) to go to it
[01:19:17] solocshaw: has joined #ruby
[01:19:41] jnj: I did mutate it with something like #reopen, to write from stdout to files
[01:19:53] eam: you have to reopen it again
[01:21:17] jnj: eam: Ah, ok. What would that look like? Would I have to reopen it to stdout, so like $stdout.reopen(STDOUT) or just $stdout.reopen
[01:21:20] croberts: has joined #ruby
[01:22:20] blackmesa: has joined #ruby
[01:25:56] eam: jnj: the former
[01:26:22] jnj: eam: ah ok
[01:26:37] eam: jnj: if you get confused, use `lsof` to visualize your descriptors
[01:26:40] icbm: has joined #ruby
[01:26:42] eam: and #fileno on any IO object
[01:26:59] jnj: eam: so $stdout.reopen(STDOUT)
[01:27:11] RUDIS: has joined #ruby
[01:27:17] skade: has joined #ruby
[01:27:34] Brklyn: has joined #ruby
[01:27:52] dlitvak: has joined #ruby
[01:28:16] ruby[bot]: Why don't you try it and see for yourself?
[01:28:20] eam: jnj: well, if you've reopened them, actually, you'll be in trouble because you've changed both STDOUT and $stdout
[01:28:49] eam: reopen modifies the meaning of the descriptor underpinning an IO object
[01:29:14] Ox0dea: jnj: https://eval.in/513388
[01:29:26] jnj: eam: Ah, ok. I'm just trying to write each result of a test to a text file, then compare that resulting text file to an answers file
[01:29:31] eam: what you can do is old_stdout = STDOUT.dup # then mess with it, and reopen back to old_stdout at the end
[01:29:46] eam: #dup will copy the descriptor to a new #fileno
[01:29:53] jnj: ah nice
[01:30:01] agentmeerkat: has joined #ruby
[01:30:27] eam: you can also $stdout.reopen $stderr I believe
[01:30:36] eam: assuming this is all a cli program running in your terminal
[01:30:42] eam: that won't work in other contexts however
[01:30:51] SPARK33092: has joined #ruby
[01:32:29] jnj: eam: Yeah, I gotchu, but its working in this context, so thanks so much!
[01:32:46] Ox0dea: jnj: Are you sure you need to be redirecting stdout?
[01:32:53] Ox0dea: You know you can just open files and write to them?
[01:33:35] eam: this practical advice doesn't sound nearly as fun
[01:34:11] jnj: Ox0dea: Yeah, I'm testing java files that write to standard output. My professor wants us to test everyone elses java code, so I'm just creating a nice ruby script that will do all the testing for me
[01:34:19] dlitvak: has joined #ruby
[01:34:24] hays: is there a simple way to turn what looks like synchronous/blocking I/O into asynchronous?
[01:34:27] RUDIS: has left #ruby: ()
[01:34:48] ESpiney: has joined #ruby
[01:34:54] eam: hays: well the interactions are pretty different
[01:35:18] shazaum_: has joined #ruby
[01:35:19] Ox0dea: jnj: Ah, fair enough, then.
[01:35:35] amb77: has joined #ruby
[01:35:46] jottr: has joined #ruby
[01:35:48] havenwood: hays: say more about what you're doing? or just a general question?
[01:36:18] eam: I guess one way would be to install an old ruby which used green threads
[01:36:43] eam: 'cuz then it's all nonblocking
[01:36:50] eam: except when it isn't
[01:37:00] jnj: What can I do if running a shell command in ruby takes too long? With my testing script I want it to stop running a system command if someones program is taking too long
[01:37:37] hays: havenwood: im trying to tie to rmodbus, but i need to manage multiple connections and be able to recover them if they drop, but also keep requests to the others going when there is a problem on one connection
[01:38:22] Ox0dea: jnj: Seems a fine use case for Timeout.
[01:38:52] eam: jnj: system() is essentially just a fork { exec CMD }; wait
[01:39:10] havenwood: hays: would the connections be mostly idle?
[01:39:11] jnj: Ah, ok, thanks guys! :)
[01:39:14] eam: you can implement that yourself with waitpid WNOHANG instead of wait if you like
[01:39:21] Ox0dea: jnj: Something for future reference: https://eval.in/513390
[01:39:24] amb77: has joined #ruby
[01:39:26] eam: Timeout is evil and should be avoided on pain of death
[01:39:57] hays: havenwood: no, mostly active actually.. there's a constant write operation that needs to happen every 1 second, and interleaved with that are other operations
[01:40:37] jnj: Ox0dea: Thanks man, you're the best
[01:40:54] amb77: has joined #ruby
[01:41:13] havenwood: hays: I was going to suggest taking a look at Celluloid::IO: https://github.com/celluloid/celluloid-io
[01:41:34] Ox0dea: eam: Even for something as "straightforward" as timing out #system?
[01:41:35] dlitvak_: has joined #ruby
[01:41:36] amb77: has joined #ruby
[01:41:53] havenwood: hays: Maybe just Celluloid.
[01:42:10] eam: Ox0dea: depends what else the program is doing, if the code is gonna be present in a library, etc
[01:42:40] eam: also if you just Timeout you won't kill the subprocess
[01:42:55] eam: which probably means death if you do it a lot
[01:43:35] eam: I think you're all but guaranteed to produce zombies, actually
[01:43:45] eam: checking
[01:43:58] havenwood: hays: And speaking of Celluloid and a timer every second, they have a very nice timers library: https://github.com/celluloid/timers
[01:44:26] hays: ill check out the wiki
[01:45:12] despai: has joined #ruby
[01:45:47] eam: Ox0dea: yes, guaranteed to leak zombies
[01:46:18] low-profile: has joined #ruby
[01:47:20] adgtl: has joined #ruby
[01:47:54] dlitvak: has joined #ruby
[01:48:10] despai: has joined #ruby
[01:49:03] Ox0dea: eam: https://eval.in/513391
[01:49:09] Ox0dea: I realize it's a bodge, but that seems to work fine?
[01:51:07] hays: havenwood: you know how this works? http://www.rubydoc.info/gems/celluloid/Celluloid/Actor:every
[01:51:31] peterevjan: has joined #ruby
[01:53:05] duckpuppy: has joined #ruby
[01:53:37] moeabdol4: has joined #ruby
[01:54:03] dlitvak: has joined #ruby
[01:54:14] havenwood: hays: Yeah, Timers is already required by Celluloid but it's nice standalone as well.
[01:55:38] Ox0dea: eam: `pkill -n`, even.
[01:55:48] segmond: has joined #ruby
[01:55:58] eam: Ox0dea: aaaargh
[01:56:17] eam: you just potentially killed thousands of different processes
[01:56:26] Azure: has joined #ruby
[01:56:43] Ox0dea: Er, thankfully not?
[01:56:46] hays: just not sure how to use the every
[01:56:53] eam: I saw a hilarious and rather serious outage once, where someone had written code very similar to that to kill their own app
[01:57:11] Ox0dea: But we're always the newest process! :P
[01:57:27] adgtl: has joined #ruby
[01:57:29] Ox0dea: I meant `pkill -n sleep`, to clarify.
[01:57:29] hays: i was thinking I could use that to do an async write every second, in order to handle that watchdog thinger
[01:57:34] eam: they did not realize that their service ran under djb's daemontools, which used readproctitle, which often had exception strings in its argv / process list
[01:57:41] eam: which would match their pkill
[01:58:00] havenwood: ACTION hays: ah, i misunderstood - see: https://github.com/celluloid/timers/blob/53d3c5b013a9a75cf2bb872a96ffb94c704946b3/lib/timers/group.rb#L48-L52
[01:58:13] skweek: has joined #ruby
[01:58:22] eam: which ended up sending a SIGPIPE to every "reliable" service daemon running on the machines
[01:58:28] peterevjan: has joined #ruby
[01:58:35] eam: including sshd, sooo
[01:59:06] eam: anyway I do not like pkill
[01:59:20] Ox0dea: Anyway, no leaked zombies.
[01:59:50] eam: may as well just pkill -u #{Process.uid}
[01:59:55] duderonomy: has joined #ruby
[02:00:04] eam: no zombies there either!
[02:00:04] Ox0dea: Lemme try it!
[02:01:00] Ox0dea: has joined #ruby
[02:01:19] Ox0dea: It worked; no zombies.
[02:01:59] law: hey all, any thoughts on how I can 'flatten' a hash for output in a Nagios check?
[02:02:02] law: http://paste.lopsa.org/201 has the code, with the current and desired output at the bottom
[02:03:04] Conflict: has joined #ruby
[02:03:16] Graphettion: has joined #ruby
[02:03:20] Deck`: has joined #ruby
[02:04:00] eam: will trapping SIGCHLD work? That's probably the ideal way
[02:04:52] p1k: has joined #ruby
[02:05:29] lessless: has joined #ruby
[02:06:55] eam: Signal.trap("CHLD") { loop {Process.waitpid -1, Process::WNOHANG} rescue "got em" }
[02:07:38] william3: has joined #ruby
[02:07:54] havenwood: law: Ignoring the ", "s": "#{k}#{v.keys.first}=#{v.values.first}"
[02:10:04] darix: has joined #ruby
[02:10:42] havenwood: law: changing as little as possible and without testing it i'd guess; print checkresult.map { |k, v| "#{k}#{v.keys.first}=#{v.values.first}" }.join(', ')
[02:10:53] JDiPierro: has joined #ruby
[02:11:06] webopsx: has joined #ruby
[02:11:51] CoderPuppy: has joined #ruby
[02:12:29] microt: has joined #ruby
[02:12:35] law: well slap mah fro and call me Susan, that's pretty darned close
[02:12:48] law: I keep forgetting how insanely flexible .map is
[02:13:28] sivoais: has joined #ruby
[02:14:07] daivyk: has joined #ruby
[02:14:46] dcunit3d: has joined #ruby
[02:14:51] Brklyn: has joined #ruby
[02:18:15] bb010g: has joined #ruby
[02:18:31] jackjackdripper: has joined #ruby
[02:18:53] terminalrecluse: has joined #ruby
[02:21:21] elifoster: has joined #ruby
[02:22:28] Felix444: has joined #ruby
[02:23:31] shellie_: has joined #ruby
[02:23:38] Thib: has joined #ruby
[02:23:49] sivoais: has joined #ruby
[02:24:32] karapetyan: has joined #ruby
[02:24:44] Thib: has joined #ruby
[02:26:10] Thib: has joined #ruby
[02:26:15] adgtl: has joined #ruby
[02:26:21] shellie_: any idea what's happening here? http://paste.ubuntu.com/14884584/
[02:27:08] havenwood: shellie_: don't use sudo to install rvm gems
[02:27:27] havenwood: shellie_: to get at that gem you installed: sudo rubocop
[02:27:37] RegulationD: has joined #ruby
[02:27:37] Ox0dea: Don't use software that hates you.
[02:28:04] adgtl: has joined #ruby
[02:28:22] eam: anthropomorphized software in general freaks me out, actually -- regardless of how it feels
[02:29:00] shellie_: havenwood: so what's the recommended installation? when I ran 'gem install rubocop' it failed with perms. Perhaps I need to run it in the rvm context somehow?
[02:29:21] havenwood: eam: you shouldn't anthropomorphize software, it hates it when you do that
[02:29:54] havenwood: shellie_: RVM recommends installing itself without sudo as a non-root user. You can restore permissions with: rvm fix-permissions
[02:31:38] shellie_: ok, so I fixed permissions, re-tried the gem install and got the same error back (perms). I presume the rvm is not being instantiated, how can I run 'gem' in the context of rvm, so that the permissions-enabled paths apply?
[02:32:12] shellie_: ACTION apologizes for noobness, I'm only working with ruby for a few days, but came from python and understand rvm is virtualenv equivalent or similar anyway
[02:32:37] havenwood: shellie_: gem install rubocop
[02:32:44] havenwood: shellie_: sudo drops env
[02:33:39] jackjackdripper1: has joined #ruby
[02:33:55] sivoais: has joined #ruby
[02:33:58] shellie_: the 'gem install rubocop' yields this message: ERROR: While executing gem ... (Gem::FilePermissionError) \n You don't have write permissions for the /usr/local/rvm/gems/ruby-2.0.0-p643 directory.
[02:34:17] davedev24: has joined #ruby
[02:34:25] havenwood: shellie_: ah, so you have a system install of rvm
[02:35:07] shellie_: I ran this, but maybe I did it as root? \curl -sSL https://get.rvm.io | bash -s stable
[02:35:29] havenwood: shellie_: https://rvm.io/rvm/install#installation-explained
[02:35:36] wolffles: im moding text files and i need to add multiline code using gsub but ???\n??? isnt working for me halp !
[02:35:38] havenwood: shellie_: RVM doesn't like being installed as root.
[02:36:03] havenwood: shellie_: I'd suggest `rvm implode` then restart your shell to clear env vars.
[02:36:12] shellie_: wolffles: you may be using single quotes?
[02:36:37] wolffles: only for ???w??? and ???r???
[02:36:51] wolffles: https://eval.in/513398 heres what im working with
[02:36:58] shellie_: headius: as root or regular user?
[02:37:01] sdothum: has joined #ruby
[02:37:12] shellie_: that was meant for havenwood
[02:37:17] pawnbox: has joined #ruby
[02:37:22] Ox0dea: shellie_: Always regular user.
[02:38:48] Nanuq: has joined #ruby
[02:40:42] Ox0dea: wolffles: I want to help.
[02:41:05] wolffles: please my head hurts from all the error messages
[02:41:14] Ox0dea: I need your help.
[02:41:44] toretore: has joined #ruby
[02:42:18] shellie_: ok, imploded
[02:42:22] shellie_: now I need to reinstall it
[02:42:37] wethu: has joined #ruby
[02:42:45] Ox0dea: wolffles: What is "lfjiej"?
[02:43:23] wolffles: unimportant text for a macroing software
[02:44:00] sivoais: has joined #ruby
[02:44:23] jottr: has joined #ruby
[02:45:16] Rodya_: has joined #ruby
[02:45:17] Ox0dea: wolffles: /"}"/ is the problem.
[02:45:41] wolffles: *listening carefully*
[02:46:08] Ox0dea: Your input file doesn't contain "}", so that regular expression isn't matching anything.
[02:46:32] wolffles: would it just be /}/
[02:46:35] shellie_: fixed, yay!
[02:46:36] Ox0dea: Or even "}".
[02:46:55] shellie_: now onto fixing the 58 offenses in my code :P
[02:47:04] domgetter: has joined #ruby
[02:47:36] shellie_: rubocop tells me not to introduce global variables. Why?
[02:47:45] havenwood: shellie_: it does? :O
[02:48:00] havenwood: shellie_: what does it say?
[02:48:32] shellie_: q:105:9: C: Do not introduce global variables.
[02:48:52] havenwood: shellie_: Oh, *not to*. Gotcha.
[02:49:31] Ox0dea: shellie_: Imagine if anybody in the world could move your mouse whenever they wished.
[02:49:35] havenwood: shellie_: Global stomps on whatever else anything else wanted to set.
[02:49:37] Ox0dea: That's global variables.
[02:51:30] wolffles: so my first attempt the file was corrupted, i couldnt open it. now it looks like this in notepad
[02:51:41] wolffles: https://eval.in/513401
[02:51:43] shellie_: I'm not sure I can completely understand the motives, which is why I'm a bit puzzled :)
[02:51:45] eam: Ox0dea: we should keep all our classes in globals
[02:51:50] mpistone: has joined #ruby
[02:52:03] Ox0dea: eam: Mission complete. :)
[02:52:40] eam: http://i.imgur.com/Mv8ORp4.jpg
[02:53:27] Ox0dea: If Ruby were a brother Karamazov, it'd be Ivan.
[02:53:40] Ox0dea: "Everything is permitted."
[02:53:50] oetjenj: has joined #ruby
[02:54:57] shellie_: could I ask a bit more clarity on this subject? What specific cases can having global variables hurt me?
[02:55:42] Ox0dea: shellie_: Global variables provide very poor (read: no) encapsulation. If you write a library that uses global variables, anybody who wishes to use it must ensure that they don't use a global variable with the same name.
[02:55:50] toretore: shellie_: two things use the same variable; one changes it, then the other is confused
[02:56:25] havenwood: shellie_: They are aesthetically despicable. You can't universalize the maxim of using globals. If we all did it, the house of cards would tumble.
[02:57:22] shellie_: I understand the issues with globals
[02:57:27] idefine: has joined #ruby
[02:58:03] finisherr: has joined #ruby
[02:58:25] Ox0dea: Of course, Ruby's built-in globals are special and can have scope, but I'll say nothing more of that.
[02:58:27] shellie_: so in a way, this sort of requires me to write my program with OO
[02:58:42] Ox0dea: shellie_: Or FP.
[02:58:58] Ox0dea: You stop that. <3
[03:00:14] shellie_: how can you store state that needs to be accessed globally using FP?
[03:00:50] toretore: it doesn't have anything to do with fp or oo
[03:01:00] ledestin: has joined #ruby
[03:01:12] Ox0dea: shellie_: The solution, either way, is to not have state that needs to be accessed globally. :P
[03:01:42] toretore: global state is evil only when it is mutable, and not protected by locks
[03:02:13] shellie_: it should not be a problem in a single-threaded app, presumably?
[03:02:26] toretore: other than that it's just a really bad idea
[03:03:33] havenwood: shellie_: use your own mouse instead of everybody's mice
[03:03:51] eam: what's a programmer's favorite clothing company?
[03:04:03] eam: https://www.threadless.com/
[03:04:11] lilvim: boom goes the nova
[03:04:17] shellie_: I find that analogy quite weak to describe global variables :)
[03:04:25] Deck`: has joined #ruby
[03:05:04] havenwood: shellie_: try clicking on something...
[03:05:07] duckpuppy: has joined #ruby
[03:05:14] A124: has joined #ruby
[03:05:34] havenwood: shellie_: moving target
[03:05:42] havenwood: shellie_: or is it? dunno!
[03:06:20] havenwood: shellie_: We use namespaces for a reason. It's for humans.
[03:06:56] shellie_: funny enough, coming from python, I'm finding ruby's name spaces truly weird
[03:07:06] Ox0dea: It doesn't actually have them.
[03:07:16] Ox0dea: Modules are pseudo-namespaces, but they work well enough for that purpose.
[03:07:16] shellie_: require 'yaml', YAML.foo < it makes no sense
[03:07:58] havenwood: pseudo-namespaces?
[03:08:25] Ox0dea: havenwood: Insofar as we can't say `require SomeModule from 'foo'` or the like.
[03:08:35] betabet: has joined #ruby
[03:08:53] shellie_: that's not what I meant :-)
[03:09:35] Felix444: has joined #ruby
[03:09:54] shellie_: in python, you can 'import module' and you then reach the objects via module.<object>, not MODULE.<object> (which may not be exactly what I tried to portray above with yaml, but should help explain what I mean?)
[03:10:00] Ox0dea: shellie_: You say `import os` and then `os.system(...)` in Python; what exactly is blowing your mind about `require 'yaml'` and then `YAML.load`?
[03:10:27] Ox0dea: That module names are constants?
[03:10:33] lilvim: Ox0dea: I imagine s/he's expecting yaml.load
[03:11:32] Ox0dea: shellie_: So you'd want libraries to be able to decide which names you can and can't use for local variables?
[03:11:59] rht: has joined #ruby
[03:12:18] juniorism: has joined #ruby
[03:12:30] shellie_: I'm not sure that's a question I want to answer, the problem here is not what problem that solution is solving (if it is solving a problem at all), but rather a not very logical design choice
[03:13:34] Ox0dea: It's not "logical" for an import to override your locals.
[03:13:43] shellie_: I also didn't look into constants, but from your comment above, assume required modules become constants and constants are upper case in ruby?
[03:14:30] northfurr: has joined #ruby
[03:14:42] Ox0dea: There are such things as anonymous modules, but the ones that do have names must have them capitalized, and that necessitates their being constants, yes.
[03:14:52] sapslaj: has joined #ruby
[03:15:11] ftj: has joined #ruby
[03:15:21] shellie_: ok, interesting
[03:15:52] shellie_: what did you mean by 'override your locals' ?
[03:16:02] wolffles: my output file keeps coming out corrupted ;_;
[03:16:22] shellie_: wolffles: wheres your code?
[03:16:39] Ox0dea: shellie_: https://eval.in/513405
[03:16:44] n00bDev: has joined #ruby
[03:17:20] toretore: wolffles: #python
[03:17:48] wolffles: https://eval.in/513406
[03:17:49] shellie_: toretore: timing
[03:18:11] shellie_: toretore: the first link is from Ox0dea
[03:19:03] shellie_: Ox0dea: I get what you mean, but it's not common practice to import modules outside the global or after variables have already been declared
[03:19:17] Ox0dea: It's still an arbitrary limitation.
[03:19:21] toretore: shellie_: right, oops
[03:19:56] Jonah11_: has joined #ruby
[03:20:02] Ox0dea: My oops too, but it's always quiet enough to defend Ruby against the snakes.
[03:20:10] toretore: wolffles: where are you getting writes from?
[03:20:27] wolffles: stack overflow
[03:20:55] toretore: wolffles: and what makes it corrupted? need more information
[03:21:13] toretore: there's no such method on File or its ancestors
[03:21:24] wolffles: i dont know i cant open it, it runs fine returns no errors
[03:21:45] wolffles: but it keeps saying file format is corrupted
[03:21:48] toretore: i think the problem is that it's broken
[03:21:54] shellie_: wolffles: what are you trying to achieve?
[03:22:28] Ox0dea: wolffles: You're treating an RTF document as text.
[03:22:34] Ox0dea: You're gonna have a bad time.
[03:22:53] wolffles: ill try source as a text
[03:23:54] dlitvak_: has joined #ruby
[03:24:24] TravisTheNavi: has joined #ruby
[03:25:24] TravisTheNavi: Should I use Rails Installer or individually download Ruby, Rails, and everything else?
[03:25:54] toretore: are you on windows?
[03:26:01] wolffles: that was the problem Ox0dea
[03:26:09] TravisTheNavi: toretore, Yes.
[03:26:26] toretore: then probably the first option
[03:26:57] pawnbox: has joined #ruby
[03:27:01] toretore: your experience is going to be shitty nonetheless, so you might just want to throw your computer out the window right away and save some time
[03:27:19] TravisTheNavi: toretore, Why do you say that?
[03:28:29] TravisTheNavi: And what do you prefer, Linux?
[03:28:39] B1n4r10: has joined #ruby
[03:29:27] shellie_: maybe clarify the problem isn't being on windows, but that these tools were not made to run natively on windows, hence it may present another set of challenges :->
[03:31:15] TravisTheNavi: shellie_, So if I want to use Ruby and the Rails framework to develop, would you recommend an OS change, or will it not be a big deal?
[03:31:40] TravisTheNavi: I'm new to Ruby and I just want to learn enough to be hireable as a junior developer.
[03:31:51] TravisTheNavi: So I decided to give Rails a shot.
[03:33:41] toretore: travisthenavi: i'm not 100% serious; give it a try and see if it works
[03:33:43] shellie_: travisthenavi: I'm afraid I can only speculate, as I never installed rails on windows, but I'd go ahead and try 'rails installer' and if that falls through, you can always run a virtual machine with Linux and work there
[03:34:35] toretore: travisthenavi: it may work fine for you for some time, but i don't know of any serious developers who don't develop specifically for windows that use it
[03:34:51] skweek: has joined #ruby
[03:35:59] TravisTheNavi: Do you think it is important to learn Ruby before I dive into Rails?
[03:36:19] TravisTheNavi: Also, do you know of any good learning resources for each?
[03:37:20] shellie_: depends on what your goals are - what do you want to do/learn?
[03:38:04] shellie_: as for learning resources, I hear the book 'the well-grounded rubyist' is good
[03:38:05] TravisTheNavi: My goal is to gain enough skill to be hireable as a junior developer.
[03:38:42] adgtl: has joined #ruby
[03:39:15] visudo: has joined #ruby
[03:40:27] toretore: so your goal isn't to learn ruby and/or rails?
[03:41:25] Jonah11_: has joined #ruby
[03:41:43] Rodya_: has joined #ruby
[03:42:24] pawnbox: has joined #ruby
[03:42:42] TravisTheNavi: Well I'm leaning towards Ruby and/or Rails because that is what code bootcamps teach. I figure it is a good place to start.
[03:42:58] freeom: has joined #ruby
[03:43:44] konsolebox: has joined #ruby
[03:44:05] shellie_: I'm not sure what a code bootcamp is and how participating in one relates to your chances of getting a job
[03:45:09] hxegon: has joined #ruby
[03:45:18] TravisTheNavi: Alright, let me ask a different question. If I want to get a junior web dev (or even software dev) job within a very limited amount of time, what technologies should I learn?
[03:46:18] toretore: why do you want to get a junior web dev job?
[03:46:33] TravisTheNavi: To make money of course!
[03:46:39] TravisTheNavi: And because I enjoy writing code.
[03:47:12] shellie_: rails is likely to give you enough exposure to land on a junior role (that is, depends where, because some circles tend to keep these jobs for recent grads, who have already about 4 years of experience before they apply)
[03:47:42] sankaber: has joined #ruby
[03:48:47] ss_much: has joined #ruby
[03:49:50] TravisTheNavi: shellie_, Thank you.
[03:50:29] TravisTheNavi: Well, I have a copy of both Learn to Program and the Pickaxe Book. From what I picked up, I should start there and then move on to learning Rails.
[03:50:43] shellie_: but I would recommend this path instead: learn ruby -> take a CS course (e.g learn fundamental algorithms, how a computer work and concepts, networking), then move to rails or whatever fancy schmancy web framework out there
[03:53:28] TravisTheNavi: Are there any text editors/IDEs that you would recommend?
[03:54:19] devbug: has joined #ruby
[03:56:01] shellie_: if you are using windows, notepad++ might be a good start
[03:56:02] User458764: has joined #ruby
[03:57:27] hfp_work: has joined #ruby
[03:57:54] domgetter: travisthenavi: SublimeText is pretty nice
[03:58:59] RegulationD: has joined #ruby
[04:00:52] bronson: has joined #ruby
[04:04:05] voidDotClass: has joined #ruby
[04:04:57] voidDotClass: What's wrong with this syntax? class Admin::AccountsController < Admin::AdminController
[04:05:16] voidDotClass: it says 'expected ; or end of line'
[04:05:23] Deck`: has joined #ruby
[04:06:17] toretore: voidDotClass: gist entire file
[04:06:32] voidDotClass: toretore, its a barebones controller
[04:06:41] chouhoulis: has joined #ruby
[04:06:49] voidDotClass: if i do 'include admin' and change that line to class Admin::AccountsController < AdminController, it works
[04:06:50] toretore: voidDotClass: git it anyway
[04:07:17] voidDotClass: https://gist.github.com/anonymous/f253bbd08d61be445ffe
[04:07:48] toretore: gist the one that doesn't work
[04:09:37] voidDotClass: toretore the only difference is that top class declaration
[04:10:32] toretore: gist it anyway
[04:11:03] Ox0dea: voidDotClass: https://eval.in/513420
[04:11:07] Rodya_: has joined #ruby
[04:11:14] Ox0dea: As you can see, it's not a syntax error, even as far back as 1.8.7.
[04:11:20] Ox0dea: Your problem is in another castle.
[04:11:30] voidDotClass: Rubymine highlights it as an error
[04:11:31] banghouse2: has joined #ruby
[04:11:35] voidDotClass: may be its just rubymine
[04:12:36] banghouse2: has joined #ruby
[04:16:27] northfurr: has joined #ruby
[04:21:13] braincrash: has joined #ruby
[04:21:51] davedev24: has joined #ruby
[04:22:22] wolffles: has joined #ruby
[04:22:37] pawnbox: has joined #ruby
[04:22:43] DmitryBochkarev: has joined #ruby
[04:22:53] terminalrecluse: has joined #ruby
[04:26:06] karapetyan: has joined #ruby
[04:29:13] betabet: has joined #ruby
[04:31:34] kp666: has joined #ruby
[04:36:25] codezomb: has joined #ruby
[04:37:28] idefine: has joined #ruby
[04:38:39] banghouse2: has left #ruby: ("What if the hokey pokey really is what it's all about?")
[04:39:26] rakm: has joined #ruby
[04:40:31] procyon_ember: has joined #ruby
[04:40:51] kirillzh: has joined #ruby
[04:42:17] Rodya_: has joined #ruby
[04:43:18] gix: has joined #ruby
[04:44:22] jbrhbr: has joined #ruby
[04:45:17] jottr: has joined #ruby
[04:47:10] pawnbox: has joined #ruby
[04:47:51] dlitvak: has joined #ruby
[04:48:30] DmitryBochkarev: has joined #ruby
[04:49:13] jcdesimp: has joined #ruby
[04:49:41] duncannz: has joined #ruby
[04:50:36] baweaver: has joined #ruby
[04:53:25] mezcan: has joined #ruby
[05:02:53] renderful: has joined #ruby
[05:04:33] domgetter: has joined #ruby
[05:05:39] dlitvak: has joined #ruby
[05:05:53] duckpuppy: has joined #ruby
[05:07:15] TomPeed: has joined #ruby
[05:08:13] banghous_: has joined #ruby
[05:11:22] ponga: has joined #ruby
[05:12:54] ponga: damn i need some rbenv tutorials
[05:17:14] ensyde: has joined #ruby
[05:17:56] Oog: has joined #ruby
[05:19:33] ponga: how the hell do i edit bash_profile on OSX for rbenv, :(
[05:19:45] visudo: has joined #ruby
[05:21:23] kiez0rd: has joined #ruby
[05:27:28] karapetyan: has joined #ruby
[05:29:04] ponga: wondering why is it taking unusually long to install ruby 2.3.0 on rbenv
[05:30:49] ur5us: has joined #ruby
[05:31:14] nodejunkie: has joined #ruby
[05:31:29] Jonah11_: has joined #ruby
[05:34:41] william3: has joined #ruby
[05:37:13] fedexo: has joined #ruby
[05:37:32] Ropeney: ponga: did u work out how to edit bash_profile?
[05:38:11] ponga: Ropeney: I had to log-out and log-in again
[05:38:20] ponga: I hate when docs just skip and expect you know it all
[05:38:24] Ropeney: or `source ~/.bash_profile`
[05:38:40] ponga: Ropeney: I log out-ted and in again, and its working now
[05:38:55] Ropeney: ponga: yeah, but to avoid logging out and in again you just do the source command
[05:39:09] bronson: has joined #ruby
[05:39:28] ponga: now I have to learn how to handle gems with bundler
[05:39:37] yfeldblum: has joined #ruby
[05:39:38] Ropeney: bundle install
[05:39:46] aryaching: has joined #ruby
[05:39:54] adgtl: has joined #ruby
[05:40:57] ponga: I'm not yet sure how Rbenv handles gem
[05:43:47] Ropeney: ponga: rbenv installs the gems in the .rbenv directory for the version you have setup for that project, or defaults to global
[05:44:38] ponga: Ropeney: which is the exact sentence Im having trouble to understand, so gems all stay in single folder, and shipped out referring to gemfile?
[05:45:01] Ropeney: yes to everything, except i dont understand "and shipped out referring to gemfile"
[05:45:38] ponga: Ropeney: for example, If I wanted my 2.3.0 to have cinch gem but not my 1.9.3, what would I do
[05:45:46] ponga: install cinch globally then specify in gemfile?
[05:46:02] Ropeney: rbenv local 1.9.3
[05:46:22] ponga: that only sets version in a specific directory
[05:46:33] Ropeney: yes, then the gem is installed for 1.9.3
[05:47:04] Deck`: has joined #ruby
[05:47:22] krzkrz: has joined #ruby
[05:47:38] ponga: Ropeney: but then I'd want different gems for different projects in 1.9.3, which means that's bundler's job?
[05:47:40] ponga: have i got it right
[05:48:03] stevemackinnon: has joined #ruby
[05:48:19] djbkd: has joined #ruby
[05:50:44] stevemac_: has joined #ruby
[05:51:23] TravisTheNavi: Is there a difference between puts and print?
[05:51:33] TravisTheNavi: Rather, what is the difference.
[05:52:37] supremekay: has joined #ruby
[05:52:55] eam: travisthenavi: puts appends a newline
[05:53:27] eam: print *may* append a newline, if you use -l
[05:53:32] eam: or play with some magic globals
[05:54:24] karapetyan: has joined #ruby
[05:54:57] Al2O3: has joined #ruby
[05:55:13] Al2O3: pastie: hi
[05:55:32] ur5us: has joined #ruby
[05:55:41] Al2O3: seems pastie bot is down
[05:55:54] skweek: has joined #ruby
[05:56:05] Al2O3: is there an alternative to pastie.org now that is reliable and best?
[05:56:39] dionysus69: has joined #ruby
[05:58:54] lemur: has joined #ruby
[05:59:20] kinduff: has joined #ruby
[06:01:18] dev-MR: has joined #ruby
[06:01:45] dev-MR: I new to rails and deployment
[06:02:02] ruby[bot]: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[06:02:07] baweaver: that was the one
[06:02:13] ensyde: has joined #ruby
[06:02:28] tjbiddle: has joined #ruby
[06:02:58] dev-MR: Now i get an error when deploying one of my project in remorte server
[06:03:20] RUDIS: has joined #ruby
[06:03:25] Gnut: has joined #ruby
[06:03:33] baweaver: dev-MR: see above
[06:03:44] RUDIS: umm /join #zonalatina
[06:03:56] baweaver: !troll RUDIS
[06:03:56] ruby[bot]: +bbb $a:RUDIS$#ruby-banned RUDIS!*@*$#ruby-banned *!*@gateway/web/cgi-irc/kiwiirc.com/ip.190.92.127.104$#ruby-banned
[06:03:57] ruby[bot]: ruby[bot] kicked RUDIS: is a bannable offense, see http://ruby-community.com/pages/user_rules
[06:04:05] LoneHerm_: has joined #ruby
[06:04:05] ruby[bot]: -bb alam!*@*$#ruby-banned fly2web!*@*$#ruby-banned
[06:04:24] dev-MR: SSHKit::Runner::ExecuteError: Exception while executing as planb@50.116.43.59: bundle exit status: 137 bundle stdout: bash: line 1: 23884 Killed ~/.rvm/bin/rvm default do bundle install --path /home/planb/staging_app/shared/bundle --without development test --deployment --quiet bundle stderr: Nothing written
[06:04:36] dev-MR: anybody please help me
[06:04:44] baweaver: dev-MR: ?rails
[06:04:53] ruby[bot]: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[06:04:54] dev-MR: when cap deploye
[06:05:20] atmosx: has joined #ruby
[06:08:44] dev-MR: has left #ruby: ()
[06:10:13] ensyde: has joined #ruby
[06:19:01] stardiviner: has joined #ruby
[06:23:31] anisha: has joined #ruby
[06:24:53] sneakerhax: has joined #ruby
[06:25:30] tvw: has joined #ruby
[06:27:55] Rodya_: has joined #ruby
[06:28:20] govg: has joined #ruby
[06:29:33] ensyde: has joined #ruby
[06:30:11] idefine: has joined #ruby
[06:31:17] skweek: has joined #ruby
[06:31:39] Brklyn: has joined #ruby
[06:32:53] RTG`: has joined #ruby
[06:35:07] workmad3: has joined #ruby
[06:36:30] lkba: has joined #ruby
[06:36:36] sandstrom: has joined #ruby
[06:38:35] stardiviner: has joined #ruby
[06:40:07] workmad3: has joined #ruby
[06:40:41] zenguy_pc: has joined #ruby
[06:40:46] aganov: has joined #ruby
[06:42:18] Rodya_: has joined #ruby
[06:42:39] adac: has joined #ruby
[06:45:38] workmad3_: has joined #ruby
[06:47:14] Yeomra: has joined #ruby
[06:47:21] jottr: has joined #ruby
[06:49:10] Deck`: has joined #ruby
[06:50:37] workmad3: has joined #ruby
[06:51:29] stevemackinnon: has joined #ruby
[06:52:45] mickey_mouse: has joined #ruby
[06:57:58] roshanavand: has joined #ruby
[06:58:59] SOLDIERz: has joined #ruby
[06:59:04] karapetyan: has joined #ruby
[06:59:25] Deck`: has joined #ruby
[06:59:30] karapetyan: has joined #ruby
[06:59:43] skade: has joined #ruby
[07:00:35] solocshaw: has joined #ruby
[07:01:31] LoneHerm_: has joined #ruby
[07:02:21] aryaching: has joined #ruby
[07:04:22] kirillzh: has joined #ruby
[07:04:49] claw: has joined #ruby
[07:05:28] solars: has joined #ruby
[07:06:01] Infra-Red: has joined #ruby
[07:06:38] duckpuppy: has joined #ruby
[07:11:31] JohnBat26: has joined #ruby
[07:12:14] shevy: any of you use some specific library for colour supporting + ruby CLI commandline? I am not too overly happy the way I use colours myself right now
[07:12:25] Infra-Red: has joined #ruby
[07:14:02] django_: has joined #ruby
[07:14:12] django_: starting the ruby on rails johns hopkins course on Coursera
[07:14:49] lurch_: has joined #ruby
[07:15:23] srenatus: has joined #ruby
[07:16:05] scepticulous: has joined #ruby
[07:17:09] baweaver: shevy: memorize the shell codes like a real dev
[07:17:38] vdamewood: has joined #ruby
[07:17:46] baweaver: https://www.ruby-toolbox.com/categories/Terminal_Coloring - more seriously, normally rainbow
[07:21:20] emilkarl: has joined #ruby
[07:24:33] django_: is ruby awesome?
[07:25:22] baweaver: depends on what you're doing with it.
[07:26:14] mpistone: has joined #ruby
[07:26:43] rakm: has joined #ruby
[07:27:25] konsolebox: has joined #ruby
[07:31:28] redasus: has joined #ruby
[07:32:21] dlitvak: has joined #ruby
[07:35:03] Infra-Red: has joined #ruby
[07:36:22] burgestrand: has joined #ruby
[07:36:22] flughafen_: has joined #ruby
[07:38:38] wethu: has joined #ruby
[07:39:57] ta: has joined #ruby
[07:40:28] lubekpl: has joined #ruby
[07:41:40] Yeomra: has joined #ruby
[07:42:00] govg: has joined #ruby
[07:42:03] beast: has joined #ruby
[07:42:44] infernix: has joined #ruby
[07:42:59] stevemackinnon: has joined #ruby
[07:43:01] haxrbyte: has joined #ruby
[07:45:11] scepticulous: I am having trouble, that Kernel.const_defined(some-const) sometimes returns false in an rails environment. Is there anything known about this or should I not use const_defined?(name) to check before I constantize a dynamically created constant name ?
[07:46:45] last_staff: has joined #ruby
[07:47:47] pawnbox: has joined #ruby
[07:48:02] codecop: has joined #ruby
[07:49:58] ta: has joined #ruby
[07:50:36] wethu: has joined #ruby
[07:52:49] roshanavand: has joined #ruby
[07:54:11] AlexJakeGreen: has joined #ruby
[07:56:11] mpistone: has joined #ruby
[07:56:17] Deck`: has joined #ruby
[07:56:21] moei: has joined #ruby
[07:56:39] blackms: has joined #ruby
[07:58:53] Zggb: has joined #ruby
[07:59:24] jas02: has joined #ruby
[08:00:49] william3: has joined #ruby
[08:03:29] Hanmac: has joined #ruby
[08:04:13] sandstrom: has joined #ruby
[08:05:20] ziyadb: has joined #ruby
[08:10:18] nullFxn: has joined #ruby
[08:10:30] karapetyan: has joined #ruby
[08:12:06] mhoungbo: has joined #ruby
[08:14:49] karapetyan: has joined #ruby
[08:15:21] adgtl: has joined #ruby
[08:15:24] darkf: has joined #ruby
[08:15:35] TomyWork: has joined #ruby
[08:17:05] mdw: has joined #ruby
[08:17:06] mja: has joined #ruby
[08:17:08] pawnbox: has joined #ruby
[08:17:13] al2o3-cr: has joined #ruby
[08:17:15] karapetyan: has joined #ruby
[08:17:59] adac: has joined #ruby
[08:18:01] nullFxn: has joined #ruby
[08:19:57] Hanmac: scepticulous: i think the problem might be some autoload stuff ... hm did you try Object.const_defined? too?
[08:23:27] AxonetBE: has joined #ruby
[08:27:19] einarj: has joined #ruby
[08:27:53] redasus: has joined #ruby
[08:30:46] blackmesa: has joined #ruby
[08:31:39] devbug: has joined #ruby
[08:31:59] karapetyan: has joined #ruby
[08:32:06] avril14th: has joined #ruby
[08:32:42] auzty: has joined #ruby
[08:32:51] karapetyan: has joined #ruby
[08:32:54] dmolina: has joined #ruby
[08:33:35] joonty: has joined #ruby
[08:35:11] User458764: has joined #ruby
[08:35:12] segmond: has joined #ruby
[08:37:03] SCHAAP137: has joined #ruby
[08:37:25] duckpuppy: has joined #ruby
[08:37:51] atmosx: has joined #ruby
[08:37:52] blackmesa: has joined #ruby
[08:38:32] howdoi: has joined #ruby
[08:38:57] Kedare: has joined #ruby
[08:40:11] shredding: has joined #ruby
[08:40:48] bronson: has joined #ruby
[08:40:57] mondok: has joined #ruby
[08:44:06] TheHodge: has joined #ruby
[08:45:55] djbkd: has joined #ruby
[08:47:20] mark2: has joined #ruby
[08:48:14] jottr: has joined #ruby
[08:53:41] cibs: has joined #ruby
[08:54:04] aufi: has joined #ruby
[08:57:43] bkxd: has joined #ruby
[08:57:47] Bloomer: has joined #ruby
[08:58:28] selfadhesivefilm: has joined #ruby
[08:58:46] Xeago: has joined #ruby
[08:59:24] TomPeed: has joined #ruby
[09:02:19] jbrhbr: has joined #ruby
[09:03:16] moeabdol: has joined #ruby
[09:04:47] DoubleMalt: has joined #ruby
[09:04:48] joonty: has joined #ruby
[09:05:36] mdw: has joined #ruby
[09:05:51] tesuji: has joined #ruby
[09:06:09] vikas027: has joined #ruby
[09:06:18] vikas027: has left #ruby: ()
[09:10:31] uehjvh: has joined #ruby
[09:12:34] firstdayonthejob: has joined #ruby
[09:12:37] sftrabbit: has joined #ruby
[09:13:54] gregf_: has joined #ruby
[09:16:01] Xeago: has joined #ruby
[09:16:08] huyderman: has joined #ruby
[09:16:36] ocbtec: has joined #ruby
[09:17:01] neanderslob: has joined #ruby
[09:17:03] dseitz: has joined #ruby
[09:18:42] dexter-tzu: has joined #ruby
[09:19:18] marr: has joined #ruby
[09:20:39] dlitvak: has joined #ruby
[09:21:14] kirillzh: has joined #ruby
[09:21:53] jgt4: has joined #ruby
[09:22:43] lsmola: has joined #ruby
[09:25:26] Infra-Red: has joined #ruby
[09:26:07] stevemackinnon: has joined #ruby
[09:27:51] eGGsha: has joined #ruby
[09:27:52] stevemackinnon: has joined #ruby
[09:28:24] futilegames: has joined #ruby
[09:28:44] dojobo: has joined #ruby
[09:29:12] stevemackinnon: has joined #ruby
[09:29:47] Averna: has joined #ruby
[09:33:16] platzhirsch: has joined #ruby
[09:36:55] bluOxigen: has joined #ruby
[09:38:10] lkba_: has joined #ruby
[09:38:59] william3: has joined #ruby
[09:40:48] futilegames: has joined #ruby
[09:42:13] User458764: has joined #ruby
[09:43:17] dc1: has joined #ruby
[09:46:43] roshanavand: has joined #ruby
[09:47:08] jxs_: has joined #ruby
[09:51:46] william3: has joined #ruby
[09:53:21] dc1: has joined #ruby
[09:54:11] flughafen_: has joined #ruby
[09:54:19] flughafen_: shevy: i'm ready for takeoff
[09:54:57] flughafen_: was anybody here at euruko last year?
[09:55:06] shevy: not me! perhaps chris2
[09:55:11] shevy: or apeiros
[09:55:20] shevy: they are the typical conference monsters
[09:56:25] N3sh108: has joined #ruby
[09:56:31] platzhirsch: has joined #ruby
[09:57:09] N3sh108: hey there. I would like to fetch a page using my own default browser. I just need to be able to fetch a page which would normally require authentication without bothering with it and using the session from my browser
[09:57:11] N3sh108: is that possible?
[09:57:21] FooMunki: has joined #ruby
[09:58:06] ElFerna: has joined #ruby
[09:58:56] kapowaz__: has joined #ruby
[10:00:05] stevemackinnon: has joined #ruby
[10:01:00] kapowaz__: Hi all. I'm looking for a recommendation for a framework written in Ruby that can be used for a project I'd like to create a quick and dirty prototype for. I need something that lets me run quick, regularly recurring jobs (mostly polling a JSON endpoint), at most every 30 seconds or so.
[10:01:28] rodfersou: has joined #ruby
[10:02:11] kapowaz__: Ideally I'd like it to be something I can run through e.g. Heroku without too much thought for environment setup, but ideally also without the need for high worker costs (as I say, dirty prototype)
[10:03:39] minimalism: has joined #ruby
[10:03:52] tilllt: has joined #ruby
[10:04:40] redasus: has joined #ruby
[10:06:06] dajobat: has joined #ruby
[10:09:34] tilllt: hey people, beginner question here. I got a gem, which is a wrapper around the ffprober tool that comes with ffmpeg. it outputs metadata about mediafiles. i can see that the output contains a json hash, but i don???t know how to access it since i don???t understand what kind of data type the gem returns, if anyone could take a look, that would be great. output is here: https://gist.github.com/tilllt/73983d3579a46aed0993
[10:09:36] ramfjord: has joined #ruby
[10:10:07] Ishido: has joined #ruby
[10:12:08] ljarvis: kapowaz: just use plain Ruby maybe with something like Sidekiq?
[10:12:36] evidex: has joined #ruby
[10:12:37] shevy: tilllt you need to access the @json variable
[10:12:44] shevy: ideally, they will have a method called .json that will allow you that
[10:12:53] ljarvis: tilllt: wow they made the json ivar private
[10:12:56] ljarvis: that's some awful api
[10:13:49] Pumukel: has joined #ruby
[10:13:51] william3: has joined #ruby
[10:13:55] tilllt: shevy, ljarvis: so what are my options to get to the json then?
[10:14:25] shevy: tilllt well https://github.com/beanieboi/ffprober/blob/master/lib/ffprober/parsers/json.rb
[10:14:47] shevy: I would probably simply add a .json method to Ffprober::Wrapper
[10:14:53] shevy: no idea why they do not make that already
[10:15:00] ljarvis: tilllt: instance_variable_get or a monkeypatch, OR you can just do what this method does: https://github.com/beanieboi/ffprober/blob/master/lib/ffprober/parser.rb#L5 yourself
[10:15:09] dlitvak: has joined #ruby
[10:15:31] shevy: btw the maintainer seems active, perhaps you can file a github issue request, last change a day ago
[10:16:41] ljarvis: there's absolutely a case for exposing the json method
[10:17:05] moeabdol1: has joined #ruby
[10:17:15] karapetyan: has joined #ruby
[10:17:51] tilllt: shevy, ljarvis: thanks for the pointers, i was going crazy about this since everyone always said, ???well just do ffprober.json that works???...
[10:17:58] mdw: has joined #ruby
[10:18:03] chouhoulis: has joined #ruby
[10:22:25] wolffles: has joined #ruby
[10:23:07] aufi: has joined #ruby
[10:26:57] trinaldi: has joined #ruby
[10:28:32] kerunaru: has joined #ruby
[10:28:43] domgetter: has joined #ruby
[10:29:01] depesz: has left #ruby: ("WeeChat 1.4-rc1")
[10:29:01] ccaffeini: has joined #ruby
[10:29:29] domgetter: Is there a construct in Ruby for opening up a block-like thing that has its own lexical scope and evaluates in-place?
[10:29:40] ldnunes: has joined #ruby
[10:30:17] triangles: has joined #ruby
[10:31:14] triangles: has joined #ruby
[10:31:35] shevy: is this a meta question?
[10:32:08] triangles: has joined #ruby
[10:33:00] triangles: has joined #ruby
[10:33:00] kalopsian: has joined #ruby
[10:34:00] triangles: has joined #ruby
[10:35:01] Zai00: has joined #ruby
[10:35:25] triangles: has joined #ruby
[10:35:42] william3: has joined #ruby
[10:36:15] triangles: has joined #ruby
[10:37:19] triangles: has joined #ruby
[10:37:24] Cohedrin: has joined #ruby
[10:37:40] saltsa: has joined #ruby
[10:38:09] triangles: has joined #ruby
[10:38:09] duckpuppy: has joined #ruby
[10:39:01] triangles: has joined #ruby
[10:39:48] triangles: has joined #ruby
[10:40:49] zacstewa_: has joined #ruby
[10:40:50] william3: has joined #ruby
[10:41:02] baweaver: has joined #ruby
[10:43:36] illbyte_: has joined #ruby
[10:44:22] bkxd: has joined #ruby
[10:44:43] illbyte_: has joined #ruby
[10:45:58] roshanavand: has joined #ruby
[10:46:36] karapetyan: has joined #ruby
[10:47:20] dede: has joined #ruby
[10:48:53] chris2: domgetter: lambda { ... }[] ?
[10:49:00] jottr: has joined #ruby
[10:49:14] chris2: not that people would use that
[10:50:04] domgetter: chris2: thanks, that does work.
[10:50:27] burgestrand: has joined #ruby
[10:50:42] domgetter: shevy: Someone on Reddit wanted to know what his Scala code would look like in Ruby
[10:51:28] illbyte_: has left #ruby: ()
[10:51:40] domgetter: People get so uppity about monads
[10:52:41] arooni: has joined #ruby
[10:52:50] chris2: it would look nonidiomatic ;)
[10:54:04] domgetter: chris2: haha, I agree. I ended up writing a method that would yield *entries for me
[10:54:48] mg^^: has joined #ruby
[10:56:11] despai: has joined #ruby
[10:56:45] dlitvak: has joined #ruby
[10:59:00] chris2: TIL 3.6 kann suspend to both?
[10:59:45] domgetter: shevy: you might like my Monads for Rubyist slides: https://docs.google.com/presentation/d/1Z2CNCZtW6RfnBuX5QcqEWMIKAC4JbpOc00eklmzuy-8/edit?usp=sharing
[11:01:05] shiver: has joined #ruby
[11:01:56] shevy: I always need to see that something is useful before my old brain can accept it
[11:02:17] shevy: I haven't yet understood monads
[11:02:50] domgetter: I'll admit there's a good argument that they're useless in Ruby
[11:02:57] Yeomra: has joined #ruby
[11:03:16] domgetter: Here's a possible use case: authorization wrapping: https://gist.github.com/domgetter/7cfed4e1938de458e153
[11:03:53] shevy: where is the monad hiding
[11:03:59] dionysus69: has joined #ruby
[11:04:00] shevy: it's like Waldo
[11:04:19] domgetter: The Authorization class is the monad in that example
[11:04:25] mdw: has joined #ruby
[11:04:37] Brklyn: has joined #ruby
[11:04:59] domgetter: it A) wraps values, B) lets you call methods on wrapped values (using #map), and C) always returns another instance of itself when you do that
[11:06:53] User458764: has joined #ruby
[11:07:34] law: has left #ruby: ()
[11:08:01] davedev24: has joined #ruby
[11:08:10] kapowaz: ljarvis: I was looking into sidekiq, but it looks more for scheduled tasks? Maybe eventmachine is the way to go?
[11:08:45] workmad3_: has joined #ruby
[11:09:51] govg: has joined #ruby
[11:09:57] ramfjord_: has joined #ruby
[11:09:58] oz`: has joined #ruby
[11:10:14] Yzguy: has joined #ruby
[11:10:22] william3: has joined #ruby
[11:10:24] N3sh108_: has joined #ruby
[11:10:31] n00bDev: has joined #ruby
[11:10:44] GinoManWorks_: has joined #ruby
[11:11:36] anisha_: has joined #ruby
[11:12:02] aibot__: has joined #ruby
[11:12:05] bkxd: has joined #ruby
[11:12:17] user083_: has joined #ruby
[11:12:33] wolffles: has joined #ruby
[11:12:40] gfdhjf: has joined #ruby
[11:12:44] gfdhjf: hi everyone
[11:12:49] gfdhjf: burn all jews in oven
[11:12:51] gfdhjf: death to infidels
[11:12:56] havenwood: !troll gfdhjf
[11:12:57] ruby[bot]: +bb gfdhjf!*@*$#ruby-banned *!*@85-76-101-54-nat.elisa-mobile.fi$#ruby-banned
[11:12:58] ruby[bot]: ruby[bot] kicked gfdhjf: is a bannable offense, see http://ruby-community.com/pages/user_rules
[11:13:05] ahuman: has joined #ruby
[11:13:05] ruby[bot]: -bb EthanAllen!*@*$#ruby-banned JuckFews!*@*$#ruby-banned
[11:13:10] zacts: has joined #ruby
[11:13:18] alnewkirk: has joined #ruby
[11:13:34] incite: has joined #ruby
[11:13:34] funnel: has joined #ruby
[11:13:42] genpaku: has joined #ruby
[11:13:55] dajobat: domgetter: Those slides were interesting, cheers.
[11:14:02] guacamole: has joined #ruby
[11:16:29] M-Kodo: has joined #ruby
[11:16:56] perry: has joined #ruby
[11:17:02] uber: has joined #ruby
[11:17:04] zacstewart: has joined #ruby
[11:17:06] bahar: has joined #ruby
[11:17:12] Jello_Raptor: has joined #ruby
[11:17:14] ur5us: has joined #ruby
[11:17:15] spacemud: has joined #ruby
[11:17:24] perry: has joined #ruby
[11:17:27] xMopxShell: has joined #ruby
[11:18:14] Nuck: has joined #ruby
[11:18:21] crank1988: has joined #ruby
[11:18:46] chouhoulis: has joined #ruby
[11:20:56] mhoungbo: has joined #ruby
[11:21:00] Jardayn: has joined #ruby
[11:23:18] rht: has joined #ruby
[11:23:32] c355E3B: has joined #ruby
[11:23:46] kalopsian: has joined #ruby
[11:24:26] mondok: has joined #ruby
[11:25:03] hightower3: has joined #ruby
[11:25:14] minimalism: has joined #ruby
[11:25:15] jpoole: has joined #ruby
[11:25:40] firstdayonthejob: has joined #ruby
[11:26:12] jokester: has joined #ruby
[11:26:24] yxhuvud: has joined #ruby
[11:27:03] jgt4: has joined #ruby
[11:28:03] andikr: has joined #ruby
[11:28:37] sdothum: has joined #ruby
[11:29:00] scepticulous: hanmac: no, I did not. Its hard to debug since the error occurs only sometimes.
[11:29:17] dlitvak: has joined #ruby
[11:29:53] shellie_: I have this, each block, where I need to track if a specific element is found and then use it after the block, so I have a 'found' variable in function block - is there a more ruby-ist way of doing this?
[11:30:45] platzhirsch: has left #ruby: ()
[11:31:22] AlexRussia_: has joined #ruby
[11:31:59] scepticulous: Is there a way to extract a specific element out of a ruby hash so that I end up with an array of the match and the rest of the hash ?
[11:32:32] scepticulous: well no, not hash, i mean array
[11:32:50] scepticulous: like match,rest = arr.myshift{|elem| elem == foo }
[11:33:07] redasus: has joined #ruby
[11:34:24] burgestrand: scepticulous partition is similar, http://ruby-doc.org/core-2.3.0/Enumerable.html#method-i-partition
[11:34:40] scepticulous: Burgestrand: thanks, I will take a look at it
[11:35:11] burgestrand: scepticulous otherwise you have Hash#delete_if which mutates the hash, http://ruby-doc.org/core-2.3.0/Hash.html#method-i-delete_if
[11:35:31] scepticulous: yes, I tried to not modify the original data.
[11:36:09] scepticulous: paritition will work for me
[11:36:20] burgestrand: scepticulous alright, keep in mind I believe partition will return an arryified version of your hash, you need to convert either side back to a hash if you want it in that form, using Hash.[]
[11:36:24] william3: has joined #ruby
[11:36:34] burgestrand: scepticulous http://ruby-doc.org/core-2.3.0/Hash.html#method-c-5B-5D
[11:36:44] aupadhye: has joined #ruby
[11:37:59] scepticulous: ok. I was confused anyway. I am working with an array. ( array of hashes )
[11:38:14] Jonah11_: has joined #ruby
[11:38:15] scepticulous: thus first,rest = partition{}.flatten seems to work
[11:38:31] scepticulous: however I dont know if there is a more efficient way to move the matching element to the front
[11:39:25] burgestrand: Probably not worth it if this is just a fraction of the actual running time.
[11:39:43] burgestrand: No point in shaving off 3ms if things take 3s to run anyway.
[11:40:05] ledestin: has joined #ruby
[11:40:41] scepticulous: yepp, totally agree, there is currently no need for optimization. I just wanted to make sure, that I am not misusing partition here to make it behave like someting I just missed
[11:40:50] hamed_r: has joined #ruby
[11:41:32] jottr: has joined #ruby
[11:41:42] burgestrand: I can't think of any. :)
[11:41:48] Xeago: has joined #ruby
[11:44:30] mikecmpbll: has joined #ruby
[11:44:34] newbie22: has joined #ruby
[11:44:57] modin: has joined #ruby
[11:45:57] Xeago: has joined #ruby
[11:47:27] FooMunki: has joined #ruby
[11:49:01] zacstewart: has joined #ruby
[11:49:35] cookiez: has joined #ruby
[11:49:40] platzhirsch: has joined #ruby
[11:49:49] johnny56: has joined #ruby
[11:50:39] maikowblue: has joined #ruby
[11:52:24] arthropododo: has joined #ruby
[11:52:44] akem: has joined #ruby
[11:53:14] tjbiddle: has joined #ruby
[11:55:49] jaiks: has joined #ruby
[11:56:28] ElFerna: has joined #ruby
[11:57:14] bauruine: has joined #ruby
[12:01:08] last_staff: has joined #ruby
[12:01:54] aupadhye: has joined #ruby
[12:07:01] adgtl: has joined #ruby
[12:07:13] Shaboum: has joined #ruby
[12:07:40] N3sh108: has joined #ruby
[12:10:19] kerunaru: has joined #ruby
[12:10:24] crdpink: has joined #ruby
[12:11:11] sandstrom: has joined #ruby
[12:11:12] n00bDev: has joined #ruby
[12:11:15] burgestrand: has joined #ruby
[12:13:32] aryaching: has joined #ruby
[12:13:57] william3: has joined #ruby
[12:15:08] william3: has joined #ruby
[12:16:14] workmad3: has joined #ruby
[12:16:37] marr: has joined #ruby
[12:17:21] zacstewart: has joined #ruby
[12:18:30] Mon_Ouie: has joined #ruby
[12:19:36] chouhoulis: has joined #ruby
[12:20:56] adgtl: has joined #ruby
[12:22:31] kobain: has joined #ruby
[12:24:36] kalopsian: has joined #ruby
[12:28:06] blackmesa: has joined #ruby
[12:28:55] crdpink2: has joined #ruby
[12:29:48] shevy: shellie_ you mean to return the first match found?
[12:30:24] shevy: I think it is either .select or probably .find ... at any rate I am quite sure that Enumerable should have that, perhaps yet another name
[12:31:22] hxegon: has joined #ruby
[12:31:32] Abrin: has joined #ruby
[12:33:00] bronson: has joined #ruby
[12:33:18] flughafen_: has joined #ruby
[12:33:44] daivyk: has joined #ruby
[12:33:51] askhat: has joined #ruby
[12:34:43] N3sh108: has joined #ruby
[12:35:18] bruce_lee: has joined #ruby
[12:35:46] bruce_lee: has joined #ruby
[12:36:04] newbie22: has joined #ruby
[12:37:51] stevemackinnon: has joined #ruby
[12:38:54] duckpuppy: has joined #ruby
[12:39:11] aupadhye: has joined #ruby
[12:40:28] berserk_ren: has joined #ruby
[12:40:53] skade: has joined #ruby
[12:41:41] argyaista: has joined #ruby
[12:42:07] argyaista: has left #ruby: ()
[12:42:15] baweaver: has joined #ruby
[12:45:00] duckpuppy: has joined #ruby
[12:45:29] william3: has joined #ruby
[12:45:42] william3: has joined #ruby
[12:46:59] Kollosus: has joined #ruby
[12:47:02] dlitvak: has joined #ruby
[12:47:30] bahar: has joined #ruby
[12:48:28] Kollosus: has left #ruby: ()
[12:50:39] dlitvak_: has joined #ruby
[12:51:00] TomPeed: has joined #ruby
[12:52:11] zacstewart: has joined #ruby
[12:53:15] pawnbox: has joined #ruby
[12:59:35] platzhirsch: has left #ruby: ()
[13:01:00] roshanavand: has joined #ruby
[13:01:31] Xeago: has joined #ruby
[13:02:05] krzkrz: has joined #ruby
[13:02:06] roshanavand: has joined #ruby
[13:05:07] gambl0re: has joined #ruby
[13:07:46] codecop: has joined #ruby
[13:07:59] hightower3: has joined #ruby
[13:11:56] n00bDev: has joined #ruby
[13:12:28] hxegon: has joined #ruby
[13:13:25] despai: has joined #ruby
[13:13:57] william3: has joined #ruby
[13:13:59] arietis: has joined #ruby
[13:14:29] arietis: hey guys, could anyone explain to me what Array.inject(:+) method does?
[13:14:33] ElFerna: has joined #ruby
[13:16:00] arietis: can i assume that it's returning the sum of all elements for case of array with integer values?
[13:16:49] joonty: has joined #ruby
[13:20:20] chouhoulis: has joined #ruby
[13:21:12] Taxidea: has joined #ruby
[13:21:38] jgpawletko: has joined #ruby
[13:22:10] mooru: has joined #ruby
[13:23:32] gigetoo: has joined #ruby
[13:25:05] c0m0: has joined #ruby
[13:25:51] Jonah11_: has joined #ruby
[13:26:03] Zai00: has joined #ruby
[13:26:59] dajobat: arietis: I assume you mean the :+ needs explaining?
[13:27:32] EdwardIII: hey, if i implement Enumerable but i want length... what should i do? is Enumerable the right thing to implement? .length doesn't seem to be available (i guessed maybe it would use .each?)
[13:28:33] dajobat: the :+ is a symbol which points to the plus method, injects can take symbols in. if you used :* then it would multiply them all.
[13:29:03] dajobat: it's equivalent to doing array.inject(0) { |acc, x| acc + x} I think
[13:29:24] Taxidea: has joined #ruby
[13:29:53] shevy: hmm question... some gems use something like:
[13:29:55] shevy: VERSION = "2.1.0".freeze
[13:29:59] shevy: why is this done?
[13:30:54] dajobat: arietis: If you look at the Enumerable#inject documentation it has a little paragraph about injects where no block is passed, and what it does with the symbols.
[13:31:25] akem: has joined #ruby
[13:31:52] sonOfRa: has joined #ruby
[13:37:16] adgtl: has joined #ruby
[13:37:43] blackmesa: has joined #ruby
[13:41:49] mdw: has joined #ruby
[13:42:43] hightower4: has joined #ruby
[13:43:02] vikas027_: has joined #ruby
[13:43:11] vikas027_: has left #ruby: ()
[13:44:21] adgtl_: has joined #ruby
[13:47:21] kalopsian: has joined #ruby
[13:47:54] Jonah11_: has joined #ruby
[13:48:19] heftig: dajobat: without the 0
[13:48:47] heftig: inject has no idea what the zero element is
[13:50:58] heftig: i.e. the identity element
[13:51:39] dajobat: heftig: it's not the zeroth element, it's passing the value 0 to the accumulator.
[13:51:45] despai: has joined #ruby
[13:51:59] heftig: dajobat: i was speaking in algebraic terms
[13:52:36] heftig: what you said would be equivalent to inject(0, :+), not inject(:+) as you claimed
[13:53:03] kalopsian: has joined #ruby
[13:53:08] sgambino: has joined #ruby
[13:54:19] adgtl: has joined #ruby
[13:54:34] lessless: has joined #ruby
[13:55:56] burgestrand: has joined #ruby
[13:55:59] jgt4: has joined #ruby
[13:57:07] dajobat: heftig: Ah, yeah. Thanks!
[13:57:13] yalue: has joined #ruby
[13:57:31] govg: has joined #ruby
[13:58:41] aryaching: has joined #ruby
[14:00:05] duckpuppy: has joined #ruby
[14:00:42] cdg: has joined #ruby
[14:00:57] cdg: has joined #ruby
[14:01:25] B1n4r10: has joined #ruby
[14:01:46] cdg: has joined #ruby
[14:02:22] User458764: has joined #ruby
[14:06:39] adgtl: has joined #ruby
[14:06:48] dajobat: shevy: did you figure out the VERSION freeze thing?
[14:07:29] VeryBewitching: has joined #ruby
[14:07:34] mooru: has joined #ruby
[14:07:51] flujan: has joined #ruby
[14:07:56] VeryBewitching: Good morning folks.
[14:08:47] flujan: Hello, I have some ruby scripts inside a Rails app. My script require some gems. When I start the script it will use the Gemfile of the rails app?
[14:09:21] zacstewa_: has joined #ruby
[14:09:23] amb77: has joined #ruby
[14:10:49] JDiPierro: has joined #ruby
[14:12:46] n00bDev: has joined #ruby
[14:13:41] UtkarshRay: has joined #ruby
[14:14:07] EdwardIII: hm i'm going crazy on something very basic
[14:14:28] EdwardIII: i've got def self.find(**opts) but in one place i'm getting ArgumentError: wrong number of arguments (1 for 0)
[14:15:31] burgestrand: flujan yes, Rails requires bundler, which in turn will utilize the Gemfile.
[14:17:04] burgestrand: EdwardIII how are you calling it?
[14:17:37] EdwardIII: ah hmm it's Enumerable, and Enumerable already contains find heh
[14:17:40] adgtl: has joined #ruby
[14:18:05] EdwardIII: Burgestrand: lemme gist it
[14:18:24] burgestrand: EdwardIII code is always lovely :)
[14:18:53] aegis3121: has joined #ruby
[14:19:21] flujan: Burgestrand: So the single script that only requires ???active_record??? will use the Gemfile version, right?
[14:19:54] burgestrand: flujan it depends, do you also require ./config/environment.rb, the one that boots up rails, before that?
[14:19:57] EdwardIII: Burgestrand: https://gist.github.com/EdwardIII/5268fc0f7b0c1b792836#file-controller-rb-L7
[14:20:09] burgestrand: flujan if you want to use the Gemfile without Rails, you can require 'bundler/setup'
[14:20:59] BSaboia: has joined #ruby
[14:21:24] chouhoulis: has joined #ruby
[14:22:40] EdwardIII: looks like it's nothing to do with Enumerable already containing a find method
[14:22:45] EdwardIII: which kind of makes sense
[14:24:10] shevy: dajobat nope, still not entirely sure
[14:24:15] burgestrand: EdwardIII I have a theory, I will try it, since `params` is not a true hash but a wrapped object, maybe ruby does not unwrap it properly
[14:24:29] shevy: dajobat it's made more annoying by the fact that like 80% of the gem authors don't do this, 20% do this
[14:25:03] EdwardIII: Burgestrand: hrm ok
[14:25:26] EdwardIII: shevy: you're right
[14:26:10] burgestrand: EdwardIII try to call it with .find(params.to_h)
[14:26:18] rht: has joined #ruby
[14:26:27] burgestrand: EdwardIII looks like my theory is correct :)
[14:26:31] hdfhdf: has joined #ruby
[14:26:44] kobain: has joined #ruby
[14:26:48] EdwardIII: Burgestrand: you're right, rather heh
[14:26:58] redasus: has joined #ruby
[14:27:14] shevy: Burgestrand always makes me so hungry just from the nick alone...
[14:27:36] william3: has joined #ruby
[14:27:59] kobain: has joined #ruby
[14:28:48] burgestrand: burgerstand.se actually redirects to burgestrand.se ;)
[14:29:04] dlitvak: has joined #ruby
[14:29:23] fahrradflucht: has joined #ruby
[14:29:39] devbug: has joined #ruby
[14:29:47] malconis: has joined #ruby
[14:30:27] krobzaur: has joined #ruby
[14:31:16] beast: has joined #ruby
[14:32:27] adgtl: has joined #ruby
[14:32:36] EdwardIII: Burgestrand: this is weird
[14:32:56] EdwardIII: Burgestrand: if i do params.symbolize_keys it works. if i do params.to_h it doesn't work
[14:33:06] bmalum: has joined #ruby
[14:33:52] burgestrand: EdwardIII not so weird, https://eval.in/513761
[14:34:01] EdwardIII: .to_h results in ArgumentError: wrong number of arguments (1 for 0)
[14:34:02] celly: has joined #ruby
[14:34:07] User458764: has joined #ruby
[14:34:11] karapetyan: has joined #ruby
[14:34:14] burgestrand: EdwardIII keyword arguments (**options) work with symbol keys
[14:34:45] EdwardIII: so what's the most estoeric way to handle this? just use .symbolize_keys?
[14:34:47] burgestrand: EdwardIII I'd advice you not to symbolize all of the param keys, it opens you up to abuse :)
[14:35:00] EdwardIII: heh er well i kind of need it for another reason
[14:35:06] EdwardIII: which is possibly satanic. let me show you
[14:35:15] zacstewart: has joined #ruby
[14:35:18] burgestrand: EdwardIII for one, you probably want to extract the parameters you actually want instead of passing them *all*
[14:35:51] burgestrand: EdwardIII if you do that, it becomes safe to symbolize the keys as well since there can never be more keys than what you extract, i.e. it'll be locked down
[14:35:56] krzkrz: has joined #ruby
[14:36:13] EdwardIII: Burgestrand: https://gist.github.com/EdwardIII/52cc7aa092fbb7acf5e2
[14:36:29] burgestrand: Yeah, danger danger :)
[14:36:39] burgestrand: Or, well, it depends??? which version of ruby?
[14:36:49] rht: has joined #ruby
[14:37:03] william3: has joined #ruby
[14:37:14] babblebre: has joined #ruby
[14:37:46] burgestrand: EdwardIII ah, nice, ruby 2.2 is the first version that allows garbage collection of symbols, so not so dangerous any more
[14:37:55] EdwardIII: but in a bit i will probably do some params processing of the params in the controller soon
[14:38:17] EdwardIII: going from params straight to an api is kinda asking for trouble heh
[14:39:36] burgestrand: EdwardIII additionally ruby keyword arguments are locked down so you don't need to do the fetching
[14:40:08] EdwardIII: Burgestrand: well here's the dirty bit
[14:40:22] EdwardIII: Burgestrand: that was just a quick check to throw an ex. if a required key was missing
[14:40:43] aufi: has joined #ruby
[14:40:47] shevy: Burgestrand hmm I remember your nick as ancient from #ruby-lang but you must not have been active on IRC for like a few hundred years or so. Since when have you been writing ruby code by the way?
[14:41:14] idefine: has joined #ruby
[14:41:56] amb77: has joined #ruby
[14:42:52] polishdub: has joined #ruby
[14:42:59] imperator: has joined #ruby
[14:43:08] nerium: has joined #ruby
[14:43:09] burgestrand: EdwardIII https://eval.in/513780
[14:43:32] Lochez: has joined #ruby
[14:44:10] EdwardIII: Burgestrand: ah, i should be using that instead then heh
[14:45:27] freerobby: has joined #ruby
[14:45:37] idefine: has joined #ruby
[14:46:27] adgtl: has joined #ruby
[14:46:43] burgestrand: shevy very dormant for the past 4 years :)
[14:47:04] DoubleMalt: has joined #ruby
[14:50:59] burgestrand: shevy been popping my head in here every now and then during this time but not regularly
[14:52:46] karapetyan: has joined #ruby
[14:53:07] burgestrand: shevy used to be a regular for like two years, started doing professional ruby development at elabs (http://elabs.se/) and more or less stopped coding for hobby :)
[14:53:27] sanguisdex: has joined #ruby
[14:53:39] davedev24: has joined #ruby
[14:54:29] despai_: has joined #ruby
[14:54:36] TomPeed: has joined #ruby
[14:55:22] burgestrand: shevy or, well, I just stopped coding at home rather, I still had plenty of time to code non-client things at elabs :)
[14:55:35] shevy: work sucks the fun out of people!
[14:56:06] burgestrand: shevy in my case I was just having too much fun of one thing, so I compensated by having much fun with other things at home (such as gaming)
[14:56:20] burgestrand: but I don't disagree ;)
[14:57:16] Yeomra: has joined #ruby
[14:59:21] Brklyn: has joined #ruby
[15:00:47] karapetyan: has joined #ruby
[15:01:39] decoponio: has joined #ruby
[15:03:09] amb77: has joined #ruby
[15:04:22] SwiftFox: has joined #ruby
[15:05:06] idefine: has joined #ruby
[15:05:25] dhollinger: has joined #ruby
[15:05:49] MaveonRemaes: has joined #ruby
[15:06:05] dhollinger: has joined #ruby
[15:08:28] ruby_: has joined #ruby
[15:08:42] johnmilton: has joined #ruby
[15:08:43] adgtl: has joined #ruby
[15:08:43] ramortegui: has joined #ruby
[15:09:59] saltsa: has joined #ruby
[15:10:39] glcx: has joined #ruby
[15:10:42] Sheperson: has joined #ruby
[15:11:50] imperator: Burgestrand, board or video?
[15:12:32] jds: has joined #ruby
[15:13:00] dlitvak_: has joined #ruby
[15:13:04] Macaveli: has joined #ruby
[15:14:29] x77686d: has joined #ruby
[15:14:42] Rodya_: has joined #ruby
[15:14:45] n00bDev: has joined #ruby
[15:14:46] adgtl: has joined #ruby
[15:14:51] william3: has joined #ruby
[15:16:06] amb77: has joined #ruby
[15:16:10] mdw: has joined #ruby
[15:16:56] dEPy: has joined #ruby
[15:16:58] whippythellama: has joined #ruby
[15:17:25] zast: has joined #ruby
[15:17:42] dEPy: Is there a way to see on how many other classes and object/class depends? Like A.constants ?
[15:18:20] mfb2: has joined #ruby
[15:18:20] johnmilton: has joined #ruby
[15:18:36] duckpuppy: has joined #ruby
[15:19:06] amb77: has left #ruby: ()
[15:19:39] BrunoSaboia: has joined #ruby
[15:19:55] mary5030: has joined #ruby
[15:20:45] johnmilton: has joined #ruby
[15:20:49] sepp2k: has joined #ruby
[15:21:39] sgambino: has joined #ruby
[15:21:50] effektz: has joined #ruby
[15:22:25] shevy: don't think so. you get the dependency chain perhaps via .ancestors but I don't think you can easily get more information, perhaps in ObjectSpace
[15:23:43] lorn: has joined #ruby
[15:23:43] EdwardIII: when i'm hacking around in the debugger is there a way for me to see the retval for the last line?
[15:23:44] mary5030: has joined #ruby
[15:24:22] Mon_Ouie: has joined #ruby
[15:24:42] agentmeerkat: has joined #ruby
[15:25:28] sandstrom: has joined #ruby
[15:25:40] mooru: has joined #ruby
[15:26:19] dEPy: shevy: tnx. I'm trying to find a tool to easily check dependencies in my ruby files. Just look up what classes or modules it uses so maybe I could make a graph and see what files have too many dependencies. Any tool like that maybe?
[15:26:33] uris: has joined #ruby
[15:26:39] adgtl: has joined #ruby
[15:27:27] troulouliou_div2: has joined #ruby
[15:27:53] dlitvak: has joined #ruby
[15:27:59] scepticulous: has joined #ruby
[15:28:25] shevy: that reminds me dEPy
[15:28:34] shevy: I think hanmac wrote a graph-drawer in ruby graphviz
[15:28:47] dajobat: has joined #ruby
[15:29:16] shevy: I am not sure if it keeps any manual track of the amount of times any object is used or something, but I think he drew the proper ependency chain... the pictures created were huge though, dunno where the code is *poke hanmac*
[15:30:44] dEPy: Maybe I could just go trough files and match any camel cae string including those seperated with :: :)
[15:30:52] dEPy: That's the simplest thing I can think of
[15:31:32] stannard: has joined #ruby
[15:33:34] quaristice: has joined #ruby
[15:33:35] FooMunki: has joined #ruby
[15:33:37] karapetyan: has joined #ruby
[15:35:00] B1n4r10: has joined #ruby
[15:37:16] kies^: has joined #ruby
[15:37:22] dionysus69: has joined #ruby
[15:37:55] william3: has joined #ruby
[15:38:10] karapetyan: has joined #ruby
[15:40:35] Shaboum: has joined #ruby
[15:41:47] failshell: has joined #ruby
[15:43:03] gregf_: has left #ruby: ()
[15:43:35] karapetyan: has joined #ruby
[15:44:09] dajobat: Anyone working on anything interesting?
[15:44:40] gregf___: has joined #ruby
[15:45:50] shevy: dajobat I am trying to find out which names I have forgotten in one gem ... https://www.w3.org/TR/SVG11/types.html#ColorKeywords I have only like 128 or so and they have like 143 or so
[15:45:54] shevy: not very interesting :D
[15:46:36] adgtl: has joined #ruby
[15:48:01] Conflict: has joined #ruby
[15:48:58] sgambino: has joined #ruby
[15:49:52] shevy: I'd love to do more advanced things in ruby
[15:50:23] shevy: like a VM allowing to control how something is compiled; control what and where something is installed
[15:51:42] idefine: has joined #ruby
[15:51:46] Deck`: has joined #ruby
[15:51:57] idefine: has joined #ruby
[15:53:26] sucks: has joined #ruby
[15:53:51] antgel: has joined #ruby
[15:54:11] Hanmac: has joined #ruby
[15:54:39] jgt4: has joined #ruby
[15:55:45] casadei: has joined #ruby
[15:56:16] FooMunki: has joined #ruby
[15:57:09] VeryBewitching: My Kingdom for a PHP framework that doesn't make me want to become suddenly murderous.
[15:57:15] burgestrand: imperator both I guess :)
[15:57:26] VeryBewitching: I need to find Rails work.
[15:57:54] agent_white: has joined #ruby
[15:58:04] duckpuppy: has joined #ruby
[15:58:12] Al2O3: has joined #ruby
[15:59:03] wscmsa: has joined #ruby
[15:59:25] mdw: has joined #ruby
[15:59:28] tatsuo: has joined #ruby
[16:02:12] Frem: has joined #ruby
[16:02:16] dlitvak_: has joined #ruby
[16:03:15] Brando753: has joined #ruby
[16:03:26] waka_: has joined #ruby
[16:03:51] wanderer_: has joined #ruby
[16:04:17] dc1: has joined #ruby
[16:04:18] peterhu: has joined #ruby
[16:04:46] havenn: has joined #ruby
[16:04:46] havenn: has joined #ruby
[16:05:07] flughafen_: has joined #ruby
[16:05:10] nofacade: has joined #ruby
[16:05:17] User458764: has joined #ruby
[16:05:26] duderon__: has joined #ruby
[16:05:46] kobain: has joined #ruby
[16:05:57] griffindy: has joined #ruby
[16:06:16] shaman42_: has joined #ruby
[16:06:37] kobain: has joined #ruby
[16:07:00] bakingbread: has joined #ruby
[16:07:50] genpaku_: has joined #ruby
[16:07:58] agent_wh1te: has joined #ruby
[16:08:03] Rutix: has joined #ruby
[16:08:03] Rutix: has joined #ruby
[16:08:41] Dreamer3_: has joined #ruby
[16:08:53] ozzloy_: has joined #ruby
[16:08:55] j416_: has joined #ruby
[16:09:05] mpistone: has joined #ruby
[16:09:47] adgtl: has joined #ruby
[16:09:48] flughafe1: has joined #ruby
[16:09:54] guacamol1: has joined #ruby
[16:10:54] iszak: has joined #ruby
[16:10:54] iszak: has joined #ruby
[16:11:06] greenhat|: has joined #ruby
[16:11:09] TomyLobo: has joined #ruby
[16:11:15] M-shine: has joined #ruby
[16:12:38] tomchapin: has joined #ruby
[16:13:03] jinie_: has joined #ruby
[16:13:24] Jonah11_: has joined #ruby
[16:14:02] dajobat: Yeah, annoyingly I only really use ruby for scripting stuff at work, and a few minor projects at home.
[16:14:43] ElFerna: has joined #ruby
[16:15:32] n00bDev: has joined #ruby
[16:15:39] jpoole: has left #ruby: ()
[16:15:45] Gnut: has joined #ruby
[16:15:53] Rodya_: has joined #ruby
[16:17:34] badeball: has joined #ruby
[16:18:25] dannluciano: has joined #ruby
[16:18:52] adgtl: has joined #ruby
[16:19:13] agent_wh1te: Mornin' folks
[16:19:29] pipework: agent_wh1te: I concur, thanks to UGT.
[16:19:34] ldnunes: has joined #ruby
[16:19:55] agent_wh1te: UGT's sun is up too much. No time to sleep. But it's morning here :)
[16:20:27] EdwardIII: i quite like all this ruby sugar
[16:20:32] EdwardIII: but i wonder if it's bad for my teeth heh
[16:20:37] EdwardIII: implicit return caught me out
[16:20:43] adgtl: has joined #ruby
[16:22:06] sandstrom: has joined #ruby
[16:22:24] TinyHats: has joined #ruby
[16:23:12] flujan: has joined #ruby
[16:24:15] Rodya_: has joined #ruby
[16:24:53] dajobat: hello tatsuo, agent_wh1te
[16:25:10] d10n-work: has joined #ruby
[16:25:26] tatsuo: nice to mee you :)
[16:25:34] tatsuo: meet you :-0
[16:26:11] chouhoulis: has joined #ruby
[16:26:21] afx_: has joined #ruby
[16:27:00] imperator: has left #ruby: ("Leaving")
[16:27:03] ElFerna: has joined #ruby
[16:27:14] dlitvak: has joined #ruby
[16:30:55] BSab: has joined #ruby
[16:33:05] davedev24: has joined #ruby
[16:33:23] symm-: has joined #ruby
[16:34:54] bronson: has joined #ruby
[16:35:47] jottr: has joined #ruby
[16:35:58] Ropeney: has joined #ruby
[16:35:59] Conflict: has joined #ruby
[16:36:11] Abrin: has joined #ruby
[16:36:13] adgtl: has joined #ruby
[16:36:42] platzhirsch: has joined #ruby
[16:37:04] johnnyt: has joined #ruby
[16:37:11] shevy: EdwardIII you can use explicit return too all the time
[16:37:19] ElFerna: has joined #ruby
[16:37:44] EdwardIII: shevy: s'not the spirit of the thing though is it
[16:37:59] shevy: who defines the spirit
[16:38:02] pipework: I like implicit return for the end of blocks, and use returns for early returns to avoid extra processing.
[16:38:04] EdwardIII: the community
[16:38:04] shevy: the ultimate authority is the ruby parser
[16:38:48] Alayde: has joined #ruby
[16:38:53] Abrin2: has joined #ruby
[16:39:16] rmrrn: has joined #ruby
[16:39:16] rmrrn: has joined #ruby
[16:39:45] banghouse2: has joined #ruby
[16:40:24] jbrhbr: has joined #ruby
[16:41:02] despai: has joined #ruby
[16:41:40] roger_rabbit: has joined #ruby
[16:43:07] sepp2k: has joined #ruby
[16:43:40] AlexRussia_: has joined #ruby
[16:43:45] skakri: has joined #ruby
[16:44:48] einarj: has joined #ruby
[16:45:03] baweaver: has joined #ruby
[16:45:25] adgtl: has joined #ruby
[16:45:30] wolffles: has joined #ruby
[16:46:47] ramfjord: has joined #ruby
[16:47:24] einarj: has joined #ruby
[16:47:38] [Butch]: has joined #ruby
[16:47:58] User458764: has joined #ruby
[16:48:44] stannard: has joined #ruby
[16:49:00] adgtl: has joined #ruby
[16:49:10] dlitvak: has joined #ruby
[16:49:25] RegulationD: has joined #ruby
[16:50:18] mustmodify: has joined #ruby
[16:50:21] mustmodify: has left #ruby: ()
[16:50:35] rmrrn: has joined #ruby
[16:50:35] rmrrn: has joined #ruby
[16:51:37] davedev24: has joined #ruby
[16:52:32] Deck`: has joined #ruby
[16:52:36] ElFerna: has joined #ruby
[16:53:32] Gnut: Is there a more succinct way to do this? https://gist.github.com/Ghjnut/750db24a24c5cf6118ff
[16:53:41] stannard: has joined #ruby
[16:55:04] Macaveli: has joined #ruby
[16:55:31] Ox0dea: Gnut: new_arr = object.map &method(:symbolize_object)
[16:56:32] ixti: has joined #ruby
[16:56:44] anisha: has joined #ruby
[16:57:14] Alayde: has left #ruby: ("WeeChat 1.1.1")
[16:58:10] amclain: has joined #ruby
[16:58:25] Spami: has joined #ruby
[16:58:26] kirillzh: has joined #ruby
[16:58:32] devbug: has joined #ruby
[16:59:34] mechanicles: has joined #ruby
[17:00:24] SaintAardvark: Hi folks -- is there a particularly Ruby-ish way to validate JSON from a Rakefile? I can call out to jsonlint or something similar, but I'm wondering if there's a better way to do this.
[17:00:58] rmrrn: has joined #ruby
[17:00:58] rmrrn: has joined #ruby
[17:01:01] Gnut: Ox0dea: Ambiguous block operator. Parenthesize the method arguments if it's surely a block operator
[17:01:07] Gnut: That's rubocop's response
[17:01:17] william3: has joined #ruby
[17:01:28] gizmore: has joined #ruby
[17:01:29] Gnut: And i don't really follow how it's expecting me to clean that up
[17:01:49] Ox0dea: Gnut: It's only ambiguous to the computer; we humans can quite easily intuit what's going on. Proceed as you will.
[17:02:38] Gnut: Ox0dea: Correct, i'm just wondering is there's a different way to write it so rubocop won't complain. Sorry, my ruby-fu is weak
[17:02:48] Ox0dea: Gnut: Just needs more parentheses.
[17:03:00] Ox0dea: Alternatively, ignore the linter. It secretly hates you.
[17:03:00] Gnut: Ha, tried to wing that
[17:03:52] zambini: has joined #ruby
[17:05:46] stardiviner: has joined #ruby
[17:05:52] aep: has joined #ruby
[17:06:37] mondok: has joined #ruby
[17:08:31] ElFerna: has joined #ruby
[17:08:41] shevy: rubocop will use its baton to whack you into submission!
[17:08:42] duckpuppy: has joined #ruby
[17:11:16] Ox0dea: warning: `&' interpreted as argument prefix
[17:11:19] banghous_: has joined #ruby
[17:11:24] Ox0dea: Well done, parser. I'd give you a cookie if you'd eat it.
[17:12:38] gregf___: shouldn't that be as simple as %w|foo bar baz|.map(&:to_sym)
[17:12:42] antgel_: has joined #ruby
[17:14:22] Ox0dea: `map(&:foo)` is `map { |obj| obj.foo }`, whereas `map(&method(:foo))` is `map { |obj| foo(obj) }`.
[17:14:38] banghous_: has left #ruby: ()
[17:14:57] Yeomra: has joined #ruby
[17:15:11] Ox0dea: I suspect Gnut's #symbolize_object method is doing a little more than String#to_sym, but perhaps not.
[17:17:27] gregf___: ah - cool. thanks Ox0dea!
[17:17:36] redasus: has joined #ruby
[17:17:38] hobodave: has joined #ruby
[17:18:12] Xeago: has joined #ruby
[17:18:59] jottr: has joined #ruby
[17:19:14] tjohnson: has joined #ruby
[17:20:17] DonOtreply: has joined #ruby
[17:21:16] Ox0dea: gregf___: Sure thing. :)
[17:22:04] procyon_ember: Does Ruby make programmers happy?
[17:22:27] Ox0dea: >> symbolizer = Hash.new { |h, k| k.to_sym }; %w[foo bar baz].map &symbolizer
[17:22:28] ruby[bot]: Ox0dea: # => [:foo, :bar, :baz] (https://eval.in/513861)
[17:22:32] Ox0dea: gregf___: ^ More #to_proc fun.
[17:27:39] apeiros: procyon_ember: mostly, sure
[17:28:41] Radar: procyon_ember: BLISSFUL, even.
[17:29:31] adgtl: has joined #ruby
[17:34:03] PedramT: has joined #ruby
[17:34:19] adgtl: has joined #ruby
[17:35:34] kirillzh: has joined #ruby
[17:36:47] Ropeney: has joined #ruby
[17:36:52] pdoherty: has joined #ruby
[17:37:17] govg: has joined #ruby
[17:37:35] karapetyan: has joined #ruby
[17:37:44] tatsuo: "> \r\e[K> \r\e[K> \r\e[K> \r\e[K> \r\e[K{\"service\": false, how can I remove this carriage return string in popen?
[17:38:49] mechanicles: has joined #ruby
[17:39:34] maikowblue: has joined #ruby
[17:39:47] elifoster: has joined #ruby
[17:40:45] apeiros: &ri String#delete tatsuo
[17:40:46] `derpy: tatsuo: http://ruby-doc.org/core-2.3.0/String.html#method-i-delete
[17:41:01] flughafen_: has joined #ruby
[17:41:04] Ox0dea: I think tatsuo probably wants to remove the control sequences as well.
[17:41:26] mhoungbo: has joined #ruby
[17:41:46] Ox0dea: "\e[K" is for erasing everything to the right.
[17:41:47] tatsuo: thank you for your kind! :)
[17:42:06] Gadgetoid: has left #ruby: ()
[17:42:33] dudedudeman: has joined #ruby
[17:42:36] dudedudeman: has joined #ruby
[17:42:56] dudedudeman: woo more parsing questions
[17:43:06] dudedudeman: so i???ve got this API call i???m doing wtih httparty
[17:43:44] dudedudeman: and it returns this JSON that has a ton of info, and then a child element. i want the three child elements it???s returning to me, but, it???s returning them to me with the same element name
[17:43:59] dudedudeman: so body -> child -> uri uri uri
[17:44:01] SwiftFox: has joined #ruby
[17:44:06] dudedudeman: when those uri???s are all different values
[17:44:14] dudedudeman: any thoughts on the best way to parse that?
[17:45:12] Ox0dea: dudedudeman: To be clear, you're getting back JSON data with an object containing a repeated key?
[17:45:55] akem: has joined #ruby
[17:47:32] Deck`: has joined #ruby
[17:48:04] dudedudeman1: has joined #ruby
[17:49:16] mechanicles: has joined #ruby
[17:49:28] zacstewart: has joined #ruby
[17:50:31] oetjenj: has joined #ruby
[17:50:34] sftrabbit: has joined #ruby
[17:50:53] dudedudeman: @Ox0dea here???s a gist of a JSON response that i???m getting https://gist.github.com/anonymous/742e13ef8720d5d6eb2b
[17:50:56] tatsuo: Ox0dea: Thank you for your help. I'm so glad this worked out.
[17:51:30] Ox0dea: dudedudeman: Right, you've got an Array of Hashes.
[17:51:54] KensoDev: has joined #ruby
[17:52:10] kies^: has joined #ruby
[17:52:27] Ox0dea: You can say `array_of_hashes.map { |hash| hash['uri'] }` or the like to extract the URIs.
[17:53:02] aryaching: has joined #ruby
[17:53:18] Ox0dea: It would've been much trickier if you were getting back (invalid) JSON containing repeated keys.
[17:53:28] rakm: has joined #ruby
[17:54:17] TomPeed: has joined #ruby
[17:55:21] dudedudeman: aight, i???ll play around with that
[17:55:32] sneakerhax: has joined #ruby
[17:55:40] platzhirsch: has left #ruby: ()
[17:55:56] adgtl: has joined #ruby
[17:55:58] shevy: Ox0dea are you coding something naughty as of late
[17:57:02] Ox0dea: shevy: Yes. It's basically Krampus in Ruby form.
[17:57:18] Ox0dea: Should be a laugh.
[17:58:08] devbug: has joined #ruby
[17:59:24] cats: has joined #ruby
[17:59:31] devbug: has joined #ruby
[18:00:42] ElFerna: has joined #ruby
[18:02:02] acidrainfall: has joined #ruby
[18:02:33] djbkd: has joined #ruby
[18:02:47] kobain: has joined #ruby
[18:03:27] SHyx0rmZ: has joined #ruby
[18:03:46] jbrhbr: has joined #ruby
[18:04:56] joonty: has joined #ruby
[18:05:07] firstdayonthejob: has joined #ruby
[18:05:18] dlitvak: has joined #ruby
[18:05:18] jottr: has joined #ruby
[18:05:35] podman: has joined #ruby
[18:05:51] kirillzh: has joined #ruby
[18:06:02] acidrainfall: Hey all. My syntax checker is telling me I have an unused variable, is it because they're not in the same scope? https://gist.github.com/ntent-ashton/b4e9a9409ff13a8315c2#file-rolypoly-rb-L15
[18:06:26] shevy: lol Krampus... that reminds me
[18:06:33] acidrainfall: logfile is defined there at the top, and used in file_to_array()
[18:06:34] PedramT: has joined #ruby
[18:06:46] acidrainfall: Did I do that wrong?
[18:06:59] acidrainfall: maybe I should pass logfile in as file?
[18:07:07] acidrainfall: def file_to_array(file)?
[18:07:40] gizmore: has joined #ruby
[18:08:25] idefine: has joined #ruby
[18:09:14] acidrainfall: Or could it be that the variable name is log_file and I used logfile in the defs? :P
[18:09:35] kirillzh: has joined #ruby
[18:09:39] Ox0dea: acidrainfall: It's both. :P
[18:09:57] Ox0dea: The names mismatch, but you also don't have access to top-level locals from within methods.
[18:10:00] zacstewart: has joined #ruby
[18:10:02] kirillzh: has joined #ruby
[18:10:52] acidrainfall: Ox0dea: I was unaware of that
[18:10:59] Ox0dea: Sure thing.
[18:11:00] acidrainfall: Is the reverse true?
[18:11:23] acidrainfall: my function file_to_array defines an array
[18:11:26] acidrainfall: is that array available?
[18:11:36] ruby[bot]: Why don't you try it and see for yourself?
[18:11:48] casadei: has joined #ruby
[18:12:28] aep: has joined #ruby
[18:12:42] adgtl: has joined #ruby
[18:12:50] Anderson69s: has joined #ruby
[18:14:26] duckpuppy: has joined #ruby
[18:14:38] PedramT: has joined #ruby
[18:16:17] acidrainfall: Ox0dea: obviously not
[18:16:24] acidrainfall: What's the best way to go about what I need done?
[18:16:50] acidrainfall: Should I Just take that bit of code out of the function maybe?
[18:17:31] Ox0dea: acidrainfall: Giving your script a bit more structure would pay dividends.
[18:18:21] Ox0dea: You could use a module as a namespace under which to put your state, or structure your thing as a class with instance variables, such that the methods all have access as appropriate.
[18:18:24] ixti: has joined #ruby
[18:19:27] acidrainfall: let's start small ok?
[18:19:32] acidrainfall: this is my first ruby script
[18:20:10] RegulationD: has joined #ruby
[18:20:13] acidrainfall: I just need help with scope right now
[18:20:18] bluOxigen: has joined #ruby
[18:20:47] diegoviola: has joined #ruby
[18:20:48] roshanavand: has joined #ruby
[18:21:57] polishdub: has joined #ruby
[18:22:14] acidrainfall: https://rubymonk.com/learning/books/4-ruby-primer-ascent/chapters/45-more-classes/lessons/110-instance-variables is this what you mean?
[18:22:46] ramfjord: has joined #ruby
[18:23:32] idefine: has joined #ruby
[18:24:17] DonOtreply: has joined #ruby
[18:24:45] kirun: has joined #ruby
[18:26:20] arlek: has joined #ruby
[18:26:58] sandstrom: has joined #ruby
[18:27:34] PedramT: has joined #ruby
[18:28:04] chouhoulis: has joined #ruby
[18:28:39] dajobat: acidrainfall: you'll need to refactor your code to be inside a class to get the joys of instance variables.
[18:30:58] dajobat: looking at your code, i'm guessing you probably want a node and a client class
[18:32:32] nfk: has joined #ruby
[18:33:16] jackjackdripper: has joined #ruby
[18:33:50] dajobat: anyway, I need to head off. Cheerio everyone.
[18:35:12] anisha: has joined #ruby
[18:35:13] PedramT_: has joined #ruby
[18:36:37] jackjackdripper: has joined #ruby
[18:36:43] pdoherty: has joined #ruby
[18:37:09] hobodave: has joined #ruby
[18:38:02] n00bDev: has joined #ruby
[18:39:02] devbug: has joined #ruby
[18:40:00] zeroDivisible: has joined #ruby
[18:40:41] acidrainfall: I just needed to return the variable value
[18:40:56] acidrainfall: perfection isn't what I'm going for here, right now it's a task to figure ruby out :)
[18:41:06] Timberwo|f: has joined #ruby
[18:41:10] acidrainfall: I appreciate the 'you should do it the right way' suggestions but that's a lot for a beginner
[18:41:12] Marsupermammal: has joined #ruby
[18:42:22] Coldblackice: has joined #ruby
[18:42:39] bronson: has joined #ruby
[18:42:42] jackjackdripper1: has joined #ruby
[18:42:49] celly: has joined #ruby
[18:44:24] adgtl: has joined #ruby
[18:44:39] jackjackdripper: has joined #ruby
[18:46:04] Xeago: has joined #ruby
[18:46:58] guacamol1: has joined #ruby
[18:47:45] fantazo: has joined #ruby
[18:47:53] jackjackdripper1: has joined #ruby
[18:48:10] baweaver: has joined #ruby
[18:49:27] supremekay: has joined #ruby
[18:50:57] codecop: has joined #ruby
[18:53:03] shadoi: has joined #ruby
[18:53:16] zacstewart: has joined #ruby
[18:53:34] dlitvak: has joined #ruby
[18:55:46] Hanmac: shevy: https://gist.github.com/Hanmac/cb9e13ff220e4f31e13a you mean this ?
[18:56:17] idefine: has joined #ruby
[18:56:28] KensoDev: has joined #ruby
[18:56:36] bob_f: Hi, is there an equivalent(ish) way of doing 'do; ... end.method` for a class ? I'm finding that `class Foo; end.cls_method` gives confusing errors.
[18:56:41] bob_f: But it seems that it's not supported.
[18:57:35] bob_f: It's no big deal, just would've been vaguely convenient for setting up a subject for a spec.
[18:58:56] KensoDev: has joined #ruby
[18:59:45] TravisTheNavi: has joined #ruby
[19:00:32] spider-mario: has joined #ruby
[19:02:14] hobodave_: has joined #ruby
[19:03:03] freerobby: has joined #ruby
[19:03:46] j0n3: has joined #ruby
[19:04:28] Ox0dea: bob_f: https://eval.in/513909
[19:04:43] BrunoSaboia: has joined #ruby
[19:05:53] procyon_ember: apeiros, Radar ty :)
[19:06:43] supremekay: has joined #ruby
[19:07:13] joonty: has joined #ruby
[19:07:39] bob_f: Ox0dea: Ah, cool - cheers.
[19:07:55] Ox0dea: bob_f: No worries.
[19:08:19] duckpuppy: has joined #ruby
[19:10:18] nerium: has joined #ruby
[19:11:57] ctp__: has joined #ruby
[19:13:13] baweaver: has joined #ruby
[19:13:23] karapetyan: has joined #ruby
[19:14:40] Zai00: has joined #ruby
[19:17:09] jgt4: has joined #ruby
[19:17:23] finisherr: has joined #ruby
[19:20:08] theunraveler: has joined #ruby
[19:20:23] mickey_mouse_2: has joined #ruby
[19:21:25] ricer2: has joined #ruby
[19:22:15] zacstewart: has joined #ruby
[19:22:34] peeja: has joined #ruby
[19:23:07] nazrath: has joined #ruby
[19:25:52] n00bDev: has joined #ruby
[19:25:56] DmitryBochkarev: has joined #ruby
[19:27:58] Xeago: has joined #ruby
[19:28:44] blackmesa: has joined #ruby
[19:28:52] mkosaki: has joined #ruby
[19:29:52] dome22xl: has joined #ruby
[19:31:07] Ox0dea: hanmac: https://eval.in/513920
[19:31:18] fedexo: has joined #ruby
[19:31:36] Ox0dea: You probably don't even remember wanting it, but there's Bignum#[]=. :)
[19:31:52] Hanmac: nice one ;P
[19:32:45] stannard: has joined #ruby
[19:32:48] kirun: has joined #ruby
[19:32:58] dc1: has joined #ruby
[19:33:27] johnmilton: has joined #ruby
[19:34:19] Carella: has joined #ruby
[19:34:29] Jackneill: has joined #ruby
[19:36:47] william3: has joined #ruby
[19:37:04] Mon_Ouie: has joined #ruby
[19:37:30] treehug88: has joined #ruby
[19:37:40] Conflict: has joined #ruby
[19:37:51] kirillzh: has joined #ruby
[19:39:09] mhoungbo: has joined #ruby
[19:39:42] Guest8906: has joined #ruby
[19:40:20] Conflict: rails new testapp
[19:40:20] Conflict: /usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs': Could not find 'act
[19:40:20] Conflict: ivesupport' (= 4.2.5) - did find: [activesupport-4.2.5.1] (Gem::LoadError)
[19:40:28] Conflict: anyone know why this is happening?
[19:40:38] jackjackdripper: has joined #ruby
[19:41:27] Jonah11_: has joined #ruby
[19:42:17] robbyoconnor: has joined #ruby
[19:44:35] Hanmac: Conflict: your gemfile.lock is the problem, remove it and it should work
[19:45:25] Ox0dea: Er, I think their Gemfile got mutilated?
[19:45:31] Ox0dea: There's a newline in the string.
[19:45:52] toretore: has joined #ruby
[19:46:12] Ox0dea: hanmac: Be mindful of BIGNUM_EMBED_LEN_MAX if you do in fact find a use case for Bignum#[]=.
[19:46:56] Ox0dea: Bignums are heap-allocated at and after 2 ** 192 on 64-bit machines.
[19:47:37] Conflict: hanmac: which directory does that live in?
[19:47:58] Hanmac: Conflict: should be in the main dir where Gemfile is
[19:48:23] Conflict: /usr/lib/ruby/gems/2.3.0/gems/rack-test-0.6.3/Gemfile.lock i'm assuming?
[19:49:01] yqt: has joined #ruby
[19:49:03] Hanmac: hm no that is only the Gemfile.lock fo the rack-test your project might have its own one
[19:49:13] Rodya_: has joined #ruby
[19:49:17] zacstewart: has joined #ruby
[19:50:11] griffindy: has joined #ruby
[19:50:13] Conflict: hanmac: hmm my project directory is empty, i was trying to start a new project
[19:50:14] jackjackdripper: has joined #ruby
[19:50:50] Conflict: rails new testapp
[19:50:50] Conflict: /usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs': Could not find 'activesupport' (= 4.2.5) - did find: [activesupport-4.2.5.1] (Gem::LoadError)
[19:50:50] Conflict: Checked in 'GEM_PATH=/home/conflict/.gem/ruby/2.3.0:/usr/lib/ruby/gems/2.3.0', execute `gem env` for more information
[19:50:50] Conflict: from /usr/lib/ruby/2.3.0/rubygems/specification.rb:1438:in `block in activate_dependencies'
[19:50:50] Conflict: from /usr/lib/ruby/2.3.0/rubygems/specification.rb:1427:in `each'
[19:50:51] Conflict: from /usr/lib/ruby/2.3.0/rubygems/specification.rb:1427:in `activate_dependencies'
[19:50:53] Conflict: from /usr/lib/ruby/2.3.0/rubygems/specification.rb:1409:in `activate'
[19:50:56] Conflict: from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:68:in `block in gem'
[19:50:58] Conflict: from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:67:in `synchronize'
[19:51:00] Conflict: from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:67:in `gem'
[19:51:02] Hanmac: Conflict: first rails questions might be better in #rubyonrails
[19:51:02] Conflict: from /usr/bin/rails:22:in `<main>'
[19:51:05] Conflict: thats the full error
[19:51:26] Hanmac: and next time use a pastie service like gist from github
[19:51:31] ss_much: has joined #ruby
[19:52:12] Hanmac: Conflict: for now what i see is that some in the dependencies of rails does want a specific activesupport version but you have a newer one
[19:52:28] Hanmac: an easy way to fix that would be to install that special version of it
[19:54:16] Deck`: has joined #ruby
[19:54:17] stannard: has joined #ruby
[19:54:20] ta: has joined #ruby
[19:55:48] ta: has joined #ruby
[19:55:54] chouhoul_: has joined #ruby
[19:58:04] jackjackdripper: has joined #ruby
[20:00:04] tomchapin: has joined #ruby
[20:04:59] dudedudeman: has joined #ruby
[20:05:54] adgtl: Did Ruby get |> operator?
[20:07:01] dlitvak: has joined #ruby
[20:07:05] kspencer: just so i know, if i ever see it, what does that do adgtl
[20:07:30] celly: has joined #ruby
[20:08:01] joonty: has joined #ruby
[20:08:39] dupa: has joined #ruby
[20:08:42] adgtl: kspencer: similar to elixir one?
[20:10:23] ramfjord: has joined #ruby
[20:11:20] zacstewart: has joined #ruby
[20:12:24] einarj: has joined #ruby
[20:12:29] blackmesa: has joined #ruby
[20:13:24] Ox0dea: adgtl: No, but there's this: https://github.com/matz/streem
[20:13:59] jackjackdripper: has joined #ruby
[20:15:00] duckpuppy: has joined #ruby
[20:15:56] zast: has joined #ruby
[20:16:21] agentmeerkat: has joined #ruby
[20:16:21] Ox0dea: adgtl: You're still missing the bangarang (!~). :P
[20:16:34] f3ttX]: has joined #ruby
[20:16:38] freerobby: has joined #ruby
[20:18:09] konsolebox: has joined #ruby
[20:18:24] dlitvak_: has joined #ruby
[20:18:56] momomomomo: has joined #ruby
[20:20:58] FernandoBasso: has joined #ruby
[20:22:03] snguyen: has joined #ruby
[20:22:14] duncannz: has joined #ruby
[20:24:21] baweaver: has joined #ruby
[20:24:58] yfeldblum: has joined #ruby
[20:24:59] tilllt: has joined #ruby
[20:25:39] einarj: has joined #ruby
[20:26:54] nazrath: has left #ruby: ()
[20:27:22] ur5us: has joined #ruby
[20:27:59] AciD`: has joined #ruby
[20:28:25] chipotle: has joined #ruby
[20:29:32] AciD`: hi. Big ruby noob here. I'm trying to install scss_lint following this installation guide (https://github.com/brigade/scss-lint#installation), but I really don't know what 'bundle install' do, nor where I should create the 'GemFile'. I want to be able to use scss_lint from my IDE, so where should I finish that installation (and with which user)?
[20:31:42] sftrabbit: has joined #ruby
[20:33:02] symbol: has joined #ruby
[20:33:24] DonOtreply: has joined #ruby
[20:34:16] blackgoat: has joined #ruby
[20:34:17] dupa: has joined #ruby
[20:34:19] Mon_Ouie: If you're not using Bundler, just use 'gem install scss_lint' and make sure the directory where the binaries are stored is in your PATH environment variable
[20:34:45] Mon_Ouie: (gem should warn you after the install if that isn't the case, as well as tell you what that directory is)
[20:34:53] Rodya_: has joined #ruby
[20:35:33] Spami: has joined #ruby
[20:35:37] pipework: Not using bundler without using gemsets sounds horrid.
[20:36:32] atmosx: has joined #ruby
[20:37:42] last_staff: has joined #ruby
[20:42:39] toretore: has joined #ruby
[20:44:26] dionysus69: has joined #ruby
[20:46:26] danman: has joined #ruby
[20:46:41] idefine: has joined #ruby
[20:47:10] TomPeed: has joined #ruby
[20:47:19] adgtl: has joined #ruby
[20:48:48] benlieb: has joined #ruby
[20:50:29] momomomomo: has joined #ruby
[20:50:36] jonathanwallace1: has joined #ruby
[20:53:23] nettoweb: has joined #ruby
[20:53:57] Gadgetoid: has joined #ruby
[20:53:57] Rodya_: has joined #ruby
[20:54:07] TravisTheNavi: I cannot get my loop to work as intended. Here is my source code: http://pastebin.com/S8QAJ7mF
[20:54:08] ruby[bot]: travisthenavi: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/27eb3573bae482ede17b
[20:54:08] ruby[bot]: travisthenavi: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[20:54:28] p0wn3d: has joined #ruby
[20:54:49] Sheperson: has joined #ruby
[20:54:57] theunraveler: has joined #ruby
[20:55:18] bluOxigen: has left #ruby: ()
[20:55:21] TravisTheNavi: My goal is to only loop when the input assigned to the variable answer is NOT "yes" or "no"
[20:55:30] TravisTheNavi: What am I doing wrong?
[20:55:32] casadei: has joined #ruby
[20:55:36] TravisTheNavi: My logic must be off somehwere.
[20:55:55] Hanmac: this does not work that way you think answer != "yes" or "no"
[20:56:21] p0wn3d: has joined #ruby
[20:56:30] kirillzh: has joined #ruby
[20:56:44] TravisTheNavi: hanmac, What would be the proper way to go about doing this? You understand my logic, right?
[20:56:54] Hanmac: travisthenavi: i think you want this: until ["yes", "no"].include?(answer)
[20:58:36] johnmilton: has joined #ruby
[20:59:14] blackmesa: has joined #ruby
[20:59:56] dupa: has joined #ruby
[20:59:58] einarj: has joined #ruby
[21:00:49] arthropododo: has joined #ruby
[21:00:57] aibot: has joined #ruby
[21:01:16] aep: has joined #ruby
[21:01:24] Xeago: has joined #ruby
[21:02:02] mhoungbo: has joined #ruby
[21:02:20] fedexo: has joined #ruby
[21:02:26] tvw: has joined #ruby
[21:03:29] craysiii: has joined #ruby
[21:03:30] dlitvak: has joined #ruby
[21:03:36] jottr: has joined #ruby
[21:03:58] aibot: has joined #ruby
[21:05:10] zacstewa_: has joined #ruby
[21:05:22] celly: has joined #ruby
[21:05:29] dmolina: has joined #ruby
[21:05:57] celly: has joined #ruby
[21:07:29] mg^2: has joined #ruby
[21:07:33] mg^2: join #ruby-offtopic
[21:07:39] blackmesa: has joined #ruby
[21:08:02] zambini: has joined #ruby
[21:08:28] joonty: has joined #ruby
[21:08:49] cdg: has joined #ruby
[21:10:45] Infra-Red: has joined #ruby
[21:13:01] moeabdol1: has joined #ruby
[21:14:03] kies^: has joined #ruby
[21:14:20] devbug: has joined #ruby
[21:14:52] griffindy: has joined #ruby
[21:15:10] baweaver: has joined #ruby
[21:16:08] shevy: oh talking about offtopic... adaedra I just read the news! long live the old french accent character ... :(
[21:16:41] adaedra: Ah, you mean the 25 year old reform?
[21:17:09] shevy: "onion" to become "ognon" :D
[21:17:21] shevy: this so reminds me of monty python
[21:17:35] adaedra: old spelling remains valid.
[21:17:47] django_: has joined #ruby
[21:18:00] django_: im trying to get started on web dev security
[21:18:02] shevy: adaedra awww :(
[21:18:51] django_: is this a good start: http://www.amazon.com/The-Tangled-Web-Securing-Applications/dp/1593273886
[21:18:57] adaedra: shevy: so right now, it would be as if I just came to the channel and said "long live the old german double-s character"
[21:19:12] shevy: the swiss did away with it!
[21:19:19] shevy: we here still must use it... :(
[21:19:27] jackjackdripper: has joined #ruby
[21:20:32] jonathanwallace1: has joined #ruby
[21:20:57] dlitvak: has joined #ruby
[21:21:24] s0n1c-: has joined #ruby
[21:21:36] tomchapin: has joined #ruby
[21:21:41] s0n1c-: has joined #ruby
[21:23:08] x77686d: has joined #ruby
[21:23:47] baweaver: django_: This is the ruby channel. It would be better to ask in a security channel.
[21:24:57] heeih: has joined #ruby
[21:25:28] einarj: has joined #ruby
[21:26:27] mfb2: has joined #ruby
[21:27:01] CloCkWeRX: has joined #ruby
[21:28:13] arooni: has joined #ruby
[21:29:56] Al2O3: has joined #ruby
[21:31:57] Cohedrin: has joined #ruby
[21:33:36] bluOxigen_: has joined #ruby
[21:33:40] benlieb: has joined #ruby
[21:33:58] tomchapin: has joined #ruby
[21:34:27] Rodya_: has joined #ruby
[21:35:06] bronson: has joined #ruby
[21:35:11] mfb2: has joined #ruby
[21:35:14] Ropeney: has joined #ruby
[21:37:57] SCHAAP137: has joined #ruby
[21:38:57] ixti: has joined #ruby
[21:39:36] ljames: has joined #ruby
[21:39:45] flughafen_: has joined #ruby
[21:40:08] yaroslav: has joined #ruby
[21:40:25] devbug: has joined #ruby
[21:41:22] benlieb: has joined #ruby
[21:41:22] crowell: has joined #ruby
[21:42:02] jgpawletko: has joined #ruby
[21:42:51] neohunter: has joined #ruby
[21:47:04] theunraveler: has joined #ruby
[21:47:10] dc1: has joined #ruby
[21:47:20] CloCkWeRX: has joined #ruby
[21:47:45] kies^: has joined #ruby
[21:50:48] einarj: has joined #ruby
[21:51:05] moeabdol: has joined #ruby
[21:52:53] pushcx: has joined #ruby
[21:52:54] vdamewood: has joined #ruby
[21:53:35] shevy: hmmm I am trying to come up with a convention...
[21:54:30] shevy: say there is a class called Foobar (and lots of other classes). Since some time I have added the option to have output from commandline programs, be prefixed with the name of the class
[21:54:42] shevy: colourized too. So we have something like:
[21:54:52] shevy: Foobar: Removing empty directories.
[21:55:29] shevy: A bit later, I also decided that I should also display the proper namespace... so I have output such as Foo::Bar: now
[21:56:37] shevy: And yesterday... I wondered whether I should also denote any travel path, say that you have a namespace Foo, and it invokes some class in namespace Bar
[21:56:57] shevy: and I was thinking of using ->
[21:57:11] shevy: So ... Foo->Bar::Bla:
[21:57:24] shevy: now I need opinions on the ->
[21:58:43] Papierkorb: Looks too complicated to me tbh
[21:58:52] Papierkorb: If something breaks I'll see it in the stacktrace
[21:58:58] Papierkorb: if nothing breaks, why should I care?
[21:59:24] Papierkorb: shevy: regarding the 'travel path'
[21:59:43] shevy: Papierkorb yeah I thought so too... I probably end up with me being the only one understanding it :(
[22:01:51] Papierkorb: shevy: I'd leave it out. Sounds like complex code, and complex output for not that-much gain
[22:02:14] jackjackdripper1: has joined #ruby
[22:02:24] poguez_: has joined #ruby
[22:03:10] trinaldi: has joined #ruby
[22:03:34] benlieb: has joined #ruby
[22:09:24] hxegon: has joined #ruby
[22:09:31] joonty: has joined #ruby
[22:12:06] djbkd: has joined #ruby
[22:13:19] momomomomo: has joined #ruby
[22:13:26] B1n4r10: has joined #ruby
[22:13:39] gizless: has joined #ruby
[22:14:09] chadhs: has joined #ruby
[22:14:28] vikas027: has joined #ruby
[22:15:38] gizmore|2: has joined #ruby
[22:16:11] DonOtreply: has joined #ruby
[22:16:16] symm-_: has joined #ruby
[22:17:25] bluOxigen_: has left #ruby: ()
[22:17:42] hobodave: has joined #ruby
[22:18:47] PaulCapestany: has joined #ruby
[22:19:17] vdamewood: has joined #ruby
[22:20:41] postmodern: has joined #ruby
[22:24:07] minimalism: has joined #ruby
[22:24:27] framling: has joined #ruby
[22:25:49] ur5us: has joined #ruby
[22:26:18] stannard: has joined #ruby
[22:26:43] zacstewart: has joined #ruby
[22:27:02] jackjackdripper: has joined #ruby
[22:27:10] jbrhbr: has joined #ruby
[22:28:04] nfk: has joined #ruby
[22:28:29] davedev24: has joined #ruby
[22:32:29] idefine: has joined #ruby
[22:33:26] zast: has left #ruby: ()
[22:35:35] karapetyan: has joined #ruby
[22:38:11] DonOtreply: has joined #ruby
[22:41:45] yfeldblum: has joined #ruby
[22:42:40] zenlot1: has joined #ruby
[22:46:02] TravisTheNavi: has joined #ruby
[22:49:34] malconis: has joined #ruby
[22:50:35] TravisTheNavi: has joined #ruby
[22:50:44] mfb2: has joined #ruby
[22:52:40] pawnbox: has joined #ruby
[22:54:07] malconis: has joined #ruby
[22:54:16] duckpuppy: has joined #ruby
[22:58:03] snguyen: has joined #ruby
[22:58:31] s0n1c-: has joined #ruby
[22:58:31] s0n1c-: has joined #ruby
[23:00:12] sandstrom: has joined #ruby
[23:00:23] symm-: has joined #ruby
[23:00:58] stannard: has joined #ruby
[23:02:56] baweaver: has joined #ruby
[23:04:22] karapetyan: has joined #ruby
[23:06:13] n00bDev: has joined #ruby
[23:10:15] joonty: has joined #ruby
[23:11:08] ziyadb: has joined #ruby
[23:12:07] jottr: has joined #ruby
[23:14:24] pwnd_nsfw: has joined #ruby
[23:15:41] davedev24: has joined #ruby
[23:16:24] DrCode: has joined #ruby
[23:16:31] dc1: has joined #ruby
[23:17:25] sandstrom: has joined #ruby
[23:20:50] whippythellama: has joined #ruby
[23:22:33] pawnbox: has joined #ruby
[23:23:13] mondok: has joined #ruby
[23:23:43] s0n1c-: has joined #ruby
[23:24:24] toretore: has joined #ruby
[23:24:48] zacstewart: has joined #ruby
[23:25:48] casadei: has joined #ruby
[23:30:16] rickmasta: has joined #ruby
[23:33:07] skweek: has joined #ruby
[23:33:11] sepp2k: has joined #ruby
[23:34:31] sandstrom: has joined #ruby
[23:34:32] pizzaops: Anybody here with experience working with SOAP APIs in Ruby? As in leveraging them, not building them (god forbid). Most of the libraries seem unmaintained, although Savon has recent commits.
[23:34:47] pizzaops: My question I guess being, what library did you use/like, if any?
[23:36:35] RubyRev: has joined #ruby
[23:42:21] jbrhbr: has joined #ruby
[23:42:32] RubyRev: has joined #ruby
[23:42:38] skade: has joined #ruby
[23:43:04] zacstewart: has joined #ruby
[23:44:07] toretore: pizzaops: mostly i just do straight http - generate some xml, send it, then parse the reply xml
[23:44:38] pizzaops: Mm. I'm going to give Savon a shot since some of my coworkers use it and "XML" makes me sad.
[23:44:40] toretore: depends on the scope of your usage though, for me it's usually just a single call to each api
[23:44:43] pizzaops: But I'll do that if I have to.
[23:45:18] toretore: i found savon to be a little limiting at times, which is why i'm doing straight http/xml
[23:47:27] ptierno: has joined #ruby
[23:47:27] ptierno: has joined #ruby
[23:50:47] CrazyEddy: has joined #ruby
[23:51:22] bb010g: has joined #ruby
[23:51:43] sandstrom: has joined #ruby
[23:51:45] ptierno: has joined #ruby
[23:55:52] s0n1c-__: has joined #ruby
[23:56:22] stannard: has joined #ruby
[23:56:32] davedev24: has joined #ruby
[23:57:27] duderonomy: has joined #ruby
[23:57:36] ramfjord_: has joined #ruby
[23:57:51] kies^: has joined #ruby
[23:58:05] persistence: has joined #ruby
[23:58:15] s0n1c-___: has joined #ruby
[23:58:20] TravisTheNavi: has joined #ruby
[23:58:37] jackjackdripper: has joined #ruby