« Back to channel list

#ruby - 23 July 2016

« Back 1 day Forward 1 day »
[00:02:56] dennisvennink: has joined #ruby
[00:03:52] macsteps: has joined #ruby
[00:04:57] nando293921: has joined #ruby
[00:07:08] _Sucks: has joined #ruby
[00:08:36] _Sucks: has joined #ruby
[00:10:19] dennisvennink: has joined #ruby
[00:11:31] Dimik--: has joined #ruby
[00:16:46] devbug: has joined #ruby
[00:21:12] ClayCons: has joined #ruby
[00:21:18] kies: has joined #ruby
[00:21:52] Sammichmaker: has joined #ruby
[00:25:05] JeanCarloMachado: has joined #ruby
[00:31:56] wrkrcoop: has joined #ruby
[00:32:05] abhinavmehta: has joined #ruby
[00:35:48] arescorpio: has joined #ruby
[00:36:34] underplank: has joined #ruby
[00:47:10] madsa: has joined #ruby
[00:48:24] nankyokusei: has joined #ruby
[00:50:24] biox: has joined #ruby
[00:50:38] dkam__: has joined #ruby
[00:54:14] devbug: has joined #ruby
[00:58:29] douglascorrea: has joined #ruby
[00:59:10] madsa: has joined #ruby
[01:02:12] dkam___: has joined #ruby
[01:09:01] jaguarmagenta: has joined #ruby
[01:12:53] dvinciguerra_: has joined #ruby
[01:13:10] hahuang61: has joined #ruby
[01:14:29] rickmasta: has joined #ruby
[01:15:46] LoneHerm_: has joined #ruby
[01:16:29] EbokianKnight: has joined #ruby
[01:19:34] skweek: has joined #ruby
[01:22:26] singalaut: has joined #ruby
[01:25:04] madsa: has joined #ruby
[01:27:23] Azure: has joined #ruby
[01:27:30] rehat: has joined #ruby
[01:30:40] _Sucks: has joined #ruby
[01:31:28] tercenya: has joined #ruby
[01:33:31] ElFerna: has joined #ruby
[01:35:39] gregf: has joined #ruby
[01:41:04] abhinavmehta: has joined #ruby
[01:41:23] skweek: has joined #ruby
[01:41:54] Ebok: has joined #ruby
[01:43:26] Technodrome: has joined #ruby
[01:44:42] qguv: has joined #ruby
[01:45:54] harfangk: has joined #ruby
[01:46:25] rickmasta: has joined #ruby
[01:49:56] RegulationD: has joined #ruby
[01:50:39] mistergibson: has joined #ruby
[01:52:24] Moosashi: has joined #ruby
[01:52:38] skweek: has joined #ruby
[01:54:38] madsa_: has joined #ruby
[02:00:04] madsa: has joined #ruby
[02:03:37] madsa_: has joined #ruby
[02:07:10] patie: has joined #ruby
[02:08:06] Rodya_: has joined #ruby
[02:09:19] madsa: has joined #ruby
[02:09:54] dgncn: has joined #ruby
[02:10:00] yeticry: has joined #ruby
[02:11:13] AndyBotwin: has joined #ruby
[02:12:58] bkxd: has joined #ruby
[02:13:13] douglascorrea: has joined #ruby
[02:26:20] davedev24: has joined #ruby
[02:33:23] claw: has joined #ruby
[02:35:01] tristanp: has joined #ruby
[02:38:08] dkam___: has joined #ruby
[02:38:16] hwcomcn: has joined #ruby
[02:42:52] jenrzzz: has joined #ruby
[02:43:19] rickmasta: has joined #ruby
[02:43:42] TheWhip: has joined #ruby
[02:43:46] yoongkang: has joined #ruby
[02:44:12] enterprisey: has joined #ruby
[02:44:31] nizzlefritz: has joined #ruby
[02:44:56] postmodern: has joined #ruby
[02:47:03] hwcomcn: has joined #ruby
[02:48:03] hwcomcn: has joined #ruby
[02:49:17] nankyokusei: has joined #ruby
[02:49:40] abhinavmehta: has joined #ruby
[02:51:02] twistedpixels: has joined #ruby
[02:51:02] twistedpixels: has joined #ruby
[02:53:12] benlieb: has joined #ruby
[02:55:45] matp: has joined #ruby
[02:57:42] statelesscode: has joined #ruby
[02:58:01] cyphase: has joined #ruby
[02:59:54] Dimik--: has joined #ruby
[03:03:48] postmodern: has joined #ruby
[03:05:04] dsea: has joined #ruby
[03:05:09] Elvin: has joined #ruby
[03:06:48] underplank: has joined #ruby
[03:07:21] zacstewart: has joined #ruby
[03:08:05] wrkrcoop: has joined #ruby
[03:11:15] wrkrcoop: can i just add a question mark to the end of a method if it returns boolean or does a question mark change the method?
[03:11:27] rickmasta: has joined #ruby
[03:13:39] underplank: has joined #ruby
[03:13:55] hahuang61: has joined #ruby
[03:16:21] cschneid: has joined #ruby
[03:16:27] hwcomcn: has joined #ruby
[03:16:39] adam12: wrkrcoop: The question mark is in the method name. You can't just add it.
[03:16:50] wrkrcoop: just checking thank you adam12
[03:17:06] adam12: wrkrcoop: ActiveRecord defines both methods, in case that's where you are seeing it.
[03:17:12] adam12: (some_method and some_method?)
[03:17:42] wrkrcoop: using plain ruby
[03:17:55] adam12: Ah ok - yes, add them yourself :)
[03:19:02] hwcomcn: has joined #ruby
[03:20:46] k3rn31: has joined #ruby
[03:21:29] chosen1_: has joined #ruby
[03:22:52] Moosashi: has joined #ruby
[03:24:10] madsa_: has joined #ruby
[03:24:11] jaguarma_: has joined #ruby
[03:26:49] hwcomcn: has joined #ruby
[03:29:07] bkxd: has joined #ruby
[03:29:10] benlieb: has joined #ruby
[03:29:16] hwcomcn: has joined #ruby
[03:30:00] conta: has joined #ruby
[03:31:45] hwcomcn: has joined #ruby
[03:32:06] LoneHerm_: has joined #ruby
[03:32:11] jaguarmagenta: has joined #ruby
[03:34:42] splud: nite all.
[03:38:21] mingsheng: has joined #ruby
[03:38:27] tmtwd: has joined #ruby
[03:39:29] hwcomcn: has joined #ruby
[03:41:29] rickmasta: has joined #ruby
[03:44:01] tAn: has joined #ruby
[03:44:03] benlieb: has joined #ruby
[03:44:35] hwcomcn: has joined #ruby
[03:48:01] RedWasp: has joined #ruby
[03:48:21] RedWasp: is anyone logged on?
[03:48:23] iMadper: has joined #ruby
[03:50:09] Niham: has joined #ruby
[03:50:49] RegulationD: has joined #ruby
[03:52:15] nadir: has joined #ruby
[03:54:18] skweek: has joined #ruby
[03:55:30] gix: has joined #ruby
[03:55:48] Niham: has joined #ruby
[03:56:18] LoneHerm_: has joined #ruby
[03:58:17] abhinavmehta: has joined #ruby
[03:59:43] mostlybadfly: has joined #ruby
[04:05:35] RedWasp: has joined #ruby
[04:07:08] pontiki: has joined #ruby
[04:17:44] beilabs: has joined #ruby
[04:18:09] grenierm: has joined #ruby
[04:18:18] PaulCapestany: has joined #ruby
[04:18:55] habitullence_: has joined #ruby
[04:19:08] justinmrkva: has joined #ruby
[04:19:08] roamingdog: has joined #ruby
[04:19:44] Kilo`byte: has joined #ruby
[04:23:50] benlieb: has joined #ruby
[04:24:20] enterprisey: has joined #ruby
[04:24:35] elifoster: has joined #ruby
[04:25:19] theery: has joined #ruby
[04:31:12] nanoz: has joined #ruby
[04:37:38] benlieb: has joined #ruby
[04:38:04] CloCkWeRX: has joined #ruby
[04:43:06] enterprisey: has joined #ruby
[04:43:19] madsa_: has joined #ruby
[04:45:43] jaguarma_: has joined #ruby
[04:47:28] framling: has joined #ruby
[04:48:11] Niham: has joined #ruby
[04:49:07] tmtwd: has joined #ruby
[04:49:14] moeabdol1: has joined #ruby
[04:50:09] nankyokusei: has joined #ruby
[04:52:29] rickmasta: has joined #ruby
[04:53:48] yoongkang: has joined #ruby
[04:55:48] beilabs_: has joined #ruby
[04:59:08] devoid: has joined #ruby
[04:59:26] pawnbox: has joined #ruby
[05:00:16] moeabdol1: has joined #ruby
[05:00:58] hk238: has joined #ruby
[05:05:33] pawnbox: has joined #ruby
[05:06:07] cibs: has joined #ruby
[05:11:27] RedWasp: has joined #ruby
[05:13:52] k3rn31: has joined #ruby
[05:14:40] hahuang61: has joined #ruby
[05:15:48] alfiemax: has joined #ruby
[05:18:45] ClayCons: So, I'm having a hard time joining two var together with a string
[05:18:56] ClayCons: which are parts of url
[05:19:08] ClayCons: and then open(url) using open-url
[05:19:19] ClayCons: but I'm getting an error
[05:19:29] ClayCons: 400 bad request
[05:19:54] ClayCons: but it seems to work when i put in the full url instead of variabls
[05:20:35] elomatreb: Have you tried printing the URL built by your concatenation before calling open, just to see if it is assembled correctly?
[05:20:54] sucks: has joined #ruby
[05:21:46] ClayCons: but not in one line
[05:22:19] ClayCons: I'm not sure that's the issue because it worked in python
[05:22:31] elomatreb: Could you show us your code, maybe using a gist?
[05:23:13] ClayCons: https://qbin.io/me1qb4zb
[05:23:29] dkam___: has joined #ruby
[05:24:11] dionysus69: has joined #ruby
[05:24:23] ClayCons: i forget to put back the open(url) thing and json
[05:24:26] ClayCons: https://qbin.io/n26hfh90s
[05:24:51] enterprisey: has joined #ruby
[05:25:39] elomatreb: Ruby supports more than one form of string literal. You could start making your code a little more readable by using %q{string here} literals, in which you don't have to escape quotes
[05:25:50] LoneHerm_: has joined #ruby
[05:28:07] ClayCons: elomatreb: this is the problem ?
[05:28:15] elomatreb: ClayCons: Furthermore you're mixing your XPath-selector (?) into your URL I think.
[05:28:16] cyphase: has joined #ruby
[05:28:41] elomatreb: See here: https://eval.in/610391
[05:29:59] bkxd: has joined #ruby
[05:30:01] jetpack_joe: has joined #ruby
[05:30:47] ClayCons: oh, sorry, format="json"
[05:30:50] ClayCons: this was the issue
[05:31:04] ClayCons: it must be &format=json
[05:31:34] danman: has joined #ruby
[05:31:36] elomatreb: Are you sure? That "select ..." stuff with newlines doesn't look exactly URL-safe
[05:31:36] dunpeal: has joined #ruby
[05:32:16] zachrab: has joined #ruby
[05:32:20] ClayCons: elomatreb: I
[05:32:29] ClayCons: elomatreb: I'm not sure whatyou mean
[05:32:44] jaguarmagenta: has joined #ruby
[05:33:31] ClayCons: elomatreb: It seems to work now, what do you by URL-safe
[05:33:50] elomatreb: A URL can usually only contain a limited set of characters
[05:34:00] elomatreb: Newlines and spaces are not in this set
[05:34:58] ClayCons: the select and this kind of stuff is YQL
[05:35:29] elomatreb: I'm honestly surprised the Ruby URI parser even accepts that. But if it works, what do I know
[05:35:54] ClayCons: well, the spaces will be replaced by %20 and the newline will be removed
[05:36:36] abhinavmehta: has joined #ruby
[05:37:21] tercenya: has joined #ruby
[05:38:07] kitikonti: has joined #ruby
[05:38:18] conta: has joined #ruby
[05:38:27] cibs: has joined #ruby
[05:41:26] duncannz: has joined #ruby
[05:41:33] aupadhye: has joined #ruby
[05:42:12] dhollinger: has joined #ruby
[05:43:18] flicflac: has joined #ruby
[05:44:05] flicflac: 185.30.166.37 @verne
[05:45:07] flicflac: 185.30.166.37 @verne
[05:45:25] yaphats: has joined #ruby
[05:45:41] flicflac: 3-NAND 4-ORAN 7.5333 GAMA
[05:45:55] yaphats: hello all, is there anyone who can help me with a rspec mock problem?
[05:47:08] baweaver: !spam flicflac
[05:47:08] ruby[bot]: +bb flicflac!*@*$#ruby-banned *!*@119.152.11.200$#ruby-banned
[05:47:08] ruby[bot]: ruby[bot] kicked flicflac: is a bannable offense, see http://ruby-community.com/pages/user_rules
[05:49:11] lxsameer: has joined #ruby
[05:49:21] yaphats: I've already made a post on stackoverflow here so if you guys have time and know the answer, please provide it on stackoverflow and I'll upvote. Thank you very much
[05:49:24] yaphats: http://stackoverflow.com/questions/38538174/ruby-rspec-mocks-test-function-receiving-a-hash
[05:49:49] yaphats: I'm pretty new to rspec and ruby
[05:51:16] zachrab: has joined #ruby
[05:51:59] RegulationD: has joined #ruby
[05:54:38] tildes: has joined #ruby
[05:56:50] Technodrome: has joined #ruby
[05:58:09] beilabs: has joined #ruby
[05:58:22] cd-rum: has joined #ruby
[05:59:50] phrozen77: has joined #ruby
[06:02:33] conta: has joined #ruby
[06:02:47] djbkd: has joined #ruby
[06:03:12] tmtwd: has joined #ruby
[06:03:42] cibs: has joined #ruby
[06:04:54] madsa: has joined #ruby
[06:06:41] theRealAlexz: has joined #ruby
[06:07:53] harfangk: has joined #ruby
[06:09:58] cibs: has joined #ruby
[06:10:58] Cohedrin: has joined #ruby
[06:11:06] pawnbox: has joined #ruby
[06:16:53] aries_liuxueyang: has joined #ruby
[06:17:50] cd-rum_: has joined #ruby
[06:19:14] tercenya: has joined #ruby
[06:20:30] the_drow: has joined #ruby
[06:23:03] yfeldblum: has joined #ruby
[06:23:08] beilabs: has joined #ruby
[06:24:43] kareeoleez: has joined #ruby
[06:28:30] beilabs: has joined #ruby
[06:29:52] beawesomeinstead: has joined #ruby
[06:29:58] nadir: has joined #ruby
[06:30:42] bkxd: has joined #ruby
[06:31:09] yfeldblum: has joined #ruby
[06:31:53] yoongkang: has joined #ruby
[06:32:26] beilabs_: has joined #ruby
[06:35:49] abhinavmehta: has joined #ruby
[06:36:19] ClayCons: Are there any ruby GUI application out there?
[06:37:43] dkam___: has joined #ruby
[06:39:51] Hyuk: has joined #ruby
[06:40:48] hwcomcn: has joined #ruby
[06:44:56] AndrewIsHere: has joined #ruby
[06:49:47] ur5us: has joined #ruby
[06:51:01] alexherbo2: has joined #ruby
[06:51:01] nankyokusei: has joined #ruby
[06:55:02] pawnbox: has joined #ruby
[06:56:21] tildes: has joined #ruby
[06:56:40] beilabs: has joined #ruby
[06:58:34] cibs: has joined #ruby
[07:00:05] postmodern: has joined #ruby
[07:01:43] solars: has joined #ruby
[07:02:44] djbkd: has joined #ruby
[07:10:09] freezkyd_: has joined #ruby
[07:13:38] freezkyd_: has joined #ruby
[07:15:25] hahuang61: has joined #ruby
[07:19:01] freezkyd: has joined #ruby
[07:19:31] freezkyd_: has joined #ruby
[07:19:35] GnuYawk: has joined #ruby
[07:22:38] Dimik--: has joined #ruby
[07:22:53] freezkyd_: has joined #ruby
[07:24:52] Wildfyr: has joined #ruby
[07:26:49] shevy: ClayCons sorta
[07:26:53] shevy: ruby gnome stuff
[07:27:13] shevy: there are not that many ruby people write oldschool GUIs, a lot of this has been taken over by the www
[07:28:48] LoneHerm_: has joined #ruby
[07:29:20] der-landgraf: has joined #ruby
[07:33:32] dunpeal: has joined #ruby
[07:36:03] alfiemax: has joined #ruby
[07:39:02] k3rn31: has joined #ruby
[07:42:28] Hyuk: has joined #ruby
[07:44:04] tAn: has joined #ruby
[07:44:32] abhinavmehta: has joined #ruby
[07:46:00] ur5us: has joined #ruby
[07:47:32] kitikonti: has joined #ruby
[07:49:09] vuoto: has joined #ruby
[07:51:34] multi_io: has joined #ruby
[07:52:51] RegulationD: has joined #ruby
[07:57:59] twinklerock: has joined #ruby
[08:01:42] spider-mario: has joined #ruby
[08:01:49] yoongkang: has joined #ruby
[08:02:03] ramfjord: has joined #ruby
[08:02:04] yeticry: has joined #ruby
[08:09:01] toretore: has joined #ruby
[08:10:46] GnuYawk: has joined #ruby
[08:13:51] nerium: has joined #ruby
[08:14:47] chouhoulis: has joined #ruby
[08:15:41] Mia: has joined #ruby
[08:15:41] Mia: has joined #ruby
[08:16:10] hahuang61: has joined #ruby
[08:18:13] GnuYawk: has joined #ruby
[08:19:16] renier: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[08:20:43] marienz: has joined #ruby
[08:21:42] yude: has joined #ruby
[08:21:42] Mirubiri: has joined #ruby
[08:22:12] symm-: has joined #ruby
[08:23:13] Gister: has joined #ruby
[08:23:29] firstdayonthejob: has joined #ruby
[08:25:03] vuoto: has joined #ruby
[08:26:57] bkxd: has joined #ruby
[08:27:40] fiifi: has joined #ruby
[08:28:07] kareeoleez: has joined #ruby
[08:28:46] jenrzzz: has joined #ruby
[08:29:57] LoneHermit: has joined #ruby
[08:32:10] Madplatypus: has joined #ruby
[08:34:37] tulak: has joined #ruby
[08:35:49] jaguarmagenta: has joined #ruby
[08:40:16] marr: has joined #ruby
[08:41:24] bkxd: has joined #ruby
[08:42:10] shinnya: has joined #ruby
[08:43:36] abhinavmehta: has joined #ruby
[08:44:37] yeticry: has joined #ruby
[08:46:15] AndrewIsHere: has joined #ruby
[08:49:06] lxsameer: has joined #ruby
[08:50:29] harfangk: has joined #ruby
[08:51:49] nankyokusei: has joined #ruby
[08:53:35] shevy: https://github.com/ruby-gnome2/ruby-gnome2
[08:54:25] chouhoulis: has joined #ruby
[08:55:51] pawnbox: has joined #ruby
[08:56:19] Pupeno: has joined #ruby
[08:57:38] chipotle: has joined #ruby
[09:02:10] jhass: use https://github.com/mvz/gir_ffi rather
[09:02:14] jhass: not stuck in 2009
[09:10:00] shevy: if anyone is using that
[09:10:35] snowy: has joined #ruby
[09:11:16] craigp: has joined #ruby
[09:14:14] yoongkang: has joined #ruby
[09:14:36] cibs: has joined #ruby
[09:15:21] snowy: has joined #ruby
[09:19:13] tildes: has joined #ruby
[09:21:54] cibs: has joined #ruby
[09:22:12] vuoto: has joined #ruby
[09:23:57] jenrzzz: has joined #ruby
[09:23:57] jenrzzz: has joined #ruby
[09:26:19] douglascorrea: has joined #ruby
[09:26:40] dkam___: has joined #ruby
[09:26:54] tercenya: has joined #ruby
[09:32:28] lxsameer: has joined #ruby
[09:35:23] dunpeal: has joined #ruby
[09:41:32] conta: has joined #ruby
[09:42:16] FooMunki: has joined #ruby
[09:43:30] Moosashi: has joined #ruby
[09:46:03] zeroDi: has joined #ruby
[09:53:47] RegulationD: has joined #ruby
[09:58:37] yude: has joined #ruby
[09:58:40] yoongkang: has joined #ruby
[09:59:48] nerium: has joined #ruby
[10:01:45] banisterfiend: has joined #ruby
[10:03:04] miqlas-H: has joined #ruby
[10:05:10] hk238: has joined #ruby
[10:05:12] sdwrage: has joined #ruby
[10:07:06] conta: has joined #ruby
[10:12:23] gregf: has joined #ruby
[10:13:21] chipotle: has joined #ruby
[10:15:54] chipotle: has joined #ruby
[10:16:13] alfiemax: has joined #ruby
[10:16:54] hahuang61: has joined #ruby
[10:18:14] giz|work: has joined #ruby
[10:22:01] SCHAAP137: has joined #ruby
[10:23:22] giz|work|2: has joined #ruby
[10:23:45] chipotle: has joined #ruby
[10:28:37] chipotle: has joined #ruby
[10:31:01] LoneHermit: has joined #ruby
[10:32:51] chipotle: has joined #ruby
[10:32:59] yfeldblum: has joined #ruby
[10:38:33] chipotle: has joined #ruby
[10:39:15] SCHAAP137: has joined #ruby
[10:39:36] vuoto: has joined #ruby
[10:40:50] chipotle: has joined #ruby
[10:42:31] sdothum: has joined #ruby
[10:43:12] chipotle: has joined #ruby
[10:43:53] armyriad: has joined #ruby
[10:45:37] chipotle: has joined #ruby
[10:47:07] roamingdog: has joined #ruby
[10:47:28] Nahra`: has joined #ruby
[10:47:32] AndrewIsHere: has joined #ruby
[10:47:52] tulak: has joined #ruby
[10:47:59] chipotle: has joined #ruby
[10:50:21] chipotle: has joined #ruby
[10:51:00] shevy: hmmm I just realized... xmas is not that far away... will we have a 2.4.x stable release before xmas?
[10:51:39] elomatreb: has joined #ruby
[10:51:43] lele: has joined #ruby
[10:52:41] chipotle: has joined #ruby
[10:52:43] nankyokusei: has joined #ruby
[10:54:36] Kuukunen-: has joined #ruby
[10:56:21] masterkorp: has joined #ruby
[10:57:27] nyuszika7h: has joined #ruby
[10:58:50] ndrst: has joined #ruby
[11:02:20] ishahnaz: has joined #ruby
[11:05:40] benlieb: has joined #ruby
[11:05:45] noorbeh: has joined #ruby
[11:06:02] tildes: has joined #ruby
[11:06:40] FernandoBasso: has joined #ruby
[11:09:57] roshanavand: has joined #ruby
[11:13:28] pawnbox: has joined #ruby
[11:13:52] roshanavand: has joined #ruby
[11:16:35] postapocallyptic: has joined #ruby
[11:19:28] yoongkang: has joined #ruby
[11:20:08] Azure: has joined #ruby
[11:21:01] c355E3B: has joined #ruby
[11:23:37] pawnbox: has joined #ruby
[11:26:35] roshanavand: has joined #ruby
[11:32:55] DoubleMalt: has joined #ruby
[11:37:15] rippa: has joined #ruby
[11:37:17] dunpeal: has joined #ruby
[11:38:09] yoongkang: has joined #ruby
[11:40:44] cd-rum: has joined #ruby
[11:40:46] Hanmac: has joined #ruby
[11:41:26] fiifi: has joined #ruby
[11:44:41] cd-rum_: has joined #ruby
[11:47:42] tAn: has joined #ruby
[11:49:27] yoongkang: has joined #ruby
[11:52:43] pawnbox_: has joined #ruby
[11:54:34] Pupeno: has joined #ruby
[11:54:34] RegulationD: has joined #ruby
[11:56:00] sagax: has joined #ruby
[11:56:24] sagax: i have ruby 1.9.3 and rails 4.2
[11:57:41] sagax: how to a might speed up app?
[11:58:29] sagax: how to finding application bottleneck?
[11:59:18] Zarthus: well for one ruby 1.9.3 is ancient
[12:02:50] sagax: i try ruby 2.3.1 but anyway
[12:02:53] sagax: slowly app
[12:03:31] sagax: i think that problem have in code
[12:03:44] Zarthus: Most likely.
[12:04:03] sagax: but how to i finding problems? what tools?
[12:04:15] Papierkorb: sagax: you can try using the mini-rack-profiler gem with flamegraph
[12:05:20] Pupeno: has joined #ruby
[12:05:40] yude: has joined #ruby
[12:07:10] CloCkWeRX: has joined #ruby
[12:09:15] sagax: ok, thanks, i trying
[12:10:50] triangles: has joined #ruby
[12:12:06] tk_: has joined #ruby
[12:13:22] Pupeno: has joined #ruby
[12:13:22] Pupeno: has joined #ruby
[12:14:07] symm-: has joined #ruby
[12:15:00] v0n: has joined #ruby
[12:17:40] hahuang61: has joined #ruby
[12:19:41] kitikonti: has joined #ruby
[12:23:16] iNodezzz: has joined #ruby
[12:25:54] yoongkang: has joined #ruby
[12:29:14] roamingdog: has joined #ruby
[12:29:15] JeanCarloMachado: has joined #ruby
[12:32:45] alfiemax: has joined #ruby
[12:35:27] JeanCarloMachado: has joined #ruby
[12:37:25] pawnbox: has joined #ruby
[12:38:39] mooru: has joined #ruby
[12:39:43] tildes: has joined #ruby
[12:40:30] codecop: has joined #ruby
[12:42:30] vavovi: has joined #ruby
[12:47:26] abhinavmehta: has joined #ruby
[12:47:51] shevy: is it common to find the "opposite" of .uniq? that is, rather than return an array with all duplicates removed, to actually return the duplicates themselves instead? (for another method/operation)
[12:48:49] AndrewIsHere: has joined #ruby
[12:51:38] xpitr: i don't think there is builtin method. something like a=[1,2,3,4,4,5,6,6,6,7,8,9]; a.select{|i| a.count(i)>1 }
[12:51:50] roshanavand: has joined #ruby
[12:52:40] LoneHerm_: has joined #ruby
[12:52:45] adaedra: or a - a.uniq
[12:52:48] xall: has joined #ruby
[12:52:57] adaedra: ah no wait, won't work, nvm
[12:53:25] Pupeno: has joined #ruby
[12:53:37] nankyokusei: has joined #ruby
[12:54:27] shevy: xpitr cool, that is about 5 lines shorter than what I used haha
[12:54:41] xpitr: hm that got me off guard. if we do [1,2,3,4].map{} or each or whatever, is there a way to reference entire array from inside the block?
[12:55:52] xpitr: aside from first assigning entire array to variable like above
[12:57:02] alfiemax: has joined #ruby
[12:57:11] jhass: not really, I mean .tap {|a| break a.select { } } is hardly any better
[13:05:20] giz|work: has joined #ruby
[13:06:14] abhinavmehta: has joined #ruby
[13:06:27] Jackneill: has joined #ruby
[13:10:08] Ishido: has joined #ruby
[13:11:28] banisterfiend: has joined #ruby
[13:14:16] dkam___: has joined #ruby
[13:15:28] abdur: has joined #ruby
[13:15:31] tercenya: has joined #ruby
[13:16:49] bmurt: has joined #ruby
[13:22:35] douglascorrea: has joined #ruby
[13:24:13] benlieb: has joined #ruby
[13:24:14] harfangk: has joined #ruby
[13:25:09] craigp: has joined #ruby
[13:29:36] mpr555: has joined #ruby
[13:32:20] Pupeno: has joined #ruby
[13:35:23] pawnbox: has joined #ruby
[13:39:09] dunpeal: has joined #ruby
[13:39:27] govg: has joined #ruby
[13:44:01] nankyokusei: has joined #ruby
[13:44:56] roamingdog: has joined #ruby
[13:47:05] Rodya_: has joined #ruby
[13:49:08] zapata: has joined #ruby
[13:50:13] dkamioka: has joined #ruby
[13:53:32] anmn: has joined #ruby
[13:55:27] RegulationD: has joined #ruby
[13:58:14] alfiemax: has joined #ruby
[14:02:03] eljimador: has joined #ruby
[14:02:16] bmurt: has joined #ruby
[14:03:04] Ebok: has joined #ruby
[14:03:08] roshanavand: has joined #ruby
[14:05:23] nobitanobi: has joined #ruby
[14:11:29] benlieb: has joined #ruby
[14:12:49] TomyLobo: has joined #ruby
[14:18:10] AlexRussia: has joined #ruby
[14:18:14] alfiemax: has joined #ruby
[14:18:24] hahuang61: has joined #ruby
[14:18:31] Mattx: has joined #ruby
[14:19:07] kareeoleez: has joined #ruby
[14:19:13] nerium: has joined #ruby
[14:19:15] Mattx: Hey. I'm installing the gem weka, but I get "Could not find a valid gem 'weka' (>= 0) in any repository"
[14:19:29] Mattx: however, I have weka (0.3.0 java) on my repo
[14:19:43] Mattx: that's what it says if I run gem search weka
[14:20:12] toretore: are you running jruby?
[14:20:16] LoneHerm_: has joined #ruby
[14:21:24] Mattx: toretore, is that gem only available for jruby?
[14:22:30] Mattx: is there a way to use it in ruby?
[14:22:44] blackmesa: has joined #ruby
[14:22:48] bmurt: has joined #ruby
[14:25:12] Mattx: Hmn. Look, I need to use a program (weka) from ruby. there's an official lib
[14:25:25] Mattx: I guess the best I can do is use it through command line in ruby and parse its output?
[14:26:05] Mattx: I don't think it's a good idea to run my whole code in jruby just because of that dependency
[14:26:17] toretore: to run weka you need the jvm in some way or another
[14:26:27] Mattx: that's not a problem
[14:26:41] Mattx: but I'm running my code in ruby not jruby
[14:35:19] Jackneill: has joined #ruby
[14:35:28] Devalo: has joined #ruby
[14:36:41] ElFerna: has joined #ruby
[14:37:38] mattwashere: has joined #ruby
[14:40:10] KaliLinuxGR: has joined #ruby
[14:40:39] macsteps: has joined #ruby
[14:41:47] benlieb: has joined #ruby
[14:44:25] nobitano_: has joined #ruby
[14:47:28] sdothum: has joined #ruby
[14:48:36] Mattx: has joined #ruby
[14:48:55] Ishido: has joined #ruby
[14:49:04] devoid: has joined #ruby
[14:49:29] sepp2k: has joined #ruby
[14:49:37] pawnbox: has joined #ruby
[14:49:46] tAn: has joined #ruby
[14:51:59] davedev24: has joined #ruby
[14:54:01] roshanavand: has joined #ruby
[14:55:03] toretore: Mattx: i'd look into something like this: https://github.com/P8H/docker-weka-remote/blob/master/Dockerfile
[14:56:21] RegulationD: has joined #ruby
[14:56:45] yude: has joined #ruby
[14:59:47] roamingdog: has joined #ruby
[15:00:49] asianMike: has joined #ruby
[15:05:46] DoubleMalt: has joined #ruby
[15:08:22] underplank: has joined #ruby
[15:11:11] vuoto: has joined #ruby
[15:11:13] RedWasp: has joined #ruby
[15:11:28] davedev24: has joined #ruby
[15:11:52] RedWasp: has joined #ruby
[15:12:13] chouhoulis: has joined #ruby
[15:15:55] Tempesta: has joined #ruby
[15:20:52] douglascorrea: has joined #ruby
[15:21:58] vuoto: has joined #ruby
[15:25:28] KCmetro: has joined #ruby
[15:30:56] shinnya: has joined #ruby
[15:30:56] jhack: has joined #ruby
[15:31:09] nando293921: has joined #ruby
[15:32:42] mattwashere: has joined #ruby
[15:33:48] alfiemax: has joined #ruby
[15:34:46] shevy: has joined #ruby
[15:44:37] nankyokusei: has joined #ruby
[15:49:04] eljimmy: has joined #ruby
[15:50:03] AndrewIsHere: has joined #ruby
[15:53:40] pawnbox: has joined #ruby
[15:56:24] dgynn: has joined #ruby
[15:57:13] RegulationD: has joined #ruby
[16:00:11] face: has joined #ruby
[16:01:30] cyphase: has joined #ruby
[16:01:58] karapetyan: has joined #ruby
[16:05:32] GnuYawk: has joined #ruby
[16:06:29] cdg: has joined #ruby
[16:07:10] jhass: has joined #ruby
[16:08:25] coffeejunk: has joined #ruby
[16:09:02] banisterfiend: has joined #ruby
[16:09:07] chouhoulis: has joined #ruby
[16:13:50] nadir: has joined #ruby
[16:14:47] mattwashere: has joined #ruby
[16:14:57] chipotle: has joined #ruby
[16:17:53] Psi-Jack: has joined #ruby
[16:18:25] AndyBotwin: has joined #ruby
[16:18:35] Psi-Jack: How do I compare if a hash value is specifically true? I have if val["enabled"] == true, yet even if it's false, it still seems to be handling the contents of that if block.
[16:19:01] douglascorrea: has joined #ruby
[16:19:04] roshanavand: has joined #ruby
[16:19:09] hahuang61: has joined #ruby
[16:22:05] heinrich5991: has joined #ruby
[16:22:17] shevy: val = Hash.new; val['enabled'] = true; puts 'it is true' if val['enabled'] == true # outputs "it is true" for me
[16:23:34] pedro1: has joined #ruby
[16:23:52] Psi-Jack: Hmmm.. Seems it's actually my assignment variables, not my code. heh. All were set to be true in the attributes.
[16:25:00] pedrovin777: Howdy everybody! :D
[16:25:01] Psi-Jack: Rather, not my template, the code that uses the template. :)
[16:25:44] pedrovin777: Are there some Sequel jedi master here?
[16:26:02] Psi-Jack: Perhaps you need a channel more specific to your SQL server in use.
[16:26:24] rcs: has joined #ruby
[16:28:28] nobitanobi: has joined #ruby
[16:28:39] tercenya: has joined #ruby
[16:29:01] kitikonti: has joined #ruby
[16:30:09] sepp2k: has joined #ruby
[16:33:02] Cohedrin: has joined #ruby
[16:34:04] mattwashere: has joined #ruby
[16:34:50] jrafanie: has joined #ruby
[16:35:28] roshanavand: has joined #ruby
[16:38:13] chipotle: has joined #ruby
[16:41:42] matp: has joined #ruby
[16:41:44] pawnbox: has joined #ruby
[16:42:52] ramfjord: has joined #ruby
[16:45:39] dennisvennink: has joined #ruby
[16:46:07] jrafanie_: has joined #ruby
[16:47:02] JeanCarloMachado: has joined #ruby
[16:48:06] sdothum: has joined #ruby
[16:49:16] barajasfab_: has joined #ruby
[16:49:26] mozzarella: has joined #ruby
[16:51:24] barajasfab: has joined #ruby
[16:51:29] killerkamel: has joined #ruby
[16:52:26] macsteps: has joined #ruby
[16:54:28] nobitanobi: has joined #ruby
[16:54:41] Wildfyr: has joined #ruby
[16:55:09] barajasfab_: has joined #ruby
[16:57:18] zapata: has joined #ruby
[16:58:31] nobitanobi: has joined #ruby
[16:59:19] barajasfab: has joined #ruby
[16:59:23] nobitano_: has joined #ruby
[17:04:14] nizzlefritz: has joined #ruby
[17:05:50] LoneHerm_: has joined #ruby
[17:08:21] nobitanobi: has joined #ruby
[17:10:48] zacts: has joined #ruby
[17:13:06] killerkamel: has joined #ruby
[17:13:36] vuoto: has joined #ruby
[17:13:43] nobitanobi: has joined #ruby
[17:13:48] roshanavand: has joined #ruby
[17:14:16] voodoofish4302: has joined #ruby
[17:15:04] u0_a96: has joined #ruby
[17:15:29] roshanavand: has joined #ruby
[17:18:45] atae: has joined #ruby
[17:21:52] roshanavand: has joined #ruby
[17:25:34] Wildfyr: he quit right after askin
[17:25:45] diegoviola: has joined #ruby
[17:26:00] jhass: you had 20 seconds to solve their problem!
[17:26:05] jhass: ought to be enough!
[17:26:21] u0_a96: has joined #ruby
[17:26:29] jhass: u0_a96: wb, what's your question?
[17:28:43] minimalism: has joined #ruby
[17:31:16] jaguarmagenta: has joined #ruby
[17:32:41] u0_a96: I'm only testing irc jhass
[17:33:14] jhack: has joined #ruby
[17:33:21] u0_a96: anyway thanks
[17:39:53] roshanavand: has joined #ruby
[17:40:12] AndrewIsHere: has joined #ruby
[17:40:31] Dimik: has joined #ruby
[17:43:06] RegulationD: has joined #ruby
[17:44:05] craigp: has joined #ruby
[17:45:27] nankyokusei: has joined #ruby
[17:47:45] douglascorrea: has joined #ruby
[17:48:18] kies: has joined #ruby
[17:48:49] roshanavand: has joined #ruby
[17:49:02] c0mrad3: has joined #ruby
[17:49:52] binaryplease1: has joined #ruby
[17:50:09] GnuYawk: has left #ruby: ()
[17:50:29] GnuYawk: has joined #ruby
[17:51:35] alfiemax: can anyone pls take a look at this error i'm getting
[17:51:35] alfiemax: https://gist.github.com/alfie-max/26a3b60489a8674251a2f734e929da8c
[17:51:39] GnuYawk: please stop screaming, alfiemax
[17:51:41] GnuYawk: ill look though
[17:51:51] alfiemax: btw, biz_statuses is a hash
[17:51:56] alfiemax: thanks GNUYawk
[17:52:35] jhass: alfiemax: do |(id, biz), index|
[17:52:40] tAn: has joined #ruby
[17:53:04] Karunamon: has joined #ruby
[17:53:05] alfiemax: jhass, ok, i'll try
[17:53:21] jhass: You're calling Enumerable#each_with_index there, which calls Hash#each, which yields a two element array
[17:53:33] JeanCarloMachado: has joined #ruby
[17:53:47] alfiemax: well, that works and that makes sense
[17:53:57] Wixy: has joined #ruby
[17:53:59] Wixy: has joined #ruby
[17:54:10] GnuYawk: alfiemax, you're calling Enumerable#each_with_index there, which calls Hash#each, which yields a two element array
[17:54:21] alfiemax: GNUYawk, :D
[17:54:48] jhass: don't drink and IRC ;)
[17:55:20] GnuYawk: dont tell me how to live my life jhass
[17:55:22] GnuYawk: motherfucker
[17:55:31] jhass: !rude GNUYawk
[17:55:31] ruby[bot]: +qqq $a:b4rbz GNUYawk!*@* *!*@unaffiliated/b4rbz
[17:56:02] alfiemax: jhass, thanks man
[17:56:31] BobsBurger: has joined #ruby
[17:56:39] douglascorrea: has joined #ruby
[17:56:43] BobsBurger: hows it going
[17:56:52] jhass: fine enough
[17:57:04] BobsBurger: sorry, im bad at small talk
[17:57:32] jhass: that's fine, the smalltalk channel would be #ruby-offtopic or ##social anyway ;)
[17:57:57] BobsBurger: no need to be so sarcastic, i didnt know ok?
[17:58:34] tercenya: has joined #ruby
[17:58:48] BobsBurger: no need to make fun of me jhass
[17:58:54] BobsBurger: that is a bannable offense
[17:58:58] jhass: !ban BobsBurger ban evasion
[17:58:58] ruby[bot]: +bb BobsBurger!*@*$#ruby-banned *!*@gateway/web/freenode/ip.69.120.228.4$#ruby-banned
[17:58:58] ruby[bot]: ruby[bot] kicked BobsBurger: evasion
[17:59:23] craigp: has joined #ruby
[18:00:32] mikeockisitchy: has joined #ruby
[18:00:36] sumobob: has joined #ruby
[18:01:01] spudowiar: has joined #ruby
[18:01:09] zacts: has joined #ruby
[18:03:32] AndrewIsHere: has joined #ruby
[18:05:33] mikeockisitchy: hey guys, im dealing with a weird bug
[18:05:36] mikeockisitchy: can someone take a look at it
[18:05:41] mikeockisitchy: http://pastebin.com/raw/2g2Uji8J
[18:05:42] ruby[bot]: mikeockisitchy: 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
[18:07:00] jhass: >> house = {blue: 171213}; house.each do |color, price| puts color.to_s.reverse; end
[18:07:01] ruby[bot]: jhass: # => eulb ...check link for more (https://eval.in/610600)
[18:07:04] jhass: does not reproduce
[18:07:32] mikeockisitchy: so why am i getting an error?
[18:07:38] mikeockisitchy: every time i do it i get the same error
[18:07:42] mikeockisitchy: tried it on 3 different machines
[18:08:22] jhass: show it in a clean pry session starting with [1] pry(main)>
[18:09:11] voodoofish4302: has left #ruby: ()
[18:09:34] yude: has joined #ruby
[18:12:29] mikeockisitchy: http://pastebin.com/raw/XJ5y64GG
[18:12:30] ruby[bot]: mikeockisitchy: as I told you already, please use https://gist.github.com
[18:12:51] jhass: screenshot please
[18:13:08] mikeockisitchy: if you cant help me just say so
[18:13:18] mikeockisitchy: might be a problem with my ruby or something
[18:13:33] jhass: perhaps, I also see your IP and don't trust you much
[18:13:44] mikeockisitchy: what does my ip have to do with anything
[18:13:57] roshanavand: has joined #ruby
[18:13:57] killerkamel: has joined #ruby
[18:14:08] jhass: if it's a setup issue it's in your ~/.pryrc
[18:15:02] kavanagh: has joined #ruby
[18:15:32] mikeockisitchy: i dont have a .pryrc
[18:16:00] jhass: here's my screenshot showing it doesn't happen: https://cloud.aeshna.de/u/mrzyx/screenshots/screenshot_20160723_201550.png
[18:16:04] jhass: where's yours?
[18:16:07] abhinavmehta: has joined #ruby
[18:16:27] nando293921: has joined #ruby
[18:17:04] mikeockisitchy: alright give me a a minute
[18:19:03] marahin: has joined #ruby
[18:19:04] Jardayn: has joined #ruby
[18:19:46] mikeockisitchy: jhass: http://i.imgur.com/71tFhdm.jpg
[18:19:54] hahuang61: has joined #ruby
[18:19:58] jhass: !troll mikeockisitchy
[18:19:58] ruby[bot]: +bb mikeockisitchy!*@*$#ruby-banned *!*@gateway/web/cgi-irc/kiwiirc.com/ip.69.120.228.4$#ruby-banned
[18:19:58] ruby[bot]: ruby[bot] kicked mikeockisitchy: is a bannable offense, see http://ruby-community.com/pages/user_rules
[18:20:04] jhass: nobody click on that
[18:20:28] alfiemax: what's happening here today
[18:20:37] jhass: just one idiot
[18:20:51] Dreeg: has joined #ruby
[18:25:07] mattwashere: has joined #ruby
[18:25:07] xall: has joined #ruby
[18:25:24] Wixy: has joined #ruby
[18:27:24] edwardly: has joined #ruby
[18:27:24] edwardly: has joined #ruby
[18:27:39] Dreamer4: has joined #ruby
[18:27:55] Es0teric: has joined #ruby
[18:28:16] Dreamer4: any italian ruby channel?
[18:28:32] jhass: Dreamer4: /msg alis list *ruby* ;)
[18:29:30] Dreamer4: jhass great!
[18:29:44] Dreamer4: is it ok if i stay if my english is ok?
[18:29:50] jhass: of course
[18:29:57] Dreamer4: great! thanks
[18:30:10] Dreamer4: any cool projects you work on
[18:30:28] jhass: worked a bit on Crystal today
[18:31:08] Dreamer4: haha kidding
[18:31:14] jhass: http://crystal-lang.org/
[18:31:28] Dreamer4: you are the developer?
[18:31:41] jhass: not the developer, but a contributor
[18:31:46] AndrewIsHere: has joined #ruby
[18:33:25] Dreamer4: ive been using photoshop for a logo all day
[18:34:50] Dreeg: Hi all, can someone please explain me how I can search for an item in XML without specifying the level path?
[18:34:53] fanantoxa: has joined #ruby
[18:35:00] Dreeg: I'm using "ReXML"
[18:35:10] jhass: there's probably your issue :P
[18:35:10] Moosashi: has joined #ruby
[18:35:22] Dreamer4: jhass do you have a good eye in color?
[18:35:35] Dreamer4: or anyone for that matter
[18:36:04] jhass: isn't there ##design or something?
[18:36:40] Dreamer4: probably. my design uses the ruby logo however
[18:36:47] Dreamer4: maybe you can see where i go wrong?
[18:37:27] Dreamer4: maybe i can send a svg
[18:37:42] jhass: Dreeg: .xpath("//item")
[18:37:46] Dreamer4: its ok if i cannot
[18:37:56] ruby[bot]: Just ask your question, if anyone has, is or can, they will respond.
[18:38:08] rodfersou: has joined #ruby
[18:38:38] Dreamer4: jhass is it ok to post links to my logo? see if anyone will help?
[18:38:44] Dreamer4: or that against irc rules
[18:38:48] Dreeg: jhass: but // isn't a root of XML file?
[18:39:04] jhass: Dreeg: mmh yes
[18:39:14] jhass: .// I guess to search from the current element
[18:39:30] Dreeg: But if I want search in any level of XML?
[18:39:42] jhass: Dreamer4: you can see our channel rules at https://ruby-community.com
[18:39:56] xall: has joined #ruby
[18:40:10] jhass: Dreeg: to clarify, // searches anywhere, it just always starts from the root
[18:40:26] jhass: I thought that's what you meant
[18:41:16] Dreeg: I probably had not understood the sense of //, thank you jhass
[18:41:52] Technodrome: has joined #ruby
[18:43:01] Dreamer4: if anyone can help me to see if my ruby logo is the right color i will appreciate it: https://cdn.pbrd.co/images/f28WCBDgf.png
[18:43:33] bjhaid: has joined #ruby
[18:43:40] bjhaid: has left #ruby: ()
[18:44:54] jaguarma_: has joined #ruby
[18:45:44] jhass: !troll Dreamer4
[18:45:44] ruby[bot]: +bb Dreamer4!*@*$#ruby-banned *!*@2604:a880:800:10::489:7001$#ruby-banned
[18:45:44] ruby[bot]: ruby[bot] kicked Dreamer4: is a bannable offense, see http://ruby-community.com/pages/user_rules
[18:45:53] jhass: again, don't click that
[18:48:25] roshanavand: has joined #ruby
[18:49:44] Rodya_: has joined #ruby
[18:50:34] Zarthus: they never post lesbian porn do they
[18:51:40] LoneHerm_: has joined #ruby
[18:51:54] LoneHerm_: has joined #ruby
[18:52:48] AnoHito: has joined #ruby
[18:53:28] bb010g: has joined #ruby
[18:55:18] roamingdog: has joined #ruby
[18:55:40] ruby[bot]: -qqq $a:b4rbz GNUYawk!*@* *!*@unaffiliated/b4rbz
[18:55:57] Mattx: has joined #ruby
[18:59:42] ineb: has joined #ruby
[18:59:58] shevy: I anticipated it sorta
[19:00:30] shevy: I did not click on either links; some other dude comes in to be desperate in showing yet another link.... but I am a suspicious person altogether
[19:01:30] Devalo: has joined #ruby
[19:03:24] roshanavand: has joined #ruby
[19:03:25] Moosashi: has joined #ruby
[19:04:59] dunpeal: has joined #ruby
[19:07:33] Wixy: has joined #ruby
[19:07:42] elifoster: has joined #ruby
[19:10:07] LoneHerm_: has joined #ruby
[19:11:30] Diabolik: best way to be shevy
[19:12:30] GnuYawk: has joined #ruby
[19:13:17] mniip: has joined #ruby
[19:13:29] shevy: here are gem growth stats over time http://bestgems.org/stat/gems
[19:13:39] arup_r: has joined #ruby
[19:13:47] shevy: sorta linear
[19:13:58] martinium: has joined #ruby
[19:14:11] shevy: GNUYawk <--
[19:14:19] Stazer: has joined #ruby
[19:18:45] roshanavand: has joined #ruby
[19:19:03] duncannz: has joined #ruby
[19:19:30] fnux: has joined #ruby
[19:21:26] miqlas-H: has joined #ruby
[19:22:39] bad_ip: has joined #ruby
[19:26:35] atae: has joined #ruby
[19:28:57] sergey_makagon: has joined #ruby
[19:29:17] Diabolik: shevy reports of ruby's death seem to be exaggerated?
[19:30:56] jaguarmagenta: has joined #ruby
[19:34:26] AndrewIsHere: has joined #ruby
[19:35:40] shevy: what reports
[19:36:39] JeanCarloMachado: has joined #ruby
[19:38:13] Ishido: has joined #ruby
[19:39:29] Pupeno: has joined #ruby
[19:39:53] jaguarma_: has joined #ruby
[19:40:48] zapata: has joined #ruby
[19:41:01] jaguarma_: has joined #ruby
[19:41:22] SCHAAP137: has joined #ruby
[19:41:41] weaksauce: has joined #ruby
[19:41:46] Pupeno: has joined #ruby
[19:42:37] jaguarmagenta: has joined #ruby
[19:42:55] AndrewIsHere: has joined #ruby
[19:42:58] ur5us: has joined #ruby
[19:44:00] RegulationD: has joined #ruby
[19:44:05] sergey_makagon: I'm a bit stuck. Could you help me to solve problem i have. Need some advice: https://gist.github.com/smakagon/3c84480727b74ae3678277127b6d5cb6
[19:44:28] ljarvis: sergey_makagon: what have you tried?
[19:44:46] openstruct: has joined #ruby
[19:45:11] sergey_makagon: I want to create class macro which would allow form to have attributes
[19:45:19] sergey_makagon: like: attribute :title
[19:45:22] ljarvis: right, what have you tried?
[19:45:49] ljarvis: it's okay to say nothing if you don't know where to start
[19:46:17] nankyokusei: has joined #ruby
[19:46:25] sergey_makagon: i tried to store attributes in instance variables, but of course it didn't work
[19:46:30] sergey_makagon: just need some direction
[19:46:40] ljarvis: what you want for this is class instance variables, do you know what they are?
[19:46:53] LoneHerm_: has joined #ruby
[19:47:22] ljarvis: great, so I would recommend having an `attributes` class method which returns the attributes class instance variable
[19:47:50] ljarvis: then, in your `self.attribute(name)` method, you can simply `self.attributes << name`
[19:48:40] sergey_makagon: ok, thanks, let me check
[19:48:52] yfeldblum: has joined #ruby
[19:50:25] centrx: has joined #ruby
[19:53:00] mattwashere: has joined #ruby
[19:57:04] jaguarma_: has joined #ruby
[19:57:08] roamingdog: has joined #ruby
[19:57:43] sergey_makagon: ljarvis, thanks that worked well
[19:58:19] sergey_makagon: class instance variables was missing part)
[19:59:46] Moosashi: has joined #ruby
[20:00:22] ur5us: has joined #ruby
[20:02:16] sucks: has joined #ruby
[20:02:27] workmad3: has joined #ruby
[20:03:21] vuoto: has joined #ruby
[20:06:20] roshanavand: has joined #ruby
[20:07:17] chouhoulis: has joined #ruby
[20:08:06] macsteps: has joined #ruby
[20:09:07] arup_r: has left #ruby: ()
[20:09:26] Alina-malina_: has joined #ruby
[20:12:27] douglascorrea: has joined #ruby
[20:13:44] jaguarmagenta: has joined #ruby
[20:14:14] sagax: has joined #ruby
[20:15:32] sumobob: has joined #ruby
[20:18:04] jhack: has joined #ruby
[20:18:46] Moosashi: has joined #ruby
[20:20:40] hahuang61: has joined #ruby
[20:21:53] dionysus69: has joined #ruby
[20:22:16] Mia: has joined #ruby
[20:22:33] SCHAAP137: has joined #ruby
[20:22:33] workmad3: has joined #ruby
[20:23:18] sucks: has joined #ruby
[20:26:02] Stazer: has joined #ruby
[20:29:04] Miron: has joined #ruby
[20:30:44] SuperLag: has joined #ruby
[20:32:35] giz|work: has joined #ruby
[20:34:15] bleep: I'm using fakefs to write some tests. I'm trying `f = File.new("newfile", File::CREAT|File::TRUNC|File::RDWR, 0777)` but the 0777 permission doesn't seem to actually work
[20:35:09] sepp2k: has joined #ruby
[20:39:26] zacts: has joined #ruby
[20:39:37] centrx: has joined #ruby
[20:40:53] jaguarma_: has joined #ruby
[20:41:45] bleep: seems to always be 644
[20:43:26] AndrewIsHere: has joined #ruby
[20:43:36] drbrain: bleep: your umask is 022 then
[20:44:54] drbrain: File.umask 0 will let you create group and world-writable files
[20:45:18] chouhoulis: has joined #ruby
[20:45:20] sergey_makagon: has joined #ruby
[20:46:12] iBleizo: has joined #ruby
[20:46:52] ledestin: has joined #ruby
[20:48:45] Pupeno: has joined #ruby
[20:48:48] roshanavand: has joined #ruby
[20:50:03] xall: has joined #ruby
[20:50:29] bleep: drbrain: thanks. trying to figure out how to use umask in conjunction with creating a new file
[20:51:24] jaguarmagenta: has joined #ruby
[20:52:19] mistermocha: has joined #ruby
[20:53:00] bleep: confused by the chmod(2) man pages for unix, the "mode" parameter, and whether I'm using umask
[20:53:16] bleep: not really sure how this all fits together
[20:54:44] bleep: oh i think i see, File.umask sets the default mask
[20:55:11] tAn: has joined #ruby
[20:56:00] bleep: hm, set umask to 0000 and permission changed to 0666
[20:56:04] bleep: trying to get 0777
[20:59:00] sumobob: has joined #ruby
[20:59:01] drbrain: maybe its something to do with your OS?
[20:59:04] drbrain: $ rm test.file; ruby -e "File.umask 0; File.new 'test.file', 'w+', 0777"; ll test.file
[20:59:04] drbrain: -rwxrwxrwx 1 erichodel staff 0 Jul 23 13:58 test.file*
[20:59:39] drbrain: ↑ same if I use File::CREAT|File::TRUNC|File::RDWR instead of 'w+'
[21:02:35] yude_: has joined #ruby
[21:03:14] bleep: drbrain: that does the same for me in terminal, maybe it's something to do with using fakefs
[21:03:28] xall: has joined #ruby
[21:11:16] dennisvennink: has joined #ruby
[21:12:05] spudowiar: has joined #ruby
[21:13:00] johnny56_: has joined #ruby
[21:14:13] jhack: has joined #ruby
[21:14:23] postmodern: has joined #ruby
[21:15:13] watersoul: has joined #ruby
[21:15:17] xall: has joined #ruby
[21:15:24] bleep: also sort of confused by the mode constants available. It looks like there are only options for reading and writing, no executing
[21:17:10] dvinciguerra_: has joined #ruby
[21:17:17] yeticry: has joined #ruby
[21:17:48] sucks: has joined #ruby
[21:18:25] multi_io: has joined #ruby
[21:18:39] valkyr1e: has joined #ruby
[21:19:03] roshanavand: has joined #ruby
[21:20:04] rodfersou: has joined #ruby
[21:20:07] chouhoulis: has joined #ruby
[21:20:50] cyphase: has joined #ruby
[21:21:14] agent_white: has joined #ruby
[21:22:06] jhack: has joined #ruby
[21:22:09] rickmasta: has joined #ruby
[21:23:09] bleep: maybe i'm misunderstanding this
[21:23:14] bleep: directories can be 0777
[21:23:18] bleep: but files only 0666?
[21:23:27] jaguarma_: has joined #ruby
[21:23:33] martinium: has joined #ruby
[21:23:44] bleep: can files not be 777?
[21:23:47] elomatreb: bleep: Files can also be 777, but it's a really bad idea usually
[21:23:57] bleep: it's only for testing purposes
[21:23:59] elomatreb: 7 means write, read, execute on files
[21:24:25] bleep: elomatreb: do you know how to force it to let me make 0777 files? seems like 666 is max
[21:24:40] abhinavmehta: has joined #ruby
[21:24:44] elomatreb: chmod 777 file should work?
[21:25:20] statelesscode_: has joined #ruby
[21:25:23] elomatreb: But again, you usually really don't want this. 644 or 755 if executable is usually a good default
[21:25:41] bleep: it's just for testing and it's on a VM, no worries
[21:26:03] roamingdog: has joined #ruby
[21:26:07] bleep: i guess i just don't get why it can't be set with File.new
[21:26:51] elomatreb: bleep: Ruby docs recommend to use File
[21:27:01] elomatreb: *File#chmod after creating it
[21:27:40] bleep: elomatreb: looks like that works
[21:27:51] bleep: thanks for your help
[21:28:11] SCHAAP137: has joined #ruby
[21:29:22] beawesomeinstead: has joined #ruby
[21:30:22] binaryplease: has joined #ruby
[21:30:45] alexherbo2: has joined #ruby
[21:31:41] blackmesa: has joined #ruby
[21:34:25] Wixy: has joined #ruby
[21:35:11] ElderFain: has joined #ruby
[21:35:12] funrep: has joined #ruby
[21:35:38] zacts: has joined #ruby
[21:37:55] miqlas-H: has joined #ruby
[21:39:02] iBleizo: has left #ruby: ("Taking a nap")
[21:41:21] Technodrome: has joined #ruby
[21:43:37] Dreeg: has joined #ruby
[21:44:49] RegulationD: has joined #ruby
[21:44:51] swills: has joined #ruby
[21:45:14] roamingdog: has joined #ruby
[21:45:20] Dreeg: jhass: Hi.. apologize for the new noise
[21:45:59] jhass: huh? I see nothing to apologize for
[21:46:23] Dreeg: but if I have two or more tag with the same name in different tree level, XPath.each with //tag attribute find just first 'tag'
[21:46:49] jhass: I never used REXML tbh
[21:47:04] Technodrome: has joined #ruby
[21:47:10] nankyokusei: has joined #ruby
[21:47:27] Pupeno: has joined #ruby
[21:47:53] armyriad: has joined #ruby
[21:47:55] Dreeg: Ih ok, thanks for the clarification first. I will go to RTFM P:
[21:48:29] Dreeg: XPath is very wide
[21:49:44] jhass: docs seem clear though that it should yield each element
[21:49:47] banisterfiend: has joined #ruby
[21:49:58] jhass: a minimal example that reproduces the issue usually clears things up
[21:50:43] weaksauce: has joined #ruby
[21:52:58] Dreeg: I do not know whether to agree
[21:53:30] Dreeg: But it explains a bit all over
[21:56:03] tAn: has joined #ruby
[22:00:14] bleep: How do I convert '0777' into a number I can use for chmod()?
[22:00:19] bleep: it's a string, to clarify
[22:00:36] bleep: just casting to integer results in 777 which makes for wrong permissions
[22:00:48] maloik: has joined #ruby
[22:00:56] jhass: .to_i(8) I guess
[22:01:25] jhass: it's octal
[22:03:23] armyriad: has joined #ruby
[22:03:32] bleep: jhass: '0777'.to_i(8) results in 511
[22:03:44] ruby[bot]: jhass: # => 511 (https://eval.in/610751)
[22:04:10] jhass: > 511.to_s(8)
[22:04:14] jhass: >> 511.to_s(8)
[22:04:15] ruby[bot]: jhass: # => "777" (https://eval.in/610753)
[22:08:13] sneakerhax: has joined #ruby
[22:10:48] centrx: has joined #ruby
[22:13:50] Pupeno: has joined #ruby
[22:14:33] rickmasta: has joined #ruby
[22:14:48] jaguarmagenta: has joined #ruby
[22:15:25] _Sucks: has joined #ruby
[22:16:03] jhass: bleep: or to put it differently, (7 * 8**0) + (7 * 8**1) + (7 * 8**2) == 511
[22:18:25] jhack: has joined #ruby
[22:19:30] GnuYawk: has joined #ruby
[22:20:42] nadir: has joined #ruby
[22:20:53] dkamioka: has joined #ruby
[22:21:23] hahuang61: has joined #ruby
[22:23:37] solars: has joined #ruby
[22:25:27] spider-mario: has joined #ruby
[22:32:52] cd-rum: has joined #ruby
[22:36:40] rickmasta: has joined #ruby
[22:37:17] Pupeno: has joined #ruby
[22:41:21] Rodya_: has joined #ruby
[22:42:54] jaguarmagenta: has joined #ruby
[22:44:12] wilbert: has joined #ruby
[22:45:01] AndrewIsHere: has joined #ruby
[22:45:08] cd-rum: has joined #ruby
[22:45:21] devbug: has joined #ruby
[22:47:50] bleep: jhass: thank you
[22:49:06] JeanCarloMachado: has joined #ruby
[22:49:42] enterprisey: has joined #ruby
[22:50:52] fanantoxa: has joined #ruby
[22:55:25] Rasi: has joined #ruby
[22:57:15] nerium: has joined #ruby
[22:59:19] Rasi: has joined #ruby
[23:01:16] roamingdog: has joined #ruby
[23:01:22] jhack: has joined #ruby
[23:02:13] Technodrome: has joined #ruby
[23:08:07] nerium: has joined #ruby
[23:10:39] Pupeno: has joined #ruby
[23:10:39] Pupeno: has joined #ruby
[23:13:04] buddhabrot_: has joined #ruby
[23:13:53] douglascorrea: has joined #ruby
[23:15:33] spider-mario: has joined #ruby
[23:18:38] nerium: has joined #ruby
[23:21:58] rickmasta: has joined #ruby
[23:23:49] chosen1x: has joined #ruby
[23:23:54] chosen1x: has joined #ruby
[23:26:27] nando293921: has joined #ruby
[23:29:06] nerium: has joined #ruby
[23:34:21] dvinciguerra_: has joined #ruby
[23:36:28] sp4rrow: has joined #ruby
[23:38:08] gizmore: has joined #ruby
[23:39:39] nerium: has joined #ruby
[23:41:06] Madplatypus: has joined #ruby
[23:41:23] matti: has joined #ruby
[23:42:28] theery: has joined #ruby
[23:44:23] sneakerhax: has joined #ruby
[23:45:44] RegulationD: has joined #ruby
[23:48:03] nankyokusei: has joined #ruby
[23:49:51] vdamewood: has joined #ruby
[23:50:09] nerium: has joined #ruby
[23:50:10] tjbiddle: has joined #ruby
[23:51:19] PaulCapestany: has joined #ruby
[23:52:39] ur5us: has joined #ruby
[23:55:31] abhinavmehta: has joined #ruby
[23:56:24] ec0: has joined #ruby
[23:57:44] theery: has joined #ruby
[23:59:55] theery_: has joined #ruby