« Back to channel list

#ruby - 31 December 2015

« Back 1 day Forward 1 day »
[00:01:07] Pupeno: has joined #ruby
[00:02:38] kies^: has joined #ruby
[00:03:59] hakunin: has joined #ruby
[00:04:34] millerti: has joined #ruby
[00:07:01] trwyth: has joined #ruby
[00:11:16] rkazak: has joined #ruby
[00:13:45] shevy: today - last day in 2015, get some ruby gems updated before we enter 2016!
[00:14:26] devbug: has joined #ruby
[00:17:47] kp666: has joined #ruby
[00:23:35] stannard_: has joined #ruby
[00:25:47] kmckelvi1: has joined #ruby
[00:27:37] DLSteve: has joined #ruby
[00:27:55] ur5us: has joined #ruby
[00:29:21] atomical_: has joined #ruby
[00:31:11] celly: has joined #ruby
[00:31:59] ur5us_: has joined #ruby
[00:33:05] charliesome: has joined #ruby
[00:33:36] rgtk: has joined #ruby
[00:36:40] solocshaw: has joined #ruby
[00:40:10] s00pcan: has joined #ruby
[00:40:17] rkazak_: has joined #ruby
[00:42:19] tubuliferous_: has joined #ruby
[00:42:36] duckpuppy: has joined #ruby
[00:43:15] ruid: has joined #ruby
[00:44:59] dfinninger: has joined #ruby
[00:45:12] paradisaeidae: has joined #ruby
[00:47:03] Synthead: has joined #ruby
[00:48:26] snockerton: has joined #ruby
[00:48:49] seitensei: has joined #ruby
[00:49:19] DavidDudson: has joined #ruby
[00:54:13] aef: has joined #ruby
[00:54:16] skcin7: has joined #ruby
[00:54:45] B1n4r10: has joined #ruby
[00:55:10] shevy: hmm on second thought.... party time is better
[00:57:29] ledestin: has joined #ruby
[01:00:03] redlegion: has joined #ruby
[01:01:07] mandarinkin: has joined #ruby
[01:01:45] Ox0dea: Who could party at a time like this?
[01:03:44] tubuliferous_: has joined #ruby
[01:08:21] bkxd: has joined #ruby
[01:08:33] Emmanuel_Chanel: has joined #ruby
[01:08:33] mandarinkin: has joined #ruby
[01:08:37] tjohnson: has joined #ruby
[01:15:43] brout: has joined #ruby
[01:15:54] brout: has joined #ruby
[01:17:21] brout: has joined #ruby
[01:17:27] mistermocha: has joined #ruby
[01:19:55] DarkElement: has joined #ruby
[01:21:05] blur3d: has joined #ruby
[01:21:55] DarkElement: How can I represent a table in my MySQL database with Ruby's mysql gem? I need to insert multiple variables into a query while still watching out for SQL injection.
[01:24:17] Radar: Perhaps use another gem like Sequel to do that?
[01:26:09] Guest88361: has joined #ruby
[01:27:23] drys: has joined #ruby
[01:27:25] DarkElement: Oh, is that better?
[01:27:33] DarkElement: Either way gonna try it
[01:28:52] havenwood: DarkElement: +1 Sequel
[01:31:15] with: has joined #ruby
[01:31:29] kp666: has joined #ruby
[01:32:37] kp666: has joined #ruby
[01:33:20] darkxploit: has joined #ruby
[01:33:49] pawnbox: has joined #ruby
[01:35:24] psy: has joined #ruby
[01:36:08] mistermocha: has joined #ruby
[01:36:26] drys: guys i dont know why but i keep have "make failed, uncaught signal 2" when installin qtbindings.. All depencies are installed
[01:37:15] drys: my os is Kubuntu 15.04
[01:39:09] DarkElement: Alright next question: I am trying to get all the html of www.zillow.com/browse/homes, however there are three script tags, and it only gets two of them, while ignoring the last one. Anyone care to take a look at the site, I'd really appreciate any help regarding this. Using openurl gem
[01:41:35] Dimik: has joined #ruby
[01:42:06] Ox0dea: DarkElement: This one? https://rubygems.org/gems/openurl
[01:42:23] DarkElement: Actually, I can't even see the thing i'm looking for in a browser
[01:42:32] pontiki: has joined #ruby
[01:42:33] DarkElement: when I do Ctrl+u and look at source it's not there
[01:43:09] Ox0dea: What's not there?
[01:43:45] DarkElement: Never mind, found a way
[01:43:57] DarkElement: Had to be super sneaky bout it
[01:45:16] DarkElement: The captcha <img> tag
[01:46:01] dfinninger: has joined #ruby
[01:47:49] RegulationD: has joined #ruby
[01:49:13] djbkd: has joined #ruby
[01:50:06] shakes: has joined #ruby
[01:52:01] drys: guys help me out. i dont know why but i keep have "make failed, uncaught signal 2" when installin qtbindings.. All depencies are installed
[01:52:12] drys: qmake version 4.8.6
[01:52:32] drys: ruby 2.2.3 and jruby 1.7.23 also installed
[01:53:44] tmtwd: has joined #ruby
[01:54:55] RobertBirnie: has joined #ruby
[01:56:58] charliesome: has joined #ruby
[01:57:24] gerard0: has joined #ruby
[01:57:49] Ox0dea: drys: Might you be running out of memory?
[01:58:32] Radar: drys: what command are you running exactly?
[02:02:39] adgtl: has joined #ruby
[02:04:14] govg: has joined #ruby
[02:05:09] culturelabs: has joined #ruby
[02:07:14] sdn90: has joined #ruby
[02:09:27] arescorpio: has joined #ruby
[02:10:56] sdn90: has left #ruby: ()
[02:13:37] pawnbox: has joined #ruby
[02:16:18] iateadonut: has joined #ruby
[02:17:20] fullstack: has joined #ruby
[02:17:44] fullstack: Hi, I have some kind of ruby error when running scsslint. http://pastebin.com/KcYKedNq
[02:17:44] ruboto: fullstack, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[02:18:15] fullstack: https://gist.github.com/fullstackwebdev/4427697e87e19018e094
[02:21:44] curses: has joined #ruby
[02:22:06] iateadonut: has left #ruby: ()
[02:22:34] Pupeno: has joined #ruby
[02:23:58] akem: has joined #ruby
[02:24:48] bkxd: has joined #ruby
[02:25:55] DarkElement: I have scraped some javascript code in ruby where a value is assigned a json. How can I get a value in that json?
[02:28:18] sankaber: has joined #ruby
[02:31:34] Ox0dea: DarkElement: Parse it.
[02:31:35] symm-: has joined #ruby
[02:32:36] andywojo: has joined #ruby
[02:33:23] atomical: has joined #ruby
[02:34:30] rgtk: has joined #ruby
[02:34:33] Ox0dea: >> require 'json'; js = 'var foo = {"ohai": 42};'; JSON.parse(js[/=(.*);/, 1])['ohai'] # DarkElement
[02:34:34] ruboto: Ox0dea # => 42 (https://eval.in/495647)
[02:34:47] djbkd: has joined #ruby
[02:35:49] DarkElement: Yea just parsing the json atm
[02:36:19] Ox0dea: DarkElement: You'll get back a Ruby Hash; are you asking how to key into such a thing?
[02:36:28] DarkElement: Just, one moment.
[02:37:17] DarkElement: I've got a string that's a json but I need to convert it to a hash yea
[02:37:32] Ox0dea: DarkElement: Use `JSON.parse`.
[02:37:51] DarkElement: just did it failed
[02:37:53] DarkElement: Working on it.
[02:38:31] DarkElement: it's like "{asdf: 40}" but it fails on the curly
[02:42:35] djbkd: has joined #ruby
[02:43:18] duckpuppy: has joined #ruby
[02:43:30] pawnbox: has joined #ruby
[02:45:19] DarkElement: Ox0dea: this is the exact string I get, and it breaks on unexpected token at '{ http://paste.pound-python.org/show/YW8sxGliLL4fScviZYKN/
[02:49:05] robh71: has joined #ruby
[02:49:27] seitensei: has joined #ruby
[02:52:47] robh71: has joined #ruby
[02:53:05] Ox0dea: DarkElement: https://eval.in/495651
[02:53:11] Ox0dea: It's brittle, but it should do in a pinch.
[02:53:49] Ox0dea: Replace the single quotes with doubles and stringify the keys.
[02:54:20] DarkElement: Brittle but only needed for one case
[02:54:26] Ox0dea: Famous last words.
[02:54:29] DarkElement: Hopefully next time it will just work with the usual method
[02:54:40] DarkElement: No it will always be like this, in this instance
[02:54:48] Ox0dea: The "problem" is that that's JavaScript, not JSON.
[02:56:36] FooMunki: has joined #ruby
[02:58:17] Yzguy: has joined #ruby
[03:04:58] tubuliferous_: has joined #ruby
[03:05:19] dfinninger: has joined #ruby
[03:06:33] ohaibbq: has joined #ruby
[03:10:50] DarkElement: Now the problem is that I can't get the image of the captcha from www.zillow.com/browse/homes, I can see it's tag in browser but not when I use open-uri to get all the html of the page, why is this?
[03:13:07] cpup: has joined #ruby
[03:16:40] diegoviola: has joined #ruby
[03:17:18] rkazak_: has joined #ruby
[03:19:30] TomPeed: has joined #ruby
[03:20:52] Ox0dea: DarkElement: They're two different sessions. You did something in your browser session that you failed to emulate in your OpenURI request.
[03:21:18] DarkElement: All I did was open it, as you can see if you load the page
[03:21:20] Ox0dea: Is there some reason you don't want to use the API?
[03:24:40] Uranio: has joined #ruby
[03:24:44] stannard: has joined #ruby
[03:29:38] Casty: has joined #ruby
[03:29:45] ur5us: has joined #ruby
[03:31:18] Ox0dea: Zillow's, silly.
[03:32:40] DarkElement: Doesn't do what I need to do. How can I do what I need to do right now, with this page
[03:33:14] pawnbox: has joined #ruby
[03:33:34] RegulationD: has joined #ruby
[03:44:28] curses: has joined #ruby
[03:46:10] startupality: has joined #ruby
[03:47:53] sorbo_: has joined #ruby
[03:48:13] hahuang65: has joined #ruby
[03:55:13] psy: has joined #ruby
[03:55:27] The_Phoenix: has joined #ruby
[03:55:35] bkxd: has joined #ruby
[04:02:27] curses: has joined #ruby
[04:03:21] pawnbox: has joined #ruby
[04:04:31] howdoi: has joined #ruby
[04:05:05] adgtl: has joined #ruby
[04:05:25] ss_much: has joined #ruby
[04:11:19] cdg: has joined #ruby
[04:12:45] senayar: has joined #ruby
[04:17:49] braincras: has joined #ruby
[04:19:55] pontiki: has joined #ruby
[04:23:21] juddey: has joined #ruby
[04:24:23] KnownSyntax: has joined #ruby
[04:25:41] ecksit: has joined #ruby
[04:25:52] djbkd: has joined #ruby
[04:26:32] ecksit: has joined #ruby
[04:31:07] DarkElement: Better question: how to get it to wait 2 seconds before getting the source
[04:35:20] kalopsian: has joined #ruby
[04:35:23] rgtk: has joined #ruby
[04:35:44] yfeldblum: has joined #ruby
[04:38:18] crdpink: has joined #ruby
[04:38:31] tubuliferous_: has joined #ruby
[04:38:58] duckpuppy: has joined #ruby
[04:43:56] Casty: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[04:45:14] DavidDudson: has joined #ruby
[04:48:04] RobertBirnie: has joined #ruby
[04:50:16] seitensei: has joined #ruby
[04:51:56] bkxd: has joined #ruby
[04:52:54] pawnbox: has joined #ruby
[04:57:27] llfwf33: has joined #ruby
[04:58:37] vikas027: has joined #ruby
[05:01:31] DavidDudson: has joined #ruby
[05:01:37] colegatron: has joined #ruby
[05:03:28] skcin7: has joined #ruby
[05:08:17] yes`r: has joined #ruby
[05:11:58] arooni-mobile: has joined #ruby
[05:14:58] dcunit3d: has joined #ruby
[05:15:45] pawnbox: has joined #ruby
[05:16:05] akem: has joined #ruby
[05:20:22] PedramT: has joined #ruby
[05:23:26] PedramT: has joined #ruby
[05:30:53] SylarRuby: has joined #ruby
[05:30:54] CloCkWeRX: has joined #ruby
[05:33:10] pneuma: has joined #ruby
[05:39:16] bougyman: has joined #ruby
[05:40:41] iateadonut: has joined #ruby
[05:42:26] tildes: has joined #ruby
[05:45:53] varunwachaspati: has joined #ruby
[05:46:46] roshanavand: has joined #ruby
[05:46:51] pawnbox: has joined #ruby
[05:48:27] adgtl: has joined #ruby
[05:49:09] senayar: has joined #ruby
[05:49:10] senayar: has joined #ruby
[05:49:12] darkf: has joined #ruby
[05:49:29] annomander: has joined #ruby
[05:49:29] thejamespinto: has joined #ruby
[05:50:08] arup_r: has joined #ruby
[05:50:09] charliesome: has joined #ruby
[05:50:52] kam270: has joined #ruby
[05:54:02] kam270: has joined #ruby
[05:55:28] devbug: has joined #ruby
[05:58:28] kenbi: has joined #ruby
[06:01:10] adgtl: has joined #ruby
[06:03:59] kam270: has joined #ruby
[06:09:11] lubekpl: has joined #ruby
[06:16:48] Bugboy1028: has joined #ruby
[06:18:24] pawnbox: has joined #ruby
[06:18:57] phredus: has joined #ruby
[06:18:58] devoldmx: has joined #ruby
[06:29:36] lxsameer: has joined #ruby
[06:30:07] Gaelan: has joined #ruby
[06:30:29] Gaelan: some interesting/odd behavior: http://codepad.org/QfsbVAup
[06:30:57] chouhoul_: has joined #ruby
[06:31:14] arooni-mobile: has joined #ruby
[06:32:20] shevy: weird. where did the array go?
[06:33:17] mary5030: has joined #ruby
[06:33:40] Ox0dea: Gaelan: What's odd about it?
[06:34:35] Ox0dea: You created a Hash with a mutable default value.
[06:34:57] Ox0dea: >> h = Hash.new []; h[:foo] << 42; h[:bar]
[06:34:58] ruboto: Ox0dea # => [42] (https://eval.in/495698)
[06:35:26] emptyflask: has joined #ruby
[06:36:05] rgtk: has joined #ruby
[06:38:29] rickmasta: has joined #ruby
[06:38:29] Gaelan: has joined #ruby
[06:39:33] Gaelan: Ox0dea: The weird behavior is that, although the value is there (the mutated version is there), #inspect claims it is an empty hash.
[06:39:43] rickmasta: has joined #ruby
[06:40:13] Gaelan: >> h = Hash.new []; h[:foo] << 42; h.empty?
[06:40:14] ruboto: Gaelan # => true (https://eval.in/495700)
[06:40:34] Ox0dea: Gaelan: Well, would you want `h.keys.size` there to return Infinity?
[06:40:48] rickmasta: has joined #ruby
[06:41:19] phredus: has joined #ruby
[06:41:47] shevy: a ninja store!
[06:42:15] Ox0dea: Gaelan: Crucially, observe that Hash#[]= is not being invoked.
[06:42:30] Gaelan: Ox0dea: I said weird, not wrong. :) The ???right??? solution would be for it to become ???existent??? as soon as it was mutated, but that probably isn???t technically possible.
[06:42:45] Gaelan: Ox0dea: Figured that was what was going on.
[06:42:47] Ox0dea: Of course it's technically possible, but it would be surprising.
[06:43:06] Gaelan: Ox0dea: Less surprising than the current behavior IMO
[06:43:13] Ox0dea: Your opinion is wrong.
[06:43:49] Ox0dea: A default value simply isn't the same thing as a "real" one.
[06:43:55] Ox0dea: Hash shouldn't pretend otherwise.
[06:44:40] Gaelan: Mutating some random object causing a hash to gain a value is weird. An empty has holding data is weird. Maybe default values shouldn???t be mutable?
[06:44:47] duckpuppy: has joined #ruby
[06:45:10] Gaelan: (i.e. #dup???d)
[06:46:09] Ox0dea: Gaelan: Sounds like you'd like Hash#default_proc.
[06:47:06] nanoz: has joined #ruby
[06:47:24] Ox0dea: Gaelan: https://eval.in/495705
[06:47:32] Ox0dea: I trust that's more in line with your expectations?
[06:47:36] nanoz: has joined #ruby
[06:49:28] sameerynho: has joined #ruby
[06:49:36] Gaelan: Ox0dea: Yup. Thanks!
[06:49:42] Ox0dea: See, Ruby still loves you.
[06:49:54] Ox0dea: Happy to have been able to help you re-discover that.
[06:51:31] domgetter: What's interesting is that it was posed as "gee, this is an odd thing I 'just found' while messing with ruby", when in reality it's much more likely it was raised to argue about ruby being silly in some way
[06:51:57] Ox0dea: How pessimistic.
[06:52:22] Ox0dea: Or, well, cynical, I suppose.
[06:52:37] Ox0dea: Either way, someone somewhere learned something, so I'll mark it a net gain.
[06:53:28] domgetter: I'm willing to give the benefit of the doubt, but it's not the first time it's been talked about.
[06:54:35] Gaelan: I found that ???accidentally:??? I was writing code that filled a hash that way, and RSpec told me said hash was empty.
[06:55:02] Gaelan: Didn???t know about this behaviour beforehand.
[06:56:21] PedramT: has joined #ruby
[06:56:57] domgetter: Gaelan: Fair enough. If you want to see some weirdness in Ruby, check out this example of variable hoisting: https://eval.in/477378
[06:57:05] Ox0dea: domgetter: And it won't be the last. I don't think Gaelan had bad intentions, but the askers that did failed to realize that their confusion was a mark against their understanding of the language's semantics much more than a failing thereof.
[06:57:37] Ox0dea: Hash.new accepts an Object, and Array is a reference "type".
[06:58:28] domgetter: Ox0dea: yea but, the real question is, why does Ruby hoist variables used inside strings passed to eval? It's madness, I tells ya, madness!
[06:58:47] jackjackdripper: has joined #ruby
[06:58:58] Gaelan: Y???know what? Ruby may have its weirdneses, but it???s better than PHP or JS!
[07:01:02] Ox0dea: >> (___=->_,__=''{__=_[$.]+__; _[$.+=$$/$$]?___[_,__]:__})['naleaG']
[07:01:03] ruboto: Ox0dea # => "Gaelan" (https://eval.in/495721)
[07:01:08] Ox0dea: Gaelan: Are you sure? :P
[07:01:48] sneakerhax: has joined #ruby
[07:02:05] Gaelan: Ox0dea: Yes. https://eval.in/495723
[07:02:17] Gaelan: ACTION settles down to try and parse Ox0dea???s abomination.
[07:02:57] shevy: javascript is not all bad
[07:03:00] shevy: it gave for a good talk
[07:03:02] jackjackdripper1: has joined #ruby
[07:03:17] claw: has joined #ruby
[07:03:21] shevy: https://www.youtube.com/watch?v=20BySC_6HyY
[07:03:26] domgetter: It's not javascript's fault. It's mostly the browser's fault.
[07:03:31] domgetter: PHP has no excuse
[07:04:17] terminalrecluse: has joined #ruby
[07:04:32] dkelman: has joined #ruby
[07:04:36] Ox0dea: domgetter: How is the browser relevant?
[07:05:12] Ox0dea: https://eval.in/495724
[07:05:23] domgetter: Ox0dea: most frustrations and problems with JS stem from its use in browsers
[07:05:30] Ox0dea: domgetter: That's just not true.
[07:06:24] shevy: without the browser javascript would not exist
[07:07:00] Ox0dea: Gaelan: Do let me know how that goes. :)
[07:07:14] Ox0dea: I know a guy who took up the same fascination; he hasn't been the same since.
[07:08:03] Ox0dea: Just gonna leave this here: https://eval.in/495639
[07:09:13] araujo: has joined #ruby
[07:09:17] PedramT: has joined #ruby
[07:09:20] Ox0dea: I think I still remember how it works.
[07:09:38] domgetter: Well it's just a BF interpreter, no?
[07:09:39] Ox0dea: There's an implementation of Hash#invert in there somewhere.
[07:09:56] Ox0dea: domgetter: Aye, for unkind definitions of "just".
[07:10:10] juddey: has joined #ruby
[07:10:15] domgetter: It's my number one most overused word in programming ;P
[07:11:25] Ox0dea: Haskell's Just is "just" a monoid in the category of zygohistomorphic prepromorphisms.
[07:12:25] domgetter: I refuse to learn Haskell until someone gives me a rigorous definition of "side effect"
[07:13:14] startupality: has joined #ruby
[07:14:02] Gaelan: domgetter: Anything that causes the program to do something outside of the CPU/memory/fan?
[07:14:18] Ox0dea: Which means what, even?
[07:15:05] domgetter: Gaelan: That seems to include every program.
[07:15:20] shevy: side effect -> https://en.wikipedia.org/wiki/Butterfly_effect
[07:15:44] Ox0dea: Butterfly effect -> https://xkcd.com/378/
[07:16:00] andywojo: has joined #ruby
[07:16:43] Gaelan: Anything which would cause running the function once to have a different result than running it twice (other than two identical return values)?
[07:16:56] Ox0dea: Idempotence is for the birds.
[07:17:02] blub: that's not correct
[07:17:03] bkxd: has joined #ruby
[07:17:41] Xentil: has joined #ruby
[07:18:24] Ox0dea: Gaelan: In case you've thrown in the towel: http://git.io/vEhhf
[07:19:11] domgetter: Gaelan: those are good *practical* definitions, but they have their problems. After all, if a function is run twice, it takes twice as much time and takes up space in ram, which could case an out-of-memory error the second time, but not the first, or vice versa
[07:20:41] PedramT: has joined #ruby
[07:21:02] Ox0dea: https://youtu.be/jaHoYy2rnUc?t=173
[07:21:46] Ox0dea: I told myself he said it a little more forcefully than necessary because he's also quite sick of "recurse".
[07:21:53] Gaelan: https://en.wikipedia.org/wiki/Primitive_notion
[07:23:19] dfinninger: has joined #ruby
[07:26:11] DoubleMalt: has joined #ruby
[07:27:22] sp1rs: has joined #ruby
[07:27:53] domgetter: Gaelan: sure, but "side effect" seems like the sort of thing that can be defined in terms of other more primitive notions.
[07:28:27] Gaelan: domgetter: Any IO, where IO is a pirimitive notion?
[07:30:12] domgetter: Gaelan: Perhaps. Is there any non-side-effecting IO. And are there any things which are side effects that are not IO?
[07:30:26] domgetter: Is there any non-side-effecting IO?*
[07:31:22] Gaelan: domgetter: Good point. I think there are cases of both of those.
[07:31:35] Ox0dea: Are you sure?
[07:31:45] dcunit3d: has joined #ruby
[07:31:53] domgetter: I mean, I have no idea. I was only asking to help flesh out the idea.
[07:32:51] Gaelan: Side effects that are not IO: global memory. Non-side-effecting IO: memoization (possibly, not sure what the opinion of other Haskellers here is)
[07:33:11] domgetter: If the answer to the first is yes, then some subset of IO *is* side effects, and there should be some way to discern between side-effecting IO, and non-side-effecting IO.
[07:33:31] Ox0dea: Gaelan: It's not the sort of thing that comes down to opinion.
[07:33:52] PedramT: has joined #ruby
[07:34:09] domgetter: Ox0dea: I disagree that it's not the sort of thing that comes down to opinion. It might turn out that this is a "line in the sand" sort of issue
[07:34:17] Gaelan: I guess consensus is a better word.
[07:34:46] Ox0dea: The volatility of memory is a given in any computing environment.
[07:35:11] domgetter: I wouldn't mind seeing Plato's dialogues rewritten but with programming concepts :P
[07:35:18] Ox0dea: It's a "primitive notion" that bears no definitional weight.
[07:35:51] Ox0dea: By which I mean to point out that you can always poke around in a process's memory.
[07:36:30] Ox0dea: That shouldn't constitute a "non-IO side effect".
[07:37:19] blub: gaelan: a side effect is an observable effect other than returning values, disregarding time and resources, what's wrong with that
[07:37:44] Ox0dea: > disregarding time and resources
[07:37:48] domgetter: blub: does that include heating up a room?
[07:37:51] Ox0dea: Can she do that?
[07:38:04] bkxd: has joined #ruby
[07:38:15] Gaelan: blub: Under that definition memoization is not a side-effect. I???m not sure if it should be, however. See above.
[07:38:16] domgetter: "How can she slap??"
[07:38:29] Ox0dea: domgetter: Apparently by disregarding time and resources.
[07:38:29] blub: if we're not allowed to disregard time and resources then theory of computability is out the window too
[07:38:49] blub: memoisation isn't a side effect
[07:38:58] Ox0dea: Implementation detail.
[07:39:05] rkazak_: has joined #ruby
[07:39:06] domgetter: memoization causes the room to heat up less
[07:39:20] Ox0dea: domgetter: More slowly.
[07:39:34] domgetter: Ox0dea: same thing in this case ;)
[07:39:57] domgetter: rate of heat distribution is modeled as a continuous metric
[07:41:58] tvw: has joined #ruby
[07:42:11] domgetter: Gaelan: is it a side effect for a function to change the internal state of the program on which other functions in that program are dependent?
[07:42:51] domgetter: and if a function changes that sort of state, can it still be called a pure function, if the state is passed in as a parameter?
[07:44:29] Gaelan: has joined #ruby
[07:44:54] Cohedrin: has joined #ruby
[07:47:12] smactive: has joined #ruby
[07:47:15] sergey_makagon: has joined #ruby
[07:48:45] scepticulous: has joined #ruby
[07:49:38] PedramT: has joined #ruby
[07:50:26] PedramT: has joined #ruby
[07:50:37] sameerynho: has joined #ruby
[07:51:13] Gaelan: has joined #ruby
[07:53:17] jondot: has joined #ruby
[07:55:45] pawnbox: has joined #ruby
[07:56:13] Gaelan: has joined #ruby
[07:56:33] adgtl: has joined #ruby
[07:59:56] adgtl: has joined #ruby
[08:01:30] Gaelan: has joined #ruby
[08:03:40] anaeem1_: has joined #ruby
[08:06:26] YaknotiS: has joined #ruby
[08:13:21] SCHAAP137: has joined #ruby
[08:14:31] DavidDudson: has joined #ruby
[08:16:33] DavidDudson: has joined #ruby
[08:19:33] roshanavand: has joined #ruby
[08:22:16] pagios: has joined #ruby
[08:22:45] lxsameer__: has joined #ruby
[08:23:53] pawnbox: has joined #ruby
[08:27:53] sameerynho: has joined #ruby
[08:28:58] dfinninger: has joined #ruby
[08:30:24] Z00t: has joined #ruby
[08:31:32] shevy: so this is what happens when hamsters program and philosophize about it
[08:35:41] bkxd: has joined #ruby
[08:36:47] rgtk: has joined #ruby
[08:36:51] DarkElement: has joined #ruby
[08:37:00] DarkElement: How can I get the current url of the page with nokogiri?
[08:39:56] dkelman: has joined #ruby
[08:40:41] blur3d: has joined #ruby
[08:41:22] emptyflask: has joined #ruby
[08:43:13] emptyflask: has joined #ruby
[08:45:00] emptyflask: has joined #ruby
[08:46:32] bkxd: has joined #ruby
[08:46:44] emptyflask: has joined #ruby
[08:47:03] yes`r: has joined #ruby
[08:48:31] nighthwk1: has joined #ruby
[08:49:42] djbkd: has joined #ruby
[08:50:20] adgtl: has joined #ruby
[08:50:20] emptyflask: has joined #ruby
[08:50:56] RegulationD: has joined #ruby
[08:52:06] emptyflask: has joined #ruby
[08:52:08] seitensei: has joined #ruby
[08:52:56] atmosx: shevy: how's life?
[08:53:16] senayar: has joined #ruby
[08:53:54] emptyflask: has joined #ruby
[08:54:33] blub: everyone loves shevy
[08:54:50] atmosx: he has strong communication skills :-)
[08:56:02] nighthwk1: has joined #ruby
[08:57:00] karapetyan: has joined #ruby
[08:57:05] shevy: atmosx last day of 2015!
[08:57:14] Ox0dea: Prove it.
[08:57:16] shevy: atmosx I'll probably be champagning it up
[08:57:30] nighthwk1: has joined #ruby
[08:58:06] Tempesta: has joined #ruby
[08:58:47] atmosx: shevy: awesome
[08:59:12] atmosx: shevy: for me 2015 was the *best* year so far, I don't know what to expect of 2016.
[08:59:15] yfeldblum: has joined #ruby
[08:59:19] emptyflask: has joined #ruby
[08:59:48] shevy: did you get your degree finally
[09:00:25] atmosx: I passed the state exams, the degree will be given in June and I have a thesis presentation in April (about FFT - it's more interesting than I thought it would be)
[09:00:42] atmosx: so essentially 'yes'.
[09:00:50] YaknotiS: has joined #ruby
[09:00:52] atmosx: I passed the state exams, which I didn't thought I would :-P
[09:00:55] duckpuppy: has joined #ruby
[09:01:06] emptyflask: has joined #ruby
[09:01:24] mainfram: has joined #ruby
[09:02:01] shevy: still a weird system you got there :D
[09:02:15] shevy: "hey I will pass all exams - and in 20 years I get my degree!"
[09:02:48] atmosx: it's Greece
[09:03:04] emptyflask: has joined #ruby
[09:03:05] atmosx: I finished too early, should wait another year ... I finished in 3.5 instead of 5.0
[09:03:16] atmosx: I got hired too, so now I have officially two jobs
[09:03:20] atmosx: ACTION is gonna die working
[09:03:41] shevy: aaaaaaah welcome to working!
[09:03:48] shevy: is it related to life sciences?
[09:04:36] atmosx: Nah, I will wrk ~ 15 hours per week in the Pharmacy
[09:05:00] shevy: well that's still life sciences :)
[09:05:02] emptyflask: has joined #ruby
[09:05:03] atmosx: although my role there is mixed (managerial + dispencing drugs/counseling)
[09:05:15] atmosx: 40 hours per week is as sys-admin
[09:05:35] desireco: has joined #ruby
[09:05:59] atmosx: hopefully, I'll survive, I thought it was a small team when I applied, it's 120+ but everyone seems cool.
[09:06:13] atmosx: So I guess, I'll manage to keep up.
[09:06:31] nighthwk1: has joined #ruby
[09:06:39] atmosx: what's ack? :-P
[09:06:54] startupality: has joined #ruby
[09:08:19] nighthwk1: has joined #ruby
[09:08:21] agit0: has joined #ruby
[09:08:48] scootaloo: has joined #ruby
[09:10:11] emptyflask: has joined #ruby
[09:11:58] nighthwk1: has joined #ruby
[09:12:10] tmtwd: has joined #ruby
[09:12:24] Hounddog: has joined #ruby
[09:13:43] emptyflask: has joined #ruby
[09:15:06] mainfram: has joined #ruby
[09:15:30] nighthwk1: has joined #ruby
[09:17:19] emptyfla_: has joined #ruby
[09:18:33] karapetyan: has joined #ruby
[09:18:38] fnux: has joined #ruby
[09:20:06] bkxd: has joined #ruby
[09:20:46] karapetyan: has joined #ruby
[09:20:55] emptyflask: has joined #ruby
[09:22:00] bmalum: has joined #ruby
[09:22:43] emptyflask: has joined #ruby
[09:23:17] karapetyan: has joined #ruby
[09:23:25] adgtl_: has joined #ruby
[09:23:59] Ishido: has joined #ruby
[09:24:32] emptyflask: has joined #ruby
[09:26:20] emptyflask: has joined #ruby
[09:26:55] llfwf33: has joined #ruby
[09:28:09] emptyflask: has joined #ruby
[09:28:20] kegan_: has joined #ruby
[09:29:18] kegan_: how do I override the String class' replace character? encoding_options = {} isn't working
[09:29:58] emptyflask: has joined #ruby
[09:30:08] dfinninger: has joined #ruby
[09:31:44] emptyflask: has joined #ruby
[09:32:04] DavidDudson: has joined #ruby
[09:33:33] emptyflask: has joined #ruby
[09:34:24] blackmesa: has joined #ruby
[09:34:30] scootaloo: replace character?
[09:35:23] nighthwk1: has joined #ruby
[09:35:33] kegan_: sorry, String class' encode method :replace
[09:37:12] emptyflask: has joined #ruby
[09:39:02] emptyflask: has joined #ruby
[09:40:23] blackmesa: has joined #ruby
[09:40:55] emptyflask: has joined #ruby
[09:41:17] scootaloo: How do you use it right now?
[09:41:24] scootaloo: show your code
[09:41:44] Kiwi_sherbet: has joined #ruby
[09:42:36] emptyflask: has joined #ruby
[09:44:24] nighthwk1: has joined #ruby
[09:45:01] arup_r: has joined #ruby
[09:46:12] emptyflask: has joined #ruby
[09:47:38] kegan_: scootaloo thanks I looked at my code again and it was retarded
[09:47:40] kegan_: nevermind
[09:48:00] emptyflask: has joined #ruby
[09:48:08] kegan_: sorry, it was... silly, that's a better word to use
[09:48:35] scootaloo: We all do errors, and sometimes the silliest ones are the hardest to find.
[09:49:49] nighthwk1: has joined #ruby
[09:49:56] kegan_: hahaha, thank you. can definitely do something with a thought like that right around now
[09:51:43] emptyflask: has joined #ruby
[09:52:41] araujo: has joined #ruby
[09:52:42] araujo: has joined #ruby
[09:53:25] emptyflask: has joined #ruby
[09:53:55] senayar: has joined #ruby
[09:55:13] scootaloo: Do you have a rubber duck?
[09:55:19] nighthwk1: has joined #ruby
[09:55:54] scootaloo: It's important when debugging
[09:57:02] emptyflask: has joined #ruby
[09:57:02] lubekpl: scootaloo: my company got one for each IT guy for the 256th day of the year ;)
[09:58:17] karapetyan: has joined #ruby
[09:58:45] Ox0dea: >> require 'date'; Date.today - 109
[09:58:46] ruboto: Ox0dea # => #<Date: 2015-09-13 ((2457279j,0s,0n),+0s,2299161j)> (https://eval.in/495760)
[09:58:53] emptyflask: has joined #ruby
[09:59:04] jackjackdripper: has joined #ruby
[09:59:16] Ox0dea: lubekpl: That was a Sunday.
[09:59:42] scootaloo: They didn't precise which year.
[10:00:02] lubekpl: Ox0dea: and? I didn't say we received it on that day ;)
[10:00:40] jackjackdripper: has joined #ruby
[10:00:45] emptyflask: has joined #ruby
[10:01:15] lubekpl: Ox0dea: apparently it's possible to leave something on a desk for one to find it later
[10:01:26] Ox0dea: lubekpl: Okay, buddy.
[10:01:27] FernandoBasso: has joined #ruby
[10:01:36] Ox0dea: Please don't be upset.
[10:01:40] Ox0dea: We are all friends here.
[10:01:47] CloCkWeRX: has joined #ruby
[10:01:52] axelvvd: has joined #ruby
[10:01:54] lubekpl: I'm not upset ;)
[10:02:02] Ox0dea: Well, you're acting weird.
[10:02:14] Ox0dea: Telling me that it's possible to leave something on a desk?
[10:02:14] scootaloo: https://media0.giphy.com/media/JwNPAckJDiPsI/200_s.gif
[10:02:26] emptyflask: has joined #ruby
[10:02:55] duckpuppy: has joined #ruby
[10:03:22] Rutix: has joined #ruby
[10:03:23] Ox0dea: Listen, man, if you work somewhere that values their IT department so much that they send somebody in to leave rubber ducks on your desks on a Sunday, that's awesome.
[10:03:23] Rutix: has joined #ruby
[10:03:28] wolffles: has joined #ruby
[10:04:18] lubekpl: yay for me then :P
[10:04:38] startupality: has joined #ruby
[10:04:44] postmodern: has joined #ruby
[10:05:28] lubekpl: oh come on, now you seem upset
[10:05:36] FooMunki: has joined #ruby
[10:05:48] scootaloo: Ox0dea: don't be envious now.
[10:06:00] nighthwk1: has joined #ruby
[10:06:14] Ox0dea: scootaloo: But that's such an awesome perk!
[10:06:31] lubekpl: Ox0dea: want a pic?
[10:06:44] Ox0dea: lubekpl: Timestamped or something?
[10:06:55] Ox0dea: I don't doubt that you own a rubber duck, silly.
[10:07:12] lubekpl: not one ;)
[10:08:00] emptyflask: has joined #ruby
[10:09:35] atomical: has joined #ruby
[10:09:37] emptyflask: has joined #ruby
[10:10:42] scootaloo: I know someone who collects them.
[10:10:53] TheHodge: has joined #ruby
[10:11:11] Ox0dea: This guy fucks: https://www.reddit.com/user/fuckswithducks
[10:11:20] shevy: I shoot them
[10:11:23] emptyflask: has joined #ruby
[10:11:32] shevy: anyone talks to them?
[10:12:45] lubekpl: shevy: if I remember correctly, this guy sometimes talked to a duck http://static.comicvine.com/uploads/original/11/111746/4352026-4927658174_981e6cd63e_z.jpg
[10:13:09] Ox0dea: He kinda looks like Knuth.
[10:13:25] Ox0dea: https://en.wikipedia.org/wiki/Knuth_reward_check
[10:13:32] emptyflask: has joined #ruby
[10:14:11] shevy: lubekpl lol
[10:15:07] emptyflask: has joined #ruby
[10:16:48] emptyflask: has joined #ruby
[10:17:10] adgtl: has joined #ruby
[10:17:56] atomical: has joined #ruby
[10:18:10] tvw: has joined #ruby
[10:18:13] mdw: has joined #ruby
[10:18:37] nighthwk1: has joined #ruby
[10:18:57] ibouvousaime: has joined #ruby
[10:20:23] emptyflask: has joined #ruby
[10:21:49] azgil: has joined #ruby
[10:22:13] emptyflask: has joined #ruby
[10:22:43] atomical: has joined #ruby
[10:24:02] emptyflask: has joined #ruby
[10:25:04] anisha_: has joined #ruby
[10:25:49] emptyflask: has joined #ruby
[10:26:01] marr: has joined #ruby
[10:26:52] skade: has joined #ruby
[10:27:37] emptyflask: has joined #ruby
[10:28:23] Begi: has joined #ruby
[10:29:24] emptyflask: has joined #ruby
[10:30:32] startupality: has joined #ruby
[10:31:02] dfinninger: has joined #ruby
[10:31:13] emptyflask: has joined #ruby
[10:31:28] atomical: has joined #ruby
[10:32:21] pandaant: has joined #ruby
[10:37:00] pacMakaveli: has joined #ruby
[10:37:24] Cohedrin: has joined #ruby
[10:37:35] rgtk: has joined #ruby
[10:40:55] kmckelvi1: has joined #ruby
[10:40:55] sandstrom: has joined #ruby
[10:41:28] tesuji: has joined #ruby
[10:42:17] Jackneill: has joined #ruby
[10:43:01] CloCkWeRX: has left #ruby: ()
[10:44:27] Ox0dea: I've thought for so long that it was Grace Hopper who coined "debugging". :/
[10:44:30] atomical: has joined #ruby
[10:45:23] rdark: has joined #ruby
[10:45:31] Ox0dea: Ol' Tommy Elephant Murderer beat her by ~70 years.
[10:46:25] wrilain: has joined #ruby
[10:50:20] zenlot: has joined #ruby
[10:52:31] dkelman: has joined #ruby
[10:52:58] tenseiten: has joined #ruby
[10:54:27] axelvvd: has left #ruby: ()
[10:54:39] senayar: has joined #ruby
[10:56:38] ItSANgo: has joined #ruby
[10:56:47] benanne: has joined #ruby
[10:56:48] gccostabr: has joined #ruby
[10:58:28] atomical: has joined #ruby
[11:00:28] YaknotiS: has joined #ruby
[11:02:26] colegatron: has joined #ruby
[11:03:44] duckpuppy: has joined #ruby
[11:05:05] ElFerna: has joined #ruby
[11:07:29] rgtk: has joined #ruby
[11:08:06] bkxd: has joined #ruby
[11:08:34] AndoUser: has joined #ruby
[11:08:44] rgtk: has joined #ruby
[11:08:48] llfwf33: has joined #ruby
[11:08:51] spider-mario: has joined #ruby
[11:12:00] llfwf33: has joined #ruby
[11:13:30] bkxd: has joined #ruby
[11:15:27] bubbys: has joined #ruby
[11:15:44] scootaloo: has joined #ruby
[11:15:51] yhaqyj: has joined #ruby
[11:16:31] Arcaire: mist: Yes you are.
[11:17:11] andywojo: has joined #ruby
[11:18:11] edwinvdgraaf: has joined #ruby
[11:18:32] dlitvak: has joined #ruby
[11:18:42] curses: has joined #ruby
[11:19:39] edwinvdgraaf: has joined #ruby
[11:20:07] ta: has joined #ruby
[11:21:14] atomical: has joined #ruby
[11:21:23] wrilain: has joined #ruby
[11:21:24] edwinvdg_: has joined #ruby
[11:22:40] ElFerna: has joined #ruby
[11:23:01] arup_r: has joined #ruby
[11:25:33] jondot: has joined #ruby
[11:26:23] FernandoBasso: has joined #ruby
[11:29:13] CihanKaygusuz: has joined #ruby
[11:32:10] Jackneill: has joined #ruby
[11:32:47] bkxd: has joined #ruby
[11:33:01] gccostabr: has joined #ruby
[11:33:23] brusora_: has joined #ruby
[11:34:52] Scripore: has joined #ruby
[11:35:25] PedramT: has joined #ruby
[11:35:51] Cihan: has joined #ruby
[11:40:53] atomical: has joined #ruby
[11:45:46] Pupeno: has joined #ruby
[11:52:16] rippa: has joined #ruby
[11:53:30] edwinvdgraaf: has joined #ruby
[11:54:15] Pupeno: has joined #ruby
[11:54:16] Pupeno: has joined #ruby
[11:55:15] adgtl: has joined #ruby
[11:55:29] senayar: has joined #ruby
[11:57:11] ElFerna: has joined #ruby
[12:00:28] prestorium: has joined #ruby
[12:01:38] kobain: has joined #ruby
[12:03:55] puria: has joined #ruby
[12:04:23] duckpuppy: has joined #ruby
[12:04:53] skade: has joined #ruby
[12:05:22] kirun: has joined #ruby
[12:08:17] scootaloo: It's dead in here.
[12:08:36] sankaber: has joined #ruby
[12:09:55] zotherstupidguy: has joined #ruby
[12:10:29] edwinvdgraaf: has joined #ruby
[12:11:12] startupality: has joined #ruby
[12:11:30] edwinvdgraaf: has joined #ruby
[12:14:04] spider-mario: has joined #ruby
[12:15:18] pawnbox: has joined #ruby
[12:15:19] peeja: has joined #ruby
[12:15:24] edwinvdgraaf: has joined #ruby
[12:16:38] bmalum: has joined #ruby
[12:17:08] dstarh: has joined #ruby
[12:18:22] andywojo: has joined #ruby
[12:19:03] devoldmx: has joined #ruby
[12:19:48] spider-mario: has joined #ruby
[12:19:54] pawnbox: has joined #ruby
[12:20:09] edwinvdgraaf: has joined #ruby
[12:21:45] edwinvdgraaf: has joined #ruby
[12:27:24] spider-mario: has joined #ruby
[12:29:08] leslie: has joined #ruby
[12:29:08] leslie: has joined #ruby
[12:29:10] lucas: has joined #ruby
[12:29:12] ammar: has joined #ruby
[12:30:33] Drakevr: has joined #ruby
[12:31:09] gccostabr: has joined #ruby
[12:31:10] [spoiler]: has joined #ruby
[12:31:16] tekacs: has joined #ruby
[12:32:01] emptyflask: has joined #ruby
[12:32:30] dfinninger: has joined #ruby
[12:32:38] _whitelogger: has joined #ruby
[12:33:25] tekacs: has joined #ruby
[12:36:54] iateadonut: has joined #ruby
[12:37:00] lnx: has joined #ruby
[12:37:02] ammar: has joined #ruby
[12:37:41] _whitelogger_: has joined #ruby
[12:37:45] tekacs: has joined #ruby
[12:37:46] JStoker: has joined #ruby
[12:37:46] EvilJStoker: has joined #ruby
[12:37:51] drPoggs: has joined #ruby
[12:38:06] leslie: has joined #ruby
[12:38:06] leslie: has joined #ruby
[12:38:06] Drakevr: has joined #ruby
[12:38:07] lucas: has joined #ruby
[12:38:19] canton7: has joined #ruby
[12:38:48] [spoiler]: has joined #ruby
[12:39:05] JoL1hAHN: has joined #ruby
[12:39:10] Takumo: has joined #ruby
[12:39:11] Takumo: has joined #ruby
[12:39:24] pawnbox: has joined #ruby
[12:39:33] Pupeno: has joined #ruby
[12:39:55] karapetyan: has joined #ruby
[12:39:59] Morrolan: has joined #ruby
[12:40:53] oddmunds: has joined #ruby
[12:41:12] plsk: has joined #ruby
[12:43:03] kaspergrubbe: has joined #ruby
[12:44:35] Jet4Fire: has joined #ruby
[12:44:47] pawnbox: has joined #ruby
[12:47:10] FernandoBasso: has joined #ruby
[12:47:17] arup_r: has joined #ruby
[12:47:56] cyfr0n: has joined #ruby
[12:49:11] mrchris: has joined #ruby
[12:49:20] FernandoBasso: I have a class instance variable like @foo = 0. How do I do something to it every time I create an instance of that class?
[12:49:27] ammar: has joined #ruby
[12:49:49] FernandoBasso: I tried def initialize; self.foo = <some value>; end but I get an error.
[12:50:06] leslie: has joined #ruby
[12:50:06] leslie: has joined #ruby
[12:50:10] Takumo: has joined #ruby
[12:50:11] Takumo: has joined #ruby
[12:50:14] Drakevr: has joined #ruby
[12:50:24] canton7: has joined #ruby
[12:50:43] apeiros: FernandoBasso: create a class method which does what you want, then self.class.that_method
[12:50:55] lucasr: has joined #ruby
[12:51:02] apeiros: (self is the instance, not the class, so self.foo can't possibly work on the class)
[12:51:03] FernandoBasso: OK. At least I considered that would be an option.
[12:51:12] FernandoBasso: Ah, good hint!
[12:51:22] mdw: has joined #ruby
[12:51:29] apeiros: +within initialize (or any instance method)
[12:51:30] plsk: has joined #ruby
[12:51:52] apeiros: only within the class body, self references the class.
[12:52:58] bmalum: has joined #ruby
[12:53:10] oddmunds: has joined #ruby
[12:53:11] adgtl: has joined #ruby
[12:53:35] _whitelogger: has joined #ruby
[12:53:51] EvilJStoker: has joined #ruby
[12:53:51] tenseiten: has joined #ruby
[12:53:52] tenseiten: has joined #ruby
[12:54:30] startupality: has joined #ruby
[12:56:00] senayar: has joined #ruby
[12:57:10] sandstrom: has joined #ruby
[12:57:35] dkelman: has joined #ruby
[13:00:39] Takumo: has joined #ruby
[13:00:39] Takumo: has joined #ruby
[13:03:50] SylarRuby: has joined #ruby
[13:05:10] duckpuppy: has joined #ruby
[13:07:11] millerti: has joined #ruby
[13:07:38] Mon_Ouie: has joined #ruby
[13:09:21] lucas: has joined #ruby
[13:09:40] bithon: has joined #ruby
[13:09:41] plsk: has joined #ruby
[13:09:50] jds: has joined #ruby
[13:09:54] build22: has joined #ruby
[13:10:12] Drakevr: has joined #ruby
[13:10:39] leslie: has joined #ruby
[13:10:39] leslie: has joined #ruby
[13:10:43] build22: has left #ruby: ()
[13:10:44] shredding: has joined #ruby
[13:10:56] FernandoBasso: https://codeshare.io/SlkuN <-- Are my notes/comments correct or there is still things that are wrong or missing?
[13:11:00] kmckelvi1: has joined #ruby
[13:11:04] oddmunds: has joined #ruby
[13:11:19] lnx: has joined #ruby
[13:11:44] Takumo: has joined #ruby
[13:11:44] Takumo: has joined #ruby
[13:12:40] Morrolan: has joined #ruby
[13:13:15] davedev24: has joined #ruby
[13:13:39] pawnbox: has joined #ruby
[13:14:18] Mon_Ouie: Those comments look accurate to me (and x -= -1 is a bizarre way to increment a value :p)
[13:14:52] pawnbox: has joined #ruby
[13:15:34] FernandoBasso: When I am "studying" I like to write things that I would not use in "real" code but help me gain more insight about programming in general.
[13:15:45] apeiros: looks fine
[13:16:05] FernandoBasso: Mon_Ouie, apeiros, Thanks. I really appreciate you guys spending time to help me out.
[13:16:15] apeiros: note: class Thing; class << self; attr_reader :count; end; end # <- that'd be the syntax to use attr_reader for class instance variables.
[13:16:30] apeiros: ?guys FernandoBasso ;-)
[13:16:30] ruboto: FernandoBasso, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[13:17:02] bithon: has joined #ruby
[13:17:19] FernandoBasso: What is wrong with "guys"? An english thing? (i'm not native en speaker)
[13:17:57] apeiros: as the text explains, there's many who consider it a male plural and thus feel unaddressed/excluded
[13:17:58] FernandoBasso: I always thought guys can refer to women to, depending on the context. Perhaps I am worng.
[13:18:38] ibouvousaime: has joined #ruby
[13:18:43] ammar: has joined #ruby
[13:18:43] FernandoBasso: Then I'll go with "thank you laddies and gentlemen" the next time :)
[13:18:49] lucas: has joined #ruby
[13:19:01] apeiros: if you want to type all that much :)
[13:19:20] FernandoBasso: Sorry for sounding sexist and impolite.
[13:19:28] apeiros: I started to simply drop 'guys', most often it works.
[13:19:33] lnx: has joined #ruby
[13:19:34] AlexRussia: has joined #ruby
[13:19:37] kaspergrubbe: has joined #ruby
[13:20:13] Takumo: has joined #ruby
[13:20:14] Takumo: has joined #ruby
[13:20:20] FooMunki: has joined #ruby
[13:20:30] tvw: has joined #ruby
[13:21:01] Morrolan: has joined #ruby
[13:21:15] apeiros: codeshare looks interesting - you can see edits I make on the codeshare you linked?
[13:21:41] apeiros: d'uh, looking at the start site tells me it's precisely so :D
[13:22:02] FernandoBasso: I did not see any changes.
[13:22:09] FernandoBasso: I should have seen them, though.
[13:22:11] apeiros: I didn't make any :)
[13:22:25] apeiros: I didn't dare touching your code! ;-D
[13:22:41] FernandoBasso: No problem. It is open source :p
[13:23:39] sandstrom: has joined #ruby
[13:24:39] lxsameer__: has joined #ruby
[13:26:06] maikowblue: has joined #ruby
[13:26:18] AlexRussia: has joined #ruby
[13:28:16] millerti: has joined #ruby
[13:30:13] ammar: has joined #ruby
[13:32:41] lucas: has joined #ruby
[13:32:42] Takumo: has joined #ruby
[13:32:42] Takumo: has joined #ruby
[13:32:53] lnx: has joined #ruby
[13:33:23] dfinninger: has joined #ruby
[13:33:42] dn`: has joined #ruby
[13:33:52] _whitelogger: has joined #ruby
[13:35:16] darrenburgess: has joined #ruby
[13:35:21] ibouvousaime: has joined #ruby
[13:36:40] gccostabr: has joined #ruby
[13:37:34] ammar: has joined #ruby
[13:37:55] gccostabr: has joined #ruby
[13:39:44] sgambino: has joined #ruby
[13:39:47] gccostabr: has joined #ruby
[13:40:12] lucas: has joined #ruby
[13:40:22] plsk: has joined #ruby
[13:40:34] lnx: has joined #ruby
[13:40:58] canton7: has joined #ruby
[13:41:35] Takumo: has joined #ruby
[13:41:36] Takumo: has joined #ruby
[13:43:21] Morrolan: has joined #ruby
[13:44:56] jondot: has joined #ruby
[13:45:37] Drakevr: has joined #ruby
[13:46:40] kaspergrubbe: has joined #ruby
[13:46:46] dtordable: has joined #ruby
[13:46:47] banister: has joined #ruby
[13:47:00] ramortegui: has joined #ruby
[13:48:00] dtordable: Happy new year
[13:49:00] robh71: has joined #ruby
[13:49:10] sdothum: has joined #ruby
[13:49:41] dtordable: Happy new year everyone
[13:49:42] kstuart: has joined #ruby
[13:50:12] _whitelogger: has joined #ruby
[13:50:17] darrenburgess: Have an great 2016!
[13:51:05] dtordable: Not great for me hehehe
[13:51:26] [spoiler]: has joined #ruby
[13:52:23] canton7: has joined #ruby
[13:52:23] JStoker: has joined #ruby
[13:52:32] lnx: has joined #ruby
[13:52:57] mdw: has joined #ruby
[13:53:57] banister: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[13:54:10] Drakevr: has joined #ruby
[13:54:55] lictor36: has joined #ruby
[13:55:16] jxs_: has joined #ruby
[13:55:21] _whitelogger: has joined #ruby
[13:55:42] codecop: has joined #ruby
[13:56:13] gccostabr: has joined #ruby
[13:56:55] senayar: has joined #ruby
[13:57:00] gccostabr: has joined #ruby
[13:58:34] futilegames: has joined #ruby
[13:59:31] Drakevr: has joined #ruby
[13:59:31] ammar: has joined #ruby
[13:59:42] lnx: has joined #ruby
[13:59:45] plsk: has joined #ruby
[13:59:47] lucasr: has joined #ruby
[14:00:10] _whitelogger: has joined #ruby
[14:00:22] FernandoBasso: I don't want the new year. I want the old one.
[14:01:05] FernandoBasso: dtordable, Also, I am still 12 hours away from 2016.
[14:01:23] joneshf-laptop: has joined #ruby
[14:01:41] TomPeed: has joined #ruby
[14:01:59] adgtl: has joined #ruby
[14:04:19] [spoiler]: has joined #ruby
[14:04:27] _whitelogger_: has joined #ruby
[14:05:55] duckpuppy: has joined #ruby
[14:06:04] drPoggs: has joined #ruby
[14:07:25] EvilJStoker: has joined #ruby
[14:07:25] EvilJStoker: has joined #ruby
[14:08:26] kaspergrubbe: has joined #ruby
[14:08:48] build22: has joined #ruby
[14:09:13] tekacs: has joined #ruby
[14:10:33] JoL1hAHN: has joined #ruby
[14:11:08] Guest33298: has joined #ruby
[14:11:11] JStoker: has joined #ruby
[14:11:46] _whitelogger: has joined #ruby
[14:12:01] dtordable: FernandoBasso, my gf makes it not so happy. Have to go for tobacco hahaha
[14:12:18] s2013: has joined #ruby
[14:14:06] mostlybadfly: has joined #ruby
[14:15:19] harai: has joined #ruby
[14:15:50] FooMunki: has joined #ruby
[14:16:02] gccostabr: has joined #ruby
[14:16:24] TomPeed: has joined #ruby
[14:17:21] arup_r: has joined #ruby
[14:18:06] steffkes: has joined #ruby
[14:18:06] steffkes: has joined #ruby
[14:18:12] Xeago: has joined #ruby
[14:18:45] JoL1hAHN: has joined #ruby
[14:18:46] leslie: has joined #ruby
[14:18:46] leslie: has joined #ruby
[14:18:55] _whitelogger: has joined #ruby
[14:19:26] Takumo: has joined #ruby
[14:19:26] Takumo: has joined #ruby
[14:19:30] Drakevr: has joined #ruby
[14:19:33] kaspergrubbe: has joined #ruby
[14:19:47] devoldmx: has joined #ruby
[14:20:02] drPoggs: has joined #ruby
[14:20:06] lnx: has joined #ruby
[14:20:08] ammar: has joined #ruby
[14:20:11] canton7: has joined #ruby
[14:20:24] tekmaster: has joined #ruby
[14:20:25] mdw: has joined #ruby
[14:20:42] plsk: has joined #ruby
[14:21:54] dfinninger: has joined #ruby
[14:22:56] JStoker: has joined #ruby
[14:25:16] ammar: has joined #ruby
[14:25:20] _whitelogger: has joined #ruby
[14:25:56] JStoker: has joined #ruby
[14:26:02] EvilJStoker: has joined #ruby
[14:26:07] Takumo: has joined #ruby
[14:26:07] Takumo: has joined #ruby
[14:26:12] kaspergrubbe: has joined #ruby
[14:26:13] canton7: has joined #ruby
[14:26:14] Drakevr: has joined #ruby
[14:26:14] lnx: has joined #ruby
[14:26:16] [spoiler]: has joined #ruby
[14:27:27] axelvvd: has joined #ruby
[14:27:31] kalopsian: has joined #ruby
[14:27:56] DexterLB: has joined #ruby
[14:28:11] _whitelogger: has joined #ruby
[14:28:22] lucasr: has joined #ruby
[14:28:29] krobzaur: has joined #ruby
[14:29:57] oddmunds: has joined #ruby
[14:30:28] EvilJStoker: has joined #ruby
[14:30:38] _whitelogger: has joined #ruby
[14:30:43] tekmaster: has joined #ruby
[14:32:17] crdpink2: has joined #ruby
[14:32:22] lnx: has joined #ruby
[14:32:49] emptyflask: has joined #ruby
[14:32:57] JStoker: has joined #ruby
[14:33:24] tesuji: has joined #ruby
[14:33:38] RobertBirnie: has joined #ruby
[14:33:49] plsk: has joined #ruby
[14:34:36] ammar: has joined #ruby
[14:34:46] oddmunds: has joined #ruby
[14:34:58] [spoiler]: has joined #ruby
[14:35:03] drPoggs: has joined #ruby
[14:35:29] EvilJStoker: has joined #ruby
[14:35:34] canton7: has joined #ruby
[14:36:06] mdw: has joined #ruby
[14:37:55] Outlastsheep: has joined #ruby
[14:38:33] psye: has joined #ruby
[14:39:40] psye: has joined #ruby
[14:39:45] llfwf33: has joined #ruby
[14:40:28] babblebre: has joined #ruby
[14:40:37] mdw7: has joined #ruby
[14:42:30] QpQ4__: has joined #ruby
[14:43:00] QpQ4__: has joined #ruby
[14:44:09] Drakevr: has joined #ruby
[14:44:12] plsk: has joined #ruby
[14:44:47] canton7: has joined #ruby
[14:46:18] lucasr: has joined #ruby
[14:47:17] puria: has joined #ruby
[14:47:48] AlexRussia: has joined #ruby
[14:48:18] dcunit3d: has joined #ruby
[14:48:26] toretore: has joined #ruby
[14:49:50] Takumo: has joined #ruby
[14:49:50] Takumo: has joined #ruby
[14:50:29] JStoker: has joined #ruby
[14:51:13] Drakevr: has joined #ruby
[14:51:14] lnx: has joined #ruby
[14:51:18] lucasr: has joined #ruby
[14:51:29] pdkl1: has joined #ruby
[14:52:19] JoL1hAHN: has joined #ruby
[14:52:20] _whitelogger: has joined #ruby
[14:52:33] canton7: has joined #ruby
[14:53:01] EvilJStoker: has joined #ruby
[14:53:39] [spoiler]: has joined #ruby
[14:53:47] tekacs: has joined #ruby
[14:53:49] leslie: has joined #ruby
[14:53:49] leslie: has joined #ruby
[14:53:59] JStoker: has joined #ruby
[14:54:55] tenseiten: has joined #ruby
[14:56:30] azgil: has joined #ruby
[14:57:45] senayar: has joined #ruby
[14:58:15] despai: has joined #ruby
[14:58:19] aegis3121: has joined #ruby
[14:58:20] Takumo: has joined #ruby
[14:58:20] Takumo: has joined #ruby
[14:58:21] lucasr: has joined #ruby
[14:58:34] lnx: has joined #ruby
[14:58:37] canton7: has joined #ruby
[14:58:51] jschmid: has joined #ruby
[14:59:00] Drakevr: has joined #ruby
[14:59:07] drPoggs: has joined #ruby
[14:59:08] _whitelogger: has joined #ruby
[14:59:11] plsk: has joined #ruby
[14:59:27] JStoker: has joined #ruby
[14:59:34] EvilJStoker: has joined #ruby
[15:00:54] [spoiler]: has joined #ruby
[15:01:33] oddmunds: has joined #ruby
[15:03:09] tesuji: has joined #ruby
[15:03:23] ammar: has joined #ruby
[15:04:10] nertzy: has joined #ruby
[15:04:24] millerti: has joined #ruby
[15:05:37] lucasr: has joined #ruby
[15:06:10] drPoggs: has joined #ruby
[15:06:39] duckpuppy: has joined #ruby
[15:06:48] mdw: has joined #ruby
[15:07:00] _whitelogger: has joined #ruby
[15:07:12] lnx: has joined #ruby
[15:07:30] EvilJStoker: has joined #ruby
[15:07:32] tekacs: has joined #ruby
[15:08:00] JStoker: has joined #ruby
[15:08:46] oddmunds: has joined #ruby
[15:09:12] kaspergrubbe: has joined #ruby
[15:09:14] blackmesa: has joined #ruby
[15:10:11] alphaatom: has joined #ruby
[15:15:58] mary5030: has joined #ruby
[15:15:59] DexterLB: has joined #ruby
[15:16:49] jackcom: has joined #ruby
[15:16:54] jackcom: hello, i can see map if i know longitude and latitude? there is a site?
[15:17:22] adaedra: maps.google.com
[15:17:22] jackcom: shevy: hello, i can see map if i know longitude and latitude? there is a site?
[15:17:41] pawnbox: has joined #ruby
[15:19:46] pawnbox: has joined #ruby
[15:20:34] jackcom: https://www.google.com/maps/@37.0625,-95.677068,4z <?????? adaedra what is ???4z???? i don???t know
[15:20:51] adaedra: me neither, that's google
[15:21:02] aegis3121: the zoom level
[15:21:17] _whitelogger_: has joined #ruby
[15:21:34] jackcom: oh great thanks aegis3121 :)
[15:21:40] jackcom: thanks adaedra and aegis3121
[15:22:28] mary5030: has joined #ruby
[15:23:27] lucasr: has joined #ruby
[15:23:29] ammar: has joined #ruby
[15:23:41] canton7: has joined #ruby
[15:24:09] Takumo: has joined #ruby
[15:24:09] Takumo: has joined #ruby
[15:24:16] Drakevr: has joined #ruby
[15:24:19] lnx: has joined #ruby
[15:24:25] kaspergrubbe: has joined #ruby
[15:24:42] jackcom: aegis3121: anyway you know the most biggest zoom level?
[15:24:42] EvilJStoker: has joined #ruby
[15:24:43] andywojo: has joined #ruby
[15:24:48] [spoiler]: has joined #ruby
[15:25:03] jackcom: more than 4z
[15:25:16] jackcom: and there is no big size than others.
[15:25:19] havenwood: jackcom: What does this have to do with Ruby?
[15:25:38] jackcom: havenwood: because i will do code with ruby.
[15:25:46] jackcom: because i love ruby most
[15:25:57] jackcom: havenwood:
[15:26:05] yes`r: has joined #ruby
[15:27:24] leslie: has joined #ruby
[15:27:24] leslie: has joined #ruby
[15:27:26] JStoker: has joined #ruby
[15:27:32] _whitelogger: has joined #ruby
[15:28:08] drPoggs: has joined #ruby
[15:28:21] whippythellama: has joined #ruby
[15:29:26] oddmunds: has joined #ruby
[15:30:01] JoL1hAHN: has joined #ruby
[15:31:07] osiutino_: has joined #ruby
[15:35:27] hobodave: has joined #ruby
[15:35:37] jackcom: very strange. map.google.com don???t give me correct position.
[15:38:39] jackcom: aegis3121: there is a way that google can express arrow?
[15:39:15] TakumoKatekari: has joined #ruby
[15:39:16] TakumoKatekari: has joined #ruby
[15:39:22] lnx: has joined #ruby
[15:39:27] kaspergrubbe: has joined #ruby
[15:39:36] jackcom: aegis3121: there is a way that google map can mark some area with arrow?
[15:39:57] adaedra: go look at GMaps documentation. This is indeed not #ruby topic.
[15:40:15] jackcom: adaedra: 8)
[15:40:28] jxs_: has joined #ruby
[15:40:53] ytti: has joined #ruby
[15:41:02] _whitelogger: has joined #ruby
[15:41:05] ytti: http://p.ip.fi/jb6Q - how can I make this produce same result with NOT operator, as I do with XOR?
[15:41:14] drPoggs: has joined #ruby
[15:41:33] kenbi: has joined #ruby
[15:42:12] agent_white: has joined #ruby
[15:42:31] skade: has joined #ruby
[15:42:36] jondot: has joined #ruby
[15:42:43] nullwarp: has joined #ruby
[15:42:56] cdg: has joined #ruby
[15:43:00] kfpratt: has joined #ruby
[15:43:24] ytti: i.e. why mask ^ (2**32-1) is not same as !mask, and how can I make binary not just flip the bits
[15:43:29] ghox: has joined #ruby
[15:43:30] ytti: seems dirty to use xor to flip them
[15:43:46] ytti: ~mask, even
[15:43:59] alakra: has joined #ruby
[15:44:30] pdoherty: has joined #ruby
[15:44:56] wsewolod: has joined #ruby
[15:45:29] trwyth: has joined #ruby
[15:46:09] _whitelogger: has joined #ruby
[15:46:12] [spoiler]: has joined #ruby
[15:46:18] leslie: has joined #ruby
[15:46:19] leslie: has joined #ruby
[15:46:27] canton7: has joined #ruby
[15:46:31] lnx: has joined #ruby
[15:46:52] tildes: has joined #ruby
[15:47:09] tekmaster: has joined #ruby
[15:47:24] Takumo-: has joined #ruby
[15:47:40] drPoggs: has joined #ruby
[15:48:17] lucasr: has joined #ruby
[15:48:31] JoL1hAHN: has joined #ruby
[15:49:14] ammar: has joined #ruby
[15:49:20] EvilJStoker: has joined #ruby
[15:49:42] JStoker: has joined #ruby
[15:49:46] oddmunds: has joined #ruby
[15:50:21] Mon_Ouie: Why would ~mask behave like mask ^ (2**32-1) and not like mask ^ (2**64-1) or mask ^ (2**42-1)?
[15:50:36] Drakevr: has joined #ruby
[15:51:09] kaspergrubbe: has joined #ruby
[15:51:39] kalopsian: has joined #ruby
[15:52:35] jackcom: i can find position with ip? there is a some site? it is last question that is not related with
[15:52:49] jordanm: has joined #ruby
[15:53:53] TheMoonMaster: has joined #ruby
[15:55:44] Scripore: has joined #ruby
[15:55:53] dorei: has joined #ruby
[15:56:16] havenwood: jackcom: http://bfy.tw/3WKe
[15:56:37] havenwood: !kick jackcom http://ruby-community.com/pages/user_rules#rule_2_2
[15:56:40] ruboto: ruboto kicked jackcom:
[15:56:40] ruboto: -o ruboto
[15:58:11] spider-mario: has joined #ruby
[15:58:22] senayar: has joined #ruby
[15:59:17] dorei: anyone here using vim? what do you prefer for snippets management?
[15:59:23] emptyflask: has joined #ruby
[16:01:31] ytti: Mon_Ouie, point is, how do i flip bits
[16:01:39] nullwarp: has joined #ruby
[16:01:43] ytti: Mon_Ouie, the xor one flips bits, the not one does not
[16:01:54] ytti: Mon_Ouie, with the xor one, i need to know how large space is
[16:03:31] Mon_Ouie: You need to know how many bits you want to flip to get the result that you want, and Ruby can't guess what you want
[16:03:32] harai: has joined #ruby
[16:04:16] chouhoulis: has joined #ruby
[16:04:25] Mon_Ouie: The result of ~mask works by assuming a twos-complement representation, where flipping the most significant bits is what causes the sign to change
[16:04:57] ytti: right, because ruby does not have fixed bit size integers
[16:05:02] ytti: so not will never work
[16:05:07] hxegon: has joined #ruby
[16:06:50] dtordable: has joined #ruby
[16:07:22] jackcom: has joined #ruby
[16:07:24] duckpuppy: has joined #ruby
[16:07:38] jackcom: has left #ruby: ()
[16:08:01] [spoiler]: has joined #ruby
[16:08:04] leslie: has joined #ruby
[16:08:04] leslie: has joined #ruby
[16:08:04] lnx: has joined #ruby
[16:08:05] _whitelogger: has joined #ruby
[16:08:12] drPoggs: has joined #ruby
[16:08:15] Takumo-: has joined #ruby
[16:08:20] lucasr: has joined #ruby
[16:08:21] JoL1hAHN: has joined #ruby
[16:08:22] canton7: has joined #ruby
[16:08:23] Drakevr: has joined #ruby
[16:08:32] ammar: has joined #ruby
[16:08:46] JStoker: has joined #ruby
[16:09:36] EvilJStoker: has joined #ruby
[16:09:53] oddmunds: has joined #ruby
[16:09:55] Guest88361: has joined #ruby
[16:09:56] Drakevr: has joined #ruby
[16:10:03] tekmaster: has joined #ruby
[16:10:28] devoldmx: has joined #ruby
[16:12:27] Begi: has joined #ruby
[16:12:58] kaspergrubbe: has joined #ruby
[16:16:37] Xeago: has joined #ruby
[16:17:56] blackmesa: has joined #ruby
[16:18:39] s00pcan: has joined #ruby
[16:18:42] arup_r: has joined #ruby
[16:19:52] pawnbox: has joined #ruby
[16:20:12] alem0lars: has joined #ruby
[16:20:33] hxegon: morning all. what a glorious day for OS X symlinking problems!
[16:21:58] pawnbox: has joined #ruby
[16:22:39] havenwood: hxegon: good mornin'
[16:25:04] miah: has joined #ruby
[16:27:05] dtordable2: has joined #ruby
[16:27:18] loganrice: has joined #ruby
[16:29:36] kalopsian: has joined #ruby
[16:30:05] leslie: has joined #ruby
[16:30:05] leslie: has joined #ruby
[16:30:06] lnx: has joined #ruby
[16:30:07] Drakevr: has joined #ruby
[16:30:07] lucasr: has joined #ruby
[16:30:10] ammar: has joined #ruby
[16:30:26] _whitelogger: has joined #ruby
[16:30:26] tekacs: has joined #ruby
[16:30:34] Junaos: has joined #ruby
[16:30:39] [spoiler]: has joined #ruby
[16:30:41] pdkl: has joined #ruby
[16:31:07] oddmunds: has joined #ruby
[16:31:12] JStoker: has joined #ruby
[16:31:13] Takumo-: has joined #ruby
[16:31:27] rodfersou: has joined #ruby
[16:31:33] canton7: has joined #ruby
[16:31:33] Xeago: has joined #ruby
[16:31:45] drPoggs: has joined #ruby
[16:32:26] TomyLobo: has joined #ruby
[16:33:09] EvilJStoker: has joined #ruby
[16:33:09] EvilJStoker: has joined #ruby
[16:33:12] nullwarp: has joined #ruby
[16:33:40] stamina: has joined #ruby
[16:35:08] kaspergrubbe: has joined #ruby
[16:37:12] shevy: hxegon come to linux man!
[16:37:59] hxegon: shevy I've used linux for like 5 years, but I need os x for work, so OS X it is.
[16:38:14] hxegon: I miss some of the linux sanity/insanity for sure though :(
[16:38:53] hxegon: oh the days of staying up till 3AM trying to troubleshoot arch problems
[16:39:13] karapetyan: has joined #ruby
[16:39:25] adaedra: the thing I miss about Linux is the alternative WMs.
[16:39:36] filippos: has joined #ruby
[16:39:43] hxegon: adaedra #1 thing I miss is xmonad
[16:39:55] eam: osx WM is pretty awful
[16:40:09] hxegon: eam seriously, its like trying to tie shoes with chopsticks
[16:40:16] Xeago: has joined #ruby
[16:40:37] eam: I really like the hardware. Really hate the software
[16:40:56] eam: apple used to be known for amazing UI -- but it's been decades since that was the case
[16:41:15] adaedra: I like the fact that the system "just works"
[16:41:26] eam: yeah that's nice (until it doesn't)
[16:41:31] adaedra: which is sometimes far away the case for Linux
[16:41:50] senayar: has joined #ruby
[16:41:51] adaedra: like it works if you have all intel hardware. Nvidia? Ahah, you're joking, right?
[16:42:25] toretore: but after 2 years of configuring it it's perfect! just the way you want it
[16:42:39] eam: last time I used linux on a desktop nvidia worked great
[16:42:41] eam: did that change?
[16:42:50] eam: adaedra: to be honest, nvidia on osx is pretty boned too
[16:43:05] eam: the 2013 mbps apparently have major issues
[16:43:26] adaedra: i've got some issues as well (performance, mainly), but nothing near what Linux offered me.
[16:43:39] eam: very crashy here
[16:43:52] braincrash: has joined #ruby
[16:45:00] eam: the toolchain being crap is also annoying. not a fan of dtruss, and wtf is with them shipping BSD grep?
[16:45:16] hxegon: why u no work readling -f?
[16:45:24] hxegon: s/ling/link
[16:45:25] BTRE: has joined #ruby
[16:45:47] eam: hxegon: omg yes, I've had to work around that in a few build scripts :(
[16:45:59] filippos: if I have a method eg "def foo?" "bla? && moo?" "end" that just has a single line statement in it, and I want to add another one, (eg log the values of bla? and moo?) do I need to explicitly "return bla? && moo?" after I log it?
[16:46:22] TheHodge: has joined #ruby
[16:46:51] hxegon: filippos if your saying what I think you are, you can just go...
[16:46:56] hxegon: >> foo = true
[16:46:57] ruboto: hxegon # => true (https://eval.in/496000)
[16:47:15] hxegon: and the assignment returns the value
[16:47:34] filippos: has joined #ruby
[16:47:34] DarkElement: has joined #ruby
[16:51:10] mistermocha: has joined #ruby
[16:51:20] smactive: has joined #ruby
[16:51:50] hal_9000_: has joined #ruby
[16:52:07] Ishido: has joined #ruby
[16:52:54] hal_9000_: I???ve been working on a project for 3-4 days now - comments are welcome
[16:52:58] hal_9000_: http://hal9000.github.io/livetext.html
[16:53:07] _whitelogger: has joined #ruby
[16:53:08] tekacs: has joined #ruby
[16:53:11] JoL1hAHN: has joined #ruby
[16:53:16] Drakevr: has joined #ruby
[16:53:29] ammar: has joined #ruby
[16:53:30] Takumo-: has joined #ruby
[16:53:35] leslie: has joined #ruby
[16:53:35] leslie: has joined #ruby
[16:53:41] EvilJStoker: has joined #ruby
[16:53:53] canton7: has joined #ruby
[16:54:07] Gaelan: has joined #ruby
[16:54:50] filippos: sorry dc, hxegon saw your comment from the log, it's just doing an && on the values for now, i want to log them before i return them but dont want the logger.info ".." to interfere with the return. Just wondering about the "shorthand" notation.. eg: this https://gist.github.com/filipposc5/97719fa9dd885ace6d58
[16:54:52] stannard: has joined #ruby
[16:55:11] BTRE: has left #ruby: ("Leaving")
[16:55:24] hxegon: ?rails filippos
[16:55:25] ruboto: filippos, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[16:55:38] tenseiten: has joined #ruby
[16:55:39] tenseiten: has joined #ruby
[16:55:45] hxegon: probably a better place to get that answered
[16:55:54] kaspergrubbe: has joined #ruby
[16:57:12] rodfersou: has joined #ruby
[16:57:53] lucasr: has joined #ruby
[16:58:11] filippos: hxegon: alright thanks
[16:58:17] _whitelogger: has joined #ruby
[16:58:18] drPoggs: has joined #ruby
[16:59:02] leslie: has joined #ruby
[16:59:02] leslie: has joined #ruby
[16:59:38] tekacs: has joined #ruby
[16:59:54] oddmunds: has joined #ruby
[17:00:48] JoL1hAHN: has joined #ruby
[17:01:25] cdg: has joined #ruby
[17:02:09] colegatron: has joined #ruby
[17:02:12] EvilJStoker: has joined #ruby
[17:02:14] JStoker: has joined #ruby
[17:02:36] peeja: has joined #ruby
[17:02:56] acarpe: has joined #ruby
[17:03:03] centrx: has joined #ruby
[17:03:17] Guest38: has joined #ruby
[17:04:10] havenwood: hal_9000_: Ah, didn't see you'd posted it here as well! :)
[17:05:48] rgtk: has joined #ruby
[17:05:59] hal_9000_: havenwood: ah hello again :)
[17:06:22] havenwood: hal_9000_: checking it out
[17:06:27] Meow-J: has joined #ruby
[17:07:50] centrx: has joined #ruby
[17:08:10] duckpuppy: has joined #ruby
[17:10:32] cdg: has joined #ruby
[17:11:43] s2013: has joined #ruby
[17:12:18] hxegon: hal_9000_ I'll check it out, but from the description it sounds cool :)
[17:12:44] thejamespinto: has joined #ruby
[17:13:09] _whitelogger: has joined #ruby
[17:13:20] drPoggs: has joined #ruby
[17:13:22] tekacs: has joined #ruby
[17:13:26] ammar: has joined #ruby
[17:13:36] lnx: has joined #ruby
[17:13:42] Drakevr: has joined #ruby
[17:14:03] Takumo-: has joined #ruby
[17:14:18] [spoiler]: has joined #ruby
[17:14:19] lucasr: has joined #ruby
[17:14:23] canton7: has joined #ruby
[17:14:32] kaspergrubbe: has joined #ruby
[17:17:06] wolffles: has joined #ruby
[17:20:03] lucasr: has joined #ruby
[17:20:17] ammar: has joined #ruby
[17:20:52] Drakevr: has joined #ruby
[17:20:59] kaspergrubbe: has joined #ruby
[17:21:03] lnx: has joined #ruby
[17:21:08] _whitelogger: has joined #ruby
[17:21:10] canton7: has joined #ruby
[17:23:14] EvilJStoker: has joined #ruby
[17:23:14] JStoker: has joined #ruby
[17:23:49] robh71: has joined #ruby
[17:24:11] tekacs: has joined #ruby
[17:24:41] leslie: has joined #ruby
[17:24:41] leslie: has joined #ruby
[17:24:54] [spoiler]: has joined #ruby
[17:25:42] Takumo-: has joined #ruby
[17:25:50] lucasr: has joined #ruby
[17:26:47] bodgix: has joined #ruby
[17:26:58] weemsledeux: has joined #ruby
[17:27:52] _whitelogger: has joined #ruby
[17:27:56] drPoggs: has joined #ruby
[17:28:07] JoL1hAHN: has joined #ruby
[17:29:20] oddmunds: has joined #ruby
[17:29:34] canton7: has joined #ruby
[17:30:07] EvilJStoker: has joined #ruby
[17:31:03] Ripflame: has joined #ruby
[17:31:14] emptyflask: has joined #ruby
[17:31:15] cdg: has joined #ruby
[17:33:57] JoL1hAHN: has joined #ruby
[17:34:02] ammar: has joined #ruby
[17:34:03] Drakevr: has joined #ruby
[17:34:08] tekacs: has joined #ruby
[17:34:18] kaspergrubbe: has joined #ruby
[17:34:33] leslie: has joined #ruby
[17:34:33] leslie: has joined #ruby
[17:34:36] Takumo-: has joined #ruby
[17:34:46] oddmunds: has joined #ruby
[17:34:48] JStoker: has joined #ruby
[17:34:49] [spoiler]: has joined #ruby
[17:34:53] drPoggs: has joined #ruby
[17:34:59] lnx: has joined #ruby
[17:35:04] BSaboia: has joined #ruby
[17:35:10] cdg: has joined #ruby
[17:35:45] FernandoBasso: has joined #ruby
[17:35:48] _whitelogger: has joined #ruby
[17:36:23] bb010g: has joined #ruby
[17:38:58] cpup: has joined #ruby
[17:39:15] EvilJStoker: has joined #ruby
[17:39:15] JStoker: has joined #ruby
[17:42:56] varunwachaspati: has joined #ruby
[17:44:54] dfinninger: has joined #ruby
[17:45:46] aryaching: has joined #ruby
[17:46:04] sorbo_: has joined #ruby
[17:48:34] _whitelogger: has joined #ruby
[17:49:10] drPoggs: has joined #ruby
[17:49:23] minimalism: has joined #ruby
[17:49:26] cpup: has joined #ruby
[17:49:27] tekacs: has joined #ruby
[17:50:08] mistermocha: has joined #ruby
[17:50:22] EvilJStoker: has joined #ruby
[17:50:22] EvilJStoker: has joined #ruby
[17:50:44] zeroDivisible: has joined #ruby
[17:51:36] harai: has joined #ruby
[17:52:44] canton7: has joined #ruby
[17:54:12] azgil: has joined #ruby
[17:54:24] prestorium_: has joined #ruby
[17:54:31] tekacs: has joined #ruby
[17:54:35] _whitelogger: has joined #ruby
[17:54:48] JStoker: has joined #ruby
[17:54:48] JStoker: has joined #ruby
[17:54:51] [spoiler]: has joined #ruby
[17:54:55] drPoggs: has joined #ruby
[17:55:07] Takumo: has joined #ruby
[17:55:07] Takumo: has joined #ruby
[17:56:01] JoL1hAHN: has joined #ruby
[17:57:56] nanoz: has joined #ruby
[17:58:28] ammar: has joined #ruby
[17:58:52] andywojo: has joined #ruby
[17:59:12] kaspergrubbe: has joined #ruby
[17:59:48] PedramT: has joined #ruby
[18:05:05] Jardayn: has joined #ruby
[18:05:20] rkazak_: has joined #ruby
[18:07:09] PedramT: has joined #ruby
[18:07:09] tekacs: has joined #ruby
[18:07:18] Gaelan: has joined #ruby
[18:07:47] PedramT: has joined #ruby
[18:07:57] dirk1: has joined #ruby
[18:08:01] SylarRuby: has joined #ruby
[18:08:04] _whitelogger: has joined #ruby
[18:09:02] Drakevr: has joined #ruby
[18:09:04] duckpuppy: has joined #ruby
[18:09:07] lnx: has joined #ruby
[18:09:10] lucasr: has joined #ruby
[18:09:18] tekacs: has joined #ruby
[18:09:21] leslie: has joined #ruby
[18:09:21] leslie: has joined #ruby
[18:09:23] JStoker: has joined #ruby
[18:09:23] JStoker: has joined #ruby
[18:09:30] canton7: has joined #ruby
[18:09:39] ammar: has joined #ruby
[18:09:46] Takumo: has joined #ruby
[18:09:47] Takumo: has joined #ruby
[18:09:47] kaspergrubbe: has joined #ruby
[18:10:48] EvilJStoker: has joined #ruby
[18:11:27] pietr0: has joined #ruby
[18:12:04] sole: has joined #ruby
[18:14:31] Gaelan: has joined #ruby
[18:14:55] musl: has joined #ruby
[18:15:22] _whitelogger: has joined #ruby
[18:16:26] EvilJStoker: has joined #ruby
[18:16:28] karapetyan: has joined #ruby
[18:18:49] ammar: has joined #ruby
[18:19:38] stannard: has joined #ruby
[18:19:48] [spoiler]: has joined #ruby
[18:19:50] oddmunds: has joined #ruby
[18:19:54] kaspergrubbe: has joined #ruby
[18:20:24] Takumo: has joined #ruby
[18:20:24] Takumo: has joined #ruby
[18:20:29] Guest44663: has joined #ruby
[18:20:29] Guest44663: has joined #ruby
[18:21:59] _whitelogger: has joined #ruby
[18:23:01] lucasr: has joined #ruby
[18:23:59] drPoggs: has joined #ruby
[18:24:00] JoL1hAHN: has joined #ruby
[18:24:09] leslie: has joined #ruby
[18:24:09] leslie: has joined #ruby
[18:24:12] Gaelan: has joined #ruby
[18:24:50] EvilJStoker: has joined #ruby
[18:25:07] Ripflame: has joined #ruby
[18:25:40] Drakevr: has joined #ruby
[18:29:21] _whitelogger: has joined #ruby
[18:30:02] symm-: has joined #ruby
[18:30:31] thone: has joined #ruby
[18:30:32] cpup: has joined #ruby
[18:30:50] JStoker: has joined #ruby
[18:31:02] alem0lars: has joined #ruby
[18:31:56] yes`r: has joined #ruby
[18:33:14] perrier_: has joined #ruby
[18:33:29] AlexTheLion: has joined #ruby
[18:34:38] zotherstupidguy: i love you all!!! happy new year!!!!
[18:35:45] cdg_: has joined #ruby
[18:37:35] cpup: has joined #ruby
[18:37:41] firstdayonthejob: has joined #ruby
[18:37:50] davedev24: has joined #ruby
[18:38:15] AlexTheLion: Happy New Year :)
[18:38:41] build22: has joined #ruby
[18:40:14] jondot: has joined #ruby
[18:40:43] Ox0dea: >> h, m = (Time.new(2016) - Time.now).divmod 3600; m, s = m.divmod 60; '%02d:%02d:%02d' % [h,m,s]
[18:40:44] ruboto: Ox0dea # => "05:19:15" (https://eval.in/496019)
[18:42:01] AlexTheLion: Wait you can write ruby code in the chat ? (sorry if that's not really an bit thing I am new to the community)
[18:42:10] edwardly: has joined #ruby
[18:42:15] Ox0dea: One timezone for the betterment of global celebration!
[18:42:28] Gaelan: has joined #ruby
[18:43:25] _blizzy_: has joined #ruby
[18:43:39] adaedra: AlexTheLion: there's a website explaining all of that, see topic.
[18:44:15] colegatron: has joined #ruby
[18:44:26] Ox0dea: AlexTheLion: You can write Ruby code anywhere! Even in the sand with a stick.
[18:44:30] _blizzy_: is there a way to reference self while using map? like if Im mapping an array which is assigned to variable 'a', is there a way to reference a while in the map?
[18:44:38] _blizzy_: I've tried self, but that's not valid.
[18:44:44] Ox0dea: _blizzy_: You want #tap, I guess.
[18:45:10] _blizzy_: thanks, Ox0dea
[18:45:15] Ox0dea: Sure thing.
[18:45:27] Ox0dea: You'll still have to name the block parameter, mind.
[18:46:33] hxegon: has joined #ruby
[18:46:40] Ox0dea: Better just to create the local variable, really.
[18:47:05] pawnbox: has joined #ruby
[18:47:27] Ox0dea: Alternatively, find a way to do your transformation without having to be self-referential.
[18:48:04] cautree: has joined #ruby
[18:48:51] techietrash: has joined #ruby
[18:49:19] thejamespinto: has joined #ruby
[18:49:45] AlexTheLion: Ox0dea I have tried writting Ruby on sand it wouldn't run, ruby wasn't installed by default.
[18:49:48] _whitelogger: has joined #ruby
[18:49:54] JoL1hAHN: has joined #ruby
[18:50:17] Domaldel: has joined #ruby
[18:50:39] Ox0dea: AlexTheLion: You'll have to take that up with management: https://en.wikipedia.org/wiki/Hydrogen
[18:50:50] Ox0dea: But I agree it's a bug.
[18:52:40] _whitelogger: has joined #ruby
[18:52:57] leslie: has joined #ruby
[18:52:57] leslie: has joined #ruby
[18:53:18] emptyflask: has joined #ruby
[18:53:38] cautree: has left #ruby: ()
[18:53:51] fantazo: has joined #ruby
[18:56:30] tenseiten: has joined #ruby
[18:57:12] arup_r: has joined #ruby
[18:57:57] dfinninger: has joined #ruby
[18:59:52] ellisTAA: has joined #ruby
[19:02:06] ellisTAA: i???m trying to grab what???s after belongs_to and before the new line " belongs_to :badge_type\n"
[19:02:18] Ox0dea: Prove it.
[19:02:36] pawnbox: has joined #ruby
[19:04:00] slash_nick: ellistaa: what do you mean... also, fairly railsy question for #ruby, no?
[19:04:07] loganrice: has joined #ruby
[19:04:10] drPoggs: has joined #ruby
[19:04:20] Ox0dea: ellistaa: What have you tried?
[19:04:21] ellisTAA: slash_nick: well its a regex question so i dont think its railsy.
[19:04:23] JStoker: has joined #ruby
[19:04:23] EvilJStoker: has joined #ruby
[19:04:42] ellisTAA: i tried (belongs_to).+ based on http://stackoverflow.com/questions/13924274/regex-matching-text-after-certain-characters but that didn???t work
[19:05:18] Ox0dea: >> " belongs_to :badge_type\n"[/(:\w+)/, 1] # ellistaa
[19:05:19] ruboto: Ox0dea # => ":badge_type" (https://eval.in/496027)
[19:05:41] Ox0dea: I don't understand how you've come to have such a string, but if it's really that clean, that should do.
[19:05:41] ellisTAA: Ox0dea: could u explain that for me
[19:06:00] Ox0dea: ellistaa: It matches the ':' and all the "word" characters after.
[19:06:12] Ox0dea: \w == [A-Za-z0-9_]
[19:06:37] JoL1hAHN: has joined #ruby
[19:07:38] ellisTAA: Ox0dea: whats the point of the parentheses
[19:07:40] Ox0dea: String#[] has many signatures, one of which is (Regexp, Fixnum) for matching and then selecting a capture group.
[19:07:44] _whitelogger: has joined #ruby
[19:07:47] ellisTAA: they???re not necessary right
[19:07:50] Ox0dea: They are.
[19:07:55] Ox0dea: They create a capture group.
[19:07:56] kegan_: has joined #ruby
[19:09:15] ellisTAA: Ox0dea: thanks for the help. but i didn???t have to use the parentheses
[19:09:25] loganrice: has left #ruby: ()
[19:09:26] ellisTAA: at least rubular.com didn???t require it
[19:10:01] Ox0dea: Oh, right. I derped a little.
[19:10:19] Ox0dea: >> " belongs_to :badge_type\n"[/:\w+/]
[19:10:20] ruboto: Ox0dea # => ":badge_type" (https://eval.in/496028)
[19:10:37] ElFerna: has joined #ruby
[19:10:43] ellisTAA: but how do i capture it? extract it
[19:10:50] ellisTAA: regex just seems to tell me if it exists
[19:11:10] ellisTAA: i want to grab badge_type or wahtever the thing belongs to
[19:11:17] ellisTAA: not just check if it exists
[19:11:34] ellisTAA: how would u grab that?
[19:11:48] Ox0dea: "Grab" as in put it in a variable...?
[19:11:59] Ox0dea: Put it in a variable...
[19:12:01] slash_nick: ellistaa: the code sample he just ran returns ":badge_type"...
[19:12:34] slash_nick: >> what_you_want = " belongs_to :badge_type\n"[/:\w+/]; what_you_want
[19:12:35] ruboto: slash_nick # => ":badge_type" (https://eval.in/496029)
[19:12:44] ellisTAA: Ox0dea: stuff = line =~ /belongs_to :\w+/ that didn???t work
[19:13:15] slash_nick: ellistaa: use String#[]
[19:13:15] Ox0dea: ellistaa: String#=~ is not String#[], silly.
[19:13:35] Scripore: has joined #ruby
[19:13:44] snockerton: has joined #ruby
[19:13:48] pawnbox: has joined #ruby
[19:13:59] slash_nick: ... you're using =~... use []...
[19:14:36] slash_nick: `line[/:\w+/]` versus `line =~ ...`
[19:14:44] harai54: has joined #ruby
[19:14:53] makenoise: has joined #ruby
[19:16:46] pawnbox_: has joined #ruby
[19:17:40] karapetyan: has joined #ruby
[19:20:00] makenoise: has joined #ruby
[19:20:52] andywojo: has joined #ruby
[19:22:08] Gaelan: has joined #ruby
[19:22:58] puria: has joined #ruby
[19:23:02] ellisTAA: has joined #ruby
[19:23:46] shevy: is there a simple way to, if we have a string: x = 'abcdefabcabcabc', return an Array that has the position of all 'a'? so the result would be: [0,6,9 ... etc] ?
[19:24:29] hostess: has joined #ruby
[19:25:22] juddey: has joined #ruby
[19:25:32] lxsameer: has joined #ruby
[19:25:59] Ox0dea: shevy: You've asked this question.
[19:26:05] Ox0dea: And received several answers.
[19:26:14] hxegon: shevy each_with_index.inject
[19:27:16] Ripflame: has left #ruby: ()
[19:27:38] shevy: Ox0dea please stop wasting our time
[19:27:41] shevy: thanks hxegon
[19:28:14] makenoise: has joined #ruby
[19:28:36] Gaelan: has joined #ruby
[19:29:43] BlackCoyote: has joined #ruby
[19:30:03] bithon: has joined #ruby
[19:30:31] Ox0dea: shevy: http://logs.ryanbigg.com/ruby?date=2015-11-07#4504213
[19:30:53] Ox0dea: What the fuck is wrong with you, man?
[19:31:14] shevy: Ox0dea can you please stop wasting our time, boy?
[19:31:35] Ox0dea: I am genuinely concerned for your well-being.
[19:31:41] shevy: Ox0dea if you don't wanna help that's fine
[19:31:55] Ox0dea: shevy: Solutions right after your question in the link.
[19:31:58] Ox0dea: Mine's first.
[19:32:25] shevy: hxegon helped already, it is solved
[19:33:17] vikaton: has joined #ruby
[19:34:40] artX000: has joined #ruby
[19:35:15] BlackCoyote: has joined #ruby
[19:37:05] senayar: has joined #ruby
[19:37:06] senayar: has joined #ruby
[19:37:32] dtordable: has joined #ruby
[19:38:36] nertzy: has joined #ruby
[19:40:05] s2013: has joined #ruby
[19:40:07] zacts: happy new year ruby!
[19:40:39] shevy: 3 hours to go!
[19:41:11] hxegon: 12 of those left for me :P
[19:41:21] Gaelan: 12 hrs and 19 minutes :)
[19:41:34] hxegon: ma PST brotha
[19:41:50] hxegon: (or sista)
[19:42:01] Scripore: has joined #ruby
[19:42:05] s2013: has joined #ruby
[19:42:46] build22: has joined #ruby
[19:43:36] Gaelan: >> (Time.new('2016-01-01') - Time.now)/3600
[19:43:37] ruboto: Gaelan # => 4.2732042237894445 (https://eval.in/496031)
[19:43:53] kadoppe: has joined #ruby
[19:44:07] CorySimmons: has joined #ruby
[19:44:17] Ox0dea: >> h, m = (Time.new(2016) - Time.now).divmod 3600; m, s = m.divmod 60; '%02d:%02d:%02d' % [h,m,s]
[19:44:19] ruboto: Ox0dea # => "04:15:41" (https://eval.in/496032)
[19:44:34] freerobby: has joined #ruby
[19:44:59] Gaelan: >> Time.new.zone
[19:45:00] ruboto: Gaelan # => "UTC" (https://eval.in/496033)
[19:45:20] Ox0dea: It's the neutral position.
[19:45:40] Zarthus: Not everyone agrees with that timezone though
[19:45:52] dorei: what's the difference between utc and gmt? is gmt just utc + daylight time saving or are there other differences?
[19:46:14] Ox0dea: They're the same thing?
[19:46:50] mdw: has joined #ruby
[19:46:50] dorei: i think utc has no daylight time saving, while gmt has, aint sure though
[19:47:03] Ox0dea: They're the same thing.
[19:47:04] blub: gmt doesn't use daylight savings time
[19:47:19] Ox0dea: Nor does UTC.
[19:47:27] Ox0dea: They're the same thing.
[19:47:38] peeja_: has joined #ruby
[19:47:41] Gaelan: I know there???s some difference, not sure what it is
[19:47:45] Ox0dea: They're the same thing.
[19:47:50] dorei: oh, it's more weird
[19:47:55] dorei: http://stackoverflow.com/questions/1612148/gmt-vs-utc-dates
[19:48:02] Gaelan: For most practical purposes, they can be ocnsidered equivelent.
[19:48:16] dorei: "One is measured from the sun and another from an atomic clock." xD
[19:48:19] Gaelan: equivalent*
[19:49:08] Ox0dea: Gaelan: When might they not be considered equivalent?
[19:49:36] lipoqil: has joined #ruby
[19:50:08] rkazak: has joined #ruby
[19:50:20] thejamespinto: has joined #ruby
[19:50:57] Gaelan: Ox0dea: When the distinction between a time measured by the sun and a time measured by an atomic clock matters. :)
[19:51:22] Gaelan: Mostly it???s a pedantic thing.
[19:52:31] ElFerna: has joined #ruby
[19:53:39] scottschecter: has joined #ruby
[19:53:57] dlitvak: has joined #ruby
[19:55:43] RegulationD: has joined #ruby
[19:57:25] PedramT: has joined #ruby
[19:59:09] dfinninger: has joined #ruby
[19:59:46] nfk|laptop: has joined #ruby
[20:00:51] marik: has joined #ruby
[20:01:38] marik: hello, i'm getting undefined method `each' for nil:NilClass when i try to run this; http://pastebin.com/3fwVgzjB why?
[20:01:38] ruboto: marik, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[20:02:11] Zarthus: marik: because @geo.city(query) returns nil.
[20:02:20] marik: nope it doesn't
[20:02:41] marik: i'm printing it after each block
[20:02:55] Zarthus: Have you tried? because based on the code you're showing us, @geo is not defined.
[20:03:22] marik: i know it's weird, but it really not nil
[20:03:32] toretore: AD-BLOCK DETECTED - PLEASE SUPPORT PASTEBIN BY BUYING A PRO ACCOUNT
[20:03:34] marik: i just ran it
[20:03:44] havenwood: marik: On line 5 try: p geoInfo
[20:03:48] toretore: marik, put full code on gist.github.com
[20:03:51] PedramT: has joined #ruby
[20:03:52] marik: sure will do
[20:07:19] marik: https://gist.github.com/anonymous/a31548037bf8873845b8
[20:07:33] marik: as you can see it isn't nil
[20:09:40] duckpuppy: has joined #ruby
[20:11:01] Ox0dea: >> Struct.instance_methods.include? :each # marik
[20:11:02] ruboto: Ox0dea # => true (https://eval.in/496043)
[20:11:23] edwardly: has joined #ruby
[20:11:32] Ox0dea: If `geoInfo` were in fact a Struct, you simply would not be receiving the NoMethodError.
[20:12:30] Ox0dea: You're either deliberately thwarting our efforts to assist you, or there are demons in your interpreter.
[20:12:40] Uranio: has joined #ruby
[20:13:34] marik: Ox0dea here's the function im using https://gist.github.com/anonymous/548fa59fabe8a7ee2b46
[20:14:08] PedramT: has joined #ruby
[20:15:01] robh71: has joined #ruby
[20:15:23] Ox0dea: marik: Consult an exorcist.
[20:16:32] slash_nick: marik: i don't believe the error is "for nil:NilClass"
[20:17:43] Dimik: has joined #ruby
[20:18:40] Gaelan: What is geoInfo.class?
[20:19:02] slash_nick: claims "Struct"
[20:19:03] Gaelan: marik: ^^
[20:19:13] hagabaka: has joined #ruby
[20:19:27] ta0: has joined #ruby
[20:19:31] nertzy: has joined #ruby
[20:19:38] millerti: has joined #ruby
[20:20:10] s2013: has joined #ruby
[20:20:23] slash_nick: Gaelan: hmm .. his gist claims it's GeoIP::City, not sure why it's not Struct::Something
[20:20:40] _whitelogger: has joined #ruby
[20:20:48] ta0: is there an easy way to find an index of an object in an array that has been .cycle'd?
[20:21:25] slash_nick: ta0: why does it matter that it's been cycled? are you trying to get at it's original index before being cycled or something?
[20:22:10] _blizzy_: write 200 lines of ruby. run rake file, deletes ruby file
[20:22:19] ta0: no, i really just need to be able to look back one index before and after a certain index
[20:22:22] _blizzy_: install file recovery program, file recovery program overwrites ruby file
[20:22:45] _blizzy_: well, not fml, it's just kind of annoying.
[20:23:00] hxegon: _blizzy_ : https://git-scm.com/
[20:23:15] _blizzy_: hxegon, the problem with that is that
[20:23:19] slash_nick: ta0: not sure i know what you mean...
[20:23:22] _blizzy_: the rakefile deleted EVERYTHING in the folder
[20:23:34] hxegon: https://github.com
[20:23:35] marik: apologies, i actually pasted wrong code
[20:23:40] _blizzy_: hxegon, true.
[20:23:45] slash_nick: _blizzy_: including .git/?
[20:23:49] ta0: slash_nick: im implementing reversible automata, so I have this array of states in order, so that it wraps around
[20:23:52] ta0: with .cycle
[20:23:58] _blizzy_: slash_nick, I didn't have a .git folder in the first place.
[20:24:03] _blizzy_: I use git, I just wasn't thinking.
[20:24:12] ta0: i need to be able to find the index of a certain state, and subtract or add one to whatever that index is
[20:24:12] _blizzy_: luckily I gisted part of the code.
[20:24:21] marik: https://gist.github.com/anonymous/2691fbfd1e181a586b95
[20:24:35] marik: it fails if v is actually nil
[20:24:38] slash_nick: ta0: so given index n, you want an array with [n-1, n, n+1]?
[20:24:40] marik: otherwise nothing happens
[20:24:57] ta0: no i just want to know how to find n in an array that has been cycled
[20:25:32] ta0: because cycle returns an enumerator, which doesnt have .index
[20:25:48] ta0: my enum-fu is weak
[20:26:03] EvilJStoker: has joined #ruby
[20:26:03] EvilJStoker: has joined #ruby
[20:26:44] drPoggs: has joined #ruby
[20:26:50] ta0: that defeats the purpose of it though, because I'll have to write in the logic of wrapping around indices at the front and back
[20:26:50] SylarRuby: has joined #ruby
[20:27:06] marik: i have tried .map as well, it fails if v is nil
[20:27:15] cpup: has joined #ruby
[20:27:34] havenwood: marik: What are you calling #each on?
[20:27:35] startupality: has joined #ruby
[20:27:51] gizmore: has joined #ruby
[20:28:04] marik: havenwood: https://gist.github.com/anonymous/548fa59fabe8a7ee2b46
[20:28:19] slash_nick: ta0: can you help me by giving me the original array and the argument you supply to cycle?
[20:28:26] JoL1hAHN: has joined #ruby
[20:28:27] havenwood: marik: So what is that error telling you? What are you calling #each upon?
[20:28:30] JStoker: has joined #ruby
[20:28:39] havenwood: marik: undefined method `each' for nil:NilClass
[20:28:52] havenwood: >> nil.each do |v|; end
[20:28:52] Gaelan: marik: can you provide enough code for us to run/reproduce the error ourselves?
[20:28:53] ruboto: havenwood # => undefined method `each' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/496045)
[20:29:15] Scripore: has joined #ruby
[20:29:22] ta0: i may have actually just solved it, slash_nick. seems that the enumerator documentation on ruby-doc.org doesnt include #find_index
[20:30:19] slash_nick: ta0: neat... that's because it's here: http://ruby-doc.org/core-2.2.3/Enumerable.html#method-i-find_index
[20:30:56] ta0: i was looking at Enumerator
[20:31:18] slash_nick: it does include #find_index... Cycle docs don't?
[20:31:42] ta0: already knew about, so i didnt look
[20:31:46] slash_nick: ACTION facepalms... cycle isn't a class
[20:31:53] ta0: i meant what you knew
[20:32:30] ta0: i didnt know Enumerator had Enumerable methods because im an idiot
[20:34:43] Scripore: has joined #ruby
[20:36:59] PedramT_: has joined #ruby
[20:37:52] renderful: has joined #ruby
[20:39:08] Gaelan: has joined #ruby
[20:39:41] bradleyprice: has joined #ruby
[20:41:02] EvilJStoker: has joined #ruby
[20:41:16] _whitelogger: has joined #ruby
[20:41:51] JoL1hAHN: has joined #ruby
[20:41:51] makenoise: has joined #ruby
[20:41:55] PedramT: has joined #ruby
[20:41:59] waheedi: has joined #ruby
[20:42:00] bradleyp_: has joined #ruby
[20:42:02] JStoker: has joined #ruby
[20:42:17] waheedi: When i do gem install amqp -v 1.0.2 I get Error installing amqp:amq-protocol requires Ruby version >= 2.0.
[20:42:28] waheedi: which is really strange as amqp does not need ruby 2.
[20:43:16] robh71: has joined #ruby
[20:43:26] slash_nick: Waheedi: https://github.com/ruby-amqp/amq-protocol/blob/master/amq-protocol.gemspec#L20
[20:44:08] waheedi: slash_nick: amq-protocol 1.9.2 was the last version to support Ruby 1.8 and 1.9. amq-protocol 2.0.0 and later only supports Ruby 2.0+.
[20:44:08] havenwood: Waheedi: Preferably use a supported, tested version of Ruby: https://github.com/ruby-amqp/amq-protocol/blob/master/.travis.yml#L5-L8
[20:44:12] slash_nick: Waheedi: PR amqp to fix that requirement :)
[20:44:25] slash_nick: (amqp should also require 2.0)
[20:44:50] waheedi: but that should be dependent on which amqp version you install isn't it? slash_nick ?
[20:45:52] Gaelan: Maybe marik???s demon was this: def p(obj); puts obj.inspect; class << obj; instance_methods.each { |n| undef_method n }; def method_missing *args; nil.send *args; end; end
[20:47:16] waheedi: the way it worked for me, u need to install amq-protocol-1.9.2 first then install amqp and amqp-client if you want then it won't ask for ruby > 2.0
[20:47:40] _whitelogger_: has joined #ruby
[20:48:24] ur5us: has joined #ruby
[20:48:26] leslie: has joined #ruby
[20:48:26] leslie: has joined #ruby
[20:48:32] JStoker: has joined #ruby
[20:48:39] havenwood: Not long 'till 2.0 is End-of-Lifed!
[20:49:03] millerti: has joined #ruby
[20:49:34] pawnbox: has joined #ruby
[20:49:38] waheedi: thats always good to hear havenwood
[20:50:23] waheedi: thx slash_nick and havenwood for your help, happy ny
[20:52:18] baweaver: has joined #ruby
[20:53:16] lemur: has joined #ruby
[20:54:22] BlackCoyote: has joined #ruby
[20:54:46] sgambino: has joined #ruby
[20:54:59] PedramT_: has joined #ruby
[20:56:34] millerti: has joined #ruby
[20:57:27] tenseiten: has joined #ruby
[20:59:04] FailBit: has joined #ruby
[20:59:48] dfinninger: has joined #ruby
[20:59:58] juddey: has joined #ruby
[21:00:18] cpup: has joined #ruby
[21:00:38] FailBit: how does the "Array()" initializer work?
[21:01:01] FailBit: looking in array.c, isn't part of the class def
[21:01:29] _whitelogger: has joined #ruby
[21:01:51] JoL1hAHN: has joined #ruby
[21:01:56] JoL1hAHN: has joined #ruby
[21:02:07] karapetyan: has joined #ruby
[21:03:04] EvilJStoker: has joined #ruby
[21:03:04] JStoker: has joined #ruby
[21:03:46] Hammy_Work: has joined #ruby
[21:04:20] robbyoconnor: has joined #ruby
[21:04:28] curses: has joined #ruby
[21:09:38] shevy: FailBit isn't it just a method?
[21:10:27] FailBit: defined?(Array)
[21:10:30] FailBit: => "constant"
[21:11:35] EvilJStoker: has joined #ruby
[21:12:29] ohaibbq: has joined #ruby
[21:12:36] FailBit: >> def Capitalmethod; end; defined?(Capitalmethod) # shevy
[21:12:37] ruboto: FailBit # => nil (https://eval.in/496072)
[21:12:39] rodfersou: has joined #ruby
[21:12:47] blackgoat: has joined #ruby
[21:12:53] shevy: >> defined? Array()
[21:12:54] ruboto: shevy # => "method" (https://eval.in/496073)
[21:13:08] bradleyprice: has joined #ruby
[21:13:24] akem: has joined #ruby
[21:13:32] cfa6rtx8: has joined #ruby
[21:13:40] shevy: should be http://ruby-doc.org/core-2.2.3/Kernel.html#method-i-Array
[21:13:54] skcin7: has joined #ruby
[21:14:06] shevy: static VALUE rb_f_array(VALUE obj, VALUE arg){ return rb_Array(arg); }
[21:14:13] FailBit: well there it is
[21:14:16] colegatron: has joined #ruby
[21:14:57] mrchris: has joined #ruby
[21:15:36] gizmore: is there a way to clear which files have been already required via require?
[21:15:56] gizmore: i need reloading code at runtime... but also need something like requireonce -.-
[21:16:15] naftilos76: has joined #ruby
[21:16:29] rickmasta: has joined #ruby
[21:17:22] jmonreal: has joined #ruby
[21:18:17] EdG3: has joined #ruby
[21:19:04] millerti: has joined #ruby
[21:19:58] tubuliferous_: has joined #ruby
[21:21:45] millerti: has joined #ruby
[21:21:53] FailBit: has left #ruby: ("WeeChat 0.4.2")
[21:31:11] millerti: has joined #ruby
[21:34:15] griff: has joined #ruby
[21:34:40] emptyflask: has joined #ruby
[21:35:11] robh71: has joined #ruby
[21:35:49] fantazo: has joined #ruby
[21:37:53] EdG3: has left #ruby: ()
[21:39:27] PedramT: has joined #ruby
[21:40:29] Ox0dea: Gaelan: `undef_method *instance_methods`, for future reference.
[21:40:41] Gaelan: Ox0dea: clever!
[21:41:34] millerti: has joined #ruby
[21:42:04] Ox0dea: gizmore: You probably do want Kernel#load, but you can also circumvent Kernel#require's deduplication efforts by mutating $LOADED_FEATURES.
[21:42:33] puria: has joined #ruby
[21:43:56] minimalism: has joined #ruby
[21:45:17] mdw: has joined #ruby
[21:49:16] mlue: has joined #ruby
[21:52:46] hagabaka: has joined #ruby
[21:53:08] MattV: has joined #ruby
[21:53:41] gizmore: thanks Ox0dea ... i am using load everywhere, but now had the problem that reload was not safe for some cases... i just made the cases safe :)
[21:53:42] s00pcan: has joined #ruby
[21:54:56] DavidDudson: has joined #ruby
[21:58:29] hagebake: has joined #ruby
[22:00:29] dtordable: has joined #ruby
[22:01:03] mdw: has joined #ruby
[22:01:21] hagebake: has joined #ruby
[22:02:22] blt: has joined #ruby
[22:02:47] yqt: has joined #ruby
[22:04:16] peeja: has joined #ruby
[22:04:25] cfa6rtx8: has joined #ruby
[22:05:22] AlexTheLion: has joined #ruby
[22:07:16] shadoi: has joined #ruby
[22:07:57] devoldmx: has joined #ruby
[22:10:20] ascarter: has joined #ruby
[22:10:28] duckpuppy: has joined #ruby
[22:11:52] MattV: Can anyone recommend a Ruby HTTP mirror in the U.S. that's up-to-date? A lot of the ones listed on the Mirror Site page (https://www.ruby-lang.org/en/downloads/mirrors/) appear to be out-of-date or no longer running.
[22:12:07] hololeap: has joined #ruby
[22:12:30] devoldmx: has joined #ruby
[22:12:55] PedramT_: has joined #ruby
[22:18:20] peeja: has joined #ruby
[22:18:51] stannard: has joined #ruby
[22:20:43] thejamespinto: has joined #ruby
[22:21:10] s2013: has joined #ruby
[22:23:31] vikas027: has joined #ruby
[22:23:42] PedramT: has joined #ruby
[22:27:35] andywojo: has joined #ruby
[22:27:46] FooMunki: has joined #ruby
[22:27:52] speakingcode: has joined #ruby
[22:28:50] rkazak: has joined #ruby
[22:29:27] millerti: has joined #ruby
[22:30:59] DavidDudson: has joined #ruby
[22:32:02] shevy: "wget ftp://ftp.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0.tar.xz" would not be ok MattV?
[22:33:53] Gaelan: has joined #ruby
[22:35:28] CorySimmons: has joined #ruby
[22:35:37] s2013: has joined #ruby
[22:37:37] devbug: has joined #ruby
[22:38:45] chipotle: has joined #ruby
[22:39:30] chipotle: so i want to build a basic personal website which would have my research info, links to pdf's of papers i've written, a blog (with comments...thinking about using disquis for the comments), a contact form and maybe some pictures. i have a lot of experience building websites with drupal but i really want to learn a ruby framework and i thought the best way to learn would be by making. so i thought i'd work on a simple website first, then as i feel more
[22:39:30] chipotle: comfortable, migrate a large (1500 pages, lots of dynamic features, about 75k UVs a month) site to a ruby framework (most likely RoR but i've also been told to try sinatra.
[22:40:08] chipotle: i thought for my personal site i'd build it with nanoc or jekyll, since they are both static (easy to maintain) and ligthweight
[22:40:15] chipotle: just wondering about the jekyll, sinatra and nanoc community...if i get stuck will i be able to get newbie help? are there lots of gems available for jekyll/nanoc so i don't have to build basic features from scratch (like a contact form)? in drupal, add ons are called modules...
[22:40:27] mooe: has joined #ruby
[22:43:39] MattV: shevy: I'm trying to compare several mirrors, to find one that's fast for me. I'll add ruby-lang.org to the ones I'm comparing.
[22:44:42] Gaelan: has joined #ruby
[22:45:03] zenlot1: has joined #ruby
[22:47:24] kfpratt: has joined #ruby
[22:49:41] karapetyan: has joined #ruby
[22:52:22] peeja: has joined #ruby
[22:52:26] Jardayn: has joined #ruby
[22:52:27] stannard: has joined #ruby
[22:56:26] yfeldblum: has joined #ruby
[22:57:56] peeja: has joined #ruby
[22:58:13] jondot: has joined #ruby
[22:58:18] tenseiten: has joined #ruby
[22:58:19] fantazo: has joined #ruby
[22:58:38] phredus: has joined #ruby
[22:59:14] bkxd: has joined #ruby
[23:01:22] atomical: has joined #ruby
[23:01:32] dfinninger: has joined #ruby
[23:02:03] chipotle_: has joined #ruby
[23:02:39] baweaver: has joined #ruby
[23:04:56] iateadonut: has joined #ruby
[23:04:57] FernandoBasso: has joined #ruby
[23:05:12] ur5us: has joined #ruby
[23:05:41] curses: has joined #ruby
[23:10:16] Elysia: has joined #ruby
[23:10:58] dlitvak: has joined #ruby
[23:11:12] andywojo: has joined #ruby
[23:11:22] ur5us: has joined #ruby
[23:11:24] Elysia: has joined #ruby
[23:12:45] Elysia: has joined #ruby
[23:13:57] ruid: has joined #ruby
[23:13:57] ruid: has joined #ruby
[23:16:17] bradleyprice: has joined #ruby
[23:18:55] tAn: has joined #ruby
[23:19:42] weemsledeux: has joined #ruby
[23:20:04] bkxd: has joined #ruby
[23:22:18] alphaatom: has joined #ruby
[23:25:41] waheedi: has joined #ruby
[23:25:42] dtordable2: has joined #ruby
[23:29:33] pawnbox: has joined #ruby
[23:31:17] gizmore: Happy New Year shevy! thanks for your nice support the past year(s) :)
[23:31:22] gizmore: you, sire, are awesome
[23:31:36] shevy: hey gizmo
[23:31:42] shevy: I always think of gremlins when I read your nick
[23:31:54] shevy: you will not get any water in new year!
[23:32:01] dtordable2: has joined #ruby
[23:32:07] gizmore: Gizmore means guess more and is a parody on the gremlins movie. Also a gremlin means unknown hardware issues, appropiate for my master.
[23:32:24] gizmore: quote of a creature i coded up
[23:33:02] shevy: about the first thing I learned in 2016 hahaha
[23:33:04] gizmore: did you hear about the cookie deserialization exploit in rails?
[23:33:26] gizmore: its quite old meanwhile... do you know if its fixed?
[23:33:51] gizmore: background is, i coded up a demo site to exploit... with public secrets.yml key
[23:34:01] gizmore: but i am not sure if its fixed meanwhile
[23:34:04] shevy: nope, no idea... rails is still on my ever growing todo list
[23:34:30] gizmore: i started with rails due to my work
[23:34:34] luluapple: has joined #ruby
[23:34:56] gizmore: after a year i liked ruby, and coded an irc bot with it, for own purposes
[23:34:59] chipotle: has joined #ruby
[23:35:25] gizmore: wanna peek the source for a second?
[23:35:44] bkxd: has joined #ruby
[23:37:17] shevy: I am debugging something right now so my replies may take a bit
[23:38:12] gizmore: https://github.com/gizmore/ricer2
[23:38:57] gizmore: https://github.com/gizmore/ricer2/tree/master/app/models/ricer/plugins/twitter ??? a plugin that allows you to abbonement twitter tags,users and search terms
[23:39:29] devoldmx: has joined #ruby
[23:40:40] skcin7: has joined #ruby
[23:44:15] skcin7: has joined #ruby
[23:47:17] bithon: has joined #ruby
[23:49:41] yorickpeterse: Happy new year!
[23:49:49] yorickpeterse: 2015 is so last year
[23:50:41] luluapple: has joined #ruby
[23:53:13] bkxd: has joined #ruby
[23:54:22] rodfersou: has joined #ruby
[23:55:14] gizless: has joined #ruby
[23:55:25] hxegon: *so yesterday
[23:57:04] CloCkWeRX1: has joined #ruby