« Back to channel list

#ruby - 29 April 2016

« Back 1 day Forward 1 day »
[00:06:51] Radar: hiSPanIC: hi
[00:10:09] pawnbox: has joined #ruby
[00:10:15] jenrzzz: has joined #ruby
[00:10:35] ryan_notabot: has joined #ruby
[00:12:49] n008f4g_: has joined #ruby
[00:13:41] stardiviner: has joined #ruby
[00:14:27] tjbiddle: has joined #ruby
[00:17:29] idefine: has joined #ruby
[00:19:36] duncannz: has joined #ruby
[00:20:53] chipotle: has joined #ruby
[00:26:13] ryan_notabot: has joined #ruby
[00:26:30] baweaver: has joined #ruby
[00:30:40] yude: has joined #ruby
[00:31:21] ryan_notabot: has joined #ruby
[00:33:14] Cohedrin: has joined #ruby
[00:34:17] elifoster: has joined #ruby
[00:34:23] tAn: has joined #ruby
[00:35:14] zacstewart: has joined #ruby
[00:35:45] ur5us: has joined #ruby
[00:36:55] william3: has joined #ruby
[00:37:11] jaguarmagenta: has joined #ruby
[00:38:31] bronson: has joined #ruby
[00:39:28] Mia: has joined #ruby
[00:39:28] Mia: has joined #ruby
[00:39:47] Ropeney: has joined #ruby
[00:47:29] flashpoint9: has joined #ruby
[00:54:42] flashpoint9: has joined #ruby
[00:56:09] rickmasta: has joined #ruby
[00:57:57] stardiviner: has joined #ruby
[00:58:49] Xeago: has joined #ruby
[00:59:05] ledestin: has joined #ruby
[01:01:16] idefine: has joined #ruby
[01:02:20] LoneHermit: has joined #ruby
[01:06:55] lycaonian: has joined #ruby
[01:07:24] chouhoulis: has joined #ruby
[01:10:32] sdothum: has joined #ruby
[01:12:15] UniFreak: has joined #ruby
[01:14:15] robbyoconnor: has joined #ruby
[01:17:00] ruby-lang097: has joined #ruby
[01:20:37] djbkd: has joined #ruby
[01:21:54] The_Phoenix: has joined #ruby
[01:21:54] dopamean_: has joined #ruby
[01:23:20] arescorpio: has joined #ruby
[01:28:05] shazaum_: has joined #ruby
[01:28:23] sdothum: has joined #ruby
[01:30:00] Radar: castlelore: hello :)
[01:31:11] rbennacer: has joined #ruby
[01:32:38] tlolczyk: has joined #ruby
[01:34:10] tlolczyk: http://pastebin.com/69RmaY3y It looks like there is nothing in the file $upgrade_log at lines 9,10, but when the script finishes there is something in there.
[01:34:11] ruby[bot]: tlolczyk: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/005906e4fac8f540201f302a5ada3b37
[01:34:11] ruby[bot]: tlolczyk: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[01:38:14] stardiviner: has joined #ruby
[01:38:29] william3: has joined #ruby
[01:38:53] tfitts: has joined #ruby
[01:39:14] bronson: has joined #ruby
[01:39:26] binaryplease1: has joined #ruby
[01:41:20] ur5us: has joined #ruby
[01:44:36] jenrzzz: has joined #ruby
[01:44:36] jenrzzz: has joined #ruby
[01:45:32] Seeq: has joined #ruby
[01:50:20] silentpost: has joined #ruby
[01:50:25] Limix: has joined #ruby
[01:52:52] rbennacer: has joined #ruby
[01:55:21] zacstewart: has joined #ruby
[01:57:17] rbennacer: has joined #ruby
[01:58:21] chipotle: has joined #ruby
[02:00:00] Xeago: has joined #ruby
[02:00:15] diegoaguilar: has joined #ruby
[02:07:14] ur5us: has joined #ruby
[02:08:01] statelesscode: has joined #ruby
[02:08:20] rbennacer: has joined #ruby
[02:09:44] diegoaguilar: has joined #ruby
[02:17:08] rbennacer: has joined #ruby
[02:17:29] yude: has joined #ruby
[02:19:25] sp4rrow: has joined #ruby
[02:21:31] agent_white: has joined #ruby
[02:24:34] jenrzzz: has joined #ruby
[02:26:49] skweek: has joined #ruby
[02:30:30] rbennacer: has joined #ruby
[02:32:11] chipotle: has joined #ruby
[02:35:03] Guest38: has joined #ruby
[02:36:14] stardiviner: has joined #ruby
[02:38:01] jaguarmagenta: has joined #ruby
[02:41:47] mclong: has joined #ruby
[02:42:47] SilverKey: has joined #ruby
[02:44:58] hfp: has joined #ruby
[02:48:26] tlolczyk: https://gist.github.com/005906e4fac8f540201f302a5ada3b37 It looks like there is nothing in the file $upgrade_log at lines 9,10, but when the script finishes there is something in there.
[02:49:23] ur5us: has joined #ruby
[02:50:13] aghalarp: has joined #ruby
[02:50:44] stannard: has joined #ruby
[02:55:14] Sigma00: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[02:56:43] mclong: has joined #ruby
[03:00:02] gnufied: has joined #ruby
[03:06:12] baweaver: has joined #ruby
[03:08:58] zast: has joined #ruby
[03:09:18] berserk_ren: has joined #ruby
[03:11:32] Es0teric: has joined #ruby
[03:11:52] hfp: has joined #ruby
[03:12:24] kinduff: has joined #ruby
[03:13:30] dh64: has joined #ruby
[03:13:49] braincrash: has joined #ruby
[03:16:32] davedev24: has joined #ruby
[03:16:46] pawnbox: has joined #ruby
[03:18:04] d0lph1n98: has joined #ruby
[03:18:58] isxek: has joined #ruby
[03:20:11] The_Phoenix: has joined #ruby
[03:21:09] smathy: has joined #ruby
[03:21:21] The_Phoenix: has joined #ruby
[03:23:03] terminalrecluse: has joined #ruby
[03:24:47] duckpupp1: has joined #ruby
[03:30:57] jbcden: has joined #ruby
[03:32:41] jbcden: has joined #ruby
[03:34:33] gix: has joined #ruby
[03:36:16] BTRE: has joined #ruby
[03:36:49] Alina-ma-: has joined #ruby
[03:36:53] nando293921: has joined #ruby
[03:37:21] Cyrus: has joined #ruby
[03:41:03] Alina-ma|: has joined #ruby
[03:41:23] crystal77: has joined #ruby
[03:41:30] Amnez777: has joined #ruby
[03:42:03] LoneHermit: has joined #ruby
[03:42:37] The_Phoenix1: has joined #ruby
[03:44:38] fedexo: has joined #ruby
[03:45:36] Amnez777-: has joined #ruby
[03:45:54] CloCkWeRX: has joined #ruby
[03:46:22] Cohedrin: has joined #ruby
[03:46:46] silentpost: has joined #ruby
[03:47:20] Trynemjoel: has joined #ruby
[03:47:37] vishwa: has joined #ruby
[03:47:46] devbug: has joined #ruby
[03:48:23] vishwa: Dudes, I have a txt file where each line is in csv format. I want to read all the lines, delete the ones where the last value > second last, and keep the rest. How do I do this?
[03:48:38] vishwa: can I R/W simultaneously?
[03:51:33] Alina-malina: has joined #ruby
[03:52:33] sgambino: has joined #ruby
[03:53:48] brianpWins: has joined #ruby
[03:54:30] northrup: has joined #ruby
[03:55:33] Trynemjoel: has joined #ruby
[03:57:21] pawnbox: has joined #ruby
[03:57:57] symm-: has joined #ruby
[04:01:19] pawnbox: has joined #ruby
[04:01:55] Trynemjoel: has joined #ruby
[04:03:01] Moosashi: has joined #ruby
[04:05:11] gnufied: has joined #ruby
[04:07:01] RegulationD: has joined #ruby
[04:07:24] pawnbox: has joined #ruby
[04:07:36] baweaver: has joined #ruby
[04:08:41] tjbiddle: has joined #ruby
[04:08:45] nofxx: has joined #ruby
[04:08:53] nofxx: has joined #ruby
[04:10:18] noService: has joined #ruby
[04:11:25] Trynemjoel: has joined #ruby
[04:13:52] aspiers_: has joined #ruby
[04:16:36] mclong: has joined #ruby
[04:16:42] statelesscode: has joined #ruby
[04:18:24] yude_: has joined #ruby
[04:30:50] jaguarmagenta: has joined #ruby
[04:31:10] drusepth: has joined #ruby
[04:31:44] drusepth: where's the best channel to ask rails-specific (specifically activerecord) questions?
[04:32:28] tjbiddle: has joined #ruby
[04:33:06] Amnez777: has joined #ruby
[04:33:29] Alina-malina: has joined #ruby
[04:33:43] djbkd: has joined #ruby
[04:37:13] Eiam_: has joined #ruby
[04:38:34] JesseH: has joined #ruby
[04:38:53] JesseH: has joined #ruby
[04:39:06] d0lph1n98: has joined #ruby
[04:42:18] bronson: has joined #ruby
[04:44:59] yfeldblum: has joined #ruby
[04:47:16] yfeldblum: has joined #ruby
[04:47:36] baweaver: drusepth: #RubyOnRails
[04:48:05] astrobun_: has joined #ruby
[04:48:30] tAn: has joined #ruby
[04:50:58] lxsameer: has joined #ruby
[04:51:44] TheWhip: has joined #ruby
[04:51:49] bronson: has joined #ruby
[04:52:01] yfeldblum: has joined #ruby
[04:54:30] jenrzzz: has joined #ruby
[04:54:30] jenrzzz: has joined #ruby
[04:55:09] lkba: has joined #ruby
[04:58:25] Caelum: has joined #ruby
[04:58:40] mlakewood: has joined #ruby
[05:00:06] drusepth_: has joined #ruby
[05:03:02] PedramT: has joined #ruby
[05:03:10] Antiarc: has joined #ruby
[05:04:24] sauvin: has joined #ruby
[05:05:59] Devalo: has joined #ruby
[05:06:10] fclausen: has joined #ruby
[05:07:29] TheNet: has joined #ruby
[05:08:14] TheNet: has joined #ruby
[05:08:15] tAn: has joined #ruby
[05:08:40] lemur: has joined #ruby
[05:09:53] TheNet: has joined #ruby
[05:11:07] TheWhip: has joined #ruby
[05:14:21] pietr0: has joined #ruby
[05:17:50] User458764: has joined #ruby
[05:19:22] futilegames: has joined #ruby
[05:21:41] tildes: has joined #ruby
[05:25:21] Moosashi: has joined #ruby
[05:25:35] duckpupp1: has joined #ruby
[05:33:02] zacstewart: has joined #ruby
[05:36:18] william3: has joined #ruby
[05:36:20] yfeldblum: has joined #ruby
[05:36:51] joonty: has joined #ruby
[05:36:56] aufi: has joined #ruby
[05:37:05] yfeldblum: has joined #ruby
[05:42:46] drusepth: has joined #ruby
[05:43:10] lxsameer: has joined #ruby
[05:46:39] baweaver: has joined #ruby
[05:46:40] hinbody: has joined #ruby
[05:47:53] kareeoleez: has joined #ruby
[05:48:18] User458764: has joined #ruby
[05:48:41] kernerlke: has joined #ruby
[05:50:19] jenrzzz: has joined #ruby
[05:51:09] aufi: has joined #ruby
[05:52:41] Alina-malina: has joined #ruby
[05:53:34] kareeole_: has joined #ruby
[05:53:35] darkxploit: has joined #ruby
[05:56:33] alex1a: has joined #ruby
[05:57:06] PaulCapestany: has joined #ruby
[06:00:29] tAn: has joined #ruby
[06:00:40] davedev24: has joined #ruby
[06:02:11] User458764: has joined #ruby
[06:02:41] tildes: has joined #ruby
[06:03:10] kernerlke: allooooooooooooo
[06:04:14] jaruga___: has joined #ruby
[06:04:37] jaruga___: has joined #ruby
[06:04:38] LoneHermit: has joined #ruby
[06:05:20] kareeoleez: has joined #ruby
[06:07:02] d0lph1n98: has joined #ruby
[06:13:49] last_staff: has joined #ruby
[06:14:58] joyce_: has joined #ruby
[06:15:25] tjbiddle: has joined #ruby
[06:16:34] kareeoleez: has joined #ruby
[06:19:25] joyce_: I am new to ruby, and is trying to write a git hook in ruby. I want to use the rugged gem in my script. The gem is already available in /opt/gitlab/embedded/service/gem/ruby/2.1.0/ as part of GitLab installation. How can I require that gem in my script?
[06:19:55] yfeldblum: has joined #ruby
[06:22:07] AlexRussia: has joined #ruby
[06:24:13] firstdayonthejob: has joined #ruby
[06:26:01] Emmanuel_Chanel: has joined #ruby
[06:27:02] dome22xl: has joined #ruby
[06:27:10] dionysus69: has joined #ruby
[06:28:13] bronson: has joined #ruby
[06:28:41] kareeoleez: has joined #ruby
[06:29:36] raeoks: has joined #ruby
[06:33:12] scepticulous: has joined #ruby
[06:33:20] rohit: has joined #ruby
[06:33:27] p1k: has joined #ruby
[06:34:02] pawnbox: has joined #ruby
[06:34:27] castlelore: has joined #ruby
[06:35:02] pLaToOn: has joined #ruby
[06:36:02] ramfjord: has joined #ruby
[06:39:43] castlelore: has joined #ruby
[06:40:39] lkba: has joined #ruby
[06:41:14] tildes: has joined #ruby
[06:42:35] LoneHerm_: has joined #ruby
[06:43:06] astrobun_: has joined #ruby
[06:43:21] kareeoleez: has joined #ruby
[06:44:24] Emmanuel_Chanel: has joined #ruby
[06:45:54] bronson: has joined #ruby
[06:47:03] Devalo: has joined #ruby
[06:47:51] anisha: has joined #ruby
[06:48:09] konsolebox: has joined #ruby
[06:48:30] howdoi: has joined #ruby
[06:51:21] Pumukel: has joined #ruby
[06:52:13] Devalo: has joined #ruby
[06:53:37] Devalo: has joined #ruby
[06:54:27] kareeoleez: has joined #ruby
[06:54:48] bougyman: manveru: sup
[06:55:11] mclong: has joined #ruby
[06:56:22] Devalo: has joined #ruby
[06:57:01] manveru: bougyman: heya
[06:57:12] ItSANgo: has joined #ruby
[06:57:22] djbkd: has joined #ruby
[06:59:36] skade: has joined #ruby
[07:00:04] Cohedrin: has joined #ruby
[07:00:23] djellemah_: has joined #ruby
[07:03:36] manveru: bougyman: i'm in spain right now :)
[07:04:13] manveru: our company just got bought by xing... so i'm working in a big company after all :P
[07:04:49] terlar: has joined #ruby
[07:05:00] Devalo: has joined #ruby
[07:07:35] sandelius: has joined #ruby
[07:08:06] scepticulous: has joined #ruby
[07:08:13] vondruch: has joined #ruby
[07:09:16] noService: has joined #ruby
[07:09:43] william3: has joined #ruby
[07:10:23] xcesariox: has joined #ruby
[07:10:33] pawnbox: has joined #ruby
[07:13:25] codecop: has joined #ruby
[07:13:47] tAn: has joined #ruby
[07:14:00] chouhoulis: has joined #ruby
[07:15:13] marcdel: has joined #ruby
[07:16:13] kareeoleez: has joined #ruby
[07:17:37] Couch: has joined #ruby
[07:17:45] d0lph1n98: has joined #ruby
[07:18:33] Spami: has joined #ruby
[07:19:11] andikr: has joined #ruby
[07:20:22] joyce_: has left #ruby: ()
[07:21:06] zacstewart: has joined #ruby
[07:22:03] futilegames: has joined #ruby
[07:23:19] vondruch: has joined #ruby
[07:26:36] tagaulap: has joined #ruby
[07:27:47] blackms: has joined #ruby
[07:33:35] joonty: has joined #ruby
[07:34:12] Macaveli: has joined #ruby
[07:38:25] roshanavand: has joined #ruby
[07:44:51] pawnbox: has joined #ruby
[07:45:32] bezhermoso: has joined #ruby
[07:46:39] kernerlke: has left #ruby: ()
[07:49:35] nofxx: has joined #ruby
[07:49:35] nofxx: has joined #ruby
[07:49:46] Six28: has joined #ruby
[07:51:04] User458764: has joined #ruby
[07:51:55] toretore: has joined #ruby
[07:52:54] Gasher: has joined #ruby
[07:53:17] bruce_lee: has joined #ruby
[07:58:25] marcdel: has joined #ruby
[07:58:44] joonty: has joined #ruby
[08:02:17] xcesariox: has joined #ruby
[08:02:21] biberu: has joined #ruby
[08:03:08] mark_66: has joined #ruby
[08:03:38] bronson: has joined #ruby
[08:06:22] kareeoleez: has joined #ruby
[08:08:52] RegulationD: has joined #ruby
[08:09:14] lxsameer: has joined #ruby
[08:09:14] lxsameer: has joined #ruby
[08:10:16] Alina-ma-: has joined #ruby
[08:10:45] Amnez777: has joined #ruby
[08:11:06] Alina-ma-: has joined #ruby
[08:14:38] PedramT: has joined #ruby
[08:14:54] chouhoulis: has joined #ruby
[08:15:03] pnus: has joined #ruby
[08:15:44] william3: has joined #ruby
[08:16:59] snowy: has joined #ruby
[08:17:10] mikecmpbll: has joined #ruby
[08:18:24] gamer5: has joined #ruby
[08:18:56] william3: has joined #ruby
[08:19:58] al2o3-cr: has joined #ruby
[08:21:58] workmad3: has joined #ruby
[08:23:01] kareeoleez: is Open3 tightly attached to system commands ?
[08:24:24] sepp2k: has joined #ruby
[08:27:05] nobitanobi: has joined #ruby
[08:27:45] tomphp: has joined #ruby
[08:28:58] rohit: has joined #ruby
[08:29:25] marr: has joined #ruby
[08:29:37] mrgrieves: has joined #ruby
[08:29:49] aupadhye: has joined #ruby
[08:30:21] tomphp: has joined #ruby
[08:30:54] blaxter: has joined #ruby
[08:31:09] TheBrayn: has joined #ruby
[08:31:50] pandaant: has joined #ruby
[08:33:22] william3: has joined #ruby
[08:34:25] Pupeno: has joined #ruby
[08:35:49] k13nox: has joined #ruby
[08:36:55] lycaonian: has joined #ruby
[08:37:34] darkxploit: has joined #ruby
[08:42:21] kareeoleez: how do I install a gem globally from a local folder ?
[08:43:00] adaedra: you build the gem then use gem install ./whatever-xx.gem
[08:44:52] kareeoleez: I just created a gem folder tree with bundle gem somegem
[08:45:24] kareeoleez: is there a command to install with bundler ? bundle install --local <folder> or something ?
[08:45:48] adaedra: gem management on you system is `gem` command territory
[08:47:46] pawnbox: has joined #ruby
[08:47:48] kareeoleez: really? the alternative could be to install it from a git repository I created
[08:47:59] kareeoleez: the gem will not be included in rubygems
[08:48:43] adaedra: you can install gems through `gem` command without pushing them to rubygems
[08:48:53] dling: has joined #ruby
[08:49:05] adaedra: alternatively, bundler is indeed capable of pulling gems from git repositories
[08:49:24] pawnbox: has joined #ruby
[08:49:48] Arcaire: has joined #ruby
[08:50:23] adaedra: like said above, if you have a gem spec, `gem build whatever.gemspec` will build you a .gem file, which you can install with `gem install ./whatever-xx.gem` (note the relative path)
[08:50:33] william3: has joined #ruby
[08:52:40] pnus: is there a list of the most ubiquitous gems in the world?
[08:53:20] framling: has joined #ruby
[08:53:32] kareeoleez: adaedra: thanks, I haven't thought about `gem` at all, just focusing on bundler for this
[08:53:54] skislak: has joined #ruby
[08:54:02] adaedra: kareeoleez: bundle is usually for things related for your current project's Gemfile related tasks.
[08:54:19] adaedra: mh, this sentence is a mess.
[08:54:30] DoubleMalt: has joined #ruby
[08:55:34] kareeoleez: adaedra: thank you
[08:58:28] Weavel: has joined #ruby
[09:01:36] stardiviner: has joined #ruby
[09:01:47] weckl: has joined #ruby
[09:03:06] kareeoleez: adaedra: it worked fine
[09:03:17] kareeoleez: adaedra: what about updating ? Do I need to uninstall it first ?
[09:03:54] pawnbox: has joined #ruby
[09:03:55] adaedra: no, change the gem version, it will install the new
[09:04:07] adaedra: then you'll have two versions installed
[09:04:33] bronson: has joined #ruby
[09:05:50] k13nox: has joined #ruby
[09:09:09] solocshaw: has joined #ruby
[09:09:45] jenrzzz: has joined #ruby
[09:10:57] mfb2: has joined #ruby
[09:11:26] futilegames: has joined #ruby
[09:11:31] william3: has joined #ruby
[09:11:37] mager: has joined #ruby
[09:12:25] mager: I'm automating deployment with Saltstack and I have the following error: https://dpaste.de/31HS/raw .. is there any way to change that /.bundle/cache to another dir ?
[09:12:40] mager: (the bundle install is run under a dedicated user)
[09:13:52] PedramT: has joined #ruby
[09:16:05] chouhoulis: has joined #ruby
[09:16:18] william3: has joined #ruby
[09:16:53] xcesariox: has joined #ruby
[09:16:55] igam: has joined #ruby
[09:17:04] senayar: has joined #ruby
[09:19:31] william3: has joined #ruby
[09:20:32] yfeldblum: has joined #ruby
[09:21:23] evidex: has joined #ruby
[09:24:24] william3: has joined #ruby
[09:25:19] rht: has joined #ruby
[09:27:07] duckpupp1: has joined #ruby
[09:28:06] kareeoleez: adaedra: thank you
[09:31:08] william3: has joined #ruby
[09:34:56] Pupeno: has joined #ruby
[09:51:08] mdw: has joined #ruby
[09:54:00] william3: has joined #ruby
[09:55:39] c355E3B: has joined #ruby
[09:56:39] joonty: has joined #ruby
[10:03:46] bronson: has joined #ruby
[10:05:54] antgel: has joined #ruby
[10:06:45] pawnbox: has joined #ruby
[10:07:40] andchar: has joined #ruby
[10:09:01] Pupeno: has joined #ruby
[10:09:08] giz|work: has joined #ruby
[10:10:42] baweaver: has joined #ruby
[10:10:53] syath_: has joined #ruby
[10:13:03] joonty: has joined #ruby
[10:14:20] sandelius: has joined #ruby
[10:16:49] chouhoulis: has joined #ruby
[10:18:37] DaniG2k: has joined #ruby
[10:20:22] madgen: has joined #ruby
[10:20:59] ur5us: has joined #ruby
[10:22:19] xcesariox: has joined #ruby
[10:22:50] TheWhip: has joined #ruby
[10:23:35] pawnbox: has joined #ruby
[10:26:23] DaniG2k: woohoo Ruby 2.3.1 :D
[10:27:17] mager: has left #ruby: ()
[10:27:39] lkba: has joined #ruby
[10:30:25] karapetyan: has joined #ruby
[10:32:01] william3: has joined #ruby
[10:32:46] mikecmpb_: has joined #ruby
[10:33:26] mdw7: has joined #ruby
[10:33:30] mrmortondk: has joined #ruby
[10:34:14] mdw7: has joined #ruby
[10:35:24] akem: has joined #ruby
[10:35:54] lxsameer: has joined #ruby
[10:36:21] banister: has joined #ruby
[10:36:27] n008f4g_: has joined #ruby
[10:39:12] cdg: has joined #ruby
[10:40:14] Ox0dea: DaniG2k: Still no `++` operator, but that's okay: https://eval.in/562126
[10:41:25] ryan_notabot: has joined #ruby
[10:41:39] DaniG2k: Ox0dea: has that been requested?
[10:42:05] Ox0dea: DaniG2k: Well, sure. Having it be equivalent to `+= 1` seems reasonable enough.
[10:42:27] Ox0dea: But it does conflict with the understand that it's meant to be "in-place", which doesn't make sense for Fixnum.
[10:42:31] Ox0dea: *understanding
[10:42:56] DaniG2k: something like that
[10:43:22] DaniG2k: I suppose that could be introduced
[10:45:16] william3: has joined #ruby
[10:45:28] DaniG2k: that would be super easy to monkey patch to be honest
[10:45:34] kareeole_: has joined #ruby
[10:47:59] DaniG2k: or maybe not
[10:48:33] madgen: Ox0dea: Matz thinks ++ goes against principle of least surprise: http://blade.nagaokaut.ac.jp/ruby/ruby-talk/2710
[10:48:46] bollullera: has joined #ruby
[10:49:54] bollullera: has left #ruby: ()
[10:50:13] pawnbox: has joined #ruby
[10:50:22] karapetyan: has joined #ruby
[10:51:11] pawnbox: has joined #ruby
[10:51:19] weckl: has joined #ruby
[10:55:39] william3: has joined #ruby
[10:57:18] zacstewart: has joined #ruby
[10:57:59] siaW: has joined #ruby
[10:59:00] inukshuk_: has joined #ruby
[10:59:05] siaW: is there a way i can have an array of size, say, 2. but anytime i do #shift, the new item is first element in array but the item at position 1, gets removed?
[10:59:26] GodFather: has joined #ruby
[10:59:32] siaW: example. array = [“one”, “two”]
[10:59:34] ferr: has joined #ruby
[10:59:43] siaW: array.shift(“three”)
[10:59:51] siaW: i want something like this to be returned
[11:00:04] siaW: array = [“three”, “one”]
[11:00:14] siaW: so that the size of the array is ALWAYS 2
[11:00:25] Ox0dea: siaw: #unshift and then #pop if necessary.
[11:00:35] Ox0dea: There's no "clean" way to do it. :/
[11:01:03] siaW: Ox0dea: i was thinking about that. but thought there’d be a more “elegant” way
[11:01:12] Ox0dea: 'Fraid not, at least not to my knowledge.
[11:01:37] Ox0dea: You could do something gross with slices, but you'd be making all sorts of intermediates for no real gain.
[11:01:49] siaW: yeah right
[11:01:55] Ox0dea: No worries.
[11:07:25] Chunlea: has joined #ruby
[11:09:13] DaniG2k: is there a way to see how much RAM an array uses in Ruby? I don't need this for any practical purpose but I'm just curious
[11:09:37] Ox0dea: >> require 'objspace'; ObjectSpace.memsize_of [1,2,3] # DaniG2k
[11:09:38] ruby[bot]: Ox0dea: # => 20 (https://eval.in/562176)
[11:09:46] DaniG2k: wow awesome
[11:10:11] DaniG2k: Ox0dea: is 20 in bytes or kilobytes?
[11:10:16] johnmilton: has joined #ruby
[11:10:16] Ox0dea: DaniG2k: Guess.
[11:10:31] rodfersou: has joined #ruby
[11:11:21] Ox0dea: DaniG2k: Aye, but the number is slightly misleading for very small arrays due to an optimization in MRI.
[11:11:58] baweaver: has joined #ruby
[11:13:11] william3: has joined #ruby
[11:13:40] adaedra: >> require 'objspace'; ObjectSpace.memsize_of 0x0dea
[11:13:41] ruby[bot]: adaedra: # => 0 (https://eval.in/562184)
[11:14:17] adaedra: Ox0dea is non-existant.
[11:14:37] Ox0dea: #2spooky4me
[11:15:04] Ox0dea: >> 0x0dea.size
[11:15:05] ruby[bot]: Ox0dea: # => 4 (https://eval.in/562190)
[11:15:08] adgtl: has joined #ruby
[11:15:26] sdothum: has joined #ruby
[11:15:35] Ox0dea: I exist after all, although apparently only in very small quantities.
[11:15:37] ryan_notabot: has joined #ruby
[11:16:03] moeabdol: has joined #ruby
[11:16:03] Ox0dea: I'm twice as existent on modern machines.
[11:16:07] ryan_notabot: has joined #ruby
[11:16:28] DaniG2k: is requiring objspace unsafe?
[11:16:37] DaniG2k: usually anything mem or bitfiddling related is an unsafe namespace
[11:16:47] ryan_notabot: has joined #ruby
[11:17:19] kam270: has joined #ruby
[11:18:02] kareeoleez: how is the module in a gem "/lib" folder related to the class in its subfolder ?
[11:19:30] chouhoulis: has joined #ruby
[11:21:27] gnufied: has joined #ruby
[11:22:35] d0lph1n98: has joined #ruby
[11:23:52] william3: has joined #ruby
[11:25:41] senayar: has joined #ruby
[11:26:23] duckpupp1: has joined #ruby
[11:28:02] k13nox_: has joined #ruby
[11:29:53] antgel: has joined #ruby
[11:31:17] Gasher: has joined #ruby
[11:32:31] mrgrieve1: has joined #ruby
[11:32:52] jenrzzz: has joined #ruby
[11:32:52] jenrzzz: has joined #ruby
[11:33:22] pawnbox_: has joined #ruby
[11:35:55] william3: has joined #ruby
[11:36:39] madgen: has joined #ruby
[11:37:07] lxsameer: has joined #ruby
[11:39:17] catphish_: has joined #ruby
[11:40:00] catphish_: does anyone know of any bugs in ruby that break DNS lookups, specifically calls to getaddrinfo?
[11:40:28] catphish_: i have a ruby app, that seems to have started throwing "getaddrinfo: Name or service not known" whenever it tries to look anything up
[11:40:56] xcesariox: has joined #ruby
[11:41:40] giz|work: has joined #ruby
[11:42:23] mark_66: has left #ruby: ("PART #RubyOnRails :PART #elixir-lang :PART #crystal-lang :PONG :wilhelm.freenode.net")
[11:42:40] william3: has joined #ruby
[11:42:59] ldnunes: has joined #ruby
[11:44:56] Arahael: catphish_: I've seen that happen in python... On windows.
[11:45:16] catphish_: actually i just found the issue, its not very obvious
[11:45:28] catphish_: the processes hit their file descriptor limit
[11:45:43] catphish_: getaddrinfo requires a udp socket
[11:45:59] catphish_: at least i assume it does
[11:46:23] Arahael: I doubt it.
[11:46:27] william3: has joined #ruby
[11:46:29] Arahael: But it might be opening /etc/resolv.
[11:46:35] Arahael: (Or whatever)
[11:46:42] catphish_: yeah, anything like that i guess
[11:46:53] catphish_: now just to work out what files my app isn't closing properly
[11:47:01] Arahael: And possibly raise the limit. :)
[11:47:09] silentpost: has joined #ruby
[11:47:25] Arahael: Wow, just found out that os x seems to default to 256 files. That's insane.
[11:48:34] TheWhip: has joined #ruby
[11:49:27] pawnbox: has joined #ruby
[11:49:57] davee_: has joined #ruby
[11:50:08] pawnbox: has joined #ruby
[11:50:09] moeabdol: has joined #ruby
[11:50:12] madgen: has joined #ruby
[11:58:00] soc42: has joined #ruby
[11:59:21] theRealAlexz: has joined #ruby
[12:02:21] sdothum: has joined #ruby
[12:03:46] madgen: has joined #ruby
[12:05:00] antgel: has joined #ruby
[12:05:45] bronson: has joined #ruby
[12:07:06] synthroid: has joined #ruby
[12:07:42] twistedpixels: has joined #ruby
[12:08:13] twistedpixels: has joined #ruby
[12:10:05] Vile`: has joined #ruby
[12:10:26] PedramT: has joined #ruby
[12:15:41] pawnbox: has joined #ruby
[12:17:05] bobbycvi: has joined #ruby
[12:17:26] tknz: has joined #ruby
[12:20:16] william3: has joined #ruby
[12:20:16] chouhoulis: has joined #ruby
[12:22:28] _mak: this will sound like a stupid question but it is just because I'm missing something very basic :)
[12:22:29] _mak: when I type '?a.ord' what am I looking at? what the 97 means?
[12:23:06] shevy: has joined #ruby
[12:23:22] FooMunki: has joined #ruby
[12:24:01] deadnull: has joined #ruby
[12:24:07] pawnbox: has joined #ruby
[12:24:08] hk238: has joined #ruby
[12:24:30] bkxd: has joined #ruby
[12:24:30] Arahael: _mak: The ordinal for the char.
[12:24:41] Arahael: _mak: ie, it's numerical value.
[12:28:11] william3: has joined #ruby
[12:29:33] codecop: has joined #ruby
[12:32:11] william3: has joined #ruby
[12:33:07] joonty: has joined #ruby
[12:34:01] davedev24: has joined #ruby
[12:34:26] jenrzzz: has joined #ruby
[12:34:31] Pupeno: has joined #ruby
[12:37:36] skweek: has joined #ruby
[12:38:51] william3: has joined #ruby
[12:41:57] FooMunki: has joined #ruby
[12:43:04] dgncn: has joined #ruby
[12:44:09] benzrf: hi, IO.popen is stealing my stdin
[12:44:31] william3: has joined #ruby
[12:44:42] Pupeno: has joined #ruby
[12:45:11] eljimmy: has joined #ruby
[12:47:53] Guest38: has joined #ruby
[12:49:32] william3: has joined #ruby
[12:50:29] catphish_: benzrf: how so? it really shouldn't, it should return stdin/stdout as its return value
[12:50:44] cpup: has joined #ruby
[12:54:47] cdg: has joined #ruby
[12:55:50] crameth: has joined #ruby
[12:56:33] ryan_notabot: has joined #ruby
[12:58:03] flashpoint9: has joined #ruby
[12:58:03] ramortegui: has joined #ruby
[12:59:02] k13nox: has joined #ruby
[12:59:37] senayar: has joined #ruby
[13:00:02] EdwardIII: has joined #ruby
[13:02:20] nobitanobi: has joined #ruby
[13:03:27] william3: has joined #ruby
[13:04:14] AlexJakeGreen: has joined #ruby
[13:05:57] prestorium: has joined #ruby
[13:06:21] bronson: has joined #ruby
[13:08:04] pawnbox: has joined #ruby
[13:08:24] northrup: has joined #ruby
[13:08:32] pawnbox: has joined #ruby
[13:11:26] Carella: has joined #ruby
[13:14:04] kareeoleez: has joined #ruby
[13:14:21] newjersey: has joined #ruby
[13:14:56] mrgrieves: has joined #ruby
[13:15:24] _mak: arahael: what that means? numerical value for a letter?
[13:15:39] _mak: is there any relation to the position of the letter?
[13:15:40] mdw: has joined #ruby
[13:16:41] aeterne: has joined #ruby
[13:16:48] rbennacer: has joined #ruby
[13:17:08] Arahael: _mak: you know rhat everything
[13:17:30] Arahael: is just a number in computers?
[13:17:55] _mak: arahael: is there a table where I can see the relation of 'a' with 97?
[13:18:01] adaedra: _mak: man ascii
[13:18:01] _mak: what's that table called?
[13:18:24] _mak: riiiiiiiiight!!
[13:18:31] Macaveli: has joined #ruby
[13:18:40] _mak: arahael: thanks dude! I was getting confused with the encoding and everything
[13:18:49] rbennacer: has joined #ruby
[13:18:54] cdg: has joined #ruby
[13:19:02] Arahael: _mak: there
[13:19:18] Arahael: there's lots of confusion out there. :(
[13:21:00] chouhoulis: has joined #ruby
[13:23:30] zacstewart: has joined #ruby
[13:24:13] symm-: has joined #ruby
[13:25:09] cdg: has joined #ruby
[13:25:14] william3: has joined #ruby
[13:25:43] stardiviner: has joined #ruby
[13:28:20] galeido: has joined #ruby
[13:29:31] dn`: has joined #ruby
[13:30:32] skade: has joined #ruby
[13:31:03] Macaveli: has joined #ruby
[13:31:31] malconis: has joined #ruby
[13:32:07] Shashikant86: has joined #ruby
[13:32:56] william3: has joined #ruby
[13:34:47] nando293921: has joined #ruby
[13:35:33] sgambino: has joined #ruby
[13:39:05] william3: has joined #ruby
[13:40:50] arts: has joined #ruby
[13:41:09] arts: hey everyone!
[13:43:04] carella_: has joined #ruby
[13:44:24] n008f4g_: has joined #ruby
[13:45:20] william3: has joined #ruby
[13:47:04] Carella: has joined #ruby
[13:49:06] Mon_Ouie: has joined #ruby
[13:50:16] william3_: has joined #ruby
[13:50:40] vishwa: Hey guys, I have a csv file, and I want to edit in place. How do i do this?
[13:53:44] zacstewart: has joined #ruby
[13:53:52] adaedra: To work with CSV files, you have the CSV module in stdlib.
[13:53:54] `derpy: http://ruby-doc.org/stdlib-2.3.0/libdoc/csv/rdoc/CSV.html
[13:54:08] adaedra: Not sure what you mean by 'in place' tho.
[13:57:22] Pupeno: has joined #ruby
[14:01:06] william3: has joined #ruby
[14:01:15] S_Waqas: has joined #ruby
[14:02:40] benzrf: catphish_: it seems to be hijacking it
[14:03:53] dudepare: has joined #ruby
[14:04:27] vishwa: adaedra: every line has a set of csvs. I want to read each line, and the ones that aren't acceptable need to be deleted
[14:05:06] william3: has joined #ruby
[14:05:53] tildes_: has joined #ruby
[14:06:05] benzrf: catphish_: http://showterm.io/a93857d106f13e17424f8
[14:06:21] whippythellama: has joined #ruby
[14:07:15] bronson: has joined #ruby
[14:09:30] toretore: vishwa: what you probably want is to 1) read the csv into memory, 2) remove lines and then 3) write that back to a file
[14:10:13] dn`: has joined #ruby
[14:12:51] william3: has joined #ruby
[14:13:17] Carella: has joined #ruby
[14:13:55] PedramT: has joined #ruby
[14:14:31] siaW: has joined #ruby
[14:16:01] gigetoo: has joined #ruby
[14:19:57] treehug88: has joined #ruby
[14:22:07] catphish_: benzrf: interesting
[14:24:49] madgen: has joined #ruby
[14:25:24] crdpink: has joined #ruby
[14:25:24] dh64: has joined #ruby
[14:25:34] ryan_notabot: has joined #ruby
[14:27:57] emilford: has joined #ruby
[14:27:59] rbennacer: has joined #ruby
[14:28:03] s00pcan_: has joined #ruby
[14:28:09] akem: has joined #ruby
[14:28:42] krandi: has joined #ruby
[14:28:52] koooge: has joined #ruby
[14:30:27] nofacade: has joined #ruby
[14:31:31] Arcaire_: has joined #ruby
[14:31:44] okdas_: has joined #ruby
[14:31:46] beatdown_: has joined #ruby
[14:31:47] rideh-: has joined #ruby
[14:31:48] techietrash_: has joined #ruby
[14:31:57] Plas: has joined #ruby
[14:32:12] madgen: has joined #ruby
[14:32:44] chouhoulis: has joined #ruby
[14:33:03] BSaboia: has joined #ruby
[14:33:46] marcdel: has joined #ruby
[14:33:49] Grav1: has joined #ruby
[14:33:49] Grav1: has joined #ruby
[14:33:50] pikajude: has joined #ruby
[14:33:50] pikajude: has joined #ruby
[14:33:50] gmas: has joined #ruby
[14:33:56] sarlalian: has joined #ruby
[14:35:13] marcdel_: has joined #ruby
[14:35:40] infernix: has joined #ruby
[14:35:55] newjersey: has joined #ruby
[14:36:29] jenrzzz: has joined #ruby
[14:36:44] Tempesta: has joined #ruby
[14:36:44] Tempesta: has joined #ruby
[14:36:47] BTRE: has joined #ruby
[14:36:50] TomyLobo: has joined #ruby
[14:36:56] ICantCook: has joined #ruby
[14:37:12] nobitanobi: has joined #ruby
[14:37:12] rbennacer: has joined #ruby
[14:37:12] JakFrist: has joined #ruby
[14:37:12] tildes_: has joined #ruby
[14:37:12] skade: has joined #ruby
[14:37:12] Guest38: has joined #ruby
[14:37:12] shevy: has joined #ruby
[14:37:12] weckl: has joined #ruby
[14:37:12] mikecmpbll: has joined #ruby
[14:37:12] tomphp: has joined #ruby
[14:37:12] bruce_lee: has joined #ruby
[14:37:13] Antiarc: has joined #ruby
[14:37:13] brianpWins: has joined #ruby
[14:37:13] nertzy: has joined #ruby
[14:37:13] noway_: has joined #ruby
[14:37:13] borkdude: has joined #ruby
[14:37:13] neanderslob: has joined #ruby
[14:37:13] Jet4Fire: has joined #ruby
[14:37:13] ceej: has joined #ruby
[14:37:13] alexherbo2: has joined #ruby
[14:37:13] pmarreck: has joined #ruby
[14:37:13] rubirc: has joined #ruby
[14:37:13] AnoHito: has joined #ruby
[14:37:13] spacemud: has joined #ruby
[14:37:13] kp666: has joined #ruby
[14:37:13] hiyosi: has joined #ruby
[14:37:13] scorphus: has joined #ruby
[14:37:13] chris2: has joined #ruby
[14:37:13] nibbo: has joined #ruby
[14:37:14] duderonomy: has joined #ruby
[14:37:14] whippythellama: has joined #ruby
[14:37:22] dudepare: has joined #ruby
[14:37:23] binaryplease: has joined #ruby
[14:37:28] SilverKey: has joined #ruby
[14:37:29] zack6849: has joined #ruby
[14:37:29] zack6849: has joined #ruby
[14:37:35] Rasi: has joined #ruby
[14:37:38] TheMoonMaster: has joined #ruby
[14:38:21] bahar: has joined #ruby
[14:39:39] kireevco: has joined #ruby
[14:40:37] pawnbox: has joined #ruby
[14:40:59] ChiefAlexander: has joined #ruby
[14:41:15] pawnbox: has joined #ruby
[14:41:24] 6JTAAF0JV: has joined #ruby
[14:41:29] alxndr: has joined #ruby
[14:41:38] ule: has joined #ruby
[14:41:55] jmcc__________: has joined #ruby
[14:41:56] danzilio: has joined #ruby
[14:42:10] mjc_: has joined #ruby
[14:42:10] jxf: has joined #ruby
[14:42:12] swills: has joined #ruby
[14:42:53] 6JTAAF0JV: benzrf: i believe the problem is that by default popen only opens in "read" mode, meaning it only hijacks the stdout from the child process, not stdin
[14:43:20] 6JTAAF0JV: benzrf: this fixes the problem for me: ruby -e 'puts IO.popen("cat", "r+").read'
[14:43:35] ramblinpeck: has joined #ruby
[14:44:24] benzrf: ah, useful
[14:44:27] colstrom: has joined #ruby
[14:45:29] zast: has joined #ruby
[14:45:52] ggherdov: has joined #ruby
[14:46:05] waxxy: has joined #ruby
[14:46:28] 6JTAAF0JV: that opens both stdin and stdout of the process
[14:46:37] 6JTAAF0JV: you'll likely then want to use close_write at some point
[14:46:53] err_ok: has joined #ruby
[14:46:54] chipotle: has joined #ruby
[14:48:44] swgillespie: has joined #ruby
[14:49:28] dellavg: has joined #ruby
[14:49:42] freerobby: has joined #ruby
[14:50:07] waxxy: has joined #ruby
[14:50:37] sepp2k: has joined #ruby
[14:52:29] sepp2k: has joined #ruby
[14:53:14] william3: has joined #ruby
[14:54:26] aspiers_: has joined #ruby
[14:54:31] svkurowski: has joined #ruby
[14:54:54] PedramT: has joined #ruby
[14:55:45] alby: has joined #ruby
[15:00:21] tubuliferous: has joined #ruby
[15:00:39] william3: has joined #ruby
[15:00:56] mlakewood: has joined #ruby
[15:01:00] troulouliou_div2: has joined #ruby
[15:04:37] pawnbox: has joined #ruby
[15:04:46] zeroDivisible: has joined #ruby
[15:05:52] gmas: has joined #ruby
[15:06:57] roadt: has joined #ruby
[15:08:07] symm-: has joined #ruby
[15:08:24] bronson: has joined #ruby
[15:09:01] smathy: has joined #ruby
[15:09:12] John3: has joined #ruby
[15:09:15] diegoaguilar: has joined #ruby
[15:10:05] Shashikant86: has joined #ruby
[15:10:26] thesheff17: has joined #ruby
[15:10:51] swills: has joined #ruby
[15:11:01] kareeoleez: has joined #ruby
[15:16:51] Devalo: has joined #ruby
[15:19:19] kareeoleez: has joined #ruby
[15:19:52] noService: has joined #ruby
[15:20:12] PedramT: has joined #ruby
[15:20:32] william3: has joined #ruby
[15:21:27] rippa: has joined #ruby
[15:21:37] Dimik: has joined #ruby
[15:21:38] rkazak: has joined #ruby
[15:22:12] Limix: has joined #ruby
[15:23:28] kallisti5: Q: I'm making a gem to interface with a rest API and turn the results into objects (Think ActiveRecord-like). I just can't figure out a great way to store something at the module level for the Gem... any ideas? I wrote an example gist: https://gist.github.com/avongluck-r1soft/4500a2279f9fc41be0ca698a2284bfa1
[15:23:40] madgen_: has joined #ruby
[15:24:08] kallisti5: I want to make a new instance of my gem and set the REST uri at the module level... if that makes sense :-|
[15:24:24] palms: has joined #ruby
[15:24:35] benzrf: kallisti5: use a constant
[15:24:41] kallisti5: Right now i'm "CATApi::Breed.all"
[15:24:43] kallisti5: ACTION googles
[15:25:03] benzrf: kallisti5: when you set "@uri =" in the module block, you're setting one of the *module*'s instance variables
[15:25:08] benzrf: so of course it won't be visible in the method
[15:25:32] benzrf: constants, however, are scoped semi-lexically
[15:25:33] kallisti5: benzrf: is there a way users can define the constant though?
[15:25:42] benzrf: oh, you want users to be able to supply it
[15:25:54] benzrf: why not make your thing a class, and then the url is an instance variable?
[15:26:21] benzrf: (barring that, i *guess* you could do "class << self; attr_accessor :uri; end" in the module)
[15:26:31] kallisti5: oh.. so pretty much turn the CATAPi module into a class?
[15:27:06] kallisti5: That seems to make more sense... I just thought Gem's almost always worked out of modules :-|
[15:27:08] ferr: has joined #ruby
[15:27:15] benzrf: kallisti5: well, they do tend to
[15:27:23] benzrf: you can put the class in a module, if you want :)
[15:28:00] kallisti5: lol what's the best practice there? module CATApi -> class CATApi -> class Breed ?
[15:28:53] benzrf: kallisti5: well, here's a good rule of thumb
[15:29:24] benzrf: kallisti5: if you're making something a class, you should be able to coherently explain "what" an instance of the class is, and in what circumstances you would instantiate it
[15:30:00] nando293921: has joined #ruby
[15:30:15] benzrf: if you're really only defining the class for the features of classes that don't involve instances, you should be making a module
[15:30:58] benzrf: also, i think it's unusual to nest a class inside another class - normally you nest modules like directories, and then classes are leaves, like files
[15:31:04] madgen: has joined #ruby
[15:31:04] benzrf: i might be wrong.
[15:31:14] benzrf: (er, modules can also be leaves)
[15:31:19] c_nick: has joined #ruby
[15:32:12] hobodave: has joined #ruby
[15:32:54] c_nick: can i unzip NUGET package using Ruby ZIP ?
[15:34:20] terminalrecluse: has joined #ruby
[15:35:09] Rodya_: has joined #ruby
[15:35:43] shinnya: has joined #ruby
[15:35:51] rbennacer: has joined #ruby
[15:36:39] mikecmpbll: has joined #ruby
[15:38:10] jenrzzz: has joined #ruby
[15:38:44] Shashikant86: has joined #ruby
[15:39:40] terminalrecluse: has joined #ruby
[15:39:45] bkxd: has joined #ruby
[15:42:17] PedramT: has joined #ruby
[15:43:10] hobodave: has joined #ruby
[15:43:37] roshanavand: has joined #ruby
[15:44:56] Zarthus: has joined #ruby
[15:47:05] william3: has joined #ruby
[15:47:11] gintaz: has joined #ruby
[15:48:13] gintaz: have any of you ever had any dealings with the International Colored Gemstone Association?
[15:48:29] gintaz: i just had 2 very fine pieces rejected by them
[15:48:33] gintaz: a little annoyed
[15:48:55] drusepth: has joined #ruby
[15:52:10] moeabdol: has joined #ruby
[15:52:49] ferr: has joined #ruby
[15:53:22] FooMunki: has joined #ruby
[15:53:43] adaedra: You know this channel is about the Ruby *Programming language*, right?
[15:53:57] gintaz: well if you wanna talk it
[15:53:59] gintaz: thats fine
[15:54:03] gintaz: but its called ruby
[15:54:05] havenwood: !troll gintaz
[15:54:05] ruby[bot]: +bb gintaz!*@*$#ruby-banned *!*@gateway/web/cgi-irc/kiwiirc.com/ip.213.205.251.58$#ruby-banned
[15:54:05] ruby[bot]: ruby[bot] kicked gintaz: is a bannable offense, see http://ruby-community.com/pages/user_rules
[15:54:17] [Butch]: has joined #ruby
[15:55:59] amclain: has joined #ruby
[15:56:12] bobbycvi: has joined #ruby
[15:56:22] Devalo: has joined #ruby
[15:58:18] rbr: has joined #ruby
[15:59:05] siaW: has left #ruby: ()
[16:00:17] akem: has joined #ruby
[16:00:48] bahar: has joined #ruby
[16:02:06] agent_white: has joined #ruby
[16:03:27] siaW: has joined #ruby
[16:03:33] siaW: has left #ruby: ()
[16:04:04] synthroid: has joined #ruby
[16:06:20] plujon: has joined #ruby
[16:08:37] william3: has joined #ruby
[16:08:51] Elysia: has joined #ruby
[16:09:19] bronson: has joined #ruby
[16:10:53] davee_: has joined #ruby
[16:16:35] godzillaenlacasa: has joined #ruby
[16:17:44] Frem: has joined #ruby
[16:17:53] p337rB: has joined #ruby
[16:18:31] jackjackdripper: has joined #ruby
[16:18:46] mjuszczak: has joined #ruby
[16:21:29] william3: has joined #ruby
[16:21:47] PedramT: has joined #ruby
[16:23:17] ramfjord: has joined #ruby
[16:24:00] zacts: so far this Text Processing with Ruby Pragmatic Press book is cool
[16:24:13] zacts: I'm learning ruby first by making tons of little cli tools
[16:24:49] emilford: has joined #ruby
[16:25:11] shevy: commandline is good
[16:25:47] PedramT: has joined #ruby
[16:25:52] kriskropd: has joined #ruby
[16:26:01] Devalo: has joined #ruby
[16:26:02] zacts: indeed =)
[16:26:38] zacts: I also want to make a UNIX ed editor clone as a large project
[16:26:59] zacts: (just to see if I can do it)
[16:27:23] zacts: adaedra: https://en.wikipedia.org/wiki/Ed_(text_editor)
[16:27:49] zacts: adaedra: sorry, am I too off-topic or something?
[16:28:00] zacts: or are you making a joke
[16:28:06] Elysia: has joined #ruby
[16:28:24] c_nick: help me with nuget packages
[16:28:38] shevy: what is happening here
[16:28:57] adaedra: basic ed editor in ruby: `puts '?' while gets`
[16:29:12] shevy: but you must save the file too
[16:29:56] adgtl: has joined #ruby
[16:29:56] adgtl: has joined #ruby
[16:31:53] codecop: has joined #ruby
[16:32:37] stannard: has joined #ruby
[16:34:11] antgel: has joined #ruby
[16:34:58] kies: has joined #ruby
[16:38:11] baweaver: has joined #ruby
[16:39:12] flashpoint9: has joined #ruby
[16:39:56] Elysia: has joined #ruby
[16:40:15] rkazak: has joined #ruby
[16:41:33] shevy: yo agent_white
[16:41:36] shevy: doing any ruby stuff?
[16:42:52] bobbycvi: has joined #ruby
[16:45:42] Ropeney: has joined #ruby
[16:47:12] FooMunki: has joined #ruby
[16:49:39] DoubleMalt: has joined #ruby
[16:50:29] devbug: has joined #ruby
[16:51:08] lkba_: has joined #ruby
[16:51:51] aspiers_: has joined #ruby
[16:52:25] Rodya_: has joined #ruby
[16:52:58] antgel: has joined #ruby
[16:53:56] sleepunit: has joined #ruby
[16:54:46] hakunin: has joined #ruby
[16:55:00] JakFrist: has joined #ruby
[16:55:07] sleepunit: Question. I'm looking at some code, and I want to make sure I understand what's happening. I have a class with another class inside of it. Before the subclass, they have the protected keyword. Am I wrong in assuming that the protected keyword isn't doing anything useful in this case because it affects method visibility and not visibility for an entire subclass?
[16:56:34] rbr: has joined #ruby
[16:58:29] SuperLag_: has joined #ruby
[16:58:48] tubbo: is there a way to see any "parent" modules of the current object?
[16:59:12] firstdayonthejob: has joined #ruby
[16:59:12] tubbo: say i have something called Foo::Bar::Baz, and i'm in the class definition of Baz. any way i can test whether i'm namespaced under Bar without reading the class name and doing a regex on it?
[17:00:12] elifoster: has joined #ruby
[17:02:13] smathy: tubbo, .parent
[17:02:29] pawnbox: has joined #ruby
[17:03:08] Cohedrin: has joined #ruby
[17:03:10] smathy: (might be AS )
[17:03:45] smathy: Ah, sorry, is.
[17:03:51] tubbo: smathy: that's ok
[17:03:52] tubbo: thanks man
[17:04:02] tubbo: i'm reinventing draper yay
[17:04:33] smathy: FWIW, they just regex the constant name.
[17:05:55] mclong: has joined #ruby
[17:09:21] futilegames: has joined #ruby
[17:09:34] futilegames: has left #ruby: ()
[17:10:20] bronson: has joined #ruby
[17:11:02] silentpost: has joined #ruby
[17:11:27] freerobby: has joined #ruby
[17:12:48] Stazer: has joined #ruby
[17:12:52] northrup: has joined #ruby
[17:13:33] kareeoleez: has joined #ruby
[17:14:46] berserk_ren: has joined #ruby
[17:15:07] kareeoleez: has joined #ruby
[17:20:07] brianpWins_: has joined #ruby
[17:21:42] berserk_ren: has joined #ruby
[17:22:35] ule: What's the best alternative for RubyMine (Jetbrains IDE?)
[17:23:14] ule: I'm very confortable with Vim.. I'm thinking to just bust it up with some plugins
[17:23:23] Stazer: no clue, im using emacs
[17:23:28] ule: Fernando-Basso: any tip?
[17:24:01] ule: emacs is definitely out of my list
[17:24:07] ule: no offence
[17:24:12] SilverKey: has joined #ruby
[17:24:21] ule: I'm just more familiar with vim for years
[17:24:28] SCHAAP137: has joined #ruby
[17:24:31] Stazer: i wouldnt change my editor then
[17:25:01] ule: https://github.com/akitaonrails/vimfiles
[17:25:11] ule: this one looks to be a good resource
[17:25:16] Eiam_: has joined #ruby
[17:26:10] ismaelga: has joined #ruby
[17:27:00] Stazer: i would choose vim with plugins over an ide
[17:27:12] Ebok: has joined #ruby
[17:27:15] dangerousdave: has joined #ruby
[17:27:16] ule: I just want a free IDE
[17:27:38] ule: I started using Visual Code Studio Free edition and installed ruby extension
[17:27:44] freerobby: has joined #ruby
[17:27:55] djbkd: has joined #ruby
[17:27:57] ule: BUt.. RubyMine is so far superior then VCS
[17:28:17] Stazer: have you tried aptana?
[17:28:23] Ebok: I'm looking into implementing live streaming in an already high traffic website. I'm curious if anyone here has suggests for choice ruby on Rails implementations of similar features. API's you find useful, etc.
[17:28:25] ule: no.. I'll take a look
[17:28:44] Stazer: and radrails2 with eclipse looks pretty good as well
[17:28:49] Limix: has joined #ruby
[17:29:50] shevy: wheee rubygems-2.6.4 https://rubygems.org/rubygems/rubygems-2.6.4.tgz
[17:32:36] Pete: has joined #ruby
[17:33:10] nrd_pxs: has joined #ruby
[17:33:26] pawnbox: has joined #ruby
[17:33:58] skweek: has joined #ruby
[17:34:16] madgen: has joined #ruby
[17:34:44] hogetaro: has joined #ruby
[17:35:44] drusepth: has joined #ruby
[17:36:20] yfeldblum: has joined #ruby
[17:37:03] jxs_: has joined #ruby
[17:37:16] ljames: has joined #ruby
[17:37:17] nrd_pxs: has joined #ruby
[17:37:28] jenrzzz: has joined #ruby
[17:37:34] joonty: has joined #ruby
[17:39:11] RegulationD: has joined #ruby
[17:39:18] mrgrieves: has joined #ruby
[17:39:24] Fernando-Basso: ule: I am a simple man. I use an almost bare-bones vim for ruby and everything else.
[17:39:28] PedramT: has joined #ruby
[17:39:39] giz|work: has joined #ruby
[17:39:52] ule: Fernando-Basso: hello my friend
[17:40:01] symm-_: has joined #ruby
[17:40:02] Fernando-Basso: hello, my master.
[17:40:54] Ox0dea: Is it hot in here?
[17:41:03] ule: Fernando-Basso: c'mon.. master is you..
[17:41:11] ule: Ox0dea: haha
[17:41:29] Fernando-Basso: ule: There is a video from "Akita on rails" about using vim for ruby and rails devel.
[17:42:08] Fernando-Basso: ule: You might also want to give atom a try.
[17:43:15] webopsx: has joined #ruby
[17:43:44] mjuszczak: has joined #ruby
[17:43:50] Limix: has joined #ruby
[17:44:12] Fernando-Basso: smathy: You infidel!
[17:44:16] SuperLag: has joined #ruby
[17:44:30] smathy: We infidels have all the fun.
[17:44:33] Ox0dea: Fernando-Basso: Are you a member of the Church of Emacs?
[17:44:42] william3: has joined #ruby
[17:44:47] nrd_pxs: has joined #ruby
[17:44:49] Fernando-Basso: Ox0dea: No, I am not.
[17:45:12] Ox0dea: In which case what's so infidelic about using Vim?
[17:45:12] moeabdol: has joined #ruby
[17:45:27] nrd_pxs: has joined #ruby
[17:45:41] Fernando-Basso: But my friend, whom I taught vim, then betrayed me and started using emacs is a member of that religion.
[17:45:46] imperator: has joined #ruby
[17:46:16] Fernando-Basso: Ox0dea: It was fun to say that. (for me huahuahuahuah)
[17:46:23] nofxx: has joined #ruby
[17:46:24] nofxx: has joined #ruby
[17:46:28] Ox0dea: Fernando-Basso: Are you holding a spoon?
[17:46:37] ule: Fernando-Basso: I'll find that akita video
[17:46:59] Fernando-Basso: ule: I could not find it (in a quick search). Not sure if it was a paid video or something.
[17:47:17] william3: has joined #ruby
[17:47:32] tubbo: i use emacs for org-mode and that's about it
[17:47:34] Fernando-Basso: Ox0dea: I refuse to answer that unless I am in the presense of my lawyer.
[17:47:56] Ox0dea: Fernando-Basso: No worries; I misremembered Katy's utensil anyway.
[17:48:13] nofxx: There's no spoon.
[17:48:27] Ox0dea: Rivers are in your mind.
[17:48:44] Fernando-Basso: ule: I use CtrlP to help me find files and buffers.
[17:48:51] nobitanobi: has joined #ruby
[17:48:58] Fernando-Basso: I think it is the only plugin that I use regularly.
[17:49:21] Fernando-Basso: (besides the default ones that come installed with vim)
[17:51:32] freerobby: has joined #ruby
[17:52:30] tubbo: no default plugins come installed with vim
[17:52:39] tubbo: that's the definition of a plugin, it doesn't come with vim ;)
[17:53:22] ule: I need something that follows this: https://github.com/bbatsov/ruby-style-guide
[17:53:49] Ox0dea: $ ls /usr/share/vim/vim74/plugin/
[17:53:49] quakephil: has joined #ruby
[17:53:52] Ox0dea: getscriptPlugin.vim logiPat.vim netrwPlugin.vim rrhelper.vim tarPlugin.vim vimballPlugin.vim
[17:53:54] Ox0dea: gzip.vim matchparen.vim README.txt spellfile.vim tohtml.vim zipPlugin.vim
[17:54:05] bronson: has joined #ruby
[17:54:20] Ox0dea: ule: RuboCop.
[17:54:25] dmr8: has joined #ruby
[17:54:30] Ox0dea: This is more or less a solved problem.
[17:55:03] ule: Ox0dea: yeah.. It's on my list since you told me this yesterday.. I'm still using Tailor here
[17:55:10] drusepth: has joined #ruby
[17:55:12] ule: will check RuboCop soon
[17:55:53] Ox0dea: ule: It's going to continue being the answer. :P
[17:56:21] tomeara: has joined #ruby
[17:56:25] quakephil: Using activerecord with a basic Table.select().joins().to_json pattern... most of the time it works, except when it doesn't, segfaults with a 20 page report of all sorts of useless (for me) info. I know that the error happens in .rvm/gems/ruby-2.2.1/gems/eventmachine-1.0.9.1/lib/eventmachine.rb:1062 and that's it, and nowhere in my code do I invoke any eventmachines... How can I possibly debug this error with a function stack trace that
[17:56:25] quakephil: doesn't have a single reference back to my code
[17:56:32] tubbo: well fuck this whole editor then
[17:57:18] tobiasvl: the definition of a plugin doesn't say that they can't come pre-packaged
[17:57:21] ramfjord: has joined #ruby
[17:57:34] tubbo: quakephil: even after refreshing your ruby version and gem bundle?
[17:57:43] tubbo: quakephil: did you upgrade this app's Ruby recently?
[17:58:12] quakephil: no its a new app and just started working on it recently
[17:58:33] quakephil: but I'm a ruby newb so I'm sure I'm missing something obvious that would help me debug this, instead of staring at pages of irrelevant output like an idiot :)
[17:59:28] Carella: has joined #ruby
[17:59:39] Ox0dea: quakephil: When doesn't it work? Can you provide the whole backtrace?
[17:59:48] dopie: has joined #ruby
[18:00:06] tubbo: i mostly experience segfaults when some component changes under the hood, like i accidentally update OpenSSL and don't recompile Ruby
[18:00:16] scepticulous: has joined #ruby
[18:00:18] tubbo: or i switch .ruby-version without re-compiling gem native extensions
[18:00:33] jenrzzz: has joined #ruby
[18:00:33] jenrzzz: has joined #ruby
[18:01:05] Eiam_: has joined #ruby
[18:02:20] acbsspdas: has joined #ruby
[18:03:09] [Butch]: has joined #ruby
[18:04:06] acbsspdas: has left #ruby: ()
[18:04:49] scepticulous: has joined #ruby
[18:05:43] jenrzzz_: has joined #ruby
[18:07:21] replay: has joined #ruby
[18:07:49] replay: has joined #ruby
[18:08:12] al2o3-cr: has joined #ruby
[18:09:05] c_nick: has joined #ruby
[18:09:50] quakephil: Ox0dea: http://pastebin.ca/3586111
[18:09:56] quakephil: What's odd is that it only crashes sometime TT
[18:10:27] rodfersou: has joined #ruby
[18:10:38] marr: has joined #ruby
[18:10:49] Ox0dea: quakephil: You're dying in malloc(), so you're probably causing some insane allocation to occur.
[18:10:54] quakephil: Like, I just restarted the app, tried to run the request again, and this time it works just fine
[18:11:07] Ox0dea: You have a leak.
[18:11:08] quakephil: Ox0dea: well whatever it is, I have no idea how to fix it :/
[18:11:27] quakephil: Use sinatra they said. It will be easy they said :)
[18:11:56] ferr: has joined #ruby
[18:13:34] dn`: has joined #ruby
[18:15:40] drusepth: has joined #ruby
[18:16:06] c_nick: has left #ruby: ()
[18:16:29] ironcamel: is there a nice way to compare an array of strings to an array of regexes, something like ['foo', 'bar'] === [/f/, /b/]
[18:17:47] Ox0dea: ironcamel: strings.zip(regexes).all? { |s, r| s.match r }
[18:18:09] Ox0dea: Or maybe you just want #map instead of #all?.
[18:18:28] ironcamel: i want a boolean that is true if all of them match
[18:18:46] Ox0dea: #all?, then.
[18:18:56] ironcamel: cool thanks
[18:18:59] Ox0dea: Sure thing.
[18:19:24] nrd_pxs: has joined #ruby
[18:19:48] p337rB: has joined #ruby
[18:19:49] postmodern: has joined #ruby
[18:20:01] kirun: has joined #ruby
[18:20:58] zeroDivisible: has joined #ruby
[18:22:26] akem: has joined #ruby
[18:23:06] moeabdol: has joined #ruby
[18:25:16] newjersey: has joined #ruby
[18:26:41] nrd_pxs: has joined #ruby
[18:26:57] ule: is foo = Array("hi") the same thing of foo = *("hi") ?
[18:27:44] baweaver: has joined #ruby
[18:28:11] tubuliferous: has joined #ruby
[18:28:52] CalimeroTeknik: has joined #ruby
[18:29:07] kareeoleez: has joined #ruby
[18:29:35] tristanp: has joined #ruby
[18:29:48] Jackneill: has joined #ruby
[18:29:56] baweaver: has joined #ruby
[18:31:22] mclong: has joined #ruby
[18:33:33] Rodya_: has joined #ruby
[18:34:37] Devalo: has joined #ruby
[18:35:46] tristanp: has joined #ruby
[18:37:20] tubuliferous: has joined #ruby
[18:37:35] renderful: has joined #ruby
[18:37:41] Devalo: has joined #ruby
[18:38:04] ule: ty = thank you
[18:38:40] lucasb: has joined #ruby
[18:38:52] al2o3-cr: ACTION giggles
[18:39:14] drusepth: has joined #ruby
[18:42:10] war_pigs: has joined #ruby
[18:42:24] idefine: has joined #ruby
[18:42:58] gregf: has joined #ruby
[18:43:45] renderful: has joined #ruby
[18:44:24] quakephil: has left #ruby: ()
[18:45:16] nobitanobi: has joined #ruby
[18:47:01] Rodya_: has joined #ruby
[18:47:51] renderful: has joined #ruby
[18:49:58] karapetyan: has joined #ruby
[18:50:47] mallu: has joined #ruby
[18:51:06] nando293921: has joined #ruby
[18:51:22] mallu: I'm looking for a way to covert pkcs12 to pem file. Has anyone done anything like that?
[18:52:44] ironcamel: openssl pkcs12 -in foo.p12 -out foo.pem ...
[18:53:26] mallu: ironcamel: hoping there is a better way to in Ruby
[18:53:35] mallu: a class or something
[18:55:10] Rodya_: has joined #ruby
[18:57:24] Limix: has joined #ruby
[18:57:34] SilverKey: has joined #ruby
[18:57:35] Infra-Red: has joined #ruby
[18:58:29] emilford: has joined #ruby
[19:00:22] imperator: mallu, http://stackoverflow.com/questions/16589722/openssl-equivalent-command-in-ruby should get you on the right track
[19:01:43] drusepth: has joined #ruby
[19:03:40] dfockler: has joined #ruby
[19:04:25] sneakerhax: has joined #ruby
[19:10:03] madgen: has joined #ruby
[19:14:35] sphex: has joined #ruby
[19:15:17] baweaver: has joined #ruby
[19:17:15] choke: has joined #ruby
[19:17:46] mdw: has joined #ruby
[19:18:42] yfeldblum: has joined #ruby
[19:19:23] Devalo: has joined #ruby
[19:20:07] berserk_ren: has joined #ruby
[19:20:19] n008f4g_: has joined #ruby
[19:22:19] JesseH: has joined #ruby
[19:22:28] aegis3121: has joined #ruby
[19:22:46] quakephil: has joined #ruby
[19:22:59] baweaver: has joined #ruby
[19:23:07] mclong: has joined #ruby
[19:24:35] quakephil: Ox0dea: fyi, I found the fix here (disable thin threaded mode) https://github.com/macournoyer/thin/issues/307
[19:24:50] idefine_: has joined #ruby
[19:29:48] yqt: has joined #ruby
[19:31:14] ruby[bot]: -b *!*@176.1.229.198.in-addr.arpa
[19:32:00] devbug: has joined #ruby
[19:33:56] drusepth: has joined #ruby
[19:34:38] mclong: has joined #ruby
[19:34:53] htmldrum: has joined #ruby
[19:37:58] idefine: has joined #ruby
[19:38:07] Rodya_: has joined #ruby
[19:38:20] SilverKey: has joined #ruby
[19:39:43] RegulationD: has joined #ruby
[19:40:59] idefine: has joined #ruby
[19:41:43] freerobby: has joined #ruby
[19:42:00] shadeslayer: has joined #ruby
[19:42:41] drusepth: has joined #ruby
[19:44:48] tildes: has joined #ruby
[19:45:24] antgel: has joined #ruby
[19:46:18] pawnbox: has joined #ruby
[19:48:50] ur5us: has joined #ruby
[19:49:56] sp4rrow: has joined #ruby
[19:52:55] jackjackdripper: has joined #ruby
[19:54:04] spider-mario: has joined #ruby
[19:54:22] crameth: has joined #ruby
[19:55:07] bronson: has joined #ruby
[19:55:27] crameth: has joined #ruby
[19:55:45] idefine: has joined #ruby
[19:57:24] SilverKey: has joined #ruby
[19:57:49] idefine_: has joined #ruby
[20:00:06] scepticulous: has joined #ruby
[20:00:39] skade: has joined #ruby
[20:01:13] baweaver: has joined #ruby
[20:02:38] kareeoleez: has joined #ruby
[20:03:01] renderful: has joined #ruby
[20:04:32] hobodave_: has joined #ruby
[20:05:11] sp4rrow: has joined #ruby
[20:05:28] renderful: has joined #ruby
[20:06:20] valkyr1e: has joined #ruby
[20:06:28] djbkd: has joined #ruby
[20:08:11] idefine: has joined #ruby
[20:09:38] renderful: has joined #ruby
[20:11:17] cloaked1: has joined #ruby
[20:11:17] cloaked1: has joined #ruby
[20:12:15] j0n3: has joined #ruby
[20:12:24] Devalo: has joined #ruby
[20:13:32] renderful: has joined #ruby
[20:14:20] TheWhip: has joined #ruby
[20:16:10] juh_: has joined #ruby
[20:16:17] renderful: has joined #ruby
[20:17:41] finisherr: has joined #ruby
[20:17:43] stardiviner: has joined #ruby
[20:18:22] shazaum_: has joined #ruby
[20:20:57] Rodya_: has joined #ruby
[20:21:35] renderful: has joined #ruby
[20:23:09] scepticulous: has joined #ruby
[20:26:56] jenrzzz: has joined #ruby
[20:26:56] jenrzzz: has joined #ruby
[20:29:05] lannonbr: has joined #ruby
[20:29:45] Moosashi: has joined #ruby
[20:30:01] lannonbr: has left #ruby: ()
[20:30:03] Qommand0r: has joined #ruby
[20:31:36] replay: has joined #ruby
[20:31:40] rbennacer: has joined #ruby
[20:32:40] devbug: has joined #ruby
[20:32:56] CalimeroTeknik: how I can prevent socket.gets from crashing due to encoding problems?
[20:33:12] CalimeroTeknik: of course it's since ruby 1.9
[20:33:42] apeiros: CalimeroTeknik: by opening the socket with the proper encodings
[20:34:06] CalimeroTeknik: it could be anything, really, since I can drop some urandom on irc
[20:34:42] eam: you're using gets on a network socket?
[20:34:45] renderful: has joined #ruby
[20:34:53] CalimeroTeknik: yes, TCP for IRC
[20:35:17] CalimeroTeknik: hey, it's not C, I'm not risking a buffer overflow
[20:35:21] eam: that's ill advised, what if someone sends you a bunch of data and exhausts all your memory?
[20:35:38] juh_: hey guys i'm new with ruby, can you tell me if "::" is for static function plz ? :p
[20:36:03] tobiasvl: juh_: it is for namespace resolution, so in a way, yes. depends what you mean by static function
[20:36:19] eam: you generally want to use sysread/syswrite with sockets (which will take care of encoding things properly for you as well, as in ... not)
[20:36:27] CalimeroTeknik: eam, quite true, that'd have to be the server though, so it's not happening
[20:36:44] eam: gets needs to interpret characters to find a \n, so it would need to understand encoding
[20:36:56] juh_: oh ok, "namespace" got it ! for exemple : lol::blop lol is the namespace for the class blop, right ?
[20:36:57] eam: if you're doing ascii/bytes then you can just hunt for the single byte
[20:37:20] havenwood: juh_: Constants must start with uppercase.
[20:37:42] Stazer1: has joined #ruby
[20:37:50] juh_: Ok, thanks guys =)
[20:37:59] renderful: has joined #ruby
[20:39:01] bronson: has joined #ruby
[20:39:01] last_staff: has joined #ruby
[20:39:27] hakunin: has joined #ruby
[20:39:37] idefine: has joined #ruby
[20:41:19] renderful: has joined #ruby
[20:41:55] jfr2: has joined #ruby
[20:46:56] jfr2: Noob here, can someone take a look at my simple program? https://gist.github.com/anonymous/f1a6deacfeacee412ca4ccffa26d8984 it seems only to give the sale
[20:48:13] kareeoleez: has joined #ruby
[20:49:10] hobodave: has joined #ruby
[20:50:08] whathapp_: has joined #ruby
[20:50:15] crdpink2: has joined #ruby
[20:50:53] CalimeroTeknik: eam, ascii/bytes does not exist as an encoding
[20:50:58] shazaum_: has joined #ruby
[20:51:20] jessemcgilallen: has joined #ruby
[20:51:38] renderful: has joined #ruby
[20:52:39] Gasher: has joined #ruby
[20:53:07] dionysus69: has joined #ruby
[20:53:20] CalimeroTeknik: in the end I don't understand how to make ruby > 1.8 read lines from a socket
[20:53:32] JakFrist: has joined #ruby
[20:53:48] webopsx: has joined #ruby
[20:53:52] adaedra: Tried with 'ASCII-8BIT' encoding?
[20:54:11] palms: has joined #ruby
[20:54:19] eam: CalimeroTeknik: sure it does
[20:54:27] eam: it's ASCII-8BIT as adaedra suggested
[20:54:52] CalimeroTeknik: the script dies with incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError)
[20:54:59] baweaver: jfr2: all of it is in the rescue
[20:55:06] eam: CalimeroTeknik: gist some code
[20:57:04] mdw: has joined #ruby
[20:57:19] jfr2: Ah thank you, all I had to do was move it down
[20:57:46] dling: has joined #ruby
[20:57:47] sp4rrow: has joined #ruby
[20:57:52] gonzalo_: has joined #ruby
[20:58:16] mdw7: has joined #ruby
[20:59:04] dionysus69: has joined #ruby
[21:00:12] Madplatypus: has joined #ruby
[21:00:14] CalimeroTeknik: oh wait, my terminal is in utf-8
[21:01:24] prestorium: has joined #ruby
[21:01:32] minimalism: has joined #ruby
[21:02:27] Moosashi: has joined #ruby
[21:02:36] sp4rrow: has joined #ruby
[21:02:41] jenrzzz: has joined #ruby
[21:03:26] CalimeroTeknik: here is the code that produces the error http://sprunge.us/BWAN
[21:03:46] CalimeroTeknik: the problem is mixing UTF-8 with binary!
[21:03:56] adaedra: And the stack trace?
[21:04:08] sgambino: has joined #ruby
[21:04:57] kareeoleez: has joined #ruby
[21:05:06] adaedra: There's also a BINARY encoding
[21:05:13] CalimeroTeknik: test.rb:26:in `<main>': incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError)
[21:05:40] renderful: has joined #ruby
[21:05:52] CalimeroTeknik: BINARY is an alias
[21:06:14] CalimeroTeknik: "BINARY"=>"ASCII-8BIT"
[21:06:29] adaedra: That's the full stack trace?
[21:07:20] renderful: has joined #ruby
[21:07:41] adaedra: weird, I'd have believed it woul have at least given the method raising the error.
[21:07:41] ixti: has joined #ruby
[21:07:58] Devalo: has joined #ruby
[21:08:32] neanderslob: has joined #ruby
[21:08:58] nobitanobi: has joined #ruby
[21:09:13] adaedra: It's funny, it works here.
[21:10:07] idefine: has joined #ruby
[21:10:31] adaedra: ah ye, crashed on an emoji.
[21:12:18] gregf: has joined #ruby
[21:13:04] renderful: has joined #ruby
[21:13:52] kareeoleez: has joined #ruby
[21:15:46] skweek: has joined #ruby
[21:16:24] baweaver: has joined #ruby
[21:19:09] adaedra: Your problem seems to come from the puts actually; you have a string in ASCII-8BIT encoding that you try to insert into a UTF-8 string.
[21:19:50] adaedra: You'd need to be able to figure the encoding and encode the whole string correctly (force_encoding(encoding).encode('UTF-8')) in order to display it, I guess
[21:20:03] renderful: has joined #ruby
[21:21:05] chridal: Hey guys. I'm selling off my ticket to RailsConf. I sadly won't be able to attend this year. The current price for a ticket is $900. Selling mine for $500. Send me a PM if interested. Thanks!
[21:22:12] CalimeroTeknik: adaedra, this kinda works http://sprunge.us/TSRP
[21:22:17] CalimeroTeknik: I couldn't crash it
[21:22:23] idefine: has joined #ruby
[21:22:44] adaedra: But do you get all the characters from people using non-UTF-8 encodings?
[21:22:55] adaedra: You could also look at how Cinch managed to do it
[21:23:26] shazaum_: has joined #ruby
[21:25:56] yfeldblum: has joined #ruby
[21:26:20] CalimeroTeknik: well, at some point you realize that UTF-8 with tolerance to invalid characters is a good thing :)
[21:26:59] lxsameer: has joined #ruby
[21:26:59] lxsameer: has joined #ruby
[21:27:13] ledestin: has joined #ruby
[21:27:21] adaedra: But that's how you go from a café to a caf?
[21:27:52] CalimeroTeknik: if I had put some ISO8859 or latin1 there yes
[21:29:04] CalimeroTeknik: maybe I could fallback to some ISO8859 encoding (which one?), but I that's not a real issue
[21:30:08] sp4rrow: has joined #ruby
[21:30:17] adaedra: You should actually detect what encoding the message is made of — But that's not always easy. There are some gems to do that iirc.
[21:30:43] adaedra: And, I think the non-messages part of IRC protocol is ASCII only, which is a good thing
[21:31:53] CalimeroTeknik: encoding detection relies on under-the-hood specificities, I'd rather just understand utf8 and not crash on random binary strings
[21:32:07] CalimeroTeknik: which is what the above code does
[21:34:05] diegoaguilar: has joined #ruby
[21:35:02] renderful: has joined #ruby
[21:35:06] diegoaguilar: has joined #ruby
[21:37:16] renderful: has joined #ruby
[21:37:22] sgambino: has joined #ruby
[21:38:59] Kallis: has joined #ruby
[21:41:12] sp4rrow: has joined #ruby
[21:41:57] renderful: has joined #ruby
[21:42:53] solocshaw: has joined #ruby
[21:43:15] gregf: has joined #ruby
[21:43:44] idefine: has joined #ruby
[21:43:49] baweaver: has joined #ruby
[21:44:36] certainty: has joined #ruby
[21:45:22] SilverKey: has joined #ruby
[21:45:49] rbennacer: has joined #ruby
[21:46:03] Asher: has joined #ruby
[21:46:35] swills: has joined #ruby
[21:46:54] shevy: long live ascii!
[21:48:22] Moosashi: has joined #ruby
[21:50:45] zacstewart: has joined #ruby
[21:51:39] idefine: has joined #ruby
[21:51:54] freerobby1: has joined #ruby
[21:52:07] S_Waqas: has joined #ruby
[21:52:08] malcolmva: has joined #ruby
[21:52:25] sp4rrow: has joined #ruby
[21:52:49] newjersey: has joined #ruby
[21:53:34] rbennacer: has joined #ruby
[21:55:14] ruby[bot]: -b *!*@172.56.40.79$#ruby-banned
[21:57:13] kareeoleez: what is a safe way to process some commands in ruby as a Transaction ?
[21:57:36] kareeoleez: they are not sql queries, just steps that need to be safe and ran all together successfully
[21:59:21] baweaver: basically conditionals
[21:59:42] baweaver: unless failure constitutes an exception, then a rescue / ensure for cleanup
[22:00:28] northrup: has joined #ruby
[22:02:27] nobitanobi: has joined #ruby
[22:02:31] duderonomy: has joined #ruby
[22:03:06] sp4rrow: has joined #ruby
[22:03:16] ur5us: has joined #ruby
[22:03:43] kareeoleez: baweaver: doesn't exist something similar in plain ruby ?
[22:04:18] baweaver: that is plain ruby
[22:04:44] baweaver: if step_one then step_two end
[22:05:18] baweaver: now if you have a sequence of tasks that need to run of arbitrary order, that'd be different
[22:05:23] duckpuppy: has joined #ruby
[22:05:52] baweaver: what exactly are you trying to do with a command transaction?
[22:07:54] kareeoleez: baweaver: e.g. set the hostname of the system
[22:08:05] baweaver: ah, so system commands
[22:08:16] kareeoleez: baweaver: validate string, write value to file, store in a db
[22:08:40] baweaver: begin, rescue, ensure
[22:09:07] baweaver: begin a block, rescue an exception, ensure that these steps are executed (normally cleanup)
[22:09:20] baweaver: other than that nothing more than if checks
[22:11:04] idefine_: has joined #ruby
[22:11:41] pawnbox: has joined #ruby
[22:12:11] smathy: ...it's not magical though, the "rollback" is manual.
[22:12:22] smathy: ...or explicit at least, whatever the right word is.
[22:13:27] FooMunki: has joined #ruby
[22:13:55] johnmilton: has joined #ruby
[22:14:54] Devalo: has joined #ruby
[22:15:32] baweaver: def sys_transaction(cmds: [], rollback: []) cmds.all?{|c|system c} || rollback.each{|c|system c} end
[22:16:05] baweaver: sys_transaction(cmds: ['ls', 'rm something'], rollback: ['touch something'])
[22:16:25] baweaver: something vaguely like that would work
[22:16:32] baweaver: though you don't even really need a method
[22:16:42] smathy: ...for very specific meanings of "work"
[22:16:44] baweaver: system gives back true for 0 return, false otherwise
[22:17:04] baweaver: never said it was pretty ;)
[22:17:23] smathy: 'rm /bin/sh' => 'touch /bin/sh' # what could go wrong ;)
[22:17:53] baweaver: example code, couldn't think of a good rollback
[22:18:39] smathy: I'm just guessing what the OP meant by "what is a safe way to process some commands in ruby as a Transaction ?" - sounds like they really think you can do: `system "rm -rf /bin`; raise System::Rollback and we're all good.
[22:19:09] baweaver: yeah, entire issue is you'd have to define what it means to rollback
[22:19:17] baweaver: which in the context of a database is straightforward
[22:19:22] baweaver: not so much in Unix
[22:19:26] smathy: Right, very unlikely a DB transaction block.
[22:19:59] baweaver: you'd end up reimplementing transactions effectively when if branches would work
[22:21:23] postmodern: is there a watchdog script for resque/sidekiq that can restart killed/stalled workers?
[22:23:08] smathy: I like how you make operating-system level transactions sound totally possible ;)
[22:23:30] smathy: "Hey, so you have a couple of choices here, either invent a time machine, or use if statements."
[22:24:02] baweaver: https://en.wikipedia.org/wiki/Time_Machine_(OS_X)
[22:24:12] smathy: Maybe if they use Python.
[22:24:40] baweaver: postmodern: probably something like Monit, Runnit, Bluepill, or God
[22:24:58] baweaver: process monitors, most of them probably have something similar to that.
[22:25:17] baweaver: smathy: import 'time_machine'
[22:25:54] baweaver: smathy: I know I have a problem when I seriously consider how you could do system level transactions
[22:26:19] baweaver: my faith in myself is slightly restored when I come to the conclusion it's way more effort than it'd be worth
[22:28:28] smathy: postmodern, just use the pro product, it handles worker crashes much better, leaves the job there to be retried later.
[22:32:31] johnmilton: has joined #ruby
[22:32:50] postmodern: actually, this might be possible via plain-old upstart https://gist.github.com/jpayne/3677675
[22:33:02] sp4rrow: has joined #ruby
[22:33:08] bkxd: has joined #ruby
[22:35:09] smathy: Not if the job has already been removed from redis.
[22:36:02] benlieb: has joined #ruby
[22:36:35] postmodern: smathy, then it will be in the failed queue
[22:36:53] postmodern: smathy, i'm having issues with OOM killing workers, which slows down the queue
[22:37:00] Asher: has joined #ruby
[22:37:05] postmodern: and it appears upstart has tools for dealing with this! http://upstart.ubuntu.com/cookbook/#oom-score
[22:37:18] smathy: Cool, I have no idea what an OOM is.
[22:37:36] smathy: I just assumed you'd mistyped MOM and you had a really mean mother.
[22:37:45] baweaver: smathy: it's what a cow says in Australia
[22:37:46] smathy: "Seriously MOM, I'M WORKING!!!"
[22:37:53] rbr: has joined #ruby
[22:38:00] smathy: Heh, isn't that OOW ?
[22:38:48] baweaver: Radar: what do cows say in Australia?
[22:39:08] havenwood: baweaver: oom
[22:39:17] postmodern: or would it be oow?
[22:39:21] tfitts: has joined #ruby
[22:39:41] zenlot: has joined #ruby
[22:40:01] baweaver: I think we've milked this one enough for now in any case.
[22:40:08] smathy: ACTION reminds baweaver that he's Australian too
[22:40:12] baweaver: It's become udderly offtopic
[22:40:19] smathy: Two in a row.
[22:40:34] baweaver: It would behoove you not to keep count
[22:40:43] fossel: has joined #ruby
[22:40:56] seydar: has joined #ruby
[22:41:02] seydar: i've been living under a rock. what alternative to rvm should i be using?
[22:41:20] baweaver: havenwood: where was that magic link?
[22:41:54] baweaver: havenwood: for rbenv from radar
[22:42:07] cutebarista: has joined #ruby
[22:43:19] seydar: is everyone using rbenv nowadays?
[22:43:43] shevy: I use the source!
[22:44:11] seydar: shevy: mah boi
[22:44:36] seydar: which is what i'd love to do, but i want to easily switch between rubies (rbx and mri)
[22:44:42] baweaver: http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/
[22:44:50] baweaver: there it was
[22:45:29] seydar: and sudo and rubygems has always been a headache because root has different gems installed than my local user; any recommendation for getting around that?
[22:45:56] seydar: also shevy, do you have any recommendations for process monitoring? i'm ready to move away from god. it's driving me crazy right now
[22:47:16] baweaver: I've heard monit and runit thrown around a lot
[22:47:24] baweaver: Bluepill and Eye seem just as bad if not worse
[22:48:04] ramfjord: What's wrong with rvm?
[22:48:20] ramfjord: well, besides the fact that you install it with curl | bash
[22:48:50] shevy: seydar hmm no real idea, don't think I ever did monitor process... aside from linux stuff... but I guess the only "monitoring" I do is to watch htop :P
[22:48:59] Azure: has joined #ruby
[22:49:19] seydar: ramfjord: i don't like using rvmsudo and i'm worried that i'm stuck in the past. i guess it has been fine for me, though the fact that it relies on bash makes me suspicious
[22:49:23] smathy: ramfjord, I needed nothing more than that FWIW, but also - doesn't it still mangle (aka: stub) `cd` and friends?
[22:50:16] seydar: baweaver: why does eye seem just as bad if not worse?
[22:50:29] quakephil: has left #ruby: ()
[22:50:31] baweaver: tried contributing to it once
[22:50:37] baweaver: then ran the spec suite
[22:50:42] baweaver: took 2 hours to finish
[22:50:47] baweaver: that to me is a black flag
[22:51:06] seydar: i like that i can have it check processes by looking at a socket instead of a PID
[22:51:13] seydar: what do you use for monitoring then instead?
[22:51:49] baweaver: typically runit or monit
[22:52:08] baweaver: the code for Eye just spooked me
[22:52:19] aghalarp: has joined #ruby
[22:52:51] Moosashi: has joined #ruby
[22:53:16] brianpWins: has joined #ruby
[22:53:25] seydar: runit looks like it replaces init, which is not what i would expect to use for monitoring
[22:53:36] seydar: maybe you're about to upgrade my *nix knowledge right now
[22:54:03] Kallis: has joined #ruby
[22:54:09] DefV: has joined #ruby
[22:54:26] eam: seydar: generally you'd run runit under init, not in place of it
[22:54:30] nofxx: Using systemd as monitor for years now, only happiness
[22:54:30] nofxx: as monitor = restart true, which does what's needed
[22:54:32] eam: it's supplementary
[22:54:45] nofxx: also good is that every lib/db/whatever and the app are on systemd, so just "one place to look"
[22:54:50] havenwood: seydar: https://www.mikeperham.com/2014/09/22/dont-daemonize-your-daemons/
[22:54:52] baweaver: my unix fu is not what I would call amazing by any means
[22:55:03] eam: (which is a key reason to use runit instead of some hulking piece of non-portable trash like systemd)
[22:55:25] lemur: has joined #ruby
[22:56:54] eam: I've been using daemontools/runit across a decade and a half and across four different init reinventions
[22:57:09] nofxx: Over 3 years using w/o ANY issue. Disagree with trash.
[22:57:10] nofxx: and as portable, any good distro uses it, so...
[22:57:22] eam: nofxx: BSD?
[22:57:23] eam: solaris?
[22:57:34] seydar: havenwood: so i've got a handful of apps/sites running on my server. would you recommend not monitoring them?
[22:57:43] eam: lol @ "it's portable it runs on some of the most popular linuxes"
[22:58:44] seydar: havenwood: actually reading the link you sent me; i should let my OS handle the daemons. you're right, i'm micromanaging
[22:58:51] baweaver: https://sensuapp.org/
[22:58:55] seydar: i need to step back and let my work live on its own
[22:59:34] baweaver: ACTION currently has a strong dislike of Nagios
[23:00:04] nofxx: who runs apps on BSD? but out of curiosity, does it monitor/restart too? runit
[23:00:16] DefV: has joined #ruby
[23:00:26] seydar: baweaver: i now see why i should be using runit/init
[23:04:36] Spami: has joined #ruby
[23:09:01] diegoaguilar: has joined #ruby
[23:10:24] Moosashi: has joined #ruby
[23:10:35] rkazak: has joined #ruby
[23:11:17] giz|work: has joined #ruby
[23:12:21] sp4rrow: has joined #ruby
[23:14:01] eam: nofxx: yes
[23:21:42] baweaver: has joined #ruby
[23:22:40] kies: has joined #ruby
[23:29:08] mlakewood: has joined #ruby
[23:31:11] DefV: has joined #ruby
[23:32:02] GinoMan2440: has joined #ruby
[23:32:28] LiquidInsect: has joined #ruby
[23:32:37] arescorpio: has joined #ruby
[23:32:48] ismaelga: has joined #ruby
[23:33:22] wldcordeiro: has joined #ruby
[23:33:55] ryan_notabot: has joined #ruby
[23:34:08] ur5us: has joined #ruby
[23:35:17] SilverKey: has joined #ruby
[23:36:21] bkxd: has joined #ruby
[23:37:52] ur5us: has joined #ruby
[23:38:40] ramfjord_: has joined #ruby
[23:39:02] benlieb: has joined #ruby
[23:43:20] Nanuq: has joined #ruby
[23:45:42] zenspider: ok. I'm genuinely stumped and need help.
[23:45:43] zenspider: Marshal.dump(x) #=> TypeError: singleton can't be dumped
[23:45:54] zenspider: Marshal.dump x.instance_variables.map { |iv| [iv, x.instance_variable_get(iv)] } # => works fine
[23:46:02] zenspider: Marshal.dump x.class # => works fine
[23:46:17] zenspider: when is an object unmarshalable when all of its state IS marshalable ?
[23:48:19] bronson: has joined #ruby
[23:48:47] Stazer: has joined #ruby
[23:52:16] sp4rrow: has joined #ruby
[23:54:20] zenspider: ARGH. I have NO CLUE where to go from here
[23:54:40] baweaver: Ox0dea, eam, jhass
[23:56:12] smathy: zenspider, x.singleton_methods returns what?
[23:57:06] jackjackdripper1: has joined #ruby
[23:58:28] ule: hey guys.. what's the name of this: def foo(a, *b) ......
[23:58:31] sp4rrow: has joined #ruby
[23:58:41] ule: and --> foo(1, 2, 3, 4, 5)
[23:58:49] ule: that b becomes an array
[23:58:59] ule: what's the name of that parameter?
[23:59:24] Ox0dea: ule: We say that `b` is "splatted".
[23:59:25] smathy: The * is the splat operator.