« Back to channel list

#ruby - 20 July 2015

« Back 1 day Forward 1 day »
[00:01:55] havenwood: has joined #ruby
[00:02:49] ziikutv: has joined #ruby
[00:03:29] sharpmachine: has joined #ruby
[00:03:38] ziikutv: Hello any Ruby windows users? I cannot install Jekyll, it is saying something about building. Can soneone help? I tried using devkit but I get nothing.. Says [INFO] Skipping existing gem override for 'C:/Ruby22-x64'
[00:04:04] GeissT: has joined #ruby
[00:04:21] jesterfraud: ziikutv: I'm one of those people that gave up on Ruby in Windows - I just run it in a VM now (using Vagrant)
[00:04:50] jesterfraud: too many headaches around versions and building gems and having Windows specific builds of gems and...
[00:05:20] ziikutv: I cannot belive proper support has not been made
[00:06:09] ziikutv: has left #ruby: ()
[00:07:31] whiteline: has joined #ruby
[00:08:06] balazs_: has joined #ruby
[00:08:46] ytti: i honestly think msft has chance now
[00:08:57] Aswebb_: has joined #ruby
[00:09:02] ytti: becoming relevant to programming community at large
[00:09:15] ytti: obviously it always was for game developers
[00:09:35] ytti: but i'm really impressed that powershell guys are implement openssh out and in
[00:09:58] ytti: ssh'ign into windows box and getting powershell, seems pretty cool to me
[00:10:34] j4cknewt: has joined #ruby
[00:11:05] astrobun_: has joined #ruby
[00:14:43] symbol: has joined #ruby
[00:17:21] bungoman: has joined #ruby
[00:17:59] centrx: has joined #ruby
[00:18:14] sinkensabe: has joined #ruby
[00:20:37] ledestin: has joined #ruby
[00:21:19] senayar: has joined #ruby
[00:24:37] charliesome: has joined #ruby
[00:24:45] tjbiddle: has joined #ruby
[00:25:16] woodruffw: has joined #ruby
[00:26:21] WillAmes: has joined #ruby
[00:26:24] jbwiv: has joined #ruby
[00:26:44] christiandsg: has joined #ruby
[00:28:07] Rodya_: has joined #ruby
[00:28:24] serivich: has joined #ruby
[00:29:15] ruby835: has joined #ruby
[00:30:27] itissid1: has joined #ruby
[00:30:53] itissid1: has left #ruby: ()
[00:32:21] tsou: has joined #ruby
[00:32:28] jenrzzz: has joined #ruby
[00:32:50] l0oky: has joined #ruby
[00:34:24] mack25: has joined #ruby
[00:34:35] jesterfraud: while true, I still have no plans to run a Windows server ytti
[00:34:38] htmldrum: has joined #ruby
[00:36:25] houhoulis: has joined #ruby
[00:36:32] tjbiddle: has joined #ruby
[00:38:57] volsus: has joined #ruby
[00:39:41] goodcodeguy: has joined #ruby
[00:41:04] jbwiv: has joined #ruby
[00:43:43] pwnz0r: has joined #ruby
[00:44:14] allcentury: has joined #ruby
[00:44:15] jbw_: has joined #ruby
[00:45:10] Rubie: has joined #ruby
[00:45:42] zacstewart: has joined #ruby
[00:46:10] charliesome: has joined #ruby
[00:47:08] Tristan-Speccy: has joined #ruby
[00:48:13] radialneon: has joined #ruby
[00:51:53] emergion: has joined #ruby
[00:53:32] dgutierrez1287: has joined #ruby
[00:53:55] Musashi007: has joined #ruby
[00:54:19] jpfuentes2: has joined #ruby
[00:58:30] tsou: has joined #ruby
[01:01:08] junegunn: has joined #ruby
[01:01:39] havenwood: has joined #ruby
[01:01:43] keen__________25: has joined #ruby
[01:04:26] ellisTAA: has joined #ruby
[01:04:51] sharpmachine: has joined #ruby
[01:06:33] oddraisin: has joined #ruby
[01:06:54] charliesome: has joined #ruby
[01:07:01] bruno-: has joined #ruby
[01:08:53] Lilian`: has joined #ruby
[01:10:00] eshy: has joined #ruby
[01:10:49] Lilian`: has left #ruby: ()
[01:12:54] zacstewart: has joined #ruby
[01:15:27] leat: has joined #ruby
[01:19:01] sinkensabe: has joined #ruby
[01:21:51] j4cknewt: has joined #ruby
[01:22:17] han-: has joined #ruby
[01:22:29] fabrice31: has joined #ruby
[01:22:36] eggoez: has joined #ruby
[01:24:14] han-: this is quite basic, but it's bothering me
[01:25:53] han-: logic says this: loop do / ..... next if (CONDITION IS TRUE)--> DO CODE
[01:26:07] tubuliferous_: has joined #ruby
[01:26:11] han-: but instead it works with, next unless
[01:26:29] dyulax: has joined #ruby
[01:26:45] han-: next unless (CONDITION IS TRUE) --> DO CODE
[01:27:19] centrx: 'unless' is equivalent to 'if not'
[01:27:43] han-: but i am doing a loop of digits starting from 0 to 100
[01:27:54] han-: with this line: next unless x % 10 == 0
[01:28:04] han-: and it prints me 10 20 30 40..
[01:28:21] han-: but it should print that when condition is true
[01:29:02] centrx: Put the code on gist.github.com
[01:29:14] pontiki: it's working the way you're telling it to
[01:29:21] Adran: has joined #ruby
[01:29:25] centrx: it sounds like it skips when x is divisible by 10
[01:29:29] swgillespie: has joined #ruby
[01:29:38] centrx: Computer does what you say
[01:29:59] toretore: han_: `next` means skip the rest of the block and go to the next iteration
[01:30:26] han-: next if x % 10 == 0, this should work for 10 20 30 40 50 right?
[01:30:32] toretore: thus the `puts` after `next` will not run when the condition is true
[01:30:40] pontiki: han_: !code
[01:30:40] helpa: han_: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
[01:30:46] ruboto: han_, We can't help you without your code, please post it to https://gist.github.com
[01:32:25] han-: https://gist.github.com/anonymous/2d18fa472b21da7b1d3c
[01:32:58] Yiota: has joined #ruby
[01:33:04] peter_paule: has joined #ruby
[01:33:07] pontiki: and which of those is the behaviour you want?
[01:33:22] han-: i think it should work the opposite way
[01:33:33] pontiki: then you do not understand `next`
[01:34:02] Bloodshot: han_, next means 'skip everything else, go on to the *next* loop'
[01:34:37] han-: ahhhhh ok
[01:34:45] han-: now it makes sense
[01:36:32] framling: has joined #ruby
[01:36:42] han-: the code works with an if/end inside the loop
[01:36:51] braincra-: has joined #ruby
[01:36:52] han-: or next unless
[01:37:27] han-: thank you guys
[01:37:28] lkba_: has joined #ruby
[01:38:47] toretore: you should probably use an if block instead, this type of short circuiting is easily overlooked when reading the code
[01:40:37] afrianska: has joined #ruby
[01:42:42] ellisTAA: has joined #ruby
[01:42:54] pengin: has joined #ruby
[01:46:06] nettoweb: has joined #ruby
[01:46:46] Mendenhall: has joined #ruby
[01:48:11] domgetter: has joined #ruby
[01:51:25] mary5030: has joined #ruby
[01:51:57] bungoman: has joined #ruby
[01:55:13] Stratege: has joined #ruby
[01:57:50] Aswebb_: has joined #ruby
[02:00:37] Aeyrix: Hello, domgetter.
[02:00:51] laurentide: has joined #ruby
[02:01:17] ellisTAA: has joined #ruby
[02:03:20] sickmate: has joined #ruby
[02:04:06] sevenseacat: has joined #ruby
[02:04:55] leat: has joined #ruby
[02:05:29] nettoweb: has joined #ruby
[02:05:31] Muhannad: has joined #ruby
[02:05:35] casadei_: has joined #ruby
[02:05:40] icebourg: has joined #ruby
[02:06:12] leat: has joined #ruby
[02:07:19] qiukun: has joined #ruby
[02:07:41] iateadonut: has joined #ruby
[02:07:51] bruno-: has joined #ruby
[02:07:51] GitGud: has joined #ruby
[02:14:41] Spami: has joined #ruby
[02:15:13] pwnz0r: has joined #ruby
[02:16:07] t0rrieri: has joined #ruby
[02:18:28] balazs_: has joined #ruby
[02:19:13] ellisTAA: has joined #ruby
[02:19:25] hal_9000_: has joined #ruby
[02:19:48] sinkensabe: has joined #ruby
[02:20:45] julieeharshaw: has joined #ruby
[02:21:09] qiukun: has joined #ruby
[02:21:41] chipotle: has joined #ruby
[02:23:53] volsus: has joined #ruby
[02:25:27] Scripore: has joined #ruby
[02:26:42] tmtwd: has joined #ruby
[02:26:47] swgillespie: has joined #ruby
[02:28:55] swgillespie: has joined #ruby
[02:30:22] finisherr_: has joined #ruby
[02:32:34] han-: https://gist.github.com/anonymous/a5d7b7b668da2f858556
[02:32:43] han-: check that out, is cool
[02:33:01] han-: got math table for numbers untill they reach 100
[02:34:17] varunwachaspati: has joined #ruby
[02:38:04] benlovell: has joined #ruby
[02:39:08] jaygen: has joined #ruby
[02:39:13] miwood: has joined #ruby
[02:39:52] goodcodeguy: has joined #ruby
[02:40:15] toretore: has joined #ruby
[02:40:29] houhoulis: has joined #ruby
[02:40:59] varunwachaspati: has joined #ruby
[02:43:50] zacstewart: has joined #ruby
[02:45:36] arooni-mobile: has joined #ruby
[02:45:39] pwnz0r: has joined #ruby
[02:45:59] serivich: has joined #ruby
[02:46:35] kkeuning: has joined #ruby
[02:47:30] Caius: has joined #ruby
[02:48:04] kkeuning: has joined #ruby
[02:48:43] Musashi007: has joined #ruby
[02:49:29] devbug: has joined #ruby
[02:49:41] Vile`: has joined #ruby
[02:49:47] zacstewart: has joined #ruby
[02:52:22] ellisTAA: has joined #ruby
[02:54:21] Vile`: has joined #ruby
[02:57:11] bakednotfried: has joined #ruby
[02:57:11] bakednotfried: has joined #ruby
[02:57:38] volsus: has joined #ruby
[02:58:12] Bloodshot: han_: A more idiomatic example would look like this: http://ix.io/jQ9
[02:58:33] icebourg: has joined #ruby
[03:03:55] dtcristo: has joined #ruby
[03:11:38] braincrash: has joined #ruby
[03:13:21] kiriappeee: has joined #ruby
[03:14:20] tubuliferous_: has joined #ruby
[03:15:07] RobertBirnie: has joined #ruby
[03:16:29] alicanyilmaz: has joined #ruby
[03:17:04] alicanyilmaz: hello everyone! :)
[03:20:31] sinkensabe: has joined #ruby
[03:21:39] Maletor: has joined #ruby
[03:24:43] happy_dev: has joined #ruby
[03:24:49] Vile`: has joined #ruby
[03:27:09] EasyCo: has joined #ruby
[03:28:23] volsus: has joined #ruby
[03:29:11] balazs_: has joined #ruby
[03:29:37] bffff_: has joined #ruby
[03:30:32] darkf: has joined #ruby
[03:30:51] Scripore: has joined #ruby
[03:31:51] xcesariox: has joined #ruby
[03:41:45] kies^: has joined #ruby
[03:46:04] j4cknewt: has joined #ruby
[03:46:41] Aswebb_: has joined #ruby
[03:46:59] jenrzzz: has joined #ruby
[03:49:18] mikenovikov: has joined #ruby
[03:50:11] bungoman: has joined #ruby
[03:50:41] Musashi007: has joined #ruby
[03:52:31] Crazy_Atheist: has joined #ruby
[03:53:33] gix: has joined #ruby
[03:55:49] leat: has joined #ruby
[03:57:50] Vile`: has joined #ruby
[03:59:15] fallen_: has joined #ruby
[04:02:04] serivich: has joined #ruby
[04:04:47] riotjones: has joined #ruby
[04:05:10] mistermocha: has joined #ruby
[04:09:15] bruno-: has joined #ruby
[04:10:34] bungoman: has joined #ruby
[04:11:16] bronson: has joined #ruby
[04:13:56] crunk_bear: has joined #ruby
[04:15:08] drewvanstone: has joined #ruby
[04:15:47] eggoez: has joined #ruby
[04:16:35] Maletor: has joined #ruby
[04:17:52] cornerma1: has joined #ruby
[04:21:16] sinkensabe: has joined #ruby
[04:22:24] icebourg: has joined #ruby
[04:22:38] amystephen: has joined #ruby
[04:23:40] miwood: has joined #ruby
[04:23:53] afrianska: has joined #ruby
[04:25:32] ScriptGeek: has joined #ruby
[04:30:37] Asher: has joined #ruby
[04:31:06] lxsameer: has joined #ruby
[04:31:47] RobertBirnie: has joined #ruby
[04:36:36] dopie: has joined #ruby
[04:36:43] mistermocha: has joined #ruby
[04:38:07] CorySimmons: has joined #ruby
[04:41:24] _blizzy_: has joined #ruby
[04:43:24] Bquick: has joined #ruby
[04:43:50] kalleth: has joined #ruby
[04:44:20] revath: has joined #ruby
[04:44:31] kalleth: has joined #ruby
[04:45:12] mistermo_: has joined #ruby
[04:46:31] schaerli: has joined #ruby
[04:48:59] _blizzy_: has joined #ruby
[04:51:38] Maletor: has joined #ruby
[04:51:55] bigmac: has joined #ruby
[04:56:38] andikr: has joined #ruby
[04:56:50] dtcristo: has joined #ruby
[05:00:41] ttilley: has joined #ruby
[05:01:20] pmarreck: has joined #ruby
[05:01:41] acke: has joined #ruby
[05:01:55] thesheff17: has joined #ruby
[05:01:58] lancetw: has joined #ruby
[05:02:08] zero7: has joined #ruby
[05:02:08] culturelabs: has joined #ruby
[05:02:30] tubuliferous_: has joined #ruby
[05:03:35] charles81: has joined #ruby
[05:03:46] chrisseaton: has joined #ruby
[05:03:51] rht: has joined #ruby
[05:04:43] spastorino: has joined #ruby
[05:05:13] ckrailo: has joined #ruby
[05:05:20] rflot: has joined #ruby
[05:05:24] benlakey: has joined #ruby
[05:05:32] akitada: has joined #ruby
[05:05:33] acke: has joined #ruby
[05:05:38] Heero: has joined #ruby
[05:06:09] vcoinminer: has joined #ruby
[05:06:54] mjc_: has joined #ruby
[05:06:58] iamdevnul: has joined #ruby
[05:06:59] krainboltgreene: has joined #ruby
[05:07:06] allomov: has joined #ruby
[05:07:08] astrobun_: has joined #ruby
[05:07:17] Guest85414______: has joined #ruby
[05:07:24] bove: has joined #ruby
[05:08:28] n1ftyn8_: has joined #ruby
[05:08:52] glowcoil: has joined #ruby
[05:08:57] poguez_: has joined #ruby
[05:09:02] RobertBirnie: has joined #ruby
[05:09:12] j4cknewt: has joined #ruby
[05:09:31] chrissonar: has joined #ruby
[05:11:39] Scripore: has joined #ruby
[05:13:28] countryHick: has joined #ruby
[05:13:46] jenrzzz: has joined #ruby
[05:14:28] qiukun: has joined #ruby
[05:14:58] xkickflip: has joined #ruby
[05:16:59] Radar: +q *!*@*177.52.25.228
[05:17:32] leat: has joined #ruby
[05:17:49] poguez_: has joined #ruby
[05:18:43] konsolebox: has joined #ruby
[05:18:47] jmcc: has joined #ruby
[05:19:55] saintcajetan: has joined #ruby
[05:19:59] baweaver: Radar: Forget to put Mjolnir up again, or waiting to bestow the wrath of Thor on someone?
[05:20:16] codeitagile: has joined #ruby
[05:20:29] Radar: ACTION puts the hammer down
[05:20:30] Radar: so to speak
[05:20:43] baweaver: I was half expecting to get kicked out of spite :D
[05:20:49] Radar: Aeyrix warned me that someone might spam this channel
[05:21:08] Radar: In hindsight, it would've been a good test for the spam protection I built into helpa last week.
[05:21:16] Aeyrix: I thought I already tested that.
[05:21:23] Radar: Aeyrix: A proper test :)
[05:21:27] baweaver: I didn't think they announced those things, do they think they're the man with 1000 faces now?
[05:21:29] Aeyrix: I can proper test it. :^)
[05:21:44] Radar: I get a couple of highlights overnight now from the spam protection because newbies paste controller actions and other shit into the channels
[05:22:01] sinkensabe: has joined #ruby
[05:22:29] baweaver: so what you're saying
[05:22:38] baweaver: is that it has the added benefit of banning non gist-ers?
[05:24:06] fabrice31: has joined #ruby
[05:24:20] RobertBirnie: has joined #ruby
[05:24:21] Radar: it doesn't ban yet. it just PMs me to let me know someone is breaking the speed limit
[05:25:37] ggherdov: has joined #ruby
[05:26:21] Aeyrix: 88 jimmies rustled per hour is the current limit
[05:26:57] leat: has joined #ruby
[05:27:02] sp1rs: has joined #ruby
[05:28:55] aganov: has joined #ruby
[05:33:06] yardenbar: has joined #ruby
[05:35:33] Aswebb_: has joined #ruby
[05:35:35] riotjones: has joined #ruby
[05:36:48] varunwachaspati: has joined #ruby
[05:37:12] leat: has joined #ruby
[05:38:24] jgpawletko_: has joined #ruby
[05:39:54] deimos: has joined #ruby
[05:40:02] Gadgetoid: has joined #ruby
[05:40:06] Feyn: has joined #ruby
[05:40:28] noethics: has joined #ruby
[05:40:28] ukd1: has joined #ruby
[05:40:29] jeregrine: has joined #ruby
[05:40:38] djbender: has joined #ruby
[05:40:39] PlasmaStar: has joined #ruby
[05:40:41] charles81: has joined #ruby
[05:40:42] adambeynon: has joined #ruby
[05:40:43] chrisseaton: has joined #ruby
[05:40:50] daxroc: has joined #ruby
[05:41:21] Heero: has joined #ruby
[05:41:24] jlyndon: has joined #ruby
[05:41:37] zero7: has joined #ruby
[05:41:54] krainboltgreene: has joined #ruby
[05:41:55] pmarreck: has joined #ruby
[05:41:56] countryHick: has joined #ruby
[05:42:08] im0b: has joined #ruby
[05:42:11] coderkevin: has joined #ruby
[05:42:15] HashNuke: has joined #ruby
[05:42:23] lxsameer: has joined #ruby
[05:42:23] lxsameer: has joined #ruby
[05:42:26] flughafen: morning everybody
[05:42:31] MiracleBlue: has joined #ruby
[05:42:49] RobertBirnie: has joined #ruby
[05:42:56] codeitagile: has joined #ruby
[05:43:13] roolo: has joined #ruby
[05:43:14] mjc_: has joined #ruby
[05:43:30] frankS2: has joined #ruby
[05:43:40] bryancp: has joined #ruby
[05:43:44] Mendenhall: has joined #ruby
[05:43:44] rfv: has joined #ruby
[05:43:55] benlakey: has joined #ruby
[05:44:03] jenrzzz: has joined #ruby
[05:44:04] shelling__: has joined #ruby
[05:44:11] harleypig: has joined #ruby
[05:44:18] yo61: has joined #ruby
[05:45:13] bffff_: has joined #ruby
[05:45:14] whoojemaflip: has joined #ruby
[05:45:24] flughafen: nothing is taking off
[05:45:31] michael_mbp: has joined #ruby
[05:45:34] RobertBirnie: has joined #ruby
[05:45:35] dmoe: has joined #ruby
[05:45:49] knowtheory: has joined #ruby
[05:45:57] bestie: has joined #ruby
[05:45:59] bjeanes: has joined #ruby
[05:46:09] lacrosse: has joined #ruby
[05:46:12] petems: has joined #ruby
[05:46:23] zemmihates: has joined #ruby
[05:47:34] maZtah: has joined #ruby
[05:48:17] dhjondoh: has joined #ruby
[05:48:20] bttf: has joined #ruby
[05:48:21] holsee_: has joined #ruby
[05:48:59] jevs: has joined #ruby
[05:49:06] mroth: has joined #ruby
[05:49:21] machty: has joined #ruby
[05:49:22] hoey_: has joined #ruby
[05:49:27] nickfausnight: has joined #ruby
[05:49:53] kapowaz: has joined #ruby
[05:50:03] AdamMeghji: has joined #ruby
[05:50:26] bove: has joined #ruby
[05:51:27] elliottcable: has joined #ruby
[05:51:31] jxf: has joined #ruby
[05:51:32] ckrailo: has joined #ruby
[05:52:55] cardoni_: has joined #ruby
[05:53:17] cbednarski: has joined #ruby
[05:53:33] neersighted: has joined #ruby
[05:53:35] cstrahan: has joined #ruby
[05:53:57] featheryahn_: has joined #ruby
[05:54:21] jimbeaudoin: has joined #ruby
[05:55:35] EasyCo: has joined #ruby
[05:56:33] duncannz: has joined #ruby
[05:56:58] PhilK: has joined #ruby
[05:57:02] ElSif: is using irccloud to mess with channels something new or have just been out of the loop?
[05:57:10] heidar: has joined #ruby
[05:57:13] atomi: has joined #ruby
[05:57:27] tagrudev: has joined #ruby
[05:57:38] pizzaops: has joined #ruby
[05:58:55] DukeDave: has joined #ruby
[05:59:02] troter___: has joined #ruby
[05:59:53] fgo: has joined #ruby
[06:00:59] cibs: has joined #ruby
[06:01:31] ggherdov: has joined #ruby
[06:01:57] Maletor: has joined #ruby
[06:03:20] prosodyContext: has joined #ruby
[06:04:31] Aeyrix: ElSif: They have a HTTP API
[06:04:39] Aeyrix: making it really easy to be a dickass
[06:05:18] ElSif: well hopefully they at least use ruby scripts to be a dickass
[06:05:31] zrl: has joined #ruby
[06:06:18] jack_rabbit: has joined #ruby
[06:06:25] acke: has joined #ruby
[06:07:09] lala: has joined #ruby
[06:10:45] finisherr: has joined #ruby
[06:11:09] finisherr: If I???m using Nokogiri, how would I get the full path to a found node?
[06:11:28] finisherr: I???m looking in the docs but having some trouble finding the answer
[06:12:29] lsmola: has joined #ruby
[06:12:35] Aeyrix: node.path
[06:13:50] eggoez: has joined #ruby
[06:14:09] freezevee: has joined #ruby
[06:15:15] dtcristo: has joined #ruby
[06:15:34] duoi: has joined #ruby
[06:15:44] simplyianm: has joined #ruby
[06:15:47] revath: has joined #ruby
[06:17:06] cjk101010: has joined #ruby
[06:17:30] julieeharshaw: has joined #ruby
[06:17:37] certainty: headius: thanks again for the clarification on concurrent-ruby thins morning :)
[06:18:13] eGGsha: has joined #ruby
[06:19:06] ohaibbq: has joined #ruby
[06:19:10] DoubleMalt: has joined #ruby
[06:19:13] prefixed: has joined #ruby
[06:20:07] bronson: has joined #ruby
[06:21:09] symm-: has joined #ruby
[06:22:55] zacstewart: has joined #ruby
[06:24:01] djbkd_: has joined #ruby
[06:25:29] ScriptGeek: has joined #ruby
[06:25:52] veekay: has joined #ruby
[06:28:05] riotjones: has joined #ruby
[06:31:28] peter_paule: has joined #ruby
[06:31:50] Musashi007: has joined #ruby
[06:32:12] benlovell: has joined #ruby
[06:33:16] _lazarevsky: has joined #ruby
[06:33:21] _lazarevsky: good morning all
[06:33:39] _lazarevsky: I want to check whether a variable I've populated using Time.now
[06:33:59] _lazarevsky: was generated more than half an hour ago
[06:34:22] _lazarevsky: Time.now and 30.minutes.ago give me drastically different times
[06:36:11] sinkensabe: has joined #ruby
[06:38:31] andikr: has joined #ruby
[06:39:52] ElSif: roughly how drasticly far?
[06:43:14] bricker1: has joined #ruby
[06:45:18] timonv: has joined #ruby
[06:45:54] ElSif: does `Time.now + 30*60` give you the same strangely offset time?
[06:47:34] dede: has joined #ruby
[06:47:37] dtcristo: has joined #ruby
[06:47:53] ScriptGeek: has left #ruby: ()
[06:48:52] ElSif: well, that should have read `- 30*60` i suppose, but hes gone now T_T
[06:49:00] Radar: ElSif: I solved it for them in #rubyonrails
[06:49:04] fabrice31: has joined #ruby
[06:49:10] Radar: It's a Time.now vs Time.current problem.
[06:49:16] ElSif: sure, makes sense
[06:49:18] whoojemaflip: has left #ruby: ()
[06:50:38] tubulife-: has joined #ruby
[06:52:21] simplyianm: has joined #ruby
[06:52:33] Macaveli: has joined #ruby
[06:54:50] troulouliou_div2: has joined #ruby
[06:56:09] niemcu: has joined #ruby
[06:58:14] kwd: has joined #ruby
[07:01:27] jenrzzz: has joined #ruby
[07:04:36] alphaatom: has joined #ruby
[07:04:45] Stan: has joined #ruby
[07:05:28] timonv: has joined #ruby
[07:05:40] alphaatom: has joined #ruby
[07:08:06] dumdedum: has joined #ruby
[07:08:53] cpg: has left #ruby: ()
[07:10:07] simplyianm: has joined #ruby
[07:10:47] AlexAltea: has joined #ruby
[07:11:33] astrobun_: has joined #ruby
[07:16:33] gagrio: has joined #ruby
[07:16:56] zacstewart: has joined #ruby
[07:18:01] Aswebb_: has joined #ruby
[07:24:15] TomyWork: has joined #ruby
[07:24:51] eGGsha: has joined #ruby
[07:28:51] Mendenhall: has joined #ruby
[07:29:21] Ilyas: has joined #ruby
[07:29:30] keen__________26: has joined #ruby
[07:31:01] dtcristo: has joined #ruby
[07:31:09] erowlin: has joined #ruby
[07:31:35] joonty: has joined #ruby
[07:32:14] Hounddog: has joined #ruby
[07:32:21] j4cknewt: has joined #ruby
[07:32:36] schaerli: has joined #ruby
[07:32:52] Tritone_: has joined #ruby
[07:33:42] dtcristo: has joined #ruby
[07:34:49] arup_r: has joined #ruby
[07:35:14] Tritone: has joined #ruby
[07:37:13] dhjondoh: has joined #ruby
[07:37:51] djbkd_: has joined #ruby
[07:38:16] vondruch: has joined #ruby
[07:38:35] haxrbyte: has joined #ruby
[07:39:23] rdark: has joined #ruby
[07:40:47] dtcristo: has joined #ruby
[07:40:51] ndrei: has joined #ruby
[07:40:58] haxrbyte_: has joined #ruby
[07:43:01] pwnz0r: has joined #ruby
[07:43:01] michael_mbp: has joined #ruby
[07:43:35] doerteDev: has joined #ruby
[07:45:11] Averna: has joined #ruby
[07:45:18] allomov: has joined #ruby
[07:45:58] senayar: has joined #ruby
[07:48:00] featheryahn_: has joined #ruby
[07:48:01] halfdan: has joined #ruby
[07:48:01] bcavileer: has joined #ruby
[07:48:01] adambeynon: has joined #ruby
[07:48:02] harleypig: has joined #ruby
[07:48:02] djbender: has joined #ruby
[07:48:06] tonini: has joined #ruby
[07:48:07] chrisseaton: has joined #ruby
[07:48:07] pizzaops: has joined #ruby
[07:48:23] jeregrine: has joined #ruby
[07:49:08] zenspider: I forget... how do you page ops in a normal channel?
[07:50:13] bigkevmcd: has joined #ruby
[07:50:42] adaedra: list them?
[07:51:20] alxndr: has joined #ruby
[07:51:36] cstrahan: has joined #ruby
[07:52:01] n1ftyn8_: has joined #ruby
[07:52:03] adaedra: /msg ChanServ ACCESS LIST #...
[07:52:18] zenspider: hrm... /stats p says 0 staff :/
[07:53:09] neektza: has joined #ruby
[07:53:09] ckrailo: has joined #ruby
[07:53:10] ramblinpeck: has joined #ruby
[07:53:31] tkuchiki: has joined #ruby
[07:54:02] zenspider: hrm... and that says that it is Halabund and freenode staff. and halabund isn't even listed on /whowas
[07:54:07] zenspider: so, it is a dead channel. :/
[07:54:22] zenspider: there's a student throwing a shit fit
[07:54:23] MiracleBlue: has joined #ruby
[07:54:33] zenspider: didn't do his homework on time I'm guessing
[07:54:35] wpp: has joined #ruby
[07:54:41] adaedra: /msg ChanServ INFO`
[07:54:41] dhjondoh: has joined #ruby
[07:54:42] deimos: has joined #ruby
[07:54:49] adaedra: should tell you state of the channel
[07:54:50] avdi: has joined #ruby
[07:54:51] manveru: has joined #ruby
[07:54:56] firevolt: has joined #ruby
[07:55:41] zenspider: yup. basically dead.
[07:55:54] zenspider: welcome back irccloud members! :P
[07:55:56] nickfausnight: has joined #ruby
[07:55:57] heidar: has joined #ruby
[07:56:04] hellschreiber: has joined #ruby
[07:56:19] rfv: has joined #ruby
[07:56:20] spastorino: has joined #ruby
[07:56:43] DukeDave: has joined #ruby
[07:56:58] zenspider: wow... they're all just sloooowly trickling in
[07:56:59] astrobun_: has joined #ruby
[07:57:30] adaedra: good thing joins are hidden I get?
[07:58:01] timonv: has joined #ruby
[07:58:35] needyou: has joined #ruby
[07:59:02] Axy: has joined #ruby
[07:59:32] needyou: how can i create 2 level ruby array like Array -> Date => Time ?
[08:00:05] petems: has joined #ruby
[08:00:10] charles81: has joined #ruby
[08:00:18] vcoinminer: has joined #ruby
[08:00:20] needyou: and then compare this array with another one for same Date , Time ?
[08:00:24] akahn: has joined #ruby
[08:00:29] rflot: has joined #ruby
[08:00:51] amitchellbullard: has joined #ruby
[08:00:51] adaedra: How would you use that? A little bit of code sample with expected results?
[08:01:14] needyou: Will show u
[08:01:22] joonty: has joined #ruby
[08:01:32] apeiros: ACTION suspects needyou means Hash, not array, with Date as key and Time as value
[08:01:33] coderkevin: has joined #ruby
[08:01:34] krainboltgreene: has joined #ruby
[08:01:39] white_bear: has joined #ruby
[08:01:47] bove: has joined #ruby
[08:01:50] mikecmpbll: has joined #ruby
[08:01:54] adaedra: apeiros: I do to, but better be sure?
[08:01:55] pmarreck: has joined #ruby
[08:01:56] apeiros: but not sure, since that "Date => Time" part doesn't make too much sense to me
[08:02:02] Guest85414______: has joined #ruby
[08:02:04] apeiros: adaedra: certainly!
[08:02:15] apeiros: I'd have asked, if you hadn't :)
[08:02:17] adaedra: apeiros: apropos, guten morgen
[08:02:25] elliottcable: has joined #ruby
[08:02:26] apeiros: ah, oui, bonjour adaedra
[08:02:28] jhass: perhaps Date => [Time, Time, ...], who knows
[08:02:44] konsolebox: apeiros: but he may need the keys non-unique and in order
[08:02:44] cbednarski: has joined #ruby
[08:02:57] apeiros: jhass: *sob*, so now we need to also have somebody who's "who".
[08:02:59] knowtheory: has joined #ruby
[08:03:08] jpinnix______: has joined #ruby
[08:03:14] dmoe: has joined #ruby
[08:03:18] poguez_: has joined #ruby
[08:03:18] holsee_: has joined #ruby
[08:03:19] adaedra: We're doomed.
[08:03:21] konsolebox: needyou: maybe you want a struct/class/openstruct instance or similar, or a = [[date, time], [date, time], ...]
[08:03:34] jhass: apeiros: must it be a doctor?
[08:03:39] needyou: pastebin.com/adpRMwQ7
[08:03:40] ruboto: needyou, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[08:03:44] apeiros: konsolebox: I suggest we just patiently wait for needyou to show us as they said they would.
[08:03:51] bjeanes: has joined #ruby
[08:03:55] konsolebox: apeiros: but you weren't ;)
[08:04:19] needyou: check the pastebin link i send in channel
[08:04:40] apeiros: jhass: huh? when does ruboto use this reponse instead of reposting it?
[08:04:42] adaedra: that's... a lot of code
[08:04:57] apeiros: we need ?minimalexample
[08:04:59] glowcoil: has joined #ruby
[08:05:02] mjc_: has joined #ruby
[08:05:03] max_v: has joined #ruby
[08:05:08] mrsolow: has joined #ruby
[08:05:09] jhass: apeiros: if crossposting fails for whatever reason
[08:05:11] apeiros: needyou: pleaes, phrase your question in a way that's helpful to understand what you have and what you need
[08:05:12] needyou: i want to run this as cron, check if new pending calndar events are presented, and compare if the pending one is conflicting with some accepted one.
[08:05:14] ljen: has joined #ruby
[08:05:20] apeiros: needyou: just dumping a pile of code doesn't cut it.
[08:05:37] ljarvis: has joined #ruby
[08:05:37] apeiros: jhass: I see
[08:05:40] apeiros: makes sense
[08:05:54] einarj: has joined #ruby
[08:06:01] astrobun_: has joined #ruby
[08:06:02] needyou: so i need to build an array with 2 levels, date, time
[08:06:03] adaedra: salut ljarvis
[08:06:25] needyou: check the responsestatus and compare if it conflicts with another event.
[08:06:27] jimbeaudoin: has joined #ruby
[08:06:28] iamdevnul: has joined #ruby
[08:06:28] hashrocket: has joined #ruby
[08:06:30] HashNuke: has joined #ruby
[08:06:32] Lloyd: has joined #ruby
[08:06:32] lacrosse: has joined #ruby
[08:06:32] apeiros: moin ljarvis
[08:06:35] Heero: has joined #ruby
[08:06:38] needyou: so i can accept of drop the event
[08:06:43] adaedra: needyou: so you can do something like `var[date][time]`?
[08:06:46] zacstewart: has joined #ruby
[08:06:50] apeiros: what's up with irccloud today? seems flakey???
[08:07:01] needyou: some example ? i am not so familar with ruby
[08:07:12] needyou: how must i build the var
[08:07:13] neersighted: has joined #ruby
[08:07:40] Mia: has joined #ruby
[08:07:40] Mia: has joined #ruby
[08:07:49] AdamMeghji: has joined #ruby
[08:07:52] jhass: needyou: do you realize that Time represents a fixed point in all Time, not just of any day?
[08:07:58] jhass: >> Time.now
[08:07:59] ruboto: jhass # => 2015-07-20 08:07:59 +0000 (https://eval.in/401376)
[08:08:11] bffff_: has joined #ruby
[08:08:14] adaedra: aw, 1 second close to round time
[08:08:44] pontiki: time is just an illusion
[08:08:49] daxroc: has joined #ruby
[08:08:53] jlyndon: has joined #ruby
[08:09:10] jhass: ?xy needyou
[08:09:10] ruboto: needyou, it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[08:09:24] Iskarlar: has joined #ruby
[08:09:36] CustosLimen: has joined #ruby
[08:09:37] zipkid: has joined #ruby
[08:10:09] hoey_: has joined #ruby
[08:10:12] lancetw: has joined #ruby
[08:10:14] im0b: has joined #ruby
[08:10:23] bruno-: has joined #ruby
[08:10:55] last_staff: has joined #ruby
[08:11:35] needyou: jhass: i only want to build an array or var with the Date, Time of upcoming events, (LIST EVENT) part of the code. then compare these array -> start => dateTime / attendees => responseStatus if a responseStatus Date (NeedsAction) is conflicting with a Date / Time where the response Status is accepted, i can update the responseStatus to drop it.
[08:11:39] jhass: needyou: I don't get why you need a Date and a Time
[08:12:03] arup_r1: has joined #ruby
[08:12:16] needyou: jhass: you got what i want to do ? : P
[08:12:23] frankS2: has joined #ruby
[08:12:49] countryHick: has joined #ruby
[08:12:50] dede: has joined #ruby
[08:12:50] shelling__: has joined #ruby
[08:12:52] needyou: simply want to check the calendar events for conflicts, and drop the new event with responseStatus Needsaction if there is already a event on the same day / time presented with responsestatus accepcted jhass
[08:12:59] akitada: has joined #ruby
[08:13:22] valkyrka: has joined #ruby
[08:13:51] jxf: has joined #ruby
[08:14:22] atomi: has joined #ruby
[08:14:31] thesheff17: has joined #ruby
[08:15:00] yo61: has joined #ruby
[08:15:17] manveru: has joined #ruby
[08:15:37] adaedra: if you have a list of events, just go through it and check if start/end times are between even't start/end times
[08:16:15] machty: has joined #ruby
[08:16:19] heidar: has joined #ruby
[08:16:19] needyou: and how can i do it adaedra
[08:16:21] arup_r: has joined #ruby
[08:16:40] jhass: not sure. I'd probably start by .group_by'ing by status, then iterating over all events in NeedsAction and then .select out all conflicting ones out of the other groups and then do stuff with them
[08:17:15] needyou: jhass: can you provide me some exampe code ?
[08:17:30] senayar: has joined #ruby
[08:17:32] Limezacore: has joined #ruby
[08:17:34] jhass: not really since I don't get how to get the status from your code
[08:17:47] ljarvis: needyou: are you learning Ruby?
[08:18:09] Kharma: has joined #ruby
[08:18:26] jhass: .map'ping into a class Event; might help since then you have a place where you can neatly place some logic like .overlaps?(other_event)
[08:19:29] needyou: jhass: there is an example , line 60
[08:19:31] needyou: in the code
[08:20:10] needyou: event.attendees[0].responseStatus
[08:20:36] intinig: has joined #ruby
[08:22:03] jhass: results.data.items.group_by {|event| event.attendees.first.responseStatus } then I guess?
[08:22:20] jhass: might need some logic to find the highest among all attendees I guess
[08:24:14] dtcristo: has joined #ruby
[08:24:47] axl_: has joined #ruby
[08:25:03] darxun: has joined #ruby
[08:25:14] joaomdmoura: has joined #ruby
[08:25:38] codecop: has joined #ruby
[08:25:38] codecop_: has joined #ruby
[08:25:53] haxrbyte: has joined #ruby
[08:25:54] ggherdov: has joined #ruby
[08:25:55] codecop__: has joined #ruby
[08:26:32] Philipp_: has joined #ruby
[08:27:04] Philipp_: why does it take at least 10 seconds to install any gem file?
[08:27:07] needyou: jhass: all events are written in the calendar automaticaly, even if date conflicts, so i can get 2 events at the same time, i need to compare if there are 2 events at the same time , date and drop the one with responseStatus NeedsAction
[08:27:09] jhass: and then by_status["needs_action"].each do |important_event| by_status["accepted"].select {|event| event.start.dateTime.between?(important_event.start.dateTime, important_event.end.dateTime) || event.end.between?(...) }.each do |conflicting_event| stuff(conflicting_event); or whatever
[08:27:21] prosodyContext: has joined #ruby
[08:27:33] jhass: well, then the other way around or idk
[08:28:05] leat: has joined #ruby
[08:28:10] dhjondoh: has joined #ruby
[08:28:16] jhass: Philipp_: perhaps your connection to rubygems.org lacks
[08:28:27] arup_r1: has joined #ruby
[08:28:42] tkuchiki: has joined #ruby
[08:29:04] marr: has joined #ruby
[08:29:19] Musashi007: has joined #ruby
[08:29:23] schaerli: has joined #ruby
[08:29:49] jhass: Philipp_: you can run gem install -V whatever and see where it hangs
[08:30:00] Philipp_: jhass how long does it take to install sensu-plugins-http?
[08:30:16] zenspider: Philipp_: it doesn't. I just installed one in 0m2.835s cold, 0.787s hot, and 1.9 hot w/ rdoc generation
[08:30:40] apeiros: maybe a gem with native extension?
[08:31:24] Igorshp: has joined #ruby
[08:32:32] jhass: Philipp_: 5s here, pulled in 3 or 4 more gems though
[08:32:39] jhass: so roughly 1s per gem
[08:32:58] Philipp_: jhass why does it load 6 mixlib cli gems?
[08:33:07] Philipp_: with different versions?
[08:33:26] Pupeno: has joined #ruby
[08:33:44] Pupeno: has joined #ruby
[08:33:46] jhass: it doesn't?
[08:34:20] Philipp_: the -V output ships me it is requesting mixlib1.1, 1.2, 1.22, ...
[08:35:13] jhass: not overhere
[08:35:15] avat: has joined #ruby
[08:35:26] jhass: what's your gem -v ?
[08:36:02] livathinos: has joined #ruby
[08:36:02] matcouto: has joined #ruby
[08:36:09] statu: has joined #ruby
[08:36:19] qiukun: has joined #ruby
[08:37:16] Philipp_: jhass gem -v => 2.0.14 (embeded with sensu)
[08:37:23] jhass: that's really ancient
[08:37:35] jhass: you should update to the 2.4 series
[08:38:07] serivich: has joined #ruby
[08:38:38] noethics: has joined #ruby
[08:38:46] statu: Hi! I am trying Sinatra but I don't know how to pass variables to the views :/ I use erb as templates. The instruction that I use is "erb :index, :locals => {:test_sentence => "test sentence!"}" and then the template is rendered but nothing is displayed. The template code is "<%= @test_sentence %>". Any idea? Thanks!
[08:39:12] tubulife-: has joined #ruby
[08:39:14] revath: has joined #ruby
[08:39:17] jhass: statu: @test_sentence is an instance variable, you're passing a local_variable
[08:39:22] jhass: (remove the @)
[08:39:48] zenspider: jhass: shouldn't affect the install time at all
[08:40:00] zenspider: what does "embedded with sensu" mean?
[08:40:26] Philipp_: there is an ruby installation within sensu /opt/sensu/embeded/...
[08:40:27] statu: jhass: thanks!!
[08:40:35] Philipp_: that's the same with chef
[08:40:51] zenspider: do they know they misspelled embedded? :P
[08:40:59] jhass: zenspider: you're sure? didn't the latter versions start to use the dependency API?
[08:41:22] Philipp_: it is called embedded sorry for that
[08:41:44] zenspider: jhass: it'll look up deps a _bit_ faster, but not by much really. but the bottleneck will always be the download followed by the unpack & possibly build
[08:41:56] zenspider: Philipp_: just pokin at ya
[08:42:01] tvw: has joined #ruby
[08:43:54] zenspider: Philipp_: what is the gem in question?
[08:44:10] Philipp_: sensu-plugins-http
[08:44:25] Philipp_: takes real 0m11.470s
[08:44:53] chussenot: has joined #ruby
[08:45:31] Siyfion: has joined #ruby
[08:45:57] krz: has joined #ruby
[08:46:21] Igorshp: has joined #ruby
[08:46:29] zenspider: json... is a binary gem
[08:46:30] Philipp_: https://gist.github.com/runningman84/33996728c61b83bc4b7c
[08:46:32] schaerli: has joined #ruby
[08:46:59] howdoi: has joined #ruby
[08:47:20] zenspider: I wind up with json-1.8.3 sensu-plugin-1.2.0 mixlib-cli-1.5.0 sensu-plugins-http-0.1.1 in 6.5 seconds
[08:47:22] jhass: Philipp_: and where is it spending most of the time?
[08:47:27] zenspider: the json gem needs to compile to work
[08:48:09] zenspider: yeah. the rest are pure ruby and install quickly
[08:48:45] zenspider: hot it is 4.7 sec
[08:48:56] ta: has joined #ruby
[08:49:01] jhass: GET https://s3.amazonaws.com/production.s3.rubygems.org/specs.4.8.gz
[08:49:05] zenspider: I'm getting mine from aws-eu-cache01.rubygems.org
[08:49:08] lkba: has joined #ruby
[08:49:12] zenspider: no... Im' getting mine from fastly
[08:49:21] zenspider: he's getting from aws-eu-cache01.rubygems.org. pulled the trigger too soon
[08:49:27] zenspider: so, that can definitely play a part
[08:49:39] jenrzzz: has joined #ruby
[08:50:08] zenspider: Philipp_: `sudo gem update --system` will update your rubygems (maybe--some distros fuck with it)
[08:50:11] jhass: but anyway, as long as my last question is unanswered we can only blindly guess
[08:50:25] apeiros: Philipp_: why the question btw.? 10s doesn't strike me as a worrisome duration
[08:50:37] Philipp_: it is spending the most of the time downloading the gemspec files
[08:50:50] jhass: well, then my initial guess was right :P
[08:50:54] zenspider: and caching them... so...
[08:50:56] Philipp_: the real download and installation is very fast
[08:50:59] jhass: get a better connection to AWS S3
[08:51:23] Philipp_: my connection to aws is ok
[08:51:26] zenspider: l ~/.gem/specs/
[08:51:36] Andreas-Jx: has joined #ruby
[08:51:40] jhass: and suggestion stays, update rubygems
[08:51:41] Andreas-Jx: -n- New Steam Game http://yoliece463.itch.io/aeon-ball
[08:51:52] jhass: !ban Andreas-Jx !T 1d spam
[08:51:53] ChanServ: +b Andreas-Jx!*@*
[08:51:53] ChanServ: ChanServ kicked Andreas-Jx: spam
[08:51:58] Philipp_: I wonder why is see so many 302 requests
[08:52:02] zenspider: wow. faster than me
[08:52:07] zenspider: that's how it works
[08:53:13] Philipp_: the problem is not that a single gem is to slow, I have to install about 10 of these... so this adds up
[08:53:34] jhass: I think you've been giving a suggestion to try out
[08:53:49] jhass: basically restating your problem won't change it
[08:55:16] [k-: has joined #ruby
[08:55:17] Philipp_: ok thanks for your help
[08:55:45] anisha: has joined #ruby
[08:57:08] serivich: has joined #ruby
[08:58:31] leat: has joined #ruby
[08:58:32] zacstewart: has joined #ruby
[08:58:48] zacstewart: has joined #ruby
[09:03:20] posixpascal: has joined #ruby
[09:03:29] waka: has joined #ruby
[09:08:25] tjbiddle: has joined #ruby
[09:08:56] quimrstorres: has joined #ruby
[09:11:41] eGGsha: has joined #ruby
[09:14:46] Igorshp: has joined #ruby
[09:15:12] fella5s: has joined #ruby
[09:17:23] Igorshp: has joined #ruby
[09:18:27] astrobun_: has joined #ruby
[09:18:31] yuuvee: has joined #ruby
[09:19:02] chussenot: has joined #ruby
[09:19:45] dtcristo: has joined #ruby
[09:21:14] GeissT: has joined #ruby
[09:23:50] Igorshp: has joined #ruby
[09:24:14] cheeti: has joined #ruby
[09:25:23] cheeti: hi, how to convert pdf to csv using ruby code
[09:25:35] djbkd_: has joined #ruby
[09:26:20] senayar: has joined #ruby
[09:26:24] bnagy: cheeti: I suggest not doing that
[09:26:29] cheeti: apeiros hi, how to convert pdf to csv using ruby code
[09:26:33] bnagy: try wrapping something like pdftotext
[09:26:41] apeiros: cheeti: that's rather vague
[09:26:58] apeiros: cheeti: you do realize that a pdf can contain anything and is just a bunch of "painting" instructions?
[09:27:35] apeiros: in other words: there are no generic solutions to convert a pdf to a csv at all, whether ruby or not. it'd always be a case specific solution.
[09:27:56] PierreRambaud: has joined #ruby
[09:28:44] gagrio: has joined #ruby
[09:28:45] cheeti: bnagy my client requirment is like that only. i converted using tabula gem it's working but i have some conditions
[09:29:10] ta: has joined #ruby
[09:29:49] canton7: cheeti, presumably you've got a sample PDF you need to convert?
[09:29:50] krz: has joined #ruby
[09:30:00] lokulin: has joined #ruby
[09:30:57] matcouto: has joined #ruby
[09:31:24] shevy: cheeti try to convert it into html then parse that :D
[09:31:35] tonini: has joined #ruby
[09:31:40] bnagy: cheeti: uh that seems to be some terrifying bundled legacy java jar
[09:32:46] bnagy: I would be completely floored if you find a pdf parser in native ruby
[09:33:29] ljarvis: https://github.com/yob/pdf-reader
[09:34:18] apeiros: bnagy: I want that pic of you floored :D
[09:34:46] bnagy: hahahah hahaha
[09:34:47] apeiros: too sad though that this reader can't extract JBIG (or whatever that format name was) images
[09:34:57] bnagy: that person is a maniac :)
[09:35:39] workmad3: has joined #ruby
[09:35:47] bnagy: boo https://github.com/yob/pdf-reader/blob/master/lib/pdf/reader/text_receiver.rb deprecated
[09:36:13] yorickpeterse: yay quarterly reports
[09:36:42] arup_r: has joined #ruby
[09:37:02] bnagy: ah ok it got moved up
[09:37:58] schaerli: has joined #ruby
[09:39:11] bnagy: ljarvis: thanks :)
[09:39:18] icosa1: has joined #ruby
[09:39:19] flughafen: shevy: have you shevy'd anyhthing today?
[09:39:35] shevy: not really, not feeling super awake, damn heatwave :(
[09:39:43] flughafen: shevy: how warm is it?
[09:39:55] flughafen: it's only 24 here right now
[09:40:50] zenspider: I would kill for 24... that sounds about perfect. I'd throw snowballs and smash ice in potholes
[09:40:56] _blizzy_: has joined #ruby
[09:40:56] eGGsha: has joined #ruby
[09:41:15] shevy: 26.4? and rising, it's still early, but I am near the top of the building so it's hotter inside
[09:41:28] flughafen: the high here wiill be 28. but we have klima in our office!
[09:41:33] railsraider: has joined #ruby
[09:41:44] zenspider: for the record, it was 35 here today
[09:42:02] flughafen: sounds like you should make an igloo zenspider
[09:42:04] lordkryss: has joined #ruby
[09:42:16] zenspider: and is prolly 24C outside right now, at 2:40AM
[09:42:27] zenspider: I would LOVE an igloo right now.
[09:42:27] adaedra: 23??C here
[09:42:30] zenspider: until it melted
[09:42:32] needyou: can someone help me ?
[09:42:51] flughafen: sure needyou
[09:43:16] zenspider: I thought jhass did help?
[09:43:27] needyou: jeah running in some error
[09:43:35] needyou: pastebin.com/yRYTXdXY
[09:43:36] ruboto: needyou, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/568de67a2a1add2e8407
[09:43:36] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[09:43:36] hectortrope: has joined #ruby
[09:43:39] dfockler: has joined #ruby
[09:43:55] sevenseacat: has joined #ruby
[09:44:23] stamina: has joined #ruby
[09:44:25] adaedra: what's the error?
[09:44:29] needyou: just a second
[09:44:47] ruboto: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[09:44:49] needyou: syntax error, unexpected ..., expecting ')'
[09:45:01] flughafen: needyou: paste it
[09:45:57] timonv: has joined #ruby
[09:46:36] ndrei: has joined #ruby
[09:46:41] needyou: pastebin.com/eQzL0spb
[09:46:41] ruboto: needyou, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/478f32f938900aec490c
[09:46:42] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[09:46:43] needyou: flughafen:
[09:47:00] flughafen: ?gist needyou
[09:47:00] ruboto: needyou, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[09:47:06] zenspider: unexpected "..."
[09:47:16] adaedra: well, you need to replace ... by something meaningful
[09:48:00] apeiros: the art of ignoring a hint
[09:48:24] flughafen: the error is clear here, but for future reference upload your code also to gist.github.com
[09:48:43] _blizzy_: has joined #ruby
[09:49:14] needyou: okay fixed
[09:49:38] needyou: undefined local variable or method 'by_status' for main:Object (NameError ) ???
[09:50:22] simplyianm: has joined #ruby
[09:52:52] allomov_: has joined #ruby
[09:52:52] fabrice31: has joined #ruby
[09:53:00] jhass: apeiros: why didn't it track that it already informed :( Should've been a bit more snarky the second time
[09:54:16] fabrice31_: has joined #ruby
[09:55:45] fgo: has joined #ruby
[09:56:04] workmad3_: has joined #ruby
[09:56:04] allomov: has joined #ruby
[09:56:37] sdothum: has joined #ruby
[09:56:38] bruno-: has joined #ruby
[09:58:16] msgodf: has joined #ruby
[09:58:49] allomov: has joined #ruby
[09:59:10] Soda: has joined #ruby
[10:01:18] needyou: jhass: how can i realise the status_by function thought of parsing the event id and the responseStatus of the current event
[10:01:52] lkba: has joined #ruby
[10:02:08] lkba_: has joined #ruby
[10:02:34] jhass: needyou: don't blindly copy paste the snippets I gave you, understand what they would do, look at the docs of the involved methods
[10:02:42] jhass: then that question will resolve itself
[10:03:51] tesuji: has joined #ruby
[10:04:43] bodgix: has joined #ruby
[10:05:42] bricker: has joined #ruby
[10:06:30] dionysus69: has joined #ruby
[10:12:15] ta: has joined #ruby
[10:14:02] valkyrka: has joined #ruby
[10:18:51] peter_paule: has joined #ruby
[10:18:54] senayar: has joined #ruby
[10:21:13] mcnesium: has joined #ruby
[10:22:03] mcnesium: can anyone point me to what is the problem with installing the rugged gem? http://pastie.org/private/camhpx5zqihik8uwigyfha
[10:22:50] jhass: quote "Check the mkmf.log file for more details."
[10:23:44] mcnesium: i can't find that one though
[10:24:03] avat: has joined #ruby
[10:25:12] jhass: "Gem files will remain installed in /usr/local/lib/ruby/gems/2.2.0/gems/rugged-0.22.2 for inspection"
[10:25:50] ArchRogem: has joined #ruby
[10:26:53] zacstewart: has joined #ruby
[10:26:57] mcnesium: no mkmf.log in there either
[10:27:16] serivich: has joined #ruby
[10:27:30] zenspider: find /usr/local/lib/ruby/gems/2.2.0 -name mkmf.log
[10:27:36] zenspider: I think they got moved to ext
[10:27:44] tubulife-: has joined #ruby
[10:27:48] zacstewart: has joined #ruby
[10:28:07] mcnesium: ah got it :)
[10:28:27] mcnesium: Error: /usr/bin/xcode-select returned unexpected error.
[10:28:46] nyuszika7h: has joined #ruby
[10:29:27] jhass: I hope that's not all it says
[10:29:52] mcnesium: no, it says cmake couldnt find the compiler
[10:30:32] mcnesium: which is weird, because I use homebrew all the time and this is ruby as well, right?
[10:32:58] schaerli: has joined #ruby
[10:33:33] max_v: has joined #ruby
[10:34:30] htmldrum: has joined #ruby
[10:34:37] mcnesium: here is the full output with extended error files http://pastie.org/pastes/10302197/text?key=keedmm17p0lbo9xki4atwg
[10:36:00] adaedra: looks like Xcode is not installed though
[10:36:17] adaedra: ah no wait, misread
[10:36:54] adaedra: mcnesium: could run `brew doctor` once to see if there isn't any issue with the installation
[10:37:15] arturaz: has joined #ruby
[10:37:32] mcnesium: its actually not a homebrew issue, I am trying to get diaspora running
[10:37:50] adaedra: yeah, I know
[10:38:07] adaedra: but this could highlight a problem in the build environment
[10:38:33] mcnesium: ok ill check
[10:39:52] phutchins: has joined #ruby
[10:40:19] dubkoidragon: has joined #ruby
[10:40:53] mcnesium: it only complained about not being updated within 24h and about non-prefixed findutils (which is python-related, but also obsolete)
[10:42:51] judofyr: has joined #ruby
[10:42:55] ndrei: has joined #ruby
[10:43:38] Tritone: has joined #ruby
[10:43:53] ta: has joined #ruby
[10:46:18] jhass: https://github.com/libgit2/rugged/issues/489#issuecomment-110373464 ?
[10:47:37] quimrstorres: has joined #ruby
[10:47:41] jhass: https://github.com/Homebrew/homebrew/issues/17102#issuecomment-21870365 ?
[10:48:05] mcnesium: hm wouldnt tell homebrew if xcode is not up to date?
[10:48:08] jhass: https://github.com/Homebrew/homebrew/issues/10245#issuecomment-4013587
[10:48:20] jhass: that's all I kind find on google
[10:48:21] granthatcher: has joined #ruby
[10:48:39] adaedra: mcnesium: should, but go look in the mac app store, it will tell ya
[10:49:03] mcnesium: I dont have the full Xcode package, just the command line tools
[10:49:04] granthatcher: has joined #ruby
[10:49:34] adaedra: that changes things
[10:51:19] mcnesium: and i am on osx lion :)
[10:51:19] shevy: come to linux!
[10:51:38] mcnesium: lol is that a bot?
[10:51:59] fabrice31: has joined #ruby
[10:52:09] adaedra: lion, that begins to be old
[10:52:16] eGGsha: has joined #ruby
[10:52:25] granthatcher: has left #ruby: ()
[10:52:51] mcnesium: right, but this is on an mbp 3,1 2,2GHz and I dont trust apple when they say their newer OS wont slow down the system
[10:53:49] adaedra: you may want to try setting the c compiler manually like proposed in thre trace
[10:57:53] sp1rs: has joined #ruby
[10:59:08] shevy: adaedra do you use linux
[10:59:22] adaedra: shevy: depends. Right now, yes.
[10:59:42] leat: has joined #ruby
[11:00:14] tmtwd: has joined #ruby
[11:01:25] adaedra: [k-: sorry to have a life besides #ruby
[11:02:42] htmldrum: has joined #ruby
[11:03:13] decoponyo: has joined #ruby
[11:04:01] mcnesium: adaedra: you mean when trying to install the rugged gem I can set the compiler manually?
[11:04:30] mcnesium: looks like I cannot upgrade xcode CLT anymore on lion
[11:05:12] adaedra: ???Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH."
[11:05:37] tkuchiki: has joined #ruby
[11:06:32] mcnesium: I dont know how to do that???
[11:07:02] adaedra: setting the env variable CC should do it
[11:09:18] mcnesium: and what do I set it to? I dont know where I have to look for the right compiler
[11:11:01] adaedra: usually it's gcc
[11:11:08] fabrice31: has joined #ruby
[11:11:12] adaedra: export CC="gcc"
[11:11:28] bruno-: has joined #ruby
[11:11:52] dgutierrez1287: has joined #ruby
[11:13:48] mcnesium: but it didnt change the error message :(
[11:14:11] mcnesium: also tried export CC="/usr/bin/gcc"
[11:14:16] mcnesium: same no difference
[11:15:31] al2o3-cr: has joined #ruby
[11:15:49] fabrice31_: has joined #ruby
[11:16:14] tkuchiki: has joined #ruby
[11:16:37] tomaz_b: has joined #ruby
[11:18:03] olblak: has joined #ruby
[11:18:19] Igorshp: has joined #ruby
[11:19:22] Jeff_D: has joined #ruby
[11:20:07] mcnesium: is it really necessary to dist-upgrade osx to get a later CLT to have this one gem compiled correctly to get diaspora running ?
[11:20:44] adaedra: I won't say so
[11:21:33] mcnesium: good, I assume this would open more issues than it would fix
[11:22:12] Jeff_D: MiniTest::Matchers question: is there an accepted way to pass multiple parameters, a la #chain in RSpec? Or is it customary to create a standalone class not matching the Matchers API, and then just use something like `test_instance.must be_valid` ?
[11:22:56] sarkyniin: has joined #ruby
[11:23:39] c355E3B: has joined #ruby
[11:25:25] Kharma: has joined #ruby
[11:25:43] [k-: I thought I got pinged for something special
[11:25:57] [k-: it's just you, adaedra >:3
[11:26:13] adaedra: [k-: same reaction this morning opening my client
[11:26:56] [k-: good for you! pings from me are always good!
[11:26:57] adaedra: mcnesium: just have to find the way of supplying it the right compiler. Don't know exactly how though. Read the trace well, there may be clues.
[11:27:24] tkuchiki: has joined #ruby
[11:27:32] quimrstorres: has joined #ruby
[11:27:33] thiagovsk: has joined #ruby
[11:27:37] haxrbyte: has joined #ruby
[11:29:16] Blaguvest: has joined #ruby
[11:29:18] Igorshp: has joined #ruby
[11:29:24] [k-: xcode was available on lion
[11:29:52] [k-: however apple just made it available on Yosemite only
[11:30:39] kp666: has joined #ruby
[11:30:43] adaedra: not the problem, should be able to build without it
[11:32:22] Shidash: has joined #ruby
[11:33:22] [k-: there's no gcc without it
[11:33:48] [k-: I have the whole darn thing installed
[11:34:04] [k-: it hijacks all the dem file extensions :(
[11:34:16] tjbiddle: has joined #ruby
[11:35:01] mcnesium: gcc -v gives gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
[11:35:36] symm-: has joined #ruby
[11:35:38] mcnesium: without having xcode installed
[11:35:51] [k-: Yosemite drains battery much faster :c
[11:36:11] mcnesium: also yosemite is ugly as hell
[11:36:28] exadeci: has joined #ruby
[11:39:40] woodruffw: has joined #ruby
[11:40:16] Igorshp: has joined #ruby
[11:41:54] ldnunes: has joined #ruby
[11:41:56] adaedra: [k-: there's totally gcc without xcode. You can use command line tools alone, or use a 3rd party gcc.
[11:42:37] adaedra: And yeah, Yosemite looks like shit, but at least I can send SMSs from my computer! \o/
[11:42:55] schaerli: has joined #ruby
[11:42:56] [k-: it looks worse :(
[11:43:37] pwnz0r: has joined #ruby
[11:43:39] mcnesium: adaedra: lol thats a killer feature
[11:43:45] Scripore: has joined #ruby
[11:44:05] fgo: has joined #ruby
[11:44:51] sankaber: has joined #ruby
[11:46:49] tkuchiki: has joined #ruby
[11:48:37] fabrice31: has joined #ruby
[11:49:15] tkuchiki: has joined #ruby
[11:49:31] axl__: has joined #ruby
[11:49:36] diegoviola: has joined #ruby
[11:50:58] arturmartins: has joined #ruby
[11:52:33] crunk_bear: has joined #ruby
[11:53:34] endash: has joined #ruby
[11:54:37] fabrice31: has joined #ruby
[11:56:24] ybian: has joined #ruby
[11:57:37] schaerli: has joined #ruby
[11:58:52] nettoweb: has joined #ruby
[11:59:02] Papierkorb: has joined #ruby
[11:59:19] centrx: has joined #ruby
[11:59:37] griffindy: has joined #ruby
[12:00:16] centrx: Good morning ladies, and shevy
[12:01:03] rideh: has joined #ruby
[12:01:15] yuuvee: has joined #ruby
[12:01:47] [k-: you need to be more inclusive, centrx
[12:02:00] [k-: --shevy
[12:02:18] adaedra: free(shevy);
[12:02:24] shevy: let loose the beast!
[12:03:37] centrx: memory not found
[12:03:53] shevy: what do you guys think of configuration files kept in yaml files only, in a directory, with the convention of one yaml file per configuratable option?
[12:04:31] Silex: shevy: surely you mean one yaml per configurable "logical set of options"?
[12:04:50] adaedra: no no, one file per option, like gconf does.
[12:04:55] adaedra: because it makes so much sense.
[12:05:00] [k-: I would cry if there was one yaml file for one configuratable option
[12:05:12] [k-: adaedra: indeed
[12:05:17] Silex: if the configuration files each contain one line I'd cry too yes
[12:05:20] shevy: hmm... doesn't gconf use xml?
[12:05:23] mary5030: has joined #ruby
[12:05:29] shevy: Silex yes! one option only
[12:05:46] Silex: it's not even yaml as this point
[12:05:48] Silex: the file name is the key
[12:05:53] Silex: and the content is the value
[12:05:54] eGGsha: has joined #ruby
[12:06:07] Zai00: has joined #ruby
[12:07:30] Rutix: has joined #ruby
[12:07:31] Rutix: has joined #ruby
[12:08:19] timonv_: has joined #ruby
[12:08:27] Spami: has joined #ruby
[12:08:44] cubicool: has joined #ruby
[12:08:53] crunk_bear: has joined #ruby
[12:10:15] cubicool: Hey folks. I find myself needing to programmatically generate single strings from data within hashes, and I'm looking for syntactic alternatives to doing it imperatively. In Python, for example, I can pass a generator to ''.join(). Can anyone provide any hints on this?
[12:11:12] centrx: cubicool, Can you give an example? A Ruby Enumerator is like a generator
[12:11:13] cubicool: Something like: hash.each { |k, v| v }.values.join ' ' should work for small cases, I think.
[12:11:35] centrx: hash.values is the same as hash.each { |k,v| v } right?
[12:11:44] [k-: so you want to grab the values only?
[12:11:56] prestorium: has joined #ruby
[12:11:57] cubicool: That example was too simple, sorry.
[12:12:21] cubicool: Something more complicated is where I build a new value using the key and value...
[12:12:24] allcentury: has joined #ruby
[12:12:29] [k-: Hash#map
[12:12:51] [k-: this will return a associative array though
[12:12:58] cubicool: hash.each { |k, v| "#{k}=#{v}" }.values.join ' / '
[12:13:23] centrx: Yeah you're looking for map
[12:13:27] [k-: cubicool: Hash#map
[12:13:27] centrx: not sure what the values is in there for
[12:14:15] cubicool: [k-: Perfect, thanks. How did I miss that.
[12:14:55] [k-: cubicool you should read messages even if they don't prefix your name :)
[12:15:16] DEA7TH_: has joined #ruby
[12:15:30] revath: has joined #ruby
[12:15:53] tubulife-: has joined #ruby
[12:15:57] victortyau: has joined #ruby
[12:17:35] senayar: has joined #ruby
[12:17:35] senayar: has joined #ruby
[12:18:06] workmad3: centrx: it would be the same as hash.map { |k,v| v }
[12:18:20] workmad3: but got there :)
[12:19:18] serivich: has joined #ruby
[12:21:39] schaerli: has joined #ruby
[12:22:17] needyou: can someone explain or show me how i can clean up the code i mean how would u use a class for this code ? pastebin.com/ETzQ0Gh7
[12:22:17] ruboto: needyou, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/0461d16cb01b79a72056
[12:22:18] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[12:22:26] juanpaucar: has joined #ruby
[12:22:28] sp1rs: has joined #ruby
[12:23:31] rht: has joined #ruby
[12:24:18] jhass: needyou: how many more times do you want to trigger ^ ?
[12:25:36] pepperbreath: has joined #ruby
[12:25:48] jhass: needyou: also properly indent code and remove comment cruft before submitting it to review
[12:25:59] centrx: has joined #ruby
[12:26:16] jhass: the group_by doesn't do anything if you ignore its return value, so again read up on what I could've meant with it, why it might be useful
[12:26:56] jhass: keep your lines below 120 characters, Ruby is pretty liberal on where it accepts newlines
[12:27:03] Tritone_: has joined #ruby
[12:27:41] christiandsg: has joined #ruby
[12:28:07] mary5030: has joined #ruby
[12:28:47] stopbyte: has joined #ruby
[12:28:59] [k-: needyou: this is proof that jhass spoke the truth: https://eval.in/392793
[12:29:40] timonv: has joined #ruby
[12:30:00] davejlong: has joined #ruby
[12:30:23] [k-: I should bookmark that link
[12:30:28] leat: has joined #ruby
[12:30:35] [k-: it is a great example on how to write code!
[12:30:43] jhass: [k-: I like the output. It reflects my feelings about the code
[12:30:58] desigx: has joined #ruby
[12:30:59] sgambino: has joined #ruby
[12:31:14] [k-: I predicted that before hand and made the code do it :3
[12:31:34] Kully3xf: has joined #ruby
[12:34:01] helpa: has joined #ruby
[12:34:07] ljarvis: cubicool: use do..end
[12:34:37] jhass: dubkoidragon: I see only one answer
[12:35:20] cubicool: ljarvis: I'm having trouble seeing how to use that syntax. I keep getting an Enumerator, so its just misuse on my part clearly. :)
[12:35:21] DoubleMalt: has joined #ruby
[12:35:45] needyou: someone got a good online curse for learning ruby basics ? class, yield blocks etc ?
[12:35:46] dhjondoh: has joined #ruby
[12:35:50] ljarvis: cubicool: could you show me your code?
[12:35:54] dubkoidragon: https://gist.github.com/dubkoidragon/ecafc8373394c5ac68ce
[12:36:00] t0rrieri: has joined #ruby
[12:36:07] centrx: needyou, tryruby.org, Ruby Monk, Ruby Koans
[12:36:09] kkeuning: has joined #ruby
[12:36:19] tesuji: has joined #ruby
[12:36:40] jhass: dubkoidragon: click edit, activate syntax highlighting
[12:36:41] [k-: he wants a curse
[12:37:15] jhass: dubkoidragon: also fix you indention, Ruby community standard is 2 spaces but yours is not even consistently indented
[12:37:17] dubkoidragon: jhass i hit edit where is thsi syntax highlighting
[12:37:25] jhass: top left next to the filename
[12:37:27] al2o3-cr: dubkoidragon: you're not assigning
[12:37:29] but3k4: has joined #ruby
[12:37:29] krz: has joined #ruby
[12:37:31] jhass: or just name it whatever.rb
[12:37:47] awk: Please can someone help the ruby noob... http://pastebin.com/2RZCW0BA ... when it runs that git, it failed because it doesn't exist ... so I want to use if $? = 1 ... tell me it may be missing... if I remove the whole if .... and I run the script and then do a echo $? I get a 1, so I knoww it's failing.. just not sure why it's not doing the if $? after it's run ?
[12:37:48] ruboto: awk, as I told you already, please use https://gist.github.com
[12:37:48] amystephen: has joined #ruby
[12:37:55] kkeuning: has joined #ruby
[12:37:58] centrx: needyou, Curse: May you forever be unable to learn Ruby, or to learn anything it all. In the name of Satan, FU
[12:37:59] dubkoidragon: i dontk now how to do any of this
[12:38:29] cubicool: ljarvis: Yes, one sec. :)
[12:38:38] jhass: dubkoidragon: it's where we all started. Purge that thought
[12:39:03] dubkoidragon: ok so basically im unhelpable hey
[12:39:08] ljarvis: awk: what library are you using?
[12:39:28] jhass: dubkoidragon: just do as I said, two simple things to make it easy for people to help you
[12:39:38] kkeuning: has joined #ruby
[12:39:39] dubkoidragon: i made it .rb
[12:39:49] jhass: syntax highlighting, yes. Indentation not so much
[12:39:57] awk: require 'git'
[12:40:04] awk: @ljarvis:
[12:40:07] jhass: dubkoidragon: so, why do you use @@class_vars in the first place?
[12:40:16] dubkoidragon: becasue thats what im learning right now
[12:40:20] polpy: has joined #ruby
[12:40:28] bnagy: who is teaching you this?
[12:40:40] jhass: and what are they arguing why it fits the usecase?
[12:40:42] bnagy: they are bad and they should feel bad
[12:40:50] dubkoidragon: myself,, just please this is a small part of what i need and its bother me that i get this error and i cant ifgure it out
[12:40:54] polpy: has left #ruby: ()
[12:41:04] cubicool: ljarvis: https://gist.github.com/cubicool/392373afbc9c77984389 Obviously the 2nd syntax won't work, I'm reading some docs now to see what I need though.
[12:41:11] dubkoidragon: shit i think im retarded
[12:41:13] jhass: well, those @@class_vars really really want to be CONSTANTS
[12:41:33] segfalt: has joined #ruby
[12:41:39] dubkoidragon: yah i forgot the =
[12:41:46] ljarvis: cubicool: that's the example you've been given?
[12:42:08] cubicool: It's what I just pasted to help demonstrate my question.
[12:42:13] dubkoidragon: ok that part is fixed now it has another bug, ill see ifi can figure it out
[12:42:27] ljarvis: cubicool: basically `end.foo` is generally not ideal. You should use { } if you're chaining methods
[12:43:00] [k-: ljarvis: I totally used end.foo in my example code ;)
[12:43:12] balazs_: has joined #ruby
[12:43:19] ljarvis: [k-: you also post 90% awful code so that's not surprising
[12:43:41] ljarvis: give or take 10%
[12:43:46] [k-: you can make that 100%, everyone believes so anyway
[12:44:04] cubicool: ljarvis: Why does Rubocop warn me about multi-line bodies when using {}?
[12:44:16] mikecmpbll: cubicool: because it's against the rubocop style guide?
[12:44:21] cubicool: Clealry, but.
[12:44:26] mikecmpbll: do .. end ..
[12:44:33] [k-: its the current convention to use {} for single lines
[12:44:38] cubicool: I'm giving it enough credit and assuming it knows something I don't. :)
[12:44:38] cochise: has joined #ruby
[12:44:45] jhass: cubicool: I turned that off because I follow Weirichs rule
[12:44:50] ljarvis: cubicool: if you use {} for multi-line blocks it's fine if there's method chaining, otherwise you should use do..end
[12:44:55] segfalt_: has joined #ruby
[12:45:02] ljarvis: does it actually promote using do..end and method chaining? (surely not)
[12:45:11] fgo: has joined #ruby
[12:45:17] jhass: ljarvis: no it yells at you if you change it to that
[12:45:36] ljarvis: that's ok with me
[12:45:55] mikecmpbll: i suspect it tells you not to use multiline body with { } regardless of chaining
[12:46:02] jhass: yeah, but annoying if you change your perfectly fine multiline }.foo to that
[12:46:06] ljarvis: cubicool: you should just tweak the settings to make it match what you want. It's about consistency, not confirmity (imo)
[12:46:21] ljarvis: conformity*
[12:46:24] dubkoidragon: holy moly that had so many holes in it but i figured it out, thx for the help
[12:46:28] bruno-: has joined #ruby
[12:46:44] jhass: Rubocop config sharing party? Rubocop config sharing party! https://gist.github.com/jhass/a5ae80d87f18e53e7b56
[12:47:05] ljarvis: stopped reading
[12:47:19] cubicool: It wants "leading dots"... hmmm.
[12:47:20] shevy: I cheer for cheerleaders so I cheer for jhass \o/
[12:47:32] shevy: one day the world will run out of dots
[12:48:04] chussenot: has joined #ruby
[12:48:44] jhass: ljarvis: you're running a 90s terminal still?
[12:48:44] shevy: let me run rubocop with jhass style
[12:49:08] shevy: it works if I create .rubocop.yml in my home dir yes?
[12:49:18] jhass: shevy: note I stole half of it from apeiros
[12:49:29] valkyrka: has joined #ruby
[12:49:34] jhass: unless you have one in your project which overrides it again
[12:49:35] shevy: well I assume it will be distinct to the "official" style
[12:49:42] shevy: and the official style gives me about a million warnings
[12:50:02] [k-: # Too short methods lead to extraction of single-use methods, which can make
[12:50:02] [k-: # the code easier to read (by naming things), but can also clutter the class
[12:50:02] [k-: Metrics
[12:50:12] [k-: we write short methods in Haskell
[12:50:18] [k-: and we compose them together
[12:50:22] christiandsg: has joined #ruby
[12:50:26] shevy: jhass is that rubocop file valid?
[12:50:31] simplyianm: has joined #ruby
[12:50:40] cubicool: Here is the justification (according to Rubocop): https://github.com/bbatsov/ruby-style-guide#single-line-blocks
[12:50:40] shevy: perhaps I made a mistake but the last entry seems weird
[12:50:42] ljarvis: [k-: the next time you talk about Haskell you're getting a timeout for a day
[12:51:10] shevy: ok last "Enabled: false" should probably be " Enabled: false", now it works
[12:51:28] zacstewart: has joined #ruby
[12:51:34] shevy: "12826 offenses detected" hmmmmm
[12:51:47] [k-: we need to promote it so that there is further adoption
[12:51:50] prefixed: has joined #ruby
[12:51:56] [k-: it's a nice language to know
[12:52:00] jhass: cubicool: https://web.archive.org/web/20140221124509/http://onestepback.org/index.cgi/Tech/Ruby/BraceVsDoEnd.rdoc and here's the origin of the other school
[12:52:03] [k-: I love it more than ruby
[12:52:13] [k-: I still write a lil Ruby tho
[12:52:23] ljarvis: [k-: yes, but it's offtopic and this is not the place to discuss it. So please stop
[12:52:28] [k-: I wonder if I can make graphs with ruby
[12:52:34] [k-: alright, ljarvis
[12:52:41] shevy: graphviz + gruff
[12:52:57] [k-: but that isn't written in Ruby or is it
[12:53:01] shevy: https://rubygems.org/gems/gruff
[12:53:13] shevy: I think it uses graphviz underneath
[12:53:34] shevy: but the charts are fancy!
[12:53:53] [k-: I need scattered graphs tho
[12:54:28] shevy: mikecmpbll it actually finds some minor typos and such... "Space inside parentheses detected." indeed... I had one line like this: -> copy( input
[12:55:05] mikecmpbll: ah, when i took over this codebase every method call was like that
[12:55:22] tkuchiki: has joined #ruby
[12:55:31] [k-: so did you refactor or did you continue?
[12:55:35] linuxboytoo: has joined #ruby
[12:56:05] mikecmpbll: refactorized??? with regex replace
[12:58:56] chussenot: has joined #ruby
[12:59:17] Igorshp: has joined #ruby
[13:01:10] Rubie: has joined #ruby
[13:01:46] dhjondoh: has joined #ruby
[13:03:51] leat: has joined #ruby
[13:05:06] devbug: has joined #ruby
[13:08:09] adegre: has joined #ruby
[13:09:20] atomical: has joined #ruby
[13:09:26] bricker: has joined #ruby
[13:09:52] bungoman: has joined #ruby
[13:09:57] lavros: has joined #ruby
[13:11:11] bmurt: has joined #ruby
[13:11:21] eGGsha: has joined #ruby
[13:13:52] quimrstorres: has joined #ruby
[13:13:52] chussenot: has joined #ruby
[13:14:40] Pupeno: has joined #ruby
[13:14:40] Pupeno: has joined #ruby
[13:14:56] monstordh: has joined #ruby
[13:15:17] fumihiro: has joined #ruby
[13:15:23] lkba: has joined #ruby
[13:15:56] ndrei: has joined #ruby
[13:16:39] malconis: has joined #ruby
[13:16:54] chussenot: has joined #ruby
[13:17:36] malconis: has joined #ruby
[13:17:51] arup_r1: has joined #ruby
[13:18:46] fabrice31_: has joined #ruby
[13:19:05] Scripore: has joined #ruby
[13:19:06] jgpawletko: has joined #ruby
[13:19:20] desigx: has joined #ruby
[13:20:16] mhib: has joined #ruby
[13:20:24] shevy: is ['a','b','c'] called the Array literal method?
[13:20:30] DEA7TH_: has joined #ruby
[13:21:41] leat: has joined #ruby
[13:21:53] infinitestate: has joined #ruby
[13:22:35] ruurd: has joined #ruby
[13:23:05] adaedra: ['a','b','c'] = %w[a b c]
[13:23:21] [k-: that's the percent literal
[13:23:46] adaedra: that's shorter
[13:23:55] bronson: has joined #ruby
[13:24:03] mikecmpbll: http://ruby-doc.org/core-2.1.1/doc/syntax/literals_rdoc.html
[13:24:16] mikecmpbll: "Adjacent string literals are automatically concatenated by the interpreter: "foo" "bar" #=> "foobar"
[13:24:26] ruurd: has joined #ruby
[13:24:28] cochise: has joined #ruby
[13:24:39] mikecmpbll: i wonder how they're concatenated internally
[13:24:39] shevy: -> is the proc literal?
[13:24:49] [k-: I learnt that awhile ago but I don't use it
[13:24:54] adaedra: mikecmpbll: so you can write it on multiple lines. That comes from C.
[13:25:00] [k-: it's the lambda literal
[13:25:01] mikecmpbll: adaedra: interesting
[13:25:05] gwendall: has joined #ruby
[13:25:10] shevy: but that pages says so
[13:25:19] [k-: if you puts a -> you will see its a lambda
[13:25:21] schaerli_: has joined #ruby
[13:25:38] fabrice31: has joined #ruby
[13:25:38] mikecmpbll: but a lambda is a proc, right? :p
[13:25:51] mikecmpbll: >> ->{}.class
[13:25:53] ruboto: mikecmpbll # => Proc (https://eval.in/401552)
[13:26:01] allcentury: has joined #ruby
[13:26:03] mikecmpbll: >> lambda{}.class
[13:26:04] ruboto: mikecmpbll # => Proc (https://eval.in/401553)
[13:26:09] chussenot: has joined #ruby
[13:26:12] adaedra: >> ->{}.inspect
[13:26:13] ruboto: adaedra # => "#<Proc:0x405045fc@/tmp/execpad-4e17039c3d41/source-4e17039c3d41:2 (lambda)>" (https://eval.in/401554)
[13:26:38] adaedra: it's the stabby literal
[13:26:50] [k-: see the (lambda) at the end
[13:27:16] [k-: >> (lambda {}).inspect
[13:27:17] ruboto: [k- # => "#<Proc:0x4179840c@/tmp/execpad-fc3b2f7b2796/source-fc3b2f7b2796:2 (lambda)>" (https://eval.in/401555)
[13:27:31] [k-: that's how lambdas are represented as well
[13:27:44] mandarinkin: has joined #ruby
[13:28:39] needyou: okay will shoot myself :D
[13:29:07] fabrice31: has joined #ruby
[13:29:19] rdar: has joined #ruby
[13:30:30] adaedra: ACTION *pang*
[13:31:00] [k-_: has joined #ruby
[13:31:22] masteraka: has joined #ruby
[13:31:35] failshell: has joined #ruby
[13:32:23] atomical: has joined #ruby
[13:33:10] jhass: has joined #ruby
[13:33:34] presto: has joined #ruby
[13:34:25] benlovell: has joined #ruby
[13:35:26] damnman: has joined #ruby
[13:35:49] Igorshp: has joined #ruby
[13:35:53] damnman: is !duh.method the same ad !(duh.method) in all cases
[13:36:08] revath: has joined #ruby
[13:36:30] [k-: yes, I believe so
[13:36:39] [k-: . has highest precedence
[13:36:45] [k-: even zenspider says so
[13:37:53] damnman: [k-: ok as long ad apeiros say so
[13:37:58] chussenot: has joined #ruby
[13:38:21] [k-: zenspider is not apeiros :(
[13:38:30] [k-: apeiros, look what you have done
[13:38:57] mikecmpbll: they'll love you for all the pointless highlights though.
[13:39:11] [k-: http://www.zenspider.com/Languages/Ruby/QuickRef.html#operators-and-precedence
[13:39:35] mary5030: has joined #ruby
[13:39:38] damnman: [k-_: seems like they forgot the . http://ruby-doc.org/core-2.2.2/doc/syntax/precedence_rdoc.html
[13:39:44] [k-: they are very magnanimous people
[13:39:47] nettoweb: has joined #ruby
[13:40:06] [k-: damnman see my link
[13:41:05] kfpratt: has joined #ruby
[13:41:22] damnman: [k-: what if you have baba,method && !duh.method .....would it still be the same? yes
[13:41:30] chussenot: has joined #ruby
[13:41:32] khando_: has joined #ruby
[13:41:37] mikecmpbll: syntax error
[13:42:14] adaedra: if you think it's ambigous, add parenthesis.
[13:42:20] adaedra: ambiguous?
[13:42:37] [k-: yes adaedra
[13:43:07] [k-: damnman, yes it works that way
[13:43:17] [k-: that's how people write their code as well
[13:43:22] damnman: adaedra: i have a bug im trying to reproduce..and i suspect that might be related
[13:43:35] [k-: >> !nil.nil?
[13:43:36] ruboto: [k- # => false (https://eval.in/401563)
[13:43:47] damnman: in my example above...&& would have highest priority right? then "." then !
[13:43:48] arup_r: has joined #ruby
[13:44:58] JoshL: has joined #ruby
[13:45:12] [k-: no, . followed by !
[13:45:26] [k-: so (blah) && (!blah)
[13:45:27] adaedra: so like he said?
[13:45:44] [k-: && is the lowest in this case
[13:45:48] [k-: . is the highest
[13:45:54] [k-: so what he said is wrong
[13:46:05] [k-: . > ! > &&
[13:46:17] fgo: has joined #ruby
[13:47:40] Igorshp: has joined #ruby
[13:48:07] damnman: yup so (!claim).declined? is the only way to negate the receiver
[13:48:11] al2o3-cr: . highest precedence?
[13:48:33] benlovel1: has joined #ruby
[13:48:50] ljarvis: damnman: that code makes no sense, it'll call declined? or true or false
[13:48:54] [k-: there is a declined? on booleans?
[13:48:54] damnman: too bad then not related to my issue
[13:49:16] rikkipitt: has joined #ruby
[13:49:25] [k-: it will evaluate !claim first and call declined on the result
[13:49:34] [k-: ?code damnman
[13:49:34] ruboto: damnman, We can't help you without your code, please post it to https://gist.github.com
[13:49:34] damnman: ljarvis: which one? i was just giving random examples
[13:49:39] ljarvis: damnman: do you actually have some problematic code?
[13:50:51] [k-: he seems to have a precedence issue
[13:51:02] damnman: ljarvis: nope...im not sure what part is problematic..im debuggin still...i suspected it could have been a precedence thing but nope since !(dub.method?) is the same as !dub.method? in all situations...ill continue investigating
[13:51:05] damnman: thanks guys
[13:51:26] ljarvis: i mean.. if you showed us code we could probably help you
[13:51:53] prefixed: has joined #ruby
[13:52:15] rbennacer: has joined #ruby
[13:52:16] niemcu: has joined #ruby
[13:52:45] bffff_: has joined #ruby
[13:53:11] damnman: ljarvis: dude im aware of that..its useless until i reduce the scope... its 1000000000000lines of code
[13:53:50] sarkyniin: has joined #ruby
[13:53:54] t0rrieri: has joined #ruby
[13:53:56] [k-: thanks!
[13:54:00] [k-: less work!
[13:54:10] [k-: look jhass, the perfect one!
[13:54:31] shredding: has joined #ruby
[13:54:36] aryaching: has joined #ruby
[13:54:43] ljarvis: one trillion lines of code
[13:54:45] ljarvis: impressive
[13:55:06] ljarvis: >> require 'base64'; Base64.decode64(" aG$*Vs \t\rbG*(@8g*#@($#d2 __)9::ybG~~Q \t")
[13:55:07] ruboto: ljarvis # => "hello world" (https://eval.in/401609)
[13:55:13] miwood: has joined #ruby
[13:55:47] paulcsmith: has joined #ruby
[13:56:25] [k-: thanks for the contribution to libobf
[13:56:29] jpfuentes2: has joined #ruby
[13:56:40] benlovell: has joined #ruby
[13:56:50] atomical: has joined #ruby
[13:57:06] apeiros: damnman: zenspider was here before me. I learned ruby's precedence from his quickref ;-)
[13:59:28] masteraka: has joined #ruby
[14:00:02] masteraka: hi there, I'm looking for some help with debugging Ruby C Extensions
[14:00:36] masteraka: is there a way to debug a c extension in e.g. Eclipse?
[14:00:56] cubicool: has left #ruby: ()
[14:01:08] vondruch: has joined #ruby
[14:01:57] [k-: masteraka, just wait a little, eventually someone who has debugged c extensions before will come to your aid :)
[14:02:07] choppington: has joined #ruby
[14:02:49] greedo: has joined #ruby
[14:03:14] j4cknewt: has joined #ruby
[14:03:44] jamesaxl: has joined #ruby
[14:04:25] tubulife-: has joined #ruby
[14:04:54] ragingcake_: has joined #ruby
[14:06:49] troulouliou_div2: has joined #ruby
[14:07:15] max_v: has joined #ruby
[14:07:56] havenwood: has joined #ruby
[14:09:01] senayar: has joined #ruby
[14:09:06] fabrice31_: has joined #ruby
[14:09:55] CloCkWeRX: has joined #ruby
[14:13:32] dorei: has joined #ruby
[14:13:41] csmb: has joined #ruby
[14:13:42] ruurd: has joined #ruby
[14:14:13] juanpaucar: has joined #ruby
[14:14:56] msnyon: has joined #ruby
[14:15:40] treehug88: has joined #ruby
[14:17:09] ragingcake: has joined #ruby
[14:17:44] chouhoulis: has joined #ruby
[14:18:45] bruno-: has joined #ruby
[14:19:04] ragingcake: has joined #ruby
[14:19:26] DEA7TH_: has joined #ruby
[14:21:13] fabrice31: has joined #ruby
[14:22:10] dopie: has joined #ruby
[14:23:38] freerobby: has joined #ruby
[14:23:41] jerius: has joined #ruby
[14:24:49] tkuchiki: has joined #ruby
[14:25:34] Scripore: has joined #ruby
[14:25:38] ragingcake: has joined #ruby
[14:25:44] mandarinkin: how to find index of charachter from end in string?
[14:26:02] segfalt: has joined #ruby
[14:26:25] allcentury: has joined #ruby
[14:26:39] mandarinkin: http://pastie.org/10302517
[14:26:51] mandarinkin: my variant but thibk its ugly
[14:26:55] adaedra: &ri String#rindex
[14:26:55] `derpy: https://devdocs.io/ruby/string#method-i-rindex
[14:27:13] ElSif: materaka: are you in linux or mac?
[14:29:05] presto: has joined #ruby
[14:29:18] podman: has joined #ruby
[14:29:24] adaedra: mandarinkin: ^
[14:29:46] jhass: I think masteraka ^
[14:29:58] pdoherty: has joined #ruby
[14:30:21] jhass: ah, bad timing :D
[14:30:29] ElSif: yea my timing is very bad T_T
[14:30:47] jhass: your clients tab completion is too I guess :P
[14:30:59] ElSif: lol so bad it doesn't exist
[14:31:08] jhass: what a shitty client
[14:31:13] ElSif: meh, i dont mind
[14:31:18] adaedra: >no tab completion
[14:31:32] futilegames: has joined #ruby
[14:31:36] ElSif: what if i want tabs in ma stuff?
[14:31:49] jhass: this is IRC, just don't
[14:32:01] jhass: also your spelling skills say otherwise :
[14:32:20] apeiros: *speling, ftfy
[14:32:35] jhass: that's too red to submit here
[14:33:08] apeiros: grah, seems mail-gpg's Hkp class was broken :(
[14:33:36] jhass: broken, unusable stuff around gpg? impossibru!
[14:33:38] apeiros: so much for "webmail in ruby? should be easy???"
[14:33:44] hashrocket: has joined #ruby
[14:33:47] ElSif: but they got all those monies!!
[14:34:01] apeiros: who got what now?
[14:34:19] jhass: gpg did some crowdfunding
[14:34:24] ThaiWood: has joined #ruby
[14:34:33] [k-_: >2015 > with IRC
[14:34:47] adaedra: ACTION slaps [k-_
[14:34:49] melter_: has joined #ruby
[14:34:58] jhass: I'm much more curious what keybase is going to do with their recently acquired $10 million though
[14:35:05] j4cknewt_: has joined #ruby
[14:35:27] ElSif: probably a lot less than gpg will do with their ~100 thousand :)
[14:35:45] workmad3_: has joined #ruby
[14:36:01] troulouliou_div2: has joined #ruby
[14:36:04] freerobby1: has joined #ruby
[14:36:06] adaedra: And probably a lot more than the 0,10??? I found in my pocket
[14:36:07] brendan-: has joined #ruby
[14:36:11] schaerli: has joined #ruby
[14:36:15] ElSif: i dont know...
[14:36:35] AccordsLTN: has joined #ruby
[14:36:41] einarj_: has joined #ruby
[14:37:00] fromthedepths1: has joined #ruby
[14:37:01] chussenot: has joined #ruby
[14:37:02] ged_: has joined #ruby
[14:37:17] doodleha_: has joined #ruby
[14:37:26] jhass: you found blood in your pocket next to the 0.10????
[14:37:26] nateberkopec: has joined #ruby
[14:37:28] valeri_uF0: has joined #ruby
[14:37:30] alxndr_: has joined #ruby
[14:37:34] MiracleBlue_: has joined #ruby
[14:37:34] spastorino_: has joined #ruby
[14:37:44] adaedra: no, this one was in my nose
[14:37:53] Killerkeksdose: has joined #ruby
[14:38:05] eggoez: has joined #ruby
[14:38:23] [k-_: you transferred the coin into your nose?
[14:38:24] crdpink2: has joined #ruby
[14:38:41] adaedra: that would explain the bleed, but no.
[14:38:51] adaedra: I put it into my bank account.
[14:39:01] adaedra: At this speed, I'll be part of the 1% in no time.
[14:39:03] hashrocket_: has joined #ruby
[14:39:04] howdoi_: has joined #ruby
[14:39:15] [k-_: the interest will amplify in no time!
[14:39:17] TvL: has joined #ruby
[14:39:31] jtdowney_: has joined #ruby
[14:39:33] ltd: has joined #ruby
[14:39:35] Centrixx: has joined #ruby
[14:39:41] brandon: has joined #ruby
[14:39:41] ptierno_: has joined #ruby
[14:39:42] constantinexvi_: has joined #ruby
[14:39:46] miah_: has joined #ruby
[14:39:53] needyou2: has joined #ruby
[14:39:58] crankharder: has joined #ruby
[14:40:00] CJNE: has joined #ruby
[14:40:01] needyou2: hey how can i add two ariables to an array, multilevel ? like Array X Date -> Time
[14:40:12] bungoman: has joined #ruby
[14:40:17] thoraxe_: has joined #ruby
[14:40:18] adaedra: I wonder if it were a smart move to hide my bank account in Greece though.
[14:40:26] adaedra: Welcome back needyou2
[14:40:28] fumduq-: has joined #ruby
[14:40:29] marcoamo1: has joined #ruby
[14:40:33] joevandy1: has joined #ruby
[14:40:33] Nirgali43: has joined #ruby
[14:40:37] connor_g1odwolf: has joined #ruby
[14:40:45] dijikul: has joined #ruby
[14:41:00] Olipro_: has joined #ruby
[14:41:08] omninonsense: has joined #ruby
[14:41:12] ElSif: im not quite sure i understand, are you just looking to append two vars to an existing array?
[14:41:56] mcnesium_: has joined #ruby
[14:41:59] sorah_: has joined #ruby
[14:42:01] Ssssss: has joined #ruby
[14:42:03] Voker57|2: has joined #ruby
[14:42:03] saaki_: has joined #ruby
[14:42:14] C0deMaver1ck: has joined #ruby
[14:42:14] leslie: has joined #ruby
[14:42:14] Seich: has joined #ruby
[14:42:14] asi_: has joined #ruby
[14:42:14] epochwolf: has joined #ruby
[14:42:14] hollywood: has joined #ruby
[14:42:14] Nightmare: has joined #ruby
[14:42:14] larissa: has joined #ruby
[14:42:15] bf4: has joined #ruby
[14:42:15] tylersmith: has joined #ruby
[14:42:15] wookiehangover: has joined #ruby
[14:42:15] mjmac: has joined #ruby
[14:42:15] sfr^: has joined #ruby
[14:42:15] mistym: has joined #ruby
[14:42:15] universa1: has joined #ruby
[14:42:15] DarkBushido: has joined #ruby
[14:42:15] nullwarp: has joined #ruby
[14:42:15] waxjar: has joined #ruby
[14:42:15] LBRapid: has joined #ruby
[14:42:15] drewdavis: has joined #ruby
[14:42:15] miwood: has joined #ruby
[14:42:15] duoi: has joined #ruby
[14:42:15] cbednarski: has joined #ruby
[14:42:15] jhass: ACTION ponders copy pasting the earlier conversation to needyou2
[14:42:15] connor_g1odwolf: has joined #ruby
[14:42:15] epochwolf: has joined #ruby
[14:42:15] Nightmare: has joined #ruby
[14:42:18] mistym: has joined #ruby
[14:42:18] leslie: has joined #ruby
[14:42:18] DarkBushido: has joined #ruby
[14:42:18] duoi: has joined #ruby
[14:42:20] jxf: has joined #ruby
[14:42:21] cbednarski: has joined #ruby
[14:42:21] jxf: has joined #ruby
[14:42:24] gthank: has joined #ruby
[14:42:24] hostess: has joined #ruby
[14:42:24] gthank: has joined #ruby
[14:42:24] zenguy_pc: has joined #ruby
[14:42:25] jalcine: has joined #ruby
[14:42:26] nemesit_: has joined #ruby
[14:42:33] phat4life: has joined #ruby
[14:42:33] george2: has joined #ruby
[14:42:37] ElSif: wow! such activity
[14:42:38] atomical: has joined #ruby
[14:42:40] linc01n: has joined #ruby
[14:42:48] ruurd: has joined #ruby
[14:42:48] psyprus: has joined #ruby
[14:42:53] davidcelis: has joined #ruby
[14:42:53] davidcelis: has joined #ruby
[14:42:53] adaedra: jhass: the link to logs should be enough?
[14:42:58] DanKnox: has joined #ruby
[14:42:58] farn: has joined #ruby
[14:43:03] Urocyon: has joined #ruby
[14:43:03] psye: has joined #ruby
[14:43:07] ankhers: has joined #ruby
[14:43:08] jhass: I'm not sure
[14:43:09] heidar: has joined #ruby
[14:43:12] connor_goodwolf: has joined #ruby
[14:43:13] zz_barkerd427: has joined #ruby
[14:43:14] Tratos: has joined #ruby
[14:43:15] ujjain: has joined #ruby
[14:43:15] ujjain: has joined #ruby
[14:43:15] Scripore: has joined #ruby
[14:43:17] dhruvasagar: has joined #ruby
[14:43:17] chris22: has joined #ruby
[14:43:18] segv: has joined #ruby
[14:43:18] mburns: has joined #ruby
[14:43:20] darithorn: has joined #ruby
[14:43:23] troulouliou_div2: has joined #ruby
[14:43:32] Dfoolz: has joined #ruby
[14:43:37] cliffstah: has joined #ruby
[14:43:39] blackjid: has joined #ruby
[14:43:58] Liam`: has joined #ruby
[14:44:23] tuor: has joined #ruby
[14:44:38] levifig: has joined #ruby
[14:44:39] zack6849: has joined #ruby
[14:44:39] zack6849: has joined #ruby
[14:44:40] terrellt: has joined #ruby
[14:44:51] chussenot: has joined #ruby
[14:44:58] avelldiroll: has joined #ruby
[14:45:11] skarn: has joined #ruby
[14:45:39] mary5030: has joined #ruby
[14:45:58] fumihiro1: has joined #ruby
[14:46:04] presto: has joined #ruby
[14:46:43] Kellin: has joined #ruby
[14:46:45] bauruine: has joined #ruby
[14:46:55] guillaume-rb: has joined #ruby
[14:47:08] danman: has joined #ruby
[14:47:12] sepp2k: has joined #ruby
[14:47:15] vexter: has joined #ruby
[14:47:18] vexter: has left #ruby: ()
[14:48:40] troulouliou_div2: has joined #ruby
[14:48:45] troulouliou_div2: has joined #ruby
[14:48:51] lkba: has joined #ruby
[14:50:51] dede: has joined #ruby
[14:50:53] Unicorn|: has joined #ruby
[14:51:46] zipkid: has joined #ruby
[14:51:51] leat: has joined #ruby
[14:51:53] PpPyg: has joined #ruby
[14:52:00] chouhoulis: has joined #ruby
[14:52:10] clamstar: has joined #ruby
[14:52:15] leat: has joined #ruby
[14:53:42] ValicekB: has joined #ruby
[14:54:48] ragingcake: has joined #ruby
[14:55:06] dmoe: has joined #ruby
[14:55:19] KC9YDN: has joined #ruby
[14:55:19] KC9YDN: has joined #ruby
[14:55:42] benlovell: has joined #ruby
[14:55:59] lkba: has joined #ruby
[14:56:36] casadei_: has joined #ruby
[14:57:42] chussenot: has joined #ruby
[14:57:48] Agoldfish: has joined #ruby
[14:57:50] rippa: has joined #ruby
[14:58:11] Klumben: has joined #ruby
[14:58:14] bricker: has joined #ruby
[14:59:43] mikecmpbll: has joined #ruby
[14:59:44] bootstrappm: has joined #ruby
[15:00:17] diegoviola: I need to generate a bunch of random dates with dd/mm/yyyy
[15:00:24] diegoviola: I know I can use strftime for that
[15:00:30] diegoviola: how do I make it random though?
[15:00:41] ixti: has joined #ruby
[15:01:20] jhass: diegoviola: any borders?
[15:01:26] diegoviola: jhass: what?
[15:01:36] jhass: date range
[15:01:47] wasamasa: diegoviola: https://github.com/stympy/faker
[15:02:06] chris2: rand Date.today..(Date.today+7)
[15:02:15] schaerli: has joined #ruby
[15:03:20] joast: has joined #ruby
[15:03:22] chris2: that works even properly. nice :)
[15:03:52] ragingcake: has joined #ruby
[15:04:06] jhass: mmh, what's the maximum date Date can handle? Do we have Date::MAX? :D
[15:04:09] [k-_: i would .sample, but i realised you cant .to_a for dates
[15:04:18] chris2: i think it uses bignums at some point
[15:04:21] sharpmachine: has joined #ruby
[15:04:28] jhass: [k-_: I think you can?
[15:04:32] adaedra: why would you do that [k-_
[15:04:40] chris2: but the range approach is efficient
[15:04:55] chris2: ok, date uses floats
[15:05:10] [k-_: adaedra: rand Date.today..(Date.today+7)
[15:05:17] chris2: >> require 'date'; Date.today+1e308
[15:05:18] ruboto: chris2 # => #<Date: 27379070069885077586246583451002161049059090341586289742119381817887024005617660270389263404 ...check link for more (https://eval.in/401680)
[15:05:20] DrCode: has joined #ruby
[15:05:59] jhass: >> Date.today + 10**2048
[15:06:00] ruboto: jhass # => uninitialized constant Date (NameError) ...check link for more (https://eval.in/401681)
[15:06:00] nfk: has joined #ruby
[15:06:07] jhass: >>require "date" Date.today + 10**2048
[15:06:08] ruboto: jhass # => /tmp/execpad-ee157ebeca76/source-ee157ebeca76:2: syntax error, unexpected tCONSTANT, expecting keywo ...check link for more (https://eval.in/401682)
[15:06:13] jhass: anyway, ^ works
[15:06:17] adaedra: [k-_: yes, and?
[15:06:28] nettoweb_: has joined #ruby
[15:06:30] jhass: diegoviola: so you better have an upper bound too
[15:06:32] chris2: good point
[15:06:34] [k-_: sample gets a random item in the array?
[15:06:42] chris2: of course only the float literal overflowed
[15:06:47] adaedra: rand does too, without the array
[15:07:14] [k-_: now to benchmark both of them :>
[15:07:23] kirun: has joined #ruby
[15:08:17] adaedra: what if you want a number between 0 and today? Generate an array of 365.25*2015 different value, then take one?
[15:08:50] sarkyniin: has joined #ruby
[15:08:58] jhass: yeah, Range#sample would be neat
[15:09:13] jhass: but slow anyhow I guess
[15:09:20] [k-_: i agree with your logic
[15:09:20] eam: adaedra: I think you're making calendar assumptions
[15:09:28] chris2: >> require 'date'; rand Date.parse('0001-1-1')..Date.today
[15:09:29] ruboto: chris2 # => #<Date: 0303-05-08 ((1831856j,0s,0n),+0s,2299161j)> (https://eval.in/401683)
[15:09:36] adaedra: eam: I'm simplifying
[15:09:44] eam: the weird thing about time (both calendar, and H:M:S) is that it's non-linear over long periods
[15:09:51] t0rrieri: has joined #ruby
[15:10:02] eam: because the definitions change
[15:10:14] chris2: Date knows that, tho :)
[15:10:24] chris2: at least partially
[15:10:27] charliesome: has joined #ruby
[15:10:27] eam: I bet it doesn't :)
[15:10:34] dabradley: has joined #ruby
[15:10:47] johnhamelink: has joined #ruby
[15:11:16] chris2: >> require 'date'; Date.parse('1752-09-02') + 1
[15:11:17] ruboto: chris2 # => #<Date: 1752-09-03 ((2361211j,0s,0n),+0s,2299161j)> (https://eval.in/401691)
[15:11:39] greydog: has joined #ruby
[15:12:09] greydog: Are their any recommended books for beginners in ruby? I come from a bash background.
[15:12:22] Scripore: has joined #ruby
[15:12:27] greydog: Well Bash and C++
[15:12:41] ragingcake: has joined #ruby
[15:12:52] chris2: >> require 'date'; Date.new(1752,9,2, Date::ENGLAND) + 1
[15:12:53] ruboto: chris2 # => #<Date: 1752-09-14 ((2361222j,0s,0n),+0s,2361222j)> (https://eval.in/401693)
[15:12:53] [k-_: we need to start adding a list of books to the faq section, apeiros
[15:13:05] adaedra: >> require 'date'; Date.parse('1582-10-15') + 1
[15:13:06] ruboto: adaedra # => #<Date: 1582-10-16 ((2299162j,0s,0n),+0s,2299161j)> (https://eval.in/401698)
[15:13:34] gamename: has joined #ruby
[15:13:37] eGGsha: has joined #ruby
[15:13:38] chris2: it defaults to italian calendar for some reason
[15:13:40] [k-_: greydog: someone recommended eloquent ruby a while ago
[15:13:43] [k-_: you can try that
[15:13:48] eam: chris2: now that's interesting
[15:13:52] [k-_: >> Locale.get_default
[15:13:53] ruboto: [k-_ # => uninitialized constant Locale (NameError) ...check link for more (https://eval.in/401704)
[15:14:06] [k-_: i thought that would exist for some reason
[15:14:10] chris2: and it actually avoids year 0
[15:14:27] adaedra: wait, I misread
[15:14:30] adaedra: >> require 'date'; Date.parse('1582-10-15') - 1
[15:14:30] ruboto: adaedra # => #<Date: 1582-10-04 ((2299160j,0s,0n),+0s,2299161j)> (https://eval.in/401707)
[15:14:58] eam: is date's logic specific to ruby, or does it mostly just hand off to libc/system?
[15:15:05] chris2: its in ext/date
[15:15:09] [k-_: oh, its a rails thing, I18n.get_locale
[15:15:11] chris2: posix doesnt do such stuff
[15:15:19] senayar^: has joined #ruby
[15:15:29] [k-_: s/get_/locale
[15:15:30] adaedra: greydog: you can look official website, there are some guides, including guides from other languages
[15:15:35] [k-_: wait thats wrong again too
[15:15:37] gamename: has joined #ruby
[15:15:40] chris2: outside of cal(1p) at least
[15:16:40] RobertBirnie: has joined #ruby
[15:17:02] konsolebox: greydog: you're greycat? :)
[15:17:12] symm-: has joined #ruby
[15:17:21] shevy: a dog is not a cat!
[15:17:34] [k-_: 23:17:18 greycat There was no such nickname
[15:17:34] [k-_: 23:17:18 greycat End of WHOWAS
[15:17:39] [k-_: konsolebox: you lie
[15:17:40] simplyianm: has joined #ruby
[15:18:00] eam: chris2: well there's struct tm
[15:18:05] konsolebox: [k-_: do /j #bash :)
[15:18:36] eam: and related functions
[15:18:59] chris2: yeah, but no function for computations
[15:19:03] konsolebox: greydog: well ok
[15:19:06] eam: chris2: ah
[15:19:09] greydog: greycat is far superior than me. He would wipe the floor with me in anything.
[15:19:21] troulouliou_div2: has joined #ruby
[15:19:46] yardenbar: has joined #ruby
[15:19:52] jhass: [k-_: http://ruby-community.com/pages/links you mean like at the bottom there?
[15:20:32] peter_paule: has joined #ruby
[15:20:40] [k-_: yes, perfect, now we need a /pages/links#books
[15:20:54] [k-_: i just remembered those things are called fragments :D
[15:20:59] [k-_: and we can have a ?books!
[15:21:10] jhass: https://github.com/apeiros/ruby-community/blob/master/app/views/pages/_links.html.slim#L61
[15:21:53] s2013: has joined #ruby
[15:21:58] [k-_: hmmm what kind of sorcery is this
[15:22:31] [k-_: ACTION does some research on fragments
[15:22:52] adaedra: you could have let him guess jhass
[15:23:00] adaedra: he had a slim chance to get it right
[15:23:11] Siyfion: has joined #ruby
[15:23:31] gamename: has joined #ruby
[15:23:36] _blizzy_: has joined #ruby
[15:24:10] joonty: has joined #ruby
[15:24:20] masteraka: ElSif hello
[15:24:30] olas: is there a way to turn a string like "1 minute" to "60"?
[15:24:47] masteraka: ElSif I'm on Mac
[15:24:47] olas: basically convert human input to seconds
[15:24:49] chouhoulis: has joined #ruby
[15:24:49] [k-_: you either do it yourself or get a library
[15:25:05] jhass: olas: https://github.com/hpoydar/chronic_duration
[15:25:05] olas: it doesn't seem like Time can do it
[15:25:20] dblessing: has joined #ruby
[15:25:23] shevy: anyone knows of a project in ruby that does 3D creation of objects? ideally automated, with a 3D mesh that could be loaded up into modeller software
[15:25:24] masteraka: ElSif: sorry, was afk
[15:25:47] olas: jhass: thanks
[15:27:29] dgutierrez1287: has joined #ruby
[15:28:33] ElSif: masteraka: that's cool, do you use xcode?
[15:28:49] Maletor: has joined #ruby
[15:28:54] masteraka: i've used eclipse before
[15:29:09] masteraka: i came across a post on how to set up xcode with ruby
[15:29:13] [k-_: i do not like xcode
[15:29:22] [k-_: it takes way too long to start up
[15:29:27] [k-_: in ruby, we have repls
[15:29:37] [k-_: i cant stand the slowness >.>
[15:29:40] masteraka: had some problems with dy_ld loading or s.th.
[15:29:46] [k-_: slowness is a common factor of ides
[15:30:04] shevy: use linux!
[15:31:10] ElSif: lol, so helpful ;)
[15:31:40] _blizzy_: has joined #ruby
[15:31:42] masteraka: ElSif: were you going to point me to this article? http://www.emilsoman.com/blog/2014/08/06/debugging-ruby-c-extensions-in-xcode/
[15:32:29] ElSif: masteraka: maybe, was still reading through it :) the basic general idea is in there, easiest way is to put together a makefile to let you get into the C with a debugger
[15:32:44] masteraka: so i tried to do the same thing with Eclipse
[15:32:56] masteraka: I just couldn't get the underlying gdb to load the source files
[15:32:57] sarkyniin: has joined #ruby
[15:33:22] masteraka: plus, I suspect there is a whole can of worms with gdb on Yosemite - I had to use codesign with a created certificate
[15:33:22] shevy: when I google for "ruby 3d" Mon_Ouie comes up first https://github.com/Mon-Ouie/ray
[15:33:33] prestorium: has joined #ruby
[15:33:36] masteraka: plus stackoverflow metnioned that you may have to run Eclipse as root
[15:33:52] riotjones: has joined #ruby
[15:33:57] masteraka: was wondering whether anyone actually had successfully gone through all those steps :)
[15:34:11] masteraka: I'll try the XCode route one more time I guess....
[15:35:00] Casty: has joined #ruby
[15:35:04] ElSif: i have no idea :P seems like a bit of overkill really, though IDEs can sometimes make things easier
[15:35:13] f0ster: has joined #ruby
[15:35:38] masteraka: unfortunately I've never worked with gdb directly
[15:35:50] [k-_: you only need an ide for java, really
[15:35:54] masteraka: was hoping I could get a visual debugger going somehow
[15:36:20] masteraka: [k-_: what about C and all its variants!
[15:36:21] jschoolcraft: has joined #ruby
[15:36:36] [k-_: hmm, some consideration is to be done
[15:36:41] f0ster: ide makes programming in any language easier
[15:36:45] adaedra: masteraka: time to learn gdb then!
[15:36:46] f0ster: people who don't know how to use debuggers are fools
[15:36:47] ElSif: terminals have visuals ;)
[15:36:49] jpfuentes2: has joined #ruby
[15:37:13] ElSif: yea, i would suggest trying to go at it with gdb, will be a fun learning experience i promise :)
[15:37:19] masteraka: f0ster: you get comfortable using visual debuggers....
[15:37:38] masteraka: i do want to take a stab at gdb
[15:37:48] masteraka: however, I have limited time to solve my issue
[15:38:02] f0ster: masteraka: yeah.. I started with GDB. I still think visual studio is the best programming environment ever, but I never use it because I rarely code on windows
[15:38:10] rehat: has joined #ruby
[15:38:17] f0ster: I use all the jetbrains ones for ruby/python/java et al on osx
[15:38:22] miwood: has joined #ruby
[15:38:24] masteraka: f0ster: VS + ReSharper was the best I used
[15:38:25] balazs_: has joined #ruby
[15:38:37] masteraka: it's basically VS with all the JetBrains stuff
[15:38:45] ElSif: i like VS as an ide, gets a lot right, maybe someday MS will port it to linux :D
[15:38:46] f0ster: masteraka: nice, using mono or something ?
[15:38:54] masteraka: actually, I wonder whether JetBrains has a good IDE for Ruby :)
[15:39:05] masteraka: i used .NET a few years abck
[15:39:08] f0ster: ElSif: yeah probably.. since they open sourced .NET and made VS free it's only a matter of time
[15:39:12] f0ster: masteraka: yeah rubymine
[15:39:23] ElSif: i don't know if i would call it 'good'...
[15:39:35] ElSif: if you like their other ides will will probably like it though
[15:39:45] masteraka: my guess is it won't support ruby c extensions out of the box though...
[15:39:48] f0ster: meh, I used it because it's really the only option, it's fine
[15:40:07] f0ster: I've used it for coding and debuggin my rails projects
[15:40:09] masteraka: in ruby land i'm perfectly happy using pry for my debugging
[15:40:27] ElSif: thats the spirit :D
[15:40:42] f0ster: I've never had consistent luck with pry.. between different versions of ruby etc pry debug and pry byebug have rarely worked 100%
[15:40:48] AlexAltea: has joined #ruby
[15:41:10] ElSif: as in they crash on your machine? I've only ever had issues if i was trying to get pry to do something strange.
[15:41:12] masteraka: i haven't used ruby in a couple of years
[15:41:18] masteraka: and then everything got upgraded
[15:41:23] masteraka: and what used to work before doesn't work now
[15:41:30] ElSif: if you are using it within an ide i would first think it was the ide's fault :)
[15:41:33] masteraka: but relearning things is usually quicker than learning them for the first time
[15:41:46] giuseppesolinas: has joined #ruby
[15:41:59] atomical: has joined #ruby
[15:41:59] giuseppesolinas_: has joined #ruby
[15:42:30] Scripore: has joined #ruby
[15:42:50] giuseppesolinas_: I'm developing an application in which the logged superuser can create new users with a form, setting their username and password for the log-in
[15:43:28] giuseppesolinas_: needless to say that those username and password are not the superuser's but of the new user
[15:43:40] ElSif: that sounds fun
[15:43:46] jhass: that sounds like rails
[15:43:50] davedev24: has joined #ruby
[15:44:01] icebourg: has joined #ruby
[15:44:03] ElSif: i think he means system users, though that is an assumption
[15:44:13] gambl0re: has joined #ruby
[15:44:15] f0ster: ElSif: no like they always step in even when I execute a step over
[15:44:22] f0ster: that was my prob with ruby 2.1.x
[15:44:22] giuseppesolinas_: but my browser keeps ignoring this fact and even if I set autocomplete to "off" it keeps filling it in with the logged user's informations
[15:44:35] ElSif: you win again jhass :)
[15:44:41] giuseppesolinas_: oh wow I thought I was typing in ##html
[15:44:57] ElSif: i just choked T_T
[15:45:26] symm-: has joined #ruby
[15:45:31] radialneon: has joined #ruby
[15:46:59] baweaver: has joined #ruby
[15:47:01] bricker: has joined #ruby
[15:47:23] Rubie: has joined #ruby
[15:47:23] ElSif: ah, i think it might be that you are thinking of pry's binding context as a little different than it is, it is a little different than some other debugger semantics
[15:47:44] tubulife-: has joined #ruby
[15:48:09] syath: has joined #ruby
[15:48:25] ElSif: a good practice when you're not sure how it will step is to put binding.pry's where you think you might want to stop (even in gems, though you will want to remove those later)
[15:48:36] f0ster: ElSif: no I used it for a year before that and it worked fine
[15:48:48] f0ster: ElSif: but next and step do the same thing in one of the versions I had
[15:48:50] ElSif: oh, nvm then, system issue??
[15:49:03] f0ster: yeah idk, I was using pry-byebug
[15:49:16] f0ster: because I had issues with pry and pry-debug when I was on ruby 2.0 and rails 3.29
[15:50:03] ElSif: yea, ive only ever had system issues with pry-debugger, usual because something in my environment was bad that i hadn't noticed :)
[15:50:08] cochise: has joined #ruby
[15:50:25] ElSif: on Mac that happened more than it ever did on linux...
[15:51:09] rehat: has joined #ruby
[15:51:13] ixti: has joined #ruby
[15:51:17] dfockler: has joined #ruby
[15:52:17] ruurd: has joined #ruby
[15:52:21] prefixed: has joined #ruby
[15:52:55] ragingcake: has joined #ruby
[15:52:57] f0ster: masteraka: I even use webstorm for js/php stuff
[15:53:19] f0ster: ElSif: I wonder if it has to do with c bindings.. I do most of my dev on osx
[15:53:44] Igorshp: has joined #ruby
[15:54:45] ElSif: maybe, though it's just as likely that im just bad at configuring mac environments XD
[15:55:43] code1o6: has joined #ruby
[15:55:50] f0ster: ElSif: it's a little less nice than linux imo but mostly the same
[15:56:52] ElSif: i think a lot of the time it had to do with there being just more stuff running in the mac env, i run very minimal linux envs (archbang for instance)
[15:57:33] dfockler: Homebrew on mac is nice, although some people don't like it on principle
[15:57:46] mjmac: has joined #ruby
[15:58:01] adaedra: you can't make everyone happy?
[15:58:04] drewvanstone: has joined #ruby
[15:58:13] optikalmouse: has joined #ruby
[15:58:18] ndrei: has joined #ruby
[15:58:19] willywos: has joined #ruby
[15:58:20] dfockler: no you can't
[15:58:24] gambl0re: has joined #ruby
[15:59:50] leat: has joined #ruby
[16:00:02] _djbkd: has joined #ruby
[16:00:07] sharpmachine: has joined #ruby
[16:00:14] allcentury: has joined #ruby
[16:00:57] dfockler: although ruby-install and chruby work the same on both
[16:01:07] amclain: has joined #ruby
[16:01:38] finisherr: has joined #ruby
[16:01:52] Igorshp: has joined #ruby
[16:03:03] optikalmouse: has joined #ruby
[16:03:04] leat: has joined #ruby
[16:03:04] rideh: has joined #ruby
[16:03:46] havenwood: pkgsrc has only more recently been made easily available on OS X, but it's nice as well: https://pkgsrc.joyent.com/install-on-osx/
[16:04:05] Igorshp: has joined #ruby
[16:04:19] havenwood: 2015Q2 packages fresh off the mint
[16:04:45] galeido: has joined #ruby
[16:05:00] havenwood: Install script with Ruby packages: https://gist.github.com/havenwood/d25276ec38fc6ac03685
[16:05:24] ElSif: i think ill have to give that a shot next time i have to use mac
[16:05:25] havenwood: Or: https://github.com/cmacrae/saveosx#readme
[16:05:40] havenwood: ElSif: Works fine alongside Homebrew as well.
[16:06:00] NeverDie: has joined #ruby
[16:06:20] niemcu: has joined #ruby
[16:07:10] valkyrka: has joined #ruby
[16:07:21] masteraka: OK, I managed to get XCode to stop at a breakpoint in my C extension!
[16:07:42] ElSif: yay! congrats
[16:07:52] yqt: has joined #ruby
[16:08:08] ElSif: havenwood: thanks!
[16:08:10] masteraka: basically had to springle some "-g"s inside the extconf generated Makefile manually
[16:09:02] ElSif: lol, you should make a blog post :D
[16:09:08] ddarkpassenger: has joined #ruby
[16:09:15] masteraka: I will at some point
[16:09:26] masteraka: just need to figure out how to load it in Eclipse
[16:09:34] fgo: has joined #ruby
[16:09:39] masteraka: then that's probably worth a blogpost...
[16:09:44] eam: masteraka: it'll be lldb on osx
[16:10:19] eam: it's not too different from gdb, but there are a few oddities
[16:10:33] masteraka: is that what XCode uses under the hood?
[16:10:35] tkuchiki: has joined #ruby
[16:10:43] eam: I assume? I've never actually used xcode
[16:10:48] werelivinginthef: has joined #ruby
[16:10:52] sterlingcalder: has joined #ruby
[16:11:04] pietr0: has joined #ruby
[16:11:20] adaedra: masteraka: YES
[16:11:39] headius: certainty: no problem
[16:11:45] Rubie: has joined #ruby
[16:11:50] sterlingcalder: has left #ruby: ()
[16:11:58] masteraka: "LLDB is the default debugger in Xcode on Mac OS X and supports debugging C, Objective-C and C++ on the desktop and iOS devices and simulator."
[16:11:59] gwendall: has joined #ruby
[16:12:01] crunk_bear: has joined #ruby
[16:12:03] apt-get_: has joined #ruby
[16:12:03] masteraka: yeah, should have RTFMed
[16:12:06] bronson: has joined #ruby
[16:12:22] code1o6: Anyone looking to do a simple and fun project on ssh? MSG me if you are interested
[16:12:32] treehug88: has joined #ruby
[16:12:37] adaedra: masteraka: apple went on full llvm-based compile chain
[16:12:37] eam: masteraka: from my notes: https://gist.github.com/eam/b1b695165fc360ce2eda
[16:12:52] masteraka: eam: thanks!
[16:13:02] eam: (I wrote an internal how-to-gdb-lldb ruby blog)
[16:13:09] leat: has joined #ruby
[16:13:17] masteraka: can you make it public?
[16:13:38] eam: yeah (given, you know, time to actually do it)
[16:15:20] masteraka: are lldb and gdb quite compatible?
[16:16:16] masteraka: hmm, apparently not
[16:16:44] spider-mario: has joined #ruby
[16:18:06] Jackneill: has joined #ruby
[16:19:22] mikeric: has joined #ruby
[16:20:11] nahtnam: has joined #ruby
[16:20:26] matp: has joined #ruby
[16:21:26] EagleDelta: has joined #ruby
[16:21:48] AugustoCesar: has joined #ruby
[16:21:52] havenwood: code1o6: On ssh? Say more?
[16:22:06] benlovell: has joined #ruby
[16:22:16] jhass: code1o6: I think they mean pairing
[16:22:28] jhass: er, havenwood ^
[16:22:29] benlieb: has joined #ruby
[16:22:29] stbenjam: has left #ruby: ()
[16:22:33] chinmay_dd: has joined #ruby
[16:22:35] Igorshp: has joined #ruby
[16:22:51] havenwood: jhass: aha, like tmux, got it!
[16:23:17] prestorium: has joined #ruby
[16:23:23] eggoez: has joined #ruby
[16:23:53] symm-: has joined #ruby
[16:24:30] bungoman: has joined #ruby
[16:24:40] Crazy_Atheist: has joined #ruby
[16:24:51] konsolebox: has joined #ruby
[16:25:07] ironhide_604: has joined #ruby
[16:26:33] crunk_bear: has joined #ruby
[16:27:12] optikalmouse: has left #ruby: ()
[16:27:27] chinmay_dd: has joined #ruby
[16:27:30] Scripore: has joined #ruby
[16:27:47] mleung: has joined #ruby
[16:28:19] miwood: has joined #ruby
[16:29:23] pengin: has joined #ruby
[16:29:48] ElSif: this is pretty neat: http://cdn.knightlab.com/libs/timeline3/latest/embed/index.html?source=1KcZdsCI3G832QTfx3kCn8zcxi8jH2qFWttB-xuPjYTM&font=Default&lang=en
[16:29:52] serivich: has joined #ruby
[16:30:03] araujo: has joined #ruby
[16:30:10] Maletor: has joined #ruby
[16:30:11] ruurd: has joined #ruby
[16:32:51] charliesome: has joined #ruby
[16:32:58] GitGud: has joined #ruby
[16:34:40] tkuchiki: has joined #ruby
[16:35:01] douglasssss: has joined #ruby
[16:35:10] gambl0re: has joined #ruby
[16:35:13] rcvalle: has joined #ruby
[16:35:47] chinmay_dd: has joined #ruby
[16:35:52] wprice: has joined #ruby
[16:36:16] droidburgundy: has joined #ruby
[16:36:37] devbug: has joined #ruby
[16:36:51] towski_: has joined #ruby
[16:36:54] PyrexWyrex: has joined #ruby
[16:38:04] benlovell: has joined #ruby
[16:38:59] Narzew: has joined #ruby
[16:39:42] kriskropd: has joined #ruby
[16:39:42] kriskropd: has joined #ruby
[16:40:01] rdark: has joined #ruby
[16:40:37] gambl0re: has joined #ruby
[16:41:51] eam: masteraka: sorry, was offline between the train/office -- I found this super helpful: http://lldb.llvm.org/lldb-gdb.html
[16:43:29] eam: mostly a 1:1 translation with different syntax, the only big thing missing I found was batch mode (which I think may be added now? And there's a python interface)
[16:43:42] eam: the xcode versions may be too old to support it though
[16:44:09] gambl0re: has joined #ruby
[16:46:09] Lucky_: has joined #ruby
[16:46:15] mcnesium_: has left #ruby: ("Weechat part")
[16:46:31] freerobby: has joined #ruby
[16:46:35] chinmay_dd: has joined #ruby
[16:46:36] apfeluser: has joined #ruby
[16:47:38] arup_r: has joined #ruby
[16:47:56] paulcsmith: has joined #ruby
[16:48:02] endash: has joined #ruby
[16:48:05] cochise: has joined #ruby
[16:48:49] drewo: has joined #ruby
[16:49:14] [H]unt3r: has joined #ruby
[16:49:32] mjmac: has joined #ruby
[16:50:22] cornerma1: has joined #ruby
[16:51:17] kaleido: has joined #ruby
[16:53:02] revath: has joined #ruby
[16:55:09] Olipro: has joined #ruby
[16:55:26] Olipro_: has joined #ruby
[16:58:27] rbennacer: has joined #ruby
[16:58:31] GitGud: has joined #ruby
[16:58:39] freerobby: has joined #ruby
[16:58:51] balazs_: has joined #ruby
[17:00:26] pengin: has joined #ruby
[17:00:32] felixr: has joined #ruby
[17:01:11] fabrice31: has joined #ruby
[17:01:16] chussenot: has joined #ruby
[17:02:20] gambl0re: has joined #ruby
[17:03:03] alem0lars: has joined #ruby
[17:04:29] msgodf: has joined #ruby
[17:04:55] silverdust: has joined #ruby
[17:05:03] simplyianm: has joined #ruby
[17:06:10] _blizzy_: has joined #ruby
[17:06:27] wallerdev: has joined #ruby
[17:06:47] mike___1234: has joined #ruby
[17:07:38] gwendall: has joined #ruby
[17:09:14] nemesit|znc: has joined #ruby
[17:10:37] shevy: long live ruby \o/
[17:10:37] gambl0re: has joined #ruby
[17:11:08] felixrsmith: has joined #ruby
[17:13:00] gwendall: has joined #ruby
[17:13:57] bronson: has joined #ruby
[17:14:15] mikecmpbll: has joined #ruby
[17:14:24] felixr: has joined #ruby
[17:14:47] jobewan: has joined #ruby
[17:14:52] xyzzy12: has joined #ruby
[17:14:58] VonPyrex: has joined #ruby
[17:16:15] chinmay_dd: has joined #ruby
[17:16:33] apt-get_: has joined #ruby
[17:17:02] postmodern: has joined #ruby
[17:17:30] felixrsmith: has joined #ruby
[17:18:23] DEA7TH_: has joined #ruby
[17:18:28] theRoUS: has joined #ruby
[17:18:51] gguggi: has joined #ruby
[17:18:52] Hanmac: shevy checkout this: https://bugs.ruby-lang.org/issues/11372
[17:19:04] Hanmac: apeiros: you too if you want to laugh ;P
[17:20:13] [k-_: Rejected lel
[17:20:23] felixr: has joined #ruby
[17:21:03] Hanmac: [k-_ yeah i like to read the rejected ones because its funny
[17:21:13] [k-_: @Override(:eqlAsExpression, "I KNOW WHAT I AM DOING")
[17:21:34] towski_: has joined #ruby
[17:21:52] blaines: has joined #ruby
[17:22:02] [k-_: oh it should be suppresswarnings
[17:22:13] masteraka: has joined #ruby
[17:23:30] khando: has joined #ruby
[17:23:48] zoo-zed: has joined #ruby
[17:24:07] t0rrieri: has joined #ruby
[17:24:47] hinbody: has joined #ruby
[17:24:47] Igorshp: has joined #ruby
[17:24:52] Mendenhall: has joined #ruby
[17:25:05] blaines_: has joined #ruby
[17:25:26] momomomomo: has joined #ruby
[17:25:38] alphaatom: has joined #ruby
[17:26:08] danzilio: has joined #ruby
[17:26:49] ellisTAA: has joined #ruby
[17:26:50] failshell: has joined #ruby
[17:26:57] simplyia_: has joined #ruby
[17:27:45] peter_paule: has joined #ruby
[17:28:13] d10n-work: has joined #ruby
[17:28:46] kidoz: has joined #ruby
[17:29:15] Eiam: has joined #ruby
[17:29:33] No_One: has joined #ruby
[17:29:35] konr: has joined #ruby
[17:29:45] axl_: has joined #ruby
[17:30:25] schaerli: has joined #ruby
[17:31:24] ZeeNoodleyGamer: has joined #ruby
[17:31:25] Antiarc: Matz' response is so delightful.
[17:31:36] Antiarc: If that was me I would have been "RTFM"
[17:31:44] Antiarc: I need to be more MINSWAN
[17:31:52] workmad3: Antiarc: MINASWAN
[17:32:04] user1138: has joined #ruby
[17:32:24] Antiarc: you know what I mean :P
[17:32:47] workmad3: well, *I* do... but I'm correcting you so that others can have a chance without needing my brilliance ;)
[17:32:49] eam: it'd be nice if ruby were to adopt use strict :)
[17:33:06] gagrio: has joined #ruby
[17:33:27] eam: IMO that's the best way to take an originally fast and loose language and make it strict and predictable
[17:34:10] dfockler: I'd like to see optional typing built in
[17:34:17] theRoUS: has joined #ruby
[17:34:32] eam: of course then everyone would have to stop making fun of perl for having that as near ubiquitous boiler-plate :)
[17:35:02] ellisTAA: has joined #ruby
[17:35:23] devbug: has joined #ruby
[17:35:29] tkuchiki: has joined #ruby
[17:35:31] evlute: has joined #ruby
[17:35:49] evlute: hi i need some help with regexp. who do i set the global option?
[17:35:54] imperator: has joined #ruby
[17:36:07] eGGsha: has joined #ruby
[17:36:11] evlute: .match(/.*/g) - g is not working
[17:36:47] apeiros: evlute: in ruby, global is not part of the regex, but part of the method
[17:37:00] apeiros: i.e., you use scan, not match if you want all matches
[17:37:30] evlute: apeiros: thank you apeiros
[17:37:41] michael_mbp: has joined #ruby
[17:38:40] shevy: apieros is a nice guy
[17:38:43] prefixed: has joined #ruby
[17:38:47] Kedare: has joined #ruby
[17:39:53] shevy: hanmac well I think I suggested something similar about "def intialize"; now with rubocop becoming more popular, or at least I assume, "soft warnings" as option would not be bad in my opinion. I still don't think that ruby's warnings or error messages are always great, I recall bnagy complaining about -W0 not suppressing all warnings for instance
[17:39:57] Rubie: has joined #ruby
[17:40:20] despai: has joined #ruby
[17:40:20] dubkoidragon: has joined #ruby
[17:40:37] toretore: has joined #ruby
[17:40:51] ellisTAA: has joined #ruby
[17:41:42] Senjai: Morning ruby
[17:42:01] michael_mbp: has joined #ruby
[17:42:37] ndrei: has joined #ruby
[17:42:52] imperator: there a good way to override a core class' allocation and deallocation functions?
[17:44:14] _djbkd: has joined #ruby
[17:44:25] workmad3: imperator: probably not... a lot of core doesn't invoke the `new` method on the appropriate classes if you create things through, e.g. a literal
[17:45:00] soloone: has joined #ruby
[17:45:23] _djbkd: has joined #ruby
[17:47:00] bungoman: has joined #ruby
[17:47:16] jerius: has joined #ruby
[17:47:45] casadei_: has joined #ruby
[17:48:00] bronson: has joined #ruby
[17:48:04] imperator: workmad3, basically want to override the free function to use _aligned_free on Windows for a custom string extension
[17:48:08] rickmasta: has joined #ruby
[17:48:51] segfalt_: has joined #ruby
[17:49:11] lkba: has joined #ruby
[17:49:35] workmad3: imperator: hmm... sounds like you'd probably need to fork and patch ruby... but I'll admit it's into territory that I know very little about :)
[17:49:57] imperator: eh, might be a bad idea - the deallocation code isn't simple
[17:50:31] reset: has joined #ruby
[17:51:15] workmad3: imperator: yeah, I should probably make it much clearer that when I say "probably need to fork and patch ruby" I mean "THIS IS A HORRIBLE IDEA, DON'T DO THIS, I'M MERELY FOLLOWING A TRAIN OF THOUGHT THROUGH SCARY, SCARY AREAS"
[17:51:34] dseitz: has joined #ruby
[17:51:44] kazoo: has joined #ruby
[17:53:30] freerobby: has joined #ruby
[17:54:09] imperator: i'm not sure how big of a deal it is if it calls free instead of aligned_free
[17:54:29] imperator: might be nothing, might segfault the interpreter, we'll see
[17:54:54] casadei_: has joined #ruby
[17:56:30] rdark: has joined #ruby
[17:57:28] imperator: (seems to segfault)
[17:58:02] amystephen: has joined #ruby
[17:58:23] danzilio: has joined #ruby
[17:58:31] axl_: has joined #ruby
[17:59:26] jackjackdripper: has joined #ruby
[17:59:27] peter_paule: has joined #ruby
[18:00:40] tomphp: has joined #ruby
[18:00:55] ryanpc: has joined #ruby
[18:01:22] giuseppesolinas: has joined #ruby
[18:01:27] alphaatom: has joined #ruby
[18:02:08] kidoz: has joined #ruby
[18:02:17] bungoman: has joined #ruby
[18:02:55] Alayde: has joined #ruby
[18:03:43] _djbkd: has joined #ruby
[18:04:06] Kully3xf_: has joined #ruby
[18:04:49] icebourg: has joined #ruby
[18:05:11] ryanpc: has joined #ruby
[18:07:58] JoshL: has joined #ruby
[18:07:59] tomphp: has joined #ruby
[18:08:01] bb010g: has joined #ruby
[18:10:07] senayar: has joined #ruby
[18:10:07] senayar: has joined #ruby
[18:11:55] jtdowney: has joined #ruby
[18:12:26] jtdowney: has joined #ruby
[18:12:35] axl_: has joined #ruby
[18:12:35] shadoi: has joined #ruby
[18:14:02] Kyhz: has joined #ruby
[18:14:24] Eminence_: has joined #ruby
[18:15:24] baweaver: has joined #ruby
[18:15:54] pocketprotector: has joined #ruby
[18:16:25] codecop: has joined #ruby
[18:17:45] schaerli: has joined #ruby
[18:17:47] simplyianm: has joined #ruby
[18:17:56] Eminence_: How can I turn a string into a dynamic object query? I want to call Model.object, dynamically using something like var = 1 , object = "object#{1}"
[18:18:16] Eminence_: *** object = "object#{var}"
[18:19:00] Alina-malina: has joined #ruby
[18:19:50] bungoman: has joined #ruby
[18:19:50] momomomomo: has joined #ruby
[18:20:33] shevy: what is that
[18:20:44] shevy: anyway, you can use .send() to invoke any method
[18:21:34] shevy: >> class Cat; def meow; puts 'garfield meows'; end; end; garfield = Cat.new; do_this = 'meow'; garfield.send do_this
[18:21:35] ruboto: shevy # => garfield meows ...check link for more (https://eval.in/401782)
[18:21:48] m8: has joined #ruby
[18:21:55] DLSteve: has joined #ruby
[18:22:05] shevy: should work via Model.send(string) in your case, if it can respond to that
[18:22:47] k3asd`: has joined #ruby
[18:23:15] user1138: has joined #ruby
[18:23:30] CustosLimen: has joined #ruby
[18:24:07] prefixed: has joined #ruby
[18:24:40] Zai00: has joined #ruby
[18:24:47] quimrstorres: has joined #ruby
[18:26:23] xyzzy12: has joined #ruby
[18:27:32] Eminence_: I think i did a bad job of explaining. Say Model.first.object1 returns "value1". Model.first.object2 returns "value2". I want to make one dynamic query like: var = 2; Model.first.object(var) => "value2"
[18:27:36] dgutierrez1287: has joined #ruby
[18:28:07] Eminence_: or var = 1; Model.first.object(var) => "value1"
[18:28:44] eam: eminence_: you can do it just like that?
[18:29:10] freerobby: has joined #ruby
[18:29:43] riotjones: has joined #ruby
[18:30:20] dopie: has joined #ruby
[18:30:29] freerobby: has joined #ruby
[18:30:47] DoubleMalt: has joined #ruby
[18:31:30] Eminence_: eam: That doesn't seem to work.
[18:31:55] shevy: I don't get it
[18:32:09] eam: eminence_: describe what "doesn't seem to work" means so we can help you
[18:33:19] Eminence_: I am trying to tell a Model what object name to look for based on a variable. I cant seem to append the variable to the object name.
[18:33:50] peter_paule: has joined #ruby
[18:33:55] toretore: eminence_: use real code in your explanations
[18:34:04] toretore: better yet, gist some code
[18:34:08] Eminence_: toretore: Ill gist it
[18:34:25] shevy: you mean "based on the content of a variable"
[18:34:33] shevy: x = 'foo'; method(x) is the same as method('foo')
[18:34:52] shevy: so it really ought to work
[18:35:20] blaines: has joined #ruby
[18:35:49] shadoi: has joined #ruby
[18:35:51] Eminence_: shevy: I want it to return: Model.methodfoo
[18:36:23] jhass: eminence_: "some model"? ActiveRecord?
[18:36:32] shevy: right, you want to invoke the method called "methodfoo" on Model? .send will work
[18:36:44] pdoherty: has joined #ruby
[18:36:46] symbol: has joined #ruby
[18:36:53] allomov: has joined #ruby
[18:37:30] _djbkd: has joined #ruby
[18:37:31] schaerli: has joined #ruby
[18:38:06] swgillespie: has joined #ruby
[18:38:28] dblessing: has joined #ruby
[18:41:25] axl_: has joined #ruby
[18:42:37] alphaatom: has joined #ruby
[18:44:09] yalue: has joined #ruby
[18:44:23] endash: has joined #ruby
[18:44:29] Eminence_: shevy: What If I want it to be appended in the middle of the object and not at the end?
[18:44:54] tomphp: has joined #ruby
[18:44:57] jhass: eminence_: could you answer my question?
[18:45:00] Eminence_: jhass: Yes its active record
[18:45:13] Eminence_: Sorry I was afk for a sec
[18:45:14] jhass: Use http://api.rubyonrails.org/classes/ActiveRecord/AttributeMethods.html#method-i-5B-5D instead
[18:45:50] bungoman: has joined #ruby
[18:46:20] jhass: (and yes, it takes strings too)
[18:47:28] whiteline: has joined #ruby
[18:48:44] shevy: eminence_ what do you mean "middle of the object". I thought you send a string, right? and you can manipulate any string in any way as you see fit in ruby
[18:49:14] shevy: >> x = 'abcdef'; x[3,0] = ' hello world! '; x
[18:49:15] ruboto: shevy # => "abc hello world! def" (https://eval.in/401786)
[18:49:44] toretore: eminence_: so.. where's that gist?
[18:50:18] toretore: code > human speak
[18:51:45] jhass: shevy: please don't continue suggesting to use .send to access an AR attribute now that we know it's an AR model ;)
[18:52:32] jhass: just in case
[18:53:59] shevy: I have no idea what AR is
[18:54:41] wasamasa: active record, duh
[18:55:09] Eminence_: toretore: jhass: shevy: https://gist.github.com/EminenceHC/6fba81952bf4a830ac85
[18:55:11] shevy: now I know what it is, duh
[18:55:17] ferret_guy: has joined #ruby
[18:55:29] shevy: eminence_ did you use .send :)
[18:55:51] Eminence_: shevy: I am told not to use send now.. .send doesnt seem to work in the middle
[18:55:52] shevy: that is a string that you have here right?
[18:55:57] imperator: has joined #ruby
[18:55:59] jhass: that looks like an awful schema
[18:56:07] shevy: school is a string right? so .send on that string would not work anyway
[18:56:23] ljarvis: no school is an AR model instance
[18:56:27] Eminence_: shevy: School is a model
[18:56:29] jhass: but anyway, school["g#{group_number}start"]
[18:56:37] ljarvis: +1 to the schema being awful
[18:56:39] weemsledeux: has joined #ruby
[18:56:40] ruurd: has joined #ruby
[18:57:11] ljarvis: also, why not School.find(...).group_times
[18:57:48] jhass: yeah, drop get_ prefixes
[18:57:52] orbitalo: has joined #ruby
[18:57:58] _blizzy_: has joined #ruby
[18:58:02] jhass: also no need for the return keyword there
[18:58:24] jhass: mmh, probably not even a need to fetch it, just pluck it
[18:58:26] ferret_guy: I am getting this error ,https://gist.github.com/markomo/fbd00f66e8a5e950c402, when attempting to run this code, https://gist.github.com/markomo/e516e3443d7039405853, I am using this gem https://github.com/pjdavis/roart in an attempt to comunacate with rt and get the number of unassined tickets
[18:58:27] ljarvis: also probably no need to call to_i on the group number
[18:58:47] gregf: has joined #ruby
[18:58:52] jhass: where(id: school_id).pluck("g#{group_number}start")
[18:59:16] ljarvis: that's a worse query though
[18:59:32] ljarvis: actually it's still not good
[18:59:44] tomphp: has joined #ruby
[18:59:53] shevy: are you guys making it worse
[19:00:01] ivanf: has joined #ruby
[19:00:28] jhass: ferret_guy: protip: gist supports multiple files
[19:00:58] carlosoliveira: has joined #ruby
[19:00:59] shevy: uninitialized constant Roart::Connection::WWW (NameError)
[19:01:01] ringarin: has joined #ruby
[19:01:14] last_staff: has joined #ruby
[19:01:27] ferret_guy: jhass never noticed that before
[19:01:32] Eminence_: Thanks guys, that works exactly how I want. I will look into cleaning up the schema but its for a very particular use case.
[19:01:48] shevy: guess not all of roart is properly required
[19:01:53] fabrice31: has joined #ruby
[19:02:07] ferret_guy: shevy does that mean that Roart is having trouble with a gem called Connection?
[19:02:32] ferret_guy: how can I troubleshoot that? do I just need to require Connection?
[19:02:47] ringarin: has joined #ruby
[19:02:55] shevy: not sure... the constant Roart::Connection::WWW is not known in the file where you trigger that NameError
[19:03:42] ElSif: seems mildly reminiscent of a issue caused by not having spawned a connection/missing a setup step with the gem
[19:03:50] shevy: I looked through the roar gem but I can not find any constant called WWW ?
[19:03:51] ferret_guy: shevy what does the :: indicate a sub class?
[19:04:05] jhass: ferret_guy: I'd look for alternatives. If that's no option, that projects last commit is 3 years ago, the last release is 5 years ago and the version you're using is even older (3-4 releases since)
[19:04:08] shevy: you scope to it; for instance, module Roart; module Connection; class WWW
[19:04:19] jhass: so use the latest git version with bundler if you have to use it
[19:04:23] jhass: but it looks pretty dead
[19:04:25] shevy: then you could do Roart::Connection::WWW but I can not find any WWW
[19:04:45] shevy: does another gem extend on it?
[19:04:56] jhass: shevy: you'll need to browse the version they use for starters https://github.com/pjdavis/roart/tree/e36cec774e2f69eb586739100a90badf00f6f88f
[19:05:34] shevy: yeah could you find it? I was unable to
[19:05:40] jhass: https://github.com/pjdavis/roart/blob/e36cec774e2f69eb586739100a90badf00f6f88f/lib/roart/connection.rb#L43 I guess the mechanize dependency restriction wasn't good enough there and it changed since
[19:05:56] ljarvis: yeah we don't use WWW::Mechanize anymore
[19:06:00] ljarvis: and we haven't for a long time
[19:06:01] jhass: basically suffering from the problems I mentioned first
[19:06:06] ferret_guy: jhass: all I need to do is make one http request
[19:06:13] Lucky_: has joined #ruby
[19:06:14] ljarvis: ferret_guy: why are you using this gem?
[19:06:17] jhass: then do it, net/http is your friend
[19:06:27] eGGsha: has joined #ruby
[19:06:54] tomaz_b: has joined #ruby
[19:08:14] Rubie: has joined #ruby
[19:08:58] Channel6: has joined #ruby
[19:10:13] xyzzy12: has left #ruby: ()
[19:11:58] syath_: has joined #ruby
[19:12:39] felltir: has joined #ruby
[19:15:20] dudedudeman: ACTION likes protips
[19:17:44] j4cknewt: has joined #ruby
[19:18:40] Mendenhall: has joined #ruby
[19:19:14] chussenot: has joined #ruby
[19:20:16] momomomomo: has joined #ruby
[19:20:52] nofxx: has joined #ruby
[19:20:52] nofxx: has joined #ruby
[19:23:24] pfish: has joined #ruby
[19:23:39] balazs_: has joined #ruby
[19:23:54] pfish: is newobj_of the place where variables get defined in the C library?
[19:24:15] chipotles: has joined #ruby
[19:24:35] yfeldblum: has joined #ruby
[19:24:53] chadwtaylor: has joined #ruby
[19:26:10] poguez_: has joined #ruby
[19:26:43] choke: has joined #ruby
[19:27:28] bungoman: has joined #ruby
[19:28:35] symbole: has joined #ruby
[19:28:38] dfockler: has joined #ruby
[19:28:55] kies^: has joined #ruby
[19:29:03] ferret_guy: whats the best way to phrase this information? https://gist.github.com/markomo/ccb58b08f5af0abfcf1b check for the second case, and if not split it at newlines and subtract the required amount?
[19:29:24] dgutierrez1287: has joined #ruby
[19:29:47] ljarvis: ferret_guy: what are you trying to achieve?
[19:29:53] t0rrieri: has joined #ruby
[19:30:06] msnyon: has joined #ruby
[19:30:43] DroidBur_: has joined #ruby
[19:30:49] ferret_guy: ljarvis: in my gist I have the two possible outputs one is when their are no results and on that I want to return 0, the other has 6 results and on that I want to return 6
[19:30:58] crunk_bear: has joined #ruby
[19:31:13] jhack32: has joined #ruby
[19:31:18] ta: has joined #ruby
[19:31:21] baweaver: has joined #ruby
[19:31:44] gix: has joined #ruby
[19:31:56] msnyon_: has joined #ruby
[19:32:03] ljarvis: ferret_guy: how it this data served to you? you're really not giving enough information (Or I'm just missing it)
[19:32:36] ferret_guy: ljarvis: ahh sorry it is the result of a gttp get request using net/http :)
[19:33:10] shevy: if a file would have only include Foo statements, but let's say 10 of them... how would you call the .rb file that holds these statements?
[19:33:22] ljarvis: then I guess you just watch to split the lines as you expect, ferret_guy
[19:33:24] shevy: (Foo is just an example, it's of course 10 different names)
[19:33:38] imperator: has left #ruby: ("Leaving")
[19:33:39] DroidBur_: has joined #ruby
[19:33:47] ljarvis: shevy: depends what they're for
[19:34:31] ljarvis: I have created a constants.rb as a dumping ground but it's bad for that reason exactly (and because in most cases, there's always a better place to put stuff). i.e categorising it
[19:35:06] khando__: has joined #ruby
[19:35:27] kadoppe: has joined #ruby
[19:35:29] mike___1234: has joined #ruby
[19:35:44] peter_paule: has joined #ruby
[19:37:47] shevy: right but many projects already use some kind of categorizing such as when they follow a "one class per .rb file" approach
[19:38:02] lala: has joined #ruby
[19:38:27] leat: has joined #ruby
[19:38:37] Siyfion: has joined #ruby
[19:39:02] ljarvis: that's correct..
[19:40:12] user1138: has joined #ruby
[19:40:58] ruby-lang342: has joined #ruby
[19:41:07] ruurd: has joined #ruby
[19:43:42] leat: has joined #ruby
[19:43:49] yqt: has joined #ruby
[19:44:29] werelivinginthef: has joined #ruby
[19:44:43] momomomomo_: has joined #ruby
[19:45:01] marr: has joined #ruby
[19:46:48] chussenot: has joined #ruby
[19:47:40] nossidge: has joined #ruby
[19:49:22] mandarinkin: i have array of int, how to find max with index?
[19:49:49] mandarinkin: [1,2,3,4,5] need outpu [5,5]
[19:49:54] mandarinkin: [1,2,3,4,5] need output [5,5]
[19:50:10] [PRGA]mx: has joined #ruby
[19:50:37] Hanmac: >> [1,2,3,4,5].each_with_index.max_by(&:first)
[19:50:38] ruboto: hanmac # => [5, 4] (https://eval.in/401828)
[19:50:39] ljarvis: mandarinkin: what happens if 5 is in the array twice?
[19:51:20] Hanmac: >> [1,2,3,4,5].each.with_index(1).max_by(&:first)
[19:51:21] ruboto: hanmac # => [5, 5] (https://eval.in/401829)
[19:51:33] mandarinkin: need get 2 index
[19:51:48] ljarvis: index of them both?
[19:52:35] mandarinkin: for [1,2,3,4,5,6] output should be indexes: [5,6] max:5
[19:52:58] ljarvis: right but what about [1,2,5,3,4,5]
[19:53:10] mandarinkin: hanmac, it this shortest variant?
[19:53:47] mandarinkin: for [1,2,3,4,5,5] output should be indexes: [5,6] max:5
[19:54:02] gix: has joined #ruby
[19:54:45] dudedudeman: has joined #ruby
[19:55:09] allcentury: has joined #ruby
[19:55:26] lkba: has joined #ruby
[19:56:05] dudedudeman: has joined #ruby
[19:56:26] bungoman: has joined #ruby
[19:57:55] uris: has joined #ruby
[19:58:57] ljarvis: >> [1,5,2,4,5].each_with_index.group_by(&:first).max
[19:58:58] ruboto: ljarvis # => [5, [[5, 1], [5, 4]]] (https://eval.in/401847)
[19:59:08] tno: has joined #ruby
[19:59:12] ljarvis: max value is 5, indexes are 1 and 4
[19:59:23] pocketprotector: has joined #ruby
[19:59:54] ljarvis: you could do this with a single iteration if you care about speed/object allocation
[20:00:03] ljarvis: but im guessing you dont
[20:00:32] pfish: how do you define method missing for a singleton class in c?
[20:01:36] Papierkorb: For a rspec test, how do I fake a class name?
[20:01:44] ljarvis: ?context Papierkorb
[20:01:45] ruboto: Papierkorb, Please add more context to your question, what are you doing, why are you doing it, which libraries are involved. Post some code to gist if it clarifies your question.
[20:03:08] amystephen: has joined #ruby
[20:03:41] baweaver: has joined #ruby
[20:04:14] uris: has joined #ruby
[20:04:53] redteam: has joined #ruby
[20:06:02] michael_mbp: has joined #ruby
[20:06:10] radialneon: has joined #ruby
[20:06:23] radialneon_: has joined #ruby
[20:07:49] Papierkorb: already solved
[20:07:53] Hanmac: ljarvis: hm one of the funkiest solutions i found is that:
[20:07:53] Hanmac: >> d=[1,5,2,3,4,5]; d.each.with_index(1).max_by(d.count(d.max),&:first) # ;P
[20:07:54] ruboto: hanmac # => [[5, 2], [5, 6]] (https://eval.in/401854)
[20:09:17] radialneon__: has joined #ruby
[20:10:46] Lucky_: has joined #ruby
[20:10:52] radialneon__: has joined #ruby
[20:11:43] khando: has joined #ruby
[20:13:36] blaines: has joined #ruby
[20:14:11] s2013: has joined #ruby
[20:15:07] momomomomo: has joined #ruby
[20:15:07] freerobby: has joined #ruby
[20:15:38] acke: has joined #ruby
[20:16:50] werelivinginthef: has joined #ruby
[20:17:16] thelastinuit: has joined #ruby
[20:17:35] tomphp: has joined #ruby
[20:18:50] Bloodshot: has joined #ruby
[20:18:58] blaines: has joined #ruby
[20:19:45] `derpy: has joined #ruby
[20:19:49] bodgix: has joined #ruby
[20:20:05] gambl0re: has joined #ruby
[20:21:00] pocketprotector: has joined #ruby
[20:22:03] erik_p: has joined #ruby
[20:22:25] arescorpio: has joined #ruby
[20:23:33] Ox0dea: has joined #ruby
[20:23:37] psye: has joined #ruby
[20:23:45] symbole: has joined #ruby
[20:23:51] allcentury: has joined #ruby
[20:23:55] treehug88: has joined #ruby
[20:24:04] Ox0dea: pfish: rb_define_singleton_method() should work just fine?
[20:24:09] treehug88: what is people's favorite rest client library?
[20:25:33] havenwood: treehug88: HTTP client?
[20:25:42] gambl0re: has joined #ruby
[20:25:46] treehug88: havenwood: yeah, specifically for REST services
[20:25:54] ljarvis: what is this http you speak of
[20:26:00] ljarvis: there is rest and there is unrest
[20:26:16] Ox0dea: And often the two shall meet.
[20:26:19] adaedra: and there is soap
[20:26:20] Hanmac: ljarvis: thats something totally new, propably patented by apple
[20:26:32] havenwood: treehug88: Here's an option: https://github.com/httprb/http.rb#readme
[20:26:51] havenwood: treehug88: Or if you might want to switch adapters: https://github.com/lostisland/faraday
[20:26:59] ljarvis: I like http.rb
[20:27:09] treehug88: I'm seeking something specifically for REST
[20:27:23] ljarvis: treehug88: you know REST is just HTTP requests right?
[20:27:31] treehug88: sigh, yes, I know
[20:27:50] ruurd: has joined #ruby
[20:27:51] havenwood: treehug88: Net::HTTP is in the stdlib.
[20:28:00] Ox0dea: havenwood: But no Net::REST!
[20:28:03] treehug88: rest_client it is
[20:28:12] havenwood: Ox0dea: hehe >.>
[20:28:21] havenwood: treehug88: rest_client is a Net::HTTP wrapper
[20:28:33] ljarvis: but it has rest in the name
[20:28:37] havenwood: ljarvis: ahhhh
[20:28:50] havenwood: treehug88: Yeah, if you want REST in the name... that's limiting.
[20:28:58] pfish: Ox0dea: I am assuming that means something like this rb_define_singleton_method(rb_cPPR, "method_missing", ppr_yield, 0);
[20:29:03] treehug88: I'm hearing httparty here
[20:29:06] treehug88: thanks everyone
[20:29:12] havenwood: treehug88: That's another Net::HTTP client.
[20:29:19] havenwood: treehug88: Another wrapper.
[20:29:21] pfish: where ppr_yield is the funciton I want called?
[20:29:26] treehug88: havenwood: yup
[20:29:44] havenwood: treehug88: Anything rest-client or httparty are doing is just Net::HTTP. As mentioned, checkout HTTP.rb.
[20:30:00] pengin: has joined #ruby
[20:30:30] davedev24: has joined #ruby
[20:31:13] havenwood: treehug88: Typhoeus is nice for parallel requests or HTTPClient Excon are nice pure Ruby options (not Net::HTTP wrappers).
[20:31:17] treehug88: cool, thanks again havenwood
[20:31:18] Ox0dea: pfish: Yes, ppr_yield() would be invoked if you called PPR.foobar.
[20:31:22] havenwood: HTTPClient and Excon*
[20:31:42] pfish: what if i called PPR
[20:31:50] Ox0dea: pfish: Isn't it a class?
[20:32:17] Ox0dea: If you want to be able to call PPR, you'll need to define it as a method.
[20:32:25] Antiarc: Manticore if you're on JRuby, but I'm biased, I wrote it :P
[20:32:50] Musashi007: has joined #ruby
[20:32:51] nettoweb: has joined #ruby
[20:34:38] pfish: Ox0dea: Ok the person who originally wrote this library had already figured it out so I am good. It ends up being rb_define_method(rb_mKernel, "PPR", ppr_yield, 0);
[20:35:11] Ox0dea: Aye, but that's quite different from defining method_missing on a singleton class.
[20:35:13] xkickflip: has joined #ruby
[20:35:17] Ox0dea: You had yourself a classic XY problem. :P
[20:35:17] k3asd`: has joined #ruby
[20:38:06] user1138: has joined #ruby
[20:40:09] choke: has joined #ruby
[20:40:39] dfockler: has joined #ruby
[20:41:35] eGGsha: has joined #ruby
[20:41:45] bronson: has joined #ruby
[20:42:27] avitzurel: has joined #ruby
[20:42:35] ruurd: has joined #ruby
[20:42:56] choppington: has joined #ruby
[20:44:26] clamstar: has joined #ruby
[20:45:52] pengin: has joined #ruby
[20:46:39] momomomomo_: has joined #ruby
[20:47:29] michaeldeol: has joined #ruby
[20:47:43] user1138: has joined #ruby
[20:48:43] Hanmac: has joined #ruby
[20:53:24] masteraka: has joined #ruby
[20:54:30] dfockler: has joined #ruby
[20:54:37] eggoez: has joined #ruby
[20:55:10] allomov: has joined #ruby
[20:55:13] ruurd: has joined #ruby
[20:55:33] pfish: Ox0dea: Yeah lol.
[20:55:41] pfish: it works though
[20:57:39] GitGud: has joined #ruby
[20:57:59] pico-pete: has joined #ruby
[20:59:06] hahuang65: has joined #ruby
[21:00:17] gregf1: has joined #ruby
[21:00:54] chussenot_: has joined #ruby
[21:01:47] lordkryss: has joined #ruby
[21:02:47] baweaver: has joined #ruby
[21:03:57] deol: has joined #ruby
[21:05:47] allomov: has joined #ruby
[21:06:04] niemcu: has joined #ruby
[21:08:24] michaeldeol: has joined #ruby
[21:10:03] DEA7TH_: has joined #ruby
[21:10:33] shevy: we are writing more and more code every day
[21:10:38] ndrei: has joined #ruby
[21:11:02] wallerdev: has joined #ruby
[21:11:03] toretore: but loving less
[21:11:40] toretore: how is anything real if it's inside computers
[21:12:20] FernandoBasso: has joined #ruby
[21:12:27] blkperl: has joined #ruby
[21:12:32] shevy: well for now we have sort of limited interfaces, but things will get better eventually
[21:12:54] Hanmac: shevy yeah just see there : https://www.openhub.net/p/rubywx
[21:13:20] slash_nick: toretore: by phase component being zero
[21:14:01] endash: has joined #ruby
[21:15:15] s2013: has joined #ruby
[21:15:32] toretore: maybe the universe is a computer did you ever think about that
[21:16:07] Ox0dea: toretore: The argument goes that we're a simulation inside a computer, not necessarily that the universe itself is a computer.
[21:16:50] zenspider: you say tomato...
[21:16:53] eggoez: has joined #ruby
[21:16:54] Hanmac: Ox0dea: why not both? ;P
[21:17:06] toretore: i'm taking us to unexplored philosophical territories
[21:17:26] Hanmac: toretore: or to the next asylum ;P
[21:17:31] toretore: what even is reality
[21:17:44] Ox0dea: > Cogito ergo sum.
[21:18:03] shevy: hanmac did you have to register for the project description there?
[21:18:36] zenspider: toretore: I hope you don't believe your "unexplored" statement
[21:18:40] gwendall: has joined #ruby
[21:18:40] shevy: hanmac I see that you did not add a lot of info to the readme yet :D https://github.com/Hanmac/rwx
[21:18:44] Hanmac: shevy to add projects you need to be registered to openhub
[21:18:55] rcvalle: has joined #ruby
[21:19:08] Hanmac: shevy the graphs on openhub cant be added to the Readme in github as far as i did see
[21:20:02] toretore: zenspider: i don't know i'm pretty creative like what if faith doesn't exist
[21:20:05] Ox0dea: zenspider: Regarding tomatoes, surely a thing is not its container?
[21:20:25] Ox0dea: toretore: Do you frequent /r/iamverysmart?
[21:20:57] toretore: i probably should
[21:21:08] toretore: teach everyone about the evils of yaldabaoth
[21:21:16] zenspider: the universe is now just a container?
[21:21:26] baweaver: has joined #ruby
[21:21:27] zenspider: sorry... no. n/m. I don't care to continue this BS
[21:21:31] Eminence_: has joined #ruby
[21:21:42] zenspider: ruby ruby ruby... bring it back
[21:21:47] toretore: docker run -ti universe
[21:22:08] toretore: --rm too, don't want to keep it around when it's done
[21:22:21] Hanmac: Ox0dea: hm when its a container, is it compatible with mkv ? ;P
[21:24:14] willharrison: has joined #ruby
[21:24:53] alphaatom: has joined #ruby
[21:25:18] willharrison: how can i do something like [1, 2, 3].select {|n| n == max_of_originial_array }
[21:25:24] Ox0dea: zenspider: You said "you say tomato" as if to imply that the universe being a computer would be the same as the universe being a simulation.
[21:25:29] Ox0dea: I find that argument dubious at best.
[21:25:33] willharrison: im not trying to actually get the max, thats just an example
[21:25:38] willharrison: is that possible?
[21:25:38] CloCkWeRX: has joined #ruby
[21:25:45] tomphp: has joined #ruby
[21:25:50] Ox0dea: willharrison: No, you'll need to store the array as a distinct object to which you can refer. :/
[21:25:58] willharrison: ah ok thats what i thought
[21:26:21] Ox0dea: That's really how it ought to be, though; `self` shouldn't become the Array in a call to #map, for instance.
[21:26:49] willharrison: yeah I understand
[21:27:01] Ox0dea: willharrison: There's always #tap.
[21:27:12] Ox0dea: foo.tap { |ary| ary.select { |n| n == ary.max }
[21:27:13] willharrison: hm I will check that out, I don't know about it
[21:27:21] Ox0dea: Plus another closing brace.
[21:27:36] willharrison: ah interesting
[21:28:04] veduardo: has joined #ruby
[21:28:14] chussenot: has joined #ruby
[21:29:07] allcentury: has joined #ruby
[21:29:14] tkuchiki: has joined #ruby
[21:29:21] dabradley: has joined #ruby
[21:29:58] senayar: has joined #ruby
[21:30:11] jhack32: has joined #ruby
[21:30:39] Ox0dea: willharrison: You've still got to use an intermediate, but at least you can keep it a "pipeline".
[21:30:53] willharrison: I think thats what I was wanting
[21:31:05] willharrison: I'm trying to reduce a simple program to 1 line
[21:31:59] willharrison: been trying to teach my brother ruby but we're still at while loops and if statements. i figure he wont get to see the cool stuff before he goes to college so i want to show him a one liner of a program i had him write
[21:32:06] Synthead: has joined #ruby
[21:32:15] benlovell: has joined #ruby
[21:32:40] kies^: has joined #ruby
[21:35:14] shevy: you can do a one liner loop
[21:35:42] Ox0dea: You can do a one-liner *.
[21:36:03] `derpy: You can do a **.
[21:36:07] shevy: loop { puts 'hello world!' } - not too useful though, so almost a one liner: loop { puts 'hello ruby!'; sleep 1; exit if rand(5) == 0 }
[21:36:15] `derpy: oops, wrong window
[21:36:23] shevy: You can do ***.
[21:36:41] dfockler: after using .each I finally realize when you actually need a for loop
[21:36:44] ruby-lang966: has joined #ruby
[21:36:59] Rubie: has joined #ruby
[21:37:04] dfockler: maybe I don't, never mind
[21:37:51] Ox0dea: You only ever "need" a for loop if you actually want the loop variable(s) to leak.
[21:39:12] sinkensabe: has joined #ruby
[21:39:27] adaedra: And remember that if your variables leak, Julian Assange will publish them.
[21:41:01] ruby-lang360: has joined #ruby
[21:41:09] yqt: has joined #ruby
[21:41:50] otertore: has joined #ruby
[21:42:19] Ox0dea: shevy: [->{puts 'Hello, world.'}, ->{exit}].sample.call while sleep 1 # No semicolons.
[21:42:37] shevy: Ox0dea we should write code for humans
[21:42:53] pipework: And gingers too!
[21:42:58] choke: has joined #ruby
[21:43:04] adaedra: now that's mean
[21:43:11] Ox0dea: shevy: Only Siths deal in absolutes.
[21:43:27] pipework: Only Shits deal in absolutes.
[21:43:27] shevy: adaedra Assange publishes only important stuff!
[21:43:36] shevy: lol pipework
[21:44:00] shevy: pipework and Ox0dea make a great pair
[21:44:01] adaedra: pipework: :'D
[21:44:02] dfockler: forleaks.org
[21:44:11] shevy: eachleaks.org
[21:44:25] dfockler: wikileaks.gov
[21:44:36] Ox0dea: I'm phoning the authorities.
[21:44:40] adaedra: shevy: who said dfockler's variables are not important!?
[21:44:54] willharrison: gets.chomp.split.inject({}){|r,e|r[e]=e.scan(/[AEIOUYaeiouy]/).count;r}.tap{|h|p h.max_by{|k,v|v}}
[21:45:01] willharrison: this is the one liner
[21:45:07] dfockler: someone likes vowels
[21:45:08] Ox0dea: willharrison: /[aeiouy]/i
[21:45:13] willharrison: you give it some words, it tells you which word has the most vowels
[21:45:15] willharrison: Ox0dea ah thanks
[21:45:17] pipework: willharrison: #each_with_object({}) is pretty cool too.
[21:45:37] willharrison: I will check that out
[21:45:49] shevy: gisthub changed something for pasting stuff
[21:45:55] shevy: I can no longer paste into the textarea field :(
[21:46:05] Ox0dea: willharrison: gets.split.max_by { |word| word.downcase.count('aeiouy') }
[21:46:26] shevy: oh... it works if I paste it into an intermediate buffer, without middle mouse button
[21:46:32] devbug: has joined #ruby
[21:46:39] adaedra: Ox0dea: if you need a number, try 36 65 65 65
[21:47:00] Ox0dea: adaedra: Hm?
[21:47:08] adaedra: for phoning the authorities.
[21:47:15] Ox0dea: Oh, right.
[21:47:36] Ox0dea: dfockler seems to have taken his anarchical tendencies elsewhere.
[21:48:05] shevy: anarchy rules
[21:48:06] polpak: has joined #ruby
[21:48:16] shevy: it challenges authority!
[21:48:21] shevy: DOWN WITH THE OPS!!!
[21:48:22] pipework: I don't get the joke.
[21:48:29] pipework: shevy, are you the joke again?
[21:48:30] dfockler: authority uses splash, it's not effective
[21:48:52] shevy: pipework nah but I fail to parse Ox0dea, I mean look at the nick alone
[21:49:12] Ox0dea: Authority used Totalitarianism; it's super-effective... for a while.
[21:49:42] adaedra: Authority uses vote. People has now illusion of choice. It's super effective!
[21:49:58] shevy: yeah, if you vote, you accept the system
[21:50:10] Ox0dea: shevy: What system? Democracy? /s
[21:50:18] quimrstorres: has joined #ruby
[21:50:19] shevy: any system you vote for!
[21:50:33] Ox0dea: People don't vote for systems.
[21:50:35] veduardo: has joined #ruby
[21:50:43] adaedra: Yes they do
[21:50:51] adaedra: IIrc, there was a vote to include systemd in debian
[21:50:53] ruboto: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[21:51:06] shevy: now pipework is angry
[21:51:30] bootstrappm: has joined #ruby
[21:51:42] pipework: Naw, I just like being a party pooper.
[21:51:43] shevy: all discussions shall be about ruby henceforthwith
[21:52:02] bootstrappm: has left #ruby: ()
[21:52:05] _djbkd: has joined #ruby
[21:52:19] dfockler: I wish some of the Enum methods were more functional
[21:52:30] Ox0dea: I wish Array#=== was deep.
[21:52:38] pipework: 'functional' in what way?
[21:52:49] dfockler: like zip is a.zip(b)
[21:53:02] dfockler: where is could be Enum.zip(a, b)
[21:53:09] adaedra: Hopefully, the hole I'm burying this body is deep enough.
[21:53:14] Ox0dea: dfockler: Wrong channel?
[21:53:23] havenwood: dfockler: require 'elixir'; Elixir::Enum.zip(a, b)
[21:53:29] sdothum: has joined #ruby
[21:53:39] pipework: dfockler: It can actually be pretty annoying not having the method as well.
[21:54:04] pipework: I dislike Pathname.glob and have a silly gem that adds Pathname#glob
[21:54:11] Ox0dea: [Numeric, String] === [42, 'foo'] would be nice.
[21:54:25] Ox0dea: Right now Array#=== is just #==, and that's a shame.
[21:54:28] devbug: has joined #ruby
[21:55:14] calleerlandsson: has joined #ruby
[21:55:14] adaedra: Awww, poor Ox0dea
[21:55:19] adaedra: Make a PR to ruby
[21:55:38] havenwood: >> require 'rinda/tuplespace'; space = Rinda::TupleSpace.new; space.write [42, 'foo']; space.read [Numeric, String]
[21:55:40] ruboto: havenwood # => (https://eval.in/401870)
[21:55:52] havenwood: => [42, "foo"]
[21:56:12] ljarvis: how optimal
[21:56:40] monstordh: has joined #ruby
[21:56:44] shevy: who likes Pathname anyway
[21:56:55] dfockler: is === called set membership?
[21:57:10] pipework: Threequals, really.
[21:57:14] ElSif: threequals :D
[21:57:16] pipework: shevy: I do!
[21:57:23] havenwood: one less than fourquals
[21:57:27] Eiam: hmm. any suggestions on how to debug this issue? I have workers (resque) waiting for work, and resque-scheduler, saying its acknowledged the addition of a job to the schedule... but no workers pick up any work
[21:57:34] ElSif: 1 more the.. dequels?
[21:57:36] adaedra: shevy: pathname is nice
[21:59:04] chussenot: has joined #ruby
[21:59:26] havenwood: https://twitter.com/kyrylosilin/status/623250257984495616
[21:59:34] havenwood: tooling \o/
[21:59:35] nofxx: has joined #ruby
[22:00:01] alphaatom: has joined #ruby
[22:00:09] Ox0dea: Hey, *that's* why he wrote faster_method_source.
[22:00:12] monstordh: Newb alert. Trying to get a SASS environment set up. I just found out that sass-globbing 1.1.1 has issues with relative paths and breaks for projects using things like: @import "../../variables/**/*". I have uninstalled and reinstalled -v 1.1.0, which works by all testimonies I have read. However, whenever I do a bundle install sass-globbing 1.1.1 is automatically RE-installed. How do I get this to stop? Am I using a version of sass version that can only
[22:00:12] monstordh: sass-globbing 1.1.1? Currently using 3.4.16 (Selective Steve)
[22:00:39] havenwood: Rubyists, try it out!: https://github.com/kyrylo/system_browser_client#readme
[22:01:39] ElSif: did you only post that cause you got an @ mention in it? ;)
[22:01:59] dfockler: that looks pretty snazzy
[22:02:19] havenwood: ElSif: Yes, that's what makes me tick. Without mentions I die.
[22:03:40] havenwood: ElSif: But no that's not why I posted it, heh.
[22:03:56] havenwood: ElSif: Give it a try...
[22:04:02] ElSif: i probably will :)
[22:04:27] lannonbr: has joined #ruby
[22:04:32] ElSif: with that and sublime text who needs rubymine?
[22:04:46] ElSif: (not that i ever use rubymine...)
[22:05:10] havenwood: ElSif: Could do a Sublime plugin for it too, I'm sure.
[22:05:15] dfockler: I've always been using sublime, maybe I'm not getting my full ruby potential
[22:05:48] ElSif: ooo i was looking for a new python project, maybe thats it?
[22:05:50] dfockler: I used eclipse a while ago and I barely remember java
[22:06:25] havenwood: Load new stuff into Pry, and it automatically has access to it ^
[22:06:45] havenwood: Would be quite a handy tool for an editor as well
[22:08:54] quimrstorres: has joined #ruby
[22:09:47] lorikeet: has joined #ruby
[22:10:25] IceyEC: has joined #ruby
[22:10:43] ElSif: hmmm, ive never written a sublime text extension, seems like that could be fun
[22:11:28] bruno-: has joined #ruby
[22:12:11] MasterPiece: has joined #ruby
[22:12:19] Ox0dea: ElSif: I vaguely recall the API being a little unpleasant.
[22:12:22] Ox0dea: Then again, Python.
[22:12:42] monstordh: ACTION stepping away to clear my head and eat dinner
[22:12:50] Ox0dea: monstordh: Thanks.
[22:12:58] njs126: has joined #ruby
[22:12:59] dfockler: monstordh: grilled cheese?
[22:13:09] monstordh: anything at this point
[22:13:14] pepperbreath1: has joined #ruby
[22:13:18] Ox0dea: Gruy??re best cheese.
[22:13:35] Ox0dea: Feel free to say why you're wrong.
[22:14:09] ElSif: lol, hey now, don't go starting any more flame wars with python
[22:14:24] Ox0dea: ElSif: We're in #ruby, bud. Snakes die often here.
[22:16:06] ElSif: snake is delicious so i guess thats ok
[22:16:15] gamename: has joined #ruby
[22:16:17] tsvenson: has joined #ruby
[22:16:24] momomomomo_: has joined #ruby
[22:17:59] alem0lars: has joined #ruby
[22:19:07] casadei_: has joined #ruby
[22:20:07] silverdust: has joined #ruby
[22:20:33] ruby-lang589: has joined #ruby
[22:20:52] dgutierrez1287: has joined #ruby
[22:22:09] volsus: has joined #ruby
[22:24:05] christiandsg: has joined #ruby
[22:24:15] baweaver: has joined #ruby
[22:25:11] balazs_: has joined #ruby
[22:25:35] [k-: Ox0dea!
[22:26:18] [k-: time to leave :(
[22:30:10] ellisTAA: has joined #ruby
[22:30:55] Spami: has joined #ruby
[22:31:10] dfockler: I wonder why Ruby never got picked up by the scientific community
[22:31:30] dfockler: I guess python has a more orderly vibe to me
[22:32:20] dopie: has joined #ruby
[22:32:26] shevy: I think there are about at the least 2x as many python users out there
[22:32:48] dfockler: that's true
[22:32:50] shevy: #python has 1662 scaly friends
[22:32:59] dfockler: probably more RoR users than python users
[22:33:05] shevy: for C or C++ users, often they just pick one "scripting" language and then stick to it
[22:33:36] shevy: take relion (image processing of 3d cryoelectron microscopy datasets), it's written in C++ and the author knows python so that paved the way already
[22:34:10] masteraka: has joined #ruby
[22:35:55] htmldrum: has joined #ruby
[22:36:22] hagabaka: has joined #ruby
[22:36:25] Musashi007: has joined #ruby
[22:36:48] ElSif: list comprehensions are cool :) especially if you like the word 'for'
[22:37:37] shevy: we hate for!
[22:37:37] dfockler: [for bean in beans]
[22:37:46] shevy: [for x in y in z over a]
[22:38:39] sankaber: has joined #ruby
[22:40:48] ruurd: has joined #ruby
[22:41:04] allomov: has joined #ruby
[22:41:26] jhass: back.chunk(&:crispy?)
[22:41:33] jhass: bacon.chunk(&:crispy?)
[22:42:27] albedoa: has joined #ruby
[22:44:26] Ox0dea: jhass: Did you start with "bacon" and end with "speck"?
[22:44:40] Maletor: has joined #ruby
[22:44:49] jhass: idk what happened, really
[22:45:08] jhass: my muscle memory is all messed up recently :/
[22:45:58] Ox0dea: range(float('inf')) # => TypeError
[22:46:01] Ox0dea: Python is awesome.
[22:46:27] Torrieri: has joined #ruby
[22:46:37] ascarter: has joined #ruby
[22:47:21] JoshL: has joined #ruby
[22:47:26] Ox0dea: Gotta import a module just to iterate over N.
[22:48:28] shevy: jhass it comes naturally so - you are getting older
[22:49:00] psye: has joined #ruby
[22:50:28] Ox0dea: shevy: Everything is always getting older; do you even causality?
[22:50:51] mike___1234: has joined #ruby
[22:51:21] shevy: age deteriorates matter
[22:51:51] albedoa: stupid question: i see things like `if rand > 0.1` with the intent of resolving to 'true' 90% of the time. i know it's incredibly unlikely to affect anything, but shouldn't it technically be `>= 0.1` since it excludes 1.0 as an option?
[22:51:52] ryanprior: has joined #ruby
[22:52:19] workmad3: has joined #ruby
[22:52:32] polpak: Ox0dea: I have to say that's not a situation I've ever needed
[22:52:42] Ox0dea: polpak: Pardon?
[22:52:55] polpak: Ox0dea: enumerating forever
[22:53:00] choke: has joined #ruby
[22:53:06] pandaant: has joined #ruby
[22:53:10] dfockler: Generators!
[22:53:21] dfockler: by any other name
[22:53:30] dfockler: Stream processing is like enumerating forever
[22:53:44] Ox0dea: dfockler: range() is a generator in Python 3, but you still can't tell it to enumerate indefinitely.
[22:53:55] GnuYawk: has joined #ruby
[22:53:55] GnuYawk: has joined #ruby
[22:54:04] Ox0dea: polpak: The purpose of enumerating "forever" is to be able to stop at some point, but without explicitly defining an upper bound.
[22:54:49] polpak: Ox0dea: sure, I've just never needed to count while I did it
[22:54:56] [H]unt3r: has joined #ruby
[22:55:15] ryanprior: I have an array A that's behaving in a way I don't understand. If I call `A.map { |a| a.foo.nil? }` then I get an array back like [False, True, False, False] but what I want is the entries in A for which it's False. So I then try `A.select { |a| a.foo.nil? }` but I get the error NoMethodError: undefined method `foo' for "e":String
[22:55:34] shevy: albedoa probably. although if you are sure you require 90% then I would use numbers that allow clear percentages towards that, rather than rand without arguments
[22:55:57] albedoa: shevy thank you
[22:56:01] ryanprior: Any idea why I wouldn't get a NoMethodError with `map` but then do get one with `select`?
[22:56:01] shevy: albedoa I think 0 is also excluded though
[22:56:18] Ox0dea: shevy: It's not.
[22:56:24] Igorshp: has joined #ruby
[22:56:33] albedoa: shevy "If called without an argument, or if max.to_i.abs == 0, rand returns a pseudo-random floating point number between 0.0 and 1.0, including 0.0 and excluding 1.0."
[22:56:36] shevy: Ox0dea how likely will rand give 0?
[22:56:47] albedoa: so incredibly unlikely
[22:56:48] dfockler: ryanprior: because map's 'a' is an array
[22:56:59] Ox0dea: shevy: It's as likely as it giving you any other number, more or less.
[22:57:00] albedoa: which is also why my question is nitty too
[22:57:25] albedoa: or: it is incredibly unlikely to affect whatever it is you are trying to do
[22:58:08] Ox0dea: >> loop until rand == 0
[22:58:11] ruboto: Ox0dea # => (https://eval.in/401875)
[22:58:43] shevy: ruboto did not continue!
[22:58:47] Ox0dea: Shouldn't take more than a few hours.
[22:58:57] shevy: every time?
[22:59:04] Ox0dea: No, it might never terminate.
[22:59:17] ryanprior: dfockler: if that's true, then why does `[1,2].map { |x| x }` yield [1,2] and not [[1],[2]]?
[22:59:36] dfockler: it's not an array, my bad
[22:59:36] Ox0dea: ryanprior: I suspect you're looking for the #reject method.
[22:59:43] alphaatom: has joined #ruby
[22:59:57] Ox0dea: > NoMethodError: undefined method `foo'
[23:00:02] Ox0dea: That hints at some powerful confusion.
[23:00:06] mary5030: has joined #ruby
[23:00:21] drewvanstone: has joined #ruby
[23:00:28] ryanprior: Ox0dea: I know, I feel powerfully confused. If it works with map how does it error out with select.
[23:00:44] polpak: ryanprior: the problem is you changed what's in A between the map and the select
[23:00:45] Ox0dea: ryanprior: Are you... actually calling #foo on a String?
[23:00:59] polpak: ryanprior: somehow you got a string in there
[23:01:33] polpak: mutation ftl
[23:01:41] ryanprior: polpak: okay, how is it different? according to documentation it looks to me like map and select both pass each respective element into the block?
[23:01:48] Ox0dea: Yes, that's correct.
[23:01:52] polpak: ryanprior: that's correct
[23:01:58] Ox0dea: ryanprior: Are you simply trying to remove the nils from an Array?
[23:02:20] polpak: Ox0dea: no, he wants to know what a's have foo==Nil
[23:02:40] ryanprior: no, I have an array of data structures and I want to keep only those which have non-nil in a particular field
[23:02:52] Ox0dea: A.select { |a| a.foo }, then.
[23:02:55] dfockler: and I want to know why map doesn't throw an error but select does!
[23:02:56] polpak: ryanprior: oh you want reject then
[23:03:29] polpak: Ox0dea: that could remove things for which foo is false
[23:03:49] Ox0dea: I'm willing to wager that doesn't matter in this instance, but you're not wrong.
[23:03:52] masteraka: has left #ruby: ()
[23:04:07] polpak: ryanprior: but either way the issue isn't reject/select it's that you've mutated A
[23:04:31] dfockler: ahhh! mutation! thanks polpak
[23:04:41] ryanprior: polpak: my strong gut feeling is that I am not mutating A. In any case, I am confident that I am not mutating it intentionally.
[23:04:49] Ox0dea: ryanprior: Post code?
[23:05:33] polpak: ryanprior: it's unfortunately very easy to mutate things unintentionally
[23:06:10] quimrsto_: has joined #ruby
[23:06:10] Ox0dea: ryanprior: Did you inadvertently use #map! somewhere?
[23:06:36] thiagovsk: has joined #ruby
[23:06:50] wallerdev: has joined #ruby
[23:07:01] ryanprior: Ox0dea: not anywhere in my code. I'm using Pry to work on this, is it possible Pry is mutating something behind my back?
[23:07:22] Ox0dea: Doubtful.
[23:08:26] Coraline: What does the array look like right now?
[23:08:42] Ox0dea: Coraline: It's got some square brackets, a few commas, and an element or two.
[23:09:47] ryanprior: I tried freezing A (`A.freeze; A.reject {...}`) and it still raises the NoMethodError, not a RuntimeError as I would expect when unintentionally mutating a frozen array.
[23:10:07] Coraline: Ox0dea: that's helpful, thanks!
[23:10:26] bruno-: has joined #ruby
[23:10:31] polpak: ryanprior: well if it's already been mutated, freezing it won't help
[23:10:49] polpak: ryanprior: you have a string in your array. when it encounters the string and calls .foo it bails
[23:11:08] polpak: ryanprior: make sure the Array has what you think it does
[23:11:29] user1138: has joined #ruby
[23:12:15] ryanprior: polpak: that's what I was trying to do by using A.map {...} first
[23:12:33] endash: has joined #ruby
[23:12:43] ryanprior: I reasoned to myself, Ryan I said, you should use `map` to make sure your array's got what you really think it's got.
[23:13:01] polpak: ryanprior: bleh. where is the array coming from?
[23:13:14] Mendenhall: has joined #ruby
[23:13:22] ryanprior: It's a huge pile of commands built using the GLI gem.
[23:13:54] polpak: ryanprior: where some of the commands are strings and some are some other object?
[23:14:06] ryanprior: none of them should be strings, I don't think
[23:14:14] zacstewart: has joined #ruby
[23:14:26] polpak: ryanprior: well if none of them were strings it wouldn't tell you that String has no method .foo
[23:14:31] ryanprior: and if they were strings, then I would hope that `map` would also raise NoMethodError when I tried to call `foo` on the string which doesn't have `foo`
[23:14:48] polpak: ryanprior: that's true
[23:14:58] polpak: ryanprior: the strings were introduced after the map then
[23:15:49] ryanprior: but I don't understand how I did, because I froze the array and then tried map and it worked, then tried select and it didn't.
[23:16:45] ruboto: We can't help you without your code, please post it to https://gist.github.com
[23:17:00] ryanprior: is it possible for GLI to define a custom `select` on the array, and maybe the `select` I'm using is non-standard and broken?
[23:17:12] ryanprior: can I do something like A.select == [1,2].select
[23:17:23] ryanprior: to see if it's the exact same function?
[23:17:52] Ox0dea: ryanprior: Use Array.instance_method(:select).source_location.
[23:18:45] ryanprior: the array doesn't have instance_method defined. is that unusual?
[23:19:04] Ox0dea: ryanprior: I meant using `Array` explicitly, but yeah, just do A.method(:select).source_location.
[23:19:18] hololeap: has joined #ruby
[23:19:45] Ox0dea: Then they're the same method.
[23:20:07] ryanprior: Okay, map and select are both standard.
[23:20:47] ryanprior: The code I'm working with is open source and available as a gem. https://rubygems.org/gems/conjur-cli
[23:21:13] ryanprior: and the array I've been calling A is `Conjur::CLI::commmands` provided by that gem
[23:21:16] Ox0dea: That's not the code that will help us arrive at a solution to your problem.
[23:21:31] Ox0dea: Oh, well, let's see, then.
[23:23:04] Ox0dea: has joined #ruby
[23:25:41] ryanprior: Here's a gist of a pry shell I just ran to demonstrate my confusion https://gist.github.com/ryanprior/f8f536f05efe4fbb1928
[23:25:52] blue_deref: has joined #ruby
[23:26:27] Coraline: Can you just type A and tell us what it spits out?
[23:26:33] bungoman: has joined #ruby
[23:27:19] ryanprior: No, it's some 12k lines of data structure vomit.
[23:27:42] Coraline: Well it's been infected with strings
[23:27:42] ryanprior: I mean I *can* if you're actually somehow interested in that. But yeah.
[23:28:11] Coraline: Oh you did a[1] in the second example
[23:29:07] Coraline: Try clearing your pry session and starting over maybe
[23:29:55] Stratege: has joined #ruby
[23:30:02] ryanprior: Okay, I just did.
[23:30:14] msnyon: has joined #ruby
[23:30:28] ryanprior: I also just tried doing `A.map { |a| a.is_a? String }`
[23:30:46] ryanprior: and `A.map { |a| a[1].is_a? String}`
[23:30:53] ryanprior: both yield arrays of False
[23:31:02] Coraline: OK, so try the select again?
[23:31:18] Igorshp: has joined #ruby
[23:31:29] Coraline: I wonder if .nodoc was mutating a[1]
[23:31:56] ryanprior: A.select { |a| a[1].nodoc.nil? }
[23:31:56] ryanprior: NoMethodError: undefined method `nodoc' for "e":String
[23:31:56] ryanprior: from (pry):15:in `block in __pry__'
[23:33:04] drewo: has joined #ruby
[23:33:08] ryanprior: Some of the data structures in a[1] have nodoc defined to return true, others do not have it defined.
[23:33:08] wallerdev2: has joined #ruby
[23:33:30] ryanprior: What I want is to get an array of only those for which nodoc is *not* defined.
[23:33:41] ryanprior: Which is to say, reject all those for which nodoc is defined.
[23:34:28] polpak: ryanprior: I would probably use respond_to for this myself, but it should work the way you are trying to do it I think
[23:34:37] polpak: ryanprior: err respond_to?
[23:35:02] shevy: I have to convert x seconds into a hh:mm:ss format. Is there a proper name for the hh:mm:ss format though? I want to name the class or method properly
[23:36:04] blackmesa: has joined #ruby
[23:36:11] Ox0dea: has joined #ruby
[23:36:24] Ox0dea: shevy: "Timestamp" is pretty standard nomenclature.
[23:36:26] baweaver: has joined #ruby
[23:37:02] Ox0dea: ryanprior: I can confirm that I'm seeing this error, even outside of pry.
[23:37:25] gwendall: has joined #ruby
[23:37:29] ryanprior: polpak: `A.map { |a| a[1].respond_to? :nodoc }` returns an array of all `true` so for some reason that's not helpful?