« Back to channel list

#ruby - 22 June 2016

« Back 1 day Forward 1 day »
[00:00:06] timanema: has joined #ruby
[00:00:35] Kallis: has joined #ruby
[00:03:04] jmignault: has joined #ruby
[00:08:14] Brian: has joined #ruby
[00:08:15] Alina-malina: has joined #ruby
[00:10:54] Rodya_: has joined #ruby
[00:12:56] mdw7: has joined #ruby
[00:13:07] diablerouge: has joined #ruby
[00:14:36] rickmasta: has joined #ruby
[00:16:33] shevy: neo__ start a ruby learning site!
[00:17:12] tao_: has joined #ruby
[00:17:38] bkxd: has joined #ruby
[00:17:51] mattwashere: has joined #ruby
[00:19:07] nettoweb: has joined #ruby
[00:20:15] mdw: has joined #ruby
[00:20:46] ICantCook: I'm trying to duplicate/clone a string using a=p.dup or a=p.clone
[00:20:50] ICantCook: and getting this error:
[00:20:53] ICantCook: /usr/local/lib/ruby/2.1.0/json/common.rb:155:in `encode': "\xE2" on US-ASCII (Encoding::InvalidByteSequenceError)
[00:21:08] timanema: has joined #ruby
[00:21:27] toretore: that's not where that error comes from
[00:21:31] toretore: gist your code
[00:22:05] ICantCook: toretore: Ah, you're right. It's from elsewhere, where I'm parsing json
[00:22:52] ICantCook: got tricked because the data is always changing, and I happened too get this error after I added a string duplication
[00:23:11] ICantCook: is there a way to parse json which sometimes contains UTF8 characters?
[00:24:21] toretore: json always uses utf8, that's not the problem
[00:30:44] mdw: has joined #ruby
[00:34:08] rickmasta: has joined #ruby
[00:35:29] rickmasta: has joined #ruby
[00:36:55] kfrer: has joined #ruby
[00:37:23] djbkd: has joined #ruby
[00:38:17] nettoweb: has joined #ruby
[00:39:44] aryaching: has joined #ruby
[00:40:01] mistermocha: has joined #ruby
[00:42:54] nankyokusei: has joined #ruby
[00:43:42] blandflakes: has joined #ruby
[00:44:07] sdwrage: has joined #ruby
[00:44:33] rickmasta: has joined #ruby
[00:45:33] memorasus: has joined #ruby
[00:53:29] rickmasta: has joined #ruby
[00:55:45] hahuang65: has joined #ruby
[00:56:29] arlek: has joined #ruby
[00:59:22] ponga: has joined #ruby
[01:02:00] Radar: ICantCook: Small reproduciable example please.
[01:02:25] RegulationD: has joined #ruby
[01:02:35] ICantCook: Radar: I haven't been able to get one. Sometimes it works, other times it fails
[01:03:40] hahuang65: has joined #ruby
[01:03:47] AcidCrash0x00: has joined #ruby
[01:03:59] xaxisx: has joined #ruby
[01:05:00] freerobby: has joined #ruby
[01:06:40] SCHAAP137: has joined #ruby
[01:08:28] moeabdol: has joined #ruby
[01:09:01] neo_: has joined #ruby
[01:10:30] weaksauce: has joined #ruby
[01:12:17] swills: has joined #ruby
[01:12:45] diablerouge: has left #ruby: ("Leaving")
[01:13:25] davedev24: has joined #ruby
[01:13:39] Yzguy: has joined #ruby
[01:14:03] Nahra: has joined #ruby
[01:14:27] `tim`: has joined #ruby
[01:15:11] rickmasta: has joined #ruby
[01:15:55] jnoob22: has joined #ruby
[01:16:14] Nawn: has joined #ruby
[01:16:22] mistermocha: has joined #ruby
[01:18:54] cooldavid: has joined #ruby
[01:20:20] havenwood: cooldavid: hi
[01:21:05] cooldavid: I want to connect to an HTTP API and listen for some events, parse the received events... and so on, but I want to keep the stream open (no polling) and reconnect to the stream if the connection is killed, the part I'm not sure how to handle is hwo to keep the connection open
[01:22:06] tAn: has joined #ruby
[01:22:17] arlek: has joined #ruby
[01:24:04] cooldavid: any recommendations?
[01:24:33] Darkman738: has joined #ruby
[01:25:50] havenwood: cooldavid: Consider using one of Ruby's HTTP libraries that support keep-alive, like the gems http, mechanize, httpclient, em-http-request, curb, typhoeus or net-http-persistent.
[01:25:51] havenwood: darkman738: hi
[01:25:59] Darkman738: Perhaps someone can give me some guidance for a n00b.
[01:26:20] havenwood: cooldavid: https://github.com/httprb/http/#readme
[01:26:50] havenwood: cooldavid: ^ that's one very nice option, but all of those I listed support keep-alive and are solid gems
[01:26:52] nerium: Does anyone know if there’s a selectorgadget gem for ruby?
[01:27:01] havenwood: darkman738: ask away
[01:27:26] cooldavid: havenwood: thanks, I'll look into those, I appreciate it
[01:27:50] havenwood: cooldavid: https://github.com/httprb/http/wiki/Persistent-Connections-%28keep-alive%29
[01:27:51] havenwood: cooldavid: you're welcome
[01:28:09] cooldavid: perfect, thanks
[01:28:53] d0nn1e: has joined #ruby
[01:29:20] Darkman738: I've got a hash that I'm working with that contains keys which are a label for my drop down, which is referenced on submission to get its corresponding value. The hurdle I'm trying to work around is that I'd like the visable forms to change on selection based on the value of the selected key, but I don't want to expose the actual values to the view.
[01:30:20] Radar: darkman738: Is this a Rails app?
[01:30:33] Darkman738: Sorry, should have mentioned
[01:30:34] Radar: darkman738: I have an example for that: https://github.com/radar/selector
[01:30:43] Radar: darkman738: Please ask Rails questions over in #rubyonrails next time.
[01:32:10] Darkman738: Thanks, was trying to figure out the channel
[01:33:01] pawnbox: has joined #ruby
[01:33:47] SilverKey: has joined #ruby
[01:35:30] lukebyrne: has joined #ruby
[01:37:02] xaxisx_: has joined #ruby
[01:39:47] bkxd: has joined #ruby
[01:41:05] jaguarmagenta: has joined #ruby
[01:44:31] Darkman738: has joined #ruby
[01:46:33] rkazak: has joined #ruby
[01:48:40] mistermocha: has joined #ruby
[01:48:43] karmatr0n: has joined #ruby
[01:48:57] swills: has joined #ruby
[01:49:42] mattwashere: has joined #ruby
[01:49:47] crystal77: has joined #ruby
[01:52:13] snath: has joined #ruby
[01:57:27] Spami: has joined #ruby
[01:57:53] jackjackdripper1: has joined #ruby
[02:00:51] jackjackdripper: has joined #ruby
[02:02:03] burjn9x: has joined #ruby
[02:03:22] burjn9x: hi everybody.. could you pls guide me how to learn ruby language best?
[02:03:58] jackjackdripper: has joined #ruby
[02:04:24] mattwashere: has joined #ruby
[02:09:14] moeabdol: has joined #ruby
[02:10:28] neo_: has joined #ruby
[02:11:33] shevy: burjn9x first programming language or do you know another one already
[02:12:48] aryaching: has joined #ruby
[02:13:12] memorasus: has joined #ruby
[02:14:19] jackjackdripper1: has joined #ruby
[02:15:11] jackjackdripper2: has joined #ruby
[02:15:41] duncannz: has joined #ruby
[02:17:38] xall: has joined #ruby
[02:19:36] jackjackdripper: has joined #ruby
[02:20:27] nettoweb: has joined #ruby
[02:20:29] safe: has joined #ruby
[02:22:16] timanema: has joined #ruby
[02:22:37] roamingdog: has joined #ruby
[02:31:12] xall: has joined #ruby
[02:31:29] enterprisey: has joined #ruby
[02:34:31] willian: has joined #ruby
[02:35:26] skweek: has joined #ruby
[02:38:29] burjn9x: hi shevy. thanks you. currently i know about java language.
[02:40:53] ornerymoose: has joined #ruby
[02:42:38] ornerymoose: has joined #ruby
[02:43:45] nankyokusei: has joined #ruby
[02:45:08] crystal77: has joined #ruby
[02:46:14] tristanp: has joined #ruby
[02:47:56] tao_: has joined #ruby
[02:51:33] bkxd: has joined #ruby
[03:00:14] jetpackjoe: has joined #ruby
[03:00:25] jackjackdripper: has joined #ruby
[03:01:34] Radar: ?twgr burjn9x:
[03:01:34] ruby[bot]: Radar: I don't see no burjn9x:, whom should I tell about twgr?
[03:01:37] Radar: ?twgr burjn9x
[03:01:38] ruby[bot]: burjn9x: The Well Grounded Rubyist: https://www.manning.com/books/the-well-grounded-rubyist-second-edition - A great book for learning Ruby.
[03:02:46] neo_: has joined #ruby
[03:04:05] burjn9x: Radar. i am just new member. so what 's twgr?
[03:04:55] Radar: burjn9x: look at what ruby[bot] sent you
[03:04:57] burjn9x: ruby[bot]. Thank you so much.
[03:06:00] nettoweb: has joined #ruby
[03:08:17] howdoi: has joined #ruby
[03:10:07] aryaching: has joined #ruby
[03:14:40] jetpackj1: has joined #ruby
[03:18:24] edwardly: has joined #ruby
[03:18:24] edwardly: has joined #ruby
[03:20:57] k3rn31: has joined #ruby
[03:21:04] maloik: has joined #ruby
[03:22:01] jud: has joined #ruby
[03:22:44] dcunit3d: has joined #ruby
[03:22:58] xlegoman: has joined #ruby
[03:24:58] crystal77: has joined #ruby
[03:27:58] braincras: has joined #ruby
[03:30:04] Brian: has joined #ruby
[03:31:22] LoneHerm_: has joined #ruby
[03:31:48] xall: has joined #ruby
[03:32:19] northfurr: has joined #ruby
[03:32:45] mikecmpbll: has joined #ruby
[03:33:07] gix: has joined #ruby
[03:34:38] rkazak: has joined #ruby
[03:35:00] pawnbox: has joined #ruby
[03:35:48] specialblend_: has joined #ruby
[03:38:30] jaguarmagenta: has joined #ruby
[03:39:42] bklane: has joined #ruby
[03:41:09] arescorpio: has joined #ruby
[03:41:14] hk238: has joined #ruby
[03:42:09] dezull: has joined #ruby
[03:43:09] diegoaguilar: has joined #ruby
[03:43:54] specialblend_: hey do you think it’s a good idea to use a DRB daemon to connect to an MQTT broker to publish to a topic, since it’ll just maintain 1 long connection vs connecting each time an event from the server happens and pushing to a topic.
[03:44:27] tmtwd: has joined #ruby
[03:45:54] Dimik1: has joined #ruby
[03:46:36] northfurr: has joined #ruby
[03:47:08] ebbflowgo: has left #ruby: ()
[03:48:31] tAn: has joined #ruby
[03:49:06] guardianJ: has joined #ruby
[03:52:19] bkxd: has joined #ruby
[03:52:53] Ropeney: has joined #ruby
[03:57:29] moeabdol: has joined #ruby
[03:58:04] yardenbar: has joined #ruby
[03:59:17] mattwashere: has joined #ruby
[04:09:22] SilverKey: has joined #ruby
[04:11:46] User458764: has joined #ruby
[04:12:11] djbkd: has joined #ruby
[04:12:35] guardianJ: has joined #ruby
[04:13:31] jordanm: has joined #ruby
[04:15:01] BrianJ: has joined #ruby
[04:15:03] neo_: has joined #ruby
[04:16:03] ornerymoose_: has joined #ruby
[04:19:12] northfurr: has joined #ruby
[04:19:12] jordanm: has joined #ruby
[04:20:13] quazimodo: has joined #ruby
[04:20:32] quazimodo: there's this ruby project that's like a shell, but instead of benig 1 line it's a text editor buffer
[04:20:48] quazimodo: it can do crazy stuff like change db records, etc
[04:20:55] quazimodo: buti .. i can *not* remember it's name
[04:21:59] snath: has joined #ruby
[04:23:38] jordanm: has joined #ruby
[04:25:46] Hyuk: has joined #ruby
[04:26:07] k3rn31: has joined #ruby
[04:28:35] moei: has joined #ruby
[04:28:38] jetpackjoe: has joined #ruby
[04:32:02] Es0teric: has joined #ruby
[04:33:22] pawnbox: has joined #ruby
[04:34:55] nullFxn: has joined #ruby
[04:37:28] mikecmpbll: has joined #ruby
[04:41:19] yaewa: has joined #ruby
[04:42:21] tAn: has joined #ruby
[04:42:32] mistermocha: has joined #ruby
[04:43:34] mistermo_: has joined #ruby
[04:43:46] timanema: has joined #ruby
[04:44:09] kp666: has joined #ruby
[04:44:39] nankyokusei: has joined #ruby
[04:45:36] kp666: has joined #ruby
[04:45:50] xall: has joined #ruby
[04:48:25] karmatr0n: has joined #ruby
[04:48:31] kareeoleez: has joined #ruby
[04:48:44] jordanm: has joined #ruby
[04:48:45] neo_: has joined #ruby
[04:50:04] the_drow: has joined #ruby
[04:51:18] terminalrecluse: has joined #ruby
[04:52:50] User458764: has joined #ruby
[04:54:48] nettoweb: has joined #ruby
[04:55:19] urbanmonk: has joined #ruby
[04:56:15] soLucien: has joined #ruby
[04:56:31] lightt: has joined #ruby
[04:57:06] soLucien: hello guys ! Does anyone know how i can refer to a windows path (C:\something\somewhere) using rfc3986_parser.rb ?
[04:57:18] soLucien: lib/ruby/2.2.0/uri/rfc3986_parser.rb
[04:58:06] pawnbox: has joined #ruby
[04:59:42] RegulationD: has joined #ruby
[05:00:50] Radar: soLucien: Why do you want to do that? Do you really want a file:/// path?
[05:01:00] soLucien: it seems so
[05:01:10] soLucien: i mean Vagrant tries to interpret it using
[05:01:24] soLucien: so i need to refer to it as something that can be parsed using that
[05:06:36] kareeoleez: has joined #ruby
[05:08:56] lukebyrne: has joined #ruby
[05:12:01] neo_: has joined #ruby
[05:12:43] Brian: has joined #ruby
[05:19:04] tao_: has joined #ruby
[05:24:44] kareeoleez: has joined #ruby
[05:25:55] jordanm: has joined #ruby
[05:26:04] kareeoleez: has joined #ruby
[05:26:15] sauvin: has joined #ruby
[05:27:41] phrozen77: has joined #ruby
[05:33:43] djbkd: has joined #ruby
[05:34:00] ag4ve_: has joined #ruby
[05:34:03] djbkd: has joined #ruby
[05:34:10] jordanm: has joined #ruby
[05:34:20] kareeoleez: has joined #ruby
[05:37:46] yardenbar: has joined #ruby
[05:38:35] jordanm: has joined #ruby
[05:39:52] User458764: has joined #ruby
[05:41:04] moei: has joined #ruby
[05:42:50] Niham: has joined #ruby
[05:44:24] cyphase: has joined #ruby
[05:45:06] cyphase: has joined #ruby
[05:45:31] moeabdol: has joined #ruby
[05:46:43] tmtwd: has joined #ruby
[05:48:57] lukebyrne: has joined #ruby
[05:49:16] karmatr0n: has joined #ruby
[05:50:23] aufi: has joined #ruby
[05:51:36] aganov: has joined #ruby
[05:53:14] bkxd: has joined #ruby
[05:56:33] rkazak: has joined #ruby
[05:57:42] UserInneed: has joined #ruby
[05:59:45] sandelius: has joined #ruby
[05:59:48] mattwashere: has joined #ruby
[05:59:53] neo_: has joined #ruby
[06:00:30] RegulationD: has joined #ruby
[06:04:50] f4cl3y: has joined #ruby
[06:05:25] strigon33: has joined #ruby
[06:11:08] Omen: has joined #ruby
[06:11:38] TomyLobo: has joined #ruby
[06:12:43] pawnbox: has joined #ruby
[06:12:48] last_staff: has joined #ruby
[06:13:40] lightt: has joined #ruby
[06:14:10] jordanm: has joined #ruby
[06:14:43] sucks: has joined #ruby
[06:16:06] zacstewart: has joined #ruby
[06:18:35] jordanm: has joined #ruby
[06:18:57] kareeole_: has joined #ruby
[06:19:33] sucks: has joined #ruby
[06:19:59] fenre: has joined #ruby
[06:20:09] Dimik: has joined #ruby
[06:20:18] kareeole_: has joined #ruby
[06:20:43] patrick_star: has joined #ruby
[06:21:03] LoneHerm_: has joined #ruby
[06:21:38] speakingcode: has joined #ruby
[06:21:42] tAn: has joined #ruby
[06:22:45] sucks: has joined #ruby
[06:23:05] yfeldblum: has joined #ruby
[06:23:32] emilkarl: has joined #ruby
[06:26:07] Niham: has joined #ruby
[06:26:45] fenre: has joined #ruby
[06:27:34] vuoto: has joined #ruby
[06:30:38] agit0: has joined #ruby
[06:31:07] jordanm: has joined #ruby
[06:31:30] craigp: has joined #ruby
[06:31:40] ur5us: has joined #ruby
[06:34:26] vqrs: has joined #ruby
[06:35:01] moeabdol: has joined #ruby
[06:35:33] jordanm: has joined #ruby
[06:35:39] aryaching: has joined #ruby
[06:36:40] conta: has joined #ruby
[06:37:47] firstdayonthejob: has joined #ruby
[06:38:54] ur5us: has joined #ruby
[06:39:08] d0lph1n98: has joined #ruby
[06:40:00] jordanm: has joined #ruby
[06:40:40] binaryplease1: has joined #ruby
[06:42:54] nettoweb: has joined #ruby
[06:43:29] the_drow: has joined #ruby
[06:43:56] Hyuk: has joined #ruby
[06:44:24] roamingdog: has joined #ruby
[06:44:35] dionysus69: has joined #ruby
[06:44:53] Axy: has joined #ruby
[06:44:54] timanema: has joined #ruby
[06:45:01] AnoHito_: has joined #ruby
[06:45:01] yfeldblum: has joined #ruby
[06:45:28] nankyokusei: has joined #ruby
[06:45:34] Tempesta_: has joined #ruby
[06:46:24] Radar_: has joined #ruby
[06:46:39] tonini_: has joined #ruby
[06:47:46] Bloodshot_: has joined #ruby
[06:48:04] andikr: has joined #ruby
[06:48:46] aryaching: has joined #ruby
[06:49:13] p0p0pr37_: has joined #ruby
[06:49:41] PaulePan1er: has joined #ruby
[06:49:59] [ace]_: has joined #ruby
[06:50:09] kallisti6: has joined #ruby
[06:50:13] chrisarc1nd: has joined #ruby
[06:50:45] uxp_: has joined #ruby
[06:50:54] DefV_: has joined #ruby
[06:51:05] pontiki_: has joined #ruby
[06:51:14] Skelz0r: has joined #ruby
[06:51:21] shadeslayer_: has joined #ruby
[06:52:37] ledestin_: has joined #ruby
[06:53:56] KrzaQ-: has joined #ruby
[06:54:02] yossarian: has joined #ruby
[06:54:04] ptx0_: has joined #ruby
[06:54:24] scottschecter_: has joined #ruby
[06:54:27] Sthebig_: has joined #ruby
[06:54:27] Sthebig_: has joined #ruby
[06:54:31] _mak: has joined #ruby
[06:54:32] Guest42010: has joined #ruby
[06:54:33] bodie__: has joined #ruby
[06:55:08] jpterry_: has joined #ruby
[06:55:10] hays: has joined #ruby
[06:55:10] havenn: has joined #ruby
[06:55:10] havenn: has joined #ruby
[06:55:11] Ankhers_: has joined #ruby
[06:55:20] blaxter: has joined #ruby
[06:55:40] DanKnox_: has joined #ruby
[06:55:45] valeri_uF0: has joined #ruby
[06:55:46] vqrs_: has joined #ruby
[06:55:50] canton7_: has joined #ruby
[06:56:11] IcyDragon: has joined #ruby
[06:56:28] Alina-malina: has joined #ruby
[06:56:46] jordanm: has joined #ruby
[06:56:57] x0F_: has joined #ruby
[06:57:00] samuelkadolph1: has joined #ruby
[06:57:15] Es0teric: has joined #ruby
[06:57:25] RedDwarf: has joined #ruby
[06:59:26] blaxter: has joined #ruby
[06:59:30] AustinIncognito: has joined #ruby
[06:59:32] conta: has joined #ruby
[06:59:41] joevandy1: has joined #ruby
[06:59:58] chihhsin_: has joined #ruby
[07:00:23] tolland_: has joined #ruby
[07:00:59] SirFunk_: has joined #ruby
[07:01:09] Radar: has joined #ruby
[07:01:22] Emmanuel_Chanel_: has joined #ruby
[07:01:25] RegulationD: has joined #ruby
[07:02:04] Raphal: has joined #ruby
[07:02:08] Silex^^: has joined #ruby
[07:02:40] tenc: has joined #ruby
[07:04:56] ur5us: has joined #ruby
[07:05:37] spudowiar1: has joined #ruby
[07:05:58] Ishido: has joined #ruby
[07:06:49] nettoweb: has joined #ruby
[07:07:09] Hounddog: has joined #ruby
[07:07:18] mikecmpbll: has joined #ruby
[07:07:19] pandaant: has joined #ruby
[07:07:24] tmtwd: has joined #ruby
[07:09:12] mgbowman: has joined #ruby
[07:09:33] mgbowman: has left #ruby: ()
[07:10:29] codecop: has joined #ruby
[07:12:29] xall: has joined #ruby
[07:12:38] Macaveli: has joined #ruby
[07:13:41] jaruga___: has joined #ruby
[07:14:08] futilegames: has joined #ruby
[07:14:46] bigkevmcd: has joined #ruby
[07:14:46] e4xit: has joined #ruby
[07:14:46] johnDoe111: has joined #ruby
[07:15:08] wjimenez5271: has joined #ruby
[07:15:25] neanderslob: has joined #ruby
[07:16:04] solars: has joined #ruby
[07:16:19] emilkarl: has joined #ruby
[07:16:26] Tristan-Speccy: has joined #ruby
[07:16:53] biberu: has joined #ruby
[07:17:46] zacstewart: has joined #ruby
[07:17:57] roamingdog: has joined #ruby
[07:18:15] ensyde: has joined #ruby
[07:18:26] larsss: has left #ruby: ()
[07:19:10] madgen: has joined #ruby
[07:19:43] EXCHGR: has joined #ruby
[07:23:16] yet_one: has joined #ruby
[07:25:02] yet_one: Hello! I'm trying to compile subtle wm with rake, but it fails since no ruby/config.h is exists in /usr/include/ruby-2.3.0/ on ubuntu 16, in git repo it doesn't exist too but line is still exist. Where is a problem?
[07:25:30] tAn: has joined #ruby
[07:25:31] haxrbyte: has joined #ruby
[07:26:00] joonty: has joined #ruby
[07:28:06] Silthias1: has joined #ruby
[07:30:27] yet_one: oh, I've got it
[07:30:31] pLaToOn: has joined #ruby
[07:30:45] yet_one: config.h was placed by package in separate directory /usr/include/x86_64-linux-gnu/ruby-2.3.0/ruby/
[07:31:45] ag4ve: has joined #ruby
[07:31:55] n1x-nz: has joined #ruby
[07:33:20] craigp: has joined #ruby
[07:36:37] ksmutthu: has joined #ruby
[07:39:10] harfangk: has joined #ruby
[07:39:48] Silthias: has joined #ruby
[07:40:18] ksmutthu_: has joined #ruby
[07:40:27] TomyWork: has joined #ruby
[07:42:53] haxrbyte: has joined #ruby
[07:45:47] tmtwd: has joined #ruby
[07:45:54] Es0teric: has joined #ruby
[07:46:31] Kedare: has joined #ruby
[07:46:34] Es0teric: has joined #ruby
[07:46:50] multi_io: has joined #ruby
[07:47:42] antgel: has joined #ruby
[07:49:05] skade: has joined #ruby
[07:49:16] ngw: has joined #ruby
[07:51:14] guardianJ: has joined #ruby
[07:53:12] Spami: has joined #ruby
[07:56:58] lxsameer: has joined #ruby
[07:57:51] ksmutthu: has joined #ruby
[08:01:59] Gasher: has joined #ruby
[08:02:18] RegulationD: has joined #ruby
[08:03:16] djbkd: has joined #ruby
[08:03:31] DTZUBDUB: has joined #ruby
[08:03:57] Charles_CV: has joined #ruby
[08:08:44] yfeldblum: has joined #ruby
[08:08:56] wigust: has joined #ruby
[08:10:19] Xeago_: has joined #ruby
[08:11:35] mikecmpbll: has joined #ruby
[08:14:57] ocbtec: has joined #ruby
[08:15:02] emilkarl: has joined #ruby
[08:16:41] lessless: has joined #ruby
[08:17:31] User458764: has joined #ruby
[08:17:33] snowy: has joined #ruby
[08:17:38] LACampbell: has joined #ruby
[08:18:03] madgen: has joined #ruby
[08:18:16] pawnbox_: has joined #ruby
[08:18:46] zacstewart: has joined #ruby
[08:19:54] karmatr0n: has joined #ruby
[08:21:24] LACampbell: is there a way to force re-evaluation of required files?
[08:21:33] LACampbell: like if I load a.rb, which requires b.rb
[08:21:40] LACampbell: inside IRB, I mean.
[08:25:07] mrgrieves: has joined #ruby
[08:25:20] jhass: use load instead of require
[08:25:26] jhass: beware, strange things will happen
[08:25:34] LACampbell: jhass, such as?
[08:25:49] LACampbell: I am basically using one huge file at the minute, just so I can realod it easily in irb and test stuff out
[08:25:54] jhass: already defined constants, old code not completely vanishing etc
[08:25:55] LACampbell: has left #ruby: ("Ex-Chat")
[08:26:00] LACampbell: has joined #ruby
[08:26:18] fenre: has joined #ruby
[08:26:19] LACampbell: jhass, ah right.
[08:26:26] jhass: it's not "replace code" but load version A and B at the same time
[08:26:38] quakephil: has joined #ruby
[08:26:40] LACampbell: maybe I should just start irb everytime I make new changes
[08:27:14] jhass: or just get pry, call binding.pry somewhere in your stuff and run it normally
[08:32:53] LACampbell: pry seems pretty convoluted. I think I'll just restart irb, seems the cleanest way
[08:32:58] LACampbell: it starts up fast anyway
[08:35:39] dionysus69: has joined #ruby
[08:37:40] jhass: basic usage is just the same as irb
[08:38:04] jhass: pick up its features as you go
[08:38:11] jhass: I promise in a week you forgot irb exists
[08:39:34] bigkevmcd: has joined #ruby
[08:39:48] LACampbell: thanks for the tip. I have a lot on my plate as it is, but I'll keep it in mind.
[08:40:36] kfrer: has joined #ruby
[08:43:26] harfangk: has joined #ruby
[08:43:43] LoneHerm_: has joined #ruby
[08:44:26] mikecmpbll: has joined #ruby
[08:44:52] anisha: has joined #ruby
[08:45:56] timanema: has joined #ruby
[08:46:07] joonty: has joined #ruby
[08:46:34] nankyokusei: has joined #ruby
[08:50:03] Didac: has joined #ruby
[08:50:11] nhhc: has joined #ruby
[08:51:51] jenrzzz: has joined #ruby
[08:54:18] mattwashere: has joined #ruby
[08:54:34] bkxd: has joined #ruby
[08:55:02] LACampbell: has left #ruby: ("Ex-Chat")
[08:56:34] Bish: has joined #ruby
[08:58:21] troulouliou_div2: has joined #ruby
[08:59:15] Nahra: has joined #ruby
[09:00:12] LACampbell: has joined #ruby
[09:01:15] LACampbell: is there a way to do something like "gensym" in ruby? ie genearate a unique symbol or string
[09:01:40] c0mrad3: has joined #ruby
[09:02:47] symm-: has joined #ruby
[09:02:58] edwinvdgraaf: has joined #ruby
[09:03:12] RegulationD: has joined #ruby
[09:03:23] Silthias: has left #ruby: ()
[09:03:57] edwinvdgraaf: has joined #ruby
[09:04:09] pawnbox: has joined #ruby
[09:06:54] timanema: has joined #ruby
[09:09:09] jhass: what do you need it for?
[09:09:21] jhass: unique in what scope?
[09:10:34] Silthias: has joined #ruby
[09:11:49] LACampbell_: has joined #ruby
[09:13:04] strigonLeader: has joined #ruby
[09:18:15] YaknotiS: has joined #ruby
[09:18:57] edwinvdg_: has joined #ruby
[09:19:57] zacstewart: has joined #ruby
[09:22:58] jmignault: has joined #ruby
[09:24:12] workmad3: has joined #ruby
[09:24:51] etehtsea: has joined #ruby
[09:27:11] edwinvdgraaf: has joined #ruby
[09:27:18] Neo--: has joined #ruby
[09:28:03] timanema: has joined #ruby
[09:30:04] tvw: has joined #ruby
[09:31:26] marr: has joined #ruby
[09:32:33] mikecmpbll: has joined #ruby
[09:33:56] jaguarmagenta: has joined #ruby
[09:34:34] LACampbell_: has joined #ruby
[09:38:33] Silthias: has joined #ruby
[09:39:51] edwinvdg_: has joined #ruby
[09:42:35] madgen: has joined #ruby
[09:44:21] aryaching: has joined #ruby
[09:44:51] LoneHermit: has joined #ruby
[09:48:03] tvw: has joined #ruby
[09:49:12] timanema: has joined #ruby
[09:49:50] Oclair: has joined #ruby
[09:50:30] edwinvdgraaf: has joined #ruby
[09:52:07] n1x-nz: has joined #ruby
[09:55:21] bkxd: has joined #ruby
[09:56:00] mdw: has joined #ruby
[09:59:32] moeabdol: has joined #ruby
[10:00:13] brahmana: has joined #ruby
[10:00:41] brahmana: Are the variables declared in irb outside of any function global variables?
[10:00:57] shevy: brahmana a global variable has leading $
[10:00:59] brahmana: They are not accessible inside a function defined on the irb
[10:01:41] mradmacher: has joined #ruby
[10:01:51] jaruga___: has joined #ruby
[10:01:57] brahmana: shevy: Ok, so the scope of the variable defined on irb console without the $ is not available inside a method is it?
[10:03:28] shevy: local variables defined outside are not available inside a method
[10:04:03] RegulationD: has joined #ruby
[10:04:50] brahmana: shevy: Got it. Thanks.
[10:05:54] shevy: @ivars would often be used for that
[10:06:31] brahmana: You mean @ivars in the scope of irb console?
[10:09:52] fenre: has joined #ruby
[10:10:10] quazimodo: has joined #ruby
[10:15:54] Tempesta: has joined #ruby
[10:19:47] k3rn31: has joined #ruby
[10:20:02] SilverKey: has joined #ruby
[10:21:06] Niham: has joined #ruby
[10:21:14] zacstewart: has joined #ruby
[10:22:51] shevy: brahmana irb is about 99% like ruby code
[10:24:57] brahmana: shevy: Ok. What I did not understand was how would @ivars or $gvars make a difference in the case of irb?
[10:25:55] brahmana: Both would be available across all the methods defined on irb right? Effectively making @ivars also global
[10:26:39] shevy: you keep on mentioning irb as if it would be hugely different from ruby itself
[10:27:22] shevy: @ivars still have a scope; if you define them like in module Foo; @foo = 42; end, this will be different from @foo toplevel - https://banisterfiend.wordpress.com/2010/11/23/what-is-the-ruby-top-level/
[10:27:40] hk238: has joined #ruby
[10:27:48] allcentury: has joined #ruby
[10:28:37] hiddenloop: has left #ruby: ()
[10:31:06] sepp2k: has joined #ruby
[10:32:48] emilkarl: has joined #ruby
[10:33:31] millerti: has joined #ruby
[10:38:23] DoubleMalt: has joined #ruby
[10:40:05] emilkarl_: has joined #ruby
[10:41:34] A124: has joined #ruby
[10:43:53] Xeago_: has joined #ruby
[10:44:02] Azure: has joined #ruby
[10:46:54] rodfersou: has joined #ruby
[10:46:55] sebstrax: has joined #ruby
[10:47:01] LoneHermit: has joined #ruby
[10:47:13] nankyokusei: has joined #ruby
[10:48:14] roamingdog: has joined #ruby
[10:49:59] ferr1: has joined #ruby
[10:50:21] moei: has joined #ruby
[10:56:53] jottr: has joined #ruby
[10:57:44] edwinvdg_: has joined #ruby
[10:58:03] ksmutthu: has joined #ruby
[10:58:33] madgen: has joined #ruby
[11:00:11] GodFather: has joined #ruby
[11:00:25] snebel: has joined #ruby
[11:00:40] ensyde: has joined #ruby
[11:04:17] mdw: has joined #ruby
[11:04:49] snebel: Anybody running ruby scripts using RVM with gemsets and using chef to install?
[11:04:57] RegulationD: has joined #ruby
[11:05:59] skade: has joined #ruby
[11:06:29] snebel: I'm struggling to make it works since the rvm cd wrapper creates the gemsets when cding but with chef is not working
[11:06:52] snebel: I can workaround on different ways but I'd like to find and elgant and common solutions
[11:06:56] snebel: if there is one..
[11:07:29] jhass: I guess the two common solutions are rvm do and rvm wrappers
[11:08:31] Bish: has joined #ruby
[11:10:41] sdothum: has joined #ruby
[11:12:16] chip_: has joined #ruby
[11:13:29] Macaveli: has joined #ruby
[11:14:13] nettoweb: has joined #ruby
[11:14:25] jord-n: has joined #ruby
[11:14:33] karmatr0n: has joined #ruby
[11:17:16] ag4ve: has joined #ruby
[11:17:56] AlexJakeGreen: has joined #ruby
[11:17:59] Xeago_: has joined #ruby
[11:18:06] mistermocha: has joined #ruby
[11:18:14] bruce_lee: has joined #ruby
[11:18:55] Ishido: has joined #ruby
[11:19:23] snebel: ok thanks I'll take a look to them :-)
[11:20:25] jmignault: has joined #ruby
[11:20:39] mdw: has joined #ruby
[11:21:33] zacstewart: has joined #ruby
[11:21:44] mdw: has joined #ruby
[11:24:28] ensyde: has joined #ruby
[11:25:22] sandelius: has joined #ruby
[11:25:33] millerti: has joined #ruby
[11:25:52] Hyuk: has joined #ruby
[11:27:03] mello: has joined #ruby
[11:27:21] jinie: has joined #ruby
[11:29:15] symm-: has joined #ruby
[11:30:40] johnmilton: has joined #ruby
[11:31:42] Xeago_: has joined #ruby
[11:33:34] shinnya: has joined #ruby
[11:34:43] jaguarmagenta: has joined #ruby
[11:36:45] k3rn31: has joined #ruby
[11:40:35] millerti: has joined #ruby
[11:40:45] ensyde__: has joined #ruby
[11:41:30] haxrbyte: has joined #ruby
[11:42:55] ldnunes: has joined #ruby
[11:43:24] rann: has joined #ruby
[11:43:45] skade: has joined #ruby
[11:46:45] symm-: has joined #ruby
[11:48:49] Tricon: has joined #ruby
[11:49:36] timanema: has joined #ruby
[11:50:00] iwmrby: has joined #ruby
[11:50:42] Hanmac: has joined #ruby
[11:51:01] madgen: has joined #ruby
[11:51:18] joonty: has joined #ruby
[11:52:33] edwinvdgraaf: has joined #ruby
[11:53:03] guardian: how to reuse tests in 2 different contexts with rspec?
[11:53:29] d0lph1n98: has joined #ruby
[11:54:11] guardian: I have context1 and context2, I have the same describe block in each context, only contexts initialization differ
[11:55:30] rkoller: has joined #ruby
[11:56:05] gnufied: has joined #ruby
[11:56:08] bkxd: has joined #ruby
[11:57:22] mdw: has joined #ruby
[11:58:20] mdw: has joined #ruby
[11:58:55] User458764: has joined #ruby
[11:59:31] Hanmac: guardian: hm you might use shared_examples, that what i did in my binding for different constructor options
[12:01:40] pawnbox: has joined #ruby
[12:03:28] aryaching: has joined #ruby
[12:04:50] synthroid: has joined #ruby
[12:05:21] senayar: has joined #ruby
[12:05:21] senayar: has joined #ruby
[12:05:46] RegulationD: has joined #ruby
[12:10:39] freerobby: has joined #ruby
[12:13:09] Infra-Red: has joined #ruby
[12:17:04] edwinvdgraaf: has joined #ruby
[12:17:26] snowy: has joined #ruby
[12:17:55] sergio_101: has joined #ruby
[12:19:02] diegoviola: has joined #ruby
[12:19:10] rann: has joined #ruby
[12:22:51] Niham: has joined #ruby
[12:22:52] zacstewart: has joined #ruby
[12:23:08] Miron: has joined #ruby
[12:25:10] bmurt: has joined #ruby
[12:25:38] sulky_: has joined #ruby
[12:27:44] rann: has joined #ruby
[12:28:27] ornerymoose: has joined #ruby
[12:29:08] lessless: has joined #ruby
[12:30:33] rann: has joined #ruby
[12:32:08] agit0: has joined #ruby
[12:32:29] ornerymoose_: has joined #ruby
[12:32:40] futilegames: has joined #ruby
[12:33:03] vuoto: has joined #ruby
[12:33:29] guardian: I have another noob question: I want to debug a test on a project that's not mine. For that purpose I add require 'pry-bybug'; binding.pry in the spec file I want to debug
[12:33:45] guardian: how can I make bundler exec rspec know about the pry-byebug gem without modifying the project's Gemfile
[12:33:48] guardian: is this even possible?
[12:37:53] aupadhye: has joined #ruby
[12:39:12] CJKinni: has joined #ruby
[12:41:19] davedev24: has joined #ruby
[12:42:47] jhass: the whole point of bundler is that it's not
[12:44:00] malconis: has joined #ruby
[12:44:01] pawnbox: has joined #ruby
[12:45:02] vedu: has joined #ruby
[12:46:19] rbr: has joined #ruby
[12:46:51] davedev24: has joined #ruby
[12:47:05] vedu: Hello. I have an array of hashes. How can I get an array of values of particular key in the hashes? Something like `@array.map(&[:key])`?
[12:47:11] cdg: has joined #ruby
[12:47:13] Polysics: has joined #ruby
[12:47:47] pontiki_: wished that worked
[12:48:02] LoneHermit: has joined #ruby
[12:48:04] nankyokusei: has joined #ruby
[12:48:55] lupine: my first thought was "create a function returning a function and use currying"
[12:49:01] lupine: whyyyyyyyyyyyyyyyyyyyy scheme, whyyyyyyyy?
[12:49:10] jhass: @array.map(&.[:key])
[12:49:14] jhass: ah no, that's Crystal :P
[12:49:22] fenre: has joined #ruby
[12:49:36] pontiki_: @array.select{|item| item[:key]}
[12:49:41] jhass: map, not select
[12:50:12] pontiki_: depends if they want nils or not
[12:50:29] vedu: pontiki_: yeah that would work. I guess there's no shorthand for it
[12:51:05] lupine: is it still true that &:foo is a large performance penalty?
[12:51:06] CloCkWeRX: has left #ruby: ()
[12:52:24] ujjain: has joined #ruby
[12:52:24] ujjain: has joined #ruby
[12:54:38] shadeslayer: has joined #ruby
[12:54:58] Satyajit: has joined #ruby
[12:55:50] mattwashere: has joined #ruby
[12:56:19] apeiros: lupine: no, in the opposite
[12:56:36] apeiros: with current rubies, &:foo should be faster
[12:56:42] lupine: me really needs to get up to date with modern rubies
[12:56:56] lupine: I managed "our" transition from 1.8 -> 1.9 and am in the middle of managing a transition to 2.1
[12:57:11] apeiros: 2.1? not 2.3?
[12:57:21] kloeri: has joined #ruby
[12:57:22] lupine: current ruby in debian jessie, innit
[12:57:23] apeiros: lacking another lot of optimizations
[12:57:36] lupine: yeah. the new job is more interested in tracking current ruby
[12:57:44] Neo--: has joined #ruby
[12:57:46] apeiros: 2.4 will bring even more, like [1,2].max not creating an array
[12:58:01] timanema: has joined #ruby
[12:58:02] lupine: the current job is much more interested in getting security updates via debian
[13:00:38] senayar: has joined #ruby
[13:00:42] Niham: has joined #ruby
[13:01:04] flopsec: has joined #ruby
[13:01:32] snowy: has joined #ruby
[13:03:42] pawnbox: has joined #ruby
[13:04:02] alxgsv: has joined #ruby
[13:04:17] zel: has joined #ruby
[13:04:26] d0lph1n98: has joined #ruby
[13:05:21] User458764: has joined #ruby
[13:06:08] pLaToOn: has joined #ruby
[13:06:42] RegulationD: has joined #ruby
[13:07:59] deuterium: has joined #ruby
[13:08:26] Asher: has joined #ruby
[13:10:25] senayar: has joined #ruby
[13:10:25] senayar: has joined #ruby
[13:12:01] bkxd: has joined #ruby
[13:13:07] `tim`: has joined #ruby
[13:15:27] aegis3121: has joined #ruby
[13:17:15] sergio_101: has joined #ruby
[13:17:17] Vile`: has joined #ruby
[13:17:26] ChiefAlexander: has joined #ruby
[13:17:35] swills: has joined #ruby
[13:20:09] Neo--: has joined #ruby
[13:20:26] karmatr0n: has joined #ruby
[13:21:59] arlek: has joined #ruby
[13:23:59] zacstewart: has joined #ruby
[13:24:41] change: has joined #ruby
[13:25:07] `tim`: has joined #ruby
[13:25:13] change: 怎么从weechat里面推出去
[13:25:53] vuoto_: has joined #ruby
[13:26:18] aryaching: has joined #ruby
[13:26:26] change: How do I leave
[13:28:44] crameth: has joined #ruby
[13:29:24] vuoto: has joined #ruby
[13:29:30] change: has left #ruby: ("WeeChat 1.0.1")
[13:30:01] insanedreamer_: has joined #ruby
[13:35:28] jaguarmagenta: has joined #ruby
[13:38:53] the_drow: has joined #ruby
[13:39:02] jokke: anyone have the problem with guard and libnotify that icons are _huge_
[13:39:19] jokke: i'm using dunst as a notification daemon
[13:40:52] User458764: has joined #ruby
[13:41:17] mattwashere: has joined #ruby
[13:41:58] allcentury: has joined #ruby
[13:42:08] Xeago_: has joined #ruby
[13:44:03] mikecmpb_: has joined #ruby
[13:44:38] jaiks: has joined #ruby
[13:44:40] jxs_: has joined #ruby
[13:44:46] edwinvdgraaf: has joined #ruby
[13:45:03] vuoto: has joined #ruby
[13:45:44] harfangk: has joined #ruby
[13:46:20] jokke: https://p.jreinert.com/bQFl/
[13:46:38] Guest21: has joined #ruby
[13:46:46] jokke: noticable! :)
[13:47:53] eljimmy: has joined #ruby
[13:48:32] adaedra: That's a bug of your notification daemon, I'd say.
[13:49:26] LoneHerm_: has joined #ruby
[13:49:27] vuoto: has joined #ruby
[13:51:40] bunzz: has joined #ruby
[13:53:40] mattwashere: has joined #ruby
[13:54:02] diegoviola: has joined #ruby
[13:57:20] CJKinni: has joined #ruby
[13:58:20] hk238: has joined #ruby
[13:58:39] insanedreamer: has joined #ruby
[13:59:44] ehuuwj: has joined #ruby
[14:00:30] jmignault: has joined #ruby
[14:02:20] braincrash: has joined #ruby
[14:02:29] symm-: has joined #ruby
[14:03:11] kfpratt: has joined #ruby
[14:04:54] k3rn31: has joined #ruby
[14:05:32] f3ttX]: has joined #ruby
[14:06:20] hutch34: has joined #ruby
[14:07:17] jordanm: has joined #ruby
[14:07:32] timanema: has joined #ruby
[14:07:33] RegulationD: has joined #ruby
[14:10:12] Lord_of_Life: has joined #ruby
[14:10:13] diegoviola: has joined #ruby
[14:10:20] Guest21: has joined #ruby
[14:10:42] spiette: has joined #ruby
[14:11:57] bmurt: has joined #ruby
[14:13:37] User458764: has joined #ruby
[14:14:58] bunzz: i'm trying to figure out what i need to do in order to access the variable bgcolor from within this statement block. can someone help me? https://gist.github.com/anonymous/cd16dab4864640d6dbb9be8bff6ab54e
[14:15:14] bunzz: it returns nil currently
[14:15:42] cdg: has joined #ruby
[14:16:14] jhass: you're doing it correctly, are you sure it's not passed as nil?
[14:16:41] jhass: or that there's a method of the same name in the context the block is evaluated?
[14:17:23] bunzz: this is the error that im getting "TypeError - argument must be color name or pixel (NilClass given):"
[14:17:43] bunzz: app.rb:99:in `background_color='
[14:17:50] bunzz: let me double check
[14:18:36] pawnbox: has joined #ruby
[14:18:45] jhass: bunzz: def build_canvas (
[14:18:48] jhass: get rid of the space
[14:19:01] jhass: (or the parens)
[14:19:55] bunzz: baah, you're right, i was passing nil, lol
[14:20:08] braincrash: has joined #ruby
[14:20:34] bunzz: didnt noticed that space, ill remove it
[14:20:44] bunzz: thanks for the help
[14:21:30] ptx0: has joined #ruby
[14:23:37] snowy: has joined #ruby
[14:24:02] cdg: has joined #ruby
[14:24:36] zacstewart: has joined #ruby
[14:25:18] aupadhye: has joined #ruby
[14:25:53] timanema: has joined #ruby
[14:26:18] cdg_: has joined #ruby
[14:28:35] jaruga____: has joined #ruby
[14:30:56] haxrbyte: has joined #ruby
[14:33:04] edwinvdgraaf: has joined #ruby
[14:34:00] edwinvdg_: has joined #ruby
[14:34:16] snowy: has joined #ruby
[14:34:58] flashpoint9: has joined #ruby
[14:38:19] vuoto_: has joined #ruby
[14:42:26] ChiefAlexander: has joined #ruby
[14:42:49] bkxd: has joined #ruby
[14:42:55] aupadhye: has joined #ruby
[14:44:40] pawnbox: has joined #ruby
[14:47:08] pawnbox: has joined #ruby
[14:48:57] nankyokusei: has joined #ruby
[14:49:30] snath: has joined #ruby
[14:49:31] dsimon: is there a good ruby linter that checks against implicit "self"?
[14:49:39] pandaant: has joined #ruby
[14:49:47] dsimon: maybe i'm not googling the right term, but linters i've looked at so far don't seem to check for that
[14:51:44] vuoto: has joined #ruby
[14:51:51] dcunit3d: has joined #ruby
[14:52:57] aeterne: has joined #ruby
[14:54:28] JakFrist: has joined #ruby
[14:54:31] SilverKey: has joined #ruby
[14:54:51] dsimon: actually, hm
[14:54:59] JakFrist: has left #ruby: ()
[14:55:07] dsimon: now i'm noticing that implicit self is actually behaving differently from explicit self re: private methods :-\
[14:56:42] anisha_: has joined #ruby
[14:56:52] jhass: rubocop should support it though
[14:57:49] jhass: https://github.com/bbatsov/rubocop/blob/master/config/enabled.yml#L636
[14:58:02] Xeago_: has joined #ruby
[14:58:30] zacstewart: has joined #ruby
[14:59:04] ChiefAlexander: has joined #ruby
[15:00:13] dsimon: thank you
[15:00:23] dsimon: what i was originally looking for was actually the opposite of that check
[15:00:44] dsimon: that is, i wanted to make sure that self method calls wouldn't be confused with local variables
[15:01:02] dsimon: however it seems that adding the "self" there affects behavior, so that idea's out
[15:01:05] tfitts: has joined #ruby
[15:01:09] jhass: you shouldn't be, partly for the technical reasons you already discovered, but it's also against the more common style in the community ;)
[15:01:22] dsimon: should i be using empty parens for calls then instead?
[15:01:29] dsimon: i hardly ever see that in ruby either
[15:01:35] fenre: has joined #ruby
[15:01:51] pawnbox: has joined #ruby
[15:02:25] jhass: basically if your issue is that you have so many lines and/or locals in a method and so many methods in a class that it becomes a problem to see on first sight, then your methods and/or class is too big, does too many things and should be split up
[15:02:52] rippa: has joined #ruby
[15:03:19] rkazak: has joined #ruby
[15:04:11] jhass: foo = self.foo is a legit usecase, though even there most people prefer to do a_foo = foo or foo = compute_foo or similar
[15:04:14] joonty: has joined #ruby
[15:05:32] Xeago_: has joined #ruby
[15:06:14] pandaant: has joined #ruby
[15:06:32] aegis3121: has joined #ruby
[15:06:41] jamo: has joined #ruby
[15:06:50] madgen: has joined #ruby
[15:08:27] RegulationD: has joined #ruby
[15:08:39] SilverKey: has joined #ruby
[15:09:28] GodFather: has joined #ruby
[15:09:48] kaspergr1bbe: has joined #ruby
[15:10:11] ocbtec_: has joined #ruby
[15:10:30] dsimon: hm, i see
[15:10:30] dsimon: the main issue is with assignments in particular, esp with things like ActiveRecord that might have automagic "x=" methods
[15:10:30] dsimon: though i guess even the check i proposed wouldn't detect that, cause it's kind of the inverse problem
[15:10:37] diegoaguilar: has joined #ruby
[15:10:37] Karunamon|2: has joined #ruby
[15:10:44] Plas: has joined #ruby
[15:10:45] mayamai: has joined #ruby
[15:10:47] Nilium_: has joined #ruby
[15:10:48] SirFunk: has joined #ruby
[15:10:51] kbni_: has joined #ruby
[15:11:01] FastJack: has joined #ruby
[15:11:06] electrostat: has joined #ruby
[15:11:08] blingrang: has joined #ruby
[15:11:09] TomyWork: has joined #ruby
[15:11:11] gsingh93: has joined #ruby
[15:11:14] Junaos: has joined #ruby
[15:11:15] rkoller: has joined #ruby
[15:11:23] sauvin: has joined #ruby
[15:11:31] programmerq: has joined #ruby
[15:11:37] jhass: self.foo= is an entirely common and legit usecase too, yes
[15:11:42] cevett: has joined #ruby
[15:11:45] KnownSy0: has joined #ruby
[15:12:10] flopsec: has joined #ruby
[15:12:18] agent_white: has joined #ruby
[15:12:25] selu: has joined #ruby
[15:13:04] enterprisey: has joined #ruby
[15:13:44] jhass: agent_white: is that a script btw? :P
[15:14:15] agent_white: jhass: Unfortunately not, I just go through each channel and copy-pasta ;P
[15:14:41] agent_white: But... I really should just script it haha.
[15:15:06] KCmetro: has joined #ruby
[15:15:27] darkxploit: has joined #ruby
[15:16:52] mattwashere: has joined #ruby
[15:17:39] pontiki_: no, don't script your greeting, please
[15:18:14] memorasus: has joined #ruby
[15:18:18] pontiki_: keep it human at least
[15:18:59] Xeago_: has joined #ruby
[15:19:14] diegoaguilar: has joined #ruby
[15:19:51] roamingdog: has joined #ruby
[15:24:09] flashpoint9: has joined #ruby
[15:28:46] SilverKey: has joined #ruby
[15:28:53] Neo--: has joined #ruby
[15:29:09] ftj: has joined #ruby
[15:29:41] nettoweb: has joined #ruby
[15:30:22] mattwashere: has joined #ruby
[15:31:13] mib_0ye: has joined #ruby
[15:32:48] Xeago_: has joined #ruby
[15:33:28] mattwashere: has joined #ruby
[15:33:56] toretore: has joined #ruby
[15:35:01] nettoweb: has joined #ruby
[15:36:12] jaguarmagenta: has joined #ruby
[15:36:53] aryaching: has joined #ruby
[15:37:16] fenre: has joined #ruby
[15:38:26] Ishido: has joined #ruby
[15:38:32] weckl: has joined #ruby
[15:40:15] ptx0: has joined #ruby
[15:40:20] ptx0: has joined #ruby
[15:40:36] bougyman: has joined #ruby
[15:41:25] vuoto: has joined #ruby
[15:42:22] polishdub: has joined #ruby
[15:43:12] hutch34: has joined #ruby
[15:45:33] jetpackjoe: has joined #ruby
[15:47:31] shevy: dsimon mostly people tend to be lazy in ruby because the ruby parser allows them to be lazy
[15:47:33] Xeago_: has joined #ruby
[15:47:36] shevy: like: def foo bar, bla, ble
[15:47:55] KCmetro: has joined #ruby
[15:48:11] VeryBewitching: has joined #ruby
[15:49:23] roamingdog: has joined #ruby
[15:54:06] synthroid: has joined #ruby
[15:54:08] symm-: has joined #ruby
[15:54:13] bklane: has joined #ruby
[16:01:05] fmcgeough: has joined #ruby
[16:01:10] davedev24: has joined #ruby
[16:01:20] neoice: has joined #ruby
[16:01:37] TomyLobo: has joined #ruby
[16:04:34] yatindra_rao: has joined #ruby
[16:04:45] hdlbrkr: has joined #ruby
[16:04:51] phoo1234567: has joined #ruby
[16:05:17] snowy: has joined #ruby
[16:05:45] amclain: has joined #ruby
[16:06:15] dcunit3d: has joined #ruby
[16:07:57] Neo--: has joined #ruby
[16:08:20] ChiefAlexander: has joined #ruby
[16:08:53] anisha_: has joined #ruby
[16:09:20] RegulationD: has joined #ruby
[16:10:39] SCHAAP137: has joined #ruby
[16:13:57] snowy: has joined #ruby
[16:14:06] [Butch]: has joined #ruby
[16:15:45] k3rn31: has joined #ruby
[16:16:33] davedev24: has joined #ruby
[16:16:34] harfangk: has joined #ruby
[16:21:18] davedev24: has joined #ruby
[16:21:22] Neo--: has joined #ruby
[16:22:30] guardian: isn't that bizarre FileTest.size? returns nil when a file has zero size?
[16:23:25] Xiti: has joined #ruby
[16:25:34] aryaching: has joined #ruby
[16:26:41] ag4ve: has joined #ruby
[16:27:51] the_drow: has joined #ruby
[16:28:51] vuoto: has joined #ruby
[16:28:54] timanema: has joined #ruby
[16:28:56] quazimodo: has joined #ruby
[16:28:57] sepp2k1: has joined #ruby
[16:31:15] vuoto: has joined #ruby
[16:31:24] adam|: has joined #ruby
[16:31:43] vuoto: has joined #ruby
[16:32:13] norc: has joined #ruby
[16:32:19] vuoto: has joined #ruby
[16:32:41] vuoto: has joined #ruby
[16:32:51] roamingdog: has joined #ruby
[16:34:05] ljarvis: >> require "tempfile"; FileTest.size Tempfile.new.path
[16:34:08] ruby[bot]: ljarvis: # => (https://eval.in/593700)
[16:34:10] NightMonkey: has joined #ruby
[16:34:15] rkazak: has joined #ruby
[16:34:22] the_drow: has joined #ruby
[16:34:26] ljarvis: returns 0 for me
[16:34:55] ljarvis: (doesn't work on eval bot because of FS access)
[16:35:38] Neo--: has joined #ruby
[16:36:00] vuoto: has joined #ruby
[16:36:21] dionysus69: has joined #ruby
[16:36:57] norc: >> Process.send(:SIGBUS, $$)
[16:37:00] ruby[bot]: norc: # => undefined method `SIGBUS' for Process:Module (NoMethodError) ...check link for more (https://eval.in/593701)
[16:37:01] Madplatypus: has joined #ruby
[16:37:10] norc: >> Process.kill(:SIGBUS, $$)
[16:37:20] ruby[bot]: norc: # => (https://eval.in/593702)
[16:37:26] ksmutthu: has joined #ruby
[16:37:34] dRbiG: has joined #ruby
[16:38:05] dcunit3d: has joined #ruby
[16:38:11] mattwashere: has joined #ruby
[16:38:15] ChiefAlexander: has joined #ruby
[16:38:26] aryaching: has joined #ruby
[16:39:14] moeabdol: has joined #ruby
[16:39:26] Guest65069: has joined #ruby
[16:40:07] dRbiG: hey, google failed me on this... anyone knows of any library that would map timezone codes e.g. CET, EET, PST etc. into tzinfo Country/Place identifiers?
[16:40:35] xall: has joined #ruby
[16:40:36] django_1: has joined #ruby
[16:40:50] dionysus69: has joined #ruby
[16:40:52] wrkrcoop: has joined #ruby
[16:40:53] smathy: has joined #ruby
[16:41:47] jhass: bet the tzinfo gem can do it :P
[16:42:03] dRbiG: pleaseee point me in the right direction...
[16:42:14] norc: Well the tzinfo gem has the information in a file.
[16:42:23] norc: At the very least its extractable.
[16:42:29] the_drow: has joined #ruby
[16:42:51] dRbiG: hmm, at least extractable
[16:43:23] the_drow: has joined #ruby
[16:43:31] bkxd: has joined #ruby
[16:44:26] vuoto: has joined #ruby
[16:45:13] rubirc: has joined #ruby
[16:46:28] mtkd: has joined #ruby
[16:46:36] solocshaw: has joined #ruby
[16:48:16] the_drow: has joined #ruby
[16:48:46] vuoto_: has joined #ruby
[16:49:31] dRbiG: heh, stop coding in ruby for 9 months and your whole setup no longer works :)
[16:49:45] nankyokusei: has joined #ruby
[16:50:07] timanema: has joined #ruby
[16:50:18] norc: dRbiG, your filesystem sucks if the ruby code changed while you stopped doing anything to it. :p
[16:50:19] shevy: don't stop!
[16:50:36] banister: has joined #ruby
[16:51:02] nullFxn: has joined #ruby
[16:51:10] LoneHerm_: has joined #ruby
[16:51:33] dRbiG: well, rebuilding
[16:51:53] freerobby1: has joined #ruby
[16:51:57] dRbiG: make: *** [uncommon.mk:189: build-ext] Error 2
[16:52:08] dRbiG: and all I wanted was... :)
[16:52:34] chosen1: has joined #ruby
[16:52:36] dRbiG: make[2]: *** [Makefile:294: ossl_ssl.o] Error 1
[16:52:46] dRbiG: ehh, ssl, why doesn't it even surprise me
[16:52:55] jhass: mmh, TZInfo::Timezone.all_country_zones.select {|zone| zone.current_period.abbreviation == :CET }.map(&:name) is the best I have so far :/
[16:52:56] madgen: has joined #ruby
[16:53:11] dRbiG: jhass: damn, that's great, thank you
[16:53:26] dRbiG: I haven't got anywhere yet... first I need working ruby :)
[16:53:39] jhass: dRbiG: note it's call time dependent
[16:53:55] User458764: has joined #ruby
[16:54:00] jhass: for example the example above won't return Europe/Berlin currently because it has CEST
[16:54:24] jhass: but I can't find a reverse mapping :/
[16:54:30] dRbiG: yeah yeah, once I see what I have I'll think how to best map it
[16:54:39] the_drow: has joined #ruby
[16:54:45] wrkrcoop: i want to detemrine whether two strings are inside an array of strings
[16:54:53] wrkrcoop: is the only and best way to do that with .any?
[16:54:59] safetypin: has joined #ruby
[16:55:07] wrkrcoop: [1,2,3,4,5] && [1,2].any?
[16:55:30] jhass: wrkrcoop: another way is (["first", "second"] - array).empty? or array.include?("first") && array.include?("second")
[16:55:41] jhass: your code doesn't even do it
[16:55:50] jhass: I would tend to my second example while it's just two
[16:56:08] dRbiG: or build a helper if you anticipate more strings
[16:56:47] wrkrcoop: jhass: sorry ([1,2,3,4,5] & [1,2]).any?
[16:56:59] jhass: ["first", "second"].all? {|s| array.include?(s) }
[16:57:03] jhass: many ways
[16:57:26] dRbiG: or make a hash instead of a list...
[16:57:38] wrkrcoop: dRbiG: yeah i thought about building one
[16:57:58] dRbiG: hmm, there is also Set in ruby afair
[16:58:01] wrkrcoop: dRbiG: also thought about using a hash … i think the data coming in json so transforming it would probably not be the fastest
[16:58:45] dRbiG: well, such questions have no best answer without whole context, and be glad whenever you can conclude you actually do have *whole* context :D
[16:58:49] the_drow: has joined #ruby
[16:59:19] mradmacher: has joined #ruby
[16:59:26] tomchapin: has joined #ruby
[16:59:38] dRbiG: also for json parsing and performance switching to streaming parsers is awesome, if your use case is comparible
[16:59:45] mistermocha: has joined #ruby
[16:59:49] the_drow: has joined #ruby
[17:00:44] dRbiG: compatible*
[17:01:47] the_drow: has joined #ruby
[17:02:30] freerobby: has joined #ruby
[17:02:53] Rutix: has joined #ruby
[17:02:54] Rutix: has joined #ruby
[17:03:00] roamingdog: has joined #ruby
[17:03:58] timanema: has joined #ruby
[17:04:07] KCmetro: has joined #ruby
[17:05:09] aegis3121: has joined #ruby
[17:05:15] centrx: has joined #ruby
[17:07:15] ahammond: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[17:10:12] RegulationD: has joined #ruby
[17:10:39] dRbiG: 2.3.1 compiles fine
[17:10:46] dRbiG: well, time to bump up ruby ver then!
[17:10:46] enterprisey: has joined #ruby
[17:11:03] open_coder: has joined #ruby
[17:11:23] firstdayonthejob: has joined #ruby
[17:11:36] open_coder: django vs rails
[17:11:39] whathappens: has joined #ruby
[17:11:40] tAn: has joined #ruby
[17:11:52] dRbiG: open_coder: ?
[17:12:04] solocshaw1: has joined #ruby
[17:12:19] JakFrist: has joined #ruby
[17:13:18] Neo--: has joined #ruby
[17:14:01] vuoto_: has joined #ruby
[17:14:34] vuoto: has joined #ruby
[17:14:49] vuoto: has joined #ruby
[17:14:56] jhass: dRbiG: TZInfo::Timezone.all_country_zone_identifiers.select {|zone| TZInfo::Timezone.get(zone).transitions_up_to(Time.now.utc).any? {|transition| transition.offset.abbreviation == :CET } }
[17:15:12] dRbiG: jhass: just got my setup running again :D
[17:15:51] Xeago_: has joined #ruby
[17:16:17] jhass: open_coder: Servlets, clearly
[17:16:23] dRbiG: jhass: my usecase is for making https://github.com/drbig/catabot/blob/master/plugins/clock.rb actually useful
[17:16:45] dRbiG: handling Country/Proper Place is easy (though still case-sensitive, which sucks)
[17:16:55] dRbiG: but most real use cases are `time in CET`
[17:17:13] jhass: well get should take that just fine
[17:17:13] dRbiG: plus I'd like to add conversions e.g. `time from 10:00 CEST to PST` etc.
[17:17:50] dRbiG: i.e. you usually gather (someones) timezone, doesn't really matter which country that is
[17:17:55] jhass: TZInfo::Timezone.get("CET").now
[17:17:57] jhass: => 2016-06-22 19:17:44 UTC
[17:18:09] dRbiG: jhass: see, context :D
[17:18:31] dRbiG: haha, that even handles dst...
[17:18:43] rubirc: has joined #ruby
[17:19:12] dRbiG: jhass: and I've been looking over docs on-and-off for some time and was "wtf there's nothing about timezone codes?"...
[17:19:13] jhass: it's a bit odd that you have to ignore Time#zone afterwards, but yeah
[17:19:39] diegoaguilar: has joined #ruby
[17:19:40] d5sx43: has joined #ruby
[17:19:54] pLaToOn: has joined #ruby
[17:20:16] memorasus: has joined #ruby
[17:21:16] dRbiG: well, date and time sucks irl anyway
[17:21:35] dRbiG: jhass: big thanks :)
[17:22:13] jhass: yw, was a fun dive anyway
[17:22:58] rcvalle: has joined #ruby
[17:25:48] jmignault: has joined #ruby
[17:26:13] djbkd: has joined #ruby
[17:26:38] SilverKey: has joined #ruby
[17:27:35] firstdayonthejob: has joined #ruby
[17:27:36] safetypin: has joined #ruby
[17:28:14] solocshaw1: has joined #ruby
[17:29:50] mattwashere: has joined #ruby
[17:30:13] azwieg103: has left #ruby: ()
[17:30:25] zel: has joined #ruby
[17:30:37] alxgsv: has joined #ruby
[17:31:14] dRbiG: ehh also I'm an idiot, oh well
[17:33:06] hahuang65: has joined #ruby
[17:33:32] craigp: has joined #ruby
[17:34:43] JakFrist: has joined #ruby
[17:37:01] jaguarmagenta: has joined #ruby
[17:39:11] spiette: has joined #ruby
[17:40:26] codecop: has joined #ruby
[17:40:51] flopsec: has joined #ruby
[17:41:58] last_staff: has joined #ruby
[17:43:25] d0nn1e: has joined #ruby
[17:44:04] User458764: has joined #ruby
[17:45:24] Dimik: has joined #ruby
[17:47:40] SilverKey: has joined #ruby
[17:48:42] KCmetro: has joined #ruby
[17:48:47] shevy: that is ok
[17:48:56] shevy: you are a human being, not a skynet 3.0 clone
[17:49:25] arlek: has joined #ruby
[17:49:32] Ishido: has joined #ruby
[17:52:32] LoneHermit: has joined #ruby
[17:53:22] spider-mario: has joined #ruby
[17:54:17] Neo--: has joined #ruby
[17:55:51] dRbiG: shevy: I suck at UI design, I wrote the thing and was why `time in CET` doesn't work... well `time CET` works as it should
[17:56:02] RegulationD: has joined #ruby
[17:56:04] hxegon: I don't know. dRbiG, you should take this test to be sure: http://realhumanbeing.net/
[17:56:14] craigp: has joined #ruby
[17:56:47] jhass: ah great, a captcha solver
[17:56:53] dRbiG: hxegon: what if it comes out I'm a robot?
[17:56:54] jhass: wonder what crawler is behind it
[17:57:03] dRbiG: also, saving captcahs should be paid for :P
[17:57:19] jhass: dRbiG: it is, get a Amazon mTurk account :P
[17:57:28] dRbiG: jhass: I know :D
[17:57:45] yxhuvud: has joined #ruby
[17:58:45] sapslaj: has joined #ruby
[17:59:20] Neo--: has joined #ruby
[18:00:04] jetpackjoe: has joined #ruby
[18:00:25] shevy: dRbiG UI design is very very difficult, I mean to get it right and usable and pretty at the same time. I tend to just try to make the UI simple, and not get into the way, the rest is for people with more design skills
[18:00:27] K1SWR: has left #ruby: ("Leaving")
[18:01:08] shevy: my ream was once to have an agnostic GUI for ruby... like, Button.new ... and it would be a TK button... or a gtk button... or wxwidgets... or qt button
[18:01:10] yardenbar: has joined #ruby
[18:01:27] coyo: has joined #ruby
[18:01:32] shevy: then later I thought... "hey why only GUIs... let's include the www too into that!"
[18:02:15] macsteps: has joined #ruby
[18:03:02] dRbiG: also why timezones are freked: `Time.parse('22:00 PST')` OK! TZInfo::Timezone.get('PST') haha NO!
[18:03:17] dRbiG: lemme see...
[18:03:44] roamingdog: has joined #ruby
[18:03:46] dRbiG: `Time.parse('now PST')` uuff, doesn't work
[18:03:56] dRbiG: otherwise I might be angry-sad ;)
[18:04:36] dRbiG: shevy: best thing for my sole projects is I design some UI, come back to it month later and be "wtf was I thinking? was I even?" :D
[18:04:52] SilverKey: has joined #ruby
[18:05:30] shevy: that is why I document what I did usually!
[18:05:43] moei: has joined #ruby
[18:07:13] nerium: has joined #ruby
[18:08:01] hutch34: has joined #ruby
[18:09:08] karmatr0_: has joined #ruby
[18:11:12] dionysus69: has joined #ruby
[18:12:16] davedev24: has joined #ruby
[18:14:43] djbkd: has joined #ruby
[18:14:52] cdg: has joined #ruby
[18:15:06] nankyokusei: has joined #ruby
[18:16:55] sucks: has joined #ruby
[18:19:12] dstarh: has joined #ruby
[18:19:27] zapata: has joined #ruby
[18:19:59] roamingdog: has joined #ruby
[18:21:09] Satyajit: has joined #ruby
[18:23:21] tAn: has joined #ruby
[18:24:55] nadir: has joined #ruby
[18:25:43] mostlybadfly: has joined #ruby
[18:30:16] nofxx: has joined #ruby
[18:31:21] sandelius: has joined #ruby
[18:31:42] nankyokusei: has joined #ruby
[18:32:52] kallisti6: What does the return of an assignment function do?
[18:33:04] BrianJ: has joined #ruby
[18:33:35] kallisti6: ex: using assignment function to set a value on a rest service. I'd like to update the local attr if the rest was successful, otherwise leave it alone
[18:34:18] CJKinni`: has joined #ruby
[18:36:04] jhass: iirc it's ignored
[18:36:19] jhass: the value of an assignment always is its right hand sight
[18:36:45] safetypin: has joined #ruby
[18:38:06] gix: has joined #ruby
[18:38:07] kallisti6: jhass: gotcha. Just wanted to make sure my final (@blah = value) if result == 200 was correct :-)
[18:38:34] kallisti6: yay wrapping a REST api like a rails activerecord object
[18:38:42] lupine: I would avoid relying on the return value of the = methods personally
[18:39:08] kallisti6: I'm not :-) Just wanted to make sure I shouldn't of been
[18:39:48] yfeldblum: has joined #ruby
[18:40:47] ged: has joined #ruby
[18:41:48] diegoviola: has joined #ruby
[18:42:55] ruby-lang575: has joined #ruby
[18:43:26] norc: kallisti6, I think it's a design thing. Perhaps you need to transmit a large object across the network as part of a POST request - at that point you may not want the object transmitted back again.
[18:44:14] ruby-lang575: hey all. we're experiencing pretty consistent (but intermittent) segfaults on ruby 2.3.0 after upgrading from 2.2.5. the segfaults appear to be primarily in rspec but in different places all the time; nothing consistent with a specific library, etc. I can't find any evidence of any 2.3.1 known segfaults but...
[18:44:19] duderonomy: has joined #ruby
[18:44:23] bkxd: has joined #ruby
[18:45:43] norc: skwp, what native extensions are you running?
[18:46:01] norc: skwp, or actually - just gist the segfault screen. ;-)
[18:46:46] havenwood: skwp: can you bump to 2.3.1 and see if you still have any issues?
[18:47:00] _djbkd: has joined #ruby
[18:47:31] N1njturt1e: has joined #ruby
[18:47:59] maucar: has joined #ruby
[18:48:06] dRbiG: heh, unsolvable problem? -> handle case-sensitivity for TZInfo::Timezone
[18:48:09] zacts: has joined #ruby
[18:48:16] dRbiG: i.e. US/Pacific, but Europe/Helsinki
[18:48:31] dRbiG: i.e. I can't just &:capitalize parts between '/'
[18:48:42] skwp: the segfaults are all over the place. i'm going to collect a few
[18:48:51] jenrzzz: has joined #ruby
[18:48:51] jenrzzz: has joined #ruby
[18:48:52] skwp: @havenwood we're on 2.3.1
[18:48:58] havenwood: dRbiG: what's the holdup with capitalizing? what doesn't work?
[18:49:16] skwp: norc: lots of native extensions, which makes this fun to debug
[18:49:17] havenwood: skwp: ah, gotcha - i misunderstood
[18:49:26] havenwood: dRbiG: i don't quite follow, have an example?
[18:49:34] dRbiG: havenwood: user types in US/pacific -> we need US/Pacific, not Us/Pacific
[18:49:46] norc: skwp, gist a seg fault screen then.
[18:49:58] dRbiG: I was thinking getting all TZInfo::Timezone's and downcasing them
[18:50:07] dRbiG: do they even include the code ones though
[18:50:48] skwp: norc: yep i'm putting together a buch of examples
[18:50:51] norc: Great. :)
[18:52:52] dRbiG: they do, problem solved
[18:54:23] hutch34_: has joined #ruby
[18:54:31] skwp: norc: https://gist.github.com/skwp/1550735ebb1f372be9e1297006adaa23 here are 2 examples. both seem to be during init of a class in this case, but that is also not consistent
[18:55:26] skwp: i'm trying to hunt down a few more examples of the segfautls
[18:55:48] skwp: is it normal to see the GC at the top of the stacktrace? maybe there's a GC level issue here
[18:56:06] norc: Well it is a memory issue.
[18:56:39] norc: skwp, I think the only way you can sensibly debug this is if you rebuild ruby and attach a memory debugger like valgrind.
[18:57:02] skwp: yeah that sounds like a ton of fun :)
[18:57:10] skwp: the problem is the segs are not consistently reproducible
[18:57:34] _0xd: has joined #ruby
[18:57:42] skwp: one thing that's interesting is that we can repro this both on debian and osx
[18:57:45] skwp: but not consistently
[18:57:50] kfpratt: has joined #ruby
[18:58:11] KCmetro: has joined #ruby
[18:58:12] norc: havenwood, what do you think looking at the C stacktrace?
[18:58:28] skwp: GC being at the top of the stack definitely sounds like it's a memory problem
[18:58:40] korben: has joined #ruby
[18:59:18] kirun: has joined #ruby
[18:59:25] korben: qq; So there's lots of info on how to read CSV's in a memory efficient way; however, I can't find any info on how to write CSV's in a memory efficient way. Does anyone have any resources/tips?
[18:59:34] devbug: has joined #ruby
[19:00:01] skwp: korben: if you're writing to a file you only need to have that one line in memory at a time. is that not efficient enough?
[19:00:30] korben: skwp: I wasn't sure if it was going to put the whole file in memory when I did CSV.open(). It's not doing that then?
[19:00:46] havenwood: >> require 'rubygems/text'; module TZInfo::Timezone::Finder; extend Gem::Text; def self.call zone; TZInfo::Timezone.all.min_by { |tz| levenshtein_distance tz.name, zone.to_s } end end; TZInfo::Timezone::Finder.call('usa/pacific').name
[19:00:56] havenwood: dRbiG: Unsure if it's at all what your'e wanting, but that's ^ something.
[19:01:04] ruby[bot]: havenwood: # => uninitialized constant TZInfo (NameError) ...check link for more (https://eval.in/593763)
[19:01:15] havenwood: #=> "US/Pacific"
[19:01:20] skwp: https://redmine.ruby-lang.org/issues/11930 this bug report seems to indicate there was a 2.3.0 issue with gc_mark_ptr ...
[19:01:45] havenwood: norc: looking now
[19:02:11] skwp: havenwood: thanks for the eyes on the segfaults
[19:02:25] jackjackdripper: has joined #ruby
[19:02:42] dRbiG: havenwood: oh my noooo
[19:02:48] Dimik1: has joined #ruby
[19:02:51] User458764: has joined #ruby
[19:02:54] dRbiG: havenwood: as in overkill :D
[19:02:57] skwp: >> puts "test"
[19:03:11] rbennacer: has joined #ruby
[19:03:21] vuoto_: has joined #ruby
[19:03:27] flashpoint9: has joined #ruby
[19:03:28] havenwood: rbennacer: hi
[19:03:31] kimegede: has joined #ruby
[19:03:31] dRbiG: havenwood: hehe, actually user-wise that's definitely *better*
[19:03:43] rbennacer: has anyone of you played with ratyrate rating gem?
[19:03:53] rbennacer: i am having some weird issues with it
[19:04:14] dRbiG: havenwood: still overkill though :)
[19:04:18] rbennacer: https://github.com/wazery/ratyrate
[19:04:47] rbennacer: when i try to rate with the same user multiple times it is throwing an error
[19:05:12] rbennacer: sharing the code in a second
[19:05:48] norc: havenwood, from what I can tell is that this particular line triggers the segmentation fault https://github.com/ruby/ruby/blob/v2_3_1/gc.c#L688
[19:06:24] norc: (The pointer seems to have been smashed, leading to a page fault)
[19:06:53] atom_enger: has joined #ruby
[19:07:28] Kyle: has joined #ruby
[19:07:39] atom_enger_: has joined #ruby
[19:08:01] rbennacer: http://pastebin.com/kxhedCfA
[19:08:02] ruby[bot]: rbennacer: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/6b680397fc9cdf843506b43e6ec039b9
[19:08:03] ruby[bot]: rbennacer: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[19:08:25] rbennacer: https://gist.github.com/anonymous/6b680397fc9cdf843506b43e6ec039b9
[19:09:03] rbennacer: this is really weird, is it the gem or is it me?
[19:09:11] jetpackjoe: has joined #ruby
[19:10:59] skwp: I added another segfault to my gist https://gist.github.com/skwp/1550735ebb1f372be9e1297006adaa23
[19:11:12] skwp: the only consistent thing is that they are all around gc_mark_ptr, so maybe there is something up with the GC
[19:11:25] skwp: is there any likelihood that a native extension we're using could be the culprit if it looks like the gc is involved?
[19:11:26] norc: skwp, well its always the same line of code in the gc.c:1067 triggering this.
[19:11:28] skwp: i'm a little out of my depths here
[19:11:37] adam12: rbennacer: Not knowing the API for `rate`, it's likely the gem.
[19:11:50] norc: skwp, some stress test creating objects might be able to more reliably produce the crash.
[19:11:59] norc: skwp, no its not about the GC.
[19:12:11] norc: or its impossible to tell.
[19:12:13] rbennacer: adam12: any gem you recommend for rating
[19:12:28] skwp: ok we'll try to do an object creation stress test
[19:12:46] mtkd: has joined #ruby
[19:12:47] adam12: rbennacer: I normally just roll my own - but if this is Rails related, you should ask over in #rubyonrails.
[19:13:26] norc: skwp, can you attach the loaded features from the sigsegv screen?
[19:14:59] isberg: has joined #ruby
[19:15:37] norc: skwp, logically this function is the problem: heap_get_freeobj_from_next_freepage
[19:15:43] vuoto: has joined #ruby
[19:15:59] skwp: yeah standby
[19:16:07] chip_: has joined #ruby
[19:16:19] skwp: loaded features is gigantic
[19:16:41] skwp: norc: any advice on writing a stress test? i wrote something that instantiates a giant hash in a tight loop but it eats memory and probalby never lets the gc run
[19:17:24] aegis3121: has joined #ruby
[19:17:47] skwp: norc: https://gist.github.com/skwp/1550735ebb1f372be9e1297006adaa23#file-loaded_features
[19:17:48] norc: skwp, no because Im not exactly sure whats broken. From the call path the ruby object heap is screwed up somehow.
[19:18:09] norc: skwp, you don't want to leak the memory. create objects and lose the references
[19:19:01] skwp: norc: gotcha
[19:19:12] apawl: has joined #ruby
[19:19:19] geoffw8_: has joined #ruby
[19:19:23] norc: skwp, and get started by compiling ruby yourself.
[19:19:51] moeabdol: has joined #ruby
[19:20:06] cyphase: has joined #ruby
[19:20:42] agit0: has joined #ruby
[19:23:00] nankyokusei: has joined #ruby
[19:23:57] apawl: I have a weird ruby versioning issue
[19:24:20] apawl: I'm using 2.1.2, but when I try to install a few gems, I'm getting the following:
[19:24:22] apawl: ancient_ruby.h:7: error: ‘struct RString’ has no member named ‘len’
[19:25:18] skwp: stepping away for a bit, thanks for your help norc and havenwood
[19:25:39] apawl: Actually, let me take a step back
[19:25:55] norc: skwp, sure. But you will have to use a memory debugger yourself in all likelihood.
[19:26:12] apawl: I'm on an old version of CentOS. I want to make sure I have the correct ruby-devel files (2.1.2). Where would I get these from?
[19:26:51] norc: apawl, what gem are you trying to install?
[19:27:03] judofyr: has joined #ruby
[19:27:23] norc: apawl, and please gist the entire error message
[19:27:29] apawl: Sure, one moment please
[19:27:52] yardenbar: has joined #ruby
[19:28:27] roamingdog: has joined #ruby
[19:28:45] spiette: has joined #ruby
[19:28:59] wrkrcoop: has joined #ruby
[19:29:45] judofyr: has joined #ruby
[19:30:47] norc: apawl, though from the looks of it the build process is not using the correct ruby header.
[19:30:50] dRbiG: also my ruby code sucks :S
[19:30:53] apawl: norc: https://gist.github.com/anonymous/fc8f603e4fbc1d7bf59d7f6de9a7cca9
[19:31:05] apawl: Yeah, sorry that's what I meant by ruby-devel
[19:31:08] jackjackdripper1: has joined #ruby
[19:31:19] apawl: I want to manually try installing the 2.1.2 headers
[19:31:30] apawl: (also, that's not unicorn, but same error)
[19:31:35] norc: apawl, how is your Ruby installed?
[19:31:51] Guest82: has joined #ruby
[19:31:53] roamingdog: has joined #ruby
[19:32:00] Neo--: has joined #ruby
[19:32:03] flashpoint9: has joined #ruby
[19:32:13] apawl: norc: pulling a file off of S3
[19:32:19] apawl: norc: using a heroku buildpack
[19:32:28] norc: ACTION steps backwards
[19:33:35] apawl: yeah, yeah..
[19:33:42] terminal_: has joined #ruby
[19:33:52] apawl: This is the ruby I'm grabbing: https://s3-external-1.amazonaws.com/pkgr-buildpack-ruby/current/centos-6/ruby-2.1.2.tgz
[19:33:57] arlek_: has joined #ruby
[19:34:07] norc: Would you prefer I pretended I had experience with heroku?
[19:34:20] apawl: Haha forget the heroku part
[19:34:36] apawl: Imagine I'm just trying to install the headers for 2.1.2
[19:34:47] apawl: (trying manually at the moment)
[19:34:52] isberg: has joined #ruby
[19:35:14] norc: apawl, it just never occured to me to install ruby by unpacking a prepackaged directory from someone
[19:35:15] isberg: Does Ruby have a constant for max and min integers? I.e Integer::MAX ?
[19:35:54] jhass: isberg: it automatically updates to BigInt which is only limited by your available memory
[19:35:56] norc: isberg, yes.
[19:36:08] SilverKey: has joined #ruby
[19:36:11] isberg: jhass How about max?
[19:37:01] norc: isberg, assuming you are on a regular PC, you can probably get as high as 2^47-1 or around that ballpark.
[19:37:12] ruby-lang437: has joined #ruby
[19:37:24] norc: (as in that amount of memory to represent your number)
[19:37:37] isberg: Sorry for the confusion. I'm need the maximum possible value for comparison
[19:37:49] jaguarmagenta: has joined #ruby
[19:37:49] jhass: there's no practical one
[19:38:16] isberg: I used Int = 1/0.0
[19:38:45] jhass: that's just Float:Infinity
[19:38:47] norc: Which will rightfully give you Infinity.
[19:38:48] jhass: so a float
[19:38:52] isberg: Guess I can use it again, but was hoping for something else
[19:39:38] jhass: ?xy isberg
[19:39:38] ruby[bot]: isberg: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[19:40:02] jhass: isberg: if you want Infinity just use Float::INFINITY
[19:40:19] isberg: jhass Float::INFINITY is what Im looking for
[19:40:29] jhass: note it's a float
[19:40:32] jhass: not an integer
[19:40:36] lightt: has joined #ruby
[19:40:57] isberg: Yeah, doesn't matter. Just need it for comp.
[19:41:47] jhass: comparison to what though?
[19:42:12] isberg: jhass Life. Thanks for your help.
[19:42:17] jhass: most comparisons to it will always be true or false
[19:42:18] roamingdog: has joined #ruby
[19:42:51] jhass: unless you happen to divide something by 0.0 by accident
[19:43:13] sauvin: has joined #ruby
[19:48:53] mistermocha: has joined #ruby
[19:50:34] dRbiG: anyone here doing lot of python _after_ being comfortable with ruby?
[19:52:16] BrianJ: Is there a go to sound library that developers use for something like an accept/reject sound?
[19:52:24] roamingdog: has joined #ruby
[19:52:33] djbkd: has joined #ruby
[19:55:18] jmignault: has joined #ruby
[19:55:26] timanema: has joined #ruby
[19:57:40] whathappens: has joined #ruby
[19:57:53] fabianfrz1: has joined #ruby
[20:00:56] Neo--: has joined #ruby
[20:01:54] roamingdog: has joined #ruby
[20:07:16] karmatr0n: has joined #ruby
[20:10:22] sshbio: has joined #ruby
[20:12:56] smathy: brian_, no.
[20:14:52] mistermocha: has joined #ruby
[20:16:02] arajakul: has joined #ruby
[20:17:16] arajakul: how does one search for a regex in a file, and output that found regex into a new file?
[20:17:31] smathy: With regex of course.
[20:17:38] Iszak_: that is so meta
[20:17:59] Coldblackice: has joined #ruby
[20:18:08] SilverKey: has joined #ruby
[20:18:19] arajakul: I have the regex, but i'm havin trouble outputting the regex into a new file, it outputs the whole line that it matched
[20:18:35] arajakul: rather then the regex itself
[20:18:44] ruby[bot]: We can't help you without your code, please post it to https://gist.github.com
[20:19:23] 64MAAHT69: has joined #ruby
[20:19:44] nankyokusei: has joined #ruby
[20:23:01] eljimmy: has joined #ruby
[20:24:05] sshbio: has joined #ruby
[20:24:33] macsteps: has joined #ruby
[20:26:27] blackgoat: has joined #ruby
[20:26:49] tomchapin: has joined #ruby
[20:27:26] macsteps: has joined #ruby
[20:28:07] tAn: has joined #ruby
[20:30:40] AcidCrash: has joined #ruby
[20:34:29] postmodern: has joined #ruby
[20:35:30] pawnbox: has joined #ruby
[20:35:30] SilverKey: has joined #ruby
[20:37:37] Yeomra: has joined #ruby
[20:42:22] rodfersou: has joined #ruby
[20:43:11] choke: has joined #ruby
[20:43:13] nachoman: has joined #ruby
[20:45:07] bkxd: has joined #ruby
[20:46:58] nofxx: has joined #ruby
[20:46:58] nofxx: has joined #ruby
[20:48:49] mistermocha: has joined #ruby
[20:50:53] Brian: has joined #ruby
[20:51:18] ag4ve: has joined #ruby
[20:52:00] mattwashere: has joined #ruby
[20:54:37] LoneHerm_: has joined #ruby
[20:56:12] whathappens: has joined #ruby
[20:58:51] johnmilton: has joined #ruby
[20:58:54] skweek: has joined #ruby
[20:59:12] dnewkerk: has joined #ruby
[20:59:52] ChiefAlexander: has joined #ruby
[21:00:42] gnufied: has joined #ruby
[21:00:58] reaVer: has joined #ruby
[21:01:45] bradland: has joined #ruby
[21:02:06] workmad3: has joined #ruby
[21:02:27] bradland: has joined #ruby
[21:03:24] bradland: looking for a hand with some regex. https://eval.in/593828
[21:04:00] bradland: i'm using lograge with the lines tem for formatting the payload, but some of my log entries are appended with this ellipse, which the Lines parser chokes on.
[21:04:38] bradland: i can always gsub that '...' off after the fact but that adds quite a bit of time to file processing when handling lots of lines.
[21:04:47] bradland: so i'd prefer to simply ignore it in my regex capture.
[21:06:09] shevy: I would fine tune the regex at rubular.com
[21:06:09] bradland: i would kind of like it to be in its own capture group so that i can do some analysis on when it's showing up.
[21:06:14] bradland: that's kind of its own problem.
[21:06:31] bradland: yeah, shevy i've been heads down over at rubular for a while.
[21:08:30] diegoaguilar: has joined #ruby
[21:09:50] nettoweb: has joined #ruby
[21:10:39] atmosx: bradland: I would suggest asking the great fellas at #regex
[21:10:51] bradland: atmosx: not a bad idea
[21:11:01] atmosx: just give the language too
[21:11:10] atmosx: let them know you're in ruby
[21:12:20] kareeoleez: has joined #ruby
[21:14:34] shevy: atmosx! have you been drowned with work?
[21:14:43] atmosx: shevy: kinda
[21:15:24] atmosx: shevy: Now I'm ok, I work about 9 hours, but the first month I was at 14 hours on avg, then at 10 on avg, now I'm almost 8. But I like it so much, if it wasn't for my wife I'd be stuck there.
[21:16:35] atmosx: the only bad thing is that I don't have time for my hobby projects
[21:16:59] johnmilton: has joined #ruby
[21:17:13] atmosx: I'm reading Kermingham's and Ritchie's book about C, it's easy so far (nothing really new except statically typed things). How are you doing?
[21:17:50] blackmesa: has joined #ruby
[21:18:20] jhass: bradland: make payload non-greedy and ellipse optional, ()?, and perhaps non-capturing, (?:), ?
[21:19:50] jhass: bradland: http://rubular.com/r/lE41X5raAt
[21:20:24] bradland: jhass: turns out making payload non-greedy works, but it requires more steps than simply making the ellipse group optional like so https://regex101.com/r/vP0uI1/1
[21:20:24] mistermocha: has joined #ruby
[21:20:50] bradland: was going to make it non-capturing, but i need to debug this behavior anyway
[21:21:12] bradland: so i can easily find out which requests are appending the ellipse if it's in a group
[21:22:50] tao_: has joined #ruby
[21:23:05] jhass: bradland: if you keep payload greedy it'll eat the ellipse with its group being optional
[21:23:18] bradland: just noticed that very thing
[21:23:30] shevy: atmosx yeah I have noticed your lack of time simply by you not writing much at all for months! :-) I dunno, I just "bide by my time mostly"... during the coming summer I will probably work at some analytical chemistry institute that does something related to ... analytical characteristication of rhinoviruses ... I did not fully understand it, but they actually co-operate with the old group I was at for some
[21:23:30] shevy: months in 2014
[21:25:12] neoice: has joined #ruby
[21:26:46] Es0teric: has joined #ruby
[21:28:17] atmosx: do you actually enjoy working there?
[21:28:34] Hobogrammer: has joined #ruby
[21:28:51] pawnbox: has joined #ruby
[21:29:09] ksmutthu: has joined #ruby
[21:30:09] shevy: atmosx dunno, would be better if I'd had my own group :P
[21:30:34] atmosx: You'll get there! :-)
[21:30:50] solars: has joined #ruby
[21:31:48] mdw: has joined #ruby
[21:33:45] mdw: has joined #ruby
[21:35:29] djbkd: has joined #ruby
[21:35:41] mdw: has joined #ruby
[21:37:23] mdw: has joined #ruby
[21:37:56] ur5us: has joined #ruby
[21:38:32] jaguarmagenta: has joined #ruby
[21:38:38] lightt: has joined #ruby
[21:41:11] mdw: has joined #ruby
[21:42:45] minimalism: has joined #ruby
[21:43:20] lightt: has joined #ruby
[21:43:38] n_blownapart: has joined #ruby
[21:44:56] GodFather: has joined #ruby
[21:45:19] Tricon: has joined #ruby
[21:45:56] bkxd: has joined #ruby
[21:46:11] johnmilton: has joined #ruby
[21:47:39] mdw: has joined #ruby
[21:49:09] jmignault: has joined #ruby
[21:50:44] macsteps: has joined #ruby
[21:55:23] flashpoint9: has joined #ruby
[21:59:52] isberg: has joined #ruby
[22:00:50] macsteps: has joined #ruby
[22:03:11] jetpackjoe: has joined #ruby
[22:03:30] pilne: has joined #ruby
[22:05:20] mdw: has joined #ruby
[22:05:25] Gasher: has joined #ruby
[22:11:18] Spami: has joined #ruby
[22:11:18] vpassapera: has joined #ruby
[22:11:44] workmad3: has joined #ruby
[22:12:08] vpassapera: Hello all. Have a quick question. Let's say I have a yaml file with the following.... hostname_aliases: - "Val1" - "Val2"
[22:12:25] macsteps: has joined #ruby
[22:12:27] globalall0c: has joined #ruby
[22:12:46] vpassapera: i read that file in ruby and i want to modify each value, e.g. aliases.each { |k, v| aliases[k] = v.... }
[22:13:03] vpassapera: The problem is that since there is no key set i get nil....but how do I iterate and change the values of that hash without keys?
[22:13:08] vpassapera: i want to change the value of each one
[22:13:18] jhass: it's not a "hash without keys"
[22:13:20] jhass: it's a plain array
[22:14:46] Sashimi: has joined #ruby
[22:16:58] malconis: has joined #ruby
[22:18:51] sneakers: has joined #ruby
[22:20:20] mistermocha: has joined #ruby
[22:20:48] rbennacer: has joined #ruby
[22:21:05] nankyokusei: has joined #ruby
[22:21:39] Pharaoh2: has joined #ruby
[22:24:09] macsteps: has joined #ruby
[22:24:26] jmignault: has joined #ruby
[22:24:44] wrkrcoop: has joined #ruby
[22:25:51] macsteps: has joined #ruby
[22:25:52] wrkrcoop: i need to build an endpoint for an API that can receive multiple ids for a resouce, i was thinking i would separate ids by ;, this seems ok, but convention is to just use post right? is using ; to separate IDs sticking to standards?
[22:26:32] jhass: I wouldn't know which standard
[22:26:50] wrkrcoop: jhass: restful
[22:26:59] jhass: restful doesn't specify any such thing
[22:27:04] madgen: has joined #ruby
[22:27:19] wrkrcoop: jhass: what do u think about separating ids with colons in a get request?
[22:27:28] jhass: for query params or formdata, it's ?id[]=1&id[]=2&id[]=3 is probably
[22:27:36] jhass: s/is probably//
[22:28:22] jhass: I think your design requirement of "multiple ids" is probably ill-advised
[22:28:44] wrkrcoop: jhass: are you saying i should just use post and put the IDs in the body?
[22:29:06] lupine: ISTR the array form is a bit non-standard at the best of times
[22:29:11] jhass: I'm saying depending on your actual problem there are probably superior alternatives
[22:29:22] jhass: lupine: still the most common one, no?
[22:29:33] lupine: sure, but you can expect third-party support to be patchy
[22:29:36] jhass: opposed to say id=1&id=2 or id=1,2
[22:30:02] lupine: I'd generally avoid setting the same key multiple times in a querystring myself
[22:30:21] lupine: which pushes on towards the ids=1,2,3 sort of thing
[22:30:21] jhass: well your standard rails form uses that encoding
[22:30:28] lupine: yeah. bless rails
[22:30:31] jhass: I think PHP decodes that by default too
[22:30:58] wrkrcoop: jhass: what would be superior alternatives?
[22:31:09] whathappens: has joined #ruby
[22:31:14] wrkrcoop: get and post seem to be my only options
[22:31:19] jhass: wrkrcoop: it's highly contextual
[22:31:30] jhass: you provided zero real context so far
[22:31:52] caudill: has joined #ruby
[22:32:03] wrkrcoop: jhass: i need to allow someone to make a request for up to 10 ids
[22:32:18] jhass: not any kind of context I'm looking for
[22:33:08] jhass: what's your route, how does your data look like, how does your response look like, how does the requester get those ids in the first place
[22:33:22] jhass: what's your resource in the first place
[22:33:55] wrkrcoop: jhass: route is something like /resouce/id response is json, requester gets the ids from some database or something
[22:33:56] jhass: what's the target audience (language / client library wise)
[22:34:02] ruby[bot]: Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
[22:34:19] zenlot6: has joined #ruby
[22:34:27] wrkrcoop: internal teams are going to be hitting the API to get account info for each account associated with the id
[22:34:39] jhass: you're not answering any of the questions
[22:34:46] jhass: just wiggling around them
[22:35:41] wrkrcoop: internal team hits API, they request multiple IDs, currently the API endpoint only supports 1 id, i need to change it to accept many, i said lets build a new API for that, they said no just modify the existing one
[22:36:12] wrkrcoop: currently the route is just /resource/id=123
[22:36:13] jhass: I give up
[22:36:29] wrkrcoop: im confused nvm
[22:36:32] sauvin: has joined #ruby
[22:37:58] dhk: has joined #ruby
[22:38:23] User458764: has joined #ruby
[22:41:12] roamingdog: has joined #ruby
[22:41:18] jhass: wrkrcoop: well, since you stay vague rather than a recommendation here's what the RESTful way would be. Returning a list of instances of a resource happens over a GET on the resource name, say GET /posts. Filtering typically happens by query params, so with a GET /posts?id[]=1&id[]=2 Rails would give you params[:id] #=> [1, 2] in your index action. In the wild something like GET /posts/search?id[]=1&id[]=2 can
[22:41:20] jhass: be observed too
[22:41:57] wrkrcoop: jhass: whats with the []
[22:42:04] jhass: see above
[22:42:07] wrkrcoop: if a param has that does it mean there are more?
[22:42:22] jhass: it's formdata convention for arrays
[22:42:58] wrkrcoop: jhass: thanks for the help
[22:44:42] jhass: note I'm neither recommending nor denying that as a solution to your actual problem, as I still know nothing about your real requirements
[22:45:20] wrkrcoop: jhass: this would not be ‘bakwards compatible’ correct? since most ppl using the api are just passing in /id=1 now they’d have to pass in /id[]=1
[22:45:38] jhass: wrkrcoop: no.
[22:45:55] jhass: the path is another part of the URI than the query param is
[22:46:13] mikeiniowa: has joined #ruby
[22:46:42] wrkrcoop: jhass: but ill have to check if they’re just passing in 1 or an array of ids ...
[22:47:14] jhass: wrkrcoop: I won't help you with your actual problem since you don't provide any real context
[22:47:32] wrkrcoop: jhass: for next time, what do u mean by context?
[22:47:37] wrkrcoop: i know what context means
[22:48:15] macsteps: has joined #ruby
[22:48:57] jhass: not "I have some route that does some things" but "I currently have an API endpoint GET /posts that returns an array of {"id": 1, "content": "foo"} when requested. I want to allow to filter the results by id"
[22:49:34] wrkrcoop: got it. will work on it
[22:49:47] jhass: "users of my endpoint use Ruby with the rest-client gem as HTTP client"
[22:51:11] mdw: has joined #ruby
[22:52:21] mdw: has joined #ruby
[22:53:00] bklane: has joined #ruby
[22:53:36] mdw: has joined #ruby
[22:55:23] mdw: has joined #ruby
[22:55:46] Gasher^: has joined #ruby
[22:56:43] Box-Jellyfish: has joined #ruby
[22:57:16] Box-Jellyfish: I've never programmed before, should I start with Ruby or Python?
[22:57:23] xall: has joined #ruby
[22:57:31] jhass: Ruby obviously
[22:57:45] jhass: now ask #python and receive "Python obviously" as answer
[22:57:55] jhass: it makes no real difference if we're honest
[22:57:56] Box-Jellyfish: jhass: Yeah, that's right
[22:58:13] Box-Jellyfish: jhass: But I cannot decide
[22:58:25] jhass: good, I decide for you. Pick Ruby
[22:58:26] Box-Jellyfish: jhass: It's pretty hard to decide
[22:58:39] solars: has joined #ruby
[22:58:45] Box-Jellyfish: jhass: But I need some good reasons
[22:58:58] jhass: there are none
[22:59:20] jhass: http://tryruby.org/ mmh, does that 500 for everybody currently or just me?
[22:59:21] Box-Jellyfish: jhass: Go and Fuck Yourself
[22:59:28] mtkd: has joined #ruby
[22:59:37] jhass: excuse me?
[22:59:50] Box-Jellyfish: jhass: Why you have to be such a bitch?
[22:59:52] adam12: jhass: 500 here.
[23:00:06] adam12: jhass: it was up earlier today tho
[23:00:20] Box-Jellyfish: jhass: Some am gonna say this one more time, GaFY!
[23:00:26] jhass: Box-Jellyfish: with that attitude you're not welcome in our community, try your luck #python then
[23:00:30] jhass: !rude Box-Jellyfish
[23:00:30] ruby[bot]: +qq Box-Jellyfish!*@* *!*@gateway/web/freenode/ip.93.91.194.95
[23:01:02] Box-Jellyfish: has left #ruby: ()
[23:01:15] havenwood: "We're sorry, but something went wrong."
[23:01:52] snath: has joined #ruby
[23:03:13] n_blownapart: has joined #ruby
[23:04:06] blackmesa: has joined #ruby
[23:07:01] cb`: has joined #ruby
[23:07:07] jetpackjoe: has joined #ruby
[23:07:17] rickmasta: has joined #ruby
[23:08:08] bklane: has joined #ruby
[23:09:24] jenrzzz: has joined #ruby
[23:09:25] jenrzzz: has joined #ruby
[23:13:18] lightt: has joined #ruby
[23:13:21] jhass: mh, I'm bored, anybody logs #python / #python-unregisted? wonder if they managed to get themselves banned there too
[23:17:46] diegoaguilar: has joined #ruby
[23:19:22] aryaching: has joined #ruby
[23:20:22] xall: has joined #ruby
[23:22:58] millerti: has joined #ruby
[23:23:38] diegoaguilar: has joined #ruby
[23:26:03] macsteps: has joined #ruby
[23:27:07] jmignault: has joined #ruby
[23:29:55] David27: has joined #ruby
[23:32:46] lightt: has joined #ruby
[23:33:58] quazimodo: has joined #ruby
[23:34:32] wrkrcoop: has joined #ruby
[23:37:05] n_blownapart: has joined #ruby
[23:39:19] jaguarmagenta: has joined #ruby
[23:40:08] nankyokusei: has joined #ruby
[23:40:45] markfletcher: has joined #ruby
[23:41:40] roamingdog: has joined #ruby
[23:41:44] sauvin: has joined #ruby
[23:41:56] solocshaw1: has joined #ruby
[23:42:17] mattwashere: has joined #ruby
[23:42:44] elifoster: has joined #ruby
[23:42:49] mistermocha: has joined #ruby
[23:44:52] koooge: has joined #ruby
[23:45:22] n_blownapart: has joined #ruby
[23:46:04] karmatr0n: has joined #ruby
[23:46:44] bkxd: has joined #ruby
[23:47:15] choke: has joined #ruby
[23:48:41] allcentury: has joined #ruby
[23:49:04] dcunit3d: has joined #ruby
[23:50:53] ICantCook: toretore, Radar: Regarding that json parsing error yesterday, I solved it by running .force_encoding('iso-8859-1').encode('utf-8') on the string I was trying to parse. Working perfectly now.
[23:54:44] RegulationD: has joined #ruby
[23:55:25] wnd: has joined #ruby
[23:56:10] Guest89011: has joined #ruby
[23:58:23] shinnya: has joined #ruby