« Back to channel list

#ruby - 25 January 2016

« Back 1 day Forward 1 day »
[00:00:38] northfurr: has joined #ruby
[00:00:56] h99h9h88_: has joined #ruby
[00:01:52] Ox0dea: malice: https://eval.in/507316
[00:02:14] Ox0dea: I just thought it was weird you having a go at Ruby for not letting you do something crazy that Python permitted.
[00:02:34] Ox0dea: Could you show how to modify a dictionary in-place while iterating over it in Lisp?
[00:03:39] Senecea: has joined #ruby
[00:04:03] ixti: has joined #ruby
[00:04:23] codefo: has joined #ruby
[00:05:34] Ebok: has joined #ruby
[00:06:27] janebootydoe: has joined #ruby
[00:06:38] kalopsian: has joined #ruby
[00:06:46] Senecea: has joined #ruby
[00:07:29] ascarter: has joined #ruby
[00:07:54] malice: Ox0dea: I have limited time. When I'm finished and I still got some time(although it's kind of late now) I might do it, otherwise I'll try to come here later with an example(if I succeed)
[00:08:31] volty: what's the prob with iterating and changing the hash? won't find the newly inserted key / value pairs ?
[00:09:13] jamw: has joined #ruby
[00:09:14] Ox0dea: volty: Buckets are essentially linked lists.
[00:09:33] Ox0dea: The pointers get all wonky if you're allowed to muck with 'em in flight.
[00:10:05] Senecea: has joined #ruby
[00:11:40] oivoodoo: has joined #ruby
[00:12:00] djbkd: has joined #ruby
[00:12:36] volty: can't you do an external iteration ?
[00:13:54] ur5us: has joined #ruby
[00:14:23] wonk: has joined #ruby
[00:14:48] h99h9h88: has joined #ruby
[00:14:57] chipotle: has joined #ruby
[00:15:52] malice: Ox0dea: Actually found time: http://ix.io/nHj
[00:16:09] malice: Common Lisp
[00:16:40] stannard: has joined #ruby
[00:17:00] malice: Ox0dea: Sorry, but I don't have any paste with Common Lisp compiler at hand; you might try to use ideone.
[00:18:02] Ox0dea: malice: I did so. :< http://ideone.com/SMy62F
[00:18:52] Ox0dea: Oh, derp.
[00:19:06] Ox0dea: CLIPS is a terrible name.
[00:19:40] h99h9h88: has joined #ruby
[00:19:59] sakix: has joined #ruby
[00:21:14] floatingpoint: has joined #ruby
[00:21:40] Ox0dea: malice: That totally works, but I think it must be doing something clever to keep everything straight.
[00:21:56] Ox0dea: An external iterator as volty suggested perhaps.
[00:22:26] KnownSyntax: has joined #ruby
[00:22:29] KnownSyntax: has joined #ruby
[00:22:46] malice: Ox0dea: I think that Lisp is clever as hell. I unfortunately sometimes look like a fanboy, but for a good reason.
[00:22:52] volty: or this (old code of mine, not check) https://gist.github.com/anonymous/9977b09e3d9adfe8725a
[00:23:09] pdoherty: has joined #ruby
[00:23:31] volty: if it helps, it's from when when I just needed ordered & re-ordered hashes
[00:23:57] volty: *not checked fully
[00:23:59] ellisTAA: has joined #ruby
[00:25:04] volty: since the keys are in array, maybe you could get an lazy enumerator and even find the newly inserted keys at the end
[00:26:00] devbug: has joined #ruby
[00:27:05] bklane: has joined #ruby
[00:27:11] volty: btw i found a cute piece for ellistaa
[00:27:28] ellisTAA: volty: what is it
[00:28:15] volty: https://gist.github.com/anonymous/9be20569fd1913e5a6fc
[00:30:05] cpup: has joined #ruby
[00:30:12] volty: you can decompose it if you find it too challenging
[00:30:47] ellisTAA: yeah line 3 is to complex
[00:31:44] ellisTAA: i dont get &:chars
[00:31:50] volty: the logic is simple: you use chars to split in arrays
[00:32:23] volty: String#chars is String#split(//)
[00:32:37] cicloid: has joined #ruby
[00:32:59] volty: cows are number of common elements (intersection) - bulls
[00:36:26] ellisTAA: whats going on on line 1? I never write code like that
[00:36:51] volty: empty decoration :)
[00:36:51] graffix222: has joined #ruby
[00:38:01] ellisTAA: volty: how can i learn how to write like that
[00:39:42] volty: ellistaa: slowly, with time, with patience, with cumulating experience, with composing, decomposing, recomposing, with PASSION :
[00:39:55] bklane: has joined #ruby
[00:39:59] sandstrom: has joined #ruby
[00:40:35] Ox0dea: Experiment without relent.
[00:41:19] ellisTAA: slowly ??? : \
[00:41:27] volty: bulls : pair & compare, cows : intersection, result: always array when more than one elem, convert to string with pairing too
[00:41:34] Trynemjoel: has joined #ruby
[00:41:42] ledestin: has joined #ruby
[00:41:48] Ox0dea: I like people that talk in pseudo-BNF.
[00:42:23] volty: I'd call it Fuzzy Algo-BNF :)
[00:43:22] e: has joined #ruby
[00:43:50] ellisTAA: you can see how fast your algo is compared to others https://leetcode.com/problems/bulls-and-cows/
[00:44:01] Ox0dea: ellistaa: This is #ruby.
[00:44:38] dnewkerk: has joined #ruby
[00:45:19] volty: ellistaa: we all start our lives with simple (brute) iterations, then grow and begin sophisticating ???- the truth, whatever the lispers and haskellers say about (their) brains. nobody came functional & recursive on the earth
[00:45:30] usershell: has joined #ruby
[00:46:28] Ox0dea: !xkcd 224
[00:46:33] Ox0dea: ?xkcd 224
[00:46:33] ruby[bot]: Ox0dea: I don't see no 224, whom should I tell about xkcd?
[00:49:50] _darinthompson: has joined #ruby
[00:50:10] Ox0dea: volty: I suspect you're aware, but iteration and recursion are equivalent; the latter just abstracts away the stack.
[00:51:37] volty: Ox0dea: pretty aware, from the old days, when writing both versions
[00:52:01] _darinthompson: When someone has time, would you mind a looking at this gist? https://gist.github.com/darinthompson/40d9b8ce770816c8de6a For some reason the answer always comes back as 0. I don't know what the issue is.
[00:52:06] baweaver: has joined #ruby
[00:52:25] timanema: has joined #ruby
[00:52:43] _darinthompson: And sorry in advance for the massive tabs, I keep setting it to 2 tabs, but it saves as 8.
[00:53:43] volty: but let's say iteration is easier since it's easier to emulate it in your brain, to trace it, etc etc (and always whatever the brained stackful say)
[00:54:41] chouhoulis: has joined #ruby
[00:54:45] Ox0dea: _darinthompson: You're defining local variables in #get_dates.
[00:54:58] Ox0dea: You have to say either `@foo = 1` or `self.foo = 1`.
[00:55:34] _darinthompson: Can you explain that a little? I thought that is what the initialize method did when you set @date = date
[00:56:17] ellisTAA: _darinthompson: end_date - start_date ??? did u mean @start_date - @end_date
[00:56:28] Ox0dea: ellistaa: No, he's got accessors defined.
[00:56:36] bnagy: _darinthompson: https://eval.in/507321
[00:57:06] kspencer: pretty sure @var is different then var :P so you'd have to use the var type you set
[00:57:07] bnagy: there are a few style things as well (which I didn't fix)
[00:57:19] sandstrom: has joined #ruby
[00:57:48] bnagy: _darinthompson: and assigning to number_of_days in that method is useless
[00:57:50] volty: number_of_days = (end_date - start_date).to_i # number_of_days is redundant
[00:58:06] bnagy: so basically I think you need to do locals versus ivars exercises :)
[00:58:48] Xiti`: has joined #ruby
[00:58:54] kspencer: I'd suggest removing your initialize, and just putting @ on your vars where you are actually getting the dates set in them
[00:58:57] volty: no, it's a common pitfall for unexperienced, it' s a ruby scoping problem
[00:59:51] Ox0dea: volty: It's a parser "problem".
[00:59:53] volty: they all expect start_date= to call the setter
[01:00:06] Ox0dea: What's scope got to do with it?
[01:00:21] ccowart: has joined #ruby
[01:00:23] Ox0dea: We can't expect the parser to read our minds.
[01:00:24] volty: Ox0dea: right. the parser can't determine the right scope :)
[01:00:36] kspencer: >_< Dang it I'm to old because that made me think of a song
[01:00:36] Ox0dea: The parser can't determine that you're not trying to set a local.
[01:00:52] volty: the setter should have precedence
[01:00:59] Ox0dea: I can't say I agree.
[01:01:05] bnagy: no it shouldn't that's crazy talk
[01:01:09] Ox0dea: That means more work for every single local assignment.
[01:01:13] bnagy: https://eval.in/507322
[01:01:33] volty: no sense of setting a local with the same name as a setter
[01:01:53] Ox0dea: It would still have to check the table of accessors.
[01:01:55] bnagy: _darinthompson: ^^ there I force it to use the accessor by referring to self
[01:01:57] volty: Ox0dea: I agrre, everything has a price
[01:02:04] cicloid: has joined #ruby
[01:02:05] Ox0dea: Some not worth paying.
[01:02:43] volty: Ox0dea: would have allowed at least start_date() = ....
[01:02:51] marienz: has joined #ruby
[01:03:01] Ox0dea: You're scaring me.
[01:03:27] Ox0dea: In the case that you meant `foo=()`, I disagree more gently.
[01:04:05] Ox0dea: Still, all kinds of expressions require outer parentheses, in which case it would have to disambiguate via operator padding, and that'd be lame.
[01:04:42] _darinthompson: has joined #ruby
[01:05:13] jottr_: has joined #ruby
[01:05:16] iateadonut: has joined #ruby
[01:05:26] _darinthompson: Sorry, I'm in the desert of Oman. My internet is a little spotty right now.
[01:05:28] volty: yes, but let's think about a guy that comes from python, just to free from using self (or this?) all the time, then goes on and discovers that there are exceptions
[01:08:31] Ox0dea: Explicit `self` is arguably a smell.
[01:09:12] Ox0dea: Assign to instance variables by???wait for it...???assigning to instance variables.
[01:09:48] Ox0dea: Ruby is hardly the language for people allergic to symbols.
[01:09:52] _darinthompson: To the person who was telling me to do the variable exercises did you have a website to study more about that?
[01:10:05] bnagy: don't know tbh
[01:10:23] stannard: has joined #ruby
[01:10:27] bnagy: you can probably just work it out by playing with how locals vs @ivars work in toy classes in irb
[01:10:49] bnagy: I don't know what's good these days for online exercises
[01:10:56] Musashi007: has joined #ruby
[01:11:01] havenwood: _darinthompson: maybe?: https://rubymonk.com/learning/books/4-ruby-primer-ascent/chapters/38-declaring-data/lessons/129-variables
[01:11:28] havenwood: _darinthompson: Focus on local and instance variables. Class and global variables are the devil.
[01:11:32] bnagy: _darinthompson: https://eval.in/507321 and https://eval.in/507322 both fix your core issue, although the first is 'right' in this case, the second is to make a point
[01:11:40] volty: it's not consistent, puts x looks for local then for getter, that's all. you are probably right about overhead. but how much? @ Ox0dea
[01:12:07] Ox0dea: havenwood: Virtual variables are pretty nifty, though. :)
[01:12:20] Ox0dea: volty: I grant that it's inconsistent, but it's consistently inconsistent. :P
[01:12:25] _darinthompson: I "know" the difference on book and paper, but I've only studied on my own, so my actual understanding is limited
[01:12:37] bnagy: is why we write code
[01:12:44] _darinthompson: thanks for the pointers. I got it working though.
[01:12:58] Ox0dea: With magic?
[01:13:26] bronson: has joined #ruby
[01:13:40] Ox0dea: "Thanks for the help, but I didn't actually need it."
[01:13:44] yeticry: has joined #ruby
[01:13:56] _darinthompson: :Ox0dea close. I sought help from powerful wizards
[01:14:20] victortyau: has joined #ruby
[01:14:32] sandstrom: has joined #ruby
[01:14:48] kspencer: _darinthompson: if it helps any, I fixed the file to where it works
[01:14:51] kspencer: https://gist.github.com/IotaSpencer/7ad4dd7daed26ed3657c
[01:15:42] hannelita: has joined #ruby
[01:16:13] _darinthompson: :kspenser Thanks for the time helping me out. *and to everyone else as well
[01:16:31] _darinthompson: I need some training in understanding the things I have book knowledge of.
[01:17:37] terminalrecluse: has joined #ruby
[01:18:03] adgtl: has joined #ruby
[01:18:09] dopie: has joined #ruby
[01:18:39] nertzy2: has joined #ruby
[01:19:41] Ox0dea: _darinthompson: Telling yourself you "know" something is the first step to never actually doing so.
[01:19:53] Ox0dea: There's no such thing as "knowing", by my lights.
[01:20:08] _darinthompson: also true. My cup is definitely empty.
[01:20:20] Ox0dea: *ready for water
[01:20:29] paradisaeidae: has joined #ruby
[01:21:02] _darinthompson: haha. Man, I can't get it right. It's also 520 am and i've been at work since midnight and awake since 9pm
[01:21:14] Ox0dea: Sleep is death practice.
[01:21:19] _darinthompson: that military life though...
[01:21:29] dopie: has joined #ruby
[01:21:30] kspencer: _darinthompson: see pm
[01:22:21] volty: you'll reach the knowledge when you'll become aware that 'knowledge' as a bag of notions does not give you knowledge
[01:22:41] volty: sleeping helps reorganize neural net
[01:23:22] Scripore: has joined #ruby
[01:25:12] volty: knowing to not know is knowing? ??consistence knowledge of inconsistency?? ??? one of typical phrases that modern artists expose (instead of hard || deep work)
[01:26:05] volty: I feel I got overfuzzy. gn
[01:26:07] _darinthompson: I recognize my need for practice training and mentorship.
[01:27:08] davedev24: has joined #ruby
[01:27:15] Kryptonical: has joined #ruby
[01:27:58] djbkd_: has joined #ruby
[01:28:20] northfurr: has joined #ruby
[01:28:30] Senecea: has joined #ruby
[01:28:35] pdoherty: has joined #ruby
[01:29:58] SpikeMaster: has joined #ruby
[01:30:24] jbrhbr: has joined #ruby
[01:31:26] sandstrom: has joined #ruby
[01:32:34] Senecea: has joined #ruby
[01:34:35] SpikeMaster: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[01:38:22] shanemcd: has joined #ruby
[01:42:55] bafbomb: has joined #ruby
[01:43:27] fly5566: has joined #ruby
[01:45:11] guzzlefry: has left #ruby: ()
[01:45:27] j416: has joined #ruby
[01:45:32] ruisantos: has joined #ruby
[01:46:46] baweaver: has joined #ruby
[01:48:26] sandstrom: has joined #ruby
[01:49:44] arthurnn: has joined #ruby
[01:50:16] LoneHermit: has joined #ruby
[01:51:20] ebertx: has joined #ruby
[01:51:46] zhkirill: has joined #ruby
[01:52:52] tomchapin: has joined #ruby
[01:58:09] LoneHermit: has joined #ruby
[02:00:05] Scripore: has joined #ruby
[02:00:27] avgn5: has joined #ruby
[02:01:17] moei: has joined #ruby
[02:02:05] Ebok: has joined #ruby
[02:02:56] avgn5: has left #ruby: ()
[02:05:39] sandstrom: has joined #ruby
[02:13:28] itscalleddaytwah: has joined #ruby
[02:13:56] ellisTAA: has joined #ruby
[02:14:12] Xiti: has joined #ruby
[02:14:38] Musashi007: has joined #ruby
[02:18:26] kkeuning: has joined #ruby
[02:19:50] Pande: has joined #ruby
[02:20:16] kkeuning: has joined #ruby
[02:22:04] kkeuning: has joined #ruby
[02:22:46] nerium: has joined #ruby
[02:23:13] sandstrom: has joined #ruby
[02:23:50] kkeuning: has joined #ruby
[02:23:53] cpup: has joined #ruby
[02:25:26] artX000: has joined #ruby
[02:26:01] jottr_: has joined #ruby
[02:28:41] djbkd_: has joined #ruby
[02:29:37] akem: has joined #ruby
[02:30:02] speaking1ode: has joined #ruby
[02:30:12] bklane: has joined #ruby
[02:31:19] shaileshg: has joined #ruby
[02:31:27] terminalrecluse: has joined #ruby
[02:40:25] sandstrom: has joined #ruby
[02:43:59] victortyau: has joined #ruby
[02:45:08] goodcodeguy: has joined #ruby
[02:54:10] AugustoC: has joined #ruby
[02:54:51] Scripore: has joined #ruby
[02:56:23] bklane: has joined #ruby
[02:57:06] djbkd: has joined #ruby
[02:57:27] AugustoC: has left #ruby: ()
[02:57:29] x77686d: has joined #ruby
[02:57:34] wilbert: has joined #ruby
[02:57:37] sandstrom: has joined #ruby
[02:59:29] lotsoftuna: has joined #ruby
[02:59:39] lotsoftuna: Hi, so... Ruby = Ruby On Rails?
[02:59:43] lotsoftuna: Or are they totally different?
[03:00:06] lotsoftuna: afaik my web hoster allows Ruby, but what makes Rails different then?
[03:00:07] Ropeney: Ruby On Rails uses ruby, like wordpress uses php :)
[03:00:27] Bloomer: has joined #ruby
[03:00:42] lotsoftuna: There's a local job offer that's looking for people who've used Ruby on Rails, so I'd like to learn it and use it a bit
[03:00:52] lotsoftuna: but, idk if my hoster supports it, or allows it
[03:01:22] lotsoftuna: yeah, they do support it :)
[03:01:24] h99h9h88: has joined #ruby
[03:02:07] Ropeney: is it cpanel hosting?
[03:02:11] cscheib_: rails is a framework built on top of ruby
[03:02:27] cscheib_: there's a channel specifically for rails
[03:03:02] havenwood: #rubyonrails
[03:03:19] lotsoftuna: Ropeney: it's NearlyFreeSpeech
[03:03:23] lotsoftuna: Yaeh, I joined
[03:03:34] lotsoftuna: but oh wait uh
[03:03:40] lotsoftuna: I've no idea if they're using cpanel
[03:03:55] lotsoftuna: but their FAQ says "You can run CGI lisp, perl, python, ruby, and tcl scripts by putting them in your web space and giving them a .cgi extension."
[03:03:59] nertzy2: has joined #ruby
[03:04:04] cscheib_: you could always just get your own VPS
[03:04:10] cscheib_: or use Heroku free tier
[03:04:25] cscheib_: (or Hobby tier)
[03:04:30] Ropeney: lotsoftuna: You may have trouble installing gems on that
[03:04:48] lotsoftuna: I've got full ssh access
[03:04:52] lotsoftuna: but yeah, I feel I might
[03:04:56] cscheib_: you can also run/test rails projects on your local box
[03:05:16] A124: has joined #ruby
[03:05:19] lotsoftuna: It's more like, to be able to have them on my site, so that someone can visit it and interact with it
[03:05:27] havenwood: lotsoftuna: CentOS tends to be a good bit behind the times but I'm sure you could make it work if you had to.
[03:06:16] cscheib_: yea, you may want to look into Linode, DigitalOcean, or AWS for that... or Heroku, if you don't want to manage/deal with a full OS
[03:07:14] lotsoftuna: They're running FreeBSD
[03:07:17] lotsoftuna: "Advanced web frameworks: Django, Node.JS, Ruby on Rails, and many more"
[03:07:26] lotsoftuna: is what they claim are their "features"
[03:08:10] Ox0dea: Of course you can host a Rails app on NearlyFreeSpeech.
[03:08:32] Ox0dea: But, as advised, it'd be more painful than the better alternatives.
[03:08:43] cscheib_: you'll get better help from people if you run on Linux via one of the methods I mentioned
[03:09:13] lotsoftuna: I figure, yeah
[03:09:28] lotsoftuna: Ox0dea: how will it be more painful? Just more difficult for me to setup?
[03:09:50] Ox0dea: lotsoftuna: Aye, you'll have to fight whatever "easy-to-use" configuration they've got going.
[03:10:11] Ox0dea: "One-size-fits-all" is marketing spiel.
[03:10:22] lotsoftuna: Are you with NFS?
[03:10:33] Ox0dea: I've used them in the past.
[03:10:46] Ox0dea: Those were my PHP days. *shudder*
[03:11:12] lotsoftuna: Ox0dea: so then you didn't run anything Ruby-wise there, I take it?
[03:11:23] Ox0dea: lotsoftuna: I didn't.
[03:11:39] cscheib_: my employer's public facing stuff is all PHP
[03:11:49] lotsoftuna: I feel that there's nothing wron with PHP man
[03:11:52] cscheib_: but I will still write all my shit in Ruby
[03:11:54] Ox0dea: They're certainly not lying when they say they support it; the C in CGI means what it says on the tin.
[03:12:07] Ox0dea: lotsoftuna: Do you like fractals?
[03:14:29] Ox0dea: http://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
[03:14:41] Ox0dea: Don't even bother to read it. Just look at how long it is.
[03:14:49] sandstrom: has joined #ruby
[03:15:29] kalopsian: has joined #ruby
[03:15:36] Ox0dea: If somebody can in good conscience spill that much ink about how PHP is shit, it's gotta be shit. And it really is.
[03:15:38] bronson: has joined #ruby
[03:16:03] Ox0dea: Uh... do you know PHP?
[03:16:36] arlek: has joined #ruby
[03:17:26] lotsoftuna: but I don't know C either
[03:17:44] lotsoftuna: I know bash, batch and vbs scripting, and a bit of C++
[03:17:55] lotsoftuna: that's it. I'm teaching myself HTML as well :/
[03:18:02] wheresmyjetpack: has joined #ruby
[03:18:11] lotsoftuna: I'm not the best at code, I'm more hardware, which is why the program I'm in is hardware based
[03:18:26] lotsoftuna: networking, fixing systems, administration, with some scripting in there
[03:18:45] Ox0dea: Sounds like a good time. Don't go settin' nothin' on fire.
[03:20:12] adgtl: has joined #ruby
[03:20:16] lotsoftuna: That's why this job might not be for me lol
[03:20:40] Ox0dea: There are plenty of pyromaniacal sysadmins.
[03:20:44] lotsoftuna: "The end game will be a system that can automatically bootstrap and configure all switches and servers in a new datacenter, and then continue to manage the entire lifecycle of all equipment and components."
[03:20:59] lotsoftuna: I meant the job I was looking at locally, which wanted some Ruby on Rails work
[03:21:12] lotsoftuna: "Developed or supported a Ruby on Rails stack/application"
[03:21:34] Ox0dea: Looks like it's time to learn Ruby. :)
[03:23:18] lotsoftuna: I gotta learn HTML and JS first
[03:24:20] lotsoftuna: well, I'm gonna head out
[03:24:20] lotsoftuna: has left #ruby: ()
[03:26:37] bklane: has joined #ruby
[03:28:22] exadeci: has joined #ruby
[03:29:30] djbkd_: has joined #ruby
[03:30:19] yfeldblum: has joined #ruby
[03:32:13] sandstrom: has joined #ruby
[03:33:45] stannard: has joined #ruby
[03:34:31] _darinthompson: has joined #ruby
[03:34:46] bklane: has joined #ruby
[03:37:41] hannelita: has joined #ruby
[03:38:37] _darinthompson: Can anyone take a look at this gist and help me understand why it repeats itself and gives a strange answer as output? I'd really appreciate it.
[03:38:42] _darinthompson: https://gist.github.com/darinthompson/0ba2ce4718afb4f7dad3
[03:42:27] freerobby: has joined #ruby
[03:42:29] m1dnight1: has joined #ruby
[03:43:04] Ox0dea: _darinthompson: It repeats itself because you repeated yourself.
[03:43:24] Ox0dea: You invoke #amount_of_per_diem twice.
[03:43:43] _darinthompson: with the @per_diem being @perdiem * @number_of_days
[03:45:35] Ox0dea: _darinthompson: Lines 61 and 63.
[03:45:58] _darinthompson: Oh, that's right. Thanks.
[03:46:07] Ox0dea: Sure thing.
[03:46:49] Ox0dea: The other serious problem is that `@per_diem` is being set to a String.
[03:47:12] Ox0dea: The interpreter isn't yelling at you because "multiplication" is in fact defined on Strings in Ruby; it does replication.
[03:47:16] Ox0dea: >> 'foo' * 3
[03:47:18] ruby[bot]: Ox0dea: # => "foofoofoo" (https://eval.in/507336)
[03:47:41] _darinthompson: it was yelling when I changed some text around
[03:48:34] _darinthompson: @per_diem = @per_diem * 0.75 keeps it from throwing an error, but it doesn't function properly. Obviously.
[03:48:48] Ox0dea: Do you know why?
[03:48:52] _darinthompson: it should be to_i huh?
[03:48:58] _darinthompson: gets gets a string
[03:49:06] _darinthompson: gets.chomp.to_i
[03:49:13] Ox0dea: Do you want the user to be able to supply a fractional per diem?
[03:49:25] sandstrom: has joined #ruby
[03:50:13] _darinthompson: It can, but the user who would use this. already knows the per Diem rate, it's a constant on the NAVY side. But it changes based on the length of deployment
[03:50:34] Ox0dea: It's always a whole number, then?
[03:51:18] _darinthompson: I guess there are fractions like 3.50
[03:51:27] Ox0dea: Then #to_i won't do.
[03:51:38] Ox0dea: >> '3.50'.to_i
[03:51:45] ellisTAA: has joined #ruby
[03:51:53] ruby[bot]: Ox0dea: # => 3 (https://eval.in/507337)
[03:53:35] ponga: has joined #ruby
[03:53:52] _darinthompson: there is a lot to think about that I didn't even know to think about
[03:53:58] rtail: has joined #ruby
[03:54:43] ponga: I finally had a moment where it should be running fine but it did, then it didn't a moment after, which took me a lot of time investigate the problem, and wondered how it did work in first place anyhow
[03:54:55] ponga: *where it should not be running
[03:55:04] _darinthompson: :Ox0dea I don't really understand that.
[03:55:40] Ox0dea: _darinthompson: Well, the #to_i method converts to an integer; 3.5 isn't an integer, so it has to throw away the fractional part.
[03:56:50] _darinthompson: Oh yeah, I get that. Is that what the exception was saying?
[03:56:56] howdoi: has joined #ruby
[03:57:33] Ox0dea: Wizard != psychic. :P
[03:57:53] _darinthompson: hahahaha. That's even funnier being awake for as long as I have been
[03:58:26] _darinthompson: Since it's money, I guess to_d(eez_nuts) would work, correct?
[04:00:11] _darinthompson: nope, still throws an error.
[04:00:32] Ox0dea: Enlighten me: in which jurisdictions do your testicles constitute valid currency?
[04:00:42] Ox0dea: Addendum: have you already spent them?
[04:00:59] _darinthompson: Maybe here in the desert of Oman.
[04:01:08] skofo: has joined #ruby
[04:02:01] Ox0dea: Good luck out there.
[04:02:02] Yzguy: has joined #ruby
[04:02:17] _darinthompson: If you were to see me right now, you'd think that programming of any kind would be the last thing on my mind. But it isn't. It's the first.
[04:03:21] Ox0dea: http://i.imgur.com/Ufbr5ej.gif
[04:03:25] Ebok: has joined #ruby
[04:03:47] _darinthompson: hahahaha. That's hilarious
[04:04:49] asccigcc: has joined #ruby
[04:06:04] _darinthompson: https://pbs.twimg.com/media/CZiaAt2WIAArKx7.jpg
[04:06:21] _darinthompson: :Ox0dea for you
[04:06:31] bklane_: has joined #ruby
[04:06:47] Ox0dea: I also own a face. http://i.imgur.com/YJcU5t5.jpg
[04:07:02] Ox0dea: Your apartment looks bigger than mine.
[04:07:34] _darinthompson: infinite almost
[04:08:21] ponga: can someone explain difference between " x == 1 || x == 2 " and " x == 1 || 2 "
[04:08:33] ponga: it somehow messed up my code
[04:09:33] _darinthompson: one is x is equal to 1 or x is equal to 2. the other one is x is equal or 1 or x is 2
[04:10:19] Ox0dea: Is that a drone in the sky behind you?
[04:10:30] ponga: I lost it at "x is equal or 1 "
[04:10:34] ICantCook: has joined #ruby
[04:11:26] Yzguy: has joined #ruby
[04:12:12] _darinthompson: So. the first code example is a comparison. is x equal to 1 or is x equal to 2 the second one is saying. Is X equal to 1 or just the number 2
[04:12:59] ponga: got it like 50%, thanks
[04:13:05] ponga: I think I need time to understand it
[04:13:11] _darinthompson: It's like have a scale. On one side of the scale you have x == 1 and on the the side you have the number 2
[04:13:28] braincrash: has joined #ruby
[04:13:42] _darinthompson: one is a comparison, the other side is just a number
[04:14:02] Ox0dea: == "binds" more tightly than ||, so it may help to think of it as `(x == 1) || (2)`.
[04:14:30] Ox0dea: || (and &&) "short-circuit", meaning that they stop as soon as they know what they must evaluate to.
[04:14:33] _darinthompson: That's probably better than what I was saying.
[04:14:58] ebbflowgo: has joined #ruby
[04:15:33] ponga: Ox0dea: Thanks I got it 100%
[04:16:53] dEPy: has joined #ruby
[04:17:32] Ox0dea: >> false && universe.implode!
[04:17:33] ruby[bot]: Ox0dea: # => false (https://eval.in/507339)
[04:17:47] Ox0dea: Close one.
[04:20:51] Musashi007: has joined #ruby
[04:22:09] _darinthompson: has joined #ruby
[04:22:29] _darinthompson: Sorry, I got kicked off again.
[04:22:53] _darinthompson: But I figured out my issue. Thanks :Ox0dea for the help.
[04:23:16] Ox0dea: _darinthompson: Sure thing.
[04:23:16] ICantCook: has joined #ruby
[04:23:46] Ox0dea: I've interpreted your silence on the matter of the drone to be indicative of your being a CIA operative, for the record.
[04:24:01] _darinthompson: Uhh... yeah you can do that.
[04:24:17] Ox0dea: I mean, I can't undo it.
[04:24:18] Yzguy: Ox0dea lmfao
[04:24:22] _darinthompson: It's just the sun.... <--- my official statement
[04:24:33] Ox0dea: Nope, still a drone.
[04:24:56] _darinthompson: why do you think I need to learn to program in the desert? haha
[04:25:10] _darinthompson: The government is big on open source software...... NOT
[04:25:31] Yzguy: do you guys work in a corporate enterprise?
[04:25:32] joonty: has joined #ruby
[04:25:36] Yzguy: whattttt a draggg
[04:25:43] Ox0dea: It's all good, dude; I'm DEA. Feds buddies best buddies, amirite?
[04:25:59] Senecea: has joined #ruby
[04:26:14] _darinthompson: Yeah man. Seriously DEA? that's cool.
[04:26:28] _darinthompson: just programming for "fun" as well then huh?
[04:26:43] jottr_: has joined #ruby
[04:26:47] Radar: Yzguy: I know right. How dare we get paid $$$$$$ to do our hobbies?
[04:27:02] Radar: or in the case of Ox0dea: $$$$$$$$$$
[04:27:08] Yzguy: nah I mean more of the atmosphere.
[04:28:06] Ox0dea: Radar: You're onto something, but rb_is_global_id() is such a stickler!
[04:28:42] Yzguy: am looking onto my next opportunity, really excited. lots of docker, ruby, CI/CD, etc.
[04:29:35] _darinthompson: So, i've got a question for you again. If I may.
[04:30:00] Radar: Yes I think we have time for that today.
[04:30:16] djbkd_: has joined #ruby
[04:31:01] Ox0dea: How to do CI for real: `while :; do git commit -am '#justCIthings'; done`
[04:31:47] _darinthompson: So, I can understand that my "program" works locally on my machine, with me calling every method one at time. But, how would it deploy and be used by someone else?
[04:32:00] Ox0dea: _darinthompson: Package it as a Ruby gem.
[04:32:11] Ox0dea: http://guides.rubygems.org/make-your-own-gem/
[04:32:41] _darinthompson: So, those stupid darin.method that's specific to me though. I would just change the instance name?
[04:33:08] Ox0dea: What's wrong with calling it darin? That's an excellent for anything.
[04:33:11] _darinthompson: I am having a hard time getting my thought across, but can you see what I am getting at?
[04:33:25] Ox0dea: That said, it's an anagram of "nadir", which isn't so pleasant a word.
[04:33:41] bklane: has joined #ruby
[04:33:43] _darinthompson: in which language?
[04:33:49] Ox0dea: nadir (n.): The lowest point.
[04:34:04] Ox0dea: English from Arabic.
[04:34:05] _darinthompson: Wow, learned a new word today even.
[04:34:08] sandstrom: has joined #ruby
[04:34:30] _darinthompson: Sorry, my Arabic is a little rusty
[04:34:38] Ox0dea: Audu billahi min ash Shaytan ir-rajim.
[04:34:42] Ox0dea: Or don't.
[04:34:55] Ox0dea: Sounds delicious.
[04:35:11] stannard: has joined #ruby
[04:35:12] _darinthompson: if it's cooked right.
[04:35:12] Yzguy: I need to make my one project into a gem
[04:36:09] bklane_: has joined #ruby
[04:36:18] jcdesimp: has joined #ruby
[04:37:11] _darinthompson: I think tonight after I have had some sleep, i will make mine into a gem as well
[04:38:27] hannelita: has joined #ruby
[04:39:44] Yzguy: https://github.com/yzguy/fusionmanage
[04:39:55] Yzguy: I need some feature enhancements, validation, etc. but
[04:40:00] finisherr: has joined #ruby
[04:40:35] ellisTAA: has joined #ruby
[04:41:44] zast: has joined #ruby
[04:42:53] krz: has joined #ruby
[04:43:02] Yzguy: may do some bash completion too
[04:43:06] Yzguy: since its cli tool
[04:49:05] gix: has joined #ruby
[04:49:08] skcin7: has joined #ruby
[04:51:19] rakm: has joined #ruby
[04:51:20] sandstrom: has joined #ruby
[04:53:30] kalopsian: has joined #ruby
[04:54:16] Xeago: has joined #ruby
[04:54:33] bklane: has joined #ruby
[04:59:24] aryaching: has joined #ruby
[05:01:02] finisherr: has joined #ruby
[05:02:08] justqyx: has joined #ruby
[05:03:14] justqyx: has left #ruby: ()
[05:04:51] kalopsian: has joined #ruby
[05:06:08] justqyx: has joined #ruby
[05:06:22] justqyx: has left #ruby: ()
[05:08:14] bklane_: has joined #ruby
[05:08:32] sandstrom: has joined #ruby
[05:08:49] s0undw4ve: has joined #ruby
[05:08:55] RegulationD: has joined #ruby
[05:09:51] asccigcc: has joined #ruby
[05:14:47] akem: has joined #ruby
[05:14:47] kalopsian: has joined #ruby
[05:17:18] rtail: has joined #ruby
[05:17:47] bronson: has joined #ruby
[05:20:43] bklane: has joined #ruby
[05:22:09] adgtl: has joined #ruby
[05:22:49] lacuna: has joined #ruby
[05:22:49] lacuna: has joined #ruby
[05:23:57] chipotle: has joined #ruby
[05:24:01] kalopsian: has joined #ruby
[05:25:45] Dimik: has joined #ruby
[05:25:55] sandstrom: has joined #ruby
[05:28:11] Macaveli: has joined #ruby
[05:28:15] craigp: has joined #ruby
[05:30:55] djbkd_: has joined #ruby
[05:32:03] arup_r: has joined #ruby
[05:35:17] tildes: has joined #ruby
[05:37:55] kalopsian: has joined #ruby
[05:39:12] hannelita: has joined #ruby
[05:40:01] CloCkWeRX: has joined #ruby
[05:40:15] d0lph1n98: has joined #ruby
[05:40:41] bklane: has joined #ruby
[05:41:01] Ilyes512: has joined #ruby
[05:41:16] mhb: has joined #ruby
[05:43:08] sandstrom: has joined #ruby
[05:44:03] chouhoulis: has joined #ruby
[05:46:02] fedexo: has joined #ruby
[05:46:17] bklane: has joined #ruby
[05:47:24] kalopsian: has joined #ruby
[05:47:51] hahuang65: has joined #ruby
[05:49:58] lacuna: has joined #ruby
[05:49:58] lacuna: has joined #ruby
[05:51:18] lxsameer: has joined #ruby
[05:51:53] Ilyes512: has joined #ruby
[05:53:15] zhkirill: has joined #ruby
[05:54:47] Axsuul: has joined #ruby
[05:55:37] nanoz: has joined #ruby
[05:57:55] adgtl: has joined #ruby
[06:00:20] sandstrom: has joined #ruby
[06:01:34] ziyadb: has joined #ruby
[06:02:02] dionysus69: has joined #ruby
[06:03:28] kalopsian: has joined #ruby
[06:03:36] darkf: has joined #ruby
[06:03:54] LemonSkunk: has joined #ruby
[06:04:27] ICantCook: has joined #ruby
[06:05:51] tildes: has joined #ruby
[06:09:40] LemonSkunk: has left #ruby: ()
[06:09:44] shmoon: has joined #ruby
[06:09:53] shmoon: what do people use for automated web/mobile UI testing ?
[06:10:55] Ox0dea: "The human eye is an organ that reacts to light and has several purposes."
[06:11:15] baweaver: depends what frameworks I'm using. Typically some combination of Jasmine, Capybara, or Karma
[06:11:35] baweaver: then again I work on a JS/Angular frontend so your mileage may vary.
[06:11:37] bklane: has joined #ruby
[06:12:07] baweaver: also note that integration tests are very brittle
[06:12:32] baweaver: focus on unit testing as much as possible, and only have a few integration. You find out very quickly what diminishing returns and the halting problem are otherwise.
[06:13:15] shmoon: I've used Jasmine for writing unit tests for my frontend JS code
[06:13:22] shmoon: Is this Karma - https://www.jetbrains.com/ruby/help/preparing-to-use-karma-test-runner.html
[06:13:34] mfb2: has joined #ruby
[06:13:42] shmoon: I've heard of capybara but never used it, does it test like a user ? I mean open a browser then open the website in it then fill forms, etc.
[06:13:43] baweaver: that's what it was.
[06:13:46] Maxed: has joined #ruby
[06:13:53] baweaver: something like that
[06:15:24] shmoon: protractor ?
[06:15:43] baweaver: angular's integration test runner.
[06:15:50] shmoon: well by integration if you mean something like the UI testing ,then shouldn't it be there for atleast all the forms that I have ?
[06:15:54] baweaver: runs off of selenium webdriver.
[06:16:03] baweaver: why bother?
[06:16:11] baweaver: do you test the data is valid on the backend?
[06:16:50] shmoon: yeah, validations are there
[06:17:08] baweaver: then unit test validations on the front end and you're golden
[06:17:33] sandstrom: has joined #ruby
[06:17:40] shmoon: oh yeah I think backend + frontend unit tests would cover most of it. We only do backend unit testing, not frontend yet.
[06:18:08] baweaver: focus on covering everything unit-wise first.
[06:18:33] baweaver: integration only when you have a workflow that absolutely must work a certain way that's not coverable with only unit tests.
[06:18:50] baweaver: the more towards integration, the more brittle and the more work to maintain them
[06:19:01] shmoon: makes sense tbh
[06:19:12] baweaver: that being said, I do have integration tests in my app at $WORK
[06:19:17] UtkarshRay: has joined #ruby
[06:19:35] baweaver: because external APIs need to be tested from end to end to make sure it works
[06:19:44] baweaver: which in this case is deploying a server on AWS.
[06:20:32] baweaver: so in that case, we're screwed if a server doesn't deploy right and a unit test isn't going to make sure that chef likes our data all the way.
[06:20:56] baweaver: it's more of a sanity check of making sure everything in the pipeline works, not only our app.
[06:21:27] baweaver: maybe someone updated the OS, maybe a new package is present, who knows. That's what that's meant to catch if that makes any sense.
[06:22:07] kalopsian: has joined #ruby
[06:23:18] baweaver: I fear having to make changes to that beast though :P
[06:23:46] baweaver: also probably not good to cross-post between here and rails
[06:24:05] baweaver: just for future reference.
[06:24:48] last_staff: has joined #ruby
[06:26:12] shmoon: I posted here first, then thought since I'm coding rails maybe ask there too.
[06:26:25] jcdesimp: has joined #ruby
[06:26:32] baweaver: I figured about as much, not a big deal.
[06:26:37] shmoon: no one answered there, but got some good ideas here :D
[06:26:45] baweaver: I'm on both
[06:26:45] abra0: has joined #ruby
[06:26:56] baweaver: I just figured I'd answer here since I already saw it
[06:27:33] jottr_: has joined #ruby
[06:31:37] djbkd_: has joined #ruby
[06:32:46] Darmani: has joined #ruby
[06:33:03] Darmani: Quick question
[06:33:04] oivoodoo: has joined #ruby
[06:33:09] baweaver: Slow answer
[06:33:16] Darmani: noob question actually lol
[06:33:28] baweaver: 1337 answer
[06:33:28] Darmani: How do you make a hash where the values are increment counters?
[06:33:47] kalopsian: has joined #ruby
[06:34:05] baweaver: >> Hash.new { |h,k| h[k] = 0 }; h[:a] += 5
[06:34:07] ruby[bot]: baweaver: # => undefined local variable or method `h' for main:Object (NameError) ...check link for more (https://eval.in/507366)
[06:34:16] baweaver: >> h = Hash.new { |h,k| h[k] = 0 }; h[:a] += 5; h
[06:34:17] ruby[bot]: baweaver: # => {:a=>5} (https://eval.in/507367)
[06:34:26] zhkirill: Hash.new(0)
[06:34:39] baweaver: Ah, but that leaves the same value.
[06:34:49] baweaver: try adding to more than one value.
[06:34:49] Darmani: baweaver - Hm.
[06:35:06] sandstrom: has joined #ruby
[06:35:10] zhkirill: h = Hash.new(0); h[:a] += 1;
[06:35:30] djbkd: has joined #ruby
[06:35:36] usershell: has joined #ruby
[06:35:38] Darmani: Okay let me work on it.
[06:35:39] Darmani: Thanks mang
[06:36:28] zast: has joined #ruby
[06:37:49] stannard: has joined #ruby
[06:39:19] Darmani: baweaver - http://ideone.com/GQ5Xd5
[06:39:32] Darmani: I'm obviously doing it wrong. Can you explain it to me?
[06:39:59] baweaver: where's the hash?
[06:40:14] zhkirill: Darmani what's your goal?
[06:40:17] Darmani: Oh. I thought group_by converted it into a hash.
[06:40:27] Darmani: just a word counter.
[06:40:30] baweaver: it returns one
[06:40:38] baweaver: you _could_ use group_by
[06:40:50] baweaver: and you almost got it
[06:40:56] usershell: has joined #ruby
[06:40:57] baweaver: slightly out of it
[06:41:12] Darmani: I'm confuzled.
[06:41:13] kalopsian: has joined #ruby
[06:41:15] hannelita: has joined #ruby
[06:41:20] baweaver: >> 'some words and stuff and other stuff'.split.group_by(&:itself)
[06:41:22] ruby[bot]: baweaver: # => {"some"=>["some"], "words"=>["words"], "and"=>["and", "and"], "stuff"=>["stuff", "stuff"], "other"=> ...check link for more (https://eval.in/507369)
[06:41:44] baweaver: >> 'some words and stuff and other stuff'.split.group_by(&:itself).map { |k,v| [k,v.size] }.to_h
[06:41:45] ruby[bot]: baweaver: # => {"some"=>1, "words"=>1, "and"=>2, "stuff"=>2, "other"=>1} (https://eval.in/507370)
[06:42:33] baweaver: >> 'some words and stuff and other stuff'.split.reduce(Hash.new(0)){|a,w| a[w]+=1 }
[06:42:35] ruby[bot]: baweaver: # => no implicit conversion of String into Integer (TypeError) ...check link for more (https://eval.in/507371)
[06:42:40] baweaver: >> 'some words and stuff and other stuff'.split.reduce(Hash.new(0)){|a,w| a[w]+=1;a }
[06:42:42] ruby[bot]: baweaver: # => {"some"=>1, "words"=>1, "and"=>2, "stuff"=>2, "other"=>1} (https://eval.in/507372)
[06:43:07] baweaver: >> 'some words and stuff and other stuff'.split.each_with_object(Hash.new(0)){|w,a| a[w]+=1 }
[06:43:08] ruby[bot]: baweaver: # => {"some"=>1, "words"=>1, "and"=>2, "stuff"=>2, "other"=>1} (https://eval.in/507373)
[06:43:25] zhkirill: >> text.inject(Hash.new(0)) {|h| h[w] += 1; h}
[06:43:26] ruby[bot]: zhkirill: # => undefined local variable or method `text' for main:Object ...check link for more (https://eval.in/507375)
[06:43:55] zhkirill: Right, just use each_with_object method
[06:44:09] baweaver: text is undefined
[06:44:23] zhkirill: Don't look at my code :) Yours is correct.
[06:44:31] Darmani: Lol... I need to study those... You linked a few different methods with a block.
[06:44:43] baweaver: which surprises me slightly, a tinge tipsy
[06:44:48] zhkirill: The last one by @baweaver is correct
[06:44:59] Darmani: I'm a beginner baweaver Q.Q you need to speak Ruby slowly to me lol
[06:45:03] Darmani: Can't be talking that fast talk xD
[06:45:31] ur5us: has joined #ruby
[06:45:45] baweaver: learn map, reduce, and select.
[06:46:00] Darmani: But I know those already o.o
[06:46:46] baweaver: now try and implement map and select using reduce
[06:46:53] baweaver: then combine them into one function
[06:47:15] Darmani: O.O to make my hash?
[06:47:20] usershell: has joined #ruby
[06:47:28] baweaver: na, just in general, a generic function
[06:47:28] Darmani: or you mean in a different script entirely?
[06:47:54] Darmani: jesus that sounds hard...
[06:48:28] baweaver: it's a question I occasionally ask in interviews.
[06:48:36] djbkd_: has joined #ruby
[06:48:41] Darmani: wonderful.
[06:48:43] Darmani: They must love you.
[06:48:49] baweaver: it involves passing blocks to functions, yield and other such things
[06:48:59] baweaver: just don't be the person who writes Haskell on your resume
[06:49:10] sigurding: has joined #ruby
[06:49:12] Darmani: I don't even know what that is. Lol
[06:49:15] baweaver: otherwise I have special questions :D
[06:49:31] Darmani: man I went to an interview the other day
[06:49:34] beast: has joined #ruby
[06:49:35] Darmani: And this guy asked me...
[06:49:38] baweaver: If I notice an obscure or lesser-used language I'll ask someone about it.
[06:49:39] Darmani: What do you like most about yourself?
[06:49:44] Darmani: Whats your greatest weakness?
[06:49:51] Darmani: jesus christ I almost walked out right there.
[06:49:53] baweaver: don't humblebrag that one
[06:50:16] Darmani: Please tell me you don't ask those.
[06:50:54] zhkirill: I "know" Haskell
[06:51:04] zhkirill: baweaver what's your question about Haskell? :D
[06:51:15] baweaver: explain to me what a monad is
[06:51:31] baweaver: and then show me how to implement one.
[06:51:32] Darmani: baweaver - By the way, I can't even think of a function that would ever need reduce,map, & select. I mean... Can you give me an idea of what the function should be??
[06:51:51] zhkirill: baweaver never mind.
[06:51:59] Darmani: that's funny.
[06:52:13] kalopsian: has joined #ruby
[06:52:18] sandstrom: has joined #ruby
[06:53:11] zhkirill: baweaver what did you mean by "then combine them into one function"?
[06:53:23] baweaver: one of my new favorites is make an anagram finder, and lead it into a scrabble solver.
[06:53:29] SOLDIERz: has joined #ruby
[06:53:45] lyoshajapan: has joined #ruby
[06:53:47] baweaver: only maps over values that map returns something non-falsy
[06:54:33] zhkirill: Should be easy...
[06:54:53] baweaver: so: (1..5).map_select { |v| v.even? && v * 2 } # returns: [4,8]
[06:54:56] zhkirill: I've never tried to implement map and select using reduce though.
[06:55:08] baweaver: it's an interesting thought exercise if nothing else.
[06:55:29] zhkirill: Should map_select be O(n)?
[06:56:20] zhkirill: So technically I am not using both map and select?
[06:56:39] zhkirill: Let me try :)
[06:57:35] baweaver: speaking of interviews, I have two this week I suppose.
[06:57:52] aufi: has joined #ruby
[06:58:43] Darmani: baweaver - HA
[06:58:53] Darmani: It's probably not what you are looking for though lol
[06:59:23] Darmani: http://ideone.com/GoKwkc
[06:59:48] Axsuul: has joined #ruby
[07:01:36] DoubleMalt: has joined #ruby
[07:01:38] zhkirill: baweaver how can I implement map using reduce? I don't get it.
[07:02:34] Ox0dea: zhkirill: Gotta bone up on your cons cells. :)
[07:02:43] shanemcd: has joined #ruby
[07:02:48] zhkirill: reduce will combine results, whereas map returns enumarable.
[07:02:57] karapetyan: has joined #ruby
[07:03:42] zhkirill: Ox0dea I have lots of things to work on :)
[07:04:00] adgtl: has joined #ruby
[07:04:03] baweaver: reduce returns an object it accumulates on
[07:04:13] baweaver: who says that can't be an array or something?
[07:04:22] Ox0dea: Or anything.
[07:05:07] zhkirill: Makes sense.
[07:07:50] claw: has joined #ruby
[07:07:59] Graphettion: has joined #ruby
[07:08:42] baweaver: http://ideone.com/gRbU5w by the way.
[07:09:04] singleton_method: has joined #ruby
[07:09:30] sandstrom: has joined #ruby
[07:09:36] usershell: has joined #ruby
[07:09:52] Darmani: baweaver - Wait, remember those hashes you showed me? How exactly is "reduce" being used in the way you use it?
[07:10:04] Darmani: I know it can be passed a block but I still don't get it...
[07:10:18] baweaver: How does reduce work?
[07:10:29] Darmani: No I mean...
[07:10:38] Darmani: Each method has a part to play right? split, map, etc.
[07:10:45] Darmani: What is "reduce" doing when you use it?
[07:10:59] gagrio: has joined #ruby
[07:11:09] baweaver: do you know how reduce works fully?
[07:11:29] baweaver: each loop of it returns the block as the new accumulator
[07:11:30] Darmani: It's like Inject right?
[07:11:43] baweaver: they're aliases of eachother, so exact same.
[07:13:30] Ox0dea: https://github.com/0x0dea/viva/blob/master/CODE_OF_CONDUCT
[07:14:26] Ox0dea: Darmani: #reduce is literally #inject.
[07:14:57] Darmani: Rite. I get that.
[07:15:57] Darmani: Ox0dea - So... He's basically giving it a loop that runs a hash each time it finds a new word???
[07:15:59] Darmani: Is that it?
[07:16:14] Ox0dea: > runs a hash
[07:17:20] Darmani: well... not runs a hash..
[07:17:23] Darmani: You know what I mean.
[07:18:06] Pupp3tm4st3r: has joined #ruby
[07:18:30] codefo: has joined #ruby
[07:19:18] adgtl: has joined #ruby
[07:21:40] Ox0dea: Darmani: https://eval.in/507383
[07:21:57] Ox0dea: Don't focus on the specifics of whatever whoever was doing with a reduction over a Hash up there.
[07:22:10] kalopsian: has joined #ruby
[07:22:13] Ox0dea: Take time to really try to grok the core concept of #reduce.
[07:22:34] BSaboia: has joined #ruby
[07:22:51] aganov: has joined #ruby
[07:22:52] Ox0dea: It really does perform a very simple but extremely elegant operation, broadly applicable to pretty much any problem domain.
[07:23:56] Ox0dea: Oh, sorry. Do be mindful that #p returns its argument(s).
[07:24:17] Darmani: Ox0dea - No worries, I knew that.
[07:25:12] Darmani: Ox0dea - I think the general concepts are easy to understand. But using them in real applications and knowing when to use them is what really puzzles me.
[07:25:29] Darmani: Like I would have never thought to use "reduce" to make the word counter.
[07:25:37] Ox0dea: But how come not?
[07:25:49] Ox0dea: You want to take a collection and reduce it down to a single value.
[07:26:01] Ox0dea: I guess it's maybe the considering a Hash to be a "single value" that's tripping you up?
[07:26:24] Darmani: What do you mean the Hash is a single value?
[07:26:38] Ox0dea: A Hash is *a* collection of *many* key-value pairs.
[07:26:54] CloCkWeRX: has joined #ruby
[07:26:56] Darmani: You mean like how an array is one "value" persay?
[07:27:30] Ox0dea: Yeah. Maybe better to use "object" in place of "value" here.
[07:27:34] Darmani: Or one "collection" might be a better term.
[07:27:44] Ox0dea: Right, Hash and Array are both collection types.
[07:27:48] Ox0dea: And everything nests.
[07:27:57] sandstrom: has joined #ruby
[07:28:52] Darmani: Ox0dea - Right... okay..
[07:29:10] baweaver: reduce is basically recursion in loop form anyways
[07:29:15] baweaver: well, tail recursion.
[07:29:37] Darmani: Could you make a loop that returns a hash in the same form?
[07:29:45] Darmani: without "reduce"?
[07:30:23] baweaver: give it a try
[07:31:00] shevy: reduce works dam well!
[07:31:20] Darmani: p 'some words and stuff and other stuff'.split.each_with_object(Hash.new(0)){|w,a| a[w]+=1 } <--- This doesn't seem like a loop. Does this work on a different principal then?
[07:31:33] dopie: has joined #ruby
[07:31:36] baweaver: nope, same thing
[07:31:45] baweaver: what does each do?
[07:31:49] Darmani: But where is the loop?
[07:32:02] Darmani: each iterates through the collection...
[07:32:05] mdw: has joined #ruby
[07:32:13] Ox0dea: That's the loop.
[07:32:18] baweaver: which is the equivalent of a for loop in ways.
[07:32:30] Darmani: I didn't know those were considered loops...
[07:32:31] Ox0dea: It's literally a for loop spelled sexier.
[07:32:39] rht: has joined #ruby
[07:32:44] baweaver: but pedantics
[07:33:16] s2013: has joined #ruby
[07:33:21] Ox0dea: pedantics : pedant :: semantics : semant?
[07:33:39] baweaver: you'd be the semant then
[07:33:43] dopie: has joined #ruby
[07:34:58] djellemah: Darmani: the loop is inside each, and it gives control back to your block with each item.
[07:35:29] Darmani: djellemah - Is that for each works????
[07:35:41] kalopsian: has joined #ruby
[07:35:52] Darmani: Every item with "each" gets passed to the block like a loop?
[07:36:47] djellemah: Darmani: you call each on a collection object, and the collection gives each item to your block one by one.
[07:36:48] firstdayonthejob: has joined #ruby
[07:37:20] Darmani: So... map, select, each, etc. Are those all considered loops too?
[07:37:30] djellemah: same pattern
[07:37:45] Darmani: I did not know that's how it worked.
[07:37:51] Zggb: has joined #ruby
[07:38:04] baweaver: all Enumerable
[07:38:16] jcdesimp: has joined #ruby
[07:38:31] dopie: has joined #ruby
[07:38:36] stannard: has joined #ruby
[07:38:42] Darmani: baweaver - I never really read the docs... I glanced at them but I like to try and figure things out for myself before I read documentation.
[07:38:49] Darmani: It's a terrible habit really.
[07:38:55] baweaver: http://ruby-doc.org/core-2.3.0/Enumerable.html
[07:39:04] baweaver: read and experiment with all of those
[07:40:41] Darmani: baweaver - Aye aye captain.
[07:41:16] baweaver: anyways, bed for me
[07:41:21] Ox0dea: Darmani: You're trying to spoop me with the d??j?? vu, aren't you?
[07:41:56] Darmani: Ox0dea - war
[07:42:12] Darmani: no, make love not war lol
[07:42:17] hannelita: has joined #ruby
[07:42:51] Darmani: wait wait wait I just thought of something
[07:42:54] Darmani: Hold the goddamn phone
[07:43:06] Ox0dea: >> @U.to_i < 3
[07:43:08] ruby[bot]: Ox0dea: # => true (https://eval.in/507387)
[07:43:14] Ox0dea: I broke the heart.
[07:43:32] kalopsian: has joined #ruby
[07:43:33] Darmani: If "each" and "map" both yield to the block then why is there a "map" method at all? Why doesn't each work for the same purpose?
[07:43:45] Darmani: I mean if it just obeys the block what's the difference?
[07:43:48] Ox0dea: #map is defined in terms of #each.
[07:43:54] Ox0dea: They do different things with the block.
[07:44:04] Ox0dea: #each just yields them, #map takes them and does a transformation.
[07:44:44] sandstrom: has joined #ruby
[07:44:47] djellemah: Darmani: map remembers each return value from your block and gives you back that collection.
[07:45:05] CloCkWeRX: has joined #ruby
[07:45:14] symm-: has joined #ruby
[07:45:21] Ox0dea: `[1,2,3].each { 42 }` just walks over the collection, sees a 42, goes "oh, cool", and keeps on truckin'.
[07:45:28] usershell: has joined #ruby
[07:47:01] Ox0dea: What does #map do?
[07:47:04] Darmani: So... Each is like me on the side of the road with my thumb up waiting for someone to give me a ride... and map is like me calling an Uber to take me where I have to go.
[07:47:15] dopie: has joined #ruby
[07:47:17] Ox0dea: ??\_(???)_/??
[07:47:30] Darmani: I like to think of it that way.
[07:48:27] Darmani: and reduce is that really weird cousin I know nothing about but he seems really useful. I mean I know his name and people like him I just don't know him very well you know?
[07:49:15] Darmani: zhkirill - I'm kiddingg xP
[07:49:54] zhkirill: Great! I thought I am not gonna sleep tonight.
[07:50:16] Darmani: Lol funny.
[07:51:47] TheRokh: has joined #ruby
[07:55:13] aryaching: has joined #ruby
[07:56:38] adgtl: has joined #ruby
[07:59:10] dopie: has joined #ruby
[08:00:01] colegatron: has joined #ruby
[08:02:02] sandstrom: has joined #ruby
[08:04:40] yardenbar: has joined #ruby
[08:05:12] iamayam: has joined #ruby
[08:05:40] DirtyFInn: has joined #ruby
[08:07:14] andikr: has joined #ruby
[08:07:27] toretore: has joined #ruby
[08:07:28] krz: has joined #ruby
[08:09:41] lDoran: has joined #ruby
[08:10:06] Xeago: has joined #ruby
[08:11:13] kalopsian: has joined #ruby
[08:11:28] vondruch: has joined #ruby
[08:12:27] astrobun_: has joined #ruby
[08:13:34] TomyWork: has joined #ruby
[08:14:17] mfb2: has joined #ruby
[08:14:43] ur5us: has joined #ruby
[08:17:27] burgestrand: has joined #ruby
[08:17:58] codecop: has joined #ruby
[08:19:09] sandstrom: has joined #ruby
[08:19:34] jcdesimp: has joined #ruby
[08:20:12] bronson: has joined #ruby
[08:20:33] lyoshajapan: has joined #ruby
[08:21:01] jas02: has joined #ruby
[08:22:50] arlek: has joined #ruby
[08:23:06] adgtl: has joined #ruby
[08:23:47] futilegames: has joined #ruby
[08:23:56] crazydiamond: has joined #ruby
[08:24:04] howdoi: has joined #ruby
[08:25:45] adgtl: has joined #ruby
[08:26:04] SCHAAP137: has joined #ruby
[08:26:31] antgel: has joined #ruby
[08:28:54] kristian_on_linu: has joined #ruby
[08:29:01] sandstrom: has joined #ruby
[08:29:18] jbrhbr: has joined #ruby
[08:29:32] jottr_: has joined #ruby
[08:29:50] kristian_on_linu: there seems to be a bug in the RVM install script ... it says "RVM sourcing line found in /home/kristian/.profile /home/kristian/.bashrc /home/kristian/.bash_profile /home/kristian/.zlogin" even though these instances are commented out
[08:30:34] apeiros: maybe it considers commented out still as present, and respects your commenting out
[08:30:44] usershell: has joined #ruby
[08:31:09] Ox0dea: kristian_on_linu: Have you logged out and back in since commenting them?
[08:31:15] Ebok: has joined #ruby
[08:31:28] Ox0dea: .bash_profile and .zlogin are only read once.
[08:32:17] srenatus: has joined #ruby
[08:32:19] kristian_on_linu: apeiros: but when commented out it is not a "sourcing line" ... it is just a comment
[08:33:12] apeiros: kristian_on_linu: it's still in there and I'd assume commenting out is deliberate. it might do a better job and tell you that it found them, but that they're deactivated.
[08:33:50] apeiros: at least if I wrote rvm, I'd actually assume that if I find the line and it is commented out, then that's what you want, and that you don't want me to de-comment the line.
[08:34:20] apeiros: so IMO the behavior is sensible. but the message might be improved.
[08:34:47] kristian_on_linu: apeiros: the behavior is okay, the wording could be improved
[08:34:52] jas02: has joined #ruby
[08:34:54] apeiros: we agree then ;-)
[08:35:01] apeiros: report it as a bug?
[08:35:07] apeiros: or even better, make a PR?
[08:36:21] sandstrom: has joined #ruby
[08:38:04] txrx: has joined #ruby
[08:39:13] kristian_on_linu: I just wrote them on #rvm, let's see what happens
[08:39:16] einarj: has joined #ruby
[08:39:17] stannard: has joined #ruby
[08:48:08] mdw: has joined #ruby
[08:49:17] mark1: has joined #ruby
[08:49:27] adgtl: has joined #ruby
[08:53:33] sandstrom: has joined #ruby
[08:56:07] kristian_on_linu: inukshuk: what version of jekyll are you using?
[08:57:26] shredding: has joined #ruby
[09:02:30] mikecmpbll: has joined #ruby
[09:03:16] ta: has joined #ruby
[09:03:24] blur3d: has joined #ruby
[09:03:56] futilegames: has joined #ruby
[09:06:05] konsolebox: Ox0dea: the code you wrote earlier has a little issue: the inherited class gets to set the default values instead: https://eval.in/507420
[09:06:22] codefo: has joined #ruby
[09:07:01] Ox0dea: konsolebox: That's quite a big issue.
[09:07:36] waka: has joined #ruby
[09:08:03] DoubleMalt: has joined #ruby
[09:08:32] zhkirill: has joined #ruby
[09:08:38] skade: has joined #ruby
[09:08:53] Ox0dea: The immediate "fix" is to move the `super` call up: https://eval.in/507422
[09:09:17] Ox0dea: Which I suppose is how it should've been to begin with.
[09:09:20] hannelita: has joined #ruby
[09:10:33] ziyadb: has joined #ruby
[09:11:58] konsolebox: Ox0dea: thought about that, but the real initialize() gets called before the attributes gets initialized.
[09:11:59] last_staff1: has joined #ruby
[09:12:03] kalopsian: has joined #ruby
[09:12:59] Ox0dea: konsolebox: But, well, it's gotta be one or the other, yeah?
[09:13:48] joonty: has joined #ruby
[09:14:02] Axsuul: has joined #ruby
[09:14:04] burbus: has joined #ruby
[09:14:23] rodfersou: has joined #ruby
[09:14:52] konsolebox: Ox0dea: i actually made a modification, but i still don't feel like using it: https://eval.in/507425
[09:15:33] Ox0dea: konsolebox: Good heavens!
[09:15:38] konsolebox: Ox0dea: i mean, i don't feel like it's worth prepending modules just for it. i'd rather just manually initialize the attributes.
[09:16:07] user: has joined #ruby
[09:16:20] mikecmpbll: when rsync runs, it connects to the remote server and initiates a process on that server and communicates directly with it (as i understand it from https://rsync.samba.org/how-rsync-works.html)
[09:16:28] mikecmpbll: how would one approach something similar with ruby?
[09:17:03] mikecmpbll: thus far i've implemented it using net/ssh and serialising to STDOUT
[09:17:10] blaxter: has joined #ruby
[09:17:13] mikecmpbll: feel as though i'm missing a trick though
[09:17:15] huyderman: has joined #ruby
[09:17:22] drptbl: has joined #ruby
[09:18:24] mikecmpbll: "When Rsync communicates with a remote non-daemon server via a remote shell the startup method is to fork the remote shell which will start an Rsync server on the remote system" ??? i don't really know what it means by "fork the remote shell" to be honest.
[09:18:56] Ox0dea: mikecmpbll: http://linux.die.net/man/1/socat does some magicks to expose Unix sockets over TCP.
[09:20:16] mikecmpbll: Ox0dea: nice, checking it out
[09:20:17] cibs: has joined #ruby
[09:21:05] drptbl: has joined #ruby
[09:22:02] snowy: has joined #ruby
[09:22:42] ur5us: has joined #ruby
[09:22:53] BlackGear: has joined #ruby
[09:23:47] drptbl: has joined #ruby
[09:24:11] sftrabbit: has joined #ruby
[09:25:36] lsmola: has joined #ruby
[09:26:26] drptbl: has joined #ruby
[09:27:33] zhkirill: has joined #ruby
[09:28:46] usershell: has joined #ruby
[09:30:26] tomphp: has joined #ruby
[09:30:59] kirillzh: has joined #ruby
[09:31:10] futilegames: has joined #ruby
[09:31:22] mdw: has joined #ruby
[09:32:02] bweston92: has joined #ruby
[09:32:59] Xeago: has joined #ruby
[09:34:39] sandstrom: has joined #ruby
[09:36:14] montagne_goat: has joined #ruby
[09:36:43] craigp: has joined #ruby
[09:38:09] Nahra```: has joined #ruby
[09:38:33] nerium: has joined #ruby
[09:39:40] Jackneill: has joined #ruby
[09:41:45] araujo: has joined #ruby
[09:42:42] baweaver: has joined #ruby
[09:43:10] araujo: has joined #ruby
[09:43:25] user: has joined #ruby
[09:43:30] burgestrand: has joined #ruby
[09:43:44] nettoweb: has joined #ruby
[09:43:58] chouhoulis: has joined #ruby
[09:45:01] Kryptonical: has joined #ruby
[09:45:02] mondok: has joined #ruby
[09:45:23] araujo: has joined #ruby
[09:45:52] nettoweb: hello guys, I crated a method some year ago, as passed parameters like this: method(name = nil, age=nil, hair=nil,interest=nil) but now it's too bmuch parameters and when calling the parameter I had to do something like this method("John",nil,nil,'tennis',nil,nil) and so long
[09:46:03] nettoweb: is there a easy way to work with parameters?
[09:47:04] ddv: nettoweb: keyword args
[09:47:06] nettoweb: I order to pass just the data I have, for example: method("John",'tennis') and ruby find out that tennis is related to 'interests'
[09:47:31] ddv: or the splat operator
[09:47:32] mikecmpbll: probably just pass a hash of attributes and attribute names. even with keyword args you'll end up with a massive list of args
[09:47:37] marr: has joined #ruby
[09:47:38] araujo: has joined #ruby
[09:49:17] jaiks: has joined #ruby
[09:49:21] nettoweb: ddv but in my method I have to list all the keywords there, right?
[09:49:48] nettoweb: like method(name: nil, age: nil, hair: nil, interest: nil) ...
[09:50:14] Xeago: has joined #ruby
[09:52:22] user: has joined #ruby
[09:52:36] blackms: has joined #ruby
[09:52:48] mikecmpbll: nettoweb: atts = { name: "John", sport: "tennis" }; my_method(atts);
[09:53:57] the_drow: has joined #ruby
[09:54:39] the_drow: Is it still unsafe to use jemalloc with ruby?
[09:55:30] usershell: has joined #ruby
[09:55:45] FernandoBasso: has joined #ruby
[09:55:51] nettoweb: this atts = { name: "John", sport: "tennis" } has to be in the method definition right? Not when calling the method?
[09:56:35] nerium: has joined #ruby
[09:56:49] blackms: has joined #ruby
[09:57:18] nettoweb: mikecmpbll ike this: https://gist.github.com/osnysantos/86decf74c02ffe88daa3
[09:57:36] serard: has joined #ruby
[09:57:38] stamina: has joined #ruby
[09:57:51] mikecmpbll: no, the atts are what you pass to the method
[09:57:55] mdw: has joined #ruby
[09:58:05] serard: I'm trying to add sinatra cors to mailcatcher webserver, but I'm not a ruby dev, and don't know exactly what to do
[09:58:27] serard: I have git clone, bundle install, rake package after adding the gem line
[09:59:18] tulak: has joined #ruby
[09:59:47] gbgdev: has joined #ruby
[10:00:34] gbgdev_: has joined #ruby
[10:04:12] mark1: has joined #ruby
[10:04:28] jottr_: has joined #ruby
[10:04:33] tubuliferous_: has joined #ruby
[10:06:22] the_drow_: has joined #ruby
[10:07:08] PedramT: has joined #ruby
[10:09:16] drptbl: has joined #ruby
[10:10:07] hannelita: has joined #ruby
[10:10:50] araujo: has joined #ruby
[10:10:50] araujo: has joined #ruby
[10:11:48] nettoweb: mikecmpbll so in the method definition I dont need to list all names there?
[10:11:55] nettoweb: just method(args)?
[10:11:59] mikecmpbll: nettoweb: correct.
[10:12:45] kalopsian: has joined #ruby
[10:13:18] araujo: has joined #ruby
[10:13:43] Xeago: has joined #ruby
[10:14:18] nettoweb: hmm ok. And lemme know if it's possible. I have a custom form which whe is submitted I call this method which create a user, is it possible to set a custom validarion message in this method and the message appear in the first form? I dont know if you got the idea
[10:15:18] nettoweb: because in my app one lead could turn into a user in many ways.
[10:16:36] nettoweb: mikecmpbll hmm so in my method I set an exception and in the current controller I treat this exception? that's the way? If not, do you know something I can learn more how to achieve this? I dont know exactly how t search for this kinda of way
[10:16:36] sandstrom: has joined #ruby
[10:17:02] solocshaw: has joined #ruby
[10:17:12] mikecmpbll: you'll want to encapsulate it in an object, and store the error information on the object.
[10:18:35] blackms: is there a way to specify a gem requirement with a path for development and without it for "production"
[10:18:55] mikecmpbll: blackms : in a Gemfile?
[10:19:11] blackms: Gemfile or in the gemspec
[10:19:21] blackms: actually I'm using the gemfile to define the requirements
[10:19:34] blackms: spec.add_runtime_dependency 'fog-arubacloud', '~> 0.0.1'
[10:19:43] karapetyan: has joined #ruby
[10:19:48] blackms: I would like to specify the path in development environment
[10:21:09] mikecmpbll: just pop it in your Gemfile, probably.
[10:21:19] last_staff: has joined #ruby
[10:21:27] blackms: mikecmpbll, ok i'll try thx
[10:21:33] serard: How do I build a gem for development ???And run it ???I want to run the projet I have just git clone'ed :)
[10:21:49] PedramT: has joined #ruby
[10:22:47] bronson: has joined #ruby
[10:23:05] nerium: has joined #ruby
[10:23:48] nettoweb: mikecmpbll That's what Im doing right now... https://gist.github.com/osnysantos/86decf74c02ffe88daa3 so I should create a object in my method def and add errors there?
[10:24:11] arcane-methods: has joined #ruby
[10:24:56] flaker: has joined #ruby
[10:26:11] kampiyo: has joined #ruby
[10:27:19] the_drow_: what's the difference between StringIO.write() and StringIO.syswrite()?
[10:27:23] mikecmpbll: nettoweb : i meant like this: https://gist.github.com/mikecmpbll/90ddc01c9c93f1db66e7
[10:27:37] apeiros: serard: usually: go into the repo, run `gem build *.gemspec` and then `gem install *.gem`
[10:27:39] ldnunes: has joined #ruby
[10:27:55] apeiros: serard: sometimes the project has a rake task to do more or less that. often if there's additional steps necessary.
[10:27:59] flaker: Question regarding Ruby on OSX ??? I just downloaded latest ruby using homebrew??? it placed it in /usr/local/Cellar
[10:28:06] apeiros: to check for that, run `rake -T` and see
[10:28:13] flaker: using rvm list I just see the default 1.9 one with my OSX/Mountain Lion
[10:28:18] jcdesimp: has joined #ruby
[10:28:23] flaker: and another one under rvm/gems
[10:28:28] apeiros: flaker: uh, use either rvm or homebrew, not both.
[10:28:42] flaker: Ok - so how do I install latest ruby using rvm ?
[10:28:51] apeiros: rvm install ruby-2.3.0
[10:29:03] apeiros: potentially `rvm get stable` first
[10:29:15] flaker: thanks apeiros
[10:29:17] flaker: much appreciated
[10:29:26] flaker: Do I need rails to install compass for SASS ?
[10:30:07] flaker: just ruby ?
[10:32:11] Ox0dea: And a de-plenker.
[10:32:18] nettoweb: mikecmpbll my method was inside class ApplicationController < ActionController::Base, I can create a class inside this application_controller.rb?
[10:32:32] mikecmpbll: nettoweb: just create a new file.
[10:32:46] hannelita: has joined #ruby
[10:32:53] flaker: has left #ruby: ("Textual IRC Client: http://www.textualapp.com/")
[10:33:13] burgestrand: has joined #ruby
[10:33:18] Xeago: has joined #ruby
[10:37:50] chriscoffee: has joined #ruby
[10:39:14] PedramT: has joined #ruby
[10:40:33] platzhirsch: has joined #ruby
[10:40:54] stannard: has joined #ruby
[10:42:18] serard: apeiros, thank you !??I can gem build && gem install ./... && then execute bin/my_bin but it looks like the code is not changed : I don't see expected changes :)
[10:44:46] chouhoulis: has joined #ruby
[10:46:19] evidex: has joined #ruby
[10:46:28] dcunit3d: has joined #ruby
[10:47:03] last_staff: has joined #ruby
[10:47:06] apeiros: you bin/my_bin and not just my_bin? after all, you just installed it? :)
[10:47:38] gbgdev: has joined #ruby
[10:47:44] apeiros: since I have to go in a minute, I can't help you figuring out wether it's loading your changes or not and if not, why it doesn't.
[10:48:02] apeiros: but a quick tip: to just test changes you can have it easier: ruby -Ilib bin/my_bin
[10:48:12] apeiros: note: that's capital-i, not lowercase-L
[10:49:25] gbgdev_: has joined #ruby
[10:49:48] nettoweb: mikecmpbll I start playing with your code and I've already came accross an error: NameError (undefined local variable or method `session' for #<Whatever:0x007fec64a94040>):
[10:50:05] nettoweb: so I have to inherit something form tuby, right?
[10:50:39] dcunit3d: has joined #ruby
[10:50:45] IronD: has joined #ruby
[10:51:16] mikecmpbll: nettoweb: *shrugs* the code is a bit of a mess, i haven't got time to help you straighten it all out.
[10:51:23] sergey_makagon: has joined #ruby
[10:51:51] TomyWork: has joined #ruby
[10:51:58] mikecmpbll: you should separate your controller stuff (setting session variables, cookies, etc) from the domain logic
[10:52:33] serard: I'm trying to add this sinatra extension, CORS origin, but cant make it : https://github.com/britg/sinatra-cross_origin http://pastebin.com/eXs8NiBc
[10:52:34] ruby[bot]: serard: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/f22968d6a05208d01a9f
[10:52:34] ruby[bot]: serard: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[10:52:42] serard: Oops, sorry
[10:55:29] nerium: has joined #ruby
[10:55:51] hannelita: has joined #ruby
[10:57:37] pandaant: has joined #ruby
[10:57:52] nettoweb: mikecmpbll that's because in this class I check wether the user is already in the database or not. In that case I thought the best place to check this was inside this class but now I'll rethink all this
[10:59:47] rsc___: has joined #ruby
[11:00:22] mdw: has joined #ruby
[11:02:55] jespada: has joined #ruby
[11:03:25] PedramT: has joined #ruby
[11:04:33] snowy: has joined #ruby
[11:05:44] Jet4Fire: has joined #ruby
[11:06:48] Jet4Fire: has joined #ruby
[11:07:57] txrx: has joined #ruby
[11:11:02] dlitvak: has joined #ruby
[11:11:38] zarubin: has joined #ruby
[11:11:47] ruby[bot]: Ox0dea: # => "\n" (https://eval.in/507463)
[11:12:29] zarubin: has joined #ruby
[11:13:04] dcunit3d: has joined #ruby
[11:13:37] kalopsian: has joined #ruby
[11:13:48] peteyg: has joined #ruby
[11:14:04] Zarthus: I don't think I fully understand what's happening there
[11:14:16] Zarthus: but the error message definitely includes a \n
[11:14:22] Ox0dea: No error.
[11:14:27] Ox0dea: That's its value.
[11:14:29] Zarthus: `$\n' is not allowed as a global variable name
[11:14:45] Zarthus: when you just type $ to inspect its value
[11:15:06] Ox0dea: It's double evaluating it or something?
[11:15:14] ruby[bot]: Zarthus: # => /tmp/execpad-5dff2f1baa3a/source-5dff2f1baa3a:2: `$' without identifiers is not allowed as a global ...check link for more (https://eval.in/507465)
[11:15:36] Zarthus: doesn't seem to reproduce there, just in irb
[11:15:43] tvw: has joined #ruby
[11:16:30] bigkevmcd: has joined #ruby
[11:16:43] dlitvak_: has joined #ruby
[11:18:17] dlitvak__: has joined #ruby
[11:20:06] FooMunki: has joined #ruby
[11:21:52] gregf_: has joined #ruby
[11:24:20] sftrabbit: has joined #ruby
[11:25:38] AlexJakeGreen: has joined #ruby
[11:30:45] the_drow: has joined #ruby
[11:30:54] xet7: has joined #ruby
[11:35:45] usershell: has joined #ruby
[11:37:07] astrofog: has joined #ruby
[11:41:08] countryHick: has joined #ruby
[11:41:38] stannard: has joined #ruby
[11:42:27] colegatron: has joined #ruby
[11:46:38] dlitvak: has joined #ruby
[11:52:55] hlegius: has joined #ruby
[11:53:59] mdw: has joined #ruby
[11:57:32] Xeago: has joined #ruby
[12:00:56] dionysus69: has joined #ruby
[12:02:00] sigurding: has joined #ruby
[12:02:54] Pupp3tm4st3r: has joined #ruby
[12:03:10] jespada: has joined #ruby
[12:07:30] dlitvak_: has joined #ruby
[12:09:58] hannelita: has joined #ruby
[12:11:03] Xeago: has joined #ruby
[12:11:40] ebbflowgo: has joined #ruby
[12:13:34] FooMunki: has joined #ruby
[12:14:23] kalopsian: has joined #ruby
[12:14:40] Tomasso: has joined #ruby
[12:15:28] krobzaur_: has joined #ruby
[12:15:34] adgtl: has joined #ruby
[12:15:41] mfb2: has joined #ruby
[12:15:45] Tomasso: im runnning my batch process, but at some point I just get the message "Killed". It seems to be using many reasources, is there some tool to be able to detect where the bottleneck is or what variables are involved?
[12:16:33] sftrabbit: has joined #ruby
[12:16:33] dwfait: has joined #ruby
[12:17:10] sandstrom: has joined #ruby
[12:17:16] drptbl: has joined #ruby
[12:21:11] dlitvak: has joined #ruby
[12:23:12] baweaver: has joined #ruby
[12:25:31] Xeago: has joined #ruby
[12:27:40] mody1350: has joined #ruby
[12:28:55] burgestrand: has joined #ruby
[12:28:56] AlexJakeGreen: Tomasso, if the process was killed by linux kernel then appropriate message should be in 'dmesg' output.
[12:28:57] MODY1350_: has joined #ruby
[12:29:02] jcdesimp: has joined #ruby
[12:30:05] DefV: probably (but I'm in guessing-teritory) out of memory got it killed Tomasso
[12:34:06] Tomasso: AlexJakeGreen: yes, was killed by the kernel.. .but its not that much memory compared to other processes... "Killed process 25086 (ruby) total-vm:440736kB, anon-rss:207840kB, file-rss:0kB"
[12:34:09] PedramT: has joined #ruby
[12:35:51] Tomasso: well.. looks like bit more.. my mysql has 198000kb
[12:36:17] Tomasso: but this server is empty.... has almost nothing... may be i should increase its priority ?>
[12:37:20] Trynemjoel: has joined #ruby
[12:42:18] PedramT_: has joined #ruby
[12:43:01] PedramT_: has joined #ruby
[12:43:05] CloCkWeRX: has joined #ruby
[12:44:52] txrx: has joined #ruby
[12:45:47] sdothum: has joined #ruby
[12:47:03] sepp2k: has joined #ruby
[12:47:13] AlexJakeGreen: Tomasso, a fast but dirty way is to add some swap to get more memory. If your script is a parser of smth like parser, then it is better to refactor the script so it will process the data by small chunks
[12:47:25] jcdesimp: has joined #ruby
[12:48:14] PedramT: has joined #ruby
[12:51:30] Tomasso: it basically gets a nasdaq symbol... downloads its history, do some operatiion and saves to my mongo database... but don't understand what remains in memory.. I enabled garbage collection... i set variables to nil when dont use them... :S
[12:51:32] dlitvak_: has joined #ruby
[12:52:20] Trynemjoel: has joined #ruby
[12:53:46] rubyonrails287: has joined #ruby
[12:54:41] chouhoulis: has joined #ruby
[12:56:11] zapata: has joined #ruby
[12:56:42] ddv: Tomasso: you should be able to figure out what process got the highest score and got killed, this is the process that used the most memory
[12:57:06] ddv: Tomasso: if this is ruby you should check for memory leaks or otherwise figure out why your program is using so much memory
[12:57:18] shellie: has joined #ruby
[12:58:07] PedramT: has joined #ruby
[12:58:12] oivoodoo: has joined #ruby
[13:00:36] UtkarshRay: has joined #ruby
[13:02:52] Shaboum: has joined #ruby
[13:03:21] Trynemjoel: has joined #ruby
[13:04:06] solars: has joined #ruby
[13:04:41] krz: has joined #ruby
[13:06:13] Musashi007: has joined #ruby
[13:06:39] Sp3ct3r_2k11: has joined #ruby
[13:07:53] UtkarshRay: has joined #ruby
[13:08:00] CloCkWeRX: has joined #ruby
[13:10:00] rsc___: has joined #ruby
[13:12:16] rsc___: has joined #ruby
[13:12:22] bnt: has joined #ruby
[13:14:51] chridal: has joined #ruby
[13:15:03] kalopsian: has joined #ruby
[13:15:22] minimalism: has joined #ruby
[13:16:32] serard: When I run gem build .gemspec I??get a mailcatcher-0.6.3.pre.CORS.gem, why is there a ".pre." appended and how do I remove it ???:)
[13:17:27] bonhoeffer: has joined #ruby
[13:18:02] dionysus69: has joined #ruby
[13:18:32] sgambino: has joined #ruby
[13:18:40] pdoherty: has joined #ruby
[13:19:06] Axsuul: has joined #ruby
[13:19:17] chrisarcand: serard: What is the version assigned to in your .gemspec file?
[13:20:08] serard: It imports a version.rb file to import its const : s.version = MailCatcher::VERSION
[13:20:23] chrisarcand: Ok, what's VERSION then?
[13:20:31] serard: "0.6.3-CORS"
[13:20:34] serard: (sorry :) )
[13:20:58] chrisarcand: I believe any version with a letter in it will have 'pre' appended to it by Bundler.
[13:21:09] serard: Ah, ok :)
[13:21:17] serard: I accept this, then
[13:21:38] dlitvak: has joined #ruby
[13:21:45] stannard: has joined #ruby
[13:22:50] chridal: has joined #ruby
[13:25:13] joonty: has joined #ruby
[13:27:02] oivoodoo: has joined #ruby
[13:29:55] shanemcd: has joined #ruby
[13:32:03] bonhoeffer: is there a ruby library to record system audio?
[13:34:52] fgro: has joined #ruby
[13:35:53] fgro: hi. when trying to install mysql gem (building native extensions) ... make cannot find "mkdir" command (looks for /usr/bin/mkdir, but its actually in /bin/mkdir). How to resolve this? (this is gentoo)
[13:37:25] chridal: has joined #ruby
[13:37:25] chridal: has joined #ruby
[13:38:00] sftrabbit: has joined #ruby
[13:39:07] soahccc: bonhoeffer: I'm not sure but I would think it is OS depended.
[13:39:37] bonhoeffer: sure -- but in python pyaudio accounts for that in how you configure it
[13:39:52] adgtl: has joined #ruby
[13:40:06] burgestrand: bonhoeffer not AFAIK, back when I wanted to play audio back I had to write my own bindings to OpenAL to do these things.
[13:40:38] bonhoeffer: got it -- i might want to use c anyway -- to be close to the h/w and not get caught in a racing condition with the buffer
[13:40:40] burgestrand: bonhoeffer there were like 3 ruby libraries with sound capabilities, all of them more or less abandoned. It's possible there's a new player in town, so rubygems could have some candy for you.
[13:40:51] AlexJakeGreen: fgro, I've never seen this before on gentoo, but I use mysql2 gem installed via rvm without problems. I don't use gems provided by portage
[13:41:11] bonhoeffer: yeah -- all the implementations i saw weren't actively maintained
[13:41:20] burgestrand: For me Ruby was fast enough to play/record fast enough even on a shitty little raspberry pi, so you don't necessary need to go C, but you might want to anyway because there are no nice bindings for Ruby AFAIK. :(
[13:41:48] fgro: AlexJakeGreen: this will also fail when I try bundle install in the rvm gemset.
[13:42:20] fgro: AlexJakeGreen: what the location of your mkdir? why in my case is it wrongly set when creating the make.conf?
[13:43:00] AlexJakeGreen: fgro, /bin/mkdir
[13:43:11] fgro: AlexJakeGreen: hmpf
[13:43:32] fgro: AlexJakeGreen: any idea what I could try to resolv this?
[13:43:47] AlexJakeGreen: fgro, fastest - create a symlink for mkdir
[13:43:59] fgro: AlexJakeGreen: ok thats just a tmp fix though
[13:44:05] AlexJakeGreen: fgro, but don't do this in production :)
[13:45:20] user: has joined #ruby
[13:45:24] oivoodoo_: has joined #ruby
[13:45:33] soahccc: AlexJakeGreen: you mean clean code like this? *hrhr* https://github.com/2called-chaos/mcl/blob/master/lib/mcl/windows_hacks.rb
[13:46:26] dseitz: has joined #ruby
[13:46:36] adgtl_: has joined #ruby
[13:47:26] GinoManWorks: has joined #ruby
[13:48:25] kalopsian: has joined #ruby
[13:49:00] ramortegui: has joined #ruby
[13:49:14] penne12: has joined #ruby
[13:49:19] krz: has joined #ruby
[13:49:53] AlexJakeGreen: soahccc, no. just $ cd /usr/bin && ln -s /bin/mkdir - only to check if the gem can be installed and there is no any other issue. Sure, thish should not be used in prod envs
[13:50:06] j416: is there a nicer way to get the name of the key not found, than this?
[13:50:07] j416: >> begin; {}.fetch(:foo); rescue KeyError => e; e.to_s.match(/key not found: (.*)/)[1] end
[13:50:09] ruby[bot]: j416: # => ":foo" (https://eval.in/507559)
[13:50:59] rgtk: has joined #ruby
[13:51:03] Xeago: has joined #ruby
[13:51:53] karapetyan: has joined #ruby
[13:52:06] dlitvak_: has joined #ruby
[13:52:20] mdw: has joined #ruby
[13:53:00] lucasb: has joined #ruby
[13:54:41] burgestrand: has joined #ruby
[13:55:10] aegis3121: has joined #ruby
[13:55:17] s2013: has joined #ruby
[13:55:22] zarubin: has joined #ruby
[13:55:53] shanemcd: has joined #ruby
[13:57:39] konsolebox: has joined #ruby
[13:58:09] lucasb: j416: you could play with something like 'h = Hash.new {|h,k| k }'. this returns the missing key
[13:58:40] j416: interesting idea
[13:58:47] oivoodoo: has joined #ruby
[13:58:53] j416: my hash is a params hash that I have no control of, though
[13:59:29] j416: I'd need to re-create that, which feels even more ugly than the above
[13:59:40] j416: I think I'll just check for the keys beforehand isntead
[14:01:21] navo: has joined #ruby
[14:02:40] synthroid: has joined #ruby
[14:03:03] ankhers: has joined #ruby
[14:03:30] Shidash: has joined #ruby
[14:03:39] skcin7: has joined #ruby
[14:03:54] burbus: has joined #ruby
[14:05:30] djellemah: j416: Hash#default_proc=
[14:05:49] j416: djellemah: yeah.. I don't want to modify a hash that I don't own either
[14:05:51] j416: thanks though
[14:11:37] ledestin: has joined #ruby
[14:13:04] cdg: has joined #ruby
[14:14:26] PedramT: has joined #ruby
[14:15:01] karapetyan: has joined #ruby
[14:16:29] aryaching: has joined #ruby
[14:17:00] grn: has joined #ruby
[14:17:20] ESpiney: has joined #ruby
[14:18:01] govg: has joined #ruby
[14:18:06] BTRE: has joined #ruby
[14:18:45] treehug88: has joined #ruby
[14:19:37] timanema: has joined #ruby
[14:20:01] krobzaur_: has joined #ruby
[14:20:53] oivoodoo: has joined #ruby
[14:21:53] gregf_: probably do an include? on hash.keys?
[14:22:30] gregf_: >> h = { one: 1 }; [ h.keys.include?:two ]
[14:22:32] ruby[bot]: gregf_: # => /tmp/execpad-c2cd169ff429/source-c2cd169ff429:2: syntax error, unexpected tSYMBEG, expecting ']' ...check link for more (https://eval.in/507569)
[14:22:41] gregf_: >> h = { one: 1 }; h.keys.include?:two
[14:22:43] ruby[bot]: gregf_: # => false (https://eval.in/507570)
[14:24:14] usershell: has joined #ruby
[14:24:19] bmalum: has joined #ruby
[14:24:24] diegoviola: has joined #ruby
[14:24:42] baweaver: has joined #ruby
[14:27:03] bronson: has joined #ruby
[14:27:26] kalopsian: has joined #ruby
[14:27:50] snguyen: has joined #ruby
[14:28:03] lucasb: I wanted to define a singleton method to closure over a local var in a block, like 'someblock { x = 42; def obj.foo; x; end }'
[14:28:17] lucasb: I guess this is not possible, or maybe I'm missing some obvious detail
[14:28:49] r4do: has joined #ruby
[14:29:06] aupadhye: has joined #ruby
[14:29:55] r4do: hi guys! trying to validate params with Grape::Validations::Validator :
[14:30:11] r4do: ?? ?? ?? ??params do
[14:30:11] r4do: ?? ?? ?? ?? ??requires :username, type: String
[14:30:11] r4do: ?? ?? ?? ?? ??requires :auth_name, type: String
[14:30:11] r4do: ?? ?? ?? ??end
[14:30:16] oivoodoo: has joined #ruby
[14:30:28] ruby[bot]: r4do: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[14:30:36] r4do: but if i not provide this params, there is no exception
[14:32:42] hxegon: has joined #ruby
[14:32:42] oivoodoo: has joined #ruby
[14:32:46] lyoshajapan: has joined #ruby
[14:32:58] shredding: has joined #ruby
[14:33:27] r4do: https://gist.github.com/r4do/a55bdd23750c3d280645
[14:33:32] hxegon: morning all
[14:35:14] Nahra```: has joined #ruby
[14:36:28] hnagamin: has joined #ruby
[14:36:42] djcp: has joined #ruby
[14:39:55] karmatr0n: has joined #ruby
[14:39:55] Scripore: has joined #ruby
[14:40:02] futilegames: has joined #ruby
[14:41:59] Puffball: has joined #ruby
[14:43:09] whippythellama: has joined #ruby
[14:43:25] zeknox: has joined #ruby
[14:43:54] zotherstupidguy: has joined #ruby
[14:44:02] Abrin: has joined #ruby
[14:44:51] karapetyan: has joined #ruby
[14:45:01] go|dfish: has joined #ruby
[14:45:30] malconis: has joined #ruby
[14:45:50] russt: has joined #ruby
[14:46:26] malconis: has joined #ruby
[14:47:39] brendan-: has joined #ruby
[14:48:54] TomPeed: has joined #ruby
[14:51:16] rippa: has joined #ruby
[14:52:52] gbgdev: has joined #ruby
[14:53:16] arup_r: has joined #ruby
[14:53:18] nertzy2: has joined #ruby
[14:54:07] Omilun1: has joined #ruby
[14:54:20] Omilun: hello . i'm using Ruby with rbenv . when i use compass on gulp it say an error : http://dpaste.com/1294EJH
[14:54:51] sftrabbit: has joined #ruby
[14:55:20] psf: has joined #ruby
[14:55:58] jlebrech: has joined #ruby
[14:56:34] floatingpoint: has joined #ruby
[14:57:48] Omilun: gem install compass
[14:57:52] groteworld: has joined #ruby
[14:57:55] Xeago: has joined #ruby
[14:58:12] oivoodoo: has joined #ruby
[14:58:24] jas02: has joined #ruby
[14:58:52] Omilun1: has joined #ruby
[14:59:45] stannard: has joined #ruby
[14:59:57] Frem: has joined #ruby
[15:00:42] Omilun1: has left #ruby: ()
[15:01:24] groteworld: has joined #ruby
[15:02:18] jcdesimp: has joined #ruby
[15:02:32] dwfait: has joined #ruby
[15:02:46] solars: has joined #ruby
[15:05:45] oivoodoo: has joined #ruby
[15:06:17] craigp: has joined #ruby
[15:06:28] freerobby: has joined #ruby
[15:06:31] burgestrand: has joined #ruby
[15:07:23] sulky: has joined #ruby
[15:07:37] stannard_: has joined #ruby
[15:08:10] dlitvak: has joined #ruby
[15:08:36] user: has joined #ruby
[15:08:37] babblebre: has joined #ruby
[15:08:38] skade: has joined #ruby
[15:08:41] kaleido: has joined #ruby
[15:08:59] sftrabbit: has joined #ruby
[15:11:53] newbie22: has joined #ruby
[15:12:05] decoponio: has joined #ruby
[15:12:29] mfb2: has joined #ruby
[15:12:32] s2013: has joined #ruby
[15:13:41] atomical: has joined #ruby
[15:14:49] navo: has joined #ruby
[15:15:42] jas02: has joined #ruby
[15:16:51] renancarvalho: has joined #ruby
[15:17:03] newdan: has joined #ruby
[15:18:37] shanemcd: has joined #ruby
[15:18:43] oivoodoo: has joined #ruby
[15:19:25] bmalum: has joined #ruby
[15:20:49] atomical_: has joined #ruby
[15:22:12] shellie: has joined #ruby
[15:23:25] saush: has joined #ruby
[15:24:35] snguyen: has joined #ruby
[15:25:14] saush: I created my own gem and I have a ruby file inside lib directory. Now I want to use it in my rails app. But I don't know how to access the methods from my gem in controller files?
[15:25:33] chouhoulis: has joined #ruby
[15:25:37] melter: has joined #ruby
[15:27:30] dhollinger: has joined #ruby
[15:27:31] Xeago: has joined #ruby
[15:27:35] shellie: has joined #ruby
[15:27:46] govg: has joined #ruby
[15:29:06] anothermoron: has joined #ruby
[15:29:23] mchu: has joined #ruby
[15:29:55] mfb2: has joined #ruby
[15:33:01] tjohnson: has joined #ruby
[15:34:55] truenito: has joined #ruby
[15:35:02] snguyen: has joined #ruby
[15:35:28] ponga: has joined #ruby
[15:35:39] oivoodoo: has joined #ruby
[15:36:05] ponga: as I can #rotate an Array, how can I achieve to rotate a hash in a likely way?
[15:36:47] saush: I created my own gem and I have a ruby file inside lib directory. Now I want to use it in my rails app. But I don't know how to access the methods from my gem in controller files?
[15:38:00] dlitvak_: has joined #ruby
[15:39:08] Kedare: Do you remember many years ago there was a small GUI in Tk to explore the "ri" content of the ruby setup, is it still there ?
[15:41:47] whiteline: has joined #ruby
[15:41:55] shellie: has joined #ruby
[15:42:18] aegis3121: has joined #ruby
[15:42:55] shanemcd: has joined #ruby
[15:43:50] JoyfulStudent: has joined #ruby
[15:44:25] blaxter: has joined #ruby
[15:44:31] hxegon_: has joined #ruby
[15:45:03] oivoodoo: has joined #ruby
[15:45:06] Pumukel: has joined #ruby
[15:45:57] renancarvalho1: has joined #ruby
[15:47:35] burgestrand: has joined #ruby
[15:49:01] lucasb: kedare: I found tkri in rubygems
[15:49:25] lucasb: unfortunately, it's last release is from 2009
[15:49:49] apeiros: ponga: you'd have to do it manually. delete the first key and reinsert it.
[15:50:14] Kedare: lucasb: Hmm oki, it won't probably work anymore so (I'll try), thank you :)
[15:50:29] apeiros: >> h = {a: 1, b: 2, c: 3}; k,v = *h.first; h.delete(k); h[k] = v; h
[15:50:30] ponga: apeiros: I solved it by 'hs = hs.to_a.rotate.to_h'
[15:50:31] ruby[bot]: apeiros: # => {:b=>2, :c=>3, :a=>1} (https://eval.in/507616)
[15:50:35] ponga: workaround
[15:50:40] apeiros: ponga: that's horribly inefficient :D
[15:50:57] ponga: apeiros: I know, I did this sort of rotate around benchmark myself before
[15:51:00] apeiros: but yeah, it'll work
[15:51:03] ponga: and it was horribly slower too
[15:51:09] ponga: but it looks easier on my eye
[15:51:12] hannelita: has joined #ruby
[15:51:16] dudedudeman: has joined #ruby
[15:51:42] apeiros: you can always implement it as Hash#rotate, even easier on your eyes.
[15:53:03] Kedare: lucasb: It starts but can't do anything more, to bad, maybe you know a good alternative ? (I know YARV for the gems and Dash/Zeal for stlib but I would like something where I could really explore and search in the whole RI/RDOC)
[15:53:30] ponga: btw if A && B should be A true and B true , right?
[15:53:39] Kedare: %s/yarv/yard :)
[15:54:27] lucasb: kedare: sorry, dunno any alternatives. I generate my rdoc HTML docs to view. I split the generation in core/ext/lib to be easier for me, but I think not everybody likes the darkfish output (me included :)
[15:54:38] ponga: damn it, should have used 'and'
[15:54:47] Kedare: darkfish ?
[15:54:58] lucasb: it's the standard rdoc html generator
[15:55:19] Kedare: Oh okay :)
[15:55:21] lucasb: kedare: ah, you could also try sdoc
[15:55:36] lucasb: sdoc generates html like the rails api
[15:55:53] djcp: has joined #ruby
[15:55:56] atomical: has joined #ruby
[15:57:10] jas02: has joined #ruby
[15:58:11] treaki_: has joined #ruby
[15:58:18] jas02_: has joined #ruby
[15:58:44] railsForDaiz: has joined #ruby
[16:00:11] pdoherty: has joined #ruby
[16:00:29] oivoodoo: has joined #ruby
[16:01:35] dudedudeman1: has joined #ruby
[16:01:36] groteworld: has joined #ruby
[16:01:37] tomchapin: has joined #ruby
[16:01:42] bmalum: has joined #ruby
[16:01:58] renancarvalho: has joined #ruby
[16:02:15] nettoweb: has joined #ruby
[16:02:29] ympeg_: has joined #ruby
[16:02:30] ympeg: has joined #ruby
[16:02:38] diegoviola: has joined #ruby
[16:03:03] crowell: has joined #ruby
[16:03:08] serard: Hello :) I have a db.prepare and execute problem with sqlite3, stupid binding problem : https://gist.github.com/stephaneerard/c5708c32b4b6b1260fad
[16:03:56] groteworld: has joined #ruby
[16:04:32] kies^: has joined #ruby
[16:05:07] rakm: has joined #ruby
[16:05:08] themsay2: has joined #ruby
[16:06:21] themsay2: has joined #ruby
[16:08:22] usershell: has joined #ruby
[16:08:34] dlitvak: has joined #ruby
[16:09:23] goodroot: has joined #ruby
[16:09:55] ZerGabriel: has joined #ruby
[16:12:15] Xeago: has joined #ruby
[16:12:47] psf: has left #ruby: (" ")
[16:12:53] x77686d: has joined #ruby
[16:12:58] dave23: has joined #ruby
[16:13:08] oivoodoo: has joined #ruby
[16:13:23] sucks: has joined #ruby
[16:13:41] FooMunki: has joined #ruby
[16:16:10] groteworld: has joined #ruby
[16:16:44] truenito: has joined #ruby
[16:17:08] underplank: has joined #ruby
[16:17:52] cschneid_: has joined #ruby
[16:19:06] psye: has joined #ruby
[16:20:12] themsay: has joined #ruby
[16:20:33] sftrabbit: has joined #ruby
[16:20:52] asccigcc: has joined #ruby
[16:21:20] zast: has joined #ruby
[16:21:50] renancarvalho: has left #ruby: ()
[16:22:30] davedev24: has joined #ruby
[16:24:05] yardenbar: has joined #ruby
[16:25:24] baweaver: has joined #ruby
[16:26:01] dlitvak: has joined #ruby
[16:26:08] lindistock: has joined #ruby
[16:27:16] serard: Anyone useng sqlite3??here ???:)
[16:28:54] bronson: has joined #ruby
[16:29:35] oivoodoo: has joined #ruby
[16:29:55] scottschecter: has joined #ruby
[16:29:56] bjensen82: has joined #ruby
[16:29:58] arup_r: has joined #ruby
[16:30:05] Azure: has joined #ruby
[16:30:31] soahccc: serard: very rarely and usually for little daemons or so
[16:30:36] antgel: has joined #ruby
[16:31:31] bjensen82: I have a start and end_date. I need to divide the interval in six equally sized intervals (potentially the last one being a bit bigger). How would you guys approach this?
[16:32:08] solars: has joined #ruby
[16:32:10] ascarter: has joined #ruby
[16:32:55] Xeago: has joined #ruby
[16:33:35] newdan: bjensen82: Count up the days in all months from start to end, divide by six and store as span, go [start_date, start_date + span], [start_date + span, start_date + span * 2], etc.
[16:34:35] mark1: has left #ruby: ("PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PART #zsh :PONG :sendak.freenode.net")
[16:34:40] sandstrom: has joined #ruby
[16:34:53] bjensen82: newdan: but that leaves you with end_date and start dates being equal start_date + span], [start_date + span
[16:34:57] serard: soahccc, I am in this case !??:)
[16:35:05] serard: I'm stupid with LIKE on db.prepare
[16:35:31] serard: and execute... Cant get it working
[16:35:37] newdan: bjensen82: I don't understand what you mean
[16:35:44] soahccc: serard: I used AR and their models :S
[16:36:23] bjensen82: newdan: the date pairs should be not intersect: it should be 2016/1/1 - 2016/1/15, 2016/1/16 - 2016/1/31 etc
[16:37:10] Xeago: has joined #ruby
[16:37:49] bjensen82: well intersect is the wrong word. more like overlap.
[16:38:52] dudedudeman: has joined #ruby
[16:39:01] soahccc: bjensen82: well if you have <= 6 days between those days you either take all there are or you have overlaps
[16:39:36] newdan: bjensen82: So just + 1 to the start_date of the next span?
[16:39:48] kaleido: is there a decent tacacs client gem? just needed for authentication.
[16:40:32] oivoodoo: has joined #ruby
[16:40:39] bjensen82: newdan: well then how do you make sure the duration is correct in each of them? the last one will be much larger because you reduced the size of the other 5
[16:41:03] govg: has joined #ruby
[16:42:11] IrishGringo: has joined #ruby
[16:43:07] tomchapin: has joined #ruby
[16:43:16] TomyLobo: has joined #ruby
[16:44:01] norc: has joined #ruby
[16:45:10] IrishGringo: has joined #ruby
[16:46:45] jbrhbr: has joined #ruby
[16:47:04] burgestrand: has joined #ruby
[16:47:21] newdan: bjensen82: Some small variant of that should work, or it should be easy to write a loop you're satisfied with. Unfortunately for me I'd probably have to doodle with a pen and paper for five minutes to come up with a perfect answer, and that's too much of a commitment for me right now
[16:47:26] wilbert: has joined #ruby
[16:48:02] newdan: [start, start + span], [start + span + 1, start + span + 1 + span] etc should work
[16:49:26] rehat: has joined #ruby
[16:50:59] rehat: There is a webpage that has a popup after submitting a form and then takes the user to another page. Is there a way with mechanize to know when the page has been redirected
[16:51:04] dionysus69: has joined #ruby
[16:51:26] rehat: its one of those pop ups that says don't reload or press back. Some old ass web page lol
[16:51:39] einarj: has joined #ruby
[16:52:06] shevy: will there be pink marque tags
[16:52:16] usershell: has joined #ruby
[16:52:36] rehat: haha not that old
[16:52:48] duracrisis: has joined #ruby
[16:54:15] arup_r: has joined #ruby
[16:54:36] skade: has joined #ruby
[16:54:52] Jardayn: has joined #ruby
[16:55:24] underplank: has joined #ruby
[16:56:30] zambini: has joined #ruby
[16:56:41] AlexJakeGreen: rehat: two ways, one is to handle redirects 301\302 manually, second one is to find specific string which exists only after redirect
[16:57:16] nerium: has joined #ruby
[16:57:17] amclain: has joined #ruby
[16:57:36] norc: >> (Date.new(2016,1,1)..Date.new(2001,1,7)).step(5) # newdan
[16:57:38] ruby[bot]: norc: # => uninitialized constant Date ...check link for more (https://eval.in/507628)
[16:57:39] norc: Just for reference
[16:57:45] norc: ACTION kicks ruby[bot] 
[16:57:50] norc: >> require 'date'; (Date.new(2016,1,1)..Date.new(2001,1,7)).step(5) # newdan
[16:57:52] ruby[bot]: norc: # => #<Enumerator: #<Date: 2016-01-01 ((2457389j,0s,0n),+0s,2299161j)>..#<Date: 2001-01-07 ((2451917j,0s, ...check link for more (https://eval.in/507629)
[16:58:09] sftrabbit: has joined #ruby
[16:58:16] moeabdol: has joined #ruby
[16:58:48] norc: When ever you have something you need split up in some way, chances are Ruby already has some elegant method for it.
[17:00:04] Scripore: has joined #ruby
[17:00:31] usershell: has joined #ruby
[17:03:00] jcdesimp: has joined #ruby
[17:05:36] [Butch]: has joined #ruby
[17:06:03] moeabdol: has joined #ruby
[17:06:18] nettoweb: has joined #ruby
[17:07:05] atomical_: has joined #ruby
[17:07:52] zambini: has joined #ruby
[17:08:12] sgambino: has joined #ruby
[17:08:30] Scripore: has joined #ruby
[17:09:35] ledestin: has joined #ruby
[17:10:29] Ebok: has joined #ruby
[17:16:20] rht: has joined #ruby
[17:16:31] tiagobarreto: has joined #ruby
[17:17:03] Bloomer: has joined #ruby
[17:17:27] renderful: has joined #ruby
[17:17:34] jas02: has joined #ruby
[17:17:52] lacuna: has joined #ruby
[17:17:52] lacuna: has joined #ruby
[17:19:01] renancarvalho: has joined #ruby
[17:19:09] renancarvalho: has left #ruby: ()
[17:20:56] PedramT: has joined #ruby
[17:21:46] rgtk: has joined #ruby
[17:22:29] d10n-work: has joined #ruby
[17:22:33] ramfjord: has joined #ruby
[17:23:12] wonk: has joined #ruby
[17:23:44] craigp: has joined #ruby
[17:23:47] Axsuul: has joined #ruby
[17:24:38] tomphp: has joined #ruby
[17:25:23] groteworld: has joined #ruby
[17:25:59] synthroid: has joined #ruby
[17:26:34] lurch_: has joined #ruby
[17:27:26] sftrabbit: has joined #ruby
[17:27:54] shredding: has joined #ruby
[17:28:25] wilbert: has joined #ruby
[17:29:29] sunya7a: Could someone have a look at this test on line 81 and tell me why it is failing. The error states that @wheel is nil. I don't understand why it's not seeing the instance variable that was created in the setup https://gist.github.com/anonymous/9435393b5b2e214d000c
[17:29:33] skade: has joined #ruby
[17:29:41] oivoodoo_: has joined #ruby
[17:31:36] tulak: has joined #ruby
[17:32:23] diegoviola: has joined #ruby
[17:33:00] vvalien: has joined #ruby
[17:34:24] yqt: has joined #ruby
[17:34:29] mdw: has joined #ruby
[17:36:04] kalopsian: has joined #ruby
[17:38:15] newbie22: has joined #ruby
[17:38:29] symm-: has joined #ruby
[17:39:12] chouhoulis: has joined #ruby
[17:41:18] chouhoulis: has joined #ruby
[17:41:22] Nahra: has joined #ruby
[17:41:24] colegatron: has joined #ruby
[17:44:00] shevy: sunya7a btw you can save with .rb end on gist then you get colour highlighting for free
[17:44:03] shevy: will be easier to spot errors
[17:44:24] shevy: I did it on https://gist.github.com/shevegen/567f61ff7e370bc988ee now so let's see
[17:44:57] shevy: hmm you did not mean line 81 right? https://gist.github.com/shevegen/567f61ff7e370bc988ee#file-foo-rb-L81
[17:44:57] atomical: has joined #ruby
[17:45:24] shevy: there can only be two logical ways
[17:45:31] shevy: (1) setup is not invokved
[17:45:48] shevy: (2) it is invoked but whatever it is in the assignment, returns nil which then gets assigned to @wheel
[17:45:59] craigp: has joined #ruby
[17:47:03] malconis: has joined #ruby
[17:47:53] finisherr: has joined #ruby
[17:49:49] AlexRussia: has joined #ruby
[17:50:08] lucasb: there are 2 classes named GearTest, so the second one is overwritting the setup method
[17:50:17] Scripore: has joined #ruby
[17:50:51] hannelita: has joined #ruby
[17:51:35] dlitvak: has joined #ruby
[17:52:01] lucasb: just changing the name of one of those classes makes the test pass
[17:52:17] baweaver: has joined #ruby
[17:52:23] nettoweb: has joined #ruby
[17:52:49] floatingpoint: has joined #ruby
[17:53:10] kristian_on_linu: has joined #ruby
[17:53:11] zotherstupidguy: has joined #ruby
[17:53:24] kristian_on_linu: again, building with jekyll and jekyll-scholar
[17:53:29] kristian_on_linu: E, [2016-01-25 18:50:34#3980] ERROR -- : Failed to parse BibTeX Name on value "$" ($end) ["(^start)"]
[17:53:36] kristian_on_linu: is the above rubyspeak?
[17:54:29] whiteline: has joined #ruby
[17:54:39] mostlybadfly: has joined #ruby
[17:55:24] h99h9h88: has joined #ruby
[17:55:33] hannelita: has joined #ruby
[17:57:22] shevy: kristian_on_linu very weird error, looks totally custom
[17:58:13] kristian_on_linu: I was thinking perhaps the 34#3980 was of significance
[17:59:02] shevy: that is a weird display
[17:59:16] shevy: 34 is seconds... what is 3980? milliseconds? line number?
[17:59:19] SCHAAP137: has joined #ruby
[17:59:27] kristian_on_linu: good questions :)
[17:59:53] kristian_on_linu: I'm thinking milliseconds as I don't have that much code
[18:00:01] PaulCapestany: has joined #ruby
[18:00:02] oivoodoo: has joined #ruby
[18:00:51] jbrhbr: has joined #ruby
[18:01:40] _djbkd: has joined #ruby
[18:02:19] whippythellama: has joined #ruby
[18:02:31] poguez_: has joined #ruby
[18:04:04] bithon: has joined #ruby
[18:04:44] govg: has joined #ruby
[18:04:57] h99h9h88: has joined #ruby
[18:05:18] devbug: has joined #ruby
[18:09:35] groteworld: has joined #ruby
[18:09:45] icedragon: Crude greetings aside, does anyone have a library for working with Date ranges sanely?
[18:10:14] icedragon: Something where I can do DateRange.new(a, b).each_month { |d| do_stuff_with_month_date }
[18:10:43] gregf: has joined #ruby
[18:10:56] fantazo: has joined #ruby
[18:11:11] sigurding: has joined #ruby
[18:11:34] fsapo: has joined #ruby
[18:12:53] dlitvak_: has joined #ruby
[18:13:50] burgestrand: has joined #ruby
[18:14:00] ympeg: has joined #ruby
[18:14:02] ympeg_: has joined #ruby
[18:16:47] Dimik: has joined #ruby
[18:17:07] rakm_: has joined #ruby
[18:18:42] shevy: apeiros had chronos or so, perhaps that fits
[18:19:31] guacamole: has joined #ruby
[18:19:57] burgestrand: has joined #ruby
[18:20:27] icedragon: shevy: I'll check it
[18:22:57] moeabdol: has joined #ruby
[18:23:00] h99h9h88: has joined #ruby
[18:23:46] mondok: has joined #ruby
[18:24:26] rakm: has joined #ruby
[18:24:53] kaizend: has joined #ruby
[18:25:44] kaizend: has left #ruby: ()
[18:26:17] arlek: has joined #ruby
[18:26:38] icedragon: shevy: o_o; this is overkill
[18:26:58] icedragon: and it doesn't fit the bill >:
[18:27:00] IrishGringo: has joined #ruby
[18:27:08] icedragon: Why are dates to hard to work with!
[18:28:40] codecop: has joined #ruby
[18:29:28] Eiam: has joined #ruby
[18:29:58] apeiros: IceDragon: start = Date.civil(???); stop = Date.civil(???); current = start; while current < stop; current << 1; do_stuff_with(current); end
[18:30:19] apeiros: not that hard. but you'll have to know how you want to deal with stuff like 2016-02-29 + 1 month
[18:30:20] bb010g: has joined #ruby
[18:30:30] apeiros: err, 2016-01-31 + 1 month :)
[18:30:40] icedragon: apeiros: round it back to the beginning_of_month
[18:30:45] icedragon: and then push it :P
[18:31:07] PedramT: has joined #ruby
[18:31:07] bronson: has joined #ruby
[18:31:20] apeiros: that makes little sense to me. but remember to check how Date#<< behaves in that regard and take proper provisions.
[18:31:29] icedragon: apeiros: Yeah, I resorted to a until loop, but it makes you cringe in ruby
[18:31:37] icedragon: where everything is a fancy smancy method
[18:32:19] djellemah: IceDragon: class Monther < Date; def succ; self >> 1 end end
[18:32:29] gruz0: has joined #ruby
[18:32:39] icedragon: djellemah: I saw that one on stack overflow :P
[18:32:40] kalopsian: has joined #ruby
[18:33:14] djellemah: I haven't seen it on stack overflow.
[18:33:20] djellemah: But I haven't looked.
[18:33:34] mchu: has joined #ruby
[18:33:53] icedragon: apeiros, djellemah: Thanks for the help
[18:34:00] icedragon: ACTION scurries off back to code land
[18:37:24] maikowblue: has joined #ruby
[18:37:58] maletor_: has joined #ruby
[18:41:21] skcin7: has joined #ruby
[18:42:23] dlitvak: has joined #ruby
[18:42:31] hightower4: has joined #ruby
[18:43:08] hightower4: Hey, when compiling Ruby, how do I specify extra gems that I want built/installed along with Ruby? I assume it has to be something with 'bundled gems'
[18:43:41] joonty: has joined #ruby
[18:44:17] spider-mario: has joined #ruby
[18:44:24] mchu: has joined #ruby
[18:44:34] fourq: has joined #ruby
[18:45:24] zambini: has joined #ruby
[18:46:06] Guest1054: has left #ruby: ()
[18:46:25] ajf-: has joined #ruby
[18:46:34] fourq: has joined #ruby
[18:48:23] ajf-: has joined #ruby
[18:48:38] usershell: has joined #ruby
[18:48:42] ajf-: has left #ruby: ()
[18:48:43] devbug: has joined #ruby
[18:48:56] thomas: has joined #ruby
[18:49:10] drbrain: hightower4: I think you can edit gems/bundled_gems
[18:51:09] fantazo: has joined #ruby
[18:52:27] user_: has joined #ruby
[18:53:02] baweaver: has joined #ruby
[18:53:21] firstdayonthejob: has joined #ruby
[18:53:39] wonk: has joined #ruby
[18:54:35] binaryplease: has joined #ruby
[18:54:50] speaking1ode: has joined #ruby
[18:55:09] juddey: has joined #ruby
[18:55:31] sigurding: has joined #ruby
[18:56:25] hannelita: has joined #ruby
[18:56:54] moeabdol: has joined #ruby
[18:57:23] dlitvak_: has joined #ruby
[18:58:16] fmcgeough: has joined #ruby
[18:58:16] victortyau: has joined #ruby
[18:59:34] kirillzh: has joined #ruby
[19:00:10] sftrabbit: has joined #ruby
[19:00:24] _djbkd: has joined #ruby
[19:00:40] baweaver: has joined #ruby
[19:00:44] aegis3121: has joined #ruby
[19:01:24] _djbkd: has joined #ruby
[19:01:57] _djbkd: has joined #ruby
[19:02:42] SenpaiSilver: has joined #ruby
[19:03:02] Jet4Fire: has joined #ruby
[19:03:42] burgestrand: has joined #ruby
[19:03:51] jcdesimp: has joined #ruby
[19:04:09] ramfjord_: has joined #ruby
[19:04:30] sunya7a: shevy: ty =)
[19:04:43] sunya7a: Could someone have a look at this test on line 81 and tell me why it is failing. The error states that @wheel is nil. I don't understand why it's not seeing the instance variable that was created in the setup https://gist.github.com/anonymous/5e3fe49c7a847540ac93
[19:04:49] agit0: has joined #ruby
[19:05:24] drbrain: sunya7a: add your output too?
[19:05:28] sunya7a: it passes when I use DiameterDouble.new instead of @wheel on lines 85
[19:05:40] sunya7a: drbrain: ok
[19:06:59] hightower4: drbrain, right, that's what I did but it had no effect. I ran make clean, repeated configure and re-ran make install, but only the default "default" and "bundled" gems were installed, not the ones I added
[19:07:49] kalopsian: has joined #ruby
[19:08:09] drbrain: hightower4: I see `make update-gems` and `make extract-gems` both reference the bundled_gems file
[19:08:25] Ilyes512: has joined #ruby
[19:08:27] sunya7a: With output: https://gist.github.com/anonymous/be022c47bec3174a9584
[19:08:32] bonhoeffer: has joined #ruby
[19:08:59] craigp: has joined #ruby
[19:11:50] baweaver: has joined #ruby
[19:11:56] drbrain: sunya7a: tricky, you have two `setup` methods for the same class
[19:11:57] drbrain: https://gist.github.com/anonymous/be022c47bec3174a9584#file-failing_test-rb-L75-L77
[19:12:03] drbrain: https://gist.github.com/anonymous/be022c47bec3174a9584#file-failing_test-rb-L93-L95
[19:12:09] zeroDivisible: has joined #ruby
[19:13:42] hightower4: drbrain, hm, maybe 'make clean' wasn't enough to trigger reinstall, ok, thanks for double checking
[19:13:45] sunya7a: drbrain: oh...i suppose so...although i wouldn't have thought of them as being "connected"?
[19:13:47] drbrain: hightower4: also, `make dist` (via tool/make-snapshot), so you might need to run one of those three to update things after editing the file
[19:13:55] atomical_: has joined #ruby
[19:13:56] hightower4: drbrain, right, ok thanks
[19:14:13] sunya7a: drbrain: so...renaming the first class might fix it? let me try
[19:14:24] drbrain: sunya7a: yes, that would fix it
[19:14:32] drbrain: sunya7a: you can see the error with `ruby -w failing_test.rb`
[19:14:33] sunya7a: drbrain: indeed
[19:14:52] teoric: has joined #ruby
[19:14:53] nettoweb: has joined #ruby
[19:15:44] ur5us: has joined #ruby
[19:15:56] kirillzh: has joined #ruby
[19:16:42] sunya7a: drbrain: thank you...didn't see that at all!
[19:16:51] drbrain: at first glance I didn't either
[19:16:58] ur5us_: has joined #ruby
[19:17:05] Pupp3tm4st3r: has joined #ruby
[19:17:09] drbrain: I figured it out by putting `p :woo` in the first setup, then noticing it didn't appear in the output
[19:17:11] sunya7a: drbrain: is that when you used -w?
[19:17:21] sunya7a: drbrain: ah i see
[19:17:41] _djbkd: has joined #ruby
[19:17:56] drbrain: debugging by puts???
[19:18:07] sunya7a: drbrain: so your thought process was to see if setup was called at all?
[19:18:27] _djbkd: has joined #ruby
[19:18:50] sunya7a: drbrain: okay...i'll keep that in mind...thanks again...hope you collect royalties on that
[19:19:06] drbrain: because I knew that minitest always called setup, it must call setup
[19:19:08] Ebok: has joined #ruby
[19:19:17] drbrain: but I decided to check to make sure it did what I expected
[19:19:39] sunya7a: drbrain: it's hard for me to do that...double check things that I know to be true....or assumed to be true
[19:19:50] sunya7a: drbrain: tough habit to break
[19:19:52] drbrain: when it didn't I noticed you reopened the GearTest and added a new setup method
[19:20:24] jtoy: is there a better to have all hashes work with strings and symbols instead of litering my code with json = json.with_indifferent_access
[19:20:27] TomPeed: has joined #ruby
[19:20:41] jtoy: i hate seeing that code everywhere
[19:20:42] zambini1: has joined #ruby
[19:20:53] sunya7a: drbrain: ahh...okay...that's what is happening...i'm not too familiar with those techniques....that is referred to as "monkey patching"?
[19:20:57] drbrain: sunya7a: you have to be careful with checking things are broken, though: http://blog.codinghorror.com/the-first-rule-of-programming-its-always-your-fault/
[19:21:02] drbrain: sunya7a: in this case, no
[19:21:14] drbrain: since you wrote GearTest you're not "monkey patching" it
[19:21:24] sunya7a: drbrain: fair enough
[19:21:32] zambini: has joined #ruby
[19:21:35] drbrain: monkey patching typically refers to opening classes you didn't write to add features
[19:21:36] sunya7a: drbrain: but that is how you would monkey patch core classes
[19:21:49] pdoherty: has joined #ruby
[19:21:52] sunya7a: okay...i do know something
[19:22:04] sunya7a: i'll go and read that article =)
[19:22:21] _djbkd: has joined #ruby
[19:22:31] drbrain: substitute "select isn't broken" for "minitest isn't broken"
[19:22:43] karapetyan: has joined #ruby
[19:22:52] newbie22: has joined #ruby
[19:23:31] dudedudeman: has joined #ruby
[19:24:29] Axsuul: has joined #ruby
[19:24:46] cactuzzz: has joined #ruby
[19:25:10] Macaveli: has joined #ruby
[19:25:50] burgestrand: has joined #ruby
[19:25:51] dwfait: has joined #ruby
[19:26:10] DexterLB: has joined #ruby
[19:26:23] ympeg__: has joined #ruby
[19:26:31] ympeg___: has joined #ruby
[19:26:42] h99h9h88: has joined #ruby
[19:28:23] ta: has joined #ruby
[19:28:44] sunya7a: drbrain: "select is broken" =)
[19:30:14] mdw: has joined #ruby
[19:31:08] baweaver: has joined #ruby
[19:32:18] Enduro: has joined #ruby
[19:32:31] mjuszczak: has joined #ruby
[19:32:57] tomphp: has joined #ruby
[19:33:22] guacamole: has joined #ruby
[19:33:25] Enduro: hi, why no one writes?
[19:33:29] baweaver: has joined #ruby
[19:33:41] drbrain: hi, we didn't have anything to say
[19:33:56] Enduro: i see 1k people
[19:33:59] drbrain: jtoy: no, just pick one and stick with it
[19:34:06] tvw: has joined #ruby
[19:34:16] Enduro: y mean? sry i first time irc
[19:35:23] shevy: Enduro ask a ruby question and they shall say something!
[19:35:31] drbrain: oh, lots of people idle in here and don't say much
[19:35:46] Enduro: are you all over the world?
[19:36:08] burgestrand: has joined #ruby
[19:36:33] guacamole: has joined #ruby
[19:36:36] Enduro: i'm from Poland by the way, Krak?w
[19:36:52] tomphp: has joined #ruby
[19:36:58] dudedudeman: i???m in here, and i sometimes say something
[19:37:02] dudedudeman: see? something
[19:37:40] Enduro: i think most people use facebook groups an other things now
[19:37:58] dudedudeman: man, this place used to be pretty hot back in august of last year
[19:38:10] Enduro: why in august?
[19:38:24] dudedudeman: that was about the last time i was heavily in here, so it???s my last point of reference
[19:39:03] dudedudeman: i switched jobs back in august, and haven???t been able to get IRC at the new place until just recently.
[19:39:08] burgestrand: has joined #ruby
[19:39:18] Enduro: do you know any servers / groups focused on Ruby and Rails, but more active?
[19:40:08] guacamole: has joined #ruby
[19:40:57] C0L0R: has joined #ruby
[19:41:39] Enduro: are you beginners or pro? personally I'm now starting
[19:41:58] rgtk: Enduro: If you're interested in mastering Ruby you shall live in solitude.
[19:42:03] tomphp: has joined #ruby
[19:42:24] Enduro: i feel good when I'm alone:)
[19:42:34] Enduro: i have to pick one linux distro
[19:42:37] arup_r: has joined #ruby
[19:42:49] dlitvak: has joined #ruby
[19:43:04] dudedudeman: iif this chat is like i remember it, you basically need to ask a question and then wait for an answer
[19:43:25] Enduro: heard that i will encounter problems if sticking to windows
[19:43:30] dudedudeman: specifically regarding ruby.
[19:43:53] dudedudeman: if you???re wanting to play with ruby on windows, a virtual machine would probably be your best bet
[19:44:01] skade: has joined #ruby
[19:44:13] Enduro: oracle ok?
[19:44:14] rgtk: Yeah, the most important problem is privary in Windows.
[19:44:29] dudedudeman: shiver me timbers, privary!
[19:44:39] dudedudeman: and yeah, oracles virtual box is great
[19:44:51] Enduro: And what Linux distro, fedora?
[19:44:52] tomchapin: has joined #ruby
[19:45:01] dudedudeman: that???s entirely up to you :)
[19:45:08] dudedudeman: do you have any linux experience at all?
[19:45:16] Enduro: not at all:(
[19:45:59] dudedudeman: linux mint might be a good place to start, though i haven???t played with getting that distro on virtual box
[19:46:22] Enduro: i used few minutes ubuntu, but i dont like it at first glance
[19:46:55] Enduro: i want distro that allow to install easily almost all gems, so what do you prefer?
[19:47:00] dudedudeman: it sounds like the bigger issue for you is going to be deciding which distro to use. #linux might be a good place to ask about that
[19:47:08] baweaver: has joined #ruby
[19:47:27] dudedudeman: i use centos for work, amazon linux as well, and OSX(which isn???t linux but shares some of teh same blood)
[19:47:38] [Butch]_: has joined #ruby
[19:47:46] shadoi: has joined #ruby
[19:50:19] speaking1ode: has joined #ruby
[19:50:35] Enduro: this lfs looks interesting but for now i will pick sth standard:)
[19:52:24] tomphp: has joined #ruby
[19:52:35] platzhirsch: has joined #ruby
[19:52:53] mchu: has joined #ruby
[19:52:59] burgestrand: has joined #ruby
[19:55:36] powermac: has joined #ruby
[19:55:41] tape88: has joined #ruby
[19:56:22] TomPeed: has joined #ruby
[19:57:06] hannelita: has joined #ruby
[19:58:33] guacamole: has joined #ruby
[19:58:45] yardenbar: has joined #ruby
[19:59:04] skade: has joined #ruby
[19:59:17] Emmanuel_Chanel: has joined #ruby
[19:59:44] user_: has joined #ruby
[19:59:45] Emmanuel_Chanel: has joined #ruby
[20:00:10] tomphp: has joined #ruby
[20:03:42] sgambino: has joined #ruby
[20:03:48] zarubin_: has joined #ruby
[20:05:39] podman: has joined #ruby
[20:06:03] otherj: has joined #ruby
[20:06:03] e4xit: has joined #ruby
[20:06:11] FernandoBasso: has joined #ruby
[20:07:26] zarubin: has joined #ruby
[20:07:59] devbug: has joined #ruby
[20:10:18] shevy: go rebellion!
[20:13:24] harly: has joined #ruby
[20:13:45] moei: has joined #ruby
[20:15:57] Dimik: has joined #ruby
[20:16:05] hxegon_: adaedra slow down mr. ganyu plus lienucks
[20:16:09] yfeldblum: has joined #ruby
[20:16:12] dudedudeman: i???ll rebel you @shevy!!
[20:16:20] juddey: has joined #ruby
[20:16:29] adaedra: hxegon_: gotta go fast!
[20:16:49] hxegon_: freer freer, freerfreer stallman X
[20:17:24] Papierkorb: free as in stallmans free beer
[20:17:41] skade: has joined #ruby
[20:18:24] hxegon_: anyone know of a good example repo using optparse for cli?
[20:19:40] adaedra: Can ask GitHub: https://github.com/search?l=ruby&q=OptionParser&ref=searchresults&type=Code&utf8=%E2%9C%93
[20:21:55] newdan: hxegon_: Django prior to 1.8 use optparse. Any reason you don't wanna use argparse?
[20:22:16] newdan: hxegon_: ...whoops wrong channel, disregard that answer
[20:22:47] adaedra: ACTION throws snakes out
[20:23:08] marienz: has joined #ruby
[20:23:37] [Butch]: has joined #ruby
[20:28:15] skade: has joined #ruby
[20:29:48] maletor_: How do I do an intersection but compare an Object that responds to id and another Object that responds to [:id]?
[20:30:14] Emmanuel_Chanel: has joined #ruby
[20:30:26] maletor_: i.e. [{ id: 4}] & [Object#id => 4]
[20:30:31] symm-: has joined #ruby
[20:30:40] joonty: has joined #ruby
[20:30:43] Emmanuel_Chanel: has joined #ruby
[20:30:58] uris: has joined #ruby
[20:31:20] ss_much: has joined #ruby
[20:31:44] newdan: maletor_: You want an intersection on two objects? I don't fully understand the question
[20:31:51] icedragon: maletor_: normalize your data first
[20:32:11] maletor_: IceDragon: care to give an example? or elaborate?
[20:32:32] icedragon: If you have multiple objects, some that need to respond_to? :[] and others that respond to id
[20:32:40] icedragon: make all of them respond to .id or :[]
[20:32:55] icedragon: that way you don't have to make a distinction
[20:33:29] bronson: has joined #ruby
[20:33:42] icedragon: Otherwise, you'll end up with some fugly code like this: (a.respond_to?(:[]) ? a[:id] : a.id) & (b.respond_to?(:[]) ? b[:id] : b.id)
[20:34:12] sandstrom: has joined #ruby
[20:34:13] icedragon: OR (a.try(:id) || a.id) & (b.try(:id) || b.id)
[20:34:23] maletor_: that won't work will it?
[20:34:23] icedragon: what that last one
[20:34:33] icedragon: shevy's reaction says it all
[20:34:42] B1n4r10: has joined #ruby
[20:35:09] davedev24: has joined #ruby
[20:35:21] maletor_: & uses eql? rightr
[20:35:38] momomomomo: has joined #ruby
[20:35:50] icedragon: & is binary AND if you do it with an Integer
[20:35:50] karmatr0n: has joined #ruby
[20:36:58] icedragon: maletor_: http://ruby-doc.org/core-2.3.0/Fixnum.html#method-i-26
[20:37:34] momomomomo_: has joined #ruby
[20:37:55] maletor_: ya, i'm gonna create a private NormalizedFriend class that redefines eql? and intersect those two. then i will have to map the results to normalized_friends.map(&:friend)
[20:38:25] maletor_: or just build into normalized friend the specific methods i need from fried
[20:39:04] sgambino: has joined #ruby
[20:39:11] icedragon: maletor_: What objects are you exactly working with? Hashes and ActiveRecords/ActiveModel/SomeORMModel?
[20:39:30] bithon: has joined #ruby
[20:39:49] maletor_: precisely. the result will only ever be objs of the latter kind though. so that will come first in the intersection ARmodel & Hash
[20:40:05] Emmanuel_Chanel: has joined #ruby
[20:40:06] Cohedrin: has joined #ruby
[20:40:33] maletor_: (a.id) & (b[:id]) would that actually work?
[20:40:46] Emmanuel_Chanel: has joined #ruby
[20:40:50] maletor_: that would return me ids though. which isn't what iw ant
[20:41:29] tulak: has joined #ruby
[20:42:45] lucasb: has joined #ruby
[20:43:31] icedragon: maletor_: just use == if you want to check equality
[20:43:39] icedragon: a.id == b[:id]
[20:43:52] theRealAlexz: has joined #ruby
[20:43:53] uris: has joined #ruby
[20:44:00] renderful: has joined #ruby
[20:44:01] e4xit: has joined #ruby
[20:44:30] maletor_: ruby docs says & uses eql not ==
[20:45:35] tulak_: has joined #ruby
[20:47:08] icedragon: >> [3 & 1, 3.eql?(1)]
[20:47:09] ruby[bot]: IceDragon: # => [1, false] (https://eval.in/507736)
[20:47:17] icedragon: maletor_: ^
[20:47:18] underplank: has joined #ruby
[20:47:21] kristian_on_linu: has joined #ruby
[20:47:22] codefo: has joined #ruby
[20:47:39] kristian_on_linu: https://github.com/inukshuk/jekyll-scholar/issues/78#issuecomment-70652758
[20:47:49] kristian_on_linu: can anybody grok the syntax here?
[20:47:49] nertzy2: has joined #ruby
[20:48:27] shadowfirebird: has joined #ruby
[20:48:47] newdan: kristian_on_linu: What do you mean? Looks like an array of symbols
[20:49:06] maletor_: not sure what that proves
[20:49:08] kristian_on_linu: but what should I write in the configuration file?
[20:49:15] newdan: I am insteresting this issue: https://code.djangoproject.com/ticket/26124#no1 Can you any suggestion to me
[20:49:16] maletor_: you have an array, 3 & 1 and false
[20:49:19] kristian_on_linu: bibtex_skip_fields: ['abstract', 'month_numeric','url']
[20:49:20] newdan: Whoops wrong button
[20:49:37] newdan: kristian_on_linu: Look here https://github.com/inukshuk/jekyll-scholar/commit/89f21399e70721bdf1333677044d4b60193a2340
[20:49:55] newdan: kristian_on_linu: Instead of strings, use symbols. [:abstract, :month_numeric, :url]
[20:50:33] newdan: The change in lib/jekyll/scholar/defaults.rb looks like the type of format you want to use
[20:53:11] icedragon: maletor_: What I'm saying is, & is a Bitwise operator, #eql?, #==, and #equal? are all equality checks with their minor variations
[20:53:36] icedragon: maletor_: You're doing a bitwise operation on ids which I assume are Integers
[20:53:48] maletor_: definitely not doing bitwise, sorry that's not clear
[20:53:48] baweaver: has joined #ruby
[20:53:50] kristian_on_linu: I think you are correct, newdan
[20:53:56] kristian_on_linu: but where would I put that file?
[20:54:42] lucasb: I think he means the array/set intersetion (&), not bitwise operator
[20:54:44] icedragon: maletor_: Then you should be using the equality methods, I'm not sure what you're trying to accomplish which is why I've only been giving vague answers
[20:54:59] shevy: IceDragon are you still writing on that game?
[20:55:17] icedragon: shevy: Nah, I got a job at a telecom company and never looked back
[20:55:17] maletor_: i need to intersect Object A and Object B on two different methods call them A#foo B#bar.
[20:55:29] icedragon: shevy: the "real life" got me
[20:55:34] lucasb: kristian_on_linu: nop, I meant maletor_ :)
[20:55:53] maletor_: intersection is much faster than .each and .each
[20:55:57] newdan: kristian_on_linu: I am not too familiar with Jekyll. There's no configuration .rb file?
[20:56:11] theRealAlexz: has joined #ruby
[20:56:15] newdan: kristian_on_linu: Why not ask #jekyll?
[20:56:15] maletor_: So i have a private class NormalizedObject that implements .eql? and things are going well
[20:56:16] icedragon: >> [1, 2, 3, 4] & [3, 2]
[20:56:17] ruby[bot]: IceDragon: # => [2, 3] (https://eval.in/507737)
[20:57:13] jas02: has joined #ruby
[20:57:33] lemur: has joined #ruby
[20:57:39] kristian_on_linu: newdan: this might be better suited for #jekyll, I have a hard time telling when it's that or #ruby sometimes
[20:57:51] hannelita: has joined #ruby
[20:58:28] jaequery: has joined #ruby
[20:59:01] _djbkd: has joined #ruby
[20:59:28] cdg: has joined #ruby
[20:59:38] h99h9h88: has joined #ruby
[20:59:51] zerowaitstate: has joined #ruby
[21:00:02] jaequery: has joined #ruby
[21:00:03] countryHick: has joined #ruby
[21:00:20] skcin7_: has joined #ruby
[21:02:41] shadowfirebird: Has anyone got any good ideas for working with locally stored gems, ie, not hosted on rubygems? Best I can manage is to put a `git: <url>` line in Gemfile -- bundler honours that but gem doesn't which is confusing...
[21:03:13] shadowfirebird: gem list -> gem not there; bundle exec gem list -> gem there.
[21:03:46] icedragon: shadowfirebird: Use path: 'path/to/gem'
[21:04:26] shadowfirebird: Again, don't think gem understands that, although bundler does?
[21:04:38] jcdesimp: has joined #ruby
[21:04:50] icedragon: Yeah that's a bundler thing
[21:05:00] toretore: has joined #ruby
[21:05:28] icedragon: You'll have to ask the `gem` experts
[21:05:35] cpup: has joined #ruby
[21:05:44] shadowfirebird: This is for work and we don't want to spin up a gem server for just a couple of gems ...
[21:05:57] wonk: has joined #ruby
[21:06:38] shadowfirebird: I *love* Ruby ... but, eurgh, deployment.
[21:07:47] icedragon: shadowfirebird: Grab bundler, make a Gemfile, throw your deps into a git repository somewhere, ..., PROFIT?
[21:08:04] icedragon: I had to do something similar
[21:08:34] aegis3121: has joined #ruby
[21:09:50] h99h9h88: has joined #ruby
[21:11:16] shadowfirebird: IceDragon: deps in a git repo, nobody can work out why program doesn't work .... profit???
[21:11:53] icedragon: usually bundler will complain about missing deps on startup though
[21:11:59] icedragon: so that's a thing
[21:12:15] [Butch]_: has joined #ruby
[21:12:51] icedragon: shadowfirebird: Push comes to shove, pack the gems and the application into a zip and deploy that, ASSUMING there is nothing in it that needs to be "built"
[21:14:05] ruby[bot]: -bb Protti!*@*$#ruby-banned *!*@2.237.171.7$#ruby-banned
[21:14:06] shadowfirebird: IceDragon: yeah. My other option is to have a vendor subdir and make it a subrepo. But nested repositories have their own problems.
[21:14:38] icedragon: git clone repo "repo_url" --recursive
[21:14:38] h99h9h88: has joined #ruby
[21:14:44] icedragon: ignore that 'repo'
[21:14:45] mdw: has joined #ruby
[21:14:48] ferr: has joined #ruby
[21:15:55] icedragon: shadowfirebird: Are you deploying a web app?
[21:16:23] tubbo: shadowfirebird: git dude
[21:16:49] tubbo: shadowfirebird: also it's really not that hard to set up a gem server. geminabox makes it really simple.
[21:17:02] tubbo: any ruby company i ever worked for worth their shit had a private gem server.
[21:17:13] tubbo: there are even companies that run your gem server for you
[21:17:37] shadowfirebird: IceDragon: sometimes... not so bad then because we've got to build to jRuby. It's when I'm building something to run on the command line that it's a problem
[21:17:50] codefo: has joined #ruby
[21:18:04] icedragon: ACTION cringes
[21:18:08] shadowfirebird: tubbo: interesting. Shame we're not. End user. and the Ruby guys are just me and someone else
[21:18:16] icedragon: ACTION remembers trying to get dawn deployed...
[21:18:26] jas02: has joined #ruby
[21:19:30] shadowfirebird: Sinatra deployment is pretty straight forward, we use Warbler -> Tomcat. No problems
[21:20:41] pdoherty: has joined #ruby
[21:20:41] shadowfirebird: Talking about it, I think I've just decided to put up a geminabox server on my development box. I haven't liked to before, because I think it's the wrong place for one. But.
[21:20:44] xnp70: has joined #ruby
[21:21:00] xnp70: I am trying to use an app that has a Gemfile.in instead of Gemfile
[21:21:07] xnp70: how's that supposed to be used ?
[21:21:32] icedragon: xnp70: Rename it?
[21:22:19] icedragon: xnp70: I think bundler had something for running against a specified Gemfile
[21:23:04] shadowfirebird: bundle install --gemfile=gemfile.in
[21:23:40] shadowfirebird: Assuming that it looks like a gemfile.
[21:23:43] jcdesimp: has joined #ruby
[21:23:48] newdan: Why bother with the .in extension?
[21:24:01] icedragon: newdan: It probably needed some preprocessing or something
[21:24:10] devbug: has joined #ruby
[21:24:27] xnp70: trying to use foreman
[21:25:25] atomical: has joined #ruby
[21:25:51] pdoherty: has joined #ruby
[21:27:05] ur5us: has joined #ruby
[21:28:33] kristian_on_linu: ACTION ended up filing an issue 
[21:28:37] kristian_on_linu: thanks, everyone
[21:31:24] joonty: has joined #ruby
[21:32:45] Scripore: has joined #ruby
[21:33:24] kobain: has joined #ruby
[21:33:28] chris2: has joined #ruby
[21:33:39] sigurding: has joined #ruby
[21:35:53] nertzy2: has joined #ruby
[21:38:25] Xiti: has joined #ruby
[21:38:36] karapetyan: has joined #ruby
[21:38:39] user083: has joined #ruby
[21:38:40] ico: has joined #ruby
[21:38:45] kirillzh: has joined #ruby
[21:43:04] pdoherty: has joined #ruby
[21:44:16] musicnode: has joined #ruby
[21:47:03] dudedudeman: has joined #ruby
[21:47:08] AlexJakeGreen: has joined #ruby
[21:48:26] Axsuul: has joined #ruby
[21:48:44] dopie: has joined #ruby
[21:49:27] tomphp: has joined #ruby
[21:52:56] tulak: has joined #ruby
[21:54:53] barajasfab: has joined #ruby
[21:57:22] tomphp: has joined #ruby
[21:57:43] davedev24: has joined #ruby
[21:58:20] wanderer: has joined #ruby
[21:58:39] hannelita: has joined #ruby
[21:58:41] oivoodoo: has joined #ruby
[21:58:49] AlexJakeGreen: has joined #ruby
[21:59:20] uber: has joined #ruby
[21:59:31] tulak_: has joined #ruby
[22:01:43] mjuszczak: has joined #ruby
[22:02:11] skcin7: has joined #ruby
[22:04:34] mchu: has joined #ruby
[22:05:49] momomomomo: has joined #ruby
[22:06:52] barajasfab: has joined #ruby
[22:06:56] kobain: has joined #ruby
[22:07:33] nertzy2: has joined #ruby
[22:07:43] dionysus69: has joined #ruby
[22:10:48] Azulinho: has joined #ruby
[22:11:29] Yzguy: has joined #ruby
[22:11:45] karapetyan: has joined #ruby
[22:12:34] diegoviola: has joined #ruby
[22:13:13] asccigcc: has joined #ruby
[22:15:30] h99h9h88: has joined #ruby
[22:17:18] davedev24: has joined #ruby
[22:18:30] zambini: has joined #ruby
[22:19:01] tvw: has joined #ruby
[22:19:17] benoror: has joined #ruby
[22:21:22] TomPeed: has joined #ruby
[22:21:33] baweaver: has joined #ruby
[22:23:03] binaryplease: hello how/with what can I create a small window like dmenu ? I want to write an application launcher
[22:23:38] v0n: binaryplease: pipe whatever you need in dmenu (not dmenu_run) directly :-)
[22:24:10] blackgoat: has joined #ruby
[22:25:44] binaryplease: v0n: Yes but I want to have bang syntax. Like "!man ifconfig" would open the man page for ifconfig
[22:27:20] ebbflowgo: has joined #ruby
[22:27:55] p7r: has joined #ruby
[22:28:00] v0n: binaryplease: echo -e "ls\ncp\nifconfig" | /usr/bin/dmenu | xargs man
[22:28:09] skofo: has joined #ruby
[22:28:11] dlitvak: has joined #ruby
[22:28:13] mjuszczak: has joined #ruby
[22:28:23] codefo: has joined #ruby
[22:28:39] v0n: binaryplease: change "man" by something like "gnome-terminal -e ..." if you want a window, you get the idea
[22:28:57] mjuszczak: has joined #ruby
[22:29:09] burgestrand: has joined #ruby
[22:29:38] dwfait: has joined #ruby
[22:29:40] davedev24: has joined #ruby
[22:30:13] shiver_: has joined #ruby
[22:30:55] ferr: has joined #ruby
[22:31:51] yfeldblum: has joined #ruby
[22:32:08] atomical_: has joined #ruby
[22:32:22] romain_t: has joined #ruby
[22:33:18] yfeldblum: has joined #ruby
[22:33:27] C0L0R: has joined #ruby
[22:35:25] romain_t: has joined #ruby
[22:35:29] bronson: has joined #ruby
[22:35:31] ico: has joined #ruby
[22:36:04] oivoodoo: has joined #ruby
[22:36:50] workmad3: has joined #ruby
[22:36:59] binaryplease: v0n: I think I explained that badly, I need dmenu to works as normal + other functions. Example: Open Demnu, enter "fir" <enter>, firefox opens. or: Open dmenu, enter "!man<space>", dmenu now no longer shows entrys from path but all man pages, enter some characters and <enter> opens the man page.
[22:37:42] binaryplease: v0n: kind of rofi https://davedavenport.github.io/rofi/ but without the need to switch the modes
[22:37:46] karapetyan: has joined #ruby
[22:38:41] ellisTAA: has joined #ruby
[22:40:10] ellisTAA: these 3 specs are saying they don???t know what my_analyzer is but i thought the before method on line 3 made my_analyzer accessible to all the specs inside the describe block ??? https://gist.github.com/ellismarte/dcd7b814ef99e1e1e1db#file-analyzer_spec-rb-L7-L17
[22:40:26] Pande: has joined #ruby
[22:42:38] lucasb: shouldn't they be @my_analyzer ?
[22:43:37] zenlot1: has joined #ruby
[22:43:46] v0n: binaryplease: then you want to write a complex script that parses the stdout of dmenu and executes your custom actions (eventually pipe a content back into dmenu) or exec "${SHELL:-"/bin/sh"} &" (which is the default)
[22:44:13] felltir: has joined #ruby
[22:45:03] Trynemjoel: has joined #ruby
[22:45:04] v0n: dmenu is just a graphical selector. You can pipe whatever you want (the default is `dmenu_path`), then parse, pipe, parse ... eventually exec the end result
[22:45:51] ellisTAA: lucasb: that worked
[22:45:54] nertzy2: has joined #ruby
[22:47:16] solocshaw: has joined #ruby
[22:47:42] stannard: has joined #ruby
[22:49:36] hxegon: has joined #ruby
[22:49:42] devbug: has joined #ruby
[22:49:52] Ox0dea: binaryplease: 0100111101101000011000010110100100100001
[22:50:22] dlitvak: has joined #ruby
[22:50:29] shiver: has joined #ruby
[22:50:29] shiver: has joined #ruby
[22:51:20] Ox0dea: norc: The madness to which I was referring a while back: https://git.io/vzPh2
[22:51:25] xpt: binaryplease: you would like to run dmenu with something like this: { dmenu_path; for i in /usr/share/man/man1/* ; do i=${i##*/}; printf '!man %s'${i%%.*}'\n'; done; } | dmenu "$@"
[22:51:43] bithon: has joined #ruby
[22:51:50] Azure: has joined #ruby
[22:51:59] xpt: binaryplease: and pipe it to a script that will check if 1st argument is !man or not
[22:52:01] baweaver: has joined #ruby
[22:54:49] CloCkWeRX: has joined #ruby
[22:55:55] atomical: has joined #ruby
[22:59:24] hannelita: has joined #ruby
[23:00:40] musicnode: has joined #ruby
[23:00:48] hobodave: has joined #ruby
[23:00:57] baweaver: has joined #ruby
[23:02:56] dlitvak: has joined #ruby
[23:03:14] binaryplease: v0n: I guess that's an option. Drawbacks are that it always shows all options and that it shows "!man" infront of the options. Anyway, is there a ruby lib that can create this kind of windows?
[23:03:34] chrisface: has joined #ruby
[23:04:29] baweaver: has joined #ruby
[23:05:04] rehat_: has joined #ruby
[23:05:41] rehat_: with ruby selenium-webdriver, is there a way to move a element to the top of the page
[23:06:43] volty: has joined #ruby
[23:07:07] mjuszczak: has joined #ruby
[23:09:48] Emmanuel_Chanel: has joined #ruby
[23:10:39] Yzguy: has joined #ruby
[23:12:59] bithon: has joined #ruby
[23:14:06] mondok: rehat_, do you want rebuild dom?
[23:14:17] skcin7: has joined #ruby
[23:14:21] joneshf-laptop: has joined #ruby
[23:14:59] rehat_: for some reason I am getting this error " Element is not clickable at point " but I think its because its off outside of the view
[23:16:38] baweaver: has joined #ruby
[23:16:40] moeabdol1: has joined #ruby
[23:17:53] phutchins: has joined #ruby
[23:19:35] phutchins: has joined #ruby
[23:19:36] symm-: has joined #ruby
[23:20:48] platzhirsch: has joined #ruby
[23:21:26] ympeg: has joined #ruby
[23:21:28] ympeg_: has joined #ruby
[23:23:37] workmad3: has joined #ruby
[23:24:59] ico: has joined #ruby
[23:25:19] moeabdol: has joined #ruby
[23:27:00] framling: has joined #ruby
[23:27:04] Pathfinder_: has joined #ruby
[23:29:56] dlitvak_: has joined #ruby
[23:30:24] k13nox: has joined #ruby
[23:30:39] dwfait: has joined #ruby
[23:31:01] mfb2: has joined #ruby
[23:34:39] ebbflowgo: has joined #ruby
[23:34:41] Darmani: has joined #ruby
[23:34:54] Darmani: Hey kids<3
[23:36:17] moss: has joined #ruby
[23:37:27] Guest52091: has joined #ruby
[23:37:40] mfb2: has joined #ruby
[23:37:44] x77686d: has joined #ruby
[23:38:04] workmad3: has joined #ruby
[23:38:19] baweaver: has joined #ruby
[23:39:08] jzigmund: has joined #ruby
[23:40:57] matp: has joined #ruby
[23:42:02] houhoulis: has joined #ruby
[23:42:06] colegatron: has joined #ruby
[23:43:16] anothermoron: has joined #ruby
[23:45:37] ebbflowgo: has joined #ruby
[23:47:48] dlitvak: has joined #ruby
[23:48:02] newdan: has joined #ruby
[23:48:11] mrsolow: has joined #ruby
[23:51:57] Ebok: has joined #ruby
[23:53:13] usershell: has joined #ruby
[23:54:39] hlegius: has joined #ruby
[23:54:48] Ox0dea: logs $ ag --nofi 'hey kids' | curl -F 'f:1=<-' ix.io
[23:54:51] Ox0dea: http://ix.io/nV5
[23:54:53] Ox0dea: But what's the pattern?!
[23:56:24] Ox0dea: Darmani: It's our two-week anniversary.
[23:56:43] Darmani: Ox0dea: war
[23:56:52] Darmani: I always do that.
[23:57:04] kspencer: Has anyone used highline
[23:57:25] Darmani: Ox0dea: What's our two-week anniversary? Lol
[23:57:26] Ox0dea: I've used Highline, but only to avoid having to deal with termcap for hiding password input.
[23:57:34] Ox0dea: Darmani: Today.
[23:57:38] Ox0dea: Do you even timestamps?
[23:58:33] freerobby: has joined #ruby
[23:58:49] Darmani: Ox0dea - Did you get me something special?
[23:58:53] Darmani: Are you going to sing me a song?
[23:59:05] Ox0dea: Why'd you have to go and load the question?
[23:59:11] Ox0dea: I did get you something special, but it's not a song.
[23:59:29] musicnode: has joined #ruby
[23:59:42] kspencer: Ox0dea: If I'm going to allow ./script > file.conf for a generator script, should I make output go to STDERR so that it doesn't get taken in by regular .puts