« Back to channel list

#ruby - 17 October 2015

« Back 1 day Forward 1 day »
[00:00:40] t0code: so modules are used to help decide where to send data?
[00:00:53] t0code: usually...
[00:01:14] Ox0dea: Well, sure, where to send it, whence to retrieve it, and... well, any kind of disambiguation, really.
[00:01:22] etrae: has joined #ruby
[00:01:24] northfurr: has joined #ruby
[00:01:37] inteq: has joined #ruby
[00:01:38] Ox0dea: Modules are much more than namespaces, of course, but it's early days in your journey.
[00:02:06] fullofcaffeine: has joined #ruby
[00:02:23] BraddPitt: modules rock
[00:02:36] t0code: great. thank you, and i hope you dont mind a litany of questions coming from myself over the coming weeks :p
[00:02:39] karam: has joined #ruby
[00:02:39] Kara: has joined #ruby
[00:03:08] ruby-lang544: has joined #ruby
[00:03:16] HammyJammy: has joined #ruby
[00:04:01] havenwood: BraddPitt: module Rock; def self.rocks?; true end end
[00:04:56] havenwood: t0code: ask away!
[00:04:59] tenderlove: has joined #ruby
[00:08:56] nxa: does anyone know how the coerce method works?
[00:09:03] nateberkopec: has joined #ruby
[00:09:12] to_json: has joined #ruby
[00:09:13] to_json: has joined #ruby
[00:10:45] havenwood: nxa: What do you mean? Numeric#coerce or something else?
[00:10:59] havenwood: nxa: There're more than one coerce methods.
[00:11:02] nxa: havenwood: Yup. That.
[00:11:16] tenderlove: has joined #ruby
[00:11:24] DoubleMalt: has joined #ruby
[00:11:34] fullofcaffeine: has joined #ruby
[00:11:39] rickmasta: has joined #ruby
[00:12:00] nxa: havenwood: How do user defined objects use coerce so they can be added to numbers and such?
[00:12:36] freerobby: has joined #ruby
[00:13:38] oetjenj: has joined #ruby
[00:13:59] craigs: has joined #ruby
[00:14:25] sankaber: has joined #ruby
[00:15:52] nxa: has left #ruby: ()
[00:16:57] zenguy_pc: has joined #ruby
[00:17:13] havenwood: nx, hem, left I guess?
[00:19:22] havenwood: >> 42r.coerce 42
[00:19:23] ruboto_: havenwood # => [(42/1), (42/1)] (https://eval.in/452443)
[00:19:35] t0code: is it best to learn ruby before adding rails?
[00:19:41] havenwood: t0code: Yes.
[00:19:51] t0code: just making sure. i am.
[00:20:03] t0code: at what point should i go ahead and get rails?
[00:20:37] webopsx: has joined #ruby
[00:20:57] shevy: when you know the basics in ruby
[00:21:58] havenwood: t0code: Even then I'd suggest learning Sinatra or Roda first.
[00:22:20] wldcordeiro: has joined #ruby
[00:22:33] tubuliferous: has joined #ruby
[00:23:41] t0code: really. why?
[00:23:53] Ox0dea: Baby steps.
[00:25:08] Ox0dea: Sinatra and friends are much better fits for the sorts of app you'll be making in the beginning to become familiar with the territory.
[00:26:15] cwong_on_irc: has joined #ruby
[00:26:39] t0code: ok. in what amount of time do you think a reasonably intelligent person could become effiient enough in ruby to either land a job as a dev or create a professional grade app?.hours
[00:27:01] sphex: has joined #ruby
[00:27:29] GriffinHeart: has joined #ruby
[00:28:23] blackjid: has joined #ruby
[00:29:05] htmldrum: has joined #ruby
[00:29:30] shevy: focus a full mont on ruby
[00:29:40] shevy: then two more months with rails
[00:29:49] havenwood: Pretend Rails doesn't exist!
[00:29:57] havenwood: Close your eyes and pretend really hard.
[00:30:40] duderonomy: has joined #ruby
[00:31:44] queuetip: has joined #ruby
[00:31:48] havenwood: t0code: Many folk get hired out of bootcamps, which tend to be full-time for three months. Hiring has to do with so many factors and whims that it's hard to generalize.
[00:32:04] oetjenj: has joined #ruby
[00:33:28] queuetip: what does a line like this mean: @original = Set.new
[00:33:40] queuetip: new to ruby but from a c background
[00:33:47] n_blownapart: has joined #ruby
[00:33:56] havenwood: queuetip: Sets the instance variable `@original` to a new instance of Set.
[00:34:17] havenwood: queuetip: http://ruby-doc.org/stdlib-2.2.3/libdoc/set/rdoc/Set.html
[00:34:24] queuetip: havenwood: thanks!
[00:34:27] havenwood: >> require 'set'; Set.new
[00:34:28] ruboto_: havenwood # => #<Set: {}> (https://eval.in/452444)
[00:35:25] luckyme: has joined #ruby
[00:36:28] craigs: has joined #ruby
[00:39:09] Ox0dea: >> require 'set'; Set[1, 2, 1] # Also this sexiness.
[00:39:10] ruboto_: Ox0dea # => #<Set: {1, 2}> (https://eval.in/452445)
[00:40:02] akkad: has joined #ruby
[00:41:28] baroquebobcat: has joined #ruby
[00:41:53] queuetip: the syntax is so weird to me haha
[00:42:01] Azure: has joined #ruby
[00:42:58] Ox0dea: It's not as if C's syntax is quintessentially regular.
[00:43:26] baroquebobcat: has joined #ruby
[00:43:49] queuetip: good point :)
[00:44:03] keen___: has joined #ruby
[00:45:18] gregf: has joined #ruby
[00:45:23] dfinninger: has joined #ruby
[00:45:30] JJM: has joined #ruby
[00:45:31] brancher: has joined #ruby
[00:45:50] patdohere: has joined #ruby
[00:46:16] fullofcaffeine: has joined #ruby
[00:47:54] fastAndSlow: has joined #ruby
[00:49:39] jason4483: has joined #ruby
[00:50:48] ellisTAA: has joined #ruby
[00:51:45] jason4483: Hi all, what is the best way to approach this problem? Write a function which takes in an array of integers and returns true if any three consecutive elements in the array sum to 9. I'm a beginner student in Ruby and I know I should be using a Loop to check the indexes from 0, but I don't know how to set it up.
[00:52:21] jenrzzz: has joined #ruby
[00:53:34] luckyme: has joined #ruby
[00:54:19] duderonomy: has joined #ruby
[00:54:29] baweaver: has joined #ruby
[00:55:02] Maletor: has joined #ruby
[00:56:32] ddv: has joined #ruby
[00:57:59] jhass: &ri Enumerable#each_cons Enumerable#any? @jason4483
[00:58:00] `derpy: jason4483: http://www.rubydoc.info/stdlib/core/Enumerable#each_cons-instance_method, http://www.rubydoc.info/stdlib/core/Enumerable#any%3F-instance_method
[00:58:33] oetjenj: has joined #ruby
[00:59:40] duderonomy: has joined #ruby
[01:02:51] stardiviner: has joined #ruby
[01:04:20] _aeris_: has joined #ruby
[01:05:10] shevy: has joined #ruby
[01:06:01] dopamean_: has joined #ruby
[01:07:05] EminenceHC: has joined #ruby
[01:08:04] gaboesquivel: has left #ruby: ()
[01:10:55] workmad3: has joined #ruby
[01:11:12] nateberkopec: has joined #ruby
[01:12:12] htmldrum: has joined #ruby
[01:12:25] bkxd: has joined #ruby
[01:13:31] craigs: has joined #ruby
[01:14:19] jenrzzz: has joined #ruby
[01:14:21] quazimodo: has joined #ruby
[01:15:03] rdavila: has joined #ruby
[01:15:34] jason4483: Hi all, this is an append to my earlier question. Here is my code: http://rubyfiddle.com/riddles/5827b/2 Can someone tell me what this code does not work?
[01:15:44] craigs_: has joined #ruby
[01:15:44] ngscheurich: has joined #ruby
[01:16:57] oetjenj: has joined #ruby
[01:17:43] awrfas2: has joined #ruby
[01:18:40] lagweezle: jason4483: Start by closing your block comment.
[01:18:58] unreal: has joined #ruby
[01:20:14] jason4483: lagweezle, yes Im sorry I just closed it
[01:20:17] lagweezle: jason4483: If you have a = [3, 1, 8] and i = 2, what is the value of a[i+2] ?
[01:20:55] jason4483: I see what you mean lagweezle
[01:20:58] skweek: has joined #ruby
[01:21:23] jason4483: How should I fix this?
[01:21:34] northfurr: has joined #ruby
[01:22:31] jhass: jason4483: you've been thinking about for less than a minute
[01:22:38] jhass: *about it
[01:22:44] jhass: we're not here to do your homework ;)
[01:22:59] jason4483: Well that's not technically correct
[01:23:14] jason4483: I have been thinking about it since 3pm my time, which is about 6 and a half hrs ago
[01:23:32] jason4483: I know what you mean jhauss, but I am just exhuasted
[01:23:32] lagweezle: jason4483: There are two answers to your question. Do you need a Ruby solution, or is this to learn basic Computer Science concepts and approaches?
[01:23:35] jhass: on the general task, not on the particular issue
[01:23:59] jhass: lagweezle: I basically gave away the ruby solution above already
[01:24:03] jason4483: lagweezle, the latter I think - intro to CS concepts
[01:24:09] lagweezle: jhass: I don't think he caught that, though.
[01:24:10] XxionxX: has joined #ruby
[01:24:33] lagweezle: jhass: Related, thanks for learninating me about #each_cons !
[01:24:52] lagweezle: jason4483: Okay. Hmm.
[01:25:37] skweek: has joined #ruby
[01:25:42] jason4483: Just for the sake of clarity, I can't use each_cons during the exam
[01:25:59] jason4483: We haven't covered it yet
[01:26:21] jhass: you probably won't ever from the look of your code
[01:26:35] lagweezle: jason4483: How about starting with an additional restriction to change how you're thinking about this ... You don't get to look at any position in the array except for the one indicated by the variable 'i'.
[01:26:39] citrusfizz: has joined #ruby
[01:27:09] jason4483: lagweezle, okay, I understand what you mean
[01:27:45] jason4483: But Im not sure how to do this, I thought initializing i = 0 would cover my bases
[01:27:59] towski_: has joined #ruby
[01:28:58] oetjenj: has joined #ruby
[01:29:16] lagweezle: jason4483: Change the problem for now; only care about two consecutive numbers. How would you track the values?
[01:29:16] jenrzzz: has joined #ruby
[01:29:26] Ox0dea: >> [1,2,3].each_cons(2) { |a, b| a + b } # :(
[01:29:27] ruboto_: Ox0dea # => nil (https://eval.in/452446)
[01:29:46] jhass: Ox0dea: each, not map
[01:29:49] Ox0dea: >> %w[foo bar baz].grep(/a/) { |s| s.upcase } # jhass
[01:29:50] ruboto_: Ox0dea # => ["BAR", "BAZ"] (https://eval.in/452447)
[01:30:11] jhass: grep != each
[01:30:37] jhass: and that's kinda weird behavior there
[01:30:40] idefine: has joined #ruby
[01:30:43] jason4483: Well I thought it'd be num, num + 1
[01:30:53] Ox0dea: It would be awesome and not weird if it were more pervasive.
[01:31:01] Ox0dea: Every method takes a block; why not use the damned things?
[01:31:01] swgillespie: has joined #ruby
[01:31:05] jhass: jason4483: try listing all possible values of i _and_ i+1 _and_ i+2 for _all_ iterations of your loop
[01:31:22] jhass: like on a piece of paper
[01:31:24] lagweezle: ACTION nods.
[01:31:32] lagweezle: jason4483: What he said.
[01:31:40] s2013: has joined #ruby
[01:31:50] lagweezle: ACTION wonders if referring to people in IRC as 'it' would annoy them.
[01:32:06] jhass: lagweezle: http://en.wikipedia.org/wiki/Singular_they
[01:32:52] jhass: Ox0dea: well, allocating arrays is kinda expensive
[01:32:56] craysiii: has joined #ruby
[01:33:03] lagweezle: jhass: ... and now I'm sad. I need to get back into reading more often.
[01:35:15] Musashi007: has joined #ruby
[01:35:58] gaboesqu_: has joined #ruby
[01:36:38] craigs: has joined #ruby
[01:37:01] jason4483: I wrote them down. I re-printed my array basically.
[01:37:37] noodle: has joined #ruby
[01:37:47] CloCkWeRX: has joined #ruby
[01:38:01] stamina: has joined #ruby
[01:38:06] jhass: so you didn't notice anything in the process?
[01:38:14] craigs: has joined #ruby
[01:39:42] grekkos_: has joined #ruby
[01:39:43] jason4483: No. What should jump out at me?
[01:40:01] jhass: http://p.jhass.eu/4.txt fill this table
[01:41:22] jason4483: |1,2| |2,3| |3,4|
[01:41:35] failshell: has joined #ruby
[01:41:38] jhass: what are valid indexes for a?
[01:42:13] etrae: has joined #ruby
[01:42:15] jhass: clicked yet?
[01:43:00] ngscheurich: has joined #ruby
[01:43:09] Ox0dea: has joined #ruby
[01:43:23] jason4483: I know Im missing something ovious
[01:43:49] jhass: you just listed all indexes you generated
[01:43:57] jhass: you just listed all indexes that are valid
[01:44:01] Ox0dea: jhass: Could you provide the IPA for your name?
[01:44:21] jhass: Ox0dea: I never learned IPA :(
[01:44:26] Ox0dea: For shame.
[01:44:48] Ox0dea: Joe-nuh ha-zuh, presumably?
[01:45:00] GriffinHeart: has joined #ruby
[01:45:11] jhass: like in the english syllable's?
[01:45:13] chipotle: has joined #ruby
[01:45:21] Ox0dea: Approximately.
[01:45:25] jhass: no, far away
[01:45:37] Ox0dea: The shame is mine.
[01:45:37] jason4483: Okay, my array still prints indexes that exceed all valid indexes
[01:46:02] diego1: has joined #ruby
[01:46:06] jhass: Ox0dea: tbf english doesn't really have the necessary syllables
[01:46:23] symm-: has joined #ruby
[01:46:26] Ox0dea: Are you sure?
[01:46:30] citrusfizz: i have a nested hash and i need to add more and more data to it from a loop and call it outside the loop best way to do this?
[01:46:32] diego1: has joined #ruby
[01:46:39] Ox0dea: citrusfizz: Are you sure?
[01:46:43] oetjenj: has joined #ruby
[01:46:45] jhass: jason4483: "your loop uses", but yes
[01:47:08] jason4483: jhass I would liek to take a moment and say thanks for bearing with me
[01:47:09] jhass: Ox0dea: I didn't come up with anything comparable yet
[01:47:16] citrusfizz: am i sure about what Ox0dea
[01:47:20] jason4483: I've been coding for less than a week
[01:47:26] jason4483: and its kicing my ass
[01:47:27] lagweezle: Ox0dea: IPA?
[01:47:56] Ox0dea: lagweezle: Standardized phonetic pronunciation rules.
[01:48:07] jason4483: what do you mean "Your loops uses" btw?
[01:48:12] Ox0dea: citrusfizz: That you want to be doing this in an explicit loop.
[01:48:24] Ox0dea: I suspect Hash has a method or two for what you actually want to do.
[01:48:43] Ox0dea: jason4483: "all valid indexes" was hyperbolic was the point jhass meant to make.
[01:48:54] Ox0dea: Most indices are valid, just not for all Arrays.
[01:49:03] Ox0dea: Well, no, almost no indices are valid, but I trust you take my point.
[01:49:22] jhass: jason4483: the body of the while loop in your code
[01:49:27] citrusfizz: Ox0dea: i guess what i am asking is, i need to store "name of machine" -> {"group" -> "data" where all three of those can and will be different each time the array loops
[01:50:18] postmodern: has joined #ruby
[01:50:19] Ox0dea: citrusfizz: And you can't just, y'know, assign those values to those keys?
[01:50:25] Ox0dea: Hashes are mutable.
[01:51:04] jason4483: jhass, I don't have a clue what you mean. Can you explain your last statement?
[01:51:44] jhass: jason4483: while <condition> [newline] <body> [newline] end
[01:52:01] wldcordeiro: has joined #ruby
[01:52:03] swgillespie: has joined #ruby
[01:52:51] Ox0dea: <body> while <condition> is inferior, you say?
[01:53:43] BraddPitt: has anyone here used the Audite gem? https://github.com/georgi/audite
[01:53:54] queuetip: has left #ruby: ()
[01:54:36] citrusfizz: Ox0dea: http://pastebin.com/bR4HT6P7
[01:54:37] ruboto_: citrusfizz, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/1f1759b7b039c6db29de
[01:54:37] ruboto_: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[01:55:12] citrusfizz: Ox0dea: https://gist.github.com/anonymous/1f1759b7b039c6db29de
[01:55:30] Ox0dea: citrusfizz: I don't have ruboto_ on ignore.
[01:55:57] Ox0dea: Also, `allButts` isn't the greatest variable name.
[01:56:44] Ox0dea: You're re-assigning to `s`, thus overwriting the data previously contained therein.
[01:56:59] weemsledeux: has joined #ruby
[01:57:07] CloCkWeRX: has joined #ruby
[01:57:27] Ox0dea: >> h = {}; 10.times { |i| h[i] = i }; h # citrusfizz
[01:57:28] ruboto_: Ox0dea # => {0=>0, 1=>1, 2=>2, 3=>3, 4=>4, 5=>5, 6=>6, 7=>7, 8=>8, 9=>9} (https://eval.in/452448)
[01:58:31] jhass: Ox0dea: j??n?? has I guess
[01:59:02] Ox0dea: jhass: The E in Hasse is silent?!
[01:59:17] jhass: Ox0dea: my last name is Ha??
[01:59:36] Ox0dea: How embarrassing.
[01:59:42] Ox0dea: My apologies.
[01:59:57] jhass: now I'm curious where you got Hasse from :P
[02:00:11] jhass: but no worries
[02:00:18] Ox0dea: I don't see ?? terribly often, and something glitched.
[02:00:30] jhass: understandable
[02:01:07] jhass: the fun part is the the modern german ortography would write it as Hass
[02:01:19] jhass: *that the
[02:01:23] Ox0dea: Sure, I knew that bit.
[02:01:30] Ox0dea: Couldn't tell you where I got the E, though.
[02:01:39] Ox0dea: Maybe your TLD.
[02:02:17] jhass: .web's still in contention, else I'd got hass.web
[02:02:51] Ox0dea: What's contentious about it?
[02:03:05] jhass: too many idiots want it
[02:03:09] gix: has joined #ruby
[02:03:16] Ox0dea: ICANN can't just drop it, though?
[02:03:45] jhass: https://gtldresult.icann.org/applicationstatus/contentionsetdiagram/233
[02:03:54] shevy: hass.web for Rammstein
[02:04:01] jhass: but they did their part by declaring webs as similar
[02:04:02] akkad: has joined #ruby
[02:04:25] jhass: while things like vehicle and vehicles is perfectly fine apparently
[02:05:09] Ox0dea: shevy: Relevant: http://instacod.es/77164
[02:06:19] Ox0dea: Is it possible for an object to determine that it's being returned (or yielded)?
[02:06:58] Ox0dea: diegoviola: I've been listening to "Awake" on repeat since you linked it, by the way.
[02:07:08] lkba_: has joined #ruby
[02:07:14] Ox0dea: I'm considering getting some sort of neuronal implant so I can just always be hearing it.
[02:08:05] diegoviola: Ox0dea: cool
[02:08:31] jhass: good old zombie is playing in your head now?
[02:08:47] nateberkopec: has joined #ruby
[02:09:01] diegoviola: what do you mean
[02:09:21] Ox0dea: diegoviola: This is the second time we've done this.
[02:09:47] diegoviola: Ox0dea: not sure what you're ferring to
[02:10:05] Ox0dea: diegoviola: http://logs.ryanbigg.com/ruby?date=2015-08-21#3913334
[02:10:07] Feyn: has joined #ruby
[02:10:54] Ox0dea: I was saying you're cool for having introduced me to a good song.
[02:11:08] Ox0dea: The other time I was just poking fun.
[02:11:37] diegoviola: Ox0dea: I also like that song
[02:12:20] diegoviola: #ruby-offtopic
[02:13:19] diegoviola: what does poking fun means
[02:15:40] `tim`: has joined #ruby
[02:17:02] Ox0dea: It's a sex thing.
[02:17:11] prereflect: has joined #ruby
[02:17:34] webopsx: has joined #ruby
[02:17:55] Bellthoven: has joined #ruby
[02:18:08] symm-: has joined #ruby
[02:18:17] zenguy_pc: has joined #ruby
[02:18:20] diegoviola: not really interested on that
[02:18:48] rdavila: has joined #ruby
[02:19:11] eam: well, he already did it
[02:19:51] Ox0dea: diegoviola: Nevertheless, aces = pocket rockets.
[02:21:17] datanoise: has joined #ruby
[02:21:33] eam: It's a pokemon thing
[02:21:40] Ox0dea: *Pokermon
[02:21:45] eam: now that's a sex thing
[02:21:52] Ox0dea: Poker? I hardly know her.
[02:22:22] eam: you've corrupted the purity of pokemon and I give up
[02:22:32] Nilium: Well today's been thoroughly disappointing and Ox0dea's joke just made it drastically worse because ???_???
[02:23:09] Ox0dea: eam: Purity, you say?
[02:23:55] Ox0dea: > It remembers every dream it eats. It rarely eats the dreams of adults because children's are much tastier.
[02:23:59] Ox0dea: Drowzee's Silver entry.
[02:24:32] eam: granted according to the UN pokemon is a "killing game designed for toddlers "
[02:24:59] eam: perhaps it's my values which are misplaced after all
[02:25:08] Ox0dea: "They've only fainted," they said. "Let's not go to Lavender Town," they said. "'Tis a silly place."
[02:26:44] CloCkWeRX: has joined #ruby
[02:28:46] Nilium: I like the pokemon that kidnaps children.
[02:28:50] Nilium: The balloon one.
[02:29:14] shevy: Halloween pokemon!
[02:29:48] Ox0dea: Nilium: It's only said that they vanish.
[02:29:57] Ox0dea: Could just be that Drifloon is coated in some sort of hallucinogenic.
[02:30:20] eam: http://comicsalliance.com/weirdest-pokemon-black-white/
[02:30:21] Nilium: "It is whispered that any child who mistakes Drifloon for a balloon and holds on to it could wind up missing."
[02:30:22] sepp2k: has joined #ruby
[02:30:28] Nilium: Not so sure.
[02:30:50] Ox0dea: Blame helium.
[02:31:12] TheRokh: has joined #ruby
[02:31:37] Ox0dea: Helium is still cross about being second, ~13.8 billion years on.
[02:31:44] Nilium: Helium is a known source of evil.
[02:31:54] gambl0re: has joined #ruby
[02:32:03] Ox0dea: Hydrogen's Lucifer, as it were.
[02:32:22] TheRokh: has joined #ruby
[02:32:30] ruby-lang098: has joined #ruby
[02:32:32] iateadonut: has joined #ruby
[02:33:20] Nilium: In things unrelated to pokemon but related to games, I now own all Valve games past, present, and future, it seems.
[02:33:31] Nilium: Anyone got a time machine so I can figure out if the future part even applies?
[02:33:39] David27: has joined #ruby
[02:33:51] ruby-lang663: has joined #ruby
[02:34:07] Ox0dea: Extrapolation is hard; let's go interpolate.
[02:34:29] Nilium: Bring your own function
[02:34:35] Ox0dea: I am my own function.
[02:34:40] Nilium: Debatable
[02:34:43] Ox0dea: Prove it.
[02:34:54] Nilium: I was never good at proofs
[02:35:07] Ox0dea: I'll accept inductive reasoning this time.
[02:35:33] ruby-lang663: hello, i am querying /users?filter%5Bemail%5D=user2%40example.com and the console shows it querying the correct item successfully, but then it goes into my /users controller. I dont know how to stop that, or to return what it has already found
[02:36:05] Nilium: You should probably ask in the Rails channel.
[02:36:12] failshell: has joined #ruby
[02:36:24] Ox0dea: ?rails ruby-lang663
[02:36:24] ruboto_: ruby-lang663, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[02:37:03] Ox0dea: prime : primality :: composite : ?
[02:37:06] Ox0dea: What the hell goes there?
[02:37:15] Ox0dea: "Compositivity"?
[02:37:41] datanoise: has left #ruby: ("WeeChat 1.3")
[02:40:05] spuk_: has joined #ruby
[02:41:14] gambl0re: has joined #ruby
[02:43:27] bkxd: has joined #ruby
[02:43:53] sdothum: has joined #ruby
[02:44:08] bryanray: has joined #ruby
[02:44:36] _blizzy_: has joined #ruby
[02:45:09] gambl0re: has joined #ruby
[02:47:50] imperator: has joined #ruby
[02:52:05] blackjid: has joined #ruby
[02:53:02] Contigi: has joined #ruby
[02:53:26] ReK2: has joined #ruby
[02:54:57] Vile`: has joined #ruby
[02:55:09] VeryBewitching: Ox0dea: Compositive
[02:55:27] Ox0dea: VeryBewitching: That's the adjectival form; I'm looking for the noun, I guess.
[02:56:50] The_Phoenix: has joined #ruby
[02:58:10] stardiviner: has joined #ruby
[02:58:19] rushed: has joined #ruby
[02:58:43] Archyme: has joined #ruby
[02:58:51] bkxd: has joined #ruby
[02:59:02] workmad3: has joined #ruby
[03:00:43] gener1c_: has joined #ruby
[03:01:49] mrtomme: has joined #ruby
[03:04:16] gambl0re: has joined #ruby
[03:05:08] VeryBewitching: Ox0dea: Maybe? prime : primality :: composite : complexity
[03:05:17] jun: has joined #ruby
[03:05:30] `tim`: has joined #ruby
[03:05:47] Ox0dea: VeryBewitching: But "compose" and "complect" are hardly interchangeable?
[03:06:02] VeryBewitching: A composite is a blend, all blends are complexes.
[03:06:08] Ox0dea: Oh, you're right.
[03:06:16] Ox0dea: I like it.
[03:06:25] Ox0dea: It's the best English has for "non-primality", it seems.
[03:06:34] Ox0dea: VeryBewitching: Thanks. <3
[03:06:59] HAL2328: has joined #ruby
[03:07:01] VeryBewitching: np. I like language too. :D
[03:08:02] luckyme: has joined #ruby
[03:09:19] VeryBewitching: It stands to reason, if prime is referring to numerical primes, that it would have to be more complex than just having two factors.
[03:10:35] braincrash: has joined #ruby
[03:10:46] eam: and if it's referring to optimus?
[03:12:50] hagabaka: has joined #ruby
[03:12:51] Ox0dea: VeryBewitching: Sure, but "composite" is plainly superior to "complex" for prime numbers, insofar as it more plainly indicates that the things can be composed, that in direct opposition to the primes.
[03:13:22] Ox0dea: I've written "complexity" here, but this'll surely bug me for some time hence.
[03:15:36] nateberkopec: has joined #ruby
[03:18:45] northfurr: has joined #ruby
[03:19:46] yfeldblum: has joined #ruby
[03:20:50] VeryBewitching: Write the Oxford English Dictionary and make Compositivity a word :D
[03:20:51] grekkos_: has joined #ruby
[03:21:56] VeryBewitching: I think it's the best fit, wrt to expression, and where it can't be correct it's at least accurate.
[03:22:30] VeryBewitching: What's it for? Just curious.
[03:23:25] Ox0dea: Documentation.
[03:23:59] stardiviner: has joined #ruby
[03:24:22] citrusfizz: Ox0dea: >> h = {}; 10.times { |i| h[i] = i }; h # citrusfizz i'm not sure i understand this, what does 10.times do? or what do i replace that wtih
[03:25:03] Ox0dea: citrusfizz: What do you think `10.times` does?
[03:25:20] citrusfizz: loops 10 times
[03:25:23] Ox0dea: Nailed it.
[03:25:50] Ox0dea: 10 is a great number.
[03:25:50] citrusfizz: cuz there are not set amounts of iterations
[03:26:11] citrusfizz: lovely number
[03:26:17] citrusfizz: just seems arbitrary
[03:26:21] Ox0dea: It... was?
[03:26:34] Ox0dea: It was only meant to demonstrate how to add to a Hash from within a loop.
[03:26:58] Ox0dea: Lovely forest once you spot it, eh?
[03:26:58] baweaver: has joined #ruby
[03:27:28] citrusfizz: well.. still can't see past the trees yet
[03:27:55] VeryBewitching: >> n = 10; h = {}; n.times { |i| h[i] = i }; h
[03:27:56] ruboto_: VeryBewitching # => {0=>0, 1=>1, 2=>2, 3=>3, 4=>4, 5=>5, 6=>6, 7=>7, 8=>8, 9=>9} (https://eval.in/452462)
[03:28:04] Ox0dea: citrusfizz: But you *can* decipher my crypticisms, so points there. :)
[03:28:09] VeryBewitching: That's the whole box.
[03:28:29] Ox0dea: citrusfizz: Do you want to see why I love 10?
[03:29:12] citrusfizz: what is the long way of writing this (assuming using the {} is a shortcut
[03:29:31] tsou: has joined #ruby
[03:29:35] Radar: citrusfizz: Hash.new?
[03:29:50] citrusfizz: or is this like a list comprehensions in python
[03:29:55] citrusfizz: sorry i'm more of a snake guy
[03:29:57] citrusfizz: then a jewle
[03:30:07] Ox0dea: Then I'm glad I didn't show you why I love 10.
[03:30:53] citrusfizz: the first part is creating the hash
[03:30:57] citrusfizz: its this n.times { |i| h[i] = i }; h
[03:31:07] citrusfizz: n.times do |i|
[03:31:28] citrusfizz: whats the last h do
[03:31:42] Ox0dea: I put it there to show you the result.
[03:32:23] citrusfizz: what different betwewn the way your assigning h[i] to i and my s =.....
[03:32:47] citrusfizz: s = {inst.name => {'secHref'+ a.to_s => sec['href']}}
[03:32:52] Ox0dea: I'm assigning a value to a key; you're assigning to the whole thing.
[03:33:02] citrusfizz: think it clicked
[03:33:07] Ox0dea: Let's see it.
[03:33:53] Ox0dea: Now that you've stopped hissing, this is why I love 10: ??? n ??? ???: 10??? = n??????
[03:33:58] Joufflu: has joined #ruby
[03:34:10] Ox0dea: For the symbolically disinclined: http://cowbirdsinlove.com/43
[03:34:26] Ox0dea: Not that 10 isn't a symbol, but you take my meaning.
[03:34:28] citrusfizz: s[inst.name] = {secHref+a.to_s -> sec['href']}
[03:36:06] citrusfizz: running it now, lets see how bad i botched it
[03:36:15] Ox0dea: So close.
[03:36:17] orion: has left #ruby: ()
[03:36:23] Ox0dea: -> is for lambdae.
[03:37:57] citrusfizz: ok much closer. only problem is that sometimes, there are two secHref (hence the need for the incrementing a
[03:38:01] rushed: has joined #ruby
[03:38:11] citrusfizz: it assigns the 2nd one
[03:38:14] citrusfizz: but not the first.
[03:38:32] Ox0dea: citrusfizz: Post updated code?
[03:40:25] citrusfizz: https://gist.github.com/citrusfizz/e86b439089889aa26ee2
[03:41:14] citrusfizz: maybe i should increment the inst.name
[03:41:16] Bellthoven: has joined #ruby
[03:41:17] gix: has joined #ruby
[03:41:24] citrusfizz: but that would be kinda weird to parse when i need the data
[03:41:38] orion: has joined #ruby
[03:42:17] Ox0dea: citrusfizz: Right, you've stopped overwriting `s` and started overwriting `s[inst.name]`.
[03:42:19] awrfas2: has joined #ruby
[03:42:21] Ox0dea: Progress!
[03:42:51] chouhoulis: has joined #ruby
[03:43:33] chouhoulis: has joined #ruby
[03:43:42] fullofcaffeine: has joined #ruby
[03:44:04] citrusfizz: hmm but if i do s[inst.name]['secHref'+ a.to_s] = sec['href'] that wouldn't work would it?
[03:44:10] citrusfizz: well, worth a shot
[03:44:18] Ox0dea: It would if you'd previously initialized `s[inst.name]` to be a Hash, sure.
[03:45:28] orion: Given an array of Hashes such as [ { :foo => 'bar', :abc => 'def' }, ... ] is there a standard library function which allows me to eliminate all occurances of the key :abc?
[03:46:10] Ox0dea: orion: array_of_hashes.each { |hash| hash.delete :abc }
[03:46:27] citrusfizz: Ox0dea: so, should i create a loop to make the first assignment, and then make the next?
[03:46:47] Ox0dea: citrusfizz: See where you're initializing `a`?
[03:49:40] citrusfizz: i just moved that up, but now its way worse
[03:50:35] Ox0dea: Why did you move it up?
[03:51:12] citrusfizz: it was a wrong hunch
[03:51:17] stardiviner: has joined #ruby
[03:51:19] citrusfizz: but a hunch non the less
[03:51:44] Ox0dea: Well, where you *were* initializing `a` would be a great place to initialize `s[inst.name]` as well.
[03:52:02] s00pcan: has joined #ruby
[03:53:05] bkxd: has joined #ruby
[03:53:14] michael_mbp: has joined #ruby
[03:53:33] jenrzzz: has joined #ruby
[03:53:59] fullofca_: has joined #ruby
[03:55:45] chipotle: has joined #ruby
[03:59:09] arup_r: has joined #ruby
[03:59:52] oetjenj: has joined #ruby
[04:00:01] northfurr: has joined #ruby
[04:00:46] citrusfizz: i don't understand
[04:00:58] fullofcaffeine: has joined #ruby
[04:02:40] darkf: has joined #ruby
[04:02:49] citrusfizz: everything i'm doing just overwrites it
[04:04:12] donkorte: has joined #ruby
[04:07:22] chipotle: has joined #ruby
[04:09:42] cmoneylulz: has joined #ruby
[04:10:29] Chaoborid: has joined #ruby
[04:10:54] yes`r: has joined #ruby
[04:11:35] cmoneylulz: has joined #ruby
[04:13:33] weihan: has joined #ruby
[04:14:43] hahuang61: has joined #ruby
[04:15:05] Ox0dea: citrusfizz: https://eval.in/452470
[04:16:31] Ox0dea: Much nicer than concatenating an index, but I don't know how you intend to use these data.
[04:18:41] swgillespie: has joined #ruby
[04:18:46] zenguy_pc: has joined #ruby
[04:18:57] duderonomy: has joined #ruby
[04:20:05] dopie: has joined #ruby
[04:20:14] nateberkopec: has joined #ruby
[04:22:38] dfinninger: has joined #ruby
[04:24:18] fullofca_: has joined #ruby
[04:25:01] stardiviner: has joined #ruby
[04:26:58] dikaio: has joined #ruby
[04:27:53] fullofcaffeine: has joined #ruby
[04:29:59] spuk: has joined #ruby
[04:30:51] fullofca_: has joined #ruby
[04:30:54] GriffinHeart: has joined #ruby
[04:33:47] fullofcaffeine: has joined #ruby
[04:41:39] mleung: has joined #ruby
[04:42:18] robbyoconnor: has joined #ruby
[04:42:25] chipotle: has joined #ruby
[04:45:13] jun: has joined #ruby
[04:46:10] guardianL: has joined #ruby
[04:47:12] workmad3: has joined #ruby
[04:47:19] jpfuentes2: has joined #ruby
[04:49:21] sdothum: has joined #ruby
[04:50:04] cubicme: has joined #ruby
[04:50:24] bkxd: has joined #ruby
[04:51:54] sivsushruth: has joined #ruby
[04:54:36] cubicme: Hi, I???m defining a method on a series object, and i want to this method to return the value of a variable at the time of defining the method, instead of a holding a reference to it which will evaluate when i call the method, how can I do this? http://pastebin.com/U9vbBJ2u
[04:54:37] ruboto_: cubicme, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/872912721f4af16e6a2d
[04:54:37] ruboto_: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[04:54:53] Davey: has joined #ruby
[04:54:53] Davey: has joined #ruby
[04:56:29] rippa: has joined #ruby
[04:57:15] Davey: has joined #ruby
[04:57:15] Davey: has joined #ruby
[04:57:44] Ox0dea: >> singleton_class # cubicme: Worth noting, at least.
[04:57:44] Chaoborid: has joined #ruby
[04:57:50] ruboto_: Ox0dea # => #<Class:#<Object:0x40532e34>> (https://eval.in/452473)
[04:59:58] sdothum: has joined #ruby
[05:01:16] cubicme: Ox0dea: right, thanks
[05:02:10] fullofcaffeine: has joined #ruby
[05:03:34] Ox0dea: cubicme: Do you need unbounded iteration like that, then?
[05:04:20] cubicme: Ox0dea: sorry, i don???t understand
[05:04:34] Ox0dea: cubicme: Are you looping up to a specific number?
[05:05:15] cubicme: Ox0dea: i???m indexing the nodes in a linked list, the loop will terminate on conditions after this part of code,
[05:05:29] Ox0dea: Right, unbounded, then.
[05:05:34] rickmasta: has joined #ruby
[05:05:59] cubicme: Ox0dea: i need #index to return the value of ???i??? at the time of definition
[05:06:31] Ox0dea: Yes, you'll need to "close over" the value at such time.
[05:06:56] Ox0dea: Had your iteration been bounded, you could've used something like #times, which provides you with such a "closed over" value.
[05:08:22] Ox0dea: cubicme: Observe: https://eval.in/452474
[05:08:49] cubicme: Ox0dea: hmm, let me try something
[05:09:38] cubicme: Ox0dea: thanks, since Fixnum doesn???t have #dup, i did this: j = i + 0
[05:09:49] Ox0dea: Ha, that works.
[05:10:09] Ox0dea: You don't actually need to assign it, mind.
[05:10:32] Ox0dea: Though I suppose your real code is using it more than once, so ignore that.
[05:11:26] rushed: has joined #ruby
[05:12:02] cubicme: Ox0dea: thanks again :)
[05:12:27] stardiviner: has joined #ruby
[05:13:44] Ox0dea: cubicme: Happy to have helped. :)
[05:13:56] Ox0dea: Now you stay out of Object, y'hear?
[05:15:42] fullofcaffeine: has joined #ruby
[05:16:24] patdohere: has joined #ruby
[05:17:36] nemo_: has joined #ruby
[05:18:02] patdohere: has joined #ruby
[05:18:41] cubicme: Ox0dea: haha, definitely. just a whacky solution for a kata.
[05:19:32] craysiii: has joined #ruby
[05:20:46] lewis1711: has joined #ruby
[05:21:00] nateberkopec: has joined #ruby
[05:21:08] cubicme: has joined #ruby
[05:21:46] fullofcaffeine: has joined #ruby
[05:23:25] cubicme`: has joined #ruby
[05:24:59] s00pcan: has joined #ruby
[05:27:22] lewis1711: has left #ruby: ("Ex-Chat")
[05:30:02] akkad: has joined #ruby
[05:32:07] patdohere: has joined #ruby
[05:33:02] bkxd_: has joined #ruby
[05:33:47] lxsameer: has joined #ruby
[05:33:47] lxsameer: has joined #ruby
[05:34:00] Channel6: has joined #ruby
[05:34:53] Suzeanne: has joined #ruby
[05:35:04] Chaoborid: has joined #ruby
[05:35:11] devbug: has joined #ruby
[05:35:32] Pupp3tm4st3r: has joined #ruby
[05:36:09] rrichardsr3: has joined #ruby
[05:37:52] yfeldblum: has joined #ruby
[05:42:16] fullofcaffeine: has joined #ruby
[05:43:18] etrae: has joined #ruby
[05:43:40] Dopagod: has joined #ruby
[05:44:46] weemsledeux: has joined #ruby
[05:45:44] beauby: has joined #ruby
[05:47:29] GriffinHeart: has joined #ruby
[05:47:44] demonlove: has joined #ruby
[05:49:15] lessless: has joined #ruby
[05:49:22] bb010g: has joined #ruby
[05:49:31] patdohere: has joined #ruby
[05:50:33] awrfas2: has joined #ruby
[05:50:36] krimson: has joined #ruby
[05:51:32] Ox0dea: demonlove: Who's died?
[05:53:21] demonlove: carla brune
[05:55:44] krz: has joined #ruby
[05:56:25] bigmac_: has joined #ruby
[05:58:59] fullofcaffeine: has joined #ruby
[05:59:17] djbkd: has joined #ruby
[06:12:44] nemo_: has joined #ruby
[06:14:27] p1k: has joined #ruby
[06:14:45] p1k: how is it possible to load an arbitrary gem in irb/pry console?
[06:15:54] bougyman: require 'thegem'
[06:16:19] Chaoborid: has joined #ruby
[06:16:34] p1k: that doesn't work without a gemfile
[06:17:45] bl0ndie: has joined #ruby
[06:18:17] patdohere: has joined #ruby
[06:18:43] Radar: yes it does
[06:19:27] zenguy_pc: has joined #ruby
[06:19:41] orion: has left #ruby: ()
[06:19:42] p1k: Radar: under what special conditions?
[06:19:52] Radar: p1k: gem install thegem
[06:19:56] Radar: p1k: require 'thegem'
[06:20:04] Radar: no ???, just profit
[06:20:18] p1k: that doesn't work
[06:20:24] Radar: ?didntwork
[06:20:24] ruboto_: I don't know anything about didntwork
[06:20:27] Radar: ruboto_: So useless.
[06:20:39] Radar: What "didn't work"? Did your server not start? Did your computer explode? Did your webpage turn bright pink? Did your client not pay your bill on time? You may have to be more specific. A Gist (http://gist.github.com) of the code that doesn't work (and the error you are getting) will be helpful.
[06:20:46] Radar: Give us some info to go on, at least.
[06:21:00] jenrzzz: has joined #ruby
[06:21:12] p1k: Radar: LoadError: cannot load such file -- benchmark-ips, from /Users/user/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
[06:21:21] Radar: p1k: And how did you install that gem?
[06:21:25] `tim`: has joined #ruby
[06:21:29] p1k: gem install 'gemname'
[06:21:37] Radar: literally 'gemname'?
[06:21:38] Macaveli: has joined #ruby
[06:21:50] Radar: requhttps://github.com/evanphx/benchmark-ips/tree/master/lib/benchmark
[06:21:51] p1k: literally 'benchmark-ups' for example
[06:21:51] Radar: https://github.com/evanphx/benchmark-ips/tree/master/lib/benchmark
[06:22:00] howdoi: has joined #ruby
[06:22:00] Radar: Correct file to require is 'benchmark/ips'
[06:22:08] Radar: https://github.com/evanphx/benchmark-ips#synopsis
[06:22:13] GnuYawk: has joined #ruby
[06:22:13] GnuYawk: has joined #ruby
[06:22:13] Radar: It even says that in the documentation.
[06:22:18] skade: has joined #ruby
[06:22:28] Radar: There is no benchmark-ips file from that gem to require
[06:23:52] p1k: Radar: thanks, so I have another one which doesn't work
[06:24:05] Radar: p1k: Did you read the documentation for that one too?
[06:24:41] p1k: Radar: i have
[06:24:45] p1k: (https://github.com/soveran/disque-rb)
[06:25:44] Radar: p1k: And what have you tried and how is it not working?
[06:26:31] p1k: Rader: gem install 'disque-rb'; irb; require 'disque'; require 'disque/rb'; require 'disque/rb/0.0.0'
[06:27:07] Radar: p1k: Look in the lib dir on GitHub.
[06:27:14] fullofcaffeine: has joined #ruby
[06:27:14] Radar: p1k: The lib dir of all gems is what is available to require
[06:27:25] Radar: require 'disque' should've worked.
[06:27:32] Radar: If it's not working, show us the error it gives you.
[06:29:18] bl0ndie: has joined #ruby
[06:30:23] p1k: Radar: when the gem is installed should the corresponding file be in lib?
[06:30:32] p1k: I have an empty module with a completely different name
[06:31:17] Radar: what `lib` directory are you talking about
[06:31:52] p1k: i think the gem package is simply broken
[06:32:09] p1k: (the relative path is versions/2.2.3/lib/ruby/gems/2.2.0/gems/disque-rb-0.0.0/lib)
[06:32:25] Radar: why did that install version 0.0.0?
[06:32:40] Radar: Did you run "gem install disque-rb" or "gem install disque"?
[06:32:51] Radar: Oh, I see above you ran the other one.
[06:32:53] Radar: disque-rb
[06:33:07] Radar: That is a completely different gem to the one you linked from GitHub
[06:33:09] Radar: which is this gem https://rubygems.org/gems/disque
[06:33:12] p1k: has left #ruby: ("Leaving")
[06:33:16] p1k: has joined #ruby
[06:34:01] p1k: yeah I see that now
[06:35:13] ss_much: has joined #ruby
[06:35:24] workmad3: has joined #ruby
[06:35:35] Ropeney: has joined #ruby
[06:35:38] Kara: has joined #ruby
[06:35:39] karam: has joined #ruby
[06:35:46] solocshaw: has joined #ruby
[06:35:53] Gnomethrower: has joined #ruby
[06:39:26] yfeldblum: has joined #ruby
[06:42:42] Soda: has joined #ruby
[06:46:17] baweaver: has joined #ruby
[06:47:13] ndrei: has joined #ruby
[06:49:57] jun: has joined #ruby
[06:51:11] Scoutlink: has joined #ruby
[06:52:09] ruurd: has joined #ruby
[06:57:32] weihan_: has joined #ruby
[06:57:45] SylarRuby: has joined #ruby
[06:57:49] Scoutlink: has left #ruby: ()
[06:58:29] rushed: has joined #ruby
[06:59:19] SylarRuby: Could I get a feedback on 6/7 questions about a project I???d like to create please? goo.gl/HjG3lr
[07:00:04] SylarRuby: http://goo.gl/HjG3lr
[07:01:02] Radar: SylarRuby: 4 and 5 are the same.
[07:01:17] SylarRuby: Radar: let me see..
[07:01:27] patdohere: has joined #ruby
[07:01:53] SylarRuby: Radar: yes. i could not change it because i someone had already filled out them question.
[07:01:54] ndrei: has joined #ruby
[07:03:16] last_staff: has joined #ruby
[07:07:38] Ox0dea: #3 won't let me enter pi.
[07:07:50] Pupeno: has joined #ruby
[07:08:58] lessless: has joined #ruby
[07:09:07] bmalum: has joined #ruby
[07:10:13] jun: has joined #ruby
[07:10:19] jenrzzz: has joined #ruby
[07:10:34] nemo_: has joined #ruby
[07:11:09] nateberkopec: has joined #ruby
[07:12:39] Miriana-Tor: has joined #ruby
[07:12:40] Miriana-Tor: Hello I am an Italian girl, and I love to do sex in all ways, visit my site http://mirianator.altervista.org/
[07:13:00] jun: has joined #ruby
[07:13:28] User458764: has joined #ruby
[07:15:53] Radar: !mute Miriana-Tor
[07:15:53] ruboto_: -o ruboto_
[07:16:24] SylarRuby: wtf Miriana-Tor
[07:16:51] rushed: has joined #ruby
[07:17:26] Miriana-Tor: Hello I am an Italian girl, and I love to do sex in all the ways, visit my site http://mirianator.altervista.org/
[07:17:36] krz: has joined #ruby
[07:21:40] Kara: has joined #ruby
[07:22:16] sanjayu: has joined #ruby
[07:22:31] hadrig: has joined #ruby
[07:22:34] Radar: Radar kicked Miriana-Tor: thanks
[07:22:35] karam: has joined #ruby
[07:22:37] Radar: -q *!*@2.237.171.7
[07:22:39] Radar: -b *!*@2.237.171.7
[07:25:06] timonv: has joined #ruby
[07:31:40] dionysus69: has joined #ruby
[07:32:12] dagda1: has joined #ruby
[07:33:22] GriffinHeart: has joined #ruby
[07:42:50] _blizzy_: has joined #ruby
[07:43:59] etrae: has joined #ruby
[07:44:30] _blizzy_: has joined #ruby
[07:45:23] Mia: has joined #ruby
[07:45:23] Mia: has joined #ruby
[07:45:24] krz: has joined #ruby
[07:47:19] ruurd: has joined #ruby
[07:47:29] ndrei: has joined #ruby
[07:50:57] SylarRuby: Radar: I may grab your book off amazon ;)
[07:51:40] _blizzy_: has joined #ruby
[07:51:49] SylarRuby: rails 4 in action
[07:53:11] tubuliferous: has joined #ruby
[07:53:58] Kara: has joined #ruby
[07:54:48] Ketchy: has joined #ruby
[07:55:12] karam: has joined #ruby
[07:58:12] yosiat: has joined #ruby
[08:02:21] moeSeth: has joined #ruby
[08:03:01] grekkos_: has joined #ruby
[08:06:55] skade: has joined #ruby
[08:07:33] firstdayonthejob: has joined #ruby
[08:10:49] M-mistake: has joined #ruby
[08:18:38] ndrei: has joined #ruby
[08:19:23] voker57: has joined #ruby
[08:19:28] fullofcaffeine: has joined #ruby
[08:21:01] zenguy_pc: has joined #ruby
[08:22:07] bitsapien: has joined #ruby
[08:23:30] workmad3: has joined #ruby
[08:25:36] Kara: has joined #ruby
[08:27:08] skade: has joined #ruby
[08:29:39] skade: has joined #ruby
[08:30:33] nateberkopec: has joined #ruby
[08:31:49] Macaveli: has joined #ruby
[08:33:46] dagda1: has joined #ruby
[08:34:33] arup_r: has joined #ruby
[08:36:15] bkxd: has joined #ruby
[08:37:48] skade: has joined #ruby
[08:40:13] solocshaw: has joined #ruby
[08:43:15] ruurd: has joined #ruby
[08:44:06] marr: has joined #ruby
[08:45:02] ruby-lang121: has joined #ruby
[08:45:30] stardiviner: has joined #ruby
[08:46:40] ruby-lang121: I am trying to use Limechat
[08:46:49] ruby-lang121: how does it work exactly?
[08:47:04] tubuliferous: has joined #ruby
[08:47:51] ruby-lang121: has left #ruby: ()
[08:54:22] neanderslob: has joined #ruby
[08:54:32] skade: has joined #ruby
[08:55:05] ruurd: has joined #ruby
[08:55:59] iamjarvo_: has joined #ruby
[08:57:42] bkxd: has joined #ruby
[09:00:45] bitsapien: has joined #ruby
[09:04:36] matp_: has joined #ruby
[09:05:08] bkxd: has joined #ruby
[09:05:36] htmldrum: has joined #ruby
[09:05:58] pandaant: has joined #ruby
[09:11:32] ledestin: has joined #ruby
[09:12:51] shenxuhui: has joined #ruby
[09:14:43] Jackneill: has joined #ruby
[09:15:44] patdohere: has joined #ruby
[09:16:17] dcarmich: has joined #ruby
[09:22:15] glennt: has joined #ruby
[09:23:28] bruno-: has joined #ruby
[09:26:45] skade: has joined #ruby
[09:28:10] yfeldblum: has joined #ruby
[09:28:23] ponga: has joined #ruby
[09:30:01] oetjenj: has joined #ruby
[09:33:28] cubicme: has joined #ruby
[09:34:44] Spami: has joined #ruby
[09:35:04] nemo_: has joined #ruby
[09:35:30] matp: has joined #ruby
[09:40:43] bitsapien: has joined #ruby
[09:40:58] skade: has joined #ruby
[09:42:33] Peteykun: has joined #ruby
[09:43:59] awrfas2: has joined #ruby
[09:45:16] hs366: has joined #ruby
[09:45:46] Juanchito: has joined #ruby
[09:47:27] jenrzzz: has joined #ruby
[09:48:12] varunwachaspati: has joined #ruby
[09:48:13] yashinbasement: has joined #ruby
[09:50:29] sameerynho: has joined #ruby
[09:51:07] mattprelude: has joined #ruby
[09:53:25] iateadonut: has joined #ruby
[09:53:33] skade: has joined #ruby
[09:57:34] vigintas: has joined #ruby
[10:00:32] subscope: has joined #ruby
[10:01:54] EminenceHC: has joined #ruby
[10:05:43] jgt: has joined #ruby
[10:07:21] karam: has joined #ruby
[10:07:21] Kara: has joined #ruby
[10:09:27] SCHAAP137: has joined #ruby
[10:09:32] Musashi007: has joined #ruby
[10:10:00] dmolina: has joined #ruby
[10:11:00] gizmore: has joined #ruby
[10:11:29] workmad3: has joined #ruby
[10:13:13] decoponio: has joined #ruby
[10:14:58] Pupeno: has joined #ruby
[10:17:57] gregf: has joined #ruby
[10:18:35] htmldrum: has joined #ruby
[10:19:11] User458764: has joined #ruby
[10:19:21] nateberkopec: has joined #ruby
[10:19:44] quazimodo: has joined #ruby
[10:21:46] zenguy_pc: has joined #ruby
[10:25:07] workmad3: has joined #ruby
[10:25:16] big|bad|wolf: has joined #ruby
[10:26:47] dzejrou: has joined #ruby
[10:27:23] slackbotgz: has joined #ruby
[10:29:21] dzejrou_: has joined #ruby
[10:32:17] maokomioko: has joined #ruby
[10:33:25] Musashi007: has joined #ruby
[10:34:54] lavros: has joined #ruby
[10:39:45] cubicme`: has joined #ruby
[10:42:02] FernandoBasso: has joined #ruby
[10:46:10] CloCkWeRX: has joined #ruby
[10:51:00] symm-: has joined #ruby
[10:55:59] DaniG2k: has joined #ruby
[10:56:32] rikkipitt: has joined #ruby
[11:00:42] dagda1: has joined #ruby
[11:00:44] lxsameer_: has joined #ruby
[11:01:28] spider-mario: has joined #ruby
[11:02:24] fullofcaffeine: has joined #ruby
[11:05:46] stardiviner: has joined #ruby
[11:06:10] matp: has joined #ruby
[11:10:48] mdih: has joined #ruby
[11:12:35] weihan: has joined #ruby
[11:12:53] Kara: has joined #ruby
[11:13:53] big|bad|wolf: has joined #ruby
[11:19:20] htmldrum: has joined #ruby
[11:19:29] ht__: has joined #ruby
[11:20:06] nateberkopec: has joined #ruby
[11:20:27] jamesaxl: has joined #ruby
[11:22:11] Eternal: has joined #ruby
[11:22:42] Eternal: hi, can I pass a variable to `[...]` in ruby?
[11:22:58] shevy: Eternal what is [...]
[11:24:15] Eternal: I want eg. `cat $variable`
[11:24:16] shevy: if you mean a String then: x = 5; y = "6 - 1 is #{x}"
[11:24:46] shevy: if you mean backticks then `cat #{variable_here}`
[11:25:32] Eternal: works! thanks
[11:25:54] workmad3: has joined #ruby
[11:26:19] stamina: has joined #ruby
[11:26:21] unreal_: has joined #ruby
[11:26:35] Hanmac: has joined #ruby
[11:27:20] dEPy: has joined #ruby
[11:27:28] Gnomethrower: has joined #ruby
[11:29:42] Jackneill: has joined #ruby
[11:31:12] unreal: has joined #ruby
[11:32:20] p1k: has joined #ruby
[11:34:44] michael_mbp: has joined #ruby
[11:36:24] DEA7TH: has joined #ruby
[11:36:58] DEA7TH: Is that sort of one-liner easy to read? origins.map { |o| destinations.map { |d| [o, d] } }
[11:38:12] apeiros: DEA7TH: I prefer `origin` & `destination` over `o` & `d`
[11:38:19] apeiros: other than that - yes
[11:38:19] chipotle: has joined #ruby
[11:38:30] ramfjord: has joined #ruby
[11:38:49] yxhuvud: has joined #ruby
[11:39:39] jhass: wait, isn't that .zip?
[11:40:01] jhass: ah no, each origin gets all destinations
[11:40:19] jhass: good morning I guess :D
[11:40:48] Kara: has joined #ruby
[11:42:27] karam: has joined #ruby
[11:42:32] phutchins: has joined #ruby
[11:42:44] jenrzzz: has joined #ruby
[11:42:56] DEA7TH: turns two arrays to a square matrix where matrix[i][j] = [array1[i], array2[j]]
[11:43:01] DEA7TH: it's a mock
[11:43:53] porfa: has joined #ruby
[11:44:01] Caius: has joined #ruby
[11:44:08] etrae: has joined #ruby
[11:44:31] karam: has joined #ruby
[11:46:28] sdothum: has joined #ruby
[11:46:58] shinnya: has joined #ruby
[11:46:59] phutchins1: has joined #ruby
[11:48:21] momo-reina: has joined #ruby
[11:54:49] bl0ndie: has joined #ruby
[11:56:44] flughafen_: has left #ruby: ("WeeChat 1.0")
[11:58:14] workmad3: has joined #ruby
[12:02:36] soosfarm: has joined #ruby
[12:05:56] GriffinHeart: has joined #ruby
[12:08:49] big|bad|wolf: has joined #ruby
[12:12:11] sdothum: has joined #ruby
[12:12:38] shevy: so if I push a new gem where the description says "DO NOT DOWNLOAD" and I get about 130 downloads in 2 days... shall I wonder about this
[12:14:58] Pupeno: has joined #ruby
[12:15:52] sameerynho: has joined #ruby
[12:20:06] jgt: has joined #ruby
[12:20:46] JJM: has joined #ruby
[12:21:53] zenguy_pc: has joined #ruby
[12:21:56] htmldrum: has joined #ruby
[12:23:26] chipotle: has joined #ruby
[12:24:11] CaseyOnHex: has joined #ruby
[12:25:24] cubicme: has joined #ruby
[12:26:06] DEA7TH: Multiple calls to mocha expects don't work? https://gist.github.com/VelizarHristov/92aea7e68c701b8d2ea8
[12:26:13] DEA7TH: Then how can I have dynamic expects?
[12:26:51] matp: has joined #ruby
[12:27:28] DEA7TH: the result I get is that when I call it, I get the usual output - I assume that only the last expects counted
[12:34:03] jhass: well, get a better mocking framework :P
[12:34:06] DEA7TH: oops, I typo'd
[12:34:40] jhass: http://www.rubydoc.info/gems/mocha/Mocha/Expectation#then-instance_method
[12:36:43] DEA7TH: my problem was find_or_create instead of find_or_create_by
[12:37:29] JJM: has joined #ruby
[12:37:41] sdfgsdfg: has joined #ruby
[12:38:11] Spami: has joined #ruby
[12:39:54] GriffinHeart: has joined #ruby
[12:39:56] SylarRuby: has joined #ruby
[12:41:45] sankaber: has joined #ruby
[12:42:27] sankaber: has joined #ruby
[12:44:44] big|bad|wolf: has joined #ruby
[12:45:08] Oog: has joined #ruby
[12:46:00] DEA7TH: Yay, it works! And it creates (n ** 2) * 2 assertions. (n = 150)
[12:46:30] stardiviner: has joined #ruby
[12:49:02] solocshaw1: has joined #ruby
[12:49:40] segfalt: has joined #ruby
[12:49:48] jhass: this sounds an awful lot like you're asserting implementation instead of behavior
[12:50:26] mdih: has joined #ruby
[12:50:30] mattprelude: Not really a Ruby question but general OOP/separation of responsibilities. I want to create a User object from a database call (SELECT {fields} FROM `users`). Which classes should I need to do this, and what should their responsibilities be?
[12:50:55] fullofcaffeine: has joined #ruby
[12:51:49] jhass: well, that's controversial, the more popular patterns are active record (Rails' activerecord is not actually in implementation thereof) and repository
[12:53:22] DEA7TH: I'm asserting a large set of updates, which must happen on function call. It does do n**2 updates. The other n**2 is for find_or_create_by
[12:53:52] above: has joined #ruby
[12:53:57] DEA7TH: And it's still loading (10 minutes now). I'm not even hitting the DB!
[12:54:09] DEA7TH: Trying another implementation...
[12:54:43] jhass: yeah, you can probably write a single INSERT or UPDATE
[12:54:58] jhass: activerecord-import might be handy
[12:55:26] sepp2k: has joined #ruby
[12:56:04] DoubleMalt: has joined #ruby
[12:56:17] DEA7TH: It has to insert anything which is missing. A single update won't do.
[12:56:34] DEA7TH: If it isn't missing, it cannot insert because that's a duplicate, so a single insert can't either.
[12:58:37] stardiviner: has joined #ruby
[12:59:17] pathrocle: has joined #ruby
[13:01:52] pwnd_nsfw: has joined #ruby
[13:04:59] tknz: has joined #ruby
[13:05:05] DEA7TH: But that's hardly relevant because I'm not actually contacting the DB
[13:05:37] nateberkopec: has joined #ruby
[13:06:57] ruurd: has joined #ruby
[13:07:03] nemo_: has joined #ruby
[13:08:16] iateadonut: has joined #ruby
[13:11:17] bkxd: has joined #ruby
[13:11:34] kirun: has joined #ruby
[13:12:07] Kara: has joined #ruby
[13:13:15] _blizzy_: has joined #ruby
[13:15:30] karam: has joined #ruby
[13:17:12] workmad3: has joined #ruby
[13:19:49] codecop: has joined #ruby
[13:22:06] Peteykun: has joined #ruby
[13:29:04] Gnomethrower: has joined #ruby
[13:30:52] atomical: has joined #ruby
[13:31:21] segmond: has joined #ruby
[13:31:27] p1k: has joined #ruby
[13:31:37] BTRE: has joined #ruby
[13:34:56] DEA7TH: Turns out that Mocha was slowing me down. When I rewrote it to use just 2 asserts (keep all update calls in a set, and check equality with expected set), it ran really fast even with n=234 (n**2 = 55k).
[13:35:21] skade: has joined #ruby
[13:38:07] ruurd: has joined #ruby
[13:39:01] Dmitry: has joined #ruby
[13:41:58] Dmitry: Hi all. I use bundler to manage my project gems and also I have Vagrant installed via system-wide. I'd like to use Git module in my Vagrantfile to checkout provisioning files from another git repository, but ruby doesn't see the git gem. Even if I do require 'bundler/setup' befor require 'git'
[13:42:17] victortyau: has joined #ruby
[13:43:22] skade: has joined #ruby
[13:45:01] etrae: has joined #ruby
[13:45:16] jenrzzz: has joined #ruby
[13:45:31] lessless: has joined #ruby
[13:47:40] jhass: Dmitry: bundle show git ?
[13:47:43] corehook: has joined #ruby
[13:47:56] jhass: also what's the exact error message?
[13:48:05] Dmitry: /home/usr/.rvm/gems/ruby-2.2.1/gems/git-1.2.9.1
[13:48:23] Dmitry: Message: LoadError: cannot load such file -- git
[13:49:11] jhass: what exact command?
[13:49:12] chipotle: has joined #ruby
[13:49:23] Dmitry: $ vagrant provision
[13:50:03] Dmitry: I know, I execute it without bundle exec, but according to bundler docs it can be fixed with require 'bundler/setup'
[13:50:07] jhass: how about bundle exec vagrant provision?
[13:50:24] jhass: in theory
[13:50:35] Dmitry: The same =/
[13:50:37] Dmitry: Message: LoadError: cannot load such file -- git
[13:51:17] jhass: bundle exec ruby -rgit -S vagrant provision ?
[13:51:41] Dmitry: /home/usr/.rvm/rubies/ruby-2.2.1/bin/ruby: no Ruby script found in input (LoadError)
[13:51:54] jhass: which vagrant ?
[13:52:08] Dmitry: /usr/bin/vagrant
[13:52:14] jhass: head -n1 /usr/bin/vagrant ?
[13:52:59] Dmitry: #!/usr/bin/env bash
[13:53:13] Dmitry: /opt/vagrant/bin/vagrant "$@"
[13:53:30] jhass: that seems to be no longer written in Ruby I guess
[13:53:40] jhass: hit up the folks in #vagrant
[13:53:43] Dmitry: /opt/vagrant/bin/vagrant is abinary file
[13:54:26] Dmitry: jhass: Thanks.
[13:55:15] michael_mbp: has joined #ruby
[13:55:30] atomical_: has joined #ruby
[13:55:37] skade: has joined #ruby
[13:58:38] mary5030: has joined #ruby
[14:00:35] platzhirsch: has joined #ruby
[14:00:49] rodfersou: has joined #ruby
[14:02:24] subscope: has joined #ruby
[14:03:18] karam: has joined #ruby
[14:04:00] chipotle: has joined #ruby
[14:04:02] monq: has joined #ruby
[14:04:18] Yzguy: has joined #ruby
[14:05:12] grekkos_: has joined #ruby
[14:06:20] adac: has joined #ruby
[14:07:01] diegoaguilar: has joined #ruby
[14:08:36] karam: has joined #ruby
[14:10:42] Trynemjoel: has joined #ruby
[14:11:41] Dmitry: jhass: Is it possible to run sub command in blocking mode via IO module?
[14:11:51] pontiki: has joined #ruby
[14:12:03] Dmitry: Looks like IO is available in Vagrantfile :)
[14:12:18] jhass: IO#popen is blocking, but if you don't need its flexibility Kernel#system or Kernel#` might be good enough
[14:12:37] Gnomethrower: has joined #ruby
[14:12:52] jhass: Kernel should be available everywhere
[14:13:06] jhass: just system("git ...") for example
[14:13:54] karapetyan: has joined #ruby
[14:16:00] Dmitry: jhass: Is there any module to resolve relative/path to cross-platform path?
[14:16:14] jhass: Diabolik: File.expand_path
[14:16:20] jhass: bah, Dmitry ^, sorry
[14:16:28] Dmitry: :) Thanks
[14:17:32] Gnomethrower: has joined #ruby
[14:19:28] chipotle: has joined #ruby
[14:22:23] Polysics: has joined #ruby
[14:22:41] htmldrum: has joined #ruby
[14:23:44] lessless: has joined #ruby
[14:23:57] zenguy_pc: has joined #ruby
[14:24:40] Gnomethrower: has joined #ruby
[14:27:34] ruurd: has joined #ruby
[14:30:38] banister: has joined #ruby
[14:30:56] chipotle: has joined #ruby
[14:31:48] krz: has joined #ruby
[14:33:56] hectortrope: has joined #ruby
[14:35:38] bmalum: has joined #ruby
[14:35:58] chouhoulis: has joined #ruby
[14:37:09] MVPhelp: has joined #ruby
[14:39:09] fullofcaffeine: has joined #ruby
[14:39:21] David27: has joined #ruby
[14:41:54] Dmitry: jhass: Last question. Is it possible to suppress output from IO.popen?
[14:41:54] chouhoulis: has joined #ruby
[14:42:18] jhass: just use system
[14:42:30] jhass: and >/dev/null
[14:42:42] Dmitry: It should be cross-platform :)
[14:43:02] jhass: &ri Kernel#system
[14:43:03] `derpy: http://www.rubydoc.info/stdlib/core/Kernel#system-instance_method
[14:43:10] jhass: &ri Kernel#spawn
[14:43:10] `derpy: http://www.rubydoc.info/stdlib/core/Kernel#spawn-instance_method
[14:43:20] jhass: system takes the redirection options of ^
[14:44:39] Rollabunna: has joined #ruby
[14:46:48] beauby: has joined #ruby
[14:47:10] ItSANgo: has joined #ruby
[14:48:47] chipotle: has joined #ruby
[14:50:56] slawrence00: has joined #ruby
[14:50:58] yosiat: has joined #ruby
[14:51:32] _blizzy_: has joined #ruby
[14:51:54] JJM: has joined #ruby
[14:52:09] acke: has joined #ruby
[14:52:39] Kruppe: has joined #ruby
[14:53:27] CloCkWeRX: has joined #ruby
[14:53:47] camilasan: has joined #ruby
[14:54:12] noethics: has joined #ruby
[14:55:09] dfinninger: has joined #ruby
[14:58:44] yosiat: has joined #ruby
[14:58:46] gregf: has joined #ruby
[14:58:50] chouhoulis: has joined #ruby
[14:58:57] chipotle: has joined #ruby
[15:02:13] _blizzy_: has joined #ruby
[15:02:33] Meow-J: has joined #ruby
[15:02:34] daed: has joined #ruby
[15:05:15] workmad3: has joined #ruby
[15:06:11] chipotle: has joined #ruby
[15:06:18] mary5030: has joined #ruby
[15:06:52] ellisTAA: has joined #ruby
[15:08:12] karapetyan: has joined #ruby
[15:08:13] subscope_: has joined #ruby
[15:15:24] diegoaguilar: has joined #ruby
[15:16:50] leat1: has joined #ruby
[15:18:22] shevy: Kernel#spawn_more_zombies
[15:19:02] chipotle: has joined #ruby
[15:20:19] skade: has joined #ruby
[15:20:21] Dmitry: jhass: Sorry, what do you mean?
[15:20:32] jun: has joined #ruby
[15:21:26] Macaveli: has joined #ruby
[15:21:27] workmad3: has joined #ruby
[15:23:04] dfinninger: has joined #ruby
[15:25:00] sdothum: has joined #ruby
[15:25:00] lessless: has joined #ruby
[15:25:19] jhass: system("...", out: :close, err: :close)
[15:25:23] ramfjord: has joined #ruby
[15:26:02] howdoi: has joined #ruby
[15:26:23] Yzguy: has joined #ruby
[15:27:06] leat1: has joined #ruby
[15:27:53] DLSteve: has joined #ruby
[15:32:49] Mia: has joined #ruby
[15:33:01] fullofcaffeine: has joined #ruby
[15:33:05] hadrig: has joined #ruby
[15:39:39] ruurd: has joined #ruby
[15:41:10] freerobby: has joined #ruby
[15:42:42] The_Phoenix: has joined #ruby
[15:43:35] skcin7: has joined #ruby
[15:45:46] blue_deref: has joined #ruby
[15:46:31] nateberkopec: has joined #ruby
[15:46:33] awrfas2: has joined #ruby
[15:50:54] acke: has joined #ruby
[15:50:57] fedexo: has joined #ruby
[15:51:13] Dmitry: jhass: Looks like I've found a nice way to run subprocesses: https://github.com/mitchellh/vagrant/blob/master/lib/vagrant/util/subprocess.rb#L38
[15:51:57] jhass: Dmitry: well, you're in #ruby, of course I can only point to core/stdlib solutions
[15:52:08] jhass: as said #vagrant for everything else
[15:52:16] Dmitry: Ok, sorry :)
[15:52:42] minimalism: has joined #ruby
[15:52:45] GriffinHeart: has joined #ruby
[15:53:48] snath: has joined #ruby
[15:54:30] ellisTAA: has joined #ruby
[15:54:58] Us54er: has joined #ruby
[15:55:12] skweek: has joined #ruby
[15:56:46] snath: has left #ruby: ()
[15:56:49] karapetyan: has joined #ruby
[15:57:21] sumark: has joined #ruby
[15:58:22] tmtwd: has joined #ruby
[16:00:14] _kfpratt: has joined #ruby
[16:01:05] leafybasil: has joined #ruby
[16:01:53] chipotle: has joined #ruby
[16:02:17] iDavid_: has joined #ruby
[16:02:23] karapetyan: has joined #ruby
[16:02:40] karapetyan: has joined #ruby
[16:02:56] ellisTAA: has joined #ruby
[16:03:34] firstdayonthejob: has joined #ruby
[16:06:11] grekkos_: has joined #ruby
[16:06:35] lele: has joined #ruby
[16:07:26] amnesia: has joined #ruby
[16:07:48] amnesia: question, is it possible to somehow use encoding with eval()?
[16:08:17] codecop: has joined #ruby
[16:09:15] karapetyan: has joined #ruby
[16:09:52] jhass: Amnesia: don't use eval
[16:10:17] tmtwd: has joined #ruby
[16:10:52] umgrosscol: has joined #ruby
[16:10:54] bmalum: has joined #ruby
[16:14:48] bigmac_: has joined #ruby
[16:16:44] prestorium: has joined #ruby
[16:16:52] mary5030: has joined #ruby
[16:17:03] workmad3: has joined #ruby
[16:17:04] jenrzzz: has joined #ruby
[16:17:37] chipotle: has joined #ruby
[16:19:47] i: has joined #ruby
[16:19:55] moeabdol: has joined #ruby
[16:19:58] amnesia: has left #ruby: ()
[16:22:00] amnesia: has joined #ruby
[16:22:21] ellisTAA: has joined #ruby
[16:23:27] htmldrum: has joined #ruby
[16:23:29] leafybasil: has joined #ruby
[16:23:44] zenguy_pc: has joined #ruby
[16:24:31] leafybasil: has joined #ruby
[16:25:53] astrobun_: has joined #ruby
[16:26:31] axl_: has joined #ruby
[16:28:39] leafybasil: has joined #ruby
[16:29:02] solocshaw: has joined #ruby
[16:31:00] hfp_work: has joined #ruby
[16:31:45] Kara: has joined #ruby
[16:31:47] diegoaguilar: has joined #ruby
[16:33:04] karam: has joined #ruby
[16:35:25] chipotle: has joined #ruby
[16:35:25] Cyther: has joined #ruby
[16:37:40] JJM: has joined #ruby
[16:38:11] gregoriokusowski: has joined #ruby
[16:38:16] Renich: has joined #ruby
[16:38:31] Renich: has joined #ruby
[16:40:00] JJM: has joined #ruby
[16:40:12] akkad: has joined #ruby
[16:44:12] Oog: has joined #ruby
[16:44:24] nemo_: has joined #ruby
[16:46:48] bitsapien: has joined #ruby
[16:50:30] varunwachaspati: has joined #ruby
[16:53:36] joncol: has joined #ruby
[16:55:48] bb010g: has joined #ruby
[16:55:53] joncol: Are there any best practices established regarding the use of Observable, when using it to handle many types of notifications? I.e. I want different kinds of notifications for different events that occur. Should I just pass the event type as a parameter in the notify_observers call and let the listeners filter out what kinds of events they want to react to?
[16:57:48] Alina-malina: has joined #ruby
[16:58:14] nofxx: has joined #ruby
[16:58:44] Bellthoven: has joined #ruby
[17:01:41] aryaching: has joined #ruby
[17:03:21] patdohere: has joined #ruby
[17:05:32] tynamite: has joined #ruby
[17:05:43] diegoaguilar: has joined #ruby
[17:05:44] bmalum: has joined #ruby
[17:08:11] dfinninger: has joined #ruby
[17:08:35] tynamite: Is anyone there?
[17:08:48] jun: has joined #ruby
[17:09:20] tynamite: Well I'm having a problem inserting the % symbol into my database. It's not my ORM's fault and the stack trace shows a ruby source code file in the first line.
[17:10:40] tobiasvl: tynamite: try %%
[17:12:08] adac: has joined #ruby
[17:12:22] fullofcaffeine: has joined #ruby
[17:12:57] EminenceHC: has joined #ruby
[17:17:25] DoubleMalt: has joined #ruby
[17:18:09] jenrzzz: has joined #ruby
[17:18:55] EminenceHC: has joined #ruby
[17:21:59] towski_: has joined #ruby
[17:22:36] houhoulis: has joined #ruby
[17:24:32] gregoriokusowski: has joined #ruby
[17:25:49] jun: has joined #ruby
[17:25:53] fullofca_: has joined #ruby
[17:26:13] ramfjord: has joined #ruby
[17:27:15] lamer14449848587: has joined #ruby
[17:27:42] tynamite: has joined #ruby
[17:30:54] aryaching: has joined #ruby
[17:31:53] m0nge: has joined #ruby
[17:32:25] m0nge: I'm planning to learn a code language for the first time and I was trying to choose between 3. What you think? Python, Ruby or Perl?!
[17:33:01] BSaboia: has joined #ruby
[17:33:12] jhass: m0nge: Ruby. Now ask #python and get Python and ask #perl and get Perl
[17:33:27] Skelz0r: has joined #ruby
[17:33:36] jhass: m0nge: https://pine.fm/LearnToProgram/ is generally recommended and uses Ruby though
[17:33:45] shevy: m0nge you need to kind of have some absolute requirement from what you want to want to get from a language
[17:34:01] shevy: m0nge for instance, if it is "biggest community" then python is probably the largest one
[17:34:43] m0nge: maybe I need to learn about those 3 languages
[17:34:47] jhass: though I wouldn't say that matters beyond a certain size, which all three reached well
[17:34:50] shevy: m0nge this old interview was one that helped me back then http://www.artima.com/intv/ruby.html
[17:35:04] tynamite: You can do the same things in every language. It's just a personal preference.
[17:35:25] m0nge: do you think that I should put another language in the equation?
[17:35:39] jhass: no, we think that it doesn't really matter
[17:35:46] jhass: pick one and focus on it
[17:35:46] Azure: has joined #ruby
[17:35:58] havenwood: m0nge: Just learn Ruby. You're in #ruby after all.
[17:35:59] jhass: then learn a second one when you feel comfortable
[17:36:21] m0nge: i read on some websites that ruby is the easiest
[17:36:23] shevy: m0nge well, in order to be able to answer that, you'd have to say what kind of use case you have. For instance, if you intend to only use a language for web-related issues etc...
[17:36:26] m0nge: most friendly
[17:36:34] shevy: lua should be faster than the other 3 :)
[17:36:44] havenwood: m0nge: We have friendly foxes and chunky bacon.
[17:36:50] m0nge: by now.. my main objectives
[17:37:01] jhass: lua is one of the languages that doesn't teach you the separation between map and list though
[17:37:07] shevy: ruby can be quite complex... if you try to keep it simple, it will stay simple though
[17:37:29] m0nge: it's internet and iOS. I do know that PHP is good and Swift is good too but those are other type of languages right? more specific ones
[17:37:42] havenwood: shevy: How do you gauge community size. I'd have thought Ruby community would be about the same size as the Python community.
[17:38:02] m0nge: websites* i mean
[17:38:34] shevy: havenwood I dunno... various factors... #python has like 1700, we have 1007... python seems to in general have better or more complete GUI bindings... charts say that there is a wider adoption of python than ruby or perl and so on. And last but not least THE ULTIMATE AUTHORITY... TIOBE!
[17:38:43] havenwood: m0nge: PHP isn't a general purpose programming language like Ruby, Python or Perl.
[17:38:46] havenwood: shevy: hahaha
[17:38:55] jhass: havenwood: well, it actually is
[17:39:06] jhass: but it has the same problem as lua, among others
[17:39:08] m0nge: yes. havenwood that's why i did not put that one on the list tho
[17:39:14] shevy: php is really strange
[17:39:19] havenwood: jhass: I thought even they say it isn't general purpose?
[17:39:21] Bellthoven: has joined #ruby
[17:39:26] minimalism: has joined #ruby
[17:39:30] shevy: I remember, one of my last projects was an IRC bot in php
[17:39:35] jhass: I dunno what they say, I know that i wrote a Gtk hello world in it once
[17:39:48] joncol: What's a good way to do events in Ruby? The Observable module included in the language only allows me to listen to a general "something changed" event. I want to define multiple event types. Are there established best practices?
[17:39:49] shevy: I failed. I then switched to ruby, and with help from rubyforum.de or so, got it up and running in perhaps 2 weeks
[17:39:55] jhass: and that I setup my sheevaplug with a CLI PHP script
[17:40:19] shevy: oohhh php-gtk :)
[17:40:46] havenwood: the humanity
[17:40:52] shevy: "PHP-GTK 2 currently supports GTK+ 2.24.10 or greater."
[17:41:00] shevy: they seem to be working on gtk3 now
[17:41:15] shevy: ruby already has gtk3 support mostly, sorta
[17:41:33] havenwood: m0nge: If you're interested in creating iOS apps then Swift would probably be a good lang to learn some programming paradigms.
[17:41:47] shevy: https://github.com/ruby-gnome2/ruby-gnome2 "kou Merge pull request #595 from cedlemo/gtk3_sample_gtk_demo_main_rb_run"
[17:41:57] _blizzy_: has joined #ruby
[17:42:40] jhass: shevy: https://github.com/mvz/gir_ffi-gtk/tree/master/examples
[17:43:36] shevy: yeah I don't know that
[17:43:40] shevy: it looks scary
[17:43:57] kies^: has joined #ruby
[17:44:00] shevy: I dunno! look at it!
[17:44:06] havenwood: http://blog.codinghorror.com/content/images/uploads/2012/06/6a0120a85dcdae970b017742d249d5970d-800wi.jpg
[17:44:07] shevy: do people use it?
[17:44:15] jhass: I'd think so
[17:44:32] shevy: havenwood that item seems too useful still
[17:44:41] jhass: more importantly it seems better maintained and easier to maintain in the future than ruby-gnome
[17:44:44] shevy: you could break ice with it for instance, can be good in winter
[17:45:15] Uo9er_: has joined #ruby
[17:45:52] flak: has joined #ruby
[17:46:00] shevy: one could actually combine all different images out there related to php http://tnx.nl/php.jpg
[17:46:15] ramfjord: has joined #ruby
[17:47:08] shevy: one image with the elephant... without the legs but perhaps that would be too cruel so let's have the intact one rather http://goo.gl/jpXGmu
[17:48:30] t_mmyv: has joined #ruby
[17:51:55] dorei: has joined #ruby
[17:52:19] gaboesquivel: has joined #ruby
[17:52:21] havenwood: Christmas break seems like a good time to learn some Perl 6.
[17:53:27] nisstyre: has joined #ruby
[17:53:55] cubicme`: has joined #ruby
[17:54:09] jcdesimp: has joined #ruby
[17:54:25] amnesia: has left #ruby: ()
[17:54:40] shevy: but there is a new ruby release!
[17:55:11] shevy: I am still surprised that perl 6 can look like ruby ... "/usr/share/dict/words".IO.words.classify(*.lc.comb.sort.join).sort(-*.value)[0].say
[17:55:14] jhass: you can have a new crystal release today! (well, yesterday)
[17:57:33] shevy: yeah... and the best thing ... you can switch the crystal at http://crystal-lang.org/ ... you can't switch the ruby at https://www.ruby-lang.org/en/ at all
[17:58:02] sankaber: has joined #ruby
[17:59:22] podman: has joined #ruby
[18:00:33] havenwood: format, shards, good stuff!
[18:02:30] fullofcaffeine: has joined #ruby
[18:04:32] jun: has joined #ruby
[18:05:10] workmad3: has joined #ruby
[18:05:16] lamer14449848587: has joined #ruby
[18:05:37] Jackneill: has joined #ruby
[18:06:34] sevenfourk: has joined #ruby
[18:06:54] pontiki: has joined #ruby
[18:07:10] symm-: has joined #ruby
[18:07:13] grekkos_: has joined #ruby
[18:07:46] xa0s_: has joined #ruby
[18:08:51] leat2: has joined #ruby
[18:09:09] Pupeno: has joined #ruby
[18:09:20] DEA7TH: array.product is awesome!
[18:10:13] adac: has joined #ruby
[18:14:46] BTRE: has joined #ruby
[18:16:07] centrx: has joined #ruby
[18:17:10] SylarRuby: has joined #ruby
[18:19:33] Skelz0r: has joined #ruby
[18:19:37] jun__: has joined #ruby
[18:20:46] leat2: has joined #ruby
[18:21:23] rickmasta: has joined #ruby
[18:22:15] ellisTAA: has joined #ruby
[18:24:10] htmldrum: has joined #ruby
[18:24:20] zenguy_pc: has joined #ruby
[18:26:50] tynamite: has joined #ruby
[18:28:14] Musashi007: has joined #ruby
[18:28:33] aryaching: has joined #ruby
[18:28:35] hectortrope: has joined #ruby
[18:29:18] rodfersou: has joined #ruby
[18:29:44] SylarRuby: has joined #ruby
[18:30:27] kristian_on_linu: has joined #ruby
[18:30:38] kristian_on_linu: okay, so I edited a ruby gem in my home dir
[18:30:44] kristian_on_linu: how do I reload it?
[18:30:57] jhass: you mean restore to the original?
[18:31:29] Kara: has joined #ruby
[18:31:50] Skelz0r: has joined #ruby
[18:32:07] yfeldblum: has joined #ruby
[18:32:35] karam: has joined #ruby
[18:32:50] fullofcaffeine: has joined #ruby
[18:33:02] kristian_on_linu: it seems like the changes I made did not have any effect, so I'm wondering if it is indeed loaded
[18:33:16] jhass: how do you test?
[18:33:48] nemo__: has joined #ruby
[18:34:13] kiez0rd: has joined #ruby
[18:35:11] kristian_on_linu: I just run the (jekyll) command, and I see that nothing's changed. So I wondered if the altered gem had been loaded.
[18:35:13] shevy: kristian_on_linu when you made your modifications, rebuild the gem; the .gemspec is usually sufficient for that: "gem build foo.gemspec", then you can re-install the gem
[18:35:43] jhass: I thought you edited the installed files
[18:35:49] raazdaan: has joined #ruby
[18:36:12] jhass: then shevy misunderstood you
[18:36:13] Spami: has joined #ruby
[18:36:14] kristian_on_linu: it is in ~/.gem/ruby/1.9.1/gems/jekyll-scholar-4.5.0 $
[18:36:24] komanda9787: has joined #ruby
[18:36:36] jhass: btw Ruby 1.9 is out of official support
[18:36:39] kristian_on_linu: jhass: my ruby vocabulary is poor, that's probably why you did not understand
[18:36:52] shevy: yeah jhass often has that problem
[18:37:04] kristian_on_linu: I just took the default from my repos, I think
[18:37:07] jhass: shevy: I think I understood them better than you did
[18:37:10] kristian_on_linu: but thanks for the warning
[18:37:20] shevy: jhass: I think you may not have understood him properly
[18:37:21] kristian_on_linu: ACTION is just one person
[18:37:38] dagda1: has joined #ruby
[18:37:43] kristian_on_linu: ACTION are Bizarro!
[18:37:46] jhass: anyway, it should apply, Ruby doesn't have some cache or compiled files or something
[18:37:54] jhass: new process, everything is loaded again
[18:38:03] Yzguy: has joined #ruby
[18:38:10] kies^: has joined #ruby
[18:38:19] kristian_on_linu: you mean a new shell, jhass ?
[18:38:20] jhass: maybe your changes just didn't affect anything? or you have multiple versions installed and another one is loaded?
[18:38:28] jhass: no, a new process
[18:38:49] kristian_on_linu: so when I run jekyll the next time, it should read the altered gem?
[18:38:59] jhass: jekyll will run something like /usr/bin/ruby /usr/bin/jekyll in effect
[18:39:03] raazdaan: has joined #ruby
[18:39:06] jhass: most likely
[18:39:26] kristian_on_linu: jekyll is in /home/kristian/.bin/jekyll
[18:39:32] jhass: unless you have some prefork stuff like spork or spring running, but that's very unlikely for jekyll
[18:39:52] jhass: the point was that it just has a ruby hashbang and thus launches a ruby process
[18:41:31] jun: has joined #ruby
[18:43:05] kristian_on_linu: the line was: 'bibtex_skip_fields' => [ :abstract, :month_numeric ],
[18:43:17] kristian_on_linu: I changed it to: 'bibtex_skip_fields' => [ :abstract, :month_numeric, :DOI, :URL, :doi, :url ],
[18:43:34] jhass: sounds like something you should be able to set in your config inside your project
[18:43:49] kristian_on_linu: jhass: indeed, but I could not get that to work
[18:44:16] jhass: well, since the direct edit doesn't work either, it's probably the same issue?
[18:44:46] fullofcaffeine: has joined #ruby
[18:45:07] segfalt: has joined #ruby
[18:45:36] swgillespie: has joined #ruby
[18:46:16] kristian_on_linu: it should not be necessary to rebuild?
[18:46:29] jhass: there's nothing to rebuild really
[18:47:23] kristian_on_linu: I wonder what the issue is
[18:48:13] Skelz0r: has joined #ruby
[18:48:14] kobain: has joined #ruby
[18:48:35] bonhoeffer: has joined #ruby
[18:52:08] ruurd: has joined #ruby
[18:52:35] colstrom_: has joined #ruby
[18:52:44] sankaber: has joined #ruby
[18:53:09] devbug: has joined #ruby
[18:53:56] jhass: well, open an issue detailing the issue and how to reproduce it
[18:54:04] jhass: usually the fastest to get feedback from the author
[18:54:15] Kara: has joined #ruby
[18:55:20] fullofca_: has joined #ruby
[18:56:57] futilegames: has joined #ruby
[18:58:48] kristian_on_linu: jhass: yes, I just have a feeling it might be me/my setup ... would not be the first time
[18:58:49] karapetyan: has joined #ruby
[18:58:54] kristian_on_linu: anyway, thanks for the help, all
[18:59:04] kirun_: has joined #ruby
[18:59:45] skcin7: has joined #ruby
[19:00:48] corehook: has joined #ruby
[19:00:49] DoubleMalt: has joined #ruby
[19:04:01] VeryBewitching: has joined #ruby
[19:07:09] futilegames: has joined #ruby
[19:07:24] cubicme: has joined #ruby
[19:09:09] yqt: has joined #ruby
[19:09:36] bmalum: has joined #ruby
[19:13:08] minimalism: has joined #ruby
[19:13:50] jun: has joined #ruby
[19:13:53] fullofcaffeine: has joined #ruby
[19:14:06] dagda1_: has joined #ruby
[19:17:31] Vile`: has joined #ruby
[19:18:44] acke: has joined #ruby
[19:19:43] jenrzzz: has joined #ruby
[19:19:48] yeticry: has joined #ruby
[19:20:10] pathrocle: has joined #ruby
[19:20:55] jun: has joined #ruby
[19:22:47] pontiki: has joined #ruby
[19:25:38] symm-: has joined #ruby
[19:26:48] JammyHammy: has joined #ruby
[19:27:46] Epic-Games: has joined #ruby
[19:27:48] Epic-Games: Try this new Epic Amazing Game now from Youtube with an amazing graphics https://www.youtube.com/watch?v=l2VnFpbnffM
[19:27:58] jhass: !mute Epic-Games
[19:28:03] ruboto_: -o ruboto_
[19:28:18] jhass: apeiros: waht's up with ruboto_ ?
[19:29:07] ruurd: has joined #ruby
[19:30:10] BTRE: has joined #ruby
[19:30:48] SylarRuby: has joined #ruby
[19:31:15] axl_: has joined #ruby
[19:32:10] jhass: -bbbb *!*@*169.57.0.230 *!*@*172.98.67.8 *!*@*198.8.80.182 juanpauc*!*@*$#ruby-fix-your-connection
[19:32:12] jhass: -bbbb *!*@gateway/web/cgi-irc/kiwiirc.com/ip.167.114.119.196 *!*@*207.244.72.200 *!*@*168.1.6.57 *!*@*64.121.17.196
[19:32:14] jhass: -bbbb *!~ohaibbq@*$#ruby-fix-your-connection *!*@98.27.226.173 *!*@gateway/web/freenode/ip.198.105.210.247 t0rrieri*!*@*$#ruby-fix-your-connection
[19:32:16] jhass: -bbo josuebrunel!*@*$#ruby-fix-your-connection *!*@*103.10.197.214 jhass
[19:32:48] jhass: -qqo *!*@*31.3.244.61 *!*@*172.98.67.7 jhass
[19:35:06] doublemalt_: has joined #ruby
[19:35:36] fedexo: has joined #ruby
[19:38:21] baweaver: has joined #ruby
[19:38:24] jun: has joined #ruby
[19:41:02] TheRinger: has joined #ruby
[19:42:24] znz_jp: has joined #ruby
[19:44:50] Motoservo: has joined #ruby
[19:45:26] U7se6: has joined #ruby
[19:45:57] freerobby: has joined #ruby
[19:45:59] fedexo: has joined #ruby
[19:46:54] camilasan: has joined #ruby
[19:47:46] bigmac_: so, im messing with BigDecimal, im looking for a way to check if a big number has a decimal point that is true => .0
[19:48:54] kalusn: has joined #ruby
[19:48:56] Bellthoven: has joined #ruby
[19:49:22] aryaching: has joined #ruby
[19:50:56] SamGerber: has joined #ruby
[19:51:31] atomical: has joined #ruby
[19:51:37] ruby-lang044: has joined #ruby
[19:52:00] ruby-lang044: anybody know how to use the linkedin gem
[19:52:02] Coraline: Hey there chicka
[19:52:19] kies^: has joined #ruby
[19:52:56] Spami: has joined #ruby
[19:53:13] TheRinger: has joined #ruby
[19:53:14] ruby-lang044: I'm using the linkedin2 gem by bobbrez
[19:53:17] workmad3: has joined #ruby
[19:53:36] bigmac_: i guess it would be called a whole number (that has no decimal trailing)
[19:54:00] grekkos_: has joined #ruby
[19:54:06] jhass: n == n.to_i I guess
[19:54:36] futilegames: has joined #ruby
[19:55:43] bigmac_: 123123.1 % 1 !=0
[19:55:57] ereslibre: has joined #ruby
[19:55:58] ereslibre: has joined #ruby
[19:57:17] bonhoeffer: has joined #ruby
[20:01:02] CookieB: has joined #ruby
[20:02:40] adaedra: Hi CookieB
[20:03:20] TheRinger: has joined #ruby
[20:03:38] CookieB: Can you give me a hand with ruby ? Seem to make a mistake in an easy task.
[20:03:45] ruboto_: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
[20:03:54] havenwood: ?gist CookieB
[20:03:54] ruboto_: CookieB, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[20:04:09] havenwood: CookieB: Gist up the code ^ in questoin! :)
[20:04:16] ytti: ruboto should be expanded, to tell asker to wait for an answer, irc is assync
[20:04:48] shevy: well ruby-lang044 was a webchatter, CookieB is a webchatter hmm
[20:05:18] CookieB: Quickest way to join uh?
[20:05:48] tynamite: has left #ruby: ()
[20:05:55] shevy: at least you have a better nick than ruby-langxxx
[20:06:25] CookieB: It's just short for CookieBaker, I like to make cookies if that's not obvious
[20:06:54] CookieB: https://gist.github.com/CookieB/9e1662f898fade42c8ba I'm trying to fill an array, sample from the file is below. Seem to mess up where to execute though.
[20:07:09] m0nge: has joined #ruby
[20:07:20] jhass: ?gist_usage
[20:07:20] ruboto_: To properly use gist, please enable syntax highlighting, either by choosing the language manually or by entering a proper filename. If you post multiple things, separate them into multiple files. If you have a Github account, please update your gist with new information instead of posting a new one.
[20:08:14] jhass: But Hash#<< isn't a thing, you can't append to hash
[20:08:48] CookieB: so the type of the container is called Hash# in ruby?
[20:09:14] ruurd: has joined #ruby
[20:09:18] adaedra: # denotes instance methods
[20:09:27] jhass: hash, Hash is it's class and Hash#<< denotes an instance method named << on it
[20:09:30] adaedra: So Hash#<< is the method << on Hash
[20:09:44] jhass: &ri Array#<<
[20:09:45] `derpy: http://www.rubydoc.info/stdlib/core/Array#%3C%3C-instance_method
[20:09:49] jhass: &ri Hash#<<
[20:09:50] `derpy: No results
[20:10:25] CookieB: Yeah i guess that should do it thanks
[20:13:08] chipotle: has joined #ruby
[20:13:34] CookieB: Yep works just fine, much thanks
[20:14:20] davedev24: has joined #ruby
[20:15:13] fullofcaffeine: has joined #ruby
[20:15:39] cubicme: has joined #ruby
[20:17:01] zenguy_pc: has joined #ruby
[20:17:43] cubicme: has joined #ruby
[20:17:50] sankaber: has joined #ruby
[20:18:45] kadoppe: has joined #ruby
[20:20:02] Pupeno: has joined #ruby
[20:20:13] sankaber: has joined #ruby
[20:21:20] Channel6: has joined #ruby
[20:22:36] Kara: has joined #ruby
[20:24:58] htmldrum: has joined #ruby
[20:25:51] fedexo: has joined #ruby
[20:26:02] Renich: has joined #ruby
[20:27:23] p0wn3d__: has joined #ruby
[20:31:02] chipotle_: has joined #ruby
[20:37:28] Coldblackice: has joined #ruby
[20:38:06] shevy: pretty amazing how big some ruby projects became... homebrew has more than 45000 pull requests https://github.com/Homebrew/homebrew/pull/45056 ... 265 open issues and 15.666 closed issues
[20:38:44] jhass: shevy: issue and pull request ids are the same
[20:39:30] atomical: has joined #ruby
[20:39:31] EminenceHC: has joined #ruby
[20:41:01] JJM: has joined #ruby
[20:41:25] xxneolithicxx: has joined #ruby
[20:42:48] yashinbasement: has joined #ruby
[20:43:02] sdothum: has joined #ruby
[20:43:21] Dmitry: has left #ruby: ()
[20:44:11] atomical_: has joined #ruby
[20:45:33] chipotle: has joined #ruby
[20:46:37] corehook: has joined #ruby
[20:47:01] jun: has joined #ruby
[20:49:05] devbug_: has joined #ruby
[20:49:21] chipotle_: has joined #ruby
[20:52:43] devbug__: has joined #ruby
[20:53:10] dikaio: has joined #ruby
[20:56:57] bonhoeffer: has joined #ruby
[20:57:16] mary5030: has joined #ruby
[21:00:09] fedexo: has joined #ruby
[21:00:36] webirc: has joined #ruby
[21:02:25] bonhoeffer_: has joined #ruby
[21:03:04] devbug: has joined #ruby
[21:06:05] Jardayn: has joined #ruby
[21:07:18] rkazak_: has joined #ruby
[21:07:48] kalusn: has joined #ruby
[21:13:19] Ariadeno: has joined #ruby
[21:15:05] jun: has joined #ruby
[21:18:08] cbz: has joined #ruby
[21:18:09] cbz: has joined #ruby
[21:21:32] tomchapin: has joined #ruby
[21:21:37] bruno-: has joined #ruby
[21:22:29] jun: has joined #ruby
[21:23:01] atomical: has joined #ruby
[21:23:39] blackmesa: has joined #ruby
[21:24:28] jbw: has joined #ruby
[21:24:49] sankaber: has joined #ruby
[21:26:35] marr: has joined #ruby
[21:27:03] framling: has joined #ruby
[21:30:39] Azure|dc: has joined #ruby
[21:31:39] SylarRuby: has joined #ruby
[21:33:16] blackmesa: has joined #ruby
[21:33:51] sepp2k1: has joined #ruby
[21:34:37] atomical_: has joined #ruby
[21:34:59] yfeldblum: has joined #ruby
[21:36:19] dagda1: has joined #ruby
[21:37:37] bl0ndie: has joined #ruby
[21:40:39] tubuliferous: has joined #ruby
[21:41:24] workmad3: has joined #ruby
[21:43:41] pontiki: has joined #ruby
[21:44:54] saxy: has joined #ruby
[21:45:32] gutigen: has joined #ruby
[21:45:32] jun: has joined #ruby
[21:45:34] Uo9er_: has joined #ruby
[21:47:20] chipotle: has joined #ruby
[21:47:24] lamer14449848587: has joined #ruby
[21:48:47] devbug__: has joined #ruby
[21:50:01] EminenceHC: has joined #ruby
[21:51:21] jenrzzz: has joined #ruby
[21:53:12] chipotle: has joined #ruby
[21:53:32] tomchapin: has joined #ruby
[21:55:01] shtirlic: has joined #ruby
[21:58:43] acke: has joined #ruby
[21:58:48] marsjaninzmarsa: has joined #ruby
[21:59:06] ZeeNoodleyGamer: has joined #ruby
[22:00:57] chipotle: has joined #ruby
[22:01:46] michael_mbp: has joined #ruby
[22:04:03] fullofcaffeine: has joined #ruby
[22:07:22] jun: has joined #ruby
[22:07:27] glundgren: has joined #ruby
[22:07:31] glundgren: hey guys, good evening
[22:07:52] glundgren: theres any way to get the previous object inside an .each ?
[22:07:53] devbug: has joined #ruby
[22:08:07] glundgren: i mean, a ruby way to do it
[22:08:26] jhass: a bit vague, could be .each_cons(2) or .inject
[22:09:04] ruboto_: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[22:09:47] s2013: has joined #ruby
[22:09:55] skweek: has joined #ruby
[22:09:57] glundgren: jhass, i think each_cons should work, let me try
[22:10:47] chipotle: has joined #ruby
[22:12:11] XxionxX: has joined #ruby
[22:13:03] jgt: has joined #ruby
[22:16:45] riotjones: has joined #ruby
[22:17:26] zenguy_pc: has joined #ruby
[22:17:27] cwong_on_irc: has joined #ruby
[22:17:58] cwong_on_irc: has joined #ruby
[22:18:16] devbug_: has joined #ruby
[22:18:27] cwong_on_irc: has joined #ruby
[22:19:04] anisha: has joined #ruby
[22:19:18] shinnya: has joined #ruby
[22:19:31] balazs_: has joined #ruby
[22:20:26] Pupeno: has joined #ruby
[22:20:35] mleung: has joined #ruby
[22:20:48] aryaching: has joined #ruby
[22:20:49] hmsimha: has joined #ruby
[22:21:39] jun: has joined #ruby
[22:22:35] Vile`: has joined #ruby
[22:23:07] jenrzzz: has joined #ruby
[22:25:14] quazimodo: has joined #ruby
[22:27:25] acke: has joined #ruby
[22:27:56] SCHAAP137: has joined #ruby
[22:28:46] closer: has joined #ruby
[22:30:16] Vile`: has joined #ruby
[22:33:50] yosiat: has joined #ruby
[22:36:25] finisherr: has joined #ruby
[22:37:53] p0wn3d__: has joined #ruby
[22:37:56] jun: has joined #ruby
[22:42:40] aryaching: has joined #ruby
[22:43:37] yashinbasement: has joined #ruby
[22:47:33] ohcibi: has joined #ruby
[22:47:37] haylon: has joined #ruby
[22:49:00] haylon: Hey everyone. I'm not sure what to do with the return I get from my gem I'm working on. I initialize an object, but the object is supposed to return a JSON object. Instead when I do client.class, it says its just my Module and Class structure. https://github.com/predatorian3/rabbix
[22:49:25] s2013: has joined #ruby
[22:51:32] jhass: ?json_object
[22:51:32] ruboto_: I don't know anything about json_object
[22:51:39] htmldrum: has joined #ruby
[22:51:41] jhass: ?jsonobject
[22:51:41] ruboto_: there is no such thing as a JSON object. You either have a String containing serialized JSON, or you have ruby objects (usually Hashes/Arrays/Strings). Which is it?
[22:51:54] beast: has joined #ruby
[22:51:59] s2013: has joined #ruby
[22:52:37] mleung: has joined #ruby
[22:52:59] haylon: Maybe JSON was the wrong word. In the client.rb file, I have it receive the JSON, then do the JSON.parse(json) and return the hash
[22:53:00] jhass: haylon: the return value of initialize is ignored
[22:53:14] haylon: is that how it always is?
[22:54:20] jhass: the point of a classes initialize is to setup the instance
[22:54:27] haylon: Gret. Well, guess I'll redo this.
[22:55:13] xxneolithicxx: has joined #ruby
[22:57:58] fullofcaffeine: has joined #ruby
[22:58:23] haylon_: has joined #ruby
[22:58:34] haylon_: Sorry jhass
[22:58:40] haylon_: my pc BSOD'd
[22:58:50] shevy: are they so bad?
[22:58:50] jhass: get a better OS ;P
[22:59:04] jhass: shevy: bluescreen of death
[22:59:14] haylon_: lol, I wish. Corporate device. I keep telling them to give me RHEL, or Debian
[22:59:59] haylon: If I could use Linux at my work, 90% of my issues would be gone
[23:00:17] haylon: So, anyhting you said in hte last 2min I didn't get
[23:00:23] ruboto_: You can find a log of this channel at http://irclog.whitequark.org/ruby/
[23:00:30] haylon: Huh, spiffy
[23:00:37] leafybas_: has joined #ruby
[23:00:44] leafybas_: has joined #ruby
[23:01:06] CloCkWeRX: has joined #ruby
[23:01:34] leafybasil: has joined #ruby
[23:02:02] haylon: Ight, thanks jhass. I'll have to redo my plan then, and add a function to "login"
[23:02:12] haylon: instead of having all the initializes do it for me.
[23:03:45] leafybas_: has joined #ruby
[23:05:15] cornerma1: has joined #ruby
[23:08:18] kfpratt: has joined #ruby
[23:11:57] s00pcan_: has joined #ruby
[23:13:18] mleung: has joined #ruby
[23:15:13] shevy: jhass hah
[23:15:19] shevy: never thought of that shortcut before
[23:16:14] craysiii: has joined #ruby
[23:18:51] GriffinHeart: has joined #ruby
[23:19:07] stardiviner: has joined #ruby
[23:19:40] GriffinHeart: has joined #ruby
[23:22:37] rkazak_: haylon: if you can install virtualbox on your pc you can have linux???
[23:23:09] rkazak_: haylon: I also use cygwin, it pretty good.
[23:23:56] jenrzzz: has joined #ruby
[23:24:02] zacts: has joined #ruby
[23:24:54] shevy: he is gone :(
[23:26:18] zeroDivisible: has joined #ruby
[23:28:31] djbkd: has joined #ruby
[23:29:36] workmad3: has joined #ruby
[23:30:31] sohrab1: has joined #ruby
[23:30:37] sohrab1: has left #ruby: ()
[23:32:30] j0bk: has joined #ruby
[23:32:37] xxneolithicxx: has joined #ruby
[23:36:10] rickmasta: has joined #ruby
[23:36:45] leafybasil: has joined #ruby
[23:37:36] sankaber: has joined #ruby
[23:39:49] astrobun_: has joined #ruby
[23:45:02] porfa: has joined #ruby
[23:46:01] U7se6: has joined #ruby
[23:47:13] Kara: has joined #ruby
[23:48:05] Soda: has joined #ruby
[23:48:25] karam: has joined #ruby
[23:49:44] saddad: has joined #ruby
[23:52:07] Pupeno: has joined #ruby
[23:56:22] BSaboia: has joined #ruby
[23:56:47] michael_mbp: has joined #ruby
[23:59:01] anisha: has joined #ruby