« Back to channel list

#ruby - 28 September 2015

« Back 1 day Forward 1 day »
[00:00:33] jun_: has joined #ruby
[00:01:26] devbug_: has joined #ruby
[00:03:27] ericjphillips: has joined #ruby
[00:04:29] LoganG_: has joined #ruby
[00:07:25] gregf: has joined #ruby
[00:08:03] yosafbridge: has joined #ruby
[00:08:11] fullofcaffeine: has joined #ruby
[00:08:32] natevick: has joined #ruby
[00:10:49] dikaio: has joined #ruby
[00:12:56] djbkd: has joined #ruby
[00:12:57] YankNYC: has joined #ruby
[00:16:20] voltalio: has joined #ruby
[00:16:59] workmad3: has joined #ruby
[00:17:17] jairojunior: has joined #ruby
[00:17:50] dikaio: has joined #ruby
[00:22:46] swgillespie: has joined #ruby
[00:23:51] skweek: has joined #ruby
[00:25:43] tejasmanohar: has joined #ruby
[00:25:47] yfeldblum: has joined #ruby
[00:27:29] IceyEC: has joined #ruby
[00:29:42] casadei: has joined #ruby
[00:31:26] LoganG: has joined #ruby
[00:33:06] Rodya_: has joined #ruby
[00:33:15] CloCkWeRX: has joined #ruby
[00:34:15] symm-: has joined #ruby
[00:34:17] northfurr: has joined #ruby
[00:35:16] yfeldblum: has joined #ruby
[00:38:47] bronson: has joined #ruby
[00:39:54] CloCkWeRX: has joined #ruby
[00:40:41] lemur: has joined #ruby
[00:44:40] davedev24: has joined #ruby
[00:47:59] northfurr: has joined #ruby
[00:49:04] RegulationD: has joined #ruby
[00:49:40] radgeRayden_: has joined #ruby
[00:49:48] noethics: has joined #ruby
[00:51:39] ericjphillips1: has joined #ruby
[00:51:52] araujo_: has joined #ruby
[00:52:09] robbyoconnor: has joined #ruby
[00:54:20] araujo_: has joined #ruby
[00:55:08] solocshaw1: has joined #ruby
[00:55:09] jairojunior: has joined #ruby
[00:56:44] robbyoconnor: has joined #ruby
[00:57:23] tkuchiki: has joined #ruby
[00:59:40] jun_: has joined #ruby
[01:00:19] charliesome: has joined #ruby
[01:01:48] ponga: has joined #ruby
[01:04:49] stardiviner: has joined #ruby
[01:05:26] CloCkWeRX: has joined #ruby
[01:08:09] CloCkWeRX: has joined #ruby
[01:11:47] FrankD: has joined #ruby
[01:14:08] quazimod1: has joined #ruby
[01:16:06] blackmesa: has joined #ruby
[01:17:11] rehat: has joined #ruby
[01:19:11] Akagi201: has joined #ruby
[01:22:43] ryanlntn: has joined #ruby
[01:23:14] baweaver: has joined #ruby
[01:25:46] pontiki: has joined #ruby
[01:26:40] pontiki: has joined #ruby
[01:29:00] bentanweihao: has joined #ruby
[01:30:13] thejamespinto: has joined #ruby
[01:32:26] dstarh: has joined #ruby
[01:32:29] todd: has joined #ruby
[01:33:56] solocshaw1: has joined #ruby
[01:34:03] oz`: has joined #ruby
[01:34:14] scottyme-: has joined #ruby
[01:34:35] fastAndSlow: has joined #ruby
[01:34:39] gf3_: has joined #ruby
[01:34:43] bazbing80: has joined #ruby
[01:34:48] nirix_: has joined #ruby
[01:35:01] bigmac_: has joined #ruby
[01:36:10] ozzloy_: has joined #ruby
[01:36:12] parus: has joined #ruby
[01:36:25] nw1: has joined #ruby
[01:36:27] tokik_: has joined #ruby
[01:36:27] mosez_: has joined #ruby
[01:36:28] Nirgali43: has joined #ruby
[01:36:29] moloch__: has joined #ruby
[01:36:43] shaman42: has joined #ruby
[01:36:44] stryek_: has joined #ruby
[01:36:48] bazbing81: has joined #ruby
[01:36:51] j4cknewt: has joined #ruby
[01:36:52] janno_: has joined #ruby
[01:36:56] drizz: has joined #ruby
[01:36:58] Raboo_: has joined #ruby
[01:37:01] exceion_: has joined #ruby
[01:37:13] NeverDie_: has joined #ruby
[01:37:14] mighty_gorilla: has joined #ruby
[01:37:16] inoperable_: has joined #ruby
[01:37:20] charliesome: has joined #ruby
[01:37:23] edwardly_: has joined #ruby
[01:37:23] edwardly_: has joined #ruby
[01:37:23] Miccet: has joined #ruby
[01:38:12] sysanthrope_: has joined #ruby
[01:38:20] EnergyCoffee_: has joined #ruby
[01:38:26] moss_: has joined #ruby
[01:38:31] rfv_: has joined #ruby
[01:38:36] martinbjeldbak_: has joined #ruby
[01:38:42] ujjain: has joined #ruby
[01:38:42] ujjain: has joined #ruby
[01:38:55] slash_nick: has joined #ruby
[01:38:55] kappy: has joined #ruby
[01:38:56] soahccc: has joined #ruby
[01:38:56] contradictioned: has joined #ruby
[01:38:56] Hien: has joined #ruby
[01:38:56] ddv: has joined #ruby
[01:38:56] slash_nick: has joined #ruby
[01:38:56] Hien: has joined #ruby
[01:38:56] kalleth: has joined #ruby
[01:38:56] Fluent: has joined #ruby
[01:38:56] dmoe: has joined #ruby
[01:38:57] dmoe: has joined #ruby
[01:39:05] jokester: has joined #ruby
[01:39:14] bruno-: has joined #ruby
[01:39:21] drPoggs: has joined #ruby
[01:39:30] llua: has joined #ruby
[01:39:30] llua: has joined #ruby
[01:39:36] EnergyCoffee: has joined #ruby
[01:39:38] bronson: has joined #ruby
[01:39:47] Olipro: has joined #ruby
[01:40:02] tkuchiki: has joined #ruby
[01:40:27] Log1x: has joined #ruby
[01:40:27] Log1x: has joined #ruby
[01:40:33] FrankD: has joined #ruby
[01:40:40] SuperTux88: has joined #ruby
[01:40:46] cmoneylulz: has joined #ruby
[01:40:51] EnergyCoffee: has joined #ruby
[01:41:21] bnizzle: has joined #ruby
[01:41:28] ddfreyne_: has joined #ruby
[01:41:34] chris2: has joined #ruby
[01:41:37] shelling__: has joined #ruby
[01:41:42] DoYouKnow: has joined #ruby
[01:41:44] nemesit|znc: has joined #ruby
[01:41:46] allomov: has joined #ruby
[01:41:51] bhorn1|away: has joined #ruby
[01:42:04] kappy: has joined #ruby
[01:42:07] jdawgaz: has joined #ruby
[01:42:07] EnergyCoffee: has joined #ruby
[01:42:11] larissa: has joined #ruby
[01:42:14] xxx: has joined #ruby
[01:42:18] ebertx: has joined #ruby
[01:42:19] DenSchub: has joined #ruby
[01:42:21] klingeldraht: has joined #ruby
[01:42:24] phrozen77: has joined #ruby
[01:42:24] gsingh93: has joined #ruby
[01:42:32] slash_nick: has joined #ruby
[01:42:35] konopka: has joined #ruby
[01:42:39] thejoecarroll: has joined #ruby
[01:42:50] russt: has joined #ruby
[01:43:04] vcoinminer: has joined #ruby
[01:43:22] EnergyCoffee: has joined #ruby
[01:43:39] bmurt: has joined #ruby
[01:43:56] heftig: has joined #ruby
[01:44:01] bauruine: has joined #ruby
[01:44:12] mjc_: has joined #ruby
[01:44:40] EnergyCoffee: has joined #ruby
[01:44:43] haasn`: has joined #ruby
[01:44:58] andersh: has joined #ruby
[01:45:05] iateadonut: has joined #ruby
[01:45:08] Guest26447: has joined #ruby
[01:45:18] Yzguy: has joined #ruby
[01:45:24] DukeDave: has joined #ruby
[01:45:40] Hobbyboy: has joined #ruby
[01:45:40] yo61: has joined #ruby
[01:45:46] AdamMeghji: has joined #ruby
[01:46:07] ponga: has joined #ruby
[01:46:44] im0b: has joined #ruby
[01:47:23] tuor: has joined #ruby
[01:47:23] mprelude: has joined #ruby
[01:47:29] lacrosse: has joined #ruby
[01:48:33] v0n: has joined #ruby
[01:48:39] GnuYawk: has joined #ruby
[01:48:48] GnuYawk: has joined #ruby
[01:49:41] jeadre: has joined #ruby
[01:49:46] benlieb: has joined #ruby
[01:50:37] hplar: has joined #ruby
[01:50:49] PlasmaStar: has joined #ruby
[01:53:42] iateadonut: has joined #ruby
[01:54:45] iamninja_: has joined #ruby
[01:56:48] voltalio: has joined #ruby
[01:57:50] bentanwe_: has joined #ruby
[01:58:46] Brin: has joined #ruby
[01:58:59] Maletor: has joined #ruby
[02:02:24] SHyx0rmZ: has joined #ruby
[02:03:22] ericjphillips: has joined #ruby
[02:03:26] benlieb: has joined #ruby
[02:04:33] BTRE: has joined #ruby
[02:05:12] A124: has joined #ruby
[02:09:16] voltalio: has joined #ruby
[02:09:18] jun: has joined #ruby
[02:10:23] lukaszk: has joined #ruby
[02:12:35] djbkd: has joined #ruby
[02:18:23] Guest65: has joined #ruby
[02:23:19] benlieb: has joined #ruby
[02:23:54] Guest26447: has joined #ruby
[02:25:20] fedexo: has joined #ruby
[02:27:09] bigmac_: has joined #ruby
[02:27:31] DenSchub: has joined #ruby
[02:34:42] n008f4g_: has joined #ruby
[02:35:23] j4cknewt: has joined #ruby
[02:40:33] bronson: has joined #ruby
[02:40:37] karapetyan: has joined #ruby
[02:41:04] rickmasta: has joined #ruby
[02:41:57] moeabdol: has joined #ruby
[02:45:11] rickmasta: has joined #ruby
[02:46:01] Beoran_: has joined #ruby
[02:46:34] solocshaw: has joined #ruby
[02:49:58] RegulationD: has joined #ruby
[02:54:29] swgillespie: has joined #ruby
[02:54:58] ant2k: has joined #ruby
[02:56:38] natevick: has joined #ruby
[03:00:09] Tempesta: has joined #ruby
[03:01:09] gener1c_: has joined #ruby
[03:04:19] M-Kodo: has joined #ruby
[03:09:59] braincras: has joined #ruby
[03:10:22] tomchapin: has joined #ruby
[03:11:20] psye: has joined #ruby
[03:12:15] charliesome: has joined #ruby
[03:14:50] djbkd: has joined #ruby
[03:15:01] hahuang65: has joined #ruby
[03:19:02] M-mistake: has joined #ruby
[03:19:02] M-prosodyContext: has joined #ruby
[03:23:34] zenguy_pc: has joined #ruby
[03:24:59] darkf: has joined #ruby
[03:28:06] sdothum: has joined #ruby
[03:30:17] favadi: has joined #ruby
[03:31:21] gix: has joined #ruby
[03:32:54] pontiki: zenspider: stupid question on minitest (i'm just starting in to learn it from scratch): by convention, should the test file names be `test_*.rb` or `*_test.rb` ? I know it doesn't matter in the end, but what is the convention, if any?
[03:32:56] baweaver: has joined #ruby
[03:33:32] pontiki: reason i ask is `bundler gem xxx` makes `xxx_test.rb` but guard-minitest expects `test_xxx.rb`
[03:34:20] sjums: has left #ruby: ()
[03:37:15] riskish: has joined #ruby
[03:37:40] rickmasta: has joined #ruby
[03:41:31] bronson: has joined #ruby
[03:42:12] opensource_ninja: has joined #ruby
[03:42:59] lemur: has joined #ruby
[03:44:43] stardiviner: has joined #ruby
[03:44:49] Blizzy: has joined #ruby
[03:47:04] davedev24: has joined #ruby
[03:47:06] ledestin: has joined #ruby
[03:47:07] ryanlntn: has joined #ruby
[03:47:59] roxtrongo: has joined #ruby
[03:48:12] ryanlntn: has left #ruby: ()
[03:49:26] roxtrongo: has joined #ruby
[03:51:24] aNoble: has joined #ruby
[03:53:42] Blizzy: has joined #ruby
[03:54:48] fullofcaffeine: has joined #ruby
[03:55:12] i: has joined #ruby
[04:00:34] djbkd: has joined #ruby
[04:03:50] swgillespie: has joined #ruby
[04:04:21] krz: has joined #ruby
[04:06:26] swgillespie: has joined #ruby
[04:06:38] j4cknewt: has joined #ruby
[04:09:22] agent_white: has joined #ruby
[04:09:48] agent_white: Evenin' folks
[04:10:24] dopie: has joined #ruby
[04:10:31] favadi: has joined #ruby
[04:10:40] djbkd_: has joined #ruby
[04:10:57] devoldmx: has joined #ruby
[04:11:34] pontiki: hi agent_white
[04:12:32] agent_white: pontiki: Heya! How goes it?
[04:12:46] freezevee: has joined #ruby
[04:13:30] rickmasta: has joined #ruby
[04:14:11] pontiki: not too bad
[04:18:00] ryanlntn: has joined #ruby
[04:19:10] fullofcaffeine: has joined #ruby
[04:20:02] astrobunny: has joined #ruby
[04:20:19] theery: has joined #ruby
[04:22:01] towski_: has joined #ruby
[04:24:04] vdamewood: has joined #ruby
[04:26:47] swgillespie: has joined #ruby
[04:27:00] favadi: has joined #ruby
[04:27:17] towski_: has joined #ruby
[04:28:03] hectortrope: has joined #ruby
[04:29:10] swgillespie: has joined #ruby
[04:31:17] krz: has joined #ruby
[04:31:53] jenrzzz: has joined #ruby
[04:32:47] towski_: has joined #ruby
[04:33:12] Gnomethrower: has joined #ruby
[04:37:02] Cork: has joined #ruby
[04:37:12] ghostlines: has joined #ruby
[04:42:26] bronson: has joined #ruby
[04:43:07] jun: has joined #ruby
[04:44:17] astrobunny: has joined #ruby
[04:45:49] solocshaw: has joined #ruby
[04:50:51] RegulationD: has joined #ruby
[04:51:21] nofxx: has joined #ruby
[04:52:12] FrankD: has joined #ruby
[04:52:27] kp666: has joined #ruby
[04:57:03] nofxx: has joined #ruby
[04:57:21] tkuchiki: has joined #ruby
[04:58:13] FrankD: has joined #ruby
[04:58:56] Peteykun: has joined #ruby
[04:59:32] roxtrongo: has joined #ruby
[04:59:34] pawnbox: has joined #ruby
[05:00:10] towski_: has joined #ruby
[05:01:04] moeabdol: has joined #ruby
[05:01:50] freerobby: has joined #ruby
[05:04:10] jun: has joined #ruby
[05:05:20] pawnbox: has joined #ruby
[05:05:31] nirix: has joined #ruby
[05:08:07] karapetyan: has joined #ruby
[05:08:37] karapetyan: has joined #ruby
[05:08:55] robbyoconnor: has joined #ruby
[05:10:07] charliesome: has joined #ruby
[05:10:21] allcentury: has joined #ruby
[05:11:14] roxtrongo: has joined #ruby
[05:15:06] pawnbox: has joined #ruby
[05:16:18] fullofcaffeine: has joined #ruby
[05:16:55] dhjondoh: has joined #ruby
[05:24:06] atmosx: has joined #ruby
[05:24:33] dasher00: has joined #ruby
[05:25:06] freerobby: has joined #ruby
[05:25:54] spider-mario: has joined #ruby
[05:27:48] atmosx: has joined #ruby
[05:28:10] djbkd_: has joined #ruby
[05:31:12] Anti-Pizza: has joined #ruby
[05:31:42] MyMind: has joined #ruby
[05:31:52] alexUaN: has joined #ruby
[05:31:56] fullofcaffeine: has joined #ruby
[05:33:10] allcentu1: has joined #ruby
[05:34:11] r0x0rZ: has joined #ruby
[05:34:14] atmosx: has joined #ruby
[05:38:47] renderful: has joined #ruby
[05:39:07] A124: Hello. Anyway.. Q: Database recommendation for tens of millions of records? Could be key-value, document, or table. Only one client needed.
[05:39:49] theery: has joined #ruby
[05:39:49] thejamespinto: hey guys, long time I havent' been here... do you all still hate Rails like you used to back in my day? :P
[05:40:07] baweaver: pontiki: alo
[05:40:10] pontiki: i work in Rails p.much every day. i love it.
[05:40:20] pontiki: hey, baweaver
[05:40:29] baweaver: A124: MySQL works fine
[05:40:40] A124: I dont hate Rails. Why would one hate Rails? Depending for situation its a nice thing to have.
[05:40:54] bruno-: has joined #ruby
[05:40:57] A124: baweaver Any other recommendations? I am not fan of that :D
[05:41:10] pontiki: some people need controversy
[05:41:22] baweaver: unless you _need_ NoSQL I wouldn't
[05:41:33] baweaver: MariaDB :trollface:
[05:41:41] A124: What cuold be a reason to need NoSQL?
[05:42:20] baweaver: If you don't know, don't use it.
[05:42:42] A124: I already did.
[05:42:54] A124: I asked to have opinion from someone else.
[05:43:04] baweaver: The trade off is that you get parts of structure ripped out for speed
[05:43:16] baweaver: it really depends on the data though
[05:43:23] baweaver: 10mil+ isn't that many.
[05:43:28] jun: has joined #ruby
[05:43:47] baweaver: If it's relational and you're going to ad-hoc that back on, it's a very bad idea until you hit a scale where that matters.
[05:43:57] baweaver: by which point you can hire people to migrate it.
[05:44:17] roxtrongo: has joined #ruby
[05:44:36] bronson: has joined #ruby
[05:44:57] baweaver: Saying you have 10M+ records and asking for a database is like asking what food to feed 10M+ animals
[05:45:11] A124: 10 mil is just the start.
[05:45:22] baweaver: if we don't know what type of data it is, any recommendation is pointless.
[05:45:33] A124: Combined.
[05:45:42] tagrudev: has joined #ruby
[05:45:48] A124: Maybe I should use multple data storages then.
[05:45:54] baweaver: So I have 10M+ Chimeras then
[05:46:04] baweaver: what are you dealing with?
[05:46:19] baweaver: vague questions will get equally vague and frustrating answers
[05:46:42] A124: Not frustrating by any means, I did actually look for broad answers.
[05:46:56] A124: Research and content retrival/serving.
[05:47:08] baweaver: Is it in any way relational?
[05:47:24] baweaver: If so, use PostgreSQL
[05:47:56] A124: Both data storage for linear runs as well as random lookups by key. And the usable outputs to be used for serving could be relational indeed.
[05:48:08] bnagy: I feel like if you're in the 10s of millions postgres is less likely to be a mistake than a nosql
[05:48:36] baweaver: when we're talking billions to trillions you're getting there.
[05:49:05] ndrei: has joined #ruby
[05:49:12] baweaver: at that scale though you really need to hire someone trained in that type of thing.
[05:49:15] bluOxigen: has joined #ruby
[05:49:48] nofxx: has joined #ruby
[05:49:48] nofxx: has joined #ruby
[05:50:19] A124: Hmm... Well.. back in 2008 I had a plan. ... did not meet the support at all and... then was a personal failure of self. Today, many years forward this looks simple at the rate I wanted to start, but as the data grows by years, things change too.
[05:51:09] A124: Reachieng billions no biggie. I do not at the present moment percieve going trillions though. At that point, yes you were right. But never thought of looking for someone to deal with billions.
[05:51:20] last_staff: has joined #ruby
[05:51:24] rushed: has joined #ruby
[05:51:44] dionysus69: has joined #ruby
[05:52:12] A124: Thanks for the idea. Its not that much and as its mostly research its not realtime critical, and if it is, one can split the data by a "connector" feed to a separate system that gets updated by duplicating flow based on condition.
[05:52:29] baweaver: http://blog.nahurst.com/visual-guide-to-nosql-systems
[05:52:38] A124: Ok. PostgreSQL it is then. Could you also recommend a NoSQL?
[05:52:53] A124: I have actually that page open atm.
[05:52:58] baweaver: Not MongoDB
[05:53:03] anisha: has joined #ruby
[05:53:12] A124: Haha, thanks. I already used it. Seems neat.
[05:53:18] A124: For small scales stuff.
[05:53:58] baweaver: Ask BitCoin how they liked it some time.
[05:54:01] A124: But seemed to lack at more. I was there when Mongo and Avocado (today known as Arango) was born.
[05:54:08] baweaver: and why atomic operations are a big deal
[05:54:30] A124: Yeah, I know myself a lot about atomicity.
[05:54:48] baweaver: something about exfiltrating millions in bitcoin due to Mongo sucking with atomic ops and locking
[05:55:09] A124: Thanks for pointer :D
[05:57:33] A124: Yeah, I think I could relate a nosql key-value storage, with sql by a key, or using object oriented. Which leads me to conclusion to seek three database things/layers and look how it comes out.
[05:58:41] A124: Bumped into HyperTable. Could be suited for a hybrid storage of large data at some point of time.
[05:59:21] Anti-Pizza: has left #ruby: ("Leaving")
[06:00:18] A124: Ok. Thank you very much for input, this helped a lot in decisions. If anyone would like to recommend any more, will appreciate.
[06:06:54] DoubleMalt: has joined #ruby
[06:10:51] tmtwd: has joined #ruby
[06:11:03] slaytor: has joined #ruby
[06:11:28] pawnbox_: has joined #ruby
[06:13:53] konsolebox: has joined #ruby
[06:14:38] beast: has joined #ruby
[06:15:45] eGGsha: has joined #ruby
[06:16:41] konsolebox: has joined #ruby
[06:17:13] CloCkWeRX: has joined #ruby
[06:17:16] atmosx: A124: psql has nosql capabilities
[06:17:35] atmosx: http://www.infoq.com/news/2014/05/postgresql-9-4
[06:19:44] yfeldblum: has joined #ruby
[06:20:07] borkdude: has joined #ruby
[06:20:11] A124: " No matter how many features we ever add, we can never be better at being Oracle than Oracle can." Well said.
[06:21:08] A124: Thank you. I did not see this stuff for a shile so had no idea it has.
[06:21:43] konsolebox: has joined #ruby
[06:21:46] A124: If I can leverage json and give client data as it is stored minus internal "columns", that could speed up a lot.
[06:21:51] naftilos76: has joined #ruby
[06:23:13] howdoi: has joined #ruby
[06:24:58] j4cknewt: has joined #ruby
[06:26:26] pontiki: has joined #ruby
[06:27:38] Gnomethrower: has joined #ruby
[06:30:23] nofxx: has joined #ruby
[06:30:50] blaxter: has joined #ruby
[06:33:25] blackmesa: has joined #ruby
[06:34:56] agent_white: has joined #ruby
[06:35:10] Blizzy: has joined #ruby
[06:35:22] towski_: has joined #ruby
[06:36:23] arup_r: has joined #ruby
[06:36:59] maokomioko: has joined #ruby
[06:37:52] firstdayonthejob: has joined #ruby
[06:38:28] Macaveli: has joined #ruby
[06:40:47] sanjayu: has joined #ruby
[06:41:42] aganov: has joined #ruby
[06:42:19] konsolebox: has joined #ruby
[06:43:21] Blizzy: has joined #ruby
[06:44:09] Ilyes512: has joined #ruby
[06:44:32] banjara: has joined #ruby
[06:45:28] slayerjain: has joined #ruby
[06:45:34] bronson: has joined #ruby
[06:45:58] ndrei: has joined #ruby
[06:46:08] konsolebox: has joined #ruby
[06:46:54] Xeago: has joined #ruby
[06:47:04] araujo: has joined #ruby
[06:47:35] Xeago: has joined #ruby
[06:49:02] nfk|laptop: has joined #ruby
[06:49:14] moeabdol: has joined #ruby
[06:49:20] iamninja_: has joined #ruby
[06:50:53] slayerja_: has joined #ruby
[06:51:23] ruurd: has joined #ruby
[06:51:44] RegulationD: has joined #ruby
[06:52:48] Pumukel: has joined #ruby
[06:55:33] j4cknewt: has joined #ruby
[06:57:22] karapetyan: has joined #ruby
[06:57:36] nofxx: has joined #ruby
[06:57:57] slayerjain: has joined #ruby
[07:00:30] symm-: has joined #ruby
[07:02:36] cih: has joined #ruby
[07:03:25] solars: has joined #ruby
[07:04:03] tejasmanohar: recommended books?
[07:09:28] banjara: has joined #ruby
[07:10:50] slayerja_: has joined #ruby
[07:11:46] Stan: has joined #ruby
[07:13:35] bubbys: has joined #ruby
[07:15:41] NightMonkey: has joined #ruby
[07:16:26] SCHAAP137: has joined #ruby
[07:17:40] pragmatism: has joined #ruby
[07:18:48] blackmesa: has joined #ruby
[07:18:57] arup_r: You want Rails/Ruby book ? If Ruby well grounded Rubyist
[07:19:30] alphaatom: has joined #ruby
[07:19:46] arup_r: tejasmanohar: ^^
[07:20:03] solocshaw: has joined #ruby
[07:21:39] astrobun_: has joined #ruby
[07:24:45] karapetyan: has joined #ruby
[07:24:46] pawnbox: has joined #ruby
[07:26:14] Balzrael: has joined #ruby
[07:27:01] pragmatism: has joined #ruby
[07:31:14] Xeago: has joined #ruby
[07:32:14] naftilos76: has joined #ruby
[07:33:22] _joes_: has joined #ruby
[07:34:21] Ilyes512: has joined #ruby
[07:37:55] platzhirsch: has joined #ruby
[07:38:03] Pisuke: has joined #ruby
[07:42:04] lolmaus_: has joined #ruby
[07:43:18] ndrei: has joined #ruby
[07:43:47] burgestrand: has joined #ruby
[07:44:30] funkenstrahlen: has joined #ruby
[07:45:08] funkenstrahlen: hey, I want to call a CLI command from my ruby code. I want to see the output of the cli command when running the ruby script. Should I use system() or exec()?
[07:45:28] freezevee: has joined #ruby
[07:45:49] burgestrand: funkenstrahlen: do you just want to see the output, or do you want to do something with it in ruby code afterwards?
[07:46:04] apeiros: funkenstrahlen: exec will replace your current process, so probably you don't want that :)
[07:46:24] bronson: has joined #ruby
[07:47:02] TheHodge: has joined #ruby
[07:47:06] funkenstrahlen: Burgestrand: just see the outout. simply true/false as return value is ok
[07:47:17] burgestrand: funkenstrahlen: in that case #system should be just fine.
[07:47:19] funkenstrahlen: Burgestrand: want to call ffmpeg
[07:47:24] funkenstrahlen: Burgestrand: ok thanks
[07:48:08] burgestrand: funkenstrahlen: if you pass in user-provided data in your command, do call system with multiple parameters, e.g. system("ffmpeg", "-i", user_provided_path)
[07:48:09] Stalkr_: has joined #ruby
[07:48:24] funkenstrahlen: Burgestrand: why?
[07:48:43] funkenstrahlen: Burgestrand: cant I simply do system ("some command")
[07:48:59] funkenstrahlen: with all the parameters in the string
[07:49:25] funkenstrahlen: ffmpeg has a lot of parameters...
[07:49:26] pawnbox: has joined #ruby
[07:49:28] burgestrand: funkenstrahlen: Yes, you can, but if you interpolate user-provided data they might provide something akin to: "; rm -rf /"
[07:50:12] burgestrand: funkenstrahlen: If it's all just the same parameters every time (no variables, no string interpolation) then feel free to call it with just a single string.
[07:50:23] funkenstrahlen: Burgestrand: ok got it. in my case it is not user provided, but it is more safe to do it your way
[07:50:24] abuzze: has joined #ruby
[07:50:40] funkenstrahlen: thanks for the hint
[07:50:49] burgestrand: funkenstrahlen: You can put your parameters in an array, e.g.: command = []; command << "ffmpeg"; command << "-f"; system(*command)
[07:51:14] freezevee: how do I include more strings when filtering with regex ? output(/hello/).to_stdout and I want to include "hello", "world", "!!"
[07:51:30] freezevee: [hello,world,!!] does not work
[07:51:44] burgestrand: freezevee: I don't understand your question, could you rephrase?
[07:52:09] freezevee: Burgestrand: how do you find certain string in a phrase/string
[07:52:16] karapetyan: has joined #ruby
[07:52:44] burgestrand: freezevee: http://rubular.com/r/EIMY9Z0MIL
[07:52:57] qwertme: has joined #ruby
[07:53:17] freezevee: Burgestrand: is it a simple "|" or ?
[07:53:18] burgestrand: freezevee: that's a way that you could write your regex to match all three things, then there's different ways of using the regex, i.e.: "this is a string" =~ /is/
[07:53:29] freezevee: no I want to match all of them
[07:53:32] araujo_: has joined #ruby
[07:53:45] bougyman: i'm going crazy over a gem install
[07:54:00] bougyman: we're in an env with no network access to the outside, and I can't figure out how to get gems installed.
[07:54:11] bougyman: gem i --force --local /path/to/the.gem just hangs forever.
[07:54:38] bougyman: looking at the process trace, it's trying to find an http rubygems source
[07:54:44] funkenstrahlen: Burgestrand: does it have to be a string only cmd array?
[07:54:48] bougyman: even when I turn all the network interfaces off.
[07:54:51] apeiros: bougyman: -y?
[07:54:57] apeiros: so it doesn't try to install dependencies
[07:54:59] funkenstrahlen: Burgestrand: or can I pass integers to it too?
[07:55:01] bougyman: is there some option to gem to say "do not fucking touch the network you idiot" ?
[07:55:08] burgestrand: funkenstrahlen: maybe, try it :)
[07:55:09] bougyman: apeiros: i have all the deps.
[07:55:15] burgestrand: >> system("echo", 5)
[07:55:16] ruboto: Burgestrand # => no implicit conversion of Fixnum into String (TypeError) ...check link for more (https://eval.in/440478)
[07:55:24] burgestrand: funkenstrahlen: looks like it has to be strings!
[07:55:28] Mia: has joined #ruby
[07:55:28] Mia: has joined #ruby
[07:55:50] bougyman: -y is not a valid option, apeiros
[07:55:58] apeiros: oh, seems that option changed anyway (or I misremember)
[07:56:03] kalusn: has joined #ruby
[07:56:18] apeiros: your -f/--force seems to do that now
[07:56:19] burgestrand: bougyman: does it have dependencies that might be attempted to be retrieved from elsewhere?
[07:56:24] burgestrand: bougyman: (just a thought)
[07:56:26] bougyman: apeiros: it seems to not do it.
[07:56:28] bougyman: Burgestrand: nope.
[07:56:40] bougyman: i'm using gem install --local --force ./the.gem
[07:56:59] bougyman: i've never even had to use --local nor --force before to install a gem from the disk
[07:57:03] bougyman: this is driving me batty.
[07:57:09] Axy: has joined #ruby
[07:57:09] burgestrand: bougyman: maybe you could try to remove all sources as well, which'd remove the https-lookup?
[07:57:26] burgestrand: bougyman: --clear-sources or --source or something. might be a workaround.
[07:57:35] Zai00: has joined #ruby
[07:59:24] adaedra: Greetings, humans
[08:00:05] funkenstrahlen: has left #ruby: ("WeeChat 1.1.1")
[08:00:08] bougyman: Burgestrand: yep, that worked, you're an angel, thank you.
[08:00:28] Hounddog: has joined #ruby
[08:00:41] burgestrand: bougyman: yippee. :)
[08:01:39] alphaatom: has joined #ruby
[08:01:41] tomphp: has joined #ruby
[08:02:16] agit0: has joined #ruby
[08:04:33] kalusn: has joined #ruby
[08:04:56] parduse: has joined #ruby
[08:09:09] CloCkWeRX: has left #ruby: ()
[08:09:30] karapetyan: has joined #ruby
[08:12:31] platzhirsch: has joined #ruby
[08:15:12] drptbl: has joined #ruby
[08:16:24] southpawlar: has joined #ruby
[08:18:41] ta: has joined #ruby
[08:18:50] ta: has joined #ruby
[08:19:54] krisquigley: has joined #ruby
[08:20:15] chrissonar: has joined #ruby
[08:20:45] zotherstupidguy: has joined #ruby
[08:20:57] Kendos-Kenlen: has joined #ruby
[08:21:12] futilegames: has joined #ruby
[08:22:02] joonty: has joined #ruby
[08:22:33] SenpaiSilver: has joined #ruby
[08:22:40] Peteykun: has joined #ruby
[08:23:28] ddv: has joined #ruby
[08:24:24] charliesome: has joined #ruby
[08:26:09] piotrj: has joined #ruby
[08:27:16] pawnbox: has joined #ruby
[08:28:23] Phil-Work: has joined #ruby
[08:29:02] CloCkWeRX: has joined #ruby
[08:29:34] araujo: has joined #ruby
[08:30:00] blackmesa: has joined #ruby
[08:30:14] abuzze: has joined #ruby
[08:30:18] astrobunny: has joined #ruby
[08:31:07] abuzze: has joined #ruby
[08:31:14] Stan: has joined #ruby
[08:31:41] hs366: has joined #ruby
[08:36:25] SenpaiSilver: has joined #ruby
[08:37:19] moeabdol: has joined #ruby
[08:38:32] exadeci: has joined #ruby
[08:39:35] voker57: has joined #ruby
[08:47:21] bronson: has joined #ruby
[08:47:53] rdark: has joined #ruby
[08:47:54] jds: has joined #ruby
[08:49:23] sepp2k: has joined #ruby
[08:49:37] codecop: has joined #ruby
[08:49:42] codecop_: has joined #ruby
[08:49:48] msb_: has joined #ruby
[08:52:11] yorickpeterse: morning children
[08:52:29] leafybasil: has joined #ruby
[08:52:36] RegulationD: has joined #ruby
[08:52:54] maokomioko: has joined #ruby
[08:52:56] shevy: morning darth father
[08:52:59] leafybasil: has joined #ruby
[08:53:10] marr: has joined #ruby
[08:53:22] ta: has joined #ruby
[08:55:07] yorickpeterse: you kids behave while I was out?
[08:55:09] yorickpeterse: not doing any drugs?
[08:56:10] tomaz_b: has joined #ruby
[08:56:12] adaedra: I took yours
[08:56:15] amystephen: has joined #ruby
[08:57:29] bruno-: has joined #ruby
[09:01:22] Pathfinder: has joined #ruby
[09:02:58] Xeago: has joined #ruby
[09:04:15] anisha: has joined #ruby
[09:04:19] arup_r: has joined #ruby
[09:05:01] joonty: has joined #ruby
[09:07:06] Igorshp: has joined #ruby
[09:07:37] bigkevmcd: has joined #ruby
[09:08:27] yorickpeterse: adaedra: PUT IT DOWN YOU LITTLE BRAT
[09:08:33] yorickpeterse: or I'll pull out the belt
[09:08:46] yorickpeterse: (???? ???? ????)
[09:10:16] tonios57: has joined #ruby
[09:10:58] allomov: has joined #ruby
[09:11:05] dasher00: has joined #ruby
[09:11:08] [k-: has joined #ruby
[09:12:04] dasher00: has joined #ruby
[09:15:37] tkuchiki: has joined #ruby
[09:16:04] shevy: time for dutch spanking!
[09:17:35] blackmesa: has joined #ruby
[09:18:12] duckson: has joined #ruby
[09:19:05] ndrei: has joined #ruby
[09:19:53] dhjondoh: has joined #ruby
[09:22:49] bigkevmcd: has joined #ruby
[09:23:16] dmolina: has joined #ruby
[09:23:46] bigkevmcd: has joined #ruby
[09:23:58] nettoweb: has joined #ruby
[09:24:10] pawnbox: has joined #ruby
[09:25:27] arup_r: has joined #ruby
[09:33:58] skade: has joined #ruby
[09:35:21] charliesome: has joined #ruby
[09:37:43] timonv: has joined #ruby
[09:41:48] solocshaw: has joined #ruby
[09:43:04] subshad: has joined #ruby
[09:44:58] Dogethrower: has joined #ruby
[09:45:35] Ilyes512: has joined #ruby
[09:45:58] pawnbox: has joined #ruby
[09:48:55] Gnomethrower: has joined #ruby
[09:48:55] Gnomethrower: has joined #ruby
[09:53:19] tomphp: has joined #ruby
[09:53:23] moeabdol: has joined #ruby
[09:53:31] jinie: has joined #ruby
[09:54:47] sross07: has joined #ruby
[09:55:59] Gnomethrower: has joined #ruby
[09:56:00] Gnomethrower: has joined #ruby
[09:56:02] workmad3_: has joined #ruby
[09:56:15] Iszak_: has joined #ruby
[09:56:28] jbw: has joined #ruby
[09:59:38] jcromartie: has joined #ruby
[10:00:03] Musashi007: has joined #ruby
[10:00:25] iszak: has joined #ruby
[10:00:25] iszak: has joined #ruby
[10:00:27] ammar: has joined #ruby
[10:01:26] workmad3_: has joined #ruby
[10:02:23] sumark: has joined #ruby
[10:02:27] Morrolan: has joined #ruby
[10:04:29] _aeris_: has joined #ruby
[10:04:47] Esya-: has joined #ruby
[10:07:19] greedo: has joined #ruby
[10:07:57] devoldmx: has joined #ruby
[10:08:32] dasher00: has joined #ruby
[10:11:09] dasher00: has joined #ruby
[10:11:09] dasher00: has joined #ruby
[10:11:09] dasher00: has joined #ruby
[10:11:39] Siyfion: has joined #ruby
[10:16:53] nikeita: has joined #ruby
[10:17:15] sross07: has joined #ruby
[10:17:31] nofxx: has joined #ruby
[10:17:33] EdwardIII: has joined #ruby
[10:18:13] bruno-: has joined #ruby
[10:18:40] relix: has joined #ruby
[10:18:46] babysnoop: has joined #ruby
[10:19:01] stamina: has joined #ruby
[10:19:45] pawnbox: has joined #ruby
[10:19:54] Sembei: has joined #ruby
[10:20:20] rickmasta: has joined #ruby
[10:21:22] pawnbox: has joined #ruby
[10:21:29] charliesome: has joined #ruby
[10:21:45] Siyfion: has joined #ruby
[10:24:08] braincrash: has joined #ruby
[10:24:53] agit0: has joined #ruby
[10:25:58] tkuchiki: has joined #ruby
[10:26:29] Rollabunna: has joined #ruby
[10:27:48] jcromartie: has joined #ruby
[10:29:22] dasher00: has joined #ruby
[10:30:03] djbkd: has joined #ruby
[10:30:28] AccordLTN: has joined #ruby
[10:30:31] tcopeland: has joined #ruby
[10:32:42] DenSchub: has joined #ruby
[10:32:50] mike___1234: has joined #ruby
[10:33:05] ereslibre: has joined #ruby
[10:35:03] vondruch: has joined #ruby
[10:35:51] Igorshp: has joined #ruby
[10:35:55] anisha: has joined #ruby
[10:38:02] modern: has joined #ruby
[10:38:40] jayram: has joined #ruby
[10:39:39] Ilyes512: has joined #ruby
[10:40:24] ericjphillips: has joined #ruby
[10:40:44] chrissonar: has joined #ruby
[10:41:12] jayram: has left #ruby: ()
[10:41:17] jayram: has joined #ruby
[10:41:33] burgestrand: has joined #ruby
[10:42:14] piotrj: has joined #ruby
[10:42:43] symm-: has joined #ruby
[10:46:51] babysnoop: hi, anybody familiar with the paperclip gem? Im validating image uploads as described in https://github.com/thoughtbot/paperclip#security-validations . the issue i am having is that when uploading non-image files renamed to "file.jpeg", my rails sever struggles terribly for about 30 seconds. thanks
[10:48:41] pyon: has joined #ruby
[10:50:36] bronson: has joined #ruby
[10:52:16] rodfersou: has joined #ruby
[10:52:17] keen___________: has joined #ruby
[10:53:30] RegulationD: has joined #ruby
[10:55:03] pawnbox: has joined #ruby
[10:58:01] RaceCondition: has joined #ruby
[10:58:02] RaceCondition: has left #ruby: ()
[10:59:31] pawnbox: has joined #ruby
[11:01:05] mjuszczak: has joined #ruby
[11:02:29] Scripore: has joined #ruby
[11:03:20] solocshaw1: has joined #ruby
[11:04:58] Ilyes512: has joined #ruby
[11:05:50] Pathfinder: has joined #ruby
[11:08:09] kljadfs: has joined #ruby
[11:08:10] pyon: has joined #ruby
[11:08:11] gustav__: has joined #ruby
[11:08:44] devoldmx: has joined #ruby
[11:09:22] moeabdol: has joined #ruby
[11:09:35] Anti-Pizza: has joined #ruby
[11:10:56] FernandoBasso: has joined #ruby
[11:16:52] sdothum: has joined #ruby
[11:18:47] tvw: has joined #ruby
[11:19:17] Macaveli: has joined #ruby
[11:19:40] skade: has joined #ruby
[11:19:50] pawnbox: has joined #ruby
[11:21:49] platzhirsch: has joined #ruby
[11:22:24] blackmesa: has joined #ruby
[11:23:24] pawnbox: has joined #ruby
[11:24:11] ghoti: has joined #ruby
[11:27:50] syath: has joined #ruby
[11:29:08] cajone: has joined #ruby
[11:30:15] charliesome: has joined #ruby
[11:31:36] ericjphillips: has joined #ruby
[11:34:38] ruurd: has joined #ruby
[11:35:37] karapetyan: has joined #ruby
[11:36:24] but3k4: has joined #ruby
[11:36:52] kalusn: has joined #ruby
[11:38:40] ldnunes: has joined #ruby
[11:39:39] southpawlar: has joined #ruby
[11:40:27] platzhirsch: has joined #ruby
[11:40:32] Kallis: has joined #ruby
[11:41:11] renderful: has joined #ruby
[11:42:29] babysnoop: has joined #ruby
[11:42:38] Ramsek: has joined #ruby
[11:45:15] atomical: has joined #ruby
[11:45:42] Ramsek: hi all , i have a error while i download ruby-1.8.7-p374
[11:46:09] d10n-work: has joined #ruby
[11:46:17] A124: has joined #ruby
[11:46:26] apeiros: is it a "zombie resurrection failed" error?
[11:46:48] Ramsek: hop its a openssl error
[11:47:53] dasher00: has joined #ruby
[11:48:12] stardiviner: has joined #ruby
[11:48:13] pawnbox: has joined #ruby
[11:48:16] Ramsek: Error: Failed to download resource "openssl098" Download failed: https://www.openssl.org/source/openssl-0.9.8zg.tar.gz
[11:48:58] CloCkWeRX: has joined #ruby
[11:49:02] yorickpeterse: Are you using RVM?
[11:49:10] yorickpeterse: If so, it's better to ask in #rvm
[11:51:13] arup_r: has joined #ruby
[11:51:28] bronson: has joined #ruby
[11:51:47] AugustoCesar: has joined #ruby
[11:53:12] arup_r1: has joined #ruby
[11:55:28] burgestrand: has joined #ruby
[11:56:23] decoponio: has joined #ruby
[11:58:00] southpawlar: has joined #ruby
[11:58:12] IceyEC: has joined #ruby
[12:01:18] DoubleMalt: has joined #ruby
[12:01:32] varunwachaspati: has joined #ruby
[12:02:44] quazimodo: has joined #ruby
[12:02:56] Igorshp: has joined #ruby
[12:03:14] codenapp_: has joined #ruby
[12:06:15] skade: has joined #ruby
[12:08:08] Xiti: has joined #ruby
[12:09:30] devoldmx: has joined #ruby
[12:09:37] Kendos-Kenlen: has joined #ruby
[12:09:37] blackmesa: has joined #ruby
[12:10:01] Xeago: has joined #ruby
[12:10:07] favadi: has joined #ruby
[12:10:10] pawnbox: has joined #ruby
[12:10:34] emilkarl: has joined #ruby
[12:10:39] nzst: has joined #ruby
[12:13:04] codenapper: has joined #ruby
[12:14:42] _el_fer_: has joined #ruby
[12:15:01] krisquigley: has joined #ruby
[12:15:18] unreal_: has joined #ruby
[12:17:22] lolmaus: has joined #ruby
[12:18:47] nzst: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[12:19:15] dasher00: has joined #ruby
[12:20:22] Guest490: has joined #ruby
[12:20:26] Guest490: What are threads?
[12:20:55] Ilyes512: has joined #ruby
[12:21:01] yorickpeterse: Guest490: https://en.wikipedia.org/wiki/Thread_(computing)
[12:21:37] Guest490: yorickpeterse: I read that. Can you provide a simple definition for what a thread is? Is it like a sub-program inside a ruby program?
[12:22:00] yorickpeterse: The wikipedia page explains exactly what it is
[12:22:07] yorickpeterse: "In computer science, a thread of execution is the smallest sequence of programmed instructions that can be managed independently by a scheduler, which is typically a part of the operating system."
[12:22:11] yorickpeterse: it's the 1st paragraph
[12:22:37] [k-: that's too rense
[12:22:48] yorickpeterse: https://simple.wikipedia.org/wiki/Thread_(computer_science)
[12:23:00] [k-: he wants a simple definition
[12:23:11] yorickpeterse: Not sure what's so dense about that
[12:23:14] yorickpeterse: it's literally what it is
[12:23:16] _el_fer_: "Threads", a Season 8 Stargate SG-1 episode
[12:23:31] gusTester: has joined #ruby
[12:23:40] pawnbox_: has joined #ruby
[12:24:51] lolmaus: has joined #ruby
[12:24:55] Guest490: yorickpeterse: When I write a ruby program, is that called the "main thread"?
[12:25:02] p0wn3d: has joined #ruby
[12:25:40] nateberkopec: has joined #ruby
[12:26:16] Macaveli: has joined #ruby
[12:28:07] apeiros: Guest490: if you don't create any threads, all your code runs in the main thread, yes
[12:28:32] prestorium: has joined #ruby
[12:29:12] Guest490: apeiros: And if I create threads, the threads run alongside the main thread. And if the main thread ends, the created threads also end. Correct?
[12:29:49] mjuszczak: has joined #ruby
[12:29:57] apeiros: kinda. the other threads will be terminated. i.e. the main thread won't wait (without you telling it to) for other threads to end
[12:30:48] apeiros: (referring to "when the main thread ends")
[12:31:07] Guest490: apeiros: and the main thread always runs to completion but the created ones dont?
[12:31:09] asxbr: has joined #ruby
[12:31:35] apeiros: the main thread ending means your program terminates
[12:32:06] [k-: when an uncaught exception is raised
[12:32:14] [k-: exit is called
[12:32:23] [k-: abort is called
[12:32:29] [k-: or by any other means
[12:32:35] apeiros: or the code simply reaches its end
[12:33:42] [k-: or the program is killed
[12:33:44] Guest490: apeiros: Can you explain what's happening here: https://eval.in/440567
[12:33:53] emilkarl: has joined #ruby
[12:33:59] tcopeland: has joined #ruby
[12:34:19] nofxx: has joined #ruby
[12:34:26] apeiros: Guest490: you're telling the program to wait for the same thread to finish in which you tell it to wait
[12:34:29] apeiros: that doesn't work
[12:34:50] yorickpeterse: also you can't start threads on eval.in
[12:35:52] Peteykun: has joined #ruby
[12:36:40] Kendos-Kenlen: has joined #ruby
[12:36:43] dasher00: has joined #ruby
[12:37:19] dasher00: has joined #ruby
[12:37:21] Guest490: apeiros: So just to be clear...threads are like mini processes that run at the same time within a ruby program. Am I right?
[12:37:59] apeiros: I wouldn't call it that. they're code running concurrently with other code.
[12:38:00] dasher00: has joined #ruby
[12:39:21] bkulbida: has joined #ruby
[12:40:27] Xeago: has joined #ruby
[12:44:23] tknz: has joined #ruby
[12:46:05] NeverDie: has joined #ruby
[12:46:29] burgestrand: has joined #ruby
[12:48:30] Cyberheb: has joined #ruby
[12:49:06] Cyberheb: has joined #ruby
[12:49:45] Cyberheb: has joined #ruby
[12:50:57] kalusn: has joined #ruby
[12:51:13] _el_fer_: has joined #ruby
[12:52:26] bronson: has joined #ruby
[12:52:34] Guest54571: has joined #ruby
[12:52:35] darix: see also fibers, coroutines
[12:52:46] Guest54571: "You can wait for a particular thread to finish by calling that thread's Thread.join method. The calling thread will block until the given thread is finished." What does block mean here?
[12:53:40] [k-: actors, event driven io, forking, processes, Celluloid,
[12:54:20] gustav__: has joined #ruby
[12:54:22] [k-: block means to suspend the thread such that it cannot proceed to it's next instruction, for a period of time
[12:54:25] RegulationD: has joined #ruby
[12:54:27] Hydro-x1: has joined #ruby
[12:54:29] Hydro-x1: b Hello gays
[12:54:29] Hydro-x1: Oh sorry Hello Guys
[12:55:11] yorickpeterse: interesting way of making an entrance
[12:55:41] [k-: interesting autocorrect?
[12:56:13] shevy: interesting evil intent
[12:56:17] Guest54571: <[k->: Why does it say "will block" instead of "will be blocked"?
[12:56:18] dasher00: has joined #ruby
[12:56:33] jzigmund_: has joined #ruby
[12:56:45] shevy: guest_____ it might block the main thread
[12:57:00] shevy: I have that with ruby-gtk where I can freeze the parent widget when doing things :D
[12:57:04] dstarh: has joined #ruby
[12:57:17] shevy: which is annoying because you can then no longer click on anything in the main widget
[12:57:35] Guest54571: is the calling thread the main thread?
[12:57:38] moeabdol: has joined #ruby
[13:01:36] beauby: has joined #ruby
[13:01:42] [k-: it means the thread that called join
[13:01:45] kobain: has joined #ruby
[13:01:54] [k-: Thread.join, that is
[13:02:18] favadi: has joined #ruby
[13:02:28] phutchins1: has joined #ruby
[13:02:42] Igorshp: has joined #ruby
[13:02:48] slayerjain: has joined #ruby
[13:02:48] jzigmund: has joined #ruby
[13:04:11] southpawlar: has joined #ruby
[13:04:48] bmurt: has joined #ruby
[13:04:52] sgambino: has joined #ruby
[13:04:53] dorei: has joined #ruby
[13:05:06] dhjondoh: has joined #ruby
[13:05:13] JDiPierro: has joined #ruby
[13:06:23] slayerjain: has joined #ruby
[13:06:38] victortyau: has joined #ruby
[13:06:57] Xeago: has joined #ruby
[13:08:29] bluOxigen: has joined #ruby
[13:08:39] dhjondoh: has joined #ruby
[13:10:14] devoldmx: has joined #ruby
[13:12:27] moeabdol: has joined #ruby
[13:13:08] Peteykun: has joined #ruby
[13:13:21] [k-: " "" """ """" """"" Ox0dea
[13:13:27] [k-: where has Ox0dea gone?
[13:13:43] dasher00: has joined #ruby
[13:14:06] dhjondoh: has joined #ruby
[13:15:04] dasher00: has joined #ruby
[13:15:13] bayed: has joined #ruby
[13:16:14] dasher00: has joined #ruby
[13:16:31] InternetFriend: has joined #ruby
[13:16:38] jmignault: has joined #ruby
[13:16:39] slayerjain: has joined #ruby
[13:17:11] renderful: has joined #ruby
[13:17:59] dasher00: has joined #ruby
[13:18:24] shpoont: has joined #ruby
[13:19:20] dasher00: has joined #ruby
[13:19:22] to_json: has joined #ruby
[13:19:35] Igorshp: has joined #ruby
[13:20:28] dasher00: has joined #ruby
[13:20:45] shevy: eaten by a crocodile
[13:20:51] shevy: sevenseacat is also missing
[13:20:55] shevy: WE ARE LOSING ZE PEOPLES!!!
[13:21:04] adaedra: People come, people go
[13:21:13] adaedra: It's the circle of liiiiiiiiife ???
[13:21:18] [k-: WE ARE LOSING THE SHEVY TO THE MENTAL
[13:21:28] prestorium_: has joined #ruby
[13:21:29] Psi-Jack: has joined #ruby
[13:21:45] Kendos-Kenlen: has joined #ruby
[13:21:46] dasher00: has joined #ruby
[13:23:07] yorickpeterse: they already were mental
[13:23:21] dasher00: has joined #ruby
[13:23:52] _el_fer_: has joined #ruby
[13:23:55] ndrei: has joined #ruby
[13:24:18] Jardayn: has joined #ruby
[13:24:27] gustav__: has joined #ruby
[13:25:14] dasher00: has joined #ruby
[13:25:26] `tim`: has joined #ruby
[13:25:56] [k-: zeeeeeeeeeee
[13:26:09] [k-: no one knows where they have gone :(
[13:26:47] dasher00: has joined #ruby
[13:28:18] mhib: has joined #ruby
[13:28:44] shevy: lost forever
[13:29:25] dasher00: has joined #ruby
[13:31:14] djcp: has joined #ruby
[13:32:44] spcmastertim: has joined #ruby
[13:33:08] malconis: has joined #ruby
[13:33:23] [k-: like your face!
[13:34:22] malconis: has joined #ruby
[13:35:13] whippythellama: has joined #ruby
[13:35:59] bazbing81: is there a method for finding the closest match to a string in an array of strings? ['ab,'abb','zx'].closest_to 'abba' #=> 1 or 'abb'
[13:36:25] apeiros: bazbing81: do you already have an algorithm to determine "closeness" of two strings?
[13:36:25] Xeago: has joined #ruby
[13:36:50] blackmesa: has joined #ruby
[13:37:22] [k-: this is obviously a case of levenshtein distance
[13:37:24] bazbing81: apeiros: nope, going to make one myself. should be easy and fun, just wondering if ruby already does it. Maybe that example's a little off. I'm looking more for google's autofill type usage
[13:37:33] piotrj: has joined #ruby
[13:37:39] [k-: compute the difference, and grab the one with the lowest difference
[13:37:45] jdawgaz: has joined #ruby
[13:37:45] apeiros: no, ruby has no methods for string closeness
[13:37:49] bazbing81: [k-: indeed :)
[13:37:50] karapetyan: has joined #ruby
[13:37:58] bazbing81: okay kewl, I shall compute away
[13:38:02] apeiros: Enumerable#min_by once you have your method
[13:39:03] bazbing81: apeiros: thanks for the hint!
[13:40:32] voltalio: has joined #ruby
[13:43:40] decoponyo: has joined #ruby
[13:43:47] joonty: has joined #ruby
[13:44:18] voltalio: has joined #ruby
[13:44:48] southpawlar: Do frameworks like Ruboto and RubyMotion have any performance issues as compared to coding in native Java
[13:44:51] southpawlar: ample people say yes
[13:45:03] southpawlar: but i'd like your opinions as well
[13:45:08] InternetFriend: has joined #ruby
[13:45:55] yottanami: has joined #ruby
[13:46:09] yottanami: I want send a post request using Net::HTTP http://dpaste.com/06QAB78
[13:46:35] yottanami: but I got this error /home/yottanami/.rbenv/versions/2.2.2/lib/ruby/2.2.0/net/http/generic_request.rb:182:in `send_request_with_body': undefined method `bytesize' for {:receiver=>"XXXXXX", :text=>"Sample Text"}:Hash (NoMethodError)
[13:48:00] timonv: has joined #ruby
[13:48:49] _el_fer_: has joined #ruby
[13:49:18] pawnbox: has joined #ruby
[13:50:30] pandaant: has joined #ruby
[13:50:39] devoldmx: has joined #ruby
[13:50:46] krz: has joined #ruby
[13:51:57] decoponio: has joined #ruby
[13:51:58] apeiros: yottanami: sounds to me (without looking at the API) like the body is expected to be a string
[13:52:05] ItSANgo: has joined #ruby
[13:52:17] dionysus69: has joined #ruby
[13:52:17] yottanami: apeiros, I changed body to URI.encode_www_form(body) and it works now
[13:53:16] bronson: has joined #ruby
[13:53:31] bkxd: has joined #ruby
[13:54:25] dasher00: has joined #ruby
[13:54:55] lkba: has joined #ruby
[13:54:58] dhollinger: has joined #ruby
[13:55:49] RTG`: has joined #ruby
[13:56:20] arup_r: has joined #ruby
[13:56:22] Uranio-235: has joined #ruby
[13:56:51] blaxter: has joined #ruby
[13:57:04] davedev24: has joined #ruby
[13:57:22] devdazed: has joined #ruby
[13:58:24] casadei: has joined #ruby
[14:01:20] Igorshp: has joined #ruby
[14:02:24] timonv: has joined #ruby
[14:05:16] JDiPierro: has joined #ruby
[14:05:59] paulcsmith: has joined #ruby
[14:06:56] favadi: has joined #ruby
[14:09:31] Xeago: has joined #ruby
[14:09:38] umgrosscol: has joined #ruby
[14:09:40] gustav__: has joined #ruby
[14:10:16] RegulationD: has joined #ruby
[14:10:56] Igorshp: has joined #ruby
[14:11:15] cornerma1: has joined #ruby
[14:11:16] bigbadbear: has joined #ruby
[14:12:00] prefixed: has joined #ruby
[14:12:54] keen____________: has joined #ruby
[14:13:56] nopc0de: has joined #ruby
[14:14:07] freerobby: has joined #ruby
[14:14:08] Ilyes512: has joined #ruby
[14:14:33] gustav__: has joined #ruby
[14:16:13] hal_9000: has joined #ruby
[14:16:57] bazbing80: is there some kind of escaped string that means "delete"? And is there one for "enter"? I want to detect when these keys are pressed like puts "delete key pressed!" if input == "\eCODE_FOR_DELETE_KEY"
[14:17:29] bazbing80: I've tried to log it but my terminal doesn't recognize the char :P
[14:17:48] adaedra: man ascii for characters codes, but you should not be able to catch them in default mode.
[14:17:57] adaedra: Look for a terminal manipulation gem.
[14:18:40] shevy: did this not come up yesterday too
[14:18:44] blaxter: has joined #ruby
[14:19:10] [k-: your face came up yesterday too
[14:19:26] shevy: bazbing80 enter will equate to "\n", I don't think you can capture the raw codes such as via xev
[14:19:26] adaedra: If only your study time would come.
[14:19:43] adaedra: shevy: xev captures X codes, not terminal ones.
[14:20:03] icbm: has joined #ruby
[14:20:09] govg: has joined #ruby
[14:20:09] adaedra: But yes, you can setup the terminal to send you all keys.
[14:20:32] eam: the terminal needs to be put in raw mode
[14:20:54] eam: in "cooked" mode, the line editing is handled by the kernel, before the data is returned to ruby
[14:21:11] eam: bazbing80: there are gems that do this for you
[14:21:43] bazbing80: eam: yeah I'm looking...google thinks I'm trying to find out how to delete keys from hashes
[14:21:46] bazbing80: silly google
[14:22:00] funkenstrahlen: has joined #ruby
[14:22:18] funkenstrahlen: hey, I have to set an expire_date for a connection. How can I do expire_date = Time.now + 2.hours?
[14:22:45] bruno-: has joined #ruby
[14:23:24] Zarthus: has joined #ruby
[14:23:45] apeiros: funkenstrahlen: Time#+ is in seconds
[14:24:09] crayfishx: expire_date = Time.now.to_i + 7200 ?
[14:24:22] apeiros: crayfishx: that gives an integer, though, not a Time
[14:24:35] crayfishx: apeiros: convert it back from integer if you need to
[14:24:57] apeiros: crayfishx: if you love roundtrips??? there's no point to it, though. as said, Time#+ a) exists and b) works with seconds
[14:25:18] eam: bazbing80: if you just want to mess around: ruby -e'begin system "stty raw"; x = STDIN.getc; ensure system "stty sane"; end; puts "got: #{x.ord}"'
[14:26:26] dopie: has joined #ruby
[14:26:42] apeiros: require 'io/console', allows you to do it without system()
[14:27:18] eam: ah, is that where the ioctls are hiding?
[14:27:21] bazbing80: eam: thanks, I was thinking how you put a terminal in raw mode manually
[14:27:28] apeiros: eam: only a small subset I think
[14:27:40] apeiros: stuff like IO#noecho, #raw etc.
[14:27:56] funkenstrahlen: apeiros: how is the syntax for Time#+ ?
[14:28:08] funkenstrahlen: apeiros: Time3600+ for +1h?
[14:28:13] eam: bazbing80: if you're interested in tty stuff I wrote up a bit about it here: https://groups.google.com/d/msg/millertime-ext/p9b_IBiFLXI/LSacuzT8CwAJ
[14:28:25] apeiros: &ri Time#+ funkenstrahlen
[14:28:26] `derpy: http://www.rubydoc.info/stdlib/core/Time#%2B-instance_method
[14:28:58] apeiros: hm, right, derpy wants an @
[14:29:18] adaedra: if you have a better proposition of how to handle that, apeiros
[14:29:25] hashrocket: has joined #ruby
[14:29:38] apeiros: adaedra: you want an @ because you treat everything without as an item to look up, right?
[14:30:10] bazbing80: eam: yeah I'll check that out...urgh this is embarrassing, I can't find a gem for capturing raw input :(
[14:30:25] Jardayn: has joined #ruby
[14:30:25] adaedra: apeiros: yes, so you can lookup String even if someone is named String.
[14:30:39] adaedra: and you can, well, &ri String @String :)
[14:30:41] apeiros: mhm, thought so
[14:30:59] bazbing80: Something captures letter and number characters normally but delete keys and enter keys and everything are captured raw...trying to find such a gem
[14:31:05] bazbing80: *something that
[14:31:20] nfk: has joined #ruby
[14:32:02] jdawgaz: has joined #ruby
[14:32:13] apeiros: adaedra: not sure. I'm usually a fan of being explicit. but might be more intuitive to always handle last argument (in case of >1 arg & arg being an existing nick) as "address person with this nick"
[14:32:56] adaedra: That means checking against nick list at each &ri request >1 arg, tho.
[14:33:35] Igorshp: has joined #ruby
[14:33:38] shevy: it scares me what kind of old knowledge eam possesses
[14:33:39] ndrei: has joined #ruby
[14:33:50] dfockler: has joined #ruby
[14:34:12] lkba: has joined #ruby
[14:34:13] govg: has joined #ruby
[14:34:21] slayerjain: has joined #ruby
[14:34:50] drptbl_: has joined #ruby
[14:35:00] shevy: he must have learned that through perl
[14:36:03] evanjs: has joined #ruby
[14:36:09] pawnbox_: has joined #ruby
[14:37:15] eam: bazbing80: well, letters and numbers still work like normal in raw mode
[14:37:23] apeiros: adaedra: afaik in cinch it's a hash lookup, so it's O(1), not really a performance issue
[14:37:37] apeiros: (and in butler it's guaranteed to be a hash lookup)
[14:37:50] mbff: has joined #ruby
[14:38:03] adaedra: ah, can be possible then. The question is should I, as the @ form is still more explicit.
[14:38:07] shevy: good old butler
[14:38:09] mbff: Hello! Has anyone used mina for deployments before?
[14:38:23] apeiros: bazbing80: curses/ncurses are the traditional gems for that kind of stuff iirc
[14:38:24] droidburgundy: has joined #ruby
[14:38:29] apeiros: mbff: no, nobody ever
[14:38:33] apeiros: ?anyone mbff
[14:38:33] ruboto: mbff, Just ask your question, if anyone has or can, they will respond.
[14:38:49] cih_: has joined #ruby
[14:39:16] apeiros: adaedra: sure it's more explicit. but how often will it happen that your last lookup also matches a nickname?
[14:39:49] stardiviner: has joined #ruby
[14:40:31] minimalism: has joined #ruby
[14:40:51] rickmasta: has joined #ruby
[14:41:00] mbff: Alright, so I am using mina for deployments and I am trying to get the npm:install to function correctly. Right now it can't find the modules that need to be installed.
[14:41:24] bazbing80: eam: hmm..maybe I'll just put it raw mode myself like you showed me
[14:41:37] bougyman: isn't that node stuff, mbff ?
[14:41:38] mbff: https://gist.github.com/marshallford/c755d1631187d522f908
[14:42:09] eam: bazbing80: it'll work - I think apeiros's io/console suggestion is better than using system()
[14:42:11] mbff: bougyman, true but I thought it would be a mina issue since I can ssh into the server and use npm just fine.
[14:42:18] InternetFriend: has joined #ruby
[14:42:42] darix: mbff: #mina or so would still be a better channel.
[14:42:43] inteq: has joined #ruby
[14:43:00] SylarRuby: has joined #ruby
[14:43:50] mbff: darix, fair enough. I haven't been able to fine the mina irc channel yet.
[14:44:48] adaedra: apeiros: I'll note it somewhere to look at later.
[14:44:56] RegulationD: has joined #ruby
[14:45:14] apeiros: adaedra: would you mind if my port would change that behavior?
[14:45:32] adaedra: apeiros: your project, your rules.
[14:46:01] [k-: your face, your (?)
[14:46:08] apeiros: sure, but that's not what I asked ;-p
[14:46:12] [k-: ACTION snickers
[14:47:10] adaedra: apeiros: so no, I won't mind if you change behavior in your bot.
[14:48:15] gregf_: [k-: needs to be tagged 'your face'. s?he's been using that punchline all day long :/
[14:48:17] newtonianb: has joined #ruby
[14:49:09] adaedra: For multiple days :/
[14:49:19] adaedra: As an excuse for not studying :/
[14:50:09] gregf_: er, not sure. studying? hmm. i thought [k- was Ox0dea's successor :/
[14:50:19] apeiros: adaedra: [k- should study their face?
[14:51:06] mary5030: has joined #ruby
[14:53:15] slayerjain: has joined #ruby
[14:53:26] ereslibre: has joined #ruby
[14:54:49] Caius: has joined #ruby
[14:54:49] zeroDivisible: has joined #ruby
[14:57:07] Ropeney: has joined #ruby
[14:57:12] shevy: the universities in Singapore are superstrict but [k- will eventually become an associate professor
[14:57:25] rippa: has joined #ruby
[14:57:46] NeverDie: has joined #ruby
[14:57:54] adaedra: "If you can do something, do it, if you can't, teach it" :p
[14:58:25] adaedra: (apology for all teachers and other people here, it's only a joke.)
[14:58:45] fullofcaffeine: has joined #ruby
[15:01:08] Uranio-238: has joined #ruby
[15:01:14] Yzguy: has joined #ruby
[15:01:33] jhass: it's okay, we'll just take note on the things you explain
[15:03:03] gregf_: heh. adaedra, do you mean teachers can't code :|
[15:03:38] Peteykun: has joined #ruby
[15:04:41] EminenceHC: has joined #ruby
[15:06:07] renderful: has joined #ruby
[15:07:15] dorei: if can do something, do it, if you cant do it, manage it, and if you cant manage it, then teach it :p
[15:08:35] shevy: this is getting worse
[15:08:47] sjums: has joined #ruby
[15:09:08] skade: has joined #ruby
[15:09:13] [k-: your face is getting worse!
[15:09:17] rushed: has joined #ruby
[15:10:36] platzhirsch: has joined #ruby
[15:11:00] adaedra: Thanks dorei
[15:12:39] doddok: has joined #ruby
[15:12:45] EminenceHC: has joined #ruby
[15:13:48] doddok: ruby-head slower than 2.1.2 on http://pastie.org/10448430
[15:13:49] noethics: has joined #ruby
[15:14:29] doddok: head uses additional info when executing script?
[15:14:33] chouhoulis: has joined #ruby
[15:15:00] jhass: optimized build vs unoptimized build perhaps? idk do Ruby's build script set any -O level?
[15:15:08] chouhoulis: has joined #ruby
[15:15:59] [k-: i use -O6 personally
[15:16:04] doddok: i used rvm to install ruby
[15:16:25] doddok: how can check build parameters?
[15:16:51] chouhoulis: has joined #ruby
[15:16:55] jhass: RbConfig::CONFIG
[15:16:59] [k-: doddok, since you are using symbols, it ***might*** be the symbol gx
[15:17:10] [k-: gc* but i am probably wrong
[15:17:39] jhass: you might also want to check with benchmark-ips which does proper warmup etc
[15:18:03] SenpaiSilver: has joined #ruby
[15:19:54] to_json1: has joined #ruby
[15:20:10] doddok: correct code http://pastie.org/10448439
[15:20:46] doddok: http://pastie.org/10448440
[15:21:19] aerozeppelin: has joined #ruby
[15:22:22] beast: has joined #ruby
[15:25:13] Joufflu: has joined #ruby
[15:25:57] roxtrongo: has joined #ruby
[15:27:21] ReK2: has joined #ruby
[15:27:39] chinmay_dd: has left #ruby: ("See ya!")
[15:29:15] doddok: http://pastie.org/10448451
[15:30:20] shevy: lots of pastes!
[15:30:39] shevy: 2.3.0 is faster right?
[15:31:10] doddok: why fatser
[15:32:13] jhass: compare to 2.2?
[15:32:24] jhass: also that's within the standard deviation, no?
[15:32:30] piotrj: has joined #ruby
[15:33:07] EminenceHC: has joined #ruby
[15:33:25] cschneid_: has joined #ruby
[15:33:27] jhass: latest release are 2.1.7 & 2.2.3
[15:34:22] ndrei: has joined #ruby
[15:35:51] doddok: i installed 2.1.2
[15:35:53] doddok: "cxxflags"=>" -O3 -fno-fast-math -ggdb3 -Wall
[15:36:24] doddok: good flags?
[15:36:52] rcvalle: has joined #ruby
[15:36:54] rickmasta: has joined #ruby
[15:37:25] Ilyes512: has joined #ruby
[15:37:32] doddok: as remember 03 max optimization?
[15:37:33] umgrosscol: has joined #ruby
[15:37:33] speakingcode: has joined #ruby
[15:37:59] s00pcan: has joined #ruby
[15:39:08] sharkman: has joined #ruby
[15:40:59] hahuang65: has joined #ruby
[15:42:43] ruby-lang648: has joined #ruby
[15:43:07] mwlang: has joined #ruby
[15:43:23] rickmasta: has joined #ruby
[15:43:32] _djbkd: has joined #ruby
[15:43:53] michaeldeol: has joined #ruby
[15:44:31] atin_: has joined #ruby
[15:44:40] Oka: has joined #ruby
[15:46:31] ruby-lang648: "When a Ruby program terminates, all threads are killed, regardless of their states. However, you can wait for a particular thread to finish by calling that thread???s Thread#join method. The calling thread will block until the given thread is finished." What does the last sentence mean?
[15:47:23] InternetFriend: has joined #ruby
[15:47:34] adaedra: That the thread you call Thread#join in will block (not execute anything) until the thread you want to join is not terminated.
[15:47:46] brendan-: has joined #ruby
[15:47:55] benlieb: has joined #ruby
[15:48:16] Steve_Jobs: has joined #ruby
[15:48:33] ruby-lang648: adaedra: Why do we say "will block" instead of "will be blocked"?
[15:49:34] ruby-lang648: adaedra: It's incorrect english though, is it not?
[15:49:54] favadi: has joined #ruby
[15:50:03] adaedra: it seems correct to me, at least gramaticaly-wise
[15:50:08] Xeago: has joined #ruby
[15:50:26] adaedra: But ??? as you may see ???, I'm not a native English speaker, so I don't know if some weird rule would make this invalid
[15:50:30] ruby-lang648: adadra: So by block we just mean that the calling thread will be moved to the blocked state right?
[15:50:46] jshow: has joined #ruby
[15:50:47] rcvalle: has joined #ruby
[15:51:04] ruby-lang648: The calling thread is the main thread?
[15:51:08] [Butch]: has joined #ruby
[15:51:11] ruby-lang648: As in Thread.main?
[15:51:15] adaedra: and unblocked when the other thread will be done
[15:51:26] Pathfinder: has joined #ruby
[15:51:34] adaedra: You can wait a thread from another thread, not only the main one
[15:51:36] last_staff: has joined #ruby
[15:51:41] devoldmx: has joined #ruby
[15:51:45] skade: has joined #ruby
[15:51:50] ruby-lang648: adaedra: All right.
[15:51:57] ruby-lang648: adaedra: Thanks!
[15:52:57] Spami: has joined #ruby
[15:53:32] luckyme: has joined #ruby
[15:54:33] jhass: ruby-lang648: you can see it as a shorted version of "will block further execution"
[15:54:36] skade: has joined #ruby
[15:54:41] ngscheurich: has joined #ruby
[15:55:07] bronson: has joined #ruby
[15:55:17] ruby-lang648: jhass: That makes sense. Got it.
[15:56:18] dome22xl: has joined #ruby
[15:56:29] jhass: that it moves to the blocked state is right, but kinda an implementation detail
[15:58:16] ruby-lang216: has joined #ruby
[15:58:24] ruby-lang216: can I get help with this exercise?
[15:58:31] ruboto: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
[15:58:57] ruby-lang648: has left #ruby: ()
[15:58:59] amclain: has joined #ruby
[15:59:04] ruby-lang216: here's the exercise and I need a little help:encryptor 1 - write a ruby script that takes in 2 arguements - a key(int) and a string to encrypt(string) 2 - encrypt the string with random letters in between each character based off of the key example - encrypt(2, 'hello') output - hdkelxslieo
[15:59:38] adaedra: you may want to show your current state and state your current problem.
[16:00:17] ruurd: has joined #ruby
[16:00:38] EminenceHC: has joined #ruby
[16:01:50] shevy: ruby-lang216 def foo(a,b)
[16:01:58] pawnbox: has joined #ruby
[16:02:21] casadei: has joined #ruby
[16:02:51] jhass: ruby-lang216: we won't solve it for you, you should detail your thoughts and where you're stuck
[16:03:50] araujo: has joined #ruby
[16:04:40] Pathfinder: has joined #ruby
[16:05:05] Ilyes512: has joined #ruby
[16:05:24] bricker: has joined #ruby
[16:05:41] araujo: has joined #ruby
[16:06:58] Ilyes512: has joined #ruby
[16:07:11] psye: has joined #ruby
[16:07:18] agent_white: has joined #ruby
[16:07:24] agent_white: has left #ruby: ()
[16:07:38] bugrum: has joined #ruby
[16:08:11] psye: has joined #ruby
[16:08:42] blackmesa: has joined #ruby
[16:09:04] Igorshp: has joined #ruby
[16:09:12] DLSteve: has joined #ruby
[16:09:13] Ilyes512: has joined #ruby
[16:12:01] SCHAAP137: has joined #ruby
[16:12:03] voltalio: has joined #ruby
[16:12:24] Soda: has joined #ruby
[16:12:27] Ilyes512: has joined #ruby
[16:13:34] dionysus69: has joined #ruby
[16:13:34] ruby-lang216: how can I write a string in ruby and encrypt and have a key for it?
[16:13:53] shevy: he is not interactive :(
[16:13:56] G40ST: has joined #ruby
[16:14:23] bougyman: did you evern google?
[16:14:31] bougyman: ruby-lang216, that is.
[16:14:40] bougyman: lots of examples there
[16:14:45] ruby-lang216: I tried but I can't find anything
[16:14:54] bougyman: http://stackoverflow.com/questions/4128939/simple-encryption-in-ruby-without-external-gems
[16:14:57] bougyman: dunno what you tried.
[16:15:27] G40ST: Can I ask things about rails, here?
[16:15:36] adaedra: ?rails G40ST
[16:15:36] ruboto: G40ST, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[16:15:58] prater: has joined #ruby
[16:17:43] Stalkr_: has joined #ruby
[16:18:42] obx: has joined #ruby
[16:18:50] theery: has joined #ruby
[16:18:52] Maletor: has joined #ruby
[16:19:38] jdawgaz: has joined #ruby
[16:20:09] kith_: has joined #ruby
[16:20:21] Maletor: has joined #ruby
[16:21:10] Pathfinder: has joined #ruby
[16:21:11] shevy: we scared him off
[16:21:30] shevy: into the dark corners of the IRC
[16:23:14] bronson: has joined #ruby
[16:24:07] towski_: has joined #ruby
[16:25:05] Igorshp: has joined #ruby
[16:25:36] Anti-Pizza: has joined #ruby
[16:26:39] skweek: has joined #ruby
[16:26:40] karapetyan: has joined #ruby
[16:26:55] chipotle: has joined #ruby
[16:27:39] Macaveli: has joined #ruby
[16:27:58] p0wn3d: has joined #ruby
[16:28:03] rippa: has joined #ruby
[16:28:37] dome22xl: has left #ruby: ("Leaving")
[16:28:45] dome22xl: has joined #ruby
[16:30:01] hooper1: has joined #ruby
[16:30:07] pruby: has joined #ruby
[16:31:40] pruby: I'm having a hard time understanding this code: https://eval.in/440739
[16:32:03] adaedra: What part, exactly?
[16:32:12] pruby: Why does it print random numbers instead of printing them out in order?
[16:32:18] arup_r: has joined #ruby
[16:32:25] mjuszczak: has joined #ruby
[16:32:43] araujo: has joined #ruby
[16:32:43] araujo: has joined #ruby
[16:32:52] adaedra: ah, threads.
[16:33:17] mjuszczak: has joined #ruby
[16:34:08] mjuszczak: has joined #ruby
[16:35:02] dome22xl: Well it creates 10 threads and each has the sleep(rand)
[16:35:02] adaedra: Do you see what sleep(rand) does?
[16:35:33] JDiPierro: has joined #ruby
[16:35:38] dome22xl: it gives you for example 0.43248593802961577
[16:35:52] symm-: has joined #ruby
[16:36:00] pruby: adaedra: Yeah I know what it does but it's the threads that are confusing me
[16:36:12] adaedra: each thread run in parallel
[16:36:38] EminenceHC: has joined #ruby
[16:36:38] adaedra: so they start at (close enough) the same time, each on their own
[16:37:00] adaedra: they will wait a random amount of time (different for each) then save and increment the counter
[16:37:28] adaedra: but since the time to wait is random, you cannot know which thread will take a number first
[16:38:26] apeiros: adaedra: concurrently. not necessarily in parallel.
[16:38:44] adaedra: close enough in this case, but right
[16:38:47] pruby: What does this line do "Thread.current[:mycount] = count"?
[16:39:01] Xeago: has joined #ruby
[16:39:04] renderful: has joined #ruby
[16:39:12] adaedra: &ri Thread#[]=
[16:39:12] `derpy: http://www.rubydoc.info/stdlib/core/Thread#%5B%5D%3D-instance_method
[16:39:29] funkenstrahlen: hey, someone here with experience in oauth2? I am stuck here: https://github.com/kylejginavan/youtube_it/issues/253
[16:40:09] pruby: adaedra: and afterwards why do we have to call Thread#join on each thread?
[16:40:32] Tuxero: has joined #ruby
[16:40:36] ta: has joined #ruby
[16:40:51] adaedra: pruby: The main thread waits for child threads to finish, one by one. Once the threads are launched, they run concurrently, and the main thread can continue
[16:41:17] adaedra: so you have to block, thread by thread, until this thread is done
[16:41:53] adaedra: otherwise, you may request data from the thread during the sleep, and so not get the data
[16:42:27] spider-mario: has joined #ruby
[16:42:51] Maxandr: has joined #ruby
[16:43:00] pruby: adaedra: What does calling thread[:mycount] do immediately after calling thread.join?
[16:43:10] agent_meerkat: has joined #ruby
[16:43:24] adaedra: pruby: it gets the data that you set in the thread
[16:43:24] fmcgeough: has joined #ruby
[16:44:01] pruby: adaedra: all the threads have a :mycount local variable. this is different for each?
[16:44:30] pruby: adaedra: As in this local variable has a unique value for each thread?
[16:44:47] adaedra: they have local storage, that you can access with [] and []=. So, in the thread, you store something in the thread's :mycount key in storage, and get it afterwards. And yes, each thread has its own storage.
[16:45:56] adaedra: Do you see how threads work, basically?
[16:46:29] pietr0: has joined #ruby
[16:46:30] pruby: adaedra: Yeah I'm sort of getting it but it's not very clear yet. Might have to do a little more reading I guess.
[16:46:31] Gustavo: has joined #ruby
[16:46:42] adaedra: pruby: Can I try an analogy?
[16:46:42] FernandoBasso: has joined #ruby
[16:46:51] pruby: adaedra: Yeah sure.
[16:46:53] JoshyJosh: has joined #ruby
[16:46:55] troulouliou_div2: has joined #ruby
[16:46:57] leafybas_: has joined #ruby
[16:47:14] adaedra: Immagine your program is a shopping cart, with items, and that your computer is the cahier.
[16:47:20] symm-: has joined #ruby
[16:47:22] asxbr: has joined #ruby
[16:47:35] adaedra: So your cahier will take your items, scan them one by one. It's executing your program.
[16:47:49] adaedra: In default mode, you have one queue, so only one cart is processable at the time.
[16:47:55] shevy: anyone happens to know if Tom Copeland is still using ruby?
[16:48:06] adaedra: Now, when you create a thread, you open another queue with another cahier.
[16:48:15] adaedra: So you can treat two carts.
[16:48:28] adaedra: Each one works independently.
[16:48:45] reset: has joined #ruby
[16:48:53] adaedra: Okay until there?
[16:49:31] ehth77: has joined #ruby
[16:49:49] petricore: has joined #ruby
[16:50:18] adaedra: So in your case, you open 10 lanes.
[16:50:35] pruby: 10 carts?
[16:50:43] adaedra: And feed them 10 carts, yes.
[16:51:05] pruby: and they're all served concurrently?
[16:51:28] mxrguspxrt: has joined #ruby
[16:51:42] adaedra: Working on each cart is done independently from other carts, like in real life
[16:51:52] spidermario: has joined #ruby
[16:52:19] funkenstrahlen: hey, someone here with experience in oauth2? I am stuck here: https://github.com/kylejginavan/youtube_it/issues/253
[16:52:33] pruby: can you try adding :mycount into the analogy if possible?
[16:52:47] ehth77: http://zedshaw.com/2015/09/28/taking-down-tim-hentenaar/
[16:52:51] zotherstupidguy: has joined #ruby
[16:53:18] adaedra: pruby: you're ok there?
[16:53:42] paulcsmith: has joined #ruby
[16:53:57] Jackneill: has joined #ruby
[16:53:59] pruby: adaedra: Okay until now yes but this part "threads.each {|t| t.join; print t[:mycount], ", " }"
[16:54:11] momomomomo: has joined #ruby
[16:54:14] pruby: adaedra: don't get that part.
[16:54:32] Rollabunna: has joined #ruby
[16:54:51] DanielI: has joined #ruby
[16:54:58] adaedra: That's the manager office. The manager come this morning and opened the lanes for the cashiers. Now, it waits for work to be done to close them, in order.
[16:55:13] ledestin: has joined #ruby
[16:55:55] adaedra: So, lane by lane, it waits for carts to be processed, then close the lane. Beginning by the lane 1, even if another lane close before.
[16:56:22] InternetFriend: has joined #ruby
[16:57:21] moeabdol: has joined #ruby
[16:57:32] pruby: When we call t.join, we wait until that thread finishes running and then we run print t[:mycount] ?
[16:57:43] NeverDie: has joined #ruby
[16:57:57] adaedra: I have a thing to re-read, I come back to you in a sec for the local storage
[16:58:05] EminenceHC: has joined #ruby
[16:58:17] pruby: adaedra: All right.
[16:58:40] niftylettuce: has joined #ruby
[16:59:25] InternetFriend: has joined #ruby
[16:59:30] _djbkd: has joined #ruby
[16:59:46] skullcrasher_: has joined #ruby
[16:59:55] Igorshp: has joined #ruby
[17:00:17] saddad: has joined #ruby
[17:00:21] fantazo: has joined #ruby
[17:01:51] DroidBur_: has joined #ruby
[17:02:00] wldcordeiro_: has joined #ruby
[17:03:22] pruby: adaedra: Do the threads start running as soon as we create the threads variable? in the example I showed?
[17:03:47] firstdayonthejob: has joined #ruby
[17:04:15] tenderlove: has joined #ruby
[17:04:23] mjuszczak: has joined #ruby
[17:04:37] xet7: has joined #ruby
[17:04:50] adaedra: they are created on after each other, and once all are created, they are saved into threads
[17:05:03] adaedra: so you have an array of Thread objects
[17:05:17] pruby: and they start running even before we call Thread#join on either one of em right?
[17:05:24] rgb-one: has joined #ruby
[17:05:28] pruby: Thread#join is just to ensure they get executed completely?
[17:05:32] adaedra: They start at the new
[17:05:44] adaedra: join is to "merge" them
[17:06:01] adaedra: so it waits until the thread is completed
[17:06:10] rgb-one: Given a text file with 10 lines of text, how can I create a MD5 hash for each line
[17:06:22] Musashi007: has joined #ruby
[17:06:29] adaedra: like the manager, waiting for the cart to be processed to close the lane, pruby
[17:06:43] adaedra: rgb-one: with which part of this problem do you need help?
[17:07:11] tejasmanohar: has joined #ruby
[17:07:28] rgb-one: adaedra: Creating the MD5 hash of each line of a text file
[17:07:50] adaedra: rgb-one: do you know how to create a md5 hash?
[17:07:54] pruby: adaera: Okay
[17:07:56] shevy: rgb-one just pass the string into a method that does it
[17:08:46] voltalio: has joined #ruby
[17:08:57] prater: has left #ruby: ("WeeChat 1.0.1")
[17:09:02] adaedra: pruby: Thread storage is like a little note block a cashier has with it. So when you do "Thread.current[:mycount] = count", it says "Write at page :mycount on the current cashier's note block the current value of count"
[17:09:12] rgb-one: >> require 'digest'; t = hello; Digest::MD5.hexdigest t
[17:09:14] ruboto: rgb-one # => undefined local variable or method `hello' for main:Object (NameError) ...check link for more (https://eval.in/440803)
[17:09:14] sjums: has left #ruby: ()
[17:09:25] rgb-one: >> require 'digest'; t = 'hello'; Digest::MD5.hexdigest t
[17:09:27] ruboto: rgb-one # => "5d41402abc4b2a76b9719d911017c592" (https://eval.in/440804)
[17:09:38] adaedra: Ok, so you need to process the file line by line
[17:09:43] pruby: adaedra: The cashier or the cart?
[17:10:02] adaedra: pruby: The cashier. Or the lane, whatever you identified the thread to be.
[17:10:06] rgb-one: adaedra: Indeed
[17:10:22] adaedra: &ri File#lines @rgb-one
[17:10:22] `derpy: rgb-one: http://www.rubydoc.info/stdlib/core/IO#lines-instance_method
[17:10:32] Cyther: has joined #ruby
[17:10:34] adaedra: should help you.
[17:10:52] pruby: adaedra: If I create 10 threads, I will have a total of 11 threads running as a full program since the main program is a thread itself right?
[17:11:30] adaedra: The main thread is the first thread, created at the start of the program. And remember that if the main thread dies, it kills all other threads at the same time.
[17:11:36] michaeldeol: has joined #ruby
[17:11:40] ericjphillips: has joined #ruby
[17:11:44] Igorshp: has joined #ruby
[17:11:53] adaedra: The worst case of manager, the one which kills all of its employees at the end of the day :(
[17:11:58] Gachr: has joined #ruby
[17:12:06] blackmesa: has joined #ruby
[17:12:20] Gachr: Hello everyone, how can I make UI inside terminal with Ruby?
[17:12:26] pruby: adaedra: Thread#join to the rescue!
[17:12:49] adaedra: so, still need help with something?
[17:12:51] parduse: has joined #ruby
[17:13:04] pruby: adaedra: No that was a great analogy. Thank you so much!
[17:13:12] adaedra: you're welcome.
[17:13:45] adaedra: (off to the train, now!)
[17:13:59] nsuke: has joined #ruby
[17:14:33] pruby: has left #ruby: ()
[17:14:39] codecop: has joined #ruby
[17:14:54] pragmatism: has joined #ruby
[17:15:17] dome22xl: has joined #ruby
[17:15:29] wldcordeiro_: has joined #ruby
[17:15:32] snockerton: has joined #ruby
[17:18:11] TomyLobo: has joined #ruby
[17:18:55] `tim`: has joined #ruby
[17:19:13] pragmatism: has joined #ruby
[17:20:44] slayerjain: has joined #ruby
[17:21:33] allomov: has joined #ruby
[17:22:23] prefixed: what's the syntax optionparser uses for input?
[17:22:41] slayerjain: has joined #ruby
[17:22:41] Hanmac: has joined #ruby
[17:22:41] pragmatism: has left #ruby: ()
[17:22:54] pragmatism: has joined #ruby
[17:23:35] paulcsmith: has joined #ruby
[17:24:17] Gachr: How can I do terminal interface with Ruby?
[17:24:28] casadei: has joined #ruby
[17:24:33] InternetFriend: has joined #ruby
[17:24:39] slayerjain: has joined #ruby
[17:25:32] Eiam_: has joined #ruby
[17:26:17] phutchins1: has joined #ruby
[17:26:47] darix: Gachr: ncurses/curses
[17:27:01] apeiros: > prefixed: YO BROS
[17:27:08] apeiros: are you trying to be an ass? o0
[17:27:36] shevy: he is revealed
[17:28:19] havenwood: has joined #ruby
[17:28:20] eam: I learned something new about ruby: ruby -e'Process.setrlimit Process::RLIMIT_NPROC, 0, 0; `echo hang forever`'
[17:28:34] lxsameer: has joined #ruby
[17:29:01] shevy: what are you doing again
[17:29:02] apeiros: NPROC controls how many processes it can spawn?
[17:29:17] nettoweb: has joined #ruby
[17:29:17] eam: yeah. You'd expect `` to fail, but what it actually does is loop forever
[17:29:28] prefixed: apeiros http://cdn.meme.am/instances/500x/24601121.jpg
[17:29:29] Kendos-Kenlen: has joined #ruby
[17:29:30] eam: it's ... not the behavior I'd expect
[17:29:32] apeiros: indeed, an exception is what I'd expect too
[17:29:49] postmodern: has joined #ruby
[17:29:53] apeiros: !kick prefixed not acceptable
[17:29:54] ruboto: ruboto kicked prefixed: acceptable
[17:29:54] ruboto: -o ruboto
[17:29:54] prefixed: has joined #ruby
[17:30:02] eam: gonna see if a PR gets accepted on this
[17:30:04] shevy: I was too scared to click on the link!
[17:30:11] dionysus69: has joined #ruby
[17:30:12] prefixed: has left #ruby: ()
[17:30:29] slayerjain: has joined #ruby
[17:30:54] asxbr: has joined #ruby
[17:30:57] eam: I discovered the (what I'd call a bug) via some other unrelated issue causing the subprocess spawn to fail
[17:31:15] eam: it's general to anything that does a fork() I believe
[17:31:38] snockerton: has joined #ruby
[17:31:42] ghostlines: has joined #ruby
[17:31:48] eam: https://github.com/ruby/ruby/blob/trunk/process.c#L3604
[17:32:10] apeiros: that's the loop it's stuck in I assume?
[17:32:21] eam: yeah, and here's the handling of errors: https://github.com/ruby/ruby/blob/trunk/process.c#L3238
[17:32:42] to_json: has joined #ruby
[17:32:51] jdawgaz: has joined #ruby
[17:33:06] eam: I think the interpretation of EAGAIN was taken a bit too literally
[17:33:17] eam: it doesn't actually mean you should blindly try the call again
[17:33:30] seabasshunter: has joined #ruby
[17:33:35] apeiros: ACTION doesn't know enough C for this :(
[17:33:50] apeiros: your explanation makes sense to me
[17:34:39] Cyther: has joined #ruby
[17:35:54] Cyther: has joined #ruby
[17:37:33] seabasshunter: can anyone advise how to test a method on an object that initializes with an http request? I tried using webmock to stub out the request but I must've been doing it wrong because I can't make use any class methods without the instantiating in rspec under webmock (blocking http requests and all)
[17:37:48] samuelkadolph: has joined #ruby
[17:38:01] iateadonut: has left #ruby: ()
[17:38:14] rgb-one: has joined #ruby
[17:38:17] seabasshunter: or maybe i've designed the class wrong. I'm wrapping a very simple api.
[17:39:45] drbrain: eam: strace says you're stuck in an EAGAIN loop
[17:39:53] skade: has joined #ruby
[17:39:55] samuelkadolph: has joined #ruby
[17:40:45] eam: drbrain: right
[17:40:46] samuelkadolph: has joined #ruby
[17:40:58] tvw: has joined #ruby
[17:41:12] eam: what's happening is fork() returns EAGAIN (as expected - we limited to disallow additional processes)
[17:41:35] eam: what's unexpected is that ruby's fork is implemented with an infinite retry loop instead of raising on error
[17:41:42] drbrain: ACTION nods
[17:42:05] slayerja_: has joined #ruby
[17:42:24] eam: the ENOMEM case is similarly worrisome I think; it's *possible* that running the gc will free memory to allow a fork -- but probably unlikely in the general case
[17:42:47] eam: the whole clamping down on NPROC is just a synthetic way to hit this codepath
[17:43:01] drbrain: I'd have to poke at rb_gc, but I think that can raise NoMemoryError
[17:43:44] funkenstrahlen: hey, someone here with experience in oauth2? I am stuck here: https://github.com/kylejginavan/youtube_it/issues/253
[17:44:13] eam: possibly - the problem is, let's say you have a 10M ruby and it has no objects to free -- and some unrelated stuff is using all your memory. You probably want fork() to raise (ENOMEM, can't allocate another 10M) and not try to re-fork/re-gc in a tight loop
[17:44:14] samuelkadolph: has joined #ruby
[17:44:29] atin_: has joined #ruby
[17:44:29] eam: likely it's not ruby itself that created the situation where fork won't work
[17:44:38] platzhirsch: has left #ruby: ()
[17:44:55] eam: rb_gc wouldn't raise in that case (hey, nothing to free, no problem)
[17:45:20] dasher00: has joined #ruby
[17:45:32] Cyther_: has joined #ruby
[17:45:46] greymeister: has joined #ruby
[17:46:28] dasher00: has joined #ruby
[17:47:25] dasher00: has joined #ruby
[17:47:35] casadei: has joined #ruby
[17:47:47] shevy: report! https://bugs.ruby-lang.org/projects/ruby-trunk/issues?set_filter=1&tracker_id=1
[17:48:03] eam: well yeah, but lemmie make a PR first
[17:48:13] varunwachaspati: has joined #ruby
[17:48:18] dasher00: has joined #ruby
[17:48:27] banjara: has joined #ruby
[17:48:47] banjara: has joined #ruby
[17:49:05] dasher00: has joined #ruby
[17:49:05] rgb-one: has joined #ruby
[17:49:29] ruurd: has joined #ruby
[17:49:57] dasher00: has joined #ruby
[17:50:51] dasher00: has joined #ruby
[17:51:20] dasher00: has joined #ruby
[17:51:48] blackmesa: has joined #ruby
[17:52:27] devoldmx: has joined #ruby
[17:52:34] Blizzy: has joined #ruby
[17:52:39] dasher00: has joined #ruby
[17:53:14] arooni: has joined #ruby
[17:53:38] poguez_: has joined #ruby
[17:54:52] slayerjain: has joined #ruby
[17:54:52] Kendos-Kenlen: has joined #ruby
[17:54:57] porfa: has joined #ruby
[17:55:19] kalusn: has joined #ruby
[17:55:58] porfa: how can i add a string to each loop result???? for i.e.: ARRAY.split(',').each do puts end
[17:56:23] porfa: ok this prints the results, but i want to print <li> before each and </li> after each
[17:57:05] shevy: simply add it?
[17:57:32] southpawlar: has joined #ruby
[17:57:40] jobewan: has joined #ruby
[17:57:47] EminenceHC: has joined #ruby
[17:57:50] shevy: you print your string via print so change the string the way you want to have it :) at worst you can do: print '<li>',line,'</li>'
[17:57:54] baweaver: has joined #ruby
[17:58:55] havenwood: has joined #ruby
[17:59:58] dfockler: has joined #ruby
[18:00:46] pipework: String interpolation?
[18:02:31] jud: has joined #ruby
[18:02:32] jud: has joined #ruby
[18:02:37] slayerja_: has joined #ruby
[18:03:22] InternetFriend: has joined #ruby
[18:04:17] skweek: has joined #ruby
[18:04:28] _djbkd: has joined #ruby
[18:04:50] shevy: I am sure Porfa will tackle his problem skillfully
[18:05:00] porfa: hahah yeah
[18:05:05] porfa: I'm already on it, thank you for the tip lol
[18:05:22] eam: did some digging on `` behavior, I wonder if this is inherited from perl (it loops forever on EAGAIN). Python raises OSError:
[18:05:38] dfockler: is there a way to skip the first element in an each loop?
[18:05:45] porfa: just wondering why when i put that loop into a variable, my var output is still an array and not a string as i want
[18:06:15] dfockler: ahh #drop nvm
[18:07:05] porfa: or, wondering how i can put the loop output into a string
[18:07:16] `tim`: has joined #ruby
[18:08:29] slayerjain: has joined #ruby
[18:10:09] apt-get: has joined #ruby
[18:11:42] krisquigley: has joined #ruby
[18:12:42] ehth77: https://medium.com/@jay_zo/the-one-secret-thing-all-successful-people-do-872c375b552f
[18:12:54] _djbkd: has joined #ruby
[18:13:23] _djbkd: has joined #ruby
[18:13:25] porfa: why I'm i getting the goddamn old results as if there's no damn loop going on
[18:14:10] ledestin: has joined #ruby
[18:14:52] redondo: has joined #ruby
[18:15:02] cassioscabral: has joined #ruby
[18:15:13] A124: Actually the comments are better then the post.
[18:15:14] InternetFriend: has joined #ruby
[18:17:16] baweaver: has joined #ruby
[18:18:00] tomphp: has joined #ruby
[18:18:55] slayerja_: has joined #ruby
[18:19:20] _djbkd: has joined #ruby
[18:19:37] ericjphillips: has joined #ruby
[18:19:40] nettoweb: has joined #ruby
[18:19:50] _djbkd: has joined #ruby
[18:20:02] shevy: Porfa show the code you have on a pastie
[18:20:07] NeverDie: has joined #ruby
[18:21:03] blackjid: has joined #ruby
[18:22:05] tubbo: ehth77: love it
[18:22:25] ehth77: tubbo: nice b8. xP
[18:22:41] tubbo: i got this one neat trick
[18:22:56] tubbo: make u a bullionaire
[18:22:57] porfa: shevy: its just 2 lines
[18:22:58] porfa: ALQDET= "2 Posi????es,5 Pe??as,Sem fio,Tampa de p??,Tampa transparente,Tipo de bateria AA,Pilha n??o inclu??da"
[18:22:58] porfa: BULLET = ALQDET.split(',').each do |detalhe| print '<li>',detalhe,'</li>' end
[18:23:37] porfa: it prints <li>2 Posi????es</li> ??? wtv.. but when i call "BULLET" it prints ALQDET
[18:23:39] yfeldblum: has joined #ruby
[18:23:48] SenpaiSilver: has joined #ruby
[18:23:48] pruby: has joined #ruby
[18:24:19] shevy: yeah the output was already printed before
[18:24:25] momomomomo: has joined #ruby
[18:24:59] shevy: BULLET = ALQDET.split(',').map {|line| '<li>'+line+'</li>' }
[18:25:01] Ademan2: has joined #ruby
[18:25:21] porfa: where can i read about "map" ? what is "map" ?
[18:25:26] southpawlar: has joined #ruby
[18:25:30] porfa: it looks very intresting
[18:26:00] shevy: http://ruby-doc.org/core-2.2.3/Enumerable.html#method-i-map
[18:26:17] porfa: thank you shevy
[18:26:26] swgillespie: has joined #ruby
[18:26:55] Joufflu: what does the "idx" mean on this: http://stackoverflow.com/questions/28891369/capitalizing-words-in-an-array-ruby
[18:27:07] apeiros: usually index
[18:27:22] Joufflu: makes sense...hmmm
[18:28:04] Ademan2: this is a dumb question, but I'm not familiar with ruby. I'm trying to help a friend with some homework. one piece of the given code is @httpd_hash['ScriptAlias'[path]] path will always be something like "/foo/" so how is this not equivalent to @httpd_hash[nil] ?
[18:28:57] shevy: >> 'ScriptAlias'[/foo/]
[18:28:58] ruboto: shevy # => nil (https://eval.in/440905)
[18:29:03] shevy: there we go!
[18:30:32] greymeister_: has joined #ruby
[18:31:31] Ademan2: well that matches what I expected, but the code is supposed to retrieve a piece of data. as you might expect, always using nil as the key is not desired behavior, but that's part of the given code (AFAIK it is supposed to remain unmodified)
[18:32:15] reset: has joined #ruby
[18:32:25] shevy: yeah you got a sure nil there
[18:33:44] to_json: is the class 'Metaprogramming Ruby'? You could override [] on string
[18:34:07] evanjs: has joined #ruby
[18:34:52] Ademan2: *shrug* at least it's not my homework. .. I almost wonder if this is just a bug. they were given some code, and a big 'ol test suite, but it's not super thorough
[18:35:02] Coldblackice: has joined #ruby
[18:35:17] momomomomo: has joined #ruby
[18:36:08] Ademan2: to_json: no it's some web class, they're actually writing an http server which is kind of neat
[18:36:42] adaedra: I'm back \o/
[18:36:45] kirun: has joined #ruby
[18:36:46] to_json: yeah asking the student then to determine that they should do something insane like that would be realllllyy shitty homework design
[18:37:35] wldcordeiro_: has joined #ruby
[18:37:57] to_json: academia is so awkward. if that was job interview homework what I'd be looking for is for the prospect to write me a bug report
[18:38:01] slayerjain: has joined #ruby
[18:38:11] _djbkd: has joined #ruby
[18:38:12] Cyther: has joined #ruby
[18:38:22] to_json: but they might actually expect the student to Do What They Mean
[18:38:23] snockerton: has joined #ruby
[18:39:09] kurzweil: has joined #ruby
[18:39:13] _djbkd: has joined #ruby
[18:39:26] Ademan2: yeah part of the problem may be that I'm getting things second hand through someone in way over their head. the cs department here has failed him utterly
[18:39:38] Brando753: has joined #ruby
[18:39:44] pruby: adaedra: Welcome back. Hey, I was wondering...why is the output random in https://eval.in/440913 if the first thread is joined first? :p
[18:39:59] soloone: has joined #ruby
[18:40:10] adaedra: pruby: well, how does each thread takes a number?
[18:40:29] chouhoulis: has joined #ruby
[18:40:37] rushed: has joined #ruby
[18:41:06] pruby: adaedra: I mean when we do threads.each { |thread| thread.join } the first thread is joined first so the output should always be "Thread 1" then "Thread 2" ?
[18:41:31] adaedra: Is the number you output the number of the thread?
[18:41:37] chouhoul_: has joined #ruby
[18:41:43] pruby: adaedra: Yeah.
[18:41:50] codenapper: has joined #ruby
[18:42:29] Ademan2: anywho thanks folks
[18:42:36] pruby: The output is "Thread 1" then "Thread 2" sometimes and sometimes it's "Thread 2" then "Thread 1"
[18:42:39] adaedra: you changed code, my bad
[18:42:49] nofxx: pruby, it's not syncronous
[18:43:18] nofxx: there's no way to know which will end first, supposing the same code is running
[18:43:21] pruby: but we're joining the first thread first? The main thread should wait for the first thread to be completed first?
[18:43:52] adaedra: pruby: processor may not treat the code you give to it in the order with threads.
[18:44:00] dasher00: has joined #ruby
[18:44:18] finisherr: has joined #ruby
[18:44:20] adaedra: so it is possible that the code from the second thread get picked up by the processor before the first.
[18:44:27] saddad: has joined #ruby
[18:44:29] pipework: pruby: If I'm understanding you correctly, you'll have the main thread wait until the first completes, yes.
[18:44:34] ytti: has joined #ruby
[18:44:41] pipework: Though the others after the first thread might be complete.
[18:44:41] adaedra: remember, code execution starts when you create the thread, not join it.
[18:45:10] x-wing: has joined #ruby
[18:45:37] dasher00: has joined #ruby
[18:46:32] agent_white: has joined #ruby
[18:46:34] southpawlar: has joined #ruby
[18:47:29] tomphp: has joined #ruby
[18:47:58] Xeago: has joined #ruby
[18:48:14] DoubleMalt: has joined #ruby
[18:48:35] pruby: Okay say we have two threads. Both downloading a file from the internet. What exactly happens when we call first_thread.join and then we call second_thread.join immediately afterwards?
[18:48:59] adaedra: the first call will wait for first_thread to terminate.
[18:49:04] pipework: It waits for the first thread to join.
[18:49:12] adaedra: then, the second call, will wait for the second thread.
[18:49:13] pipework: Then after it does, it waits for the next thread to join.
[18:49:25] jhass: however both threads are running in parallel
[18:49:46] pipework: Read the docs for Thread#join
[18:49:47] jhass: the second thread might even finish while you wait on the first one and the join on the second thread will be a noop
[18:49:51] pruby: so when we join the first thread, the second file is also being downloading without me having to join it?
[18:49:54] pipework: jhass: As parallel as it can, yeah.
[18:50:06] pipework: pruby: If that code is running in that thread, yes.
[18:50:08] jhass: pipework: download sounds quite IOish, so even in ruby ;)
[18:50:20] kadoppe: has joined #ruby
[18:50:20] pipework: jhass: Really depends on the implementation, but I get you.
[18:50:24] mallu: has joined #ruby
[18:50:54] jhass: pruby: yes, though it might be aborted if it isn't finished when the main thread exits
[18:51:08] Xeago: has joined #ruby
[18:51:09] jhass: that's why you join, to keep the main thread alive while the other threads run
[18:51:17] mallu: I know I can compare two arrays with - operator. Is it possible to display only the difference if both arrays are not same?
[18:51:29] jhass: (or to wait for them to finish/wait for their results)
[18:51:35] adaedra: pruby: the code in the thread you create is running (well, available for the processor to pick up, actually) as soon as you create it.
[18:52:07] jhass: mallu: r = a - b; puts r unless r.empty? # use better variable names fitting your domain
[18:52:31] mallu: ok.. let me try that
[18:52:43] nettoweb: has joined #ruby
[18:52:48] jhass: mallu: that if b is a superset of a, r will be empty too
[18:52:51] jhass: *note that
[18:53:08] pruby: When I iterate over some threads and join, does the main thread get blocked each time Thread#join is called on a thread?
[18:53:18] adaedra: pruby: please note that my earlier analogy was kinda idealized.
[18:53:25] jhass: pruby: each time the thread you join is still alive
[18:53:34] adaedra: pruby: yes, unless the thread already finished its job.
[18:54:53] adaedra: a thread may finish early; through it still needs to be joined to the parent thread to be truly ended.
[18:55:17] jackjackdripper: has joined #ruby
[18:55:21] pruby: Is there any ruby-specific guide on threads that I can use? I am reading Programming Ruby and the bit on threads feels a bit too complicated for me...
[18:55:25] Rollabunna: has joined #ruby
[18:56:19] jhass: pruby: maybe skip the topic until you truly need it
[18:56:27] jhass: it massively helps to have a concrete problem to solve
[18:56:38] pipework: pruby: http://www.jstorimer.com/products/working-with-ruby-threads
[18:56:43] pipework: If you're just curious.
[18:57:01] pipework: I've read all of jstorimer's books so far.
[18:58:01] Polysics: has joined #ruby
[18:58:24] NeverDie: has joined #ruby
[18:58:28] n008f4g_: has joined #ruby
[18:58:56] skade: has joined #ruby
[18:59:27] slayerjain: has joined #ruby
[19:00:22] pruby_: has joined #ruby
[19:00:30] pruby_: Are threads used in Rails?
[19:01:28] orangeappled: has joined #ruby
[19:01:50] shevy: grep through it man
[19:01:52] shevy: grep -r Thread
[19:02:01] shevy: or search via google
[19:02:33] jhass: pruby_: I believe not directly, but there are several application servers that use threads as well as background job systems and similar things
[19:02:37] shevy: https://bibwild.wordpress.com/2014/07/17/activerecord-concurrency-in-rails4-avoid-leaked-connections/
[19:02:42] Papierkorb: shevy: the_silver_searcher's ag tool to the rescue!
[19:04:04] yqt: has joined #ruby
[19:04:10] bb010g: has joined #ruby
[19:04:17] parduse: has joined #ruby
[19:04:33] pruby_: jhass: So if I want to get into rails-dev, is there an immediate need for me to know about em?
[19:04:45] droidburgundy: has joined #ruby
[19:04:49] momomomomo: has joined #ruby
[19:05:22] Papierkorb: nofxx: "So I have this grep line. it's pretty fast, look, it searches this projects' 50k lines in only 2 seconds!" *me typing the same query but using ag* took less than a second "Uh how was that package called again?"
[19:05:50] pruby_: has left #ruby: ()
[19:06:27] but3k4_: has joined #ruby
[19:06:43] eam: Papierkorb: on OSX?
[19:06:54] Papierkorb: eam: Thank god no.
[19:06:58] eam: OSX grep is super slow - gnu grep is on par with ag
[19:07:12] tomphp: has joined #ruby
[19:07:22] Papierkorb: eam: your drive must be super slow
[19:07:27] Papierkorb: it's magnitudes faster
[19:07:39] jschmid: has joined #ruby
[19:07:40] Papierkorb: let alone for the better output formatting it's worth using
[19:07:45] moeabdol: has joined #ruby
[19:08:16] eam: it's magnitudes faster than BSD grep
[19:08:30] eam: (like, one)
[19:09:11] eam: Papierkorb: if my drive was slow, the difference would be more pronounced -- not less :)
[19:09:13] eam: I tested on an SSD fwiw
[19:09:40] Papierkorb: Same here. much faster on every project I ever used it in. Always on fast SSDs
[19:09:50] Papierkorb: Who still dev's on HDDs anyway?
[19:09:58] eam: ag and gnu grep should roughly have the same behavior anyway
[19:10:14] eam: this is in an optimal case, of course. BSD grep will beat both in corner cases
[19:10:51] MyMind: has joined #ruby
[19:11:05] eam: (because ag and gnu grep both make tradeoffs to slightly increase the common case at great expense to corner cases)
[19:11:46] RegulationD: has joined #ruby
[19:12:10] naftilos76: has joined #ruby
[19:12:26] marens_: has joined #ruby
[19:13:19] aibot: has joined #ruby
[19:13:53] twohlix: has joined #ruby
[19:14:17] nopc0de: has joined #ruby
[19:14:20] Fraeon: has joined #ruby
[19:14:23] twohlix: has joined #ruby
[19:14:52] jsrn: has joined #ruby
[19:14:55] twohlix: has joined #ruby
[19:15:12] Hanmac: has joined #ruby
[19:15:48] drptbl: has joined #ruby
[19:16:03] j416: has joined #ruby
[19:17:03] lele: has joined #ruby
[19:17:45] Maletor: has joined #ruby
[19:19:46] snapcase: has joined #ruby
[19:20:05] pushpak: has joined #ruby
[19:22:03] lkba: has joined #ruby
[19:22:36] p0wn3d: has joined #ruby
[19:24:22] podman: has joined #ruby
[19:25:32] jackjackdripper: has joined #ruby
[19:25:49] tw1sted: has joined #ruby
[19:25:52] stamina: has joined #ruby
[19:26:51] mjuszczak: has joined #ruby
[19:27:07] JoshL: Is there a better / faster / more idiomatic way to bisect an array of objects than this: https://gist.github.com/jlindsey/0d0f298d9e76f9b80a17
[19:27:36] mjuszczak: has joined #ruby
[19:30:13] skade: has joined #ruby
[19:31:19] drbrain: JoshL: Array#partition
[19:31:23] ruurd: has joined #ruby
[19:31:29] drbrain: if you have more than two categories, #group_by
[19:32:09] rodfersou: has joined #ruby
[19:32:24] JoshL: drbrain: Ah, thanks. I was looking at the Array class docs instead of the Enumerable docs
[19:33:17] shadoi: has joined #ruby
[19:33:40] tw1sted: has joined #ruby
[19:34:54] momomomomo: has joined #ruby
[19:37:50] piotrj: has joined #ruby
[19:40:01] tw1sted: has joined #ruby
[19:40:50] Uranio-235: has joined #ruby
[19:45:25] howdoi: has joined #ruby
[19:45:54] unreal_: has joined #ruby
[19:45:59] iamninja_: has joined #ruby
[19:46:22] gustav__: has joined #ruby
[19:46:28] momomomomo: has joined #ruby
[19:48:53] InternetFriend: has joined #ruby
[19:49:24] pardusf: has joined #ruby
[19:50:05] k3asd`: has joined #ruby
[19:50:16] cassioscabral: has joined #ruby
[19:52:25] apt-get: has joined #ruby
[19:53:24] sagittarian|2: has joined #ruby
[19:53:46] BTRE: has joined #ruby
[19:56:09] Eiam_: has joined #ruby
[19:58:22] nofxx: has joined #ruby
[19:58:44] tvw: has joined #ruby
[19:59:35] _djbkd: has joined #ruby
[20:01:23] baweaver: has joined #ruby
[20:02:08] rickmasta: has joined #ruby
[20:02:18] firstdayonthejob: has joined #ruby
[20:03:22] dome22xl: has joined #ruby
[20:03:57] pawnbox: has joined #ruby
[20:04:14] symm-: has joined #ruby
[20:04:38] chipotle: has joined #ruby
[20:04:52] aaeron: has joined #ruby
[20:05:21] jschmid: has joined #ruby
[20:05:35] DanielI: has joined #ruby
[20:07:06] dirtyonekanobi: has joined #ruby
[20:07:10] rickmasta: has joined #ruby
[20:07:25] Gachr: has left #ruby: ("Leaving")
[20:09:45] jcromartie: has joined #ruby
[20:10:34] jcromartie: has joined #ruby
[20:11:05] gustav__: has joined #ruby
[20:11:26] gustav__: has joined #ruby
[20:11:38] immucahit: has joined #ruby
[20:12:39] krisquigley: has joined #ruby
[20:13:35] fmcgeough: has joined #ruby
[20:13:57] fastAndSlow: has joined #ruby
[20:15:33] dravine: has joined #ruby
[20:15:38] _djbkd: has joined #ruby
[20:16:12] karapetyan: has joined #ruby
[20:17:21] Limix: has joined #ruby
[20:18:37] ItSANgo: has joined #ruby
[20:22:40] IceyEC: has joined #ruby
[20:22:42] emmesswhy: has joined #ruby
[20:23:36] porfa: has joined #ruby
[20:23:37] bakedb: has joined #ruby
[20:23:44] IceyEC: has joined #ruby
[20:24:49] skade: has joined #ruby
[20:25:28] InternetFriend: has joined #ruby
[20:25:50] EminenceHC: has joined #ruby
[20:26:08] otacon-: has joined #ruby
[20:26:32] bklane: has joined #ruby
[20:26:59] nofxx: has joined #ruby
[20:26:59] nofxx: has joined #ruby
[20:30:29] iceyec_: has joined #ruby
[20:32:01] opensource_ninja: has joined #ruby
[20:32:15] ericjphillips: has joined #ruby
[20:37:07] skade: has joined #ruby
[20:38:24] solocshaw: has joined #ruby
[20:38:35] fastAndSlow: has joined #ruby
[20:39:21] baweaver: has joined #ruby
[20:41:49] banjara: has joined #ruby
[20:42:07] sagittarian|2: has joined #ruby
[20:45:04] VeryBewitching: has joined #ruby
[20:46:36] dorei: is there some fast/magic way to convert an object into json?
[20:47:11] Authenticator: A Hash, yes. Otherwise, no because that's pretty broad.
[20:47:17] bruno-: has joined #ruby
[20:47:18] ivanskie: has joined #ruby
[20:47:51] dorei: is there a fast/magic way to produce a hash from an objects ivars? ivars name will be the keys and ivars values will be the values
[20:47:57] yfeldblum: has joined #ruby
[20:48:57] darix: dorei: provide a .to_hash method for your class
[20:49:34] dorei: yes, a #to_h but i dont want to type all those ivars names
[20:49:46] ItSANgo: has joined #ruby
[20:51:27] jcromartie: has joined #ruby
[20:51:34] NeverDie: has joined #ruby
[20:51:50] cassioscabral: has joined #ruby
[20:52:40] Authenticator: dorei: x.instance_variables.map {|n| [n,x.instance_variable_get(n)] }
[20:52:57] Authenticator: or better: def x.to_hash ; instance_variables.map {|n| [n, instance_variable_get(n)] } ; end
[20:53:27] ruurd: has joined #ruby
[20:53:46] dorei: i see, thanx a lot :)
[20:54:21] odigity2: has joined #ruby
[20:54:37] VeryBewitching: dorei: After that, you can require 'json' and add: def to_json; to_hash.to_json; end
[20:55:04] odigity2: Is there a way to enable IRB history in ruby code rather than via ~/.irbrc? I'm using Docker, and it's not convenient to recreate ~/.irbrc every time I create a container.
[20:55:05] VeryBewitching: Instead of calling x.to_hash.to_json
[20:55:59] dorei: VeryBewitching: i think .to_json automatically calls to_h if it exists
[20:56:17] jenrzzz: has joined #ruby
[20:56:20] Rollabunna: has joined #ruby
[20:57:29] wildlander: has joined #ruby
[20:57:36] but3k4: has joined #ruby
[20:58:06] NeverDie: has joined #ruby
[20:58:29] VeryBewitching: For a test class with to_h defined, I get "\"#<Test:0x007f7b83061a48>\""
[20:58:32] jhass: VeryBewitching: dorei define as_json and return a hash though, not to_json
[20:59:17] jhass: mmh, or was that rails magic?
[20:59:37] EminenceHC: has joined #ruby
[20:59:52] VeryBewitching: jhass: I don't know, I hadn't ever done it without Rails, I had to Google for plain Ruby solution ;)
[20:59:53] jhass: meh, looks like it, how annoying
[21:02:00] krisquigley: has joined #ruby
[21:02:27] Xeago: has joined #ruby
[21:03:51] Maletor: has joined #ruby
[21:04:30] k3asd`: has joined #ruby
[21:05:02] sepp2k: has joined #ruby
[21:05:30] renderful: has joined #ruby
[21:07:14] EminenceHC: has joined #ruby
[21:08:38] pheuko: has joined #ruby
[21:09:44] TTilus: odigity2: why not build an image which has ~/.irbrc? (base on the image you are using now and only add that .irbrc)
[21:12:14] Polysics: has joined #ruby
[21:13:01] Sperant: has joined #ruby
[21:13:22] Polysics: has joined #ruby
[21:14:13] Mia: has joined #ruby
[21:14:14] Mia: has joined #ruby
[21:14:26] bklane: has joined #ruby
[21:16:10] drewvanstone: has joined #ruby
[21:17:59] odigity2: TTilus, I thought of that, but that seems like a pain just to get one little file in, and I'd have to upload it to a registry if there are other developers on the project.
[21:18:42] odigity2: TTilus, lastly, this is not a file that's needed in production. I ended up solving the problem by having my bin/console script generate the .irbrc file if it's not already there. (I only use bin/console for dev, so the file will never get created in production)
[21:18:57] Polysics: has joined #ruby
[21:19:38] skade: has joined #ruby
[21:19:41] FernandoBasso: has joined #ruby
[21:20:10] leafybasil: has joined #ruby
[21:22:00] DanielI: has joined #ruby
[21:22:11] mary5030: has joined #ruby
[21:23:14] havenwood: has joined #ruby
[21:23:38] Swappticon: has joined #ruby
[21:23:40] banjara: has joined #ruby
[21:24:57] DanielI: has joined #ruby
[21:24:58] dasher00: has joined #ruby
[21:25:58] dasher00: has joined #ruby
[21:26:11] immucahit: has joined #ruby
[21:26:19] icole: has joined #ruby
[21:28:12] mjuszczak: has joined #ruby
[21:28:39] Gustavo: has joined #ruby
[21:29:11] kiper: has joined #ruby
[21:30:01] charliesome: has joined #ruby
[21:31:08] roxtrongo: has joined #ruby
[21:31:24] sepp2k1: has joined #ruby
[21:32:13] iamninja_: has joined #ruby
[21:32:47] mjuszczak: has joined #ruby
[21:33:08] workmad3_: has joined #ruby
[21:34:14] nofxx: Papierkorb, raid 0 ssd here, ag is way faster. linux grep*
[21:34:28] sagittarian|2: has joined #ruby
[21:35:42] to_json: has joined #ruby
[21:36:21] banjara: has joined #ruby
[21:36:23] mjuszczak: has joined #ruby
[21:37:06] Eiam_: has joined #ruby
[21:39:00] dravine: has joined #ruby
[21:42:15] havenwood: has joined #ruby
[21:42:34] Xeago: has joined #ruby
[21:42:44] yqt: has joined #ruby
[21:42:55] baweaver: has joined #ruby
[21:43:49] charliesome: has joined #ruby
[21:44:59] phutchins1: has joined #ruby
[21:45:21] deavid: has joined #ruby
[21:45:26] Polysics: has joined #ruby
[21:45:31] bkulbida: has joined #ruby
[21:46:37] pwnd_nfsw: has joined #ruby
[21:47:01] jamesaxl: has joined #ruby
[21:48:53] tomchapin: has joined #ruby
[21:49:53] Alayde_: has joined #ruby
[21:51:14] dmolina: has joined #ruby
[21:51:26] closer: has joined #ruby
[21:51:53] DanielI: has joined #ruby
[21:51:59] dfockler: has joined #ruby
[21:53:14] banjara: has joined #ruby
[21:53:32] porfa: has joined #ruby
[21:53:55] devoldmx: has joined #ruby
[21:54:14] Paradox: has joined #ruby
[21:54:33] greymeister: has joined #ruby
[21:55:53] havenwood: has joined #ruby
[21:57:07] snockerton1: has joined #ruby
[21:58:07] Tuxero: has joined #ruby
[22:00:20] ramfjord: has joined #ruby
[22:02:20] circ-user-HSXxm: has joined #ruby
[22:02:43] ramfjord: Maybe someone on here has dealt with CSV's and knows the answer to this - it's been bothering me for a while. I'm initializing a CSV with CSV.new(file, headers: :first_row, return_headers: false)
[22:02:56] ramfjord: despite the return_headers: false, I still have to call csv.shift once to load the headers
[22:03:31] ramfjord: I've looked all over this documentation (http://ruby-doc.org/stdlib-2.2.2/libdoc/csv/rdoc/CSV.html#method-c-new) and it says
[22:03:47] ramfjord: :return_headers
[22:03:49] ramfjord: When false, header rows are silently swallowed. If set to true, header rows are returned in a CSV::Row object with identical headers and fields (save that the fields do not go through the converters).
[22:04:09] ramfjord: it's not a big deal, but a constant minor source of irritation
[22:04:13] duddik: has joined #ruby
[22:04:26] ramfjord: using ruby 2.2.2 standard CSV library
[22:04:43] Scripore: has joined #ruby
[22:04:44] doddok: has joined #ruby
[22:04:44] Joufflu: noob question: if n < 0 return nil #Question: What does the "nil" mean? is it the same as null ?
[22:04:55] ramfjord: joufflu: yes
[22:05:07] Joufflu: ramfjord, k thanks
[22:05:26] ramfjord: though this is ruby, so it is technically an object
[22:05:42] S_Walker: has joined #ruby
[22:06:07] Zackio: has joined #ruby
[22:06:27] VeryBewitching: has joined #ruby
[22:09:34] pwnd_nfsw: has joined #ruby
[22:16:27] unreal: has joined #ruby
[22:22:29] EminenceHC: has joined #ruby
[22:24:52] jenrzzz: has joined #ruby
[22:25:45] dirtyonekanobi: has joined #ruby
[22:26:21] rbennacer: has joined #ruby
[22:27:16] Azure: has joined #ruby
[22:28:32] baweaver: has joined #ruby
[22:29:20] nettoweb: has joined #ruby
[22:29:23] Gustavo: has joined #ruby
[22:31:29] shevy: it has awesome methods
[22:31:31] shevy: >> nil.nil?
[22:31:32] ruboto: shevy # => true (https://eval.in/440969)
[22:32:04] icole`: has joined #ruby
[22:32:59] workmad3_: has joined #ruby
[22:33:21] adaedra: >> def nil.nil?; false; end; nil.nil? # Where is your god now?
[22:33:22] ruboto: adaedra # => false (https://eval.in/440970)
[22:33:53] dravine_: has joined #ruby
[22:35:15] hooper1: has left #ruby: ()
[22:35:36] bmurt: has joined #ruby
[22:37:04] charliesome: has joined #ruby
[22:37:44] rbowlby: has joined #ruby
[22:44:21] Musashi007: has joined #ruby
[22:47:21] northfurr: has joined #ruby
[22:47:32] skade: has joined #ruby
[22:52:11] havenwood: has joined #ruby
[22:52:34] snockerton: has joined #ruby
[22:53:26] bklane: has joined #ruby
[22:53:54] sp3: has joined #ruby
[22:54:17] tcopeland: has joined #ruby
[22:54:22] NeverDie: has joined #ruby
[22:57:11] Rollabunna: has joined #ruby
[22:57:47] cassioscabral: has joined #ruby
[22:59:38] shadoi: has joined #ruby
[22:59:48] vdamewood: has joined #ruby
[23:01:08] bootstrappm: has joined #ruby
[23:01:15] Joufflu: noob question: def a(b), #how do you guys read that in plain English or a catchy way to remember it ?
[23:02:13] adaedra: Define a method a which takes one argument, b
[23:02:32] Joufflu: adeponte, thank you :)
[23:02:58] deject3d: has joined #ruby
[23:03:26] pwnd_nsfw: has joined #ruby
[23:03:29] adaedra: so close, yet so far away.
[23:05:11] nahtnam: has joined #ruby
[23:08:12] dome22xl: has joined #ruby
[23:09:54] InternetFriend: has joined #ruby
[23:12:14] Flying_Squirrel: has joined #ruby
[23:12:33] xet7: has joined #ruby
[23:12:38] charliesome: has joined #ruby
[23:14:27] northfurr: has joined #ruby
[23:15:03] sanjayu: has joined #ruby
[23:16:52] FrankD: has joined #ruby
[23:17:18] bruno-: has joined #ruby
[23:20:13] neanderslob: has joined #ruby
[23:20:48] jcromartie: has joined #ruby
[23:25:06] bklane: has joined #ruby
[23:26:15] millerti: has joined #ruby
[23:26:57] deject3d: has joined #ruby
[23:28:56] baweaver: has joined #ruby
[23:29:08] asxbr: has joined #ruby
[23:29:25] bigkevmcd: has joined #ruby
[23:30:11] Gustavo: has joined #ruby
[23:30:22] nettoweb: has joined #ruby
[23:30:43] p0wn3d: has joined #ruby
[23:31:47] EminenceHC: has joined #ruby
[23:34:32] JDiPierro: has joined #ruby
[23:35:37] quazimodo: has joined #ruby
[23:35:50] Azure: has joined #ruby
[23:35:56] tw1sted: has joined #ruby
[23:36:11] sagittarian|2: has joined #ruby
[23:36:27] bigbadbear: has joined #ruby
[23:36:37] ellisTAA: has joined #ruby
[23:39:25] tmtwd: has joined #ruby
[23:39:41] devoldmx: has joined #ruby
[23:41:10] pwnd_nsfw: has joined #ruby
[23:41:10] sdwrage: has joined #ruby
[23:42:16] Swappticon: has joined #ruby
[23:42:21] Ropeney: has joined #ruby
[23:44:10] bklane: has joined #ruby
[23:44:25] Eiam_: has joined #ruby
[23:47:24] rbennacer: has joined #ruby
[23:47:39] northfurr: has joined #ruby
[23:47:46] `tim`: has joined #ruby
[23:48:55] amoeba: has joined #ruby
[23:50:24] sagittarian|2: has joined #ruby
[23:52:25] northfurr: has joined #ruby
[23:54:05] nofxx: has joined #ruby
[23:54:05] nofxx: has joined #ruby
[23:55:26] Maletor: has joined #ruby
[23:56:03] moted: has joined #ruby
[23:57:43] benlieb: has joined #ruby
[23:59:48] iamninja_: has joined #ruby
[23:59:52] renderful: has joined #ruby