« Back to channel list

#ruby - 16 October 2015

« Back 1 day Forward 1 day »
[00:00:48] kalzz: has joined #ruby
[00:07:56] failshell: has joined #ruby
[00:08:53] nullwarp: has joined #ruby
[00:08:53] kalz: has joined #ruby
[00:08:53] rtl: has joined #ruby
[00:08:53] cbetta: has joined #ruby
[00:08:53] iamvery: has joined #ruby
[00:08:53] ujjain: has joined #ruby
[00:08:54] veloutin: has joined #ruby
[00:08:54] rmrrn: has joined #ruby
[00:08:54] ghr: has joined #ruby
[00:08:54] jwang: has joined #ruby
[00:08:54] moss: has joined #ruby
[00:08:54] larissa: has joined #ruby
[00:08:54] skarn: has joined #ruby
[00:08:54] linc01n: has joined #ruby
[00:08:54] sfr^: has joined #ruby
[00:08:54] Didac: has joined #ruby
[00:08:54] keyvan: has joined #ruby
[00:08:54] twodayslate: has joined #ruby
[00:08:54] amitchellbullard: has joined #ruby
[00:08:54] spastorino: has joined #ruby
[00:08:54] jaxxstorm: has joined #ruby
[00:08:54] jsrn: has joined #ruby
[00:08:54] Silex: has joined #ruby
[00:08:54] Nilium: has joined #ruby
[00:08:54] Seich: has joined #ruby
[00:08:54] [spoiler]: has joined #ruby
[00:08:54] an0ma1y-: has joined #ruby
[00:08:54] marahin: has joined #ruby
[00:08:54] preyalone: has joined #ruby
[00:08:54] gsingh93: has joined #ruby
[00:08:54] epochwolf: has joined #ruby
[00:08:54] unclouded: has joined #ruby
[00:08:54] mgorbach: has joined #ruby
[00:08:54] DarthGandalf: has joined #ruby
[00:08:54] DanKnox[away]: has joined #ruby
[00:08:54] ELCALOR: has joined #ruby
[00:08:55] bcavileer: has joined #ruby
[00:08:55] rfv: has joined #ruby
[00:08:55] skmp: has joined #ruby
[00:08:55] zzak: has joined #ruby
[00:08:55] johnhamelink: has joined #ruby
[00:08:55] j416: has joined #ruby
[00:08:55] perrier: has joined #ruby
[00:08:55] Lorn_: has joined #ruby
[00:08:55] CustosLim3n: has joined #ruby
[00:08:55] arthurnn: has joined #ruby
[00:08:55] bluntman: has joined #ruby
[00:08:55] craysiii: has joined #ruby
[00:08:55] Ebok: has joined #ruby
[00:08:55] Senjai: has joined #ruby
[00:08:55] UtkarshRay: has joined #ruby
[00:08:55] ixti: has joined #ruby
[00:08:55] ricer2: has joined #ruby
[00:08:55] MrDSmith: has joined #ruby
[00:08:55] howdoi: has joined #ruby
[00:08:55] Nightmare: has joined #ruby
[00:08:55] David27: has joined #ruby
[00:08:55] haxrbyte_: has joined #ruby
[00:08:55] jessemcgilallen: has joined #ruby
[00:08:55] Derasi: has joined #ruby
[00:08:55] chihhsin: has joined #ruby
[00:08:55] Guest67473: has joined #ruby
[00:08:55] funnel: has joined #ruby
[00:08:56] chopin_: has joined #ruby
[00:08:56] RazorX: has joined #ruby
[00:08:56] duoi: has joined #ruby
[00:08:56] peterhu: has joined #ruby
[00:08:56] benaiah: has joined #ruby
[00:08:56] eikood: has joined #ruby
[00:08:56] frankS2: has joined #ruby
[00:08:56] ukd1: has joined #ruby
[00:08:56] redondos: has joined #ruby
[00:08:56] capin: has joined #ruby
[00:08:56] callumacrae: has joined #ruby
[00:08:56] M-Technic: has joined #ruby
[00:08:56] jpiche: has joined #ruby
[00:08:56] kloeri: has joined #ruby
[00:08:56] jtdowney: has joined #ruby
[00:08:56] Esya|: has joined #ruby
[00:08:56] Iouns: has joined #ruby
[00:08:56] Schmidt: has joined #ruby
[00:08:56] uxp: has joined #ruby
[00:08:56] 7JTAASQIY: has joined #ruby
[00:08:56] KervyN: has joined #ruby
[00:08:56] blowmage: has joined #ruby
[00:08:56] deg__: has joined #ruby
[00:08:56] sethetter: has joined #ruby
[00:08:56] SirFunk: has joined #ruby
[00:08:56] lguardiola: has joined #ruby
[00:08:56] certainty: has joined #ruby
[00:08:56] DylanJ: has joined #ruby
[00:08:56] sekrit: has joined #ruby
[00:08:56] MVPhelp: has joined #ruby
[00:08:56] iszak: has joined #ruby
[00:08:56] existensil: has joined #ruby
[00:08:57] wnd: has joined #ruby
[00:08:57] matled: has joined #ruby
[00:08:57] lnx: has joined #ruby
[00:08:57] neanias: has joined #ruby
[00:08:57] nwhirschfeld: has joined #ruby
[00:08:57] linduxed: has joined #ruby
[00:08:57] v0n: has joined #ruby
[00:08:57] cats: has joined #ruby
[00:08:57] speaking1ode: has joined #ruby
[00:08:57] hfp_work: has joined #ruby
[00:08:57] ankhers: has joined #ruby
[00:08:57] darix: has joined #ruby
[00:08:57] BaNzounet: has joined #ruby
[00:08:57] sross07: has joined #ruby
[00:08:57] Quandl: has joined #ruby
[00:08:57] user083: has joined #ruby
[00:08:57] gregf: has joined #ruby
[00:08:57] ICantCook: has joined #ruby
[00:08:57] pdoherty: has joined #ruby
[00:08:57] nettoweb: has joined #ruby
[00:08:57] blue_deref: has joined #ruby
[00:08:57] DexterLB: has joined #ruby
[00:08:57] sepp2k1: has joined #ruby
[00:08:57] iamayam: has joined #ruby
[00:08:57] haylon: has joined #ruby
[00:08:57] segfalt: has joined #ruby
[00:08:57] DrCode: has joined #ruby
[00:08:57] mprelude: has joined #ruby
[00:08:57] Musashi007: has joined #ruby
[00:08:58] d0lph1n98_: has joined #ruby
[00:08:58] rismoney1: has joined #ruby
[00:08:58] Igorshp: has joined #ruby
[00:08:58] gizmore: has joined #ruby
[00:08:58] fulgore_: has joined #ruby
[00:08:58] ashleyis: has joined #ruby
[00:08:58] nfsnobody: has joined #ruby
[00:08:58] olblak: has joined #ruby
[00:08:58] jcp: has joined #ruby
[00:08:58] gavit: has joined #ruby
[00:08:58] xsdg: has joined #ruby
[00:08:58] euoia: has joined #ruby
[00:08:58] tris: has joined #ruby
[00:08:58] brainslug: has joined #ruby
[00:08:58] oddalot: has joined #ruby
[00:08:58] braidn: has joined #ruby
[00:08:58] ebertx_: has joined #ruby
[00:08:58] TheMoonMaster: has joined #ruby
[00:08:58] retornam: has joined #ruby
[00:08:58] patronus: has joined #ruby
[00:08:58] levifig: has joined #ruby
[00:08:58] sshuff|gone: has joined #ruby
[00:08:58] camt: has joined #ruby
[00:08:58] jayne: has joined #ruby
[00:08:58] rethi: has joined #ruby
[00:08:58] bhorn1: has joined #ruby
[00:08:58] xxx: has joined #ruby
[00:08:58] slash_nick: has joined #ruby
[00:08:58] nirix: has joined #ruby
[00:08:58] pragmatism: has joined #ruby
[00:08:58] samuelkadolph: has joined #ruby
[00:08:58] Paradox: has joined #ruby
[00:08:59] gnarf: has joined #ruby
[00:08:59] sarlalian: has joined #ruby
[00:08:59] phreakocious: has joined #ruby
[00:08:59] jsaak: has joined #ruby
[00:08:59] Jello_Raptor_: has joined #ruby
[00:08:59] joevandyk: has joined #ruby
[00:08:59] icedp: has joined #ruby
[00:08:59] mhenrixon: has joined #ruby
[00:08:59] justinweiss: has joined #ruby
[00:08:59] Guest42003: has joined #ruby
[00:08:59] bhaak: has joined #ruby
[00:08:59] Urocyon: has joined #ruby
[00:08:59] superrorc: has joined #ruby
[00:08:59] SebastianThorn: has joined #ruby
[00:08:59] jinie: has joined #ruby
[00:08:59] finges_: has joined #ruby
[00:08:59] aibot: has joined #ruby
[00:08:59] RandyT: has joined #ruby
[00:08:59] redlegion: has joined #ruby
[00:08:59] Luming: has joined #ruby
[00:08:59] M-mistake: has joined #ruby
[00:08:59] jxie_: has joined #ruby
[00:08:59] low-prof1: has joined #ruby
[00:08:59] dogeuira: has joined #ruby
[00:08:59] Coraline: has joined #ruby
[00:08:59] nickjj: has joined #ruby
[00:08:59] Synthead: has joined #ruby
[00:08:59] ghormoon: has joined #ruby
[00:09:00] yasu_: has joined #ruby
[00:09:00] xMopxShell: has joined #ruby
[00:09:00] Kamilion: has joined #ruby
[00:09:00] gigetoo: has joined #ruby
[00:09:00] Sigma00: has joined #ruby
[00:09:00] Eiam: has joined #ruby
[00:09:00] keypusher: has joined #ruby
[00:09:00] zz_barkerd427: has joined #ruby
[00:09:00] csmb: has joined #ruby
[00:09:00] bodie_: has joined #ruby
[00:09:00] chrisarcand: has joined #ruby
[00:09:00] bakedb: has joined #ruby
[00:09:00] Sou|cutter: has joined #ruby
[00:09:00] rikai: has joined #ruby
[00:09:00] Aria: has joined #ruby
[00:09:00] monsieurp: has joined #ruby
[00:09:00] justinmcp: has joined #ruby
[00:09:00] irk: has joined #ruby
[00:09:00] cliffstah: has joined #ruby
[00:09:00] conrfrmn: has joined #ruby
[00:09:00] Evans: has joined #ruby
[00:09:00] bkutil_: has joined #ruby
[00:09:00] majjoha: has joined #ruby
[00:09:00] cescalante: has joined #ruby
[00:09:00] firoxer_: has joined #ruby
[00:09:00] Guest37717: has joined #ruby
[00:09:00] gf3: has joined #ruby
[00:09:00] maxmanders: has joined #ruby
[00:09:00] kenichi: has joined #ruby
[00:09:01] lhz: has joined #ruby
[00:09:01] kies: has joined #ruby
[00:09:01] mclee_: has joined #ruby
[00:09:01] nomadic: has joined #ruby
[00:09:01] Emmanuel_Chanel: has joined #ruby
[00:09:01] tenderlove: has joined #ruby
[00:09:01] mozzarella: has joined #ruby
[00:09:01] johnny56: has joined #ruby
[00:09:01] davidt: has joined #ruby
[00:09:01] Mia: has joined #ruby
[00:09:01] cibs: has joined #ruby
[00:09:01] Rollabunna: has joined #ruby
[00:09:01] marsjaninzmarsa: has joined #ruby
[00:09:01] T1loc: has joined #ruby
[00:09:01] fumk: has joined #ruby
[00:09:01] df: has joined #ruby
[00:09:01] [ace]_: has joined #ruby
[00:09:01] three18ti: has joined #ruby
[00:09:01] freeze: has joined #ruby
[00:09:01] DefV: has joined #ruby
[00:09:01] matugm: has joined #ruby
[00:09:01] nibbo: has joined #ruby
[00:09:01] raenk: has joined #ruby
[00:09:01] Sthebig: has joined #ruby
[00:09:01] ryotarai: has joined #ruby
[00:09:01] crowell: has joined #ruby
[00:09:01] headius: has joined #ruby
[00:09:01] _aeris_: has joined #ruby
[00:09:01] codex: has joined #ruby
[00:09:02] |ifei5good: has joined #ruby
[00:09:02] jatb: has joined #ruby
[00:09:02] s00pcan: has joined #ruby
[00:09:02] Zackio: has joined #ruby
[00:09:02] terlar: has joined #ruby
[00:09:02] closer: has joined #ruby
[00:09:02] pepperbreath: has joined #ruby
[00:09:02] rewzn: has joined #ruby
[00:09:02] hakunin_: has joined #ruby
[00:09:02] amclain: has joined #ruby
[00:09:02] maletor|work: has joined #ruby
[00:09:02] prestorium: has joined #ruby
[00:09:02] nateberkopec: has joined #ruby
[00:09:02] TheRinger: has joined #ruby
[00:09:02] SamGerber: has joined #ruby
[00:09:02] JimmyNeutron: has joined #ruby
[00:09:02] yeticry: has joined #ruby
[00:09:02] yardenbar: has joined #ruby
[00:09:02] cdg: has joined #ruby
[00:09:02] EminenceHC: has joined #ruby
[00:09:02] djbkd: has joined #ruby
[00:09:02] ochkoffein: has joined #ruby
[00:09:02] wldcordeiro: has joined #ruby
[00:09:02] awrfas2: has joined #ruby
[00:09:02] imajes: has joined #ruby
[00:09:02] mblagden_: has joined #ruby
[00:09:02] shaman42_: has joined #ruby
[00:09:03] bnagy_: has joined #ruby
[00:09:03] LiquidIn1ect: has joined #ruby
[00:09:03] towski__: has joined #ruby
[00:09:03] quazimodo: has joined #ruby
[00:09:03] nug: has joined #ruby
[00:09:03] connor_goodwolf: has joined #ruby
[00:09:03] jtperreault: has joined #ruby
[00:09:03] nisstyre_: has joined #ruby
[00:09:03] daed: has joined #ruby
[00:09:03] yeshacker: has joined #ruby
[00:09:03] xybre: has joined #ruby
[00:09:03] KillerFox: has joined #ruby
[00:09:03] mame2: has joined #ruby
[00:09:03] emhs: has joined #ruby
[00:09:03] nifoc: has joined #ruby
[00:09:03] TheBrayn: has joined #ruby
[00:09:03] Dennis1: has joined #ruby
[00:09:03] inukshuk: has joined #ruby
[00:09:03] Guest36750: has joined #ruby
[00:09:03] forgot: has joined #ruby
[00:09:03] mrtomme: has joined #ruby
[00:09:03] Xiti: has joined #ruby
[00:09:03] edenc: has joined #ruby
[00:09:03] arthurix: has joined #ruby
[00:09:03] jpfuentes2: has joined #ruby
[00:09:03] ledestin: has joined #ruby
[00:09:03] skweek: has joined #ruby
[00:09:03] CloCkWeRX: has joined #ruby
[00:09:03] perry: has joined #ruby
[00:09:03] mmasaki: has joined #ruby
[00:09:04] yosafbridge: has joined #ruby
[00:09:04] rj-code: has joined #ruby
[00:09:04] netwoodle: has joined #ruby
[00:09:04] fullofcaffeine: has joined #ruby
[00:09:04] freerobby: has joined #ruby
[00:09:04] porfa: has joined #ruby
[00:09:04] Dfoolz: has joined #ruby
[00:09:04] ajaiswal: has joined #ruby
[00:09:04] tiredcat_: has joined #ruby
[00:09:04] Azure|dc: has joined #ruby
[00:09:04] diprotic: has joined #ruby
[00:09:04] `tim`: has joined #ruby
[00:09:04] nertzy3: has joined #ruby
[00:09:04] avahey: has joined #ruby
[00:09:04] luckyme: has joined #ruby
[00:09:04] Rixius: has joined #ruby
[00:09:04] centrx: has joined #ruby
[00:09:04] Antiarc: has joined #ruby
[00:09:04] KrzaQ: has joined #ruby
[00:09:04] chouhoulis: has joined #ruby
[00:09:04] jlyndon: has joined #ruby
[00:09:04] Guest65: has joined #ruby
[00:09:04] JammyHammy: has joined #ruby
[00:09:04] bigkevmcd: has joined #ruby
[00:09:04] axisys: has joined #ruby
[00:09:04] CrazyEddy: has joined #ruby
[00:09:05] gener1c_: has joined #ruby
[00:09:05] lady3bean: has joined #ruby
[00:09:05] shortdudey123: has joined #ruby
[00:09:05] arashb: has joined #ruby
[00:09:05] constantinexvi: has joined #ruby
[00:09:05] KnownSyntax: has joined #ruby
[00:09:05] Radar: has joined #ruby
[00:09:05] trajing: has joined #ruby
[00:09:05] based_pdev: has joined #ruby
[00:09:05] omegahm: has joined #ruby
[00:09:05] tonini: has joined #ruby
[00:09:05] ishikawa91: has joined #ruby
[00:09:05] shevy: has joined #ruby
[00:09:05] Laaw: has joined #ruby
[00:09:05] thesheff17: has joined #ruby
[00:09:05] atom3: has joined #ruby
[00:09:05] rlf: has joined #ruby
[00:09:05] Caius: has joined #ruby
[00:09:05] dualbus: has joined #ruby
[00:09:05] programmerq: has joined #ruby
[00:09:05] jbw: has joined #ruby
[00:09:05] deavidsedice: has joined #ruby
[00:09:05] V1s1ble: has joined #ruby
[00:09:05] dfockler: has joined #ruby
[00:09:05] scpike: has joined #ruby
[00:09:05] Contigi: has joined #ruby
[00:09:05] michaeldeol: has joined #ruby
[00:09:06] stevednd: has joined #ruby
[00:09:06] Puffball: has joined #ruby
[00:09:06] cscheib: has joined #ruby
[00:09:06] djcp: has joined #ruby
[00:09:06] hectortrope: has joined #ruby
[00:09:06] musl: has joined #ruby
[00:09:06] avelldiroll: has joined #ruby
[00:09:06] Cork: has joined #ruby
[00:09:06] mnemon: has joined #ruby
[00:09:06] ElderFain: has joined #ruby
[00:09:06] RealMarc: has joined #ruby
[00:09:06] soloone: has joined #ruby
[00:09:06] ytti: has joined #ruby
[00:09:06] jefus: has joined #ruby
[00:09:56] [BNC]BLuEGoD: has joined #ruby
[00:10:07] tokik_: has joined #ruby
[00:10:10] Tristan-Speccy: has joined #ruby
[00:10:10] cgfbee: has joined #ruby
[00:10:10] sulky: has joined #ruby
[00:10:10] jzigmund: has joined #ruby
[00:10:10] rickmasta: has joined #ruby
[00:10:10] Hamled: has joined #ruby
[00:10:10] alol: has joined #ruby
[00:10:10] finisherr: has joined #ruby
[00:10:10] Ropeney: has joined #ruby
[00:10:10] ramfjord: has joined #ruby
[00:10:10] htmldrum: has joined #ruby
[00:10:10] leafybas_: has joined #ruby
[00:10:10] phutchins: has joined #ruby
[00:10:10] soosfarm: has joined #ruby
[00:10:10] canton7: has joined #ruby
[00:10:10] ta: has joined #ruby
[00:10:10] Gnomethrower: has joined #ruby
[00:10:10] anekos: has joined #ruby
[00:10:10] gix: has joined #ruby
[00:10:10] araujo: has joined #ruby
[00:10:10] yeltzooo: has joined #ruby
[00:10:10] kith: has joined #ruby
[00:10:10] NightMonkey: has joined #ruby
[00:10:10] Skelz0r: has joined #ruby
[00:10:10] law: has joined #ruby
[00:10:11] astrobunny: has joined #ruby
[00:10:11] absolutejam: has joined #ruby
[00:10:11] Muz: has joined #ruby
[00:10:11] EdwardIII: has joined #ruby
[00:10:11] tercenya: has joined #ruby
[00:10:11] greedo: has joined #ruby
[00:10:11] russt: has joined #ruby
[00:10:11] PDI: has joined #ruby
[00:10:11] Scient: has joined #ruby
[00:10:11] face: has joined #ruby
[00:10:11] Ray`: has joined #ruby
[00:10:11] sysanthrope: has joined #ruby
[00:10:11] coffeejunk: has joined #ruby
[00:10:11] _5moufl: has joined #ruby
[00:10:11] thejoecarroll_: has joined #ruby
[00:10:11] smooth_penguin: has joined #ruby
[00:10:11] ruisantos: has joined #ruby
[00:10:11] infernix: has joined #ruby
[00:10:11] skullcrasher: has joined #ruby
[00:10:11] Someguy123: has joined #ruby
[00:10:11] Raboo: has joined #ruby
[00:10:11] mosez: has joined #ruby
[00:10:11] Sirecote: has joined #ruby
[00:10:11] Omni_: has joined #ruby
[00:10:11] adeponte: has joined #ruby
[00:10:11] moredhel: has joined #ruby
[00:10:11] davidcelis: has joined #ruby
[00:10:11] Phil-Work: has joined #ruby
[00:10:11] ebertx: has joined #ruby
[00:10:12] joeyjones: has joined #ruby
[00:10:12] aep: has joined #ruby
[00:10:12] tabakhase: has joined #ruby
[00:10:12] tomaw: has joined #ruby
[00:10:12] mist: has joined #ruby
[00:10:12] sjohnsen: has joined #ruby
[00:11:00] frankS2: has joined #ruby
[00:11:49] ValicekB: has joined #ruby
[00:12:01] cwong_on_irc: has joined #ruby
[00:12:25] romero: has joined #ruby
[00:12:48] TDJACR: has joined #ruby
[00:13:02] [BNC]BLuEGoD: has joined #ruby
[00:13:36] ged_: has joined #ruby
[00:13:36] JStoker: has joined #ruby
[00:13:36] 7F1AASOXA: has joined #ruby
[00:13:36] beast: has joined #ruby
[00:13:36] symm-: has joined #ruby
[00:13:36] shawnacscott: has joined #ruby
[00:13:36] p7r: has joined #ruby
[00:13:36] diegoviola: has joined #ruby
[00:13:36] sdothum: has joined #ruby
[00:13:36] Freeaqingme: has joined #ruby
[00:13:37] pleiosaur: has joined #ruby
[00:13:37] _joes__: has joined #ruby
[00:13:37] BTRE: has joined #ruby
[00:13:37] Fraeon: has joined #ruby
[00:13:37] gagrio: has joined #ruby
[00:13:37] bestie: has joined #ruby
[00:13:37] ekleog: has joined #ruby
[00:13:37] elektronaut: has joined #ruby
[00:13:37] _whitelogger: has joined #ruby
[00:13:37] tobyx: has joined #ruby
[00:13:37] eggoez: has joined #ruby
[00:13:37] keen_: has joined #ruby
[00:13:37] robbyoconnor: has joined #ruby
[00:13:37] malcolmva: has joined #ruby
[00:13:37] nizmow: has joined #ruby
[00:13:37] oz: has joined #ruby
[00:13:37] julieeharshaw: has joined #ruby
[00:13:37] Karunamon|2: has joined #ruby
[00:13:37] izzol: has joined #ruby
[00:13:37] ohcibi: has joined #ruby
[00:13:37] Kyle__: has joined #ruby
[00:13:37] ddv: has joined #ruby
[00:13:37] lea: has joined #ruby
[00:13:37] Kero: has joined #ruby
[00:13:37] heathd: has joined #ruby
[00:13:37] tubbo: has joined #ruby
[00:13:37] chrisseaton: has joined #ruby
[00:13:37] pizzaops: has joined #ruby
[00:13:37] avdi: has joined #ruby
[00:13:37] vcoinminer: has joined #ruby
[00:13:37] AustinMatherne: has joined #ruby
[00:13:37] Encapsulation: has joined #ruby
[00:13:38] nitrix: has joined #ruby
[00:13:38] prasselpikachu: has joined #ruby
[00:13:38] hplar: has joined #ruby
[00:13:38] HashNuke: has joined #ruby
[00:13:38] sorah: has joined #ruby
[00:13:38] ddfreyne_: has joined #ruby
[00:13:38] abra0: has joined #ruby
[00:13:38] Apocalypse: has joined #ruby
[00:13:38] sumark: has joined #ruby
[00:13:38] mehwork: has joined #ruby
[00:13:38] unsymbol: has joined #ruby
[00:13:38] tw1sted: has joined #ruby
[00:13:38] wlanboy: has joined #ruby
[00:13:38] RTG`: has joined #ruby
[00:13:38] DEac-: has joined #ruby
[00:13:38] spleeze: has joined #ruby
[00:13:38] queequeg1: has joined #ruby
[00:13:38] ndrst: has joined #ruby
[00:13:38] zrl: has joined #ruby
[00:13:38] boxrick1: has joined #ruby
[00:13:38] Lloyd: has joined #ruby
[00:13:38] countryHick: has joined #ruby
[00:13:38] krainboltgreene: has joined #ruby
[00:13:38] msb_: has joined #ruby
[00:13:38] bttf: has joined #ruby
[00:13:38] tuor: has joined #ruby
[00:13:38] j2k: has joined #ruby
[00:13:38] TTilus: has joined #ruby
[00:13:38] nlsun: has joined #ruby
[00:13:38] martinbjeldbak: has joined #ruby
[00:13:38] kalleth: has joined #ruby
[00:13:38] rdema_: has joined #ruby
[00:13:39] M-prosodyContext: has joined #ruby
[00:13:39] Liam`: has joined #ruby
[00:13:39] haasn: has joined #ruby
[00:13:39] Hobbyboy: has joined #ruby
[00:13:39] Meeh: has joined #ruby
[00:13:39] DenSchub: has joined #ruby
[00:13:39] duckson: has joined #ruby
[00:13:39] bauruine: has joined #ruby
[00:13:39] heftig: has joined #ruby
[00:13:39] phrozen77: has joined #ruby
[00:13:39] nemesit|znc: has joined #ruby
[00:13:39] SuperTux88: has joined #ruby
[00:13:39] dmoe: has joined #ruby
[00:13:39] Fluent: has joined #ruby
[00:13:39] Hien: has joined #ruby
[00:13:39] contradictioned: has joined #ruby
[00:13:39] soahccc: has joined #ruby
[00:14:26] wedgwood: has joined #ruby
[00:14:49] Hanmac: has joined #ruby
[00:15:48] inukshuk: has joined #ruby
[00:15:50] WizJin: has joined #ruby
[00:15:51] kriskropd_: has joined #ruby
[00:15:51] chridal: has joined #ruby
[00:15:51] torpig: has joined #ruby
[00:15:51] GGMethos: has joined #ruby
[00:15:51] konopka: has joined #ruby
[00:15:51] swgillespie: has joined #ruby
[00:15:51] mroth: has joined #ruby
[00:15:51] holsee_: has joined #ruby
[00:15:51] CooloutAC: has joined #ruby
[00:15:51] ksteck: has joined #ruby
[00:15:51] psy: has joined #ruby
[00:15:51] slawrence00: has joined #ruby
[00:15:51] knowtheory: has joined #ruby
[00:15:51] zenspider: has joined #ruby
[00:15:51] oddmunds: has joined #ruby
[00:15:51] genpaku: has joined #ruby
[00:15:51] ozzloy: has joined #ruby
[00:15:51] ekem: has joined #ruby
[00:15:51] lipoqil: has joined #ruby
[00:15:51] borkdude: has joined #ruby
[00:15:51] Nanuq: has joined #ruby
[00:15:51] Caelum: has joined #ruby
[00:15:51] Biohazard: has joined #ruby
[00:15:51] nyandoge: has joined #ruby
[00:15:51] djbender: has joined #ruby
[00:15:51] deimos_: has joined #ruby
[00:15:51] crankharder: has joined #ruby
[00:15:51] async_prince: has joined #ruby
[00:15:51] G: has joined #ruby
[00:15:51] yie: has joined #ruby
[00:15:52] towler: has joined #ruby
[00:15:52] lacrosse: has joined #ruby
[00:15:52] cout: has joined #ruby
[00:15:52] frode15243: has joined #ruby
[00:15:52] drew2_: has joined #ruby
[00:15:52] dasher00: has joined #ruby
[00:15:52] Drakevr: has joined #ruby
[00:15:52] vondruch: has joined #ruby
[00:15:52] m4rCsi: has joined #ruby
[00:15:52] Iacobus: has joined #ruby
[00:15:52] colstrom: has joined #ruby
[00:15:52] ckrailo: has joined #ruby
[00:15:52] DukeDave: has joined #ruby
[00:15:52] lancetw: has joined #ruby
[00:15:52] akitada: has joined #ruby
[00:15:52] im0b: has joined #ruby
[00:15:52] jmhmccr: has joined #ruby
[00:15:52] corpsicle: has joined #ruby
[00:15:52] sts_: has joined #ruby
[00:15:52] Guest37417: has joined #ruby
[00:15:52] sugardrunk: has joined #ruby
[00:15:52] Scroff: has joined #ruby
[00:15:52] diego_k: has joined #ruby
[00:15:52] shadeslayer: has joined #ruby
[00:15:52] jokester: has joined #ruby
[00:15:52] zack6849: has joined #ruby
[00:15:52] JaTochNietDan: has joined #ruby
[00:15:52] Trieste: has joined #ruby
[00:15:52] yxhuvud: has joined #ruby
[00:15:52] valeri_ufo: has joined #ruby
[00:15:52] zly: has joined #ruby
[00:15:53] PaulePanter: has joined #ruby
[00:15:53] danoo_: has joined #ruby
[00:15:53] pabs: has joined #ruby
[00:15:53] varesa: has joined #ruby
[00:15:53] jmcc: has joined #ruby
[00:15:53] jxf: has joined #ruby
[00:15:53] cfloare: has joined #ruby
[00:15:53] null__: has joined #ruby
[00:15:53] cookiez: has joined #ruby
[00:15:55] demophoon: has joined #ruby
[00:15:55] unreal: has joined #ruby
[00:15:55] uber: has joined #ruby
[00:15:55] Vile`: has joined #ruby
[00:15:55] verto: has joined #ruby
[00:15:55] ausec: has joined #ruby
[00:15:55] havenwood: has joined #ruby
[00:15:55] Guest69654: has joined #ruby
[00:15:55] JJM: has joined #ruby
[00:15:55] MiracleBlue: has joined #ruby
[00:15:55] pvac: has joined #ruby
[00:15:55] j0bk: has joined #ruby
[00:15:55] VeryBewitching: has joined #ruby
[00:15:55] GnuYawk: has joined #ruby
[00:15:55] AlexRussia: has joined #ruby
[00:15:55] lkba_: has joined #ruby
[00:15:55] banister: has joined #ruby
[00:15:55] wharr: has joined #ruby
[00:15:55] Sp4rKy: has joined #ruby
[00:15:55] yorickpeterse: has joined #ruby
[00:15:55] ItSANgo: has joined #ruby
[00:15:55] sonOfRa: has joined #ruby
[00:15:55] twohlix: has joined #ruby
[00:15:56] matp: has joined #ruby
[00:15:56] Flipez: has joined #ruby
[00:15:56] michael_mbp: has joined #ruby
[00:15:56] akkad: has joined #ruby
[00:15:56] noethics: has joined #ruby
[00:15:56] okdas: has joined #ruby
[00:15:56] pfg: has joined #ruby
[00:15:56] kellabyte: has joined #ruby
[00:15:56] adambeynon: has joined #ruby
[00:15:56] Guest3421: has joined #ruby
[00:15:56] jokke: has joined #ruby
[00:15:56] zapata: has joined #ruby
[00:15:56] krasnus: has joined #ruby
[00:15:56] heyimwill: has joined #ruby
[00:15:56] bougyman: has joined #ruby
[00:15:56] Eleeleth: has joined #ruby
[00:15:56] sindork_: has joined #ruby
[00:15:56] danzilio: has joined #ruby
[00:15:56] sonne: has joined #ruby
[00:15:56] mduca_: has joined #ruby
[00:15:56] lele: has joined #ruby
[00:15:56] ahuman: has joined #ruby
[00:15:56] ereslibre: has joined #ruby
[00:15:56] ajb: has joined #ruby
[00:15:56] enherit: has joined #ruby
[00:15:56] petems: has joined #ruby
[00:15:56] abyss: has joined #ruby
[00:15:56] Nuck: has joined #ruby
[00:15:56] LoganG: has joined #ruby
[00:15:56] ByronJohnson: has joined #ruby
[00:15:57] DoYouKnow: has joined #ruby
[00:15:57] AdamMeghji: has joined #ruby
[00:15:57] ramblinpeck: has joined #ruby
[00:15:57] PhilK: has joined #ruby
[00:15:57] pmarreck: has joined #ruby
[00:15:57] BackEndCoder: has joined #ruby
[00:15:57] p8952: has joined #ruby
[00:15:57] scottymeuk: has joined #ruby
[00:15:57] saltsa: has joined #ruby
[00:15:57] tekk: has joined #ruby
[00:15:57] SilentEcho: has joined #ruby
[00:15:57] Olipro: has joined #ruby
[00:15:57] hackeron: has joined #ruby
[00:15:57] spectra: has joined #ruby
[00:15:57] Morrolan: has joined #ruby
[00:15:57] jamon_: has joined #ruby
[00:15:57] Rennex: has joined #ruby
[00:15:57] ljarvis: has joined #ruby
[00:15:57] stryek: has joined #ruby
[00:15:57] Veejay: has joined #ruby
[00:15:57] drPoggs: has joined #ruby
[00:15:57] JoshL: has joined #ruby
[00:15:57] ggherdov: has joined #ruby
[00:15:57] papercode: has joined #ruby
[00:15:57] madhatter: has joined #ruby
[00:15:57] xnr: has joined #ruby
[00:15:57] KramerC: has joined #ruby
[00:15:57] alexblom: has joined #ruby
[00:15:57] BiHi: has joined #ruby
[00:15:57] kent\n: has joined #ruby
[00:15:57] fold1: has joined #ruby
[00:15:57] Guest987: has joined #ruby
[00:15:57] aspiers: has joined #ruby
[00:15:57] silverdust: has joined #ruby
[00:15:58] machty: has joined #ruby
[00:16:36] lianj: has joined #ruby
[00:16:36] EvilJStoker: has joined #ruby
[00:16:37] PierreRambaud: has joined #ruby
[00:16:37] Eising: has joined #ruby
[00:16:37] bradland: has joined #ruby
[00:16:37] jaredrhine: has joined #ruby
[00:16:37] cardoni: has joined #ruby
[00:16:37] max_Q_: has joined #ruby
[00:16:37] gregoriokusowski: has joined #ruby
[00:16:37] tubuliferous: has joined #ruby
[00:16:37] gusrub: has joined #ruby
[00:16:37] dmolina: has joined #ruby
[00:16:37] workmad3: has joined #ruby
[00:16:37] Renich: has joined #ruby
[00:16:37] rideh: has joined #ruby
[00:16:37] decoponio: has joined #ruby
[00:16:37] twistedpixels: has joined #ruby
[00:16:37] braincra-: has joined #ruby
[00:16:37] NeverDie: has joined #ruby
[00:16:37] A124: has joined #ruby
[00:16:37] go|dfish: has joined #ruby
[00:16:37] sami: has joined #ruby
[00:16:37] \13k: has joined #ruby
[00:16:37] devyn_: has joined #ruby
[00:16:37] sivoais: has joined #ruby
[00:16:37] Steve_Jobs: has joined #ruby
[00:16:37] lotherk: has joined #ruby
[00:16:37] apeiros: has joined #ruby
[00:16:37] Log1x: has joined #ruby
[00:16:37] halfdan: has joined #ruby
[00:16:37] bryancp: has joined #ruby
[00:16:37] gyre007: has joined #ruby
[00:16:37] jeregrine: has joined #ruby
[00:16:37] Janno: has joined #ruby
[00:16:37] greister: has joined #ruby
[00:16:38] Guest85414______: has joined #ruby
[00:16:38] yo61: has joined #ruby
[00:16:38] Diabolik: has joined #ruby
[00:16:38] kitallisii: has joined #ruby
[00:16:38] jabreity_: has joined #ruby
[00:16:38] jevs: has joined #ruby
[00:16:38] hoylemd_: has joined #ruby
[00:16:38] badeball: has joined #ruby
[00:16:38] bove: has joined #ruby
[00:16:38] cjk101010: has joined #ruby
[00:16:38] mahlon_: has joined #ruby
[00:16:38] segy: has joined #ruby
[00:16:38] calleerlandsson: has joined #ruby
[00:16:38] Heero: has joined #ruby
[00:16:38] shelling__: has joined #ruby
[00:16:38] neersighted: has joined #ruby
[00:16:38] ghoti: has joined #ruby
[00:16:38] yokel: has joined #ruby
[00:16:38] reaVer: has joined #ruby
[00:16:38] lagweezle: has joined #ruby
[00:16:38] glowcoil: has joined #ruby
[00:16:38] gregf__: has joined #ruby
[00:16:38] miah: has joined #ruby
[00:16:38] Zarthus: has joined #ruby
[00:16:38] Nirgali43: has joined #ruby
[00:16:38] parus: has joined #ruby
[00:16:38] hyperdrive: has joined #ruby
[00:16:39] rvchangue: has joined #ruby
[00:16:39] tekacs: has joined #ruby
[00:16:39] adamholt: has joined #ruby
[00:16:48] ElSif: has joined #ruby
[00:17:04] tokik_: has joined #ruby
[00:17:05] A124: has joined #ruby
[00:17:06] fullofca_: has joined #ruby
[00:17:28] romero: has joined #ruby
[00:18:00] Lildirt: has joined #ruby
[00:18:00] Prira: has joined #ruby
[00:18:01] ec\: has joined #ruby
[00:18:01] dostoyevsky: has joined #ruby
[00:18:01] eam: has joined #ruby
[00:18:01] tokik: has joined #ruby
[00:18:01] tomchapin: has joined #ruby
[00:18:01] riotjones: has joined #ruby
[00:18:01] sevin: has joined #ruby
[00:18:01] t0code: has joined #ruby
[00:18:01] jenrzzz: has joined #ruby
[00:18:01] csaunders: has joined #ruby
[00:18:01] kadoppe: has joined #ruby
[00:18:01] nofxx: has joined #ruby
[00:18:01] kobain: has joined #ruby
[00:18:01] leat: has joined #ruby
[00:18:01] zotherstupidguy: has joined #ruby
[00:18:01] dravine: has joined #ruby
[00:18:01] wjimenez5271: has joined #ruby
[00:18:01] ssvss: has joined #ruby
[00:18:01] bahar_: has joined #ruby
[00:18:01] cajone: has joined #ruby
[00:18:01] jaygen: has joined #ruby
[00:18:01] brixen: has joined #ruby
[00:18:01] ejnahc: has joined #ruby
[00:18:01] mburns: has joined #ruby
[00:18:01] Affix: has joined #ruby
[00:18:01] sts: has joined #ruby
[00:18:01] rfi_: has joined #ruby
[00:18:01] Silicium: has joined #ruby
[00:18:02] spacemud: has joined #ruby
[00:18:02] jud: has joined #ruby
[00:18:02] jso: has joined #ruby
[00:18:02] fluchtreflex: has joined #ruby
[00:18:02] theRoUS: has joined #ruby
[00:18:02] humd1ng3r: has joined #ruby
[00:18:02] Bish: has joined #ruby
[00:18:02] tommylommykins: has joined #ruby
[00:18:02] Gadgetoid: has joined #ruby
[00:18:02] sluukkonen: has joined #ruby
[00:18:02] qpls: has joined #ruby
[00:18:02] kaspergrubbe: has joined #ruby
[00:18:02] exceion_: has joined #ruby
[00:18:02] angelixd: has joined #ruby
[00:18:02] thang: has joined #ruby
[00:18:02] bubuntu: has joined #ruby
[00:18:02] jidar: has joined #ruby
[00:18:02] bier_: has joined #ruby
[00:18:02] Jamo_: has joined #ruby
[00:18:02] dhruvasagar: has joined #ruby
[00:18:02] Guest67071: has joined #ruby
[00:18:02] Koshian: has joined #ruby
[00:18:02] Kuukunen: has joined #ruby
[00:18:02] ccooke: has joined #ruby
[00:18:12] tokik_: has joined #ruby
[00:18:38] Mekkis: has joined #ruby
[00:18:38] erichmenge: has joined #ruby
[00:18:38] ajafo: has joined #ruby
[00:18:38] vifino: has joined #ruby
[00:18:38] tsunamie: has joined #ruby
[00:18:38] nej: has joined #ruby
[00:18:45] joast: has joined #ruby
[00:19:06] zenguy_pc: has joined #ruby
[00:19:27] tmtwd: has joined #ruby
[00:19:30] xybre: has joined #ruby
[00:19:44] fullofcaffeine: has joined #ruby
[00:20:01] XxionxX: has joined #ruby
[00:20:25] yfeldblum: has joined #ruby
[00:20:25] Klumben: has joined #ruby
[00:20:25] bryanray: has joined #ruby
[00:20:25] bmn: has joined #ruby
[00:20:25] shtirlic: has joined #ruby
[00:20:25] Liothen: has joined #ruby
[00:20:25] Guest44773: has joined #ruby
[00:20:25] pygospa: has joined #ruby
[00:20:25] SenpaiSilver_: has joined #ruby
[00:20:25] blackjid: has joined #ruby
[00:20:25] Cyther_: has joined #ruby
[00:20:25] verdoc_: has joined #ruby
[00:20:25] kramsee_: has joined #ruby
[00:20:25] crdpink: has joined #ruby
[00:20:25] benlakey: has joined #ruby
[00:20:25] jpinnix______: has joined #ruby
[00:20:25] zipkid: has joined #ruby
[00:20:25] BustyLoliChan: has joined #ruby
[00:20:25] cball: has joined #ruby
[00:20:25] devn: has joined #ruby
[00:20:25] pwnd_nsfw: has joined #ruby
[00:20:26] prosodyVC: has joined #ruby
[00:20:26] fedexo: has joined #ruby
[00:20:26] DoubleMalt: has joined #ruby
[00:20:26] AnoHito: has joined #ruby
[00:20:26] tejasmanohar: has joined #ruby
[00:20:26] Archyme_: has joined #ruby
[00:20:26] CpuID: has joined #ruby
[00:20:26] bafbomb: has joined #ruby
[00:20:26] worstcase: has joined #ruby
[00:20:26] Guest84489: has joined #ruby
[00:20:26] Gnubie_: has joined #ruby
[00:20:26] Killerkeksdose: has joined #ruby
[00:20:26] cek: has joined #ruby
[00:20:26] bartj3_: has joined #ruby
[00:20:26] sjums: has joined #ruby
[00:20:26] cstrahan: has joined #ruby
[00:20:26] manveru: has joined #ruby
[00:20:26] charles81: has joined #ruby
[00:20:26] n1ftyn8_: has joined #ruby
[00:20:26] niko: has joined #ruby
[00:20:26] Tempesta: has joined #ruby
[00:20:26] Bugboy1028: has joined #ruby
[00:20:26] korolyov: has joined #ruby
[00:20:26] hostess: has joined #ruby
[00:20:26] Takumo: has joined #ruby
[00:20:26] troter____: has joined #ruby
[00:20:26] daxroc: has joined #ruby
[00:20:26] pipework: has joined #ruby
[00:20:27] ammar: has joined #ruby
[00:20:27] leslie: has joined #ruby
[00:20:27] boshhead: has joined #ruby
[00:20:27] `derpy: has joined #ruby
[00:20:27] tinyhippo: has joined #ruby
[00:20:27] bascht: has joined #ruby
[00:20:27] snapcase: has joined #ruby
[00:20:27] andersh: has joined #ruby
[00:20:27] zemmihates: has joined #ruby
[00:20:27] Miron: has joined #ruby
[00:20:27] rflot: has joined #ruby
[00:20:27] joaomdmoura: has joined #ruby
[00:20:27] apipkin: has joined #ruby
[00:20:27] cschneid: has joined #ruby
[00:20:27] iooner: has joined #ruby
[00:20:27] Billias: has joined #ruby
[00:20:27] LBRapid_: has joined #ruby
[00:20:27] universa1: has joined #ruby
[00:20:27] drbrain: has joined #ruby
[00:20:27] catbusters: has joined #ruby
[00:20:27] SHyx0rmZ: has joined #ruby
[00:20:27] ex0ns: has joined #ruby
[00:20:27] M-Kodo: has joined #ruby
[00:20:27] adaedra: has joined #ruby
[00:20:27] mistym: has joined #ruby
[00:20:27] znz_jp: has joined #ruby
[00:20:27] ltd: has joined #ruby
[00:20:27] Keltia: has joined #ruby
[00:20:27] mighty_gorilla: has joined #ruby
[00:20:28] bf4: has joined #ruby
[00:20:28] Voxxit: has joined #ruby
[00:20:28] FastJack: has joined #ruby
[00:20:28] tobiasvl: has joined #ruby
[00:20:28] rcs: has joined #ruby
[00:20:28] jimeh: has joined #ruby
[00:20:28] jhass: has joined #ruby
[00:20:28] harryk: has joined #ruby
[00:20:28] eregon: has joined #ruby
[00:20:28] terrellt: has joined #ruby
[00:20:28] DarkBushido: has joined #ruby
[00:20:28] ZeeNoodleyGamer: has joined #ruby
[00:20:28] george2: has joined #ruby
[00:20:28] kiki_lamb: has joined #ruby
[00:20:28] teotwaki: has joined #ruby
[00:20:28] skakri: has joined #ruby
[00:20:28] ZYPP: has joined #ruby
[00:20:28] tskogberg: has joined #ruby
[00:20:28] z3uS: has joined #ruby
[00:20:41] lokulin: has joined #ruby
[00:21:28] sgambino: has joined #ruby
[00:21:44] bcavileer: has joined #ruby
[00:22:17] tAn: has joined #ruby
[00:23:10] inukshuk: has joined #ruby
[00:23:10] sivoais_: has joined #ruby
[00:27:16] Mission-Critical: has joined #ruby
[00:27:23] first-time-stude: has joined #ruby
[00:27:24] first-time-stude: Hi All, is this the right place to ask for advice/help on Ruby problems?
[00:27:32] tmtwd: has joined #ruby
[00:28:30] tmtwd: has joined #ruby
[00:28:41] Aria: Welcome!
[00:30:13] first-time-stude: OKay! I am a new student and I have a query: My teacher would like me to find the longest word in a string. I figured out how to do this with Ruby's sort! method and a comparative operator, but my teacher has mandated that I must use a Loop in order to accomplish this task
[00:30:13] arthurix_: has joined #ruby
[00:30:20] uber: has joined #ruby
[00:30:43] kurzweil: has joined #ruby
[00:30:48] amoeba: has joined #ruby
[00:30:49] first-time-stude: What is the best approach to solve this problem>
[00:31:12] JStoker: has joined #ruby
[00:31:14] wedgwood: has joined #ruby
[00:31:14] TDJACR: has joined #ruby
[00:31:19] goldfish6744: has joined #ruby
[00:31:21] PlasmaStar: has joined #ruby
[00:31:21] scottstamp: has joined #ruby
[00:31:21] mrtomme: has joined #ruby
[00:31:30] heinrich5991: has joined #ruby
[00:31:31] armyriad: has joined #ruby
[00:31:34] A124: has joined #ruby
[00:31:36] Coldblackice: has joined #ruby
[00:31:40] RobertBirnie: has joined #ruby
[00:31:44] PaulCapestany: has joined #ruby
[00:31:50] mrchris: has joined #ruby
[00:32:00] oetjenj: has joined #ruby
[00:32:15] Brando753: has joined #ruby
[00:32:16] Guest93258: has joined #ruby
[00:32:17] Azure: has joined #ruby
[00:32:24] ruboto_: has joined #ruby
[00:33:01] BraddPitt: has joined #ruby
[00:33:27] jhass: first-time-stude: probably grilling the teacher over an open fire. Best solution: split.max_by(&:size), desired solution: max = ""; words.each do |word| max = word if word.size > max.size; end;
[00:33:37] mission712: has joined #ruby
[00:34:01] jhass: the latter is pretty much just reimplementing max_by of course
[00:35:33] baweaver: has joined #ruby
[00:36:07] Kharma: has joined #ruby
[00:36:37] clamstar: has joined #ruby
[00:37:54] first-time-stude: jhass, thank you for your advice. I'm going to study this and get back if I have ny questions
[00:38:22] first-time-stude: Do the semicolons in your syntax mean new line?
[00:38:40] stannard: has joined #ruby
[00:39:06] baweaver: Avoid semicolons in ruby
[00:39:18] dgynn: has joined #ruby
[00:39:19] baweaver: chances are high you won't actually need them
[00:39:34] jhass: it's valid syntax but real code should replace them with newlines
[00:39:47] first-time-stude: right, but I mean in jhass's code, I think he is using the semicolons to indicate a new line
[00:40:04] ledestin: has joined #ruby
[00:40:20] first-time-stude: thanks lol, I just started learning code iterally 3 weeks ago, so yea
[00:40:25] havenwood: first-time-stude: yup, semicolons in examples means use real newlines in real life
[00:40:33] drbrain: >> out = []; out << 'unless'; out << 'you'; out << 'submit'; out << 'to'; out << 'ruboto'; out.join ' '
[00:40:35] ruboto_: drbrain # => "unless you submit to ruboto" (https://eval.in/451712)
[00:41:04] cemez: has joined #ruby
[00:41:17] Hanmac: has joined #ruby
[00:42:46] keen__: has joined #ruby
[00:43:50] oetjenj: has joined #ruby
[00:44:45] Scripore: has joined #ruby
[00:46:07] bryanray: has joined #ruby
[00:46:17] weaksauce: has joined #ruby
[00:47:54] solocshaw: has joined #ruby
[00:47:57] Igorshp: has joined #ruby
[00:48:06] ellisTAA: has joined #ruby
[00:48:55] K1MOS: has joined #ruby
[00:49:49] dopamean_: has joined #ruby
[00:50:32] mistermocha: has joined #ruby
[00:52:21] mistermocha: has joined #ruby
[00:54:39] GriffinHeart: has joined #ruby
[00:56:47] l_tonz: has joined #ruby
[01:02:08] tkuchiki: has joined #ruby
[01:03:03] oetjenj: has joined #ruby
[01:03:30] Hanmac: has joined #ruby
[01:04:12] Bellthoven: has joined #ruby
[01:06:43] first-time-stude: Hi all, I have a question regarding my earlier query: Finding longest word in a given string. Can someone walk me through this piece of code and explain how it works? http://rubyfiddle.com/riddles/3af73
[01:07:42] spuk: has joined #ruby
[01:08:26] CloCkWeRX: has joined #ruby
[01:09:43] dikaio: has joined #ruby
[01:10:01] havenwood: first-time-stude: Line one begins to define a method #longest_word with a single `sentence` argument that's presumably a String.
[01:11:03] rickmasta: has joined #ruby
[01:11:24] tomchapin: has joined #ruby
[01:11:34] etrae: has joined #ruby
[01:12:07] first-time-stude: Okay, I follow so far, Havenwoord
[01:12:11] havenwood: first-time-stude: Line two sets the `words` local variable to an Array of Strings created from splitting the `sentence` String on spaces.
[01:12:31] havenwood: >> 'hi there'.split ' '
[01:12:32] ruboto_: havenwood # => ["hi", "there"] (https://eval.in/451716)
[01:12:54] sankaber: has joined #ruby
[01:13:11] first-time-stude: I understand you so far
[01:14:02] houhoulis: has joined #ruby
[01:16:36] havenwood: first-time-stude: At this point the code strays from the idiomatic path.
[01:18:11] first-time-stude: what does that mean? Does that mean That the code goes against best practice and opts for the more difficult path?
[01:18:15] joast: has joined #ruby
[01:18:37] jordanm: has joined #ruby
[01:18:50] havenwood: first-time-stude: Yeah, it's not the path of perfection. There are technically better ways.
[01:19:18] tomchapin: has joined #ruby
[01:19:40] havenwood: first-time-stude: On line four the local variable `longest_word` is initialized as `nil` (itself a sign things may be wonky) which is the same bareword as the `longest_word` method it's inside.
[01:19:47] oetjenj: has joined #ruby
[01:20:33] fullofcaffeine: has joined #ruby
[01:20:45] havenwood: first-time-stude: In irb or pry try creating a method and instance variable with the same bareword. See which ends up getting called when you make one then the other, restart irb and try the other order.
[01:20:58] djcp1: has joined #ruby
[01:21:04] mary5030: has joined #ruby
[01:21:55] first-time-stude: what do you mean by bareword?
[01:22:34] xybre: has joined #ruby
[01:22:38] havenwood: first-time-stude: Just letters with no sigil in front or anything like that. Both local variables and methods are "barewords."
[01:23:21] havenwood: first-time-stude: Like `words`, `sentence`, `word_idx` but not `1`, `:example`, `"hi"`, etc.
[01:23:57] patdohere: has joined #ruby
[01:24:15] havenwood: first-time-stude: See: http://devblog.avdi.org/2012/10/01/barewords/
[01:24:19] tkuchiki: has joined #ruby
[01:25:50] patdohere: has joined #ruby
[01:25:54] first-time-stude: Ah, I think I understand, barewords have no inherent value within themselves, because they are created on the spot by the user - is this correct?
[01:26:25] havenwood: first-time-stude: They're either local variables or methods. Try playing with it in irb or pry.
[01:26:29] mistermocha: has joined #ruby
[01:26:34] havenwood: first-time-stude: Have you used irb or pry?
[01:26:44] ruurd: has joined #ruby
[01:27:07] first-time-stude: Nope :) My teacher has not set it up for the class
[01:27:11] mrconfused: has joined #ruby
[01:27:20] first-time-stude: But I understand what you mean by barewords now
[01:27:31] devoldmx: has joined #ruby
[01:27:33] first-time-stude: Atleast, I understand enough for the context of this lesson
[01:27:38] havenwood: first-time-stude: From your commandline type: irb
[01:28:22] havenwood: first-time-stude: For example a simpler version of that method might read: def longest_word(sentence); sentence.split.max_by(&:size) end
[01:28:32] saddad: has joined #ruby
[01:29:05] sivoais: has joined #ruby
[01:29:20] first-time-stude: I typed IRB in my mac's terminal
[01:30:00] oetjenj: has joined #ruby
[01:30:21] havenwood: first-time-stude: Try causing an error by just typing: word
[01:31:07] first-time-stude: yes, the error of undefined LocalVariable is my return
[01:31:09] havenwood: first-time-stude: It should be a NameError.
[01:31:23] slushdot: has joined #ruby
[01:31:42] first-time-stude: Havenword, I think it might be worth mentioning I dont have Ruby installed on my Mac, does this matter?
[01:31:54] havenwood: first-time-stude: Now try: def word; 'sekret' ; end
[01:32:04] xybre: It comes pre-installed usually
[01:32:13] havenwood: first-time-stude: (Hit return for a newline in place of the semicolons.)
[01:32:30] slushdot: Hello. FUCK ALL SPICS, NIGGERS, JEWS, CHRISTIANS, SAND NIGGERS, DUNE COONS, KIKES, CHINKS, WETBACKS, FAGS, DYKES, AND PEOPLE WHO LIKE PEACH ICE CREAM, JOIN #WEB FOR FREE OPS AND TELL THEM EMERSON SENT YOU. FREE GAY MIDGET PORN!!!!!!!!!!!!!!!!!!
[01:32:34] havenwood: !mute slushdot
[01:32:35] ruboto_: +q slushdot!*@*
[01:32:35] ruboto_: -o ruboto_
[01:33:14] tkuchiki: has joined #ruby
[01:33:16] havenwood: I'd have expected: "sekret"
[01:34:04] fullofcaffeine: has joined #ruby
[01:34:05] first-time-stude: I think I'm typing it wrong
[01:34:09] bnagy: >> def word; 'sekret' ; end
[01:34:10] ruboto_: bnagy # => :word (https://eval.in/451717)
[01:34:19] havenwood: bnagy: oooh
[01:34:28] havenwood: first-time-stude: No you did right. I forgot to tell you a step...
[01:34:34] bnagy: method defs return a symbol? o_0
[01:34:37] nettoweb: has joined #ruby
[01:34:42] bnagy: 19>> def word; 'sekret' ; end
[01:34:42] havenwood: first-time-stude: Now type: word
[01:34:43] ruboto_: bnagy # => nil (https://eval.in/451718)
[01:34:55] first-time-stude: ahh, i see it now
[01:35:01] first-time-stude: returns "sekret"
[01:35:03] havenwood: bnagy: :D yup, and thanks for pointing out what was happening
[01:35:11] havenwood: first-time-stude: Now try: work = "a local variable"
[01:35:16] havenwood: first-time-stude: Now try: word = "a local variable"
[01:35:25] speakingcode: has joined #ruby
[01:35:27] havenwood: first-time-stude: ^ typo, meant word
[01:35:35] first-time-stude: returns "a local variable"
[01:36:03] havenwood: first-time-stude: So the local variable `word` stomped on the method `word`.
[01:36:22] havenwood: first-time-stude: Now again try: def word; 'trying'; end
[01:36:23] tkuchiki_: has joined #ruby
[01:36:29] havenwood: first-time-stude: And one more time check: word
[01:36:51] first-time-stude: a local variable
[01:37:11] havenwood: first-time-stude: So if there's a local variable and a method of the same name, the local variable wins.
[01:37:54] havenwood: first-time-stude: So it's confusing to have both local variables and methods with the same name.
[01:38:36] havenwood: first-time-stude: And if neither is defined but you try it it'll raise an error.
[01:38:39] first-time-stude: Havenwood, if I may interject - are you basically informing me to caution against using similar words in defining methods/variables?
[01:38:45] cwong_on_irc: has joined #ruby
[01:38:52] havenwood: first-time-stude: Yup, exactly.
[01:39:16] djcp1: has joined #ruby
[01:39:38] oetjenj: has joined #ruby
[01:39:45] first-time-stude: I see, you must understand that my teacher is trying to Mr.Miyagi us and have us to Wax on Wax off in Ruby until we can write small scale code the hard/long way first before we learn better techniques
[01:40:16] first-time-stude: tldr; its a pain in the ass, but who am I to complain
[01:41:25] novtopro: has joined #ruby
[01:41:48] mrconfused: has left #ruby: ()
[01:42:03] havenwood: first-time-stude: The last line of the method implicitly returns so you should drop the `return` and just have `longest_word` on the last line.
[01:42:13] diegoaguilar: has joined #ruby
[01:42:39] mistermocha: has joined #ruby
[01:42:57] havenwood: first-time-stude: The last evaluated statement of the method will be its return value if there isn't an early return.
[01:43:09] Kara: has joined #ruby
[01:43:30] mistermocha: has joined #ruby
[01:43:35] first-time-stude: I understand this part, yes, but this code was written by my teacher - so I must live with it lol
[01:43:50] havenwood: first-time-stude: Koans are good. Meditate on code to reach enlightenment!
[01:44:04] moredhel: has left #ruby: ("undefined")
[01:44:20] havenwood: first-time-stude: aha
[01:44:50] bruno-: has joined #ruby
[01:45:06] first-time-stude: But Havenwood, I believe my problem of undertanding lies in specifically Lines 8-13 of my teacher's code
[01:45:09] havenwood: first-time-stude: You may enjoy going through the Ruby Koans to learn some Ruby while also learning testing: http://rubykoans.com
[01:45:15] fullofcaffeine: has joined #ruby
[01:45:25] first-time-stude: Do you think you can explain this to me?
[01:45:44] havenwood: first-time-stude: Strings have indexes starting at zero for the first character.
[01:45:58] havenwood: >> 'a string'[0]
[01:46:00] ruboto_: havenwood # => "a" (https://eval.in/451719)
[01:46:19] first-time-stude: I uderstand this concept, yes
[01:46:56] havenwood: first-time-stude: `word` is a String so line eight sets the local variable `current_word` to the `word_idx` (Integer) index of `words` (String).
[01:47:24] hacworld: has joined #ruby
[01:47:27] havenwood: first-time-stude: Oh dear, that's wrong.
[01:47:35] Guest85414______: has joined #ruby
[01:47:40] havenwood: first-time-stude: Sorry, multitasking. Concentrating now.
[01:47:56] havenwood: first-time-stude: The `words` Array.
[01:48:24] havenwood: >> words = 'into an array'.split(" ")
[01:48:25] ruboto_: havenwood # => ["into", "an", "array"] (https://eval.in/451720)
[01:48:35] havenwood: >> ["into", "an", "array"] [0]
[01:48:37] ruboto_: havenwood # => "into" (https://eval.in/451721)
[01:48:41] skcin7: has joined #ruby
[01:48:58] first-time-stude: Okay, I understand both of your concepts
[01:49:00] yo61: has joined #ruby
[01:49:01] oetjenj: has joined #ruby
[01:49:15] havenwood: first-time-stude: So the `word_idx` starts at `0` and sets `current_word` to the first element of the `words` Array.
[01:50:00] havenwood: first-time-stude: So the local variable `current_word` is the first word on the first iteration of the Array.
[01:50:09] bryanray: has joined #ruby
[01:50:26] havenwood: first-time-stude: The `longest_word` starts out as `nil` as per line four.
[01:50:48] rickmasta: has joined #ruby
[01:51:02] ItSANgo: has joined #ruby
[01:51:22] havenwood: first-time-stude: So on the first iteration the `longest_word` will always be `nil` and the if statement will set `longest_word` to now be `current_word`.
[01:51:23] GriffinHeart: has joined #ruby
[01:51:24] diegoaguilar: has joined #ruby
[01:52:19] havenwood: first-time-stude: On subsequent iterations it wont be `nil` anymore so the `elsif` clause will check if it's longer than the current word.
[01:52:37] havenwood: first-time-stude: If so, it'll replace the old `longest_word` with the `current_word`.
[01:52:45] jmhmccr: has joined #ruby
[01:52:56] first-time-stude: Okay, I have understood what you have said so far
[01:53:05] havenwood: first-time-stude: Then line sixteen increments the index counter to manually move onto the next iteration.
[01:53:16] lacrosse: has joined #ruby
[01:53:22] boxrick1: has joined #ruby
[01:53:50] first-time-stude: so how does this code compare the lengths of specific words against other words in the array?
[01:54:02] havenwood: first-time-stude: It'll go back to the `while word_idx < words.length` and if the newly +1ed `word_idx` is now >= `words.length` it'll break.
[01:54:40] havenwood: first-time-stude: It's an awkward way to manually start at index zero of the Array and iterate until the last element is reached.
[01:55:21] havenwood: first-time-stude: If it's the first iteration it sets longest_word to current_word. Otherwise it updates longest_word only if the current_word is longer than the previous longest_word.
[01:55:27] GriffinHeart: has joined #ruby
[01:57:33] fedexo: has joined #ruby
[01:58:19] psy: has joined #ruby
[01:58:39] l_tonz: has joined #ruby
[01:58:57] Guest86745: has joined #ruby
[01:59:08] elliottcable: has joined #ruby
[01:59:15] preyalone: has joined #ruby
[02:00:28] krzkrz: has joined #ruby
[02:00:55] mary5030: has joined #ruby
[02:01:50] oetjenj: has joined #ruby
[02:02:23] workmad3: has joined #ruby
[02:02:41] first-time-stude: wait a minute, I think I understand this now
[02:03:13] l_tonz: has joined #ruby
[02:03:22] first-time-stude: it loops through the array and compares the length of the current word against the longest word
[02:03:34] tkuchiki: has joined #ruby
[02:03:43] Heero: has joined #ruby
[02:03:59] arup_r: has joined #ruby
[02:04:18] keyvan: has joined #ruby
[02:04:22] joaomdmoura: has joined #ruby
[02:04:44] im0b: has joined #ruby
[02:04:48] nateberkopec: has joined #ruby
[02:05:31] pcfreak30: has joined #ruby
[02:06:03] user083: has joined #ruby
[02:06:08] pcfreak30: Novice question. is there a reason to use a module over a class for static methods? I know a module inherits a class.
[02:06:52] havenwood: first-time-stude: Check the history of this Gist: https://gist.github.com/havenwood/0ea24f887cb98081819c
[02:07:07] Shoutsid: has joined #ruby
[02:07:20] havenwood: first-time-stude: The Revisions I mean.
[02:07:30] havenwood: first-time-stude: https://gist.github.com/havenwood/0ea24f887cb98081819c/revisions
[02:08:07] first-time-stude: yesss, thank you Havenwood
[02:08:08] havenwood: first-time-stude: I could have done it more incrementally but I'm trying to show how you'd move it towards idiomatic code.
[02:08:16] havenwood: first-time-stude: you're welcome
[02:08:40] failshell: has joined #ruby
[02:08:45] nofxx: pcfreak30, it's more like: I'm a module with static methods, don't initialize me
[02:08:50] first-time-stude: I only have one last question
[02:08:56] nofxx: pcfreak30, class always gives the impression you need an instance
[02:09:04] nofxx: so I would say best practice, use a module
[02:09:13] Joufflu: has joined #ruby
[02:09:16] first-time-stude: In your previous statements, you stated that the code loops through the array
[02:09:37] first-time-stude: but at what point in the code was the string morphed into an array? Was it done using the .split method?
[02:09:42] havenwood: pcfreak30: Always use the simplest thing, so like nofxx said if you don't need to instantiate anything use a Module.
[02:09:57] zenguy_pc: has joined #ruby
[02:09:58] havenwood: first-time-stude: Yup, String#split returns an Array.
[02:10:12] BraddPitt: anyone ever used the Audite gem? I'm having playback problems (plays at double speed) but using mpg123 natively doesnt have that problem
[02:10:15] BraddPitt: niche question, I know
[02:10:49] bnagy: pcfreak30: also, I can't think of any way in which "a module inherits a class" is true
[02:11:00] bnagy: so you might want to un-know that
[02:11:30] havenwood: pcfreak30: https://www.gliffy.com/go/publish/5152080
[02:11:55] mary5030: has joined #ruby
[02:11:56] havenwood: pcfreak30: Module's class is Class, whose superclass is Module.
[02:12:44] pcfreak30: ok so got them inverted
[02:13:14] havenwood: pcfreak30: Some classes include modules (mixins) but not Class itself.
[02:13:23] drbrain: modules exist on a class' ancestor list, so they're involved in ruby's inheritance as mixins
[02:13:29] bnagy: to be honest the fact that Class is_a? Module is something best forgotten
[02:13:53] bnagy: it's an implementation detail, but doesn't "make sense" if you're trying to understand how to use them
[02:14:24] bnagy: imho anyway :P
[02:14:41] favadi: has joined #ruby
[02:15:14] WillAmes: has joined #ruby
[02:15:44] Zamyatin: has joined #ruby
[02:16:00] bnagy: this reminds me of last week when shevy was grumpy that you can't mix-in Classes
[02:16:18] bnagy: cause, from a certain angle, that's just arbitrary o_0
[02:17:50] swgillespie: has joined #ruby
[02:18:04] _blizzy_: has joined #ruby
[02:19:13] GriffinHeart: has joined #ruby
[02:20:20] swgillespie: has joined #ruby
[02:21:19] jenrzzz: has joined #ruby
[02:21:42] l_tonz: has joined #ruby
[02:24:09] oetjenj: has joined #ruby
[02:24:29] porfa: why isn't coco in the report? why isn't the var being printed on the mail???? https://gist.github.com/anonymous/192d7e2007d71a584e5e
[02:26:49] _blizzy_: has joined #ruby
[02:28:37] beauby: has joined #ruby
[02:29:03] David27: has joined #ruby
[02:30:47] devbug: has joined #ruby
[02:31:11] _blizzy_: has joined #ruby
[02:31:34] p3ery: has joined #ruby
[02:32:45] Joufflu: has joined #ruby
[02:32:51] p3ery: has joined #ruby
[02:34:21] bnagy: >> foo = "blah"; [$foo, foo]
[02:34:27] ruboto_: bnagy # => [nil, "blah"] (https://eval.in/451741)
[02:35:16] p3ery: has joined #ruby
[02:38:43] Maletor: has joined #ruby
[02:39:38] baweaver: has joined #ruby
[02:39:40] diegoaguilar: has joined #ruby
[02:42:01] Asher: has joined #ruby
[02:43:08] hinbody: has joined #ruby
[02:43:54] Feyn: has joined #ruby
[02:44:20] finisherr: has joined #ruby
[02:46:47] bruno-: has joined #ruby
[02:49:04] oetjenj: has joined #ruby
[02:52:33] helpa: has joined #ruby
[02:53:25] l_tonz: has joined #ruby
[02:55:19] LMity: has joined #ruby
[02:55:48] minimalism: has joined #ruby
[02:55:51] EvilJStoker: has joined #ruby
[02:56:00] tkuchiki: has joined #ruby
[02:57:17] dikaio: has joined #ruby
[02:59:54] RobertBirnie: has joined #ruby
[03:00:51] gener1c: has joined #ruby
[03:01:34] diegoviola: has joined #ruby
[03:02:24] arescorpio: has joined #ruby
[03:02:55] nekomimimaid: has joined #ruby
[03:03:20] tenderlo_: has joined #ruby
[03:07:22] GriffinHeart: has joined #ruby
[03:08:14] bigkevmcd: has joined #ruby
[03:09:46] braincrash: has joined #ruby
[03:10:34] gix: has joined #ruby
[03:10:48] dopie: has joined #ruby
[03:11:43] awrfas2: has joined #ruby
[03:13:01] oetjenj: has joined #ruby
[03:13:02] Musashi007: has joined #ruby
[03:14:34] Soda: has joined #ruby
[03:16:18] fullofcaffeine: has joined #ruby
[03:22:03] jessemcgilallen: has joined #ruby
[03:23:10] krz: has joined #ruby
[03:24:43] tomchapin: has joined #ruby
[03:27:30] fullofcaffeine: has joined #ruby
[03:27:44] devbug_: has joined #ruby
[03:28:02] devoldmx: has joined #ruby
[03:30:27] iamjarvo_: has joined #ruby
[03:30:39] Spami: has joined #ruby
[03:30:55] devbug__: has joined #ruby
[03:33:27] darkf: has joined #ruby
[03:33:33] darkf: has joined #ruby
[03:33:44] oetjenj: has joined #ruby
[03:35:55] mloy: has joined #ruby
[03:36:14] favadi: has joined #ruby
[03:38:06] nettoweb: has joined #ruby
[03:40:01] khebbie: has joined #ruby
[03:40:31] G: has joined #ruby
[03:41:03] gsingh93: has joined #ruby
[03:43:58] htmldrum: has joined #ruby
[03:46:24] davidcelis: has joined #ruby
[03:46:24] davidcelis: has joined #ruby
[03:46:28] lorn: has joined #ruby
[03:48:40] bruno-: has joined #ruby
[03:49:01] iateadonut: has joined #ruby
[03:50:20] oetjenj: has joined #ruby
[03:51:41] ammar: has joined #ruby
[03:52:56] leslie: has joined #ruby
[03:52:56] leslie: has joined #ruby
[03:53:13] soloone: has joined #ruby
[03:53:19] iooner: has joined #ruby
[03:53:34] teotwaki: has joined #ruby
[03:53:58] tflat: has joined #ruby
[03:54:32] Takumo: has joined #ruby
[03:54:32] Takumo: has joined #ruby
[03:54:34] Rodya_: has joined #ruby
[03:56:21] djbkd: has joined #ruby
[03:59:12] jenrzzz: has joined #ruby
[04:02:50] gizmore: has joined #ruby
[04:03:02] Maletor: has joined #ruby
[04:03:48] Zamyatin: has joined #ruby
[04:04:44] oetjenj: has joined #ruby
[04:05:19] Nilium: I think I've spent too long doing PHP maintenance and not enough time writing stuff that goes really fast
[04:05:50] htmldrum: has joined #ruby
[04:07:31] lkba: has joined #ruby
[04:07:42] Dopagod: has joined #ruby
[04:08:50] jun__: has joined #ruby
[04:12:06] tkuchiki: has joined #ruby
[04:12:19] zenguy_pc: has joined #ruby
[04:12:37] rrichardsr3: has joined #ruby
[04:17:58] yfeldblum: has joined #ruby
[04:19:55] duncannz: has joined #ruby
[04:20:21] GriffinHeart: has joined #ruby
[04:20:34] failshell: has joined #ruby
[04:21:57] jpfuentes2: has joined #ruby
[04:23:59] oetjenj: has joined #ruby
[04:26:51] tenderlove: has joined #ruby
[04:27:21] havenn: has joined #ruby
[04:28:47] freerobby1: has joined #ruby
[04:29:37] patdohere: has joined #ruby
[04:30:17] haraoka: has joined #ruby
[04:31:22] tkuchiki: has joined #ruby
[04:35:58] krz: has joined #ruby
[04:39:30] WizJin: has joined #ruby
[04:39:39] ledestin: has joined #ruby
[04:40:23] l_tonz: has joined #ruby
[04:41:04] cmoneylu_: has joined #ruby
[04:42:59] astrobun_: has joined #ruby
[04:44:11] SylarRuby: has joined #ruby
[04:45:03] oetjenj: has joined #ruby
[04:46:55] Maletor: has joined #ruby
[04:48:40] G: has joined #ruby
[04:48:51] bruno-: has joined #ruby
[04:49:39] GriffinHeart: has joined #ruby
[04:52:00] fullofcaffeine: has joined #ruby
[04:54:40] favadi: has joined #ruby
[04:55:11] iamjarvo_: has joined #ruby
[04:56:57] speakingcode: has joined #ruby
[04:58:03] devoldmx: has joined #ruby
[05:03:00] oetjenj: has joined #ruby
[05:03:11] grekkos: has joined #ruby
[05:03:48] moonman: has joined #ruby
[05:03:50] grekkos: not sure if this is the best place to ask btu I'm trying to troubleshoot my jekyll install, it's failing to load a plugin for some reason. It does a require with the full path to the file but I get a LoadError and I don't know why
[05:04:14] speakingcode: has joined #ruby
[05:04:20] patdohere: has joined #ruby
[05:04:33] tenderlove: has joined #ruby
[05:04:36] grekkos: if I output the file it's trying to require, it's pointing to the right path and everything
[05:06:50] unreal: has joined #ruby
[05:06:58] bb010g: has joined #ruby
[05:07:54] Peteykun: has joined #ruby
[05:08:44] deg-: has joined #ruby
[05:11:19] psye: has joined #ruby
[05:11:30] GriffinHeart: has joined #ruby
[05:11:46] etrae: has joined #ruby
[05:11:47] dhjondoh: has joined #ruby
[05:16:25] l_tonz: has joined #ruby
[05:20:38] oetjenj: has joined #ruby
[05:22:09] BraddPitt: can you paste the error and some relevant code, grekkos ?
[05:24:32] last_staff: has joined #ruby
[05:24:44] stardiviner: has joined #ruby
[05:24:55] patdohere: has joined #ruby
[05:25:15] fullofcaffeine: has joined #ruby
[05:25:18] devoldmx: has joined #ruby
[05:25:44] jenrzzz: has joined #ruby
[05:26:09] ruurd: has joined #ruby
[05:27:27] Hanmac: has joined #ruby
[05:32:02] jackjackdripper: has joined #ruby
[05:36:34] RobertBirnie: has joined #ruby
[05:36:52] low-prof1: has joined #ruby
[05:37:10] conrfrmn: has joined #ruby
[05:38:08] chussenot: has joined #ruby
[05:38:39] trautwein: has joined #ruby
[05:39:01] oetjenj: has joined #ruby
[05:40:03] tagrudev: has joined #ruby
[05:40:22] GriffinHeart: has joined #ruby
[05:41:21] duoi: has joined #ruby
[05:43:06] xxneolithicxx: has joined #ruby
[05:43:46] Renich: has joined #ruby
[05:44:30] User458764: has joined #ruby
[05:51:25] khebbie: has joined #ruby
[05:52:03] sanjayu: has joined #ruby
[05:53:02] aganov: has joined #ruby
[05:55:51] akkad: has joined #ruby
[05:58:19] oetjenj: has joined #ruby
[05:59:16] fullofcaffeine: has joined #ruby
[06:00:12] ramfjord: has joined #ruby
[06:00:43] codecop: has joined #ruby
[06:05:11] diegoaguilar: has joined #ruby
[06:05:47] meowz: has joined #ruby
[06:06:31] tesuji: has joined #ruby
[06:06:46] Pupp3tm4st3r: has joined #ruby
[06:07:48] bmalum: has joined #ruby
[06:08:39] baweaver: Interesting problem I just remembered
[06:08:55] baweaver: Given multiple lines, turn their text into columns
[06:09:20] magicalunicorn: has joined #ruby
[06:09:28] aibot: has joined #ruby
[06:09:32] baweaver: make a variant for left, center, and right alignment
[06:09:44] baweaver: ACTION is futzing with the idea in pry right now.
[06:11:32] baweaver: given the string: "abc de fg\nawef feawfwef fefew\nawf efwaf fewfwewfe \nfewafe fef efefaew\nfewafe fewaf aefwf\n"
[06:11:34] Shoutsid: has joined #ruby
[06:11:41] tubuliferous: has joined #ruby
[06:11:43] baweaver: adjust the spacing to align the words
[06:11:48] baweaver: left alignment for now
[06:11:52] baweaver: ACTION goes back to pry
[06:12:23] dionysus69: has joined #ruby
[06:12:28] zenguy_pc: has joined #ruby
[06:13:05] Bloodshot: has joined #ruby
[06:13:17] oetjenj: has joined #ruby
[06:16:54] GriffinHeart: has joined #ruby
[06:19:01] Shoutsid: has joined #ruby
[06:21:09] Oog: has joined #ruby
[06:21:14] bruno-: has joined #ruby
[06:22:23] failshell: has joined #ruby
[06:24:09] chipotle: has joined #ruby
[06:24:10] eGGsha: has joined #ruby
[06:25:07] diegoaguilar: has joined #ruby
[06:25:42] Alina-malina: has joined #ruby
[06:26:07] baweaver: >> s="abc de fg\nawef feawfwef fefew\nawf efwaf fewfwewfe";c=s.lines.reduce([]){|a,l|l.split.map.with_index{|w,i|a[i]?(w.size>a[i]?w.size: a[i]): w.size}};s.lines.map{|l|l.split.map.with_index{|w,i|w.ljust(c[i]+1)}.join}.join("\n")
[06:26:08] ruboto_: baweaver # => "abc de fg \nawef feawfwef fefew \nawf efwaf fewfwewfe " (https://eval.in/451786)
[06:26:30] baweaver: probably a more efficient way to do that
[06:26:57] baweaver: what I'm doing is finding the max length of words in each "column" and saving that as an array c
[06:27:16] baweaver: then using ljust by the columns longest word plus one space for padding.
[06:27:54] firstdayonthejob: has joined #ruby
[06:28:09] baweaver: give an argument to the splits and it can be via other characters as well
[06:28:14] baweaver: I'll make a pretty version.
[06:29:13] michael_mbp: has joined #ruby
[06:29:56] Shoutsid: has joined #ruby
[06:31:10] dcarmich: has joined #ruby
[06:31:44] astrobun_: has joined #ruby
[06:34:18] tvw: has joined #ruby
[06:35:25] tkuchiki: has joined #ruby
[06:36:38] SylarRuby: has joined #ruby
[06:38:58] User458764: has joined #ruby
[06:39:11] fullofcaffeine: has joined #ruby
[06:40:44] jas02: has joined #ruby
[06:46:11] dionysus70: has joined #ruby
[06:46:38] favadi: has joined #ruby
[06:49:02] tubuliferous: has joined #ruby
[06:50:33] aibot: has joined #ruby
[06:54:10] Stan: has joined #ruby
[06:54:48] dionysus69: has joined #ruby
[06:54:50] symm-: has joined #ruby
[06:54:55] adac: has joined #ruby
[06:56:01] dhjondoh: has joined #ruby
[06:59:36] mary5030: has joined #ruby
[07:00:08] solars: has joined #ruby
[07:00:21] lolmaus: has joined #ruby
[07:01:43] trautwein: has joined #ruby
[07:03:16] dhjondoh: has joined #ruby
[07:04:53] TomyWork: has joined #ruby
[07:05:03] Guest84489: Hi guys, I'm doing this map = {'[' => '', ']' => '', '"(' => '(' , '\')"' => '\')', '/^nil$/' => 'NULL' }
[07:05:10] Guest84489: Then I have re = Regexp.new(map.keys.map { |x| Regexp.escape(x) }.join('|'))
[07:05:29] Guest84489: And then I call it here re = Regexp.new(map.keys.map { |x| Regexp.escape(x) }.join('|'))
[07:05:43] JohnBat26: has joined #ruby
[07:06:12] Guest84489: the problem is, it's taking everything that is blablan*nil*blah and making it NULL... I want it just to take a line that only has nil not words before or after it
[07:06:20] TomyWork: you pasted the same line twice, Guest84489
[07:06:32] TomyWork: also you might want to pick a more memorable nickname :)
[07:06:50] Guest84489: TomyWork: sorry.. I call it here sqlFile.write (GenerateSQLInsert(csvFile,eachRow).gsub(re, map))
[07:06:58] Guest84489: oh, my session expired
[07:07:32] mark2: has joined #ruby
[07:09:30] jenrzzz: has joined #ruby
[07:10:10] TomyWork: awk oh you're the guy who's doing sql the hard, injection-prone way
[07:10:19] TomyWork: just use a framework
[07:10:24] awk: TomyWork: give me a break , im a noob at ruby
[07:10:38] awk: im trrying and took your advice, I re-did all my code the way you advised
[07:10:39] radgeRayden: has joined #ruby
[07:10:57] awk: using CSV.parse, etc... and match key -> value with hashes
[07:11:15] lamer14449036960: has joined #ruby
[07:11:39] awrfas2: has joined #ruby
[07:12:14] TomyWork: awk http://zetcode.com/db/mysqlrubytutorial/ ctrl-f prepared statements
[07:12:19] TomyWork: this is for mysql
[07:12:28] TomyWork: might work similarly for other databases
[07:14:59] awk: got it working thanks
[07:15:50] Alina-malina: has joined #ruby
[07:16:29] awk: TomyWork: I'm going to go through that in my ruby book, because i see it's going to save me allot of time.. im using to much of a 'bash' mentality when using ruby and thats my downfall.. thats why I re-wrote it using the CSV gem and GoogleDrive gem
[07:16:55] lea: has joined #ruby
[07:17:51] TomyWork: think of prepared statements as the equivalent of the quote-every-expansion rule then :)
[07:18:11] timonv: has joined #ruby
[07:19:05] dhjondoh: has joined #ruby
[07:20:01] uber: has joined #ruby
[07:20:32] Shoutsid: has joined #ruby
[07:21:13] lsmola_: has joined #ruby
[07:21:42] bruno-: has joined #ruby
[07:22:55] jas02: has joined #ruby
[07:26:28] nfk|laptop: has joined #ruby
[07:27:39] djbkd: has joined #ruby
[07:28:48] khebbie: has joined #ruby
[07:30:28] Shoutsid: has joined #ruby
[07:31:04] trautwein: has joined #ruby
[07:31:19] patdohere: has joined #ruby
[07:32:27] ndrei: has joined #ruby
[07:32:54] GriffinHeart: has joined #ruby
[07:32:55] tkuchiki: has joined #ruby
[07:34:30] Rutix: has joined #ruby
[07:34:30] Rutix: has joined #ruby
[07:36:58] grn: has joined #ruby
[07:37:11] fullofcaffeine: has joined #ruby
[07:37:33] yfeldblum: has joined #ruby
[07:38:14] SCHAAP137: has joined #ruby
[07:39:07] rushed: has joined #ruby
[07:39:47] Shoutsid: has joined #ruby
[07:40:18] Pharaoh2: has joined #ruby
[07:41:01] lenwood: has joined #ruby
[07:42:41] lea: has joined #ruby
[07:43:11] uber: has joined #ruby
[07:43:58] subscope: has joined #ruby
[07:44:04] grekkos: has joined #ruby
[07:45:55] ZeeNoodleyGamer: has joined #ruby
[07:52:34] waxjar: has joined #ruby
[07:53:17] dhjondoh: has joined #ruby
[07:54:00] duncannz: has joined #ruby
[07:55:12] michael_mbp: has joined #ruby
[07:55:21] bigkevmcd: has joined #ruby
[07:56:51] mikecmpbll: has joined #ruby
[07:56:55] Pharaoh2: has joined #ruby
[07:58:41] fullofcaffeine: has joined #ruby
[07:59:46] krz: has joined #ruby
[08:00:10] Kara: has joined #ruby
[08:00:13] waxjar: does anyone know a good way of sharing a folder of configuration files between different rack deployments? i'd like to deploy config changes separate from application code changes. config changes apply to multiple rack apps, so i'd like to be able to deploy them to all apps at once, but it should also be possible to deploy them to a subset them
[08:00:17] dmolina: has joined #ruby
[08:01:10] karam: has joined #ruby
[08:01:21] yeshacker: has joined #ruby
[08:01:36] bougyman: waxjar: puppet or chef.
[08:01:54] doddok: has joined #ruby
[08:03:17] krisquigley: has joined #ruby
[08:03:56] Sembei: has joined #ruby
[08:04:45] BSaboia: has joined #ruby
[08:05:39] rushed: has joined #ruby
[08:06:38] joncol: has joined #ruby
[08:07:04] voker57: has joined #ruby
[08:07:05] joncol: How would I test (using rspec) that a method m in module M calls a method n in the same module M? I want to mock the method n, and just test that the method m does what it should.
[08:08:01] ifmy: has joined #ruby
[08:08:23] tkuchiki: has joined #ruby
[08:11:12] atmosx: has joined #ruby
[08:12:06] ndrei: has joined #ruby
[08:12:22] astrobun_: has joined #ruby
[08:13:09] acidrainfall: has joined #ruby
[08:13:22] zenguy_pc: has joined #ruby
[08:15:25] joonty: has joined #ruby
[08:15:38] certainty: joncol: expect(M).to receive(:n).and_return(someting); M.m
[08:15:58] mdih: has joined #ruby
[08:16:22] karapetyan: has joined #ruby
[08:16:23] certainty: alternatively: before { allow(M).to receive(:n) }; it "works" { M.m; expect(M).to have_received(:n) }
[08:16:44] mdih: has joined #ruby
[08:16:51] kimegede: has joined #ruby
[08:16:53] chthon: has joined #ruby
[08:18:00] wpp: has joined #ruby
[08:18:39] Kendos-Kenlen: has joined #ruby
[08:20:22] ChampS_: has joined #ruby
[08:21:12] MrDSmith: has left #ruby: ("Leaving")
[08:22:58] ChampS_: jhass: good morning, I imploded and removed my .rvm dir from Ben home directory and installed it in another users homedir. But when I wanna use this command "passenger-install-apache2-module" as that other user, it returns /usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find passenger. As User Ben it will work, but I stopped it.
[08:23:37] failshell: has joined #ruby
[08:24:23] etrae: has joined #ruby
[08:26:34] RobertBirnie: has joined #ruby
[08:28:22] fullofcaffeine: has joined #ruby
[08:30:49] krz: has joined #ruby
[08:34:29] miskatonic: has joined #ruby
[08:35:05] DEA7TH: has joined #ruby
[08:37:38] EdwardIII: hey if you wanted to say do 3 tasks at the same time (e.g. 3 slow http calls) then aggregate all the results to display them what would be the right tool for that? Background worker?
[08:37:45] EdwardIII: in python i'd probably use celery
[08:37:47] blaxter: has joined #ruby
[08:38:02] marr: has joined #ruby
[08:38:03] EdwardIII: also i use rails - not sure if that has anything builtin for this
[08:38:19] User458764: has joined #ruby
[08:39:32] miskatonic: is there a canonical way to implement stacked hashes in ruby?
[08:39:36] joncol: certainty: thanks. It didn't work in my case. I'm trying to test some EventMachine stuff. Specifically I want to test that send_datagram is called by my receive_data method when it gets certain data. But I get the error that "PingServer does not implement: send_datagram", where PingServer is my module m.
[08:40:30] EdwardIII: maybe EventMachine would be the right choice for me actually? although that mostly seems to be to do with async network stuff rather than just firing off things into an eventloop...
[08:40:31] chipotle: has joined #ruby
[08:41:04] lamer14449848587: has joined #ruby
[08:42:28] Kendos-Kenlen: has joined #ruby
[08:42:38] UtkarshRay: has joined #ruby
[08:43:27] certainty: joncol: what kind of method is that in your module? Can you gist what you did?
[08:44:14] tkuchiki: has joined #ruby
[08:49:15] joncol: certainty: Certainly, https://gist.github.com/joncol/af54202e58ddfd94c3f5
[08:50:20] BSaboia: has joined #ruby
[08:51:02] shredding: has joined #ruby
[08:51:42] psye: has joined #ruby
[08:51:45] lessless: has joined #ruby
[08:52:16] certainty: joncol: if you want to test the methods like this you have to include the module into a class and run the expectations on the class. If the methods make sense on their own, you can make them module_functions and have your expectations as I showed
[08:53:54] joncol: certainty: Cool, I have to read up on module_function. Long time since Ruby.
[08:53:54] kalzz: has joined #ruby
[08:54:04] Peteykun: has joined #ruby
[08:54:38] certainty: &ri Module#module_function
[08:54:38] `derpy: http://www.rubydoc.info/stdlib/core/Module#module_function-instance_method
[08:54:45] User458764: has joined #ruby
[08:54:51] lokson: has joined #ruby
[08:54:56] certainty: joncol: cool. Welcome back :)
[08:55:11] certainty: Oh haskell gists
[08:56:19] joncol: certainty: yes, experimented with Haskell for a while :)
[08:56:27] certainty: cool i like that
[08:56:36] lolmaus: has joined #ruby
[08:56:46] mprelude_: has joined #ruby
[08:57:22] atomical: has joined #ruby
[08:58:02] bmalum_: has joined #ruby
[08:58:05] fullofcaffeine: has joined #ruby
[08:58:51] Peg-leg: has joined #ruby
[08:59:21] leafybasil: has joined #ruby
[09:00:24] leafybas_: has joined #ruby
[09:02:38] subscope: has joined #ruby
[09:03:54] kalz: has joined #ruby
[09:05:15] porfa: has joined #ruby
[09:07:20] AnoHito: has joined #ruby
[09:10:28] porfa: why isn't coco in the report? why isn't the var being printed on the mail???? https://gist.github.com/anonymous/192d7e2007d71a584e5e
[09:12:10] awrfas2: has joined #ruby
[09:13:17] Kara: has joined #ruby
[09:13:28] adaedra: ''-strings don't do interpolations, only ""-strings do
[09:13:30] karam: has joined #ruby
[09:13:54] adaedra: >> a = :foo; [ 'a#{a}a', "a#{a}a" ]
[09:13:55] ruboto_: adaedra # => ["a\#{a}a", "afooa"] (https://eval.in/451842)
[09:16:19] Kara__: has joined #ruby
[09:16:20] Kara___: has joined #ruby
[09:16:23] soc42: has joined #ruby
[09:17:23] tkuchiki: has joined #ruby
[09:18:49] porfa: adaedra: it's still not passing in the damn mail, but thanks
[09:20:05] adaedra: remove the $
[09:20:32] vigintas: has joined #ruby
[09:21:08] spacemud: has joined #ruby
[09:26:20] tkuchiki: has joined #ruby
[09:26:54] porfa: adaedra: didn't come :(
[09:27:57] BustyLoli-Chan: has joined #ruby
[09:27:59] bruno-: has joined #ruby
[09:28:03] ddv: coco...
[09:28:29] porfa: damn coconuts!
[09:28:33] karam: has joined #ruby
[09:28:33] Kara: has joined #ruby
[09:28:33] Igorshp: has joined #ruby
[09:29:43] LMity: has joined #ruby
[09:31:56] EdwardIII: this looks pretty sweet: https://github.com/igrigorik/em-http-request/wiki/Parallel-Requests
[09:32:12] vigintas: has joined #ruby
[09:32:14] EdwardIII: but i want to be able to do multiple requests for sort of... anything, like i can in js or with celery
[09:32:28] EdwardIII: not necessarily just http requests
[09:32:41] joncol: certainty: still not sure about how to test the EventMachine stuff. The problem is that send_datagram is not a member of my module, it is part of EventMachine::Connection, which dynamically mixes in my module. So how could I set up mock expectations for send_datagram to be called?
[09:33:49] vigintas: has joined #ruby
[09:33:57] Hounddog: has joined #ruby
[09:34:08] porfa: this never happened to me before.. i can't put the contents of a var, but the var name instead
[09:34:23] fullofcaffeine: has joined #ruby
[09:34:36] vigintas: has joined #ruby
[09:42:42] senayar: has joined #ruby
[09:42:42] senayar: has joined #ruby
[09:44:01] platzhirsch: has joined #ruby
[09:44:20] _Archyme_: has joined #ruby
[09:46:31] haxrbyte: has joined #ruby
[09:46:49] nettoweb: has joined #ruby
[09:46:59] dawkirst: has joined #ruby
[09:47:23] RobertBirnie: has joined #ruby
[09:48:42] quazimodo: has joined #ruby
[09:49:19] Kara: has joined #ruby
[09:49:20] karam: has joined #ruby
[09:49:31] bruno-: has joined #ruby
[09:51:37] haxrbyte: has joined #ruby
[09:53:31] fullofca_: has joined #ruby
[09:53:32] EdwardIII: sorry i'm really new to ruby but... i'm confused as hell as to why "uninitialized constant EventMachine::MultiRequest (NameError)":: https://gist.github.com/EdwardIII/8fba3c250a951a9ae8a0
[09:54:18] GriffinHeart: has joined #ruby
[09:54:34] bruno-_: has joined #ruby
[09:54:50] EdwardIII: ah i think i have two versions installed: eventmachine (1.0.8, 1.0.4) heh how the hell did that happen
[09:55:18] varunwachaspati: has joined #ruby
[09:55:52] EdwardIII: hmm ok down to 1 version but still seeing the error
[09:56:28] khebbie: has joined #ruby
[09:58:48] htmldrum: has joined #ruby
[09:59:23] chipotle: has joined #ruby
[09:59:51] User458764: has joined #ruby
[10:01:08] Igorshp: has joined #ruby
[10:03:19] workmad3: EdwardIII: that would probably be because MultiRequest comes from the em-http-request gem, which you will need to install & require
[10:04:47] GriffinHeart: has joined #ruby
[10:04:55] porfa: has joined #ruby
[10:05:10] workmad3: has joined #ruby
[10:07:47] ChampS_: I have a user Ben and a user Ruby, as the name describes, the ruby user is for my ruby installation. In my ruby users home dir now I have a .rvm and a .gem directory. So I installed rvm for this user. Now I tried this: passenger-install-apache2-module with my ruby user, but an error appears /usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find passenger (>= 0). But I've
[10:07:48] ChampS_: installed ruby-passenger with apt-get. With my user Ben, I can execute this command without any problem
[10:09:10] porfa: has joined #ruby
[10:09:40] porfa: has joined #ruby
[10:09:56] Kara: has joined #ruby
[10:09:57] karam: has joined #ruby
[10:11:29] rdark: has joined #ruby
[10:11:29] rdark: has joined #ruby
[10:13:29] zenguy_pc: has joined #ruby
[10:15:11] Kara__: has joined #ruby
[10:15:13] Kara___: has joined #ruby
[10:15:54] Alina-malina: has joined #ruby
[10:20:30] rickmasta: has joined #ruby
[10:21:09] Rollabunna: has joined #ruby
[10:22:50] cdg: has joined #ruby
[10:23:00] karam: has joined #ruby
[10:23:00] Kara: has joined #ruby
[10:23:16] joncol: has joined #ruby
[10:25:25] failshell: has joined #ruby
[10:25:38] tubuliferous: has joined #ruby
[10:26:30] tmtwd: has joined #ruby
[10:26:50] fullofcaffeine: has joined #ruby
[10:29:22] nofxx: has joined #ruby
[10:31:28] dEPy: has joined #ruby
[10:32:01] bkxd: has joined #ruby
[10:33:48] shevy: ChampS_ yeah you use more than one ruby version so problems appear
[10:33:56] EdwardIII: workmad3: damn
[10:34:47] darix: ChampS_: if i recall correctly you dont need to have passenger in your gemfile
[10:35:11] workmad3: EdwardIII: you don't want to install another gem? :)
[10:35:33] EdwardIII: workmad3: no, i love installing gems. more in reference to the fact i didn't realise that it was a separate module
[10:36:23] User458764: has joined #ruby
[10:37:02] phutchins: has joined #ruby
[10:40:47] EdwardIII: back after playing a bit more i'm starting to think that something like Sidekiq might be better than just EventMachine if i want to execute anything async and get a result rather than just, saw, bare http requests
[10:41:03] stardiviner: has joined #ruby
[10:41:33] nofxx: EdwardIII, sidekiq is almost better than a toaster. Really can't tell which one I could live w/o.
[10:42:01] nofxx: toaster is the second greatest invetion of mankind, follow by sliced bread*
[10:42:30] EdwardIII: you're referring to the mechanical toaster rather than the ruby lib 'toaster' right?
[10:43:28] EdwardIII: just looking with someone here about doing a little social network aggregator thing for giggles
[10:43:48] EdwardIII: and didn't want it to slow down with each new network it queries
[10:44:23] nofxx: that quote is nice, just wanted to say sidekiq rocks. Btw, I prefer italian bread, slice and toast... hmm. olive oil or cheese. hehe
[10:44:54] EdwardIII: heh sorry which quote?
[10:45:27] nofxx: EdwardIII, scale horizontally easily with sidekiq... you're db will be the bottleneck quickly
[10:45:38] nofxx: EdwardIII, toaster second great invention followed by sliced bread
[10:46:07] miskatonic: sliced arrays?
[10:46:27] joonty: has joined #ruby
[10:46:41] dEPy: Are there any examples of really good object oriented ruby code?
[10:46:49] kristofferR: has joined #ruby
[10:47:00] dEPy: Something beyond a trivial app.
[10:47:03] shevy: everywhere
[10:47:11] EdwardIII: it's all on github you can look at rails eh?
[10:47:23] shevy: look at the source code of rack
[10:47:33] ChampS_: shevy: right, but for rvm this should be no problem I think
[10:47:48] miskatonic: is rexml really good object oriented code?
[10:47:48] EdwardIII: although as a non-ruby dev i found this pretty nice: http://sirupsen.com/what-I-wish-a-ruby-programmer-had-told-me-one-year-ago/
[10:47:55] dEPy: maybe something with 'a bit' less code than rails :D
[10:47:58] shevy: ChampS_ I would think so too but then why does it use /usr/lib/ruby/1.9.1 path when it resides in your $HOME dir
[10:48:18] ChampS_: mh that's the million dollar question
[10:48:32] shevy: you have two "gem" commands installed right?
[10:48:59] ChampS_: I think the ruby-passenger from apt-get will brings that second ruby
[10:49:49] ChampS_: gem env returns: GEM PATHS: - /var/lib/gems/1.9.1 - /home/Ben/.gem/ruby/1.9.1 - /usr/share/rubygems-integration/1.9.1
[10:49:56] grekkos: has joined #ruby
[10:50:08] shevy: use the rvm gem too
[10:50:23] shevy: the above output looks like debian-gem output
[10:51:28] nettoweb: has joined #ruby
[10:51:57] ChampS_: I try to uninstall the debian ruby package
[10:52:05] ChampS_: lets see whats happens
[10:52:19] failshell: has joined #ruby
[10:54:01] rodfersou: has joined #ruby
[10:54:57] ndrei: has joined #ruby
[10:56:12] rushed: has joined #ruby
[10:56:55] karam: has joined #ruby
[10:57:13] Igorshp: has joined #ruby
[10:57:34] adac: has joined #ruby
[10:58:50] bmalum: has joined #ruby
[11:00:56] dhjondoh: has joined #ruby
[11:02:13] paolochiodi: has joined #ruby
[11:02:27] stamina: has joined #ruby
[11:02:43] subscope: has joined #ruby
[11:02:46] GriffinHeart: has joined #ruby
[11:03:35] ndrei: has joined #ruby
[11:03:35] paolochiodi: Hi, does already exist a gem that can concat Enumerables? So that when I dot concatenated.next it will return me elements from the first until it's empty then return from the second?
[11:04:03] paolochiodi: this could be useful for lazy enumerables
[11:06:13] gregoriokusowski: has joined #ruby
[11:06:19] dhjondoh: has joined #ruby
[11:06:52] Xzanron: has joined #ruby
[11:11:32] deps: has joined #ruby
[11:11:35] karapetyan: has joined #ruby
[11:11:51] devoldmx: has joined #ruby
[11:12:00] rickmasta: has joined #ruby
[11:12:25] etrae: has joined #ruby
[11:12:29] Igorshp: has joined #ruby
[11:13:32] khebbie: has joined #ruby
[11:15:27] Pupp3tm4st3r: has joined #ruby
[11:17:07] karapetyan: has joined #ruby
[11:18:34] big|bad|wolf: has joined #ruby
[11:19:58] jhass: ChampS_: you did gem install passenger inside your new RVM environment? again check rvm current to make sure it's active
[11:21:51] User458764: has joined #ruby
[11:23:57] senayar: has joined #ruby
[11:25:26] freezevee: has joined #ruby
[11:25:44] fullofcaffeine: has joined #ruby
[11:27:35] syath: has joined #ruby
[11:27:47] sdothum: has joined #ruby
[11:29:49] nfk|laptop: has joined #ruby
[11:33:44] JJM: has joined #ruby
[11:33:47] _el_fer_: has joined #ruby
[11:33:53] p0wn3d_: has joined #ruby
[11:34:38] patrick_star: has joined #ruby
[11:36:17] ldnunes: has joined #ruby
[11:36:30] gregf: has joined #ruby
[11:36:34] YaknotiS: has joined #ruby
[11:38:01] WizJin: has joined #ruby
[11:38:24] jenrzzz: has joined #ruby
[11:40:42] dionysus69: has joined #ruby
[11:41:31] fedexo: has joined #ruby
[11:42:02] teclator: has joined #ruby
[11:43:38] lxsameer: has joined #ruby
[11:44:00] prestorium_: has joined #ruby
[11:47:49] n008f4g_: has joined #ruby
[11:50:49] Bellthoven: has joined #ruby
[11:52:17] karapetyan: has joined #ruby
[11:53:40] EdwardIII: tbh as none of the languages i've used really support threading (other than a bit of C# back in the day) it's kind of a foreign concept to me
[11:54:23] karapetyan: has joined #ruby
[11:54:28] EdwardIII: i see stuff like "requires thread-safety of your code and all dependencies." and i'm like... how big an issue is that for me?
[11:55:08] Icey: has joined #ruby
[11:55:50] beauby: has joined #ruby
[11:58:18] Kara: has joined #ruby
[11:58:27] riotjones: has joined #ruby
[11:58:31] karam: has joined #ruby
[11:58:49] tomaz_b: has joined #ruby
[12:01:58] supergeek: has joined #ruby
[12:03:04] Kara__: has joined #ruby
[12:03:04] karam: has joined #ruby
[12:05:10] Kendos-Kenlen: has joined #ruby
[12:06:11] senayar: has joined #ruby
[12:06:11] senayar: has joined #ruby
[12:06:37] GriffinHeart: has joined #ruby
[12:08:54] paolochiodi: has joined #ruby
[12:09:45] big|bad|wolf: has joined #ruby
[12:10:05] flughafen_: has joined #ruby
[12:13:48] karam: has joined #ruby
[12:13:48] Kara: has joined #ruby
[12:14:00] haxrbyte_: has joined #ruby
[12:14:12] zenguy_pc: has joined #ruby
[12:14:40] gregf: has joined #ruby
[12:15:04] User458764: has joined #ruby
[12:16:44] V1s1ble: has joined #ruby
[12:16:54] krisquigley: has joined #ruby
[12:19:02] naftilos76: has joined #ruby
[12:22:42] tvw: has joined #ruby
[12:23:01] beauby: has joined #ruby
[12:24:33] Igorshp: has joined #ruby
[12:24:37] htmldrum: has joined #ruby
[12:25:21] nateberkopec: has joined #ruby
[12:25:37] big|bad|wolf: has joined #ruby
[12:25:38] sgambino: has joined #ruby
[12:26:03] Kara: has joined #ruby
[12:26:22] Zackio: has joined #ruby
[12:27:17] fullofcaffeine: has joined #ruby
[12:27:41] khebbie: has joined #ruby
[12:29:16] odigity: It's great that we have structured metadata formats like RDoc and gemspec that makes awesome tools like rubygems.org and rdoc.info possible. I'm surprised there's not yet one for Changelogs. Would love to make a dashboard that shows me changes across all my gems in the last week/month/etc
[12:30:23] EdwardIII: hrm looks like you can't do this multi callback-type thing with sidekiq: https://gist.github.com/EdwardIII/0175e280bf39a2a3e2d9
[12:30:56] EdwardIII: unless you get their non-foss pro thing that includes 'batches'
[12:32:08] EdwardIII: and it kinda looks like you can't do that with resque either, seems more like a normal message queue
[12:32:37] jessemcgilallen: has joined #ruby
[12:33:44] c0m0: has joined #ruby
[12:33:51] nateberkopec: has joined #ruby
[12:34:01] segfalt: has joined #ruby
[12:37:44] `tim`: has joined #ruby
[12:38:35] Kendos-Kenlen: has joined #ruby
[12:39:03] subscope: has joined #ruby
[12:39:08] workmad3: has joined #ruby
[12:40:06] segfalt_: has joined #ruby
[12:41:06] prefixed: has joined #ruby
[12:41:29] blackjid: has joined #ruby
[12:42:10] Kara: has joined #ruby
[12:42:13] solocshaw: has joined #ruby
[12:42:33] Kendos-Kenlen: has joined #ruby
[12:44:29] Peteykun: has joined #ruby
[12:45:08] atomical: has joined #ruby
[12:45:19] JohnBat26: has joined #ruby
[12:45:27] `tim`: has joined #ruby
[12:47:21] Igorshp: has joined #ruby
[12:47:35] Kara: has joined #ruby
[12:48:05] karapetyan: has joined #ruby
[12:48:21] Zamyatin: has joined #ruby
[12:48:28] tknz: has joined #ruby
[12:49:20] Porfa_: has joined #ruby
[12:50:14] grekkos: has joined #ruby
[12:50:30] Encapsulation: has joined #ruby
[12:51:26] haylon: has joined #ruby
[12:54:12] EdwardIII: ah actually it looks like i might be able to use sidekiq along with this lib that turns the jobs (tasks? threads? workers?) into promises: https://github.com/jamesotron/sidekiq-promise
[12:55:30] rwilcox: has joined #ruby
[12:55:32] Zackio: has joined #ruby
[12:55:54] fullofcaffeine: has joined #ruby
[12:56:10] Chaoborid: has joined #ruby
[12:57:12] hindenbu_: has joined #ruby
[12:58:32] odigity: I googled "ruby changelog standard", and this is the one relevant link I found: https://github.com/tech-angels/vandamme/
[12:59:55] sdothum: has joined #ruby
[13:00:11] trampi: has joined #ruby
[13:00:26] JDiPierro: has joined #ruby
[13:01:04] failshell: has joined #ruby
[13:01:32] hindenbu_: has joined #ruby
[13:01:59] dmolina: has joined #ruby
[13:03:08] Guest50: has joined #ruby
[13:03:12] mrchris: has joined #ruby
[13:03:14] Chaoborid: has left #ruby: ()
[13:03:22] Kendos-Kenlen: has joined #ruby
[13:03:38] gregf: has joined #ruby
[13:03:39] k3asd`: has joined #ruby
[13:03:51] devdazed: has joined #ruby
[13:04:25] GriffinHeart: has joined #ruby
[13:05:47] big|bad|wolf: has joined #ruby
[13:07:27] avahey: has joined #ruby
[13:07:50] AlexRussia: has joined #ruby
[13:08:26] hindenbug: has joined #ruby
[13:08:51] GriffinHeart: has joined #ruby
[13:09:10] iamjarvo_: has joined #ruby
[13:10:06] blackmesa: has joined #ruby
[13:10:51] Kara: has joined #ruby
[13:11:36] khebbie: has joined #ruby
[13:11:42] TheHodge: has joined #ruby
[13:11:56] karam: has joined #ruby
[13:12:28] awrfas2: has joined #ruby
[13:12:38] `tim`: has joined #ruby
[13:13:03] Chaoborid: has joined #ruby
[13:13:43] tvw: has joined #ruby
[13:14:20] cwong_on_irc: has joined #ruby
[13:14:33] cdg: has joined #ruby
[13:14:44] JJM: has joined #ruby
[13:15:21] cdg: has joined #ruby
[13:16:35] Azulinho: has joined #ruby
[13:17:12] sankaber: has joined #ruby
[13:17:18] sepp2k: has joined #ruby
[13:20:27] skweek: has joined #ruby
[13:22:14] subscope: has joined #ruby
[13:22:31] bmurt: has joined #ruby
[13:28:24] balazs_: has joined #ruby
[13:28:44] fullofcaffeine: has joined #ruby
[13:29:52] hindenbug: has joined #ruby
[13:34:24] bigmac_: has joined #ruby
[13:35:15] jenrzzz: has joined #ruby
[13:36:05] quazimodo: has joined #ruby
[13:37:24] big|bad|wolf: has joined #ruby
[13:37:31] houhoulis: has joined #ruby
[13:37:35] rippa: has joined #ruby
[13:38:06] lavros: has joined #ruby
[13:38:35] voker57: has joined #ruby
[13:39:00] victortyau: has joined #ruby
[13:41:30] Mon_Ouie: has joined #ruby
[13:41:40] big|bad|wolf: has joined #ruby
[13:41:49] fullofcaffeine: has joined #ruby
[13:43:04] bigmac_: im looking to do math with incredibly large numbers...
[13:43:20] bigmac_: i dont want to see this infinity" when trying to do this math
[13:44:04] diegoaguilar: has joined #ruby
[13:44:20] Cyther: has joined #ruby
[13:44:34] Guest50: has joined #ruby
[13:45:45] davedev24: has joined #ruby
[13:47:38] hindenbug: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[13:47:52] caliostro: has joined #ruby
[13:48:15] jhass: &ri BigNum BigDecimal BigMath @bigmac_
[13:48:15] `derpy: bigmac_: http://www.rubydoc.info/stdlib/bigdecimal/BigDecimal, http://www.rubydoc.info/stdlib/bigdecimal/BigMath
[13:48:31] jhass: ah, Bignum, not BigNum
[13:48:53] EdwardIII: om nom bignum
[13:48:58] chussenot: has joined #ruby
[13:49:46] JDiPierro: has joined #ruby
[13:50:05] rewzn: has joined #ruby
[13:50:52] hindenbug: has joined #ruby
[13:51:26] haxrbyte: has joined #ruby
[13:52:09] favadi: has joined #ruby
[13:52:52] bigmac_: thank you, im trying bigdecimal now,
[13:53:16] bigmac_: also, when a calculator cant print out the data because its to large, you might see something like this
[13:53:17] bigmac_: 5.0505050555505e+245
[13:53:28] bigmac_: how can i salve this equation in ruby?
[13:53:49] jhass: >> 5.0505050555505e+245
[13:53:50] ruboto_: jhass # => 5.0505050555505e+245 (https://eval.in/452059)
[13:53:59] jhass: >> "%d" % 5.0505050555505e+245
[13:54:00] ruboto_: jhass # => "505050505555050027411682610093162639191707102445083998136999255337586664724449168995470686397553704 ...check link for more (https://eval.in/452060)
[13:54:11] roshanavand: has joined #ruby
[13:54:13] bigmac_: god you are amazing
[13:54:25] ChampS_: jhass: sry I didn't know that I can install passenger with gem itself. But now I have and this works fine except that apache can't start because it can't handle RailsEnv and several properties I defined in my sites-available apache config
[13:54:29] adaedra: jhass is a god? :o
[13:54:56] jhass: adaedra: only a pope, some people can't tell the difference
[13:55:08] jhass: ChampS_: that doesn't sound like you have passenger loaded
[13:55:58] momomomomo: has joined #ruby
[13:56:16] ChampS_: used gem install passenger and then passenger-install-apache2-module
[13:56:25] bigmac_: "%d" % 5.0505050555505e+245
[13:56:25] ChampS_: both was running successfully
[13:56:45] bigmac_: can this be explained with basic math terms?
[13:56:59] jhass: bigmac_: "explained"?
[13:57:06] bigmac_: "%d" => not sure what this is and why its in quote
[13:57:14] jhass: ennn means * 10 to the power of nnn
[13:57:32] AnoHito_: has joined #ruby
[13:57:41] jhass: and that's basically just moving the . to the right by nnn places
[13:57:56] bigmac_: yes i see. read this last night
[13:58:13] deps: >> 10+1+30
[13:58:14] bigmac_: how accurate is this in ruby? exactly?
[13:58:15] ruboto_: deps # => 41 (https://eval.in/452061)
[13:58:26] deps: cool bot!
[13:58:54] EdwardIII: jhass: think you can smash your popemobile into my async issues?
[13:59:05] jhass: >> 5.0505050555505e+245.class
[13:59:07] ruboto_: jhass # => Float (https://eval.in/452063)
[13:59:33] roshanavand: has joined #ruby
[13:59:38] jhass: bigmac_: ^ so it's just a Float, IEEEIcanneverrememberthenumber precision issues apply
[13:59:50] moss: I am thinking of switching my Rails server from Unicorn to Puma. Do I need to make any code changes to have this work properly or is it just a matter of deployment?
[13:59:59] stannard: has joined #ruby
[14:00:36] jhass: bigmac_: https://en.wikipedia.org/wiki/IEEE_floating_point discusses some iirc
[14:01:06] davethecat: has joined #ruby
[14:01:16] bigmac_: jhass: so, if im looking to perform this large math and want precise results, its best to use something like bigdecimal ?
[14:01:38] jhass: ?rails moss
[14:01:38] ruboto_: moss, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[14:01:48] s2013: has joined #ruby
[14:01:49] jhass: bigmac_: yeah
[14:02:20] davethecat: Can anyone please help? When i use .reverse_each method i have no problem, but when i change it to .each i get error "undefined method `source_key' for nil:NilClass"
[14:02:34] sankaber: has joined #ruby
[14:02:36] AnoHito_: has joined #ruby
[14:03:03] jhass: EdwardIII: I still don't know eventmachine
[14:03:23] jhass: ?code davethecat
[14:03:23] ruboto_: davethecat, We can't help you without your code, please post it to https://gist.github.com
[14:03:58] qba73: has joined #ruby
[14:04:33] davethecat: doh fixed it
[14:04:36] EdwardIII: jhass: hmm maybe a lot of people don't bump into these kind of issues
[14:04:40] EdwardIII: i'd think it's fairly common though
[14:04:53] EdwardIII: pretty much everything i do is very http-request-heavy
[14:05:16] EdwardIII: doing that kind of stuff in php is an absolute, complete and utter nightmare
[14:05:23] naftilos76: has joined #ruby
[14:05:46] EdwardIII: doing it in JS is pretty simple
[14:05:57] lucas: has joined #ruby
[14:06:21] last_staff: has joined #ruby
[14:06:29] pcfreak30: What is the ruby feature called for this syntax ":controller => 'site', :action => 'login'"
[14:07:22] bigmac_: jhass: ok, one more thing lol how can i multiply X by 2(800.times)
[14:07:24] havenwood: pcfreak30: A Hash. Those `=>`s are called Hash rockets.
[14:07:27] bigmac_: with out using a loop?
[14:07:41] bigmac_: 800.times{|y| x*2}
[14:07:51] davethecat: has left #ruby: ("Leaving")
[14:08:06] pcfreak30: havenwood: do you need {} if passing multiple hashes
[14:08:14] karapetyan: has joined #ruby
[14:08:23] Igorshp: has joined #ruby
[14:09:04] fullofca_: has joined #ruby
[14:09:28] jenrzzz: has joined #ruby
[14:10:31] favadi: has joined #ruby
[14:10:49] momomomomo: has joined #ruby
[14:11:06] stardiviner: has joined #ruby
[14:11:57] lucas: has joined #ruby
[14:13:18] The_Phoenix: has joined #ruby
[14:13:22] Zamyatin: has joined #ruby
[14:14:09] parus: has joined #ruby
[14:14:27] caliostro: how can i add clean task to an array of prerequisities tasks?
[14:15:09] zenguy_pc: has joined #ruby
[14:15:26] joneshf-laptop: has joined #ruby
[14:16:31] caliostro: need something like this task :compile => clean + sources do |t,args|
[14:17:24] canton7: task :task1 => [:task2, :task3] do ...
[14:17:53] canton7: ^ that's the syntax. you can use all of ruby's array methods to make that array of dependent tasks
[14:18:09] cajone: has joined #ruby
[14:19:19] Dopagod: has joined #ruby
[14:19:51] fullofcaffeine: has joined #ruby
[14:20:23] sdothum: has joined #ruby
[14:21:01] caliostro: found! task :compile => ( sources.unshift(:clean) ) do |t,args|
[14:21:03] fullofcaffeine: has joined #ruby
[14:21:20] cball: has joined #ruby
[14:23:31] gregf: has joined #ruby
[14:24:31] kies^: has joined #ruby
[14:24:38] prestorium: has joined #ruby
[14:25:15] htmldrum: has joined #ruby
[14:26:03] canton7: caliostro, task :compile => [*sources, :clean] do ... is another
[14:26:19] caliostro: i nees to prepend the clean task
[14:26:20] ruurd: has joined #ruby
[14:26:29] canton7: => [:clean, *sources]
[14:26:47] canton7: then :clean comes "before" *sources visually, as well
[14:26:53] caliostro: ah, ok! let me see the * operator
[14:27:03] canton7: it's called the "splat operator", for your googling
[14:27:31] caliostro: rake is not my preferred tool, i prefer mallet (big hammer)
[14:27:40] tenderlove: has joined #ruby
[14:27:56] canton7: that's very hard to google for, apparently
[14:28:11] canton7: given that mallets are often used in building stuff...
[14:29:20] s2013: has joined #ruby
[14:31:13] treehug88: has joined #ruby
[14:31:47] subscope: has joined #ruby
[14:31:58] EdwardIII: so in ruby, fat arrow doesn't just mean "value for this hash key?"
[14:32:01] dopamean_: has joined #ruby
[14:32:59] canton7: that's what it means here, as well
[14:33:00] jhass: it's also used in the rescue clause, but that's all I remember atm
[14:33:08] pandaant: has joined #ruby
[14:33:19] canton7: expanded, that's task({:compile => [stuff]) do ... end
[14:33:52] canton7: oops, task({:compile => [stuff]}) do .. end
[14:34:27] EdwardIII: ah ok that makes it clearer heh
[14:34:50] Rollabunna: has joined #ruby
[14:34:58] Dreamer3: has joined #ruby
[14:35:25] vigintas: has joined #ruby
[14:35:30] s2013: has joined #ruby
[14:35:38] axl_: has joined #ruby
[14:36:39] EdwardIII: so in ruby, if it's all on one line, you can just plug away with key/value pairs and it's shorthand for a hash?
[14:37:29] canton7: when you're calling a method, you can skip the {} around hashes and ruby will insert them
[14:37:46] Jardayn: has joined #ruby
[14:37:56] EdwardIII: just a little more sugar then
[14:38:03] ledestin: has joined #ruby
[14:38:10] EdwardIII: kinda does away with the need for kwargs too then i guess
[14:38:13] idefine: has joined #ruby
[14:38:29] canton7: I think that was the intention - you can also use foo: 3 instead of :foo => 3
[14:38:33] EdwardIII: although it looks like you have that now too
[14:38:41] canton7: .. but it has downsides to kwargs, so that came later
[14:39:34] canton7: using standard parameters is easy. plucking the values you want out of a hash starts to get annoying
[14:40:04] jessemcgilallen: has joined #ruby
[14:40:35] ndrei: has joined #ruby
[14:40:51] dmolina1: has joined #ruby
[14:42:24] matp: has joined #ruby
[14:42:37] Polysics: has joined #ruby
[14:42:52] Alina-malina: has joined #ruby
[14:43:33] User458764: has joined #ruby
[14:43:34] matp: has joined #ruby
[14:44:20] SamGerber: has joined #ruby
[14:44:28] Igorshp: has joined #ruby
[14:44:39] matp: has joined #ruby
[14:44:53] shredding: has joined #ruby
[14:45:39] ruurd: has joined #ruby
[14:45:44] matp: has joined #ruby
[14:46:31] Sp4rKy: has joined #ruby
[14:47:55] skweek: has joined #ruby
[14:48:57] p0wn3d_: has joined #ruby
[14:51:13] porfa: has joined #ruby
[14:51:33] dorei: has joined #ruby
[14:53:17] ruurd: has joined #ruby
[14:53:32] momomomomo_: has joined #ruby
[14:53:50] deps: has left #ruby: ()
[14:55:11] prefixed: yo. what is the RDOC way of specifying the valid options of a method's options hash?
[14:55:35] Channel6: has joined #ruby
[14:56:03] `tim`: has joined #ruby
[14:56:06] inteq: has joined #ruby
[14:57:06] dopie: has joined #ruby
[14:57:17] tubuliferous: has joined #ruby
[14:58:19] User458764: has joined #ruby
[14:58:31] roshanavand: has joined #ruby
[14:58:32] hindenbug: has joined #ruby
[14:58:48] dmolina: has joined #ruby
[14:59:18] programmerq: has joined #ruby
[14:59:28] jobewan: has joined #ruby
[15:00:27] ndrei: has joined #ruby
[15:00:32] mwlang: has joined #ruby
[15:01:12] EminenceHC: has joined #ruby
[15:01:30] jenrzzz: has joined #ruby
[15:02:07] mary5030: has joined #ruby
[15:02:38] mwlang: Does Ruby have a better way to grep file contents than backticks: `grep -lr pattern *` I found the grep for Strings, but wondering specifically about same for files.
[15:02:53] symm-: has joined #ruby
[15:03:21] northfurr: has joined #ruby
[15:03:37] devoldmx: has joined #ruby
[15:05:53] ChampS_: jhass: passenger is installed and in my apache config file I've included <IfModule mod_passenger.c>PassengerRoot /home/ruby/.rvm/gems/ruby-.2.1/gems/passenger-5.0.20 PassengerDefaultRuby /home/ruby/.rvm/gems/ruby-2.2.1/wrappers/ruby </IfModule>
[15:06:12] fullofcaffeine: has joined #ruby
[15:07:01] jhass: ChampS_: ruby-.2.1 looks weird
[15:07:46] ChampS_: oh u're right
[15:07:55] ChampS_: so a bug in passenger output
[15:08:12] ChampS_: I copy pasted this line cause the output was telling me to do so
[15:08:33] ChampS_: mh nope in my file its 2.2.1
[15:08:51] ChampS_: just a copy paste failure of me from file to irc
[15:09:11] weihan: has joined #ruby
[15:09:16] idefine_: has joined #ruby
[15:09:16] treehug88: mwlang you might be interested in "ack". Though I'm not exactly clear what your question is
[15:09:25] wldcordeiro: has joined #ruby
[15:09:42] prefixed: YO. what kind of exception would you throw if a shell command fails?
[15:09:59] jhass: what does it do?
[15:10:28] jhass: sounds like the whole purpose of the script is to call it
[15:10:35] jhass: are you going to rescue it?
[15:10:47] prefixed: it could fail a myriad number of ways, but i'd like to make it clear that the shell program failed
[15:11:20] prefixed: and no, i'm not going to rescue
[15:11:28] jhass: then I'd use Kernel#abort
[15:11:46] chopin: has joined #ruby
[15:12:11] Peteykun: has joined #ruby
[15:12:11] mwlang: treehug88: well, essentially, Dir.glob(???*???).select{|fn| File.read(fn) =~ /some_pattern/} but with recursion into the folders
[15:12:19] jhass: because you won't recover the error
[15:13:25] prefixed: hm. reasonable
[15:13:34] unreal_: has joined #ruby
[15:14:13] ngscheurich: has joined #ruby
[15:14:15] kobain: has joined #ruby
[15:14:28] roshanavand: has joined #ruby
[15:15:23] umgrosscol: has joined #ruby
[15:16:14] shinnya: has joined #ruby
[15:16:25] northfurr: has joined #ruby
[15:16:37] fullofcaffeine: has joined #ruby
[15:16:39] jobewan: has joined #ruby
[15:17:10] ruurd: has joined #ruby
[15:18:04] dfinninger: has joined #ruby
[15:18:06] cdg_: has joined #ruby
[15:19:49] _aeris_: has joined #ruby
[15:20:27] unreal: has joined #ruby
[15:23:22] hahuang61: has joined #ruby
[15:23:58] rfeyn: has joined #ruby
[15:24:07] dfockler: has joined #ruby
[15:24:18] EdwardIII: hrm so if i install a gem like "gem 'sidekiq-promise'" i'd generally expect to be able to "require 'gem 'sidekiq-promise'" - reasonable? i'm seeing require': cannot load such file -- sidekiq-promise (LoadError)
[15:24:36] rfeyn: In the top level of a ruby program, self is an object of class Object. What's the default definee in the top level?
[15:25:20] havenwood: EdwardIII: See: http://guides.rubygems.org/name-your-gem/
[15:25:28] havenwood: EdwardIII: require 'sidekiq/promise'
[15:25:33] jhass: rfeyn: Object, default method visibility is private
[15:25:45] EdwardIII: havenwood: thanks!
[15:25:54] rfeyn: jhass: Is the default definee the singleton class of self in the top level?
[15:25:58] polishdub: has joined #ruby
[15:26:03] jhass: no, Object
[15:26:04] inteq: has joined #ruby
[15:27:21] treehug88: mwlang: oh cool. Now you just need to add some sort of 'find' moral equivalent.
[15:27:25] joncol: has joined #ruby
[15:27:56] roshanavand: has joined #ruby
[15:28:06] atmosx: has joined #ruby
[15:28:56] chriscarpenter12: has joined #ruby
[15:28:57] joncol: What's a good way of accessing a Logger in Ruby? I want to be able to switch out the file log, used in a normal run of the program, with some mocks when testing.
[15:29:52] ChampS_: jhass: strange, it only works when I do the rigth things xD
[15:30:02] ChampS_: now all is good, redmine works again
[15:30:09] atmosx: joncol: Logger.new ?
[15:30:42] mwlang: joncol: just use the Logger class to instantiate what you want. http://ruby-doc.org/stdlib-2.1.0/libdoc/logger/rdoc/Logger.html
[15:31:13] atmosx: joncol: you can create env variables and have your initialize method read the 'RUBY_ENV' variable. Then use Logger.new('/path/to/production.log') or Logger.new '/path/to/dev.log'
[15:32:46] podman: has joined #ruby
[15:32:53] fullofcaffeine: has joined #ruby
[15:33:05] rfeyn: jhass: https://eval.in/452161
[15:33:08] slawrence00: has joined #ruby
[15:33:39] jhass: rfeyn: https://eval.in/452166
[15:33:40] ruurd: has joined #ruby
[15:34:50] rfeyn: jhass: So the default definee is the Object class? And all methods become private methods?
[15:34:57] Maletor: has joined #ruby
[15:35:07] chriscarpenter12: Whats the easiest way to convert this string to an array: "[[1, product1],[2, product2]]" I'm scraping a url and the array returned is a string
[15:35:30] jhass: chriscarpenter12: that's not defined to be in a particular format?
[15:36:35] chriscarpenter12: jhass: I don't follow?
[15:36:38] jhass: chriscarpenter12: looks like YAML parses your example
[15:38:22] ReK2: has joined #ruby
[15:38:23] ReK2: has joined #ruby
[15:39:22] EdwardIII: hmm not sure i can use sidekiq for this
[15:39:30] EdwardIII: damnit this is way harder than i anticipated
[15:40:30] treehug88: jhass : wow chriscarpenter12 is right; try pasting your data into http://yaml-online-parser.appspot.com/
[15:41:04] jhass: treehug88: ruby -ryaml -e 'p YAML.load ...'
[15:41:10] jhass: and you mixed up the nicks :P
[15:42:42] treehug88: i was just showing how it would be easy to confirm it looks like yaml without writing any code
[15:42:53] joncol: Is there a way to detect if you're currently running RSpec tests?
[15:43:58] cdg: has joined #ruby
[15:44:31] jhass: you shouldn't
[15:45:38] freerobby: has joined #ruby
[15:45:49] blue_deref: has joined #ruby
[15:46:57] helpa: has joined #ruby
[15:47:33] helpa: has joined #ruby
[15:47:35] roshanavand: has joined #ruby
[15:48:34] jpfuentes2: has joined #ruby
[15:48:44] armyriad: has joined #ruby
[15:48:45] Spami: has joined #ruby
[15:49:46] rewzn: has joined #ruby
[15:49:59] ruurd_: has joined #ruby
[15:50:01] LMity: has joined #ruby
[15:50:06] [Butch]: has joined #ruby
[15:50:18] arthurix: has joined #ruby
[15:51:45] grekkos: has joined #ruby
[15:53:11] p0wn3d__: has joined #ruby
[15:54:36] Channel6: has joined #ruby
[15:56:21] khebbie: has joined #ruby
[15:56:27] michaeldeol: has joined #ruby
[15:58:17] beauby: has joined #ruby
[16:00:12] SirCmpwn: has joined #ruby
[16:00:28] SirCmpwn: came here to ask what appeals to people about ruby
[16:01:00] new_student: has joined #ruby
[16:01:08] V1s1ble: has joined #ruby
[16:02:35] bryanray: has joined #ruby
[16:02:42] SirCmpwn: my only exposure to it has been deploying a rails app and man, that sucked. What does it bring to the table that makes it super popular?
[16:03:31] jhass: I'd say a very open yet consistent type system, high introspection and metaprogramming abilities and a rich stdlib
[16:04:06] Coraline: Add to that readability and conciseness
[16:04:11] jhass: but judging Ruby from a Rails install is like judging Python from deploying Django
[16:04:25] ljarvis: development speed, metaprogramming capabilities, decent testing tools
[16:04:31] SirCmpwn: except that deploying django is super easy
[16:04:41] SirCmpwn: can you tell me more about ruby and metaprogramming?
[16:04:46] jhass: I always find it at least equally hard
[16:05:14] new_student: Hello All, I am a new student and have a question regarding my teacher's code. The code is checking Strings to see whether they are palindromes. Here is a link: http://www.pythontutor.com/visualize.html#code=def+FirstReverse(str%29%0D%0A++reverse_string+%3D+%22%22%09%0D%0A++i+%3D+0%0D%0A++while+i+%3C+str.length%0D%0A++++reverse_string+%3D+str%5Bi%5D+%2B+reverse_string(%29%0D%0A++++i+%2B%3D+1%0D%0A++end%0D%0A++return+reverse_string
[16:05:37] new_student: I understand everything except Line 5
[16:05:47] SirCmpwn: this is what I... experienced... rails with a while ago: https://github.com/r888888888/danbooru
[16:05:48] arthurix_: has joined #ruby
[16:06:00] chriscarpenter12: Just for reference eval() converted "[["1", "product1"],["2", "product2"]]" to an array object
[16:06:10] new_student: Can someone explain what line 5 does in the code?
[16:06:17] nemo_: has joined #ruby
[16:06:25] towski_: has joined #ruby
[16:07:07] ljarvis: new_student: that's Python, this is #ruby
[16:07:42] EmeraldExplorer: has joined #ruby
[16:07:45] Coraline: new_student: it's building the string backwards
[16:08:04] new_student: Im just using the Python visualizer, but its includes RUby as a built in feature
[16:08:14] chussenot: has joined #ruby
[16:08:15] ljarvis: well, it's not valid ruby
[16:08:24] amclain: has joined #ruby
[16:08:30] dionysus69: has joined #ruby
[16:08:39] Igorshp: has joined #ruby
[16:08:49] momomomomo: has joined #ruby
[16:09:03] new_student: But why does he subtract one and then the index of i?
[16:09:13] JJM: has joined #ruby
[16:09:21] new_student: I dont quite understand how that checks for palindrome within a string
[16:09:23] ljarvis: there's no subtraction
[16:09:45] mleung: has joined #ruby
[16:09:47] fullofcaffeine: has joined #ruby
[16:09:48] RobertBirnie: has joined #ruby
[16:10:03] dfockler: SirCmpwn: If you expect setting up Rails to be like setting up a PHP site, you are probably going to be disappointed.
[16:10:05] jhass: chriscarpenter12: bad idea, very bad idea
[16:10:18] jhass: chriscarpenter12: also it changed from your last example, now it's also valid JSON
[16:10:34] SirCmpwn: who do you think I am, some kind of PHP twat
[16:10:39] favadi: has joined #ruby
[16:10:48] ljarvis: SirCmpwn: please watch your language
[16:10:56] new_student: ljarvis, my bad, I copied the wrong code
[16:11:15] new_student: Is there a better website to share small-scale code over the internet?
[16:11:18] jhass: ?gist new_student
[16:11:18] ruboto_: new_student, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[16:11:23] diegoaguilar: has joined #ruby
[16:11:39] new_student: okay thank you
[16:13:15] new_student: https://gist.github.com/anonymous/d1601f6f39f56f1bd6e4#file-gistfile1-txt
[16:13:35] new_student: Thats the correct code^ I understand everything except line 4
[16:13:47] jhass: ?gist_usage new_student
[16:13:47] ruboto_: new_student, To properly use gist, please enable syntax highlighting, either by choosing the language manually or by entering a proper filename. If you post multiple things, separate them into multiple files. If you have a Github account, please update your gist with new information instead of posting a new one.
[16:14:20] MasterPiece: has joined #ruby
[16:14:56] jhass: but got any specific question about it? It's not very idiomatic Ruby for sure
[16:15:32] zenguy_pc: has joined #ruby
[16:17:02] skade: has joined #ruby
[16:17:51] joncol: has joined #ruby
[16:18:45] ruurd: has joined #ruby
[16:19:06] gaboesquivel: has joined #ruby
[16:19:12] sdothum: has joined #ruby
[16:19:16] User458764: has joined #ruby
[16:19:52] snockerton: has joined #ruby
[16:20:25] wpp: has joined #ruby
[16:21:44] arup_r: has joined #ruby
[16:22:11] Maletor: has joined #ruby
[16:22:32] marr: has joined #ruby
[16:23:15] GriffinHeart: has joined #ruby
[16:24:05] jackjackdripper: has joined #ruby
[16:25:29] dfinninger: has joined #ruby
[16:26:00] NullVoxPopuli: has joined #ruby
[16:26:02] htmldrum: has joined #ruby
[16:26:16] Shoutsid: has joined #ruby
[16:26:21] NullVoxPopuli: anybody know why ruby rsa keys can't be imported by python?
[16:26:40] NullVoxPopuli: python expects the format of BEGIN RSA PUBLIC KEY, but ruby only exports BEGIN PUBLIC KEY
[16:30:15] jackjackdripper: has joined #ruby
[16:31:04] platzhirsch: has joined #ruby
[16:31:14] roshanavand: has joined #ruby
[16:31:27] User458764: has joined #ruby
[16:31:31] nemo_: has joined #ruby
[16:31:50] zotherstupidguy: has joined #ruby
[16:32:29] ruurd: has joined #ruby
[16:32:33] NullVoxPopuli: figured it out, it was a difference between x.509 including information about what made the key, and python not doing that
[16:32:54] NullVoxPopuli: http://stackoverflow.com/questions/18039401/how-can-i-transform-between-the-two-styles-of-public-key-format-one-begin-rsa for anybody else who wonders
[16:32:58] armyriad: has joined #ruby
[16:34:15] Asher: has joined #ruby
[16:35:17] Soda: has joined #ruby
[16:35:35] tvw: has joined #ruby
[16:36:52] jenrzzz: has joined #ruby
[16:37:34] djbkd: has joined #ruby
[16:37:59] roshanav_: has joined #ruby
[16:39:01] Emmanuel_Chanel: has joined #ruby
[16:39:32] Emmanuel_Chanel: has joined #ruby
[16:42:53] northfurr: has joined #ruby
[16:43:24] weihan: has joined #ruby
[16:44:20] fullofcaffeine: has joined #ruby
[16:44:22] ramfjord: has joined #ruby
[16:44:53] dionysus69: has joined #ruby
[16:46:14] ruurd: has joined #ruby
[16:47:43] A124: has joined #ruby
[16:48:32] weihan: has joined #ruby
[16:48:54] DexterLB: has joined #ruby
[16:49:22] nofxx: has joined #ruby
[16:49:59] beauby: has joined #ruby
[16:50:33] jenrzzz: has joined #ruby
[16:51:04] grekkos: has joined #ruby
[16:51:12] petricore: has joined #ruby
[16:51:28] tjohnson: has joined #ruby
[16:51:59] MasterPiece: has joined #ruby
[16:52:33] luckyme: has joined #ruby
[16:52:45] bayed: has joined #ruby
[16:55:06] bigmac_: has joined #ruby
[16:55:43] ruurd: has joined #ruby
[16:56:22] DoubleMalt: has joined #ruby
[17:02:00] Shoutsid: has joined #ruby
[17:02:10] zotherstupidguy: has joined #ruby
[17:03:10] queequeg1: has joined #ruby
[17:03:54] BTRE: has joined #ruby
[17:04:40] krisquigley: has joined #ruby
[17:06:32] arthurix: has joined #ruby
[17:07:27] skweek: has joined #ruby
[17:07:36] pauly_oc: has joined #ruby
[17:09:26] chouhoulis: has joined #ruby
[17:09:51] Guest50: has joined #ruby
[17:11:26] Shoutsid: has joined #ruby
[17:13:04] fedexo: has joined #ruby
[17:13:37] Rodya_: has joined #ruby
[17:14:06] riskish: has joined #ruby
[17:17:23] EminenceHC: has joined #ruby
[17:18:21] jgt: has joined #ruby
[17:19:23] failshell: has joined #ruby
[17:21:54] Jackneill: has joined #ruby
[17:22:22] failshell: has joined #ruby
[17:23:24] jgt: has joined #ruby
[17:23:51] fullofca_: has joined #ruby
[17:23:57] GriffinHeart: has joined #ruby
[17:24:23] karapetyan: has joined #ruby
[17:24:35] ruurd: has joined #ruby
[17:25:56] JDiPierro: has joined #ruby
[17:26:31] ruby-lang261: has joined #ruby
[17:27:37] sp4rrow: has joined #ruby
[17:28:36] helpa: has joined #ruby
[17:28:42] queequeg1: has joined #ruby
[17:28:45] nemo_: has joined #ruby
[17:32:24] jessemcgilallen: has joined #ruby
[17:33:36] Spami: has joined #ruby
[17:34:19] Shoutsid: has joined #ruby
[17:35:17] webopsx: has joined #ruby
[17:35:30] ramfjord: has joined #ruby
[17:35:56] CooloutAC: has left #ruby: ("Selakem Shalom, PEACE")
[17:36:41] idefine: has joined #ruby
[17:36:44] shevy: yo people
[17:36:52] shevy: make love not war
[17:36:54] shevy: write ruby not php
[17:37:45] karapetyan: has joined #ruby
[17:37:51] Zarthus: but PHP is already at version 7, so it must be better!
[17:39:35] Shoutsid: has joined #ruby
[17:40:09] karapetyan: has joined #ruby
[17:40:48] HAL2328: has joined #ruby
[17:40:55] adac: has joined #ruby
[17:41:48] leafybasil: has joined #ruby
[17:41:59] doddok: has joined #ruby
[17:42:27] shevy: did they skip 6
[17:42:48] shevy: on second thought, I should probably not ask, my mind is a fragile thing
[17:43:43] dfinninger: has joined #ruby
[17:44:28] jgt: has joined #ruby
[17:44:35] shevy: hah https://medium.com/@garywiz/five-things-old-programmers-need-to-remember-e78caf0b0973 - people learn philosophy from Star Trek Spock :)
[17:45:19] spider-mario: has joined #ruby
[17:47:58] chriscarpenter12: has left #ruby: ()
[17:48:47] karapetyan: has joined #ruby
[17:49:33] craysiii: has joined #ruby
[17:49:48] User458764: has joined #ruby
[17:52:41] HAL2328_: has joined #ruby
[17:54:54] FernandoBasso: has joined #ruby
[17:54:57] nemo_: has joined #ruby
[17:55:16] mhib: has joined #ruby
[17:55:17] karapetyan: has joined #ruby
[17:55:42] michael_mbp: has joined #ruby
[17:56:27] cwong_on_irc: has joined #ruby
[17:57:38] baweaver: has joined #ruby
[17:57:58] Shoutsid: has joined #ruby
[17:58:12] baroquebobcat: has joined #ruby
[17:59:54] karapetyan: has joined #ruby
[18:01:48] bkxd: has joined #ruby
[18:02:07] ruurd: has joined #ruby
[18:03:16] vigintas: has joined #ruby
[18:03:50] vigintas1: has joined #ruby
[18:06:09] Shoutsid: has joined #ruby
[18:06:18] prefixed: yo. what is the RDOC way of specifying the valid options of a method's options hash?
[18:06:44] pipework: prefixed: Enumerate the options.
[18:06:52] pipework: Prose, bruv!
[18:06:59] karapetyan: has joined #ruby
[18:07:16] pipework: It can get hard when different combinations of options cause different things though.
[18:08:25] SenpaiSilver: has joined #ruby
[18:10:31] Sou|cutter: Is there a good way to convert RGBa to hex?
[18:10:48] baweaver: has joined #ruby
[18:11:12] metlx: has joined #ruby
[18:11:45] metlx: I never used rvm before. I just got it installed. When installing gems for the system ruby, do I have to use sudo?
[18:12:16] karapetyan: has joined #ruby
[18:12:18] Sou|cutter: I guess the A part is sucky since you'd have to know the background (hmm)
[18:12:19] fullofcaffeine: has joined #ruby
[18:12:37] slawrence00: has joined #ruby
[18:12:47] havenwood: metlx: You can select system Ruby with: rvm use system
[18:13:24] havenwood: metlx: Whether you need to use sudo with gems on system Ruby depends on how your package manager configured Ruby. What OS/distro?
[18:13:39] metlx: havenwood: I'm on Ubuntu.
[18:13:56] havenwood: metlx: Then yes, the default system Ruby configuration requires sudo with gems since it's a system install.
[18:14:22] metlx: havenwood: And all the other rubies don't, correct?
[18:14:55] havenwood: metlx: The RVM-installed Rubies don't. If you use sudo you'll actually drop your env so RVM goes poof.
[18:14:58] nofxx: metlx, have in mind there's no need for rvm, just use latest ruby and have fun
[18:15:08] fullofca_: has joined #ruby
[18:15:26] davedev24: has joined #ruby
[18:15:35] zotherstupidguy: has joined #ruby
[18:16:04] havenwood: metlx: If you need to use sudo with an RVM Ruby you can use rvmsudo to preserve your RVM environment.
[18:16:04] zenguy_pc: has joined #ruby
[18:16:22] gizmore: has joined #ruby
[18:16:40] metlx: havenwood: The system ruby is not part of RVM?
[18:17:31] havenwood: metlx: No, the system Ruby is from apt-get.
[18:17:58] havenwood: metlx: Since Ubuntu doesn't ship latest stable in a timely manner Brightbox maintains Ruby packages for Ubuntu: https://www.brightbox.com/docs/ruby/ubuntu/
[18:18:31] Shoutsid: has joined #ruby
[18:18:56] metlx: havenwood: Is RVM beneficial in any way?
[18:19:01] havenwood: metlx: If you need more flexibility than those packages you can use an install/switcher like RVM to build your own Rubies. Or ruby-install is a simpler tool for installing Rubies and chruby for switching: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/
[18:19:27] havenwood: metlx: It works on obscure system with old Rubies that require patches to install.
[18:22:29] pandaant: has joined #ruby
[18:22:50] lorn: has joined #ruby
[18:23:17] idefine: has joined #ruby
[18:23:55] ruurd: has joined #ruby
[18:26:19] GarethAdams: has joined #ruby
[18:26:30] Shoutsid: has joined #ruby
[18:26:46] bl0ndie: has joined #ruby
[18:26:49] htmldrum: has joined #ruby
[18:27:12] djbkd: has joined #ruby
[18:28:48] EminenceHC: has joined #ruby
[18:29:22] oetjenj: has joined #ruby
[18:29:49] vigintas: has joined #ruby
[18:29:55] momomomomo: has joined #ruby
[18:29:56] User458764: has joined #ruby
[18:30:08] vigintas: has joined #ruby
[18:30:28] p0wn3d_: has joined #ruby
[18:31:32] jenrzzz: has joined #ruby
[18:31:49] mary5030: has joined #ruby
[18:31:59] hakunin: has joined #ruby
[18:33:41] dionysus69: has joined #ruby
[18:34:00] idefine: has joined #ruby
[18:35:34] Hanmac: has joined #ruby
[18:35:54] Shoutsid: has joined #ruby
[18:35:57] timonv: has joined #ruby
[18:37:09] vigintas: has joined #ruby
[18:38:01] balazs_: has joined #ruby
[18:40:02] varunwachaspati: has joined #ruby
[18:43:35] symm-: has joined #ruby
[18:44:12] JJM: has joined #ruby
[18:44:20] jenrzzz: has joined #ruby
[18:46:15] krisquigley: has joined #ruby
[18:47:01] p0wn3d__: has joined #ruby
[18:47:14] Shoutsid: has joined #ruby
[18:47:35] ruurd: has joined #ruby
[18:48:20] DoubleMalt: has joined #ruby
[18:49:59] swgillespie: has joined #ruby
[18:50:08] Quandl: has joined #ruby
[18:50:22] MuffinPimp: has joined #ruby
[18:51:53] jenrzzz: has joined #ruby
[18:53:08] A124: has joined #ruby
[18:53:53] EminenceHC: has joined #ruby
[18:53:57] treehug88: has joined #ruby
[18:55:46] Musashi007: has joined #ruby
[18:55:51] lokson: has joined #ruby
[18:56:35] craigs: has joined #ruby
[18:56:54] luckyme: has joined #ruby
[18:56:59] jasonking: has joined #ruby
[18:57:09] jerematic: has joined #ruby
[18:57:11] rdavila: has joined #ruby
[18:57:26] jasonking: Hi all, I have a beginner question invovling morphing strings
[18:57:29] davedev24: has joined #ruby
[18:57:41] momomomomo: Jason____: !ask
[18:57:47] ruboto_: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
[18:58:11] s2013: has joined #ruby
[18:58:11] jasonking: What is the best approach to transform individual letters in a given string to the next letter of the alphabet? I want to write this as a function
[18:58:29] Shoutsid: has joined #ruby
[18:58:34] jasonking: "Jason" => "Kbtpo"
[18:58:40] pipework: Jason____: str.chars.map(&:succ).join
[18:58:55] pipework: >> "Jason".chars.map(&:succ).join
[18:58:57] ruboto_: pipework # => "Kbtpo" (https://eval.in/452258)
[18:59:15] jasonking: thank you pipework
[18:59:44] jasonking: In your code, I recognize all methods except .chars and the &:succ passed to .map
[18:59:54] jasonking: Of course, I will look up documentation
[19:00:10] jasonking: But I am a first time student, so perhaps you can Mr.Miyagi lecture me?
[19:01:16] pipework: Jason____: You'll find #chars in String's docs, &:any_method uses Symbol#to_proc, which you can read about in that documentation, and #succ is also in String's documentation.
[19:01:38] pipework: succ means successor.
[19:02:31] davedev24: has joined #ruby
[19:03:16] shinnya: has joined #ruby
[19:03:30] jasonking: Okay pipework, I will look this up
[19:03:37] rdavila: Hi, I have a question regarding Hash initialization: https://gist.github.com/rdavila/5212596735d5b370c492
[19:03:45] ramfjord: has joined #ruby
[19:03:50] rdavila: I know that Hash.new { |k, v| k[v] = [] } solves the problem but don't know exactly how it works
[19:04:10] s00pcan_: has joined #ruby
[19:05:12] dvarrui: has joined #ruby
[19:05:25] kirun: has joined #ruby
[19:07:03] pipework: rdavila: You're modifying the array you're passing into the hash, not getting a new array for each new unknown key in the hash.
[19:07:36] momomomomo: rdavila: "If a block is specified, it will be called with the hash object and the key, and should return the default value. It is the block???s responsibility to store the value in the hash if required." http://ruby-doc.org/core-2.1.1/Hash.html#method-c-new
[19:08:20] fullofcaffeine: has joined #ruby
[19:08:38] iam3: has joined #ruby
[19:09:54] havenwood: rdavila: I think you're thinking: Hash.new { |h, k| h[k] = [] }
[19:10:19] Igorshp: has joined #ruby
[19:10:19] jenrzzz: has joined #ruby
[19:10:35] havenwood: rdavila: The `h` is for Hash and the `k` for key.
[19:10:36] pipework: havenwood: They just used a poor variable name.
[19:11:08] havenwood: pipework: I've seen a lot of local variables lately that have deceptive names.
[19:11:11] havenwood: pipework: Trickery!
[19:11:26] pipework: havenwood: It is most insidious and devilish.
[19:11:30] havenwood: Or skullduggery rather. Aye.
[19:11:31] fullofca_: has joined #ruby
[19:11:52] havenwood: skulduggery*
[19:12:04] rdavila: pipework momomomomo thanks for the explanation
[19:12:18] rdavila: yeah, that variable name is ugly def
[19:12:24] rdavila: just used that doe the demo
[19:12:32] rdavila: def will not do that in prod code
[19:12:55] havenwood: rdavila: Having a key named `v` would confuse me!
[19:12:56] dikaio: has joined #ruby
[19:13:17] momomomomo: >> my_hash = Hash.new { |h, k| h[k] = [] }; my_hash[:hello] << 'world'; puts my_hash;
[19:13:18] ruboto_: momomomomo # => {:hello=>["world"]} ...check link for more (https://eval.in/452279)
[19:14:42] fullofcaffeine: has joined #ruby
[19:14:50] goldfish6744: has joined #ruby
[19:15:01] rdavila: momomomomo: I know that works befause every time we pass a invalid key to the Hash it will return a new Array
[19:15:18] rdavila: but with the other version: ???Hash.new([])???
[19:15:33] rdavila: I know that default value is shared for all the keys in the Hash
[19:15:38] momomomomo: rdavila: you didn't look at the docs I sent you
[19:15:58] havenwood: auto_vivification = Hash.new { |h, k| h[k] = Hash.new &h.default_proc }; auto_vivification[:o][:m][:g][:w][:t][:f][:b][:b][:q] = true; auto_vivification
[19:16:13] havenwood: #=> {:o=>{:m=>{:g=>{:w=>{:t=>{:f=>{:b=>{:b=>{:q=>true}}}}}}}}}
[19:16:16] swgillespie: has joined #ruby
[19:16:17] momomomomo: >> my_hash = Hash.new(["this", "is", "an", "array"]); my_hash[:hello] << 'new_item'; puts my_hash;
[19:16:18] ruboto_: momomomomo # => {} ...check link for more (https://eval.in/452280)
[19:17:09] c355E3B: has joined #ruby
[19:17:15] momomomomo: >> my_hash = Hash.new(["this", "is", "an", "array"]); puts my_hash[:hello];
[19:17:16] ruboto_: momomomomo # => this ...check link for more (https://eval.in/452281)
[19:17:17] timonv: has joined #ruby
[19:17:39] momomomomo: thus, unless you set the key, it has the default value
[19:17:46] NullVoxPopuli: has joined #ruby
[19:17:46] NullVoxPopuli: has joined #ruby
[19:18:07] jenrzzz: has joined #ruby
[19:18:15] momomomomo: and they all point to the same default value
[19:18:19] mattprelude: has joined #ruby
[19:19:08] fullofca_: has joined #ruby
[19:19:26] Shoutsid: has joined #ruby
[19:21:17] rdavila: momomomomo: I think I got it
[19:21:34] idefine: has joined #ruby
[19:21:51] rdavila: looks like ???my_hash[:hello] << 'new_item'??? is doing nothing to the Hash
[19:21:57] momomomomo: >> my_hash = Hash.new(["this", "is", "an", "array"]); my_hash[:hello].map! &:upcase; puts my_hash[:hello];
[19:21:58] ruboto_: momomomomo # => THIS ...check link for more (https://eval.in/452284)
[19:21:59] rdavila: because we are not setting the key
[19:22:12] northfurr: has joined #ruby
[19:22:17] rdavila: just modifying the default value
[19:22:25] ndrei: has joined #ruby
[19:22:29] momomomomo: >> my_hash = Hash.new(["this", "is", "an", "array"]); my_hash[:hello].map! &:upcase; puts my_hash[:world];
[19:22:30] ruboto_: momomomomo # => THIS ...check link for more (https://eval.in/452285)
[19:22:34] karapetyan: has joined #ruby
[19:22:54] fullofcaffeine: has joined #ruby
[19:22:55] pipework: momomomomo: inspect the hash itself afterwards.
[19:23:01] EminenceHC: has joined #ruby
[19:23:15] rdavila: yeah, it should be {}
[19:23:23] momomomomo: pipework: clearly it is empty
[19:23:26] rdavila: you???re just altering the default value
[19:23:53] failshell: has joined #ruby
[19:24:20] jenrzzz: has joined #ruby
[19:24:35] craigs: has joined #ruby
[19:24:36] Shoutsid: has joined #ruby
[19:25:03] pipework: >> Hash.new([]).tap{|h| h[:lol] |= %|wat miaow bro| }
[19:25:04] ruboto_: pipework # => no implicit conversion of String into Array (TypeError) ...check link for more (https://eval.in/452287)
[19:25:15] pipework: >> Hash.new([]).tap{|h| h[:lol] |= %w|wat miaow bro| }
[19:25:16] ruboto_: pipework # => {:lol=>["wat", "miaow", "bro"]} (https://eval.in/452288)
[19:26:27] pipework: If you do assignment as whale, you can store the value.
[19:27:01] Zarthus: shevy: yes they did.
[19:27:04] pipework: But modifying the array destructively doesn't assign the key with the value's result, it just modifies the value. Any subsequent assignments that use the default value will use the array that you modified.
[19:27:24] dsjethzs_: has joined #ruby
[19:27:27] baweaver: has joined #ruby
[19:27:38] northfurr: has joined #ruby
[19:27:55] rdavila: momomomomo pipework thanks a lot for the great examples
[19:28:04] Shoutsid: has joined #ruby
[19:28:10] rdavila: it was a bit tricky to understand on my won
[19:28:24] craigs: has joined #ruby
[19:28:25] pipework: rdavila: no worries. Glad we could help.
[19:28:36] idefine: has joined #ruby
[19:29:45] Channel6: has joined #ruby
[19:30:02] momomomomo: pipework: your example didn't show much up there
[19:30:23] weihan: has joined #ruby
[19:30:31] momomomomo: >> Hash.new([]).tap{|h| h[:lol] |= %w|wat miaow bro| }
[19:30:32] ruboto_: momomomomo # => {:lol=>["wat", "miaow", "bro"]} (https://eval.in/452289)
[19:30:40] pipework: momomomomo: Sure it did. It showed that when you use the value returned from passing an unknown key into the hash and then assign a value to it, it uses the default value.
[19:30:59] momomomomo: >> Hash.new(["hello", "world"]).tap{|h| h[:lol] |= %w|wat miaow bro| }
[19:31:00] ruboto_: momomomomo # => {:lol=>["hello", "world", "wat", "miaow", "bro"]} (https://eval.in/452290)
[19:31:49] pipework: Whereas, when you destructively modify the default value without doing assignment, it doesn't behave like one might expect.
[19:31:58] baweaver: has joined #ruby
[19:32:13] BraddPit1: has joined #ruby
[19:32:15] blackmesa: has joined #ruby
[19:32:44] momomomomo: nah, your example just obfuscates
[19:32:58] Guest50: has joined #ruby
[19:33:36] craigs: has joined #ruby
[19:33:38] JJM: has joined #ruby
[19:33:39] p0wn3d__: has joined #ruby
[19:33:42] momomomomo: it is useful to show how to set something to the default value, though
[19:33:49] mary5030: has joined #ruby
[19:34:44] xelkarin: has joined #ruby
[19:35:09] mary5030: has joined #ruby
[19:36:04] jamesaxl: has joined #ruby
[19:36:05] Dopagod: has joined #ruby
[19:37:28] fullofca_: has joined #ruby
[19:37:44] speakingcode: has joined #ruby
[19:38:07] inascime: has joined #ruby
[19:39:05] Shoutsid: has joined #ruby
[19:39:45] jones_: has joined #ruby
[19:39:46] etrae: has joined #ruby
[19:40:05] djbkd: has joined #ruby
[19:40:10] xelkarin: I'm trying to write a user management script using ruby-ldap, and I'm trying to figure out how to change passwords.
[19:40:35] fullofcaffeine: has joined #ruby
[19:40:50] xelkarin: I've done this once before with a standalone EXOP command under Java, and while ruby provides controls for extended operations it seems these are only used to extend basic LDAP commands.
[19:40:53] adac: has joined #ruby
[19:41:12] pipework: xelkarin: Have you considered using jruby?
[19:41:12] fullofcaffeine: has joined #ruby
[19:41:33] momomomomo: jruby is dope, but you can't use apache spark with it :(
[19:41:52] xelkarin: Actually, I haven't. I may look into it now.
[19:42:23] yfeldblum: has joined #ruby
[19:42:36] xelkarin: I'm guessing there's no way to do it under standard ruby though?
[19:43:38] awrfas2: has joined #ruby
[19:44:09] pipework: momomomomo: Why can't you?
[19:44:11] pipework: Spark is on the JVM, right?
[19:45:00] momomomomo: pipework: serialization etc
[19:45:20] pipework: momomomomo: I bet it can be done.
[19:45:44] pipework: If Spark is on the JVM, and since spark is open source, the limitation is that no one has done it, not that it can't be done.
[19:45:57] BraddPit1: has joined #ruby
[19:46:05] Rollabunna: has joined #ruby
[19:46:15] pipework: Dat jvm interop
[19:46:22] momomomomo: pipework: https://issues.apache.org/jira/browse/SPARK-3221
[19:47:13] baweaver: has joined #ruby
[19:47:15] agent_white: has joined #ruby
[19:47:22] pipework: momomomomo: I think that it's actually possible, but I'd need to check with the jruby team to see if I'm being silly.
[19:47:38] BraddPit1: has joined #ruby
[19:47:41] momomomomo: I'd love to have a spark/torquebox cluster
[19:47:51] momomomomo: rather than looking at scala/play framework
[19:47:53] BraddPit2: has joined #ruby
[19:47:57] pipework: I think that they wouldn't have to update spark to support jruby objects, but that someone would need to write code to serialize the jruby objects to what spark expects.
[19:48:41] momomomomo: I haven't looked to deep into it, because using scala/play won't be that bad if needed
[19:48:45] momomomomo: or python/django or something
[19:50:30] RobertBi_: has joined #ruby
[19:52:18] gaboesquivel: has joined #ruby
[19:53:26] Igorshp: has joined #ruby
[19:53:34] kfpratt: has joined #ruby
[19:54:36] BraddPitt: has joined #ruby
[19:57:07] etrae: has joined #ruby
[19:57:32] karapetyan: has joined #ruby
[19:58:04] Shoutsid: has joined #ruby
[19:59:18] speakingcode: has joined #ruby
[19:59:52] User458764: has joined #ruby
[20:01:17] BraddPitt: has joined #ruby
[20:01:21] rushed: has joined #ruby
[20:01:47] Shoutsid: has joined #ruby
[20:03:13] baroquebobcat: has joined #ruby
[20:03:46] BraddPitt: has joined #ruby
[20:03:55] bryanray: has joined #ruby
[20:05:22] BraddPitt: has joined #ruby
[20:07:23] blue_deref: has joined #ruby
[20:10:31] David27: has joined #ruby
[20:10:35] craigs: has joined #ruby
[20:14:02] BraddPitt: has joined #ruby
[20:14:29] BraddPitt: has joined #ruby
[20:15:55] last_staff: has joined #ruby
[20:16:14] moredhel: has joined #ruby
[20:16:42] BraddPitt: has joined #ruby
[20:16:47] idefine: has joined #ruby
[20:16:52] zenguy_pc: has joined #ruby
[20:16:53] User458764: has joined #ruby
[20:17:16] Coldblackice: has joined #ruby
[20:18:16] NullVoxPopuli: has joined #ruby
[20:22:38] djbkd: has joined #ruby
[20:24:02] dfinninger: has joined #ruby
[20:24:19] BraddPitt: if I have a loop running in a thread, is it possible to have that thread update a variable /outside/ of the thread scope while in the loop? Without joining to the main thread?
[20:24:46] Renich: has joined #ruby
[20:25:12] shevy: BraddPitt isn't that what mutex is all about?
[20:25:33] shevy: http://ruby-doc.org/core-2.2.0/Mutex.html
[20:25:40] shevy: "Mutex implements a simple semaphore that can be used to coordinate access to shared data from multiple concurrent threads."
[20:25:47] shevy: doesn't say anything about changing shared data
[20:27:25] BraddPitt: ill try that shevy
[20:27:33] htmldrum: has joined #ruby
[20:30:19] haylon: Oh hey, BraddPitt. I was talking to you last night be people kept getting disconnected.
[20:30:36] haylon: This is the link to my question about making Thor long_desc respect \n's https://github.com/predatorian3/port_scanner
[20:30:48] wpp: has joined #ruby
[20:32:50] bryanray: has joined #ruby
[20:33:10] nettoweb: has joined #ruby
[20:33:16] oetjenj: has joined #ruby
[20:33:48] djbkd: has joined #ruby
[20:35:17] p0wn3d__: has joined #ruby
[20:36:29] Macaveli: has joined #ruby
[20:36:33] BraddPitt: oh yeah I ran into the same thing using heredocs
[20:36:53] BraddPitt: does explicitly adding \n change anything?
[20:37:25] haylon: one sec, checking
[20:37:41] BraddPitt: if not, you might have to skip heredocs and use an ugly multi-line string
[20:38:44] ramfjord: Do you guys have any recommendations for writing unit tests against external API integrations?
[20:38:54] pocketprotector-: has joined #ruby
[20:39:01] haylon: I saw something about x%5 or something
[20:39:04] ramfjord: I don't want to make the actaul API calls in the tests, but it seems like those are a very large portion of the code
[20:39:42] jhass: webmock or vcr?
[20:39:51] haylon: BraddPitt: No, the \n didn't work
[20:40:10] ramfjord: jhass: thanks, I'll take a look at those
[20:40:24] xxneolithicxx: has joined #ruby
[20:40:33] blackmesa: has joined #ruby
[20:41:20] Maletor: has joined #ruby
[20:42:51] n_blownapart: has joined #ruby
[20:44:05] Shoutsid: has joined #ruby
[20:44:59] haylon: BraddPitt: using the \x5 escape sequence worked
[20:45:09] dzejrou: has joined #ruby
[20:46:21] jgt: has joined #ruby
[20:46:38] Azulinho: has joined #ruby
[20:47:19] krisquigley: has joined #ruby
[20:47:23] kadoppe: has joined #ruby
[20:47:54] dzejrou: has joined #ruby
[20:48:20] radgeRayden: has joined #ruby
[20:48:45] bl0ndie: has joined #ruby
[20:48:56] shevy: I had in one .gemspec a ruby gem version specified 2.4.9
[20:49:05] timonv: has joined #ruby
[20:49:38] shevy: that made me wonder whether it is always a good idea to specify a hardcoded dependency on a specific gem version
[20:49:47] BraddPitt: ah, weird that \n didnt work, but glad you figured it out haylon
[20:52:10] craigs: has joined #ruby
[20:52:32] idefine: has joined #ruby
[20:53:22] oetjenj: has joined #ruby
[20:53:59] ecksit: has joined #ruby
[20:55:19] maletor_: has joined #ruby
[20:56:03] stannard: has joined #ruby
[20:56:09] imperator: has joined #ruby
[20:57:12] swgillespie: has joined #ruby
[20:57:30] dzejrou_: has joined #ruby
[20:58:12] diegoviola: has joined #ruby
[20:59:11] shevy: what are you people hacking away at in ruby as of late?
[20:59:50] BraddPitt: command line mp3 player with plugins
[21:00:15] ramfjord: A bunch of database importers and monitoring scripts!
[21:00:52] umgrosscol: has joined #ruby
[21:00:55] jenrzzz: has joined #ruby
[21:00:57] solocshaw: has joined #ruby
[21:03:03] n_blownapart: has joined #ruby
[21:03:16] baweaver: has joined #ruby
[21:04:18] spuk: has joined #ruby
[21:04:44] rikkipitt: has joined #ruby
[21:05:25] symm-_: has joined #ruby
[21:05:48] karapetyan: has joined #ruby
[21:06:29] bryanray: has joined #ruby
[21:06:38] Maletor: has joined #ruby
[21:07:00] dotrb: has joined #ruby
[21:07:49] blackmesa: has joined #ruby
[21:08:03] idefine: has joined #ruby
[21:08:43] balazs_: has joined #ruby
[21:09:30] dotrb: a want to convert adecimal range into hex bytecode, a la '\x3A' but (1..254).to_a.map &:chr isn't purely hex; it's escape sequences for the entire ascii encoding. whats the ideal way to do this?
[21:10:24] darix: >> 125.to_s(16)
[21:10:25] ruboto_: darix # => "7d" (https://eval.in/452385)
[21:12:58] fullofcaffeine: has joined #ruby
[21:13:11] darix: dotrb: does that help?
[21:13:34] bl0ndie: has joined #ruby
[21:13:49] oetjenj: has joined #ruby
[21:14:49] darix: otherwise pack/unpack can be your friends
[21:14:53] colstrom_: has joined #ruby
[21:15:02] dotrb: darix: it does, thank you. although it seems like i remember being able to generate the whole ascii range in hex including the escap chars, like "\x01"
[21:15:22] jhass: dotrb: you're confusing representation and value
[21:15:29] dotrb: darix: yeah, it was pack i used last time.
[21:15:38] karapetyan: has joined #ruby
[21:15:55] dotrb: jhass: you're right, i see what yoou mean
[21:16:06] jhass: do you want a byte sequences with the byte values 0 - 255 or do you want a string with two characters that when interpreted as hexadecimal map to 0-255
[21:16:14] dzejrou__: has joined #ruby
[21:16:32] jhass: *a two character sequence
[21:16:45] Shoutsid: has joined #ruby
[21:17:29] cwong_on_irc: has joined #ruby
[21:17:42] dotrb: jhass: i need a four character sequence, i just need the bytecode
[21:17:53] cwong_on_irc: has joined #ruby
[21:17:56] dotrb: sorry, byte-level representation
[21:18:15] V1s1ble: has joined #ruby
[21:18:15] xet7: has joined #ruby
[21:18:19] cwong_on_irc: has joined #ruby
[21:18:26] dotrb: just need to print it
[21:18:29] jhass: >> "a" == "\x61"
[21:18:30] ruboto_: jhass # => true (https://eval.in/452393)
[21:18:37] jhass: still not clear
[21:18:45] dotrb: jhass: sorry
[21:19:22] EminenceHC: has joined #ruby
[21:21:27] Guest50: has joined #ruby
[21:22:36] skade: has joined #ruby
[21:22:46] teclator: has joined #ruby
[21:22:50] NullVoxPopuli: has joined #ruby
[21:23:54] Shoutsid: has joined #ruby
[21:25:05] fullofca_: has joined #ruby
[21:26:05] dfockler: has joined #ruby
[21:26:09] VeryBewitching: has joined #ruby
[21:27:08] Azure: has joined #ruby
[21:28:20] baweaver: has joined #ruby
[21:28:39] Shoutsid: has joined #ruby
[21:32:11] mg^: has joined #ruby
[21:33:40] oetjenj: has joined #ruby
[21:33:47] choke: has joined #ruby
[21:34:01] craigs: has joined #ruby
[21:34:21] kidoz: has joined #ruby
[21:35:10] yfeldblum: has joined #ruby
[21:35:24] jackjackdripper1: has joined #ruby
[21:35:57] Porfa_: has joined #ruby
[21:36:15] tomchapin: has joined #ruby
[21:36:31] krisquigley: has joined #ruby
[21:37:07] rdavila: has joined #ruby
[21:37:55] Chaoborid: has joined #ruby
[21:38:46] bruno-: has joined #ruby
[21:39:03] ecksit: has joined #ruby
[21:39:45] failshell: has joined #ruby
[21:39:52] jenrzzz: has joined #ruby
[21:40:51] leafybasil: has joined #ruby
[21:41:25] awrfas2: has joined #ruby
[21:41:33] Shoutsid: has joined #ruby
[21:44:56] seydar: has joined #ruby
[21:44:58] seydar: anyone going to rubykaigi?
[21:45:15] Shoutsid: has joined #ruby
[21:46:08] jenrzzz_: has joined #ruby
[21:46:55] Chaoborid: has joined #ruby
[21:46:56] Rollabunna: has joined #ruby
[21:47:47] havenwood: seydar: Going to RubyConf but not going to make it to Japan.
[21:48:15] pipework: havenwood: I bet you'd have a kickass time in Nippon (I can be such a weabo)
[21:48:39] idefine: has joined #ruby
[21:48:50] Shoutsid: has joined #ruby
[21:49:32] dzejrou_: has joined #ruby
[21:50:19] Meeh: has joined #ruby
[21:50:31] ecksit: hey everyone, i'm trying to build a reusable http client for my gem and i've hit a snag. i'd like to be able to create a single instance of a "client" and then reference that from within other parts of my gem. see code sample at https://gist.github.com/anonymous/bd162bfd3f18feff2044. could someone guide me in the right direction to get the second part working?
[21:52:23] firstdayonthejob: has joined #ruby
[21:53:01] oetjenj: has joined #ruby
[21:54:49] craigs: has joined #ruby
[21:54:55] Scripore: has joined #ruby
[21:56:21] Shoutsid: has joined #ruby
[21:57:16] havenwood: ecksit: What does `client.user` return at the moment?
[21:57:37] havenwood: ecksit: What have you tried to get it working?
[21:57:54] ecksit: at the moment, just a string but i realise it needs to return an object to operate on
[21:58:03] stannard: has joined #ruby
[21:59:16] ecksit: i've tried putting it into modules and including them from the client but i think i'm having issues with inheritence and passing on the variables i need
[21:59:52] bruno-: has joined #ruby
[22:00:07] Azure: has joined #ruby
[22:00:21] Testo: has joined #ruby
[22:00:27] shevy: BraddPitt cool, I hope you'll upload it when it works
[22:01:34] BraddPitt: most certainly will
[22:02:34] stannard: has joined #ruby
[22:02:56] ecksit: havenwood, i've found an example of how i want it to look to the person using it https://github.com/zendesk/zendesk_api_client_rb#usage (`client.tickets.some_method`) but i don't need the modelling associated with it
[22:03:00] Meeh: has joined #ruby
[22:03:28] mary5030_: has joined #ruby
[22:03:47] Shoutsid: has joined #ruby
[22:04:30] dzejrou__: has joined #ruby
[22:04:37] Testo: can someone explain to me why this code out put `\n` after `without`?
[22:04:39] monq: has joined #ruby
[22:04:41] Testo: require 'yaml'??
[22:04:42] Testo: hasho = {:string => "Any changes you've made will be lost. Are you sure you want to continue without saving?"}??
[22:04:42] Testo: p hasho.to_yaml??
[22:04:46] Testo: "---\n:string: Any changes you've made will be lost. Are you sure you want to continue without\n saving?\n"
[22:05:41] ecksit: something in your editor Testo?
[22:06:03] Macaveli: has joined #ruby
[22:06:17] darix: Testo: because to_yaml wants to keep a certain width?
[22:06:27] darix: maybe proposed by the yaml standard
[22:06:31] shevy: Testo yeah you have some hidden newline
[22:06:46] bryanray: has joined #ruby
[22:06:47] ecksit: apparently not - i get the same results
[22:06:52] Ox0dea: has joined #ruby
[22:07:02] shevy: >> >> require 'yaml'; hasho = {:string => "Any changes you've made will be lost. Are you sure you want to continue without saving?"}; p hasho.to_yaml
[22:07:03] ruboto_: shevy # => /tmp/execpad-8222a2e27d81/source-8222a2e27d81:2: syntax error, unexpected >> ...check link for more (https://eval.in/452428)
[22:07:11] shevy: >> require 'yaml'; hasho = {:string => "Any changes you've made will be lost. Are you sure you want to continue without saving?"}; p hasho.to_yaml
[22:07:12] ruboto_: shevy # => "---\n:string: Any changes you've made will be lost. Are you sure you want to continue without\n sa ...check link for more (https://eval.in/452429)
[22:07:18] baweaver: has joined #ruby
[22:07:20] shevy: interesting
[22:07:23] shevy: I am using syck
[22:07:33] shevy: seems like a bug in psych then
[22:07:35] ecksit: use `p hasho.to_yaml({:line_width => -1})` instead
[22:07:44] `tim`: has joined #ruby
[22:08:06] ecksit: that removes the additional new lines i was seeing
[22:08:13] darix: see setting
[22:08:13] shevy: >> require 'yaml'; hasho = {:string => "Any changes you've made will be lost. Are you sure you want to continue without saving?"}; p hasho.to_yaml({:line_width => -1})
[22:08:15] ruboto_: shevy # => "---\n:string: Any changes you've made will be lost. Are you sure you want to continue without savin ...check link for more (https://eval.in/452430)
[22:08:17] Ox0dea: shevy: Why do you use Syck?
[22:08:29] darix: Ox0dea: probably he is still on 1.8 ;)
[22:08:31] nb_bez___: has joined #ruby
[22:08:32] shevy: Ox0dea I have invalid yaml files and psych refuses to work with these
[22:08:55] Ox0dea: shevy: Have you considered fixing the YAML files?
[22:09:02] shevy: Ox0dea yeah it is not possible
[22:09:16] Ox0dea: Not with that attitude.
[22:09:22] shevy: I told you how it is
[22:09:24] darix: shevy: what did Aaron say when you reported the issue?
[22:09:30] shevy: what issue?
[22:09:41] Ox0dea: The one causing your Stockholm syndrome.
[22:09:44] pathrocle: has joined #ruby
[22:10:03] shevy: The one causing your annoyance syndrome.
[22:10:08] mary5030: has joined #ruby
[22:10:24] Ox0dea: Calm down.
[22:10:36] shevy: Calm down.
[22:12:31] oetjenj: has joined #ruby
[22:12:56] Shoutsid: has joined #ruby
[22:13:01] podman: has joined #ruby
[22:13:11] orion: has joined #ruby
[22:13:32] orion: Hi. What's the return type of File.read in this line of code?: File.read(DATABASE).include?(code)
[22:13:58] Testo: has joined #ruby
[22:14:20] jessemcgilallen: has joined #ruby
[22:14:24] blackmesa: has joined #ruby
[22:14:27] ecksit: has joined #ruby
[22:14:43] djbkd: has joined #ruby
[22:14:44] EminenceHC: has joined #ruby
[22:14:47] wldcordeiro: has joined #ruby
[22:14:49] shevy: File.read() itself should return a String
[22:15:04] shevy: .include?() should return true or false
[22:15:19] djbkd: has joined #ruby
[22:15:34] craigs: has joined #ruby
[22:16:43] riotjones: has joined #ruby
[22:18:22] wldcordeiro: has joined #ruby
[22:19:09] Rollabunna: has joined #ruby
[22:22:35] Ox0dea: https://oeis.org/search?q=14972%2C
[22:22:39] fullofcaffeine: has joined #ruby
[22:23:07] Shoutsid: has joined #ruby
[22:23:14] dsjethzs_: has left #ruby: ("Leaving")
[22:24:17] dmolina: has joined #ruby
[22:25:38] northfurr: has joined #ruby
[22:25:50] shevy: <Ulti> "/usr/share/dict/words".IO.words.classify(*.lc.comb.sort.join).sort(-*.value)[0].say this is why I like Perl 6
[22:25:52] shevy: ^^^ wheeeeee
[22:25:55] tomchapin: has joined #ruby
[22:26:56] Maletor: has joined #ruby
[22:27:08] shevy: do we have something like .classify in ruby?
[22:27:23] darix: shevy: what does it do?
[22:27:47] shevy: darix haha ... I am not sure yet... I'll find out in a moment
[22:28:03] Ox0dea: It converts strings to PascalCase, I'd imagine.
[22:28:05] Shoutsid: has joined #ruby
[22:28:07] darix: the DNF over programming languages
[22:28:15] darix: s/over/of/
[22:28:17] htmldrum: has joined #ruby
[22:28:42] shevy: something like: input say ('hello', 1, 22/7, 42, 'world').classify: { .Str.chars }
[22:28:50] shevy: output # -> 1 => 1, 2 => 42, 5 => hello world, 8 => 3.142857
[22:28:58] shevy: somehow it grouped the strings or something
[22:29:06] baweaver: has joined #ruby
[22:29:15] shevy: but the weirdest thing was that perl 6 can look similar to ruby
[22:29:16] Ox0dea: Well, we have #group_by.
[22:29:29] YourKicks: has joined #ruby
[22:29:50] baweaver: I just finished warning someone about you Ox0dea
[22:29:57] shevy: they also have a class Mu http://doc.perl6.org/routine/Bool#class_Mu
[22:30:21] darix: http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2013-06/msg00277.html
[22:30:23] Ox0dea: For whom does my reputation now precede me?
[22:30:34] baweaver: She's new to Ruby, told her to join IRC and be wary of anything you say lest you try and convert her to the cult of nonalphanumericisms
[22:30:43] Ox0dea: Ah, of course.
[22:30:55] baweaver: also, fun problem for you
[22:31:04] baweaver: columnize space delimited text lines
[22:31:10] baweaver: left justified
[22:31:25] baweaver: made it work last night though ugly.
[22:31:32] bryanray: has joined #ruby
[22:31:36] Ox0dea: Erm... I know about the #sort and #max methods?
[22:31:45] darix: https://rubygems.org/gems/columnize ?
[22:31:46] Ox0dea: #transpose as well, I suppose.
[22:32:02] baweaver: darix: that's no fun though :D
[22:32:06] ellisTAA: has joined #ruby
[22:32:29] darix: baweaver: i had to package that :p
[22:32:35] darix: that's why i knew it exists
[22:33:15] baweaver: >> s="abc de fg\nawef feawfwef fefew\nawf efwaf fewfwewfe";c=s.lines.reduce([]){|a,l|l.split.map.with_index{|w,i|a[i]?(w.size>a[i]?w.size: a[i]): w.size}};s.lines.map{|l|l.split.map.with_index{|w,i|w.ljust(c[i]+1)}.join}.join("\n")
[22:33:16] ruboto_: baweaver # => "abc de fg \nawef feawfwef fefew \nawf efwaf fewfwewfe " (https://eval.in/452437)
[22:33:25] ssomanchi: has joined #ruby
[22:33:29] hakunin: has joined #ruby
[22:33:45] Azure: has joined #ruby
[22:34:06] oetjenj: has joined #ruby
[22:34:38] DoubleMalt: has joined #ruby
[22:34:41] baweaver: what it's doing is looping once and finding the max length of each word column
[22:34:54] baweaver: then looping again to ljust it by that + 1 for padding.
[22:35:05] baweaver: as I said, super hacky though.
[22:35:15] darix: couldnt you ljust and print at the same time?
[22:35:38] baweaver: yeah, this is just for console output
[22:35:43] baweaver: well, irc console
[22:35:54] moei: has joined #ruby
[22:36:08] darix: you could count while splitting and pushing into the array and then just ljust while printing :p
[22:36:20] craigs: has joined #ruby
[22:36:47] baweaver: the two loops will be faster.
[22:36:57] Shoutsid: has joined #ruby
[22:37:09] baweaver: thought about condensing it and found it'd end up a lot worse for it.
[22:38:27] baweaver: that, and this is more able to handle variable column lengths.
[22:39:17] Ox0dea: baweaver: https://eval.in/452438
[22:39:53] Ox0dea: So much "undoing", though. :<
[22:39:56] Ox0dea: Relevant: http://prog21.dadgum.com/121.html
[22:40:10] jgt: has joined #ruby
[22:40:47] baweaver: Ox0dea: look what I found again
[22:40:50] baweaver: >> _=$$/$$;__=_-_;@_=_+_;$_=@_+_;$__=@_+$_;$-_=$__*$_;@__=''<<$-_*($__+$_)+@_;$___=''<<$-_*$__-$__<<$-_*($__+@_)<<@__<<@__;@___=''<<$-_*$__-$_*$_<<$-_*($__+$_)-$_<<@__<<@__;(___=->____{$.+=_;____<<($.%$-_==__ ?$___+@___:$.%$_==__ ?$___:$.%$__==__ ?@___:$.);$.<($__*@_)**@_?___[____]:____})[[]]
[22:40:52] ruboto_: baweaver # => [1, 2, "Fizz", 4, "Buzz", "Fizz", 7, 8, "Fizz", "Buzz", 11, "Fizz", 13, 14, "FizzBuzz", 16, 17, "Fiz ...check link for more (https://eval.in/452439)
[22:40:58] Ox0dea: What the hell is that?!
[22:41:08] Ox0dea: What sort of demented monster even...?
[22:41:11] pauly_oc: has joined #ruby
[22:41:24] Ox0dea: baweaver: Would you believe me if I told you I signed it?
[22:43:01] ruby-lang045: has joined #ruby
[22:43:28] Shoutsid: has joined #ruby
[22:45:54] Ox0dea: I rather obviously signed this one: http://ideone.com/DReMaw
[22:46:01] Scripore: has joined #ruby
[22:46:43] ramfjord: has joined #ruby
[22:46:44] Ox0dea: I think I like Whitespace more than LOLCODE.
[22:46:55] baweaver: whitespace is beyond me.
[22:47:38] Ox0dea: It's secretly just (watered down) assembly programming.
[22:47:56] bryanray: has joined #ruby
[22:48:09] Shoutsid: has joined #ruby
[22:48:14] Ox0dea: You've got stack and heap manipulation, labels, jumps, calls and return.
[22:48:49] baweaver: I barely skim into C, so...
[22:49:18] Ox0dea: https://gist.github.com/0x0dea/0e581e84658dc339d253
[22:50:00] rdavila: has joined #ruby
[22:50:10] karapetyan: has joined #ruby
[22:50:33] Ox0dea: I've never been able to completely pin the appeal, but it's the "fun" of assembly without bothering about the implementation details.
[22:51:54] chopin: has joined #ruby
[22:52:26] nettoweb: has joined #ruby
[22:52:38] karapetyan: has joined #ruby
[22:53:50] oetjenj: has joined #ruby
[22:54:35] t0code: has joined #ruby
[22:55:00] fullofca_: has joined #ruby
[22:55:46] FernandoBasso: has joined #ruby
[22:56:46] d3sp0t_: has joined #ruby
[22:56:54] t0code: hey im having a noob problem. whats wrong with this code to where it wont call my other methods?
[22:56:56] t0code: https://gist.github.com/anonymous/8909ecabffb10b926611
[22:57:25] fullofcaffeine: has joined #ruby
[22:58:54] Ox0dea: t0code: Your problem is in another castle.
[22:59:18] patdohere: has joined #ruby
[22:59:44] baweaver: how do you _know_ it's not?
[23:00:04] baweaver: without seeing the other methods I couldn't tell.
[23:01:15] nateberkopec: has joined #ruby
[23:01:41] pocketprotector-: has joined #ruby
[23:01:43] t0code: ill post full code for context but bare with my style
[23:01:55] SCHAAP137: has joined #ruby
[23:03:33] t0code: https://gist.github.com/anonymous/05aef41ff6f6d86eaef3
[23:03:44] rdavila: has joined #ruby
[23:04:23] cornerma1: has joined #ruby
[23:04:53] choke: has joined #ruby
[23:07:22] shevy: t0code you need to improve your code little by little
[23:07:49] shevy: puts "#{game}", for instance, the "#{}" should be superfluous, you should be able to write just: puts game
[23:08:17] shevy: which method is not called by the way?
[23:08:26] Vile`: has joined #ruby
[23:08:54] shevy: hmm does this work t0code https://gist.github.com/anonymous/05aef41ff6f6d86eaef3#file-game-rb-L100 ?
[23:09:02] shevy: @new = new looks strange
[23:11:34] A124: has joined #ruby
[23:12:43] t0code: ^heh. noticed and changed
[23:13:13] t0code: i got everything working now. just keep forgetting to make sure im converting my objects to the correct format?
[23:13:15] oetjenj: has joined #ruby
[23:13:27] t0code: .to_i etc
[23:13:31] Shoutsid: has joined #ruby
[23:14:03] karapetyan: has joined #ruby
[23:14:57] tomchapin: has joined #ruby
[23:15:07] Rollabunna: has joined #ruby
[23:15:43] t0code: someone here yesterday recommended to me to try to finish a program with all methods and no classes to understand why we use classes. just got it lol
[23:17:21] Ox0dea: >> self.class # t0code
[23:17:22] shevy: once you have methods, it is easy to put them into a class
[23:17:23] ruboto_: Ox0dea # => Object (https://eval.in/452440)
[23:17:27] Ox0dea: It's all classes!
[23:17:37] shevy: t0code and then you can change $foo into @foo too
[23:17:45] craigs: has joined #ruby
[23:18:50] `tim`: has joined #ruby
[23:18:56] t0code: ya. seems to me, correct me if im wrong, its siginiciantly more efficient to reference a class to pass information around more easily?
[23:19:26] shevy: the problem with $foo is that it will be global
[23:19:41] shevy: so if someone else uses the same name then it can clash, this can be annoying if you wish to distribute your ruby code one day
[23:19:48] baweaver: t0code: not really
[23:19:51] Ox0dea: t0code: No, classes slow things down.
[23:19:56] Ox0dea: But pretend you didn't read that.
[23:19:57] baweaver: sounds like you have someone cargo culting
[23:19:58] Ox0dea: This is #ruby.
[23:20:13] t0code: cargo culting?
[23:20:31] baweaver: https://en.wikipedia.org/wiki/Cargo_cult_programming
[23:20:34] Ox0dea: Doing or believing somebody else told you to with no rational justification.
[23:20:38] Ox0dea: *something somebody
[23:20:40] mary5030: has joined #ruby
[23:20:42] baweaver: ritualization of code practices that serve no real purpose.
[23:21:08] shevy: t0code if the code works, create a new .rb file, with the very same code, and try to just make it into a class instead; the $ variable can easily become a @ variable instead, initialize it in "def initialize" for example
[23:21:09] baweaver: worst offenders: OO, Design Patterns
[23:21:18] t0code: certainly am that
[23:22:24] Shoutsid: has joined #ruby
[23:22:41] t0code: so whats the proper way to declare an object such as a game character with a variety of variables and method?
[23:22:51] workmad3: has joined #ruby
[23:22:52] Ox0dea: t0code: A class.
[23:23:02] baweaver: Also, use spaces instead of tabs
[23:23:06] t0code: ok. thats where my efficienty conclusions came from.
[23:23:10] baweaver: ruby indentation tends to be 2 space
[23:23:13] baweaver: much easier to read.
[23:23:19] Ox0dea: t0code: "Efficiency" is a loaded word.
[23:23:20] shevy: it will be more efficient because it'll be easier to reuse as a class
[23:23:29] Ox0dea: You want "productivity" in this case.
[23:23:40] Ox0dea: baweaver: LLVM'
[23:23:51] Ox0dea: That wasn't me.
[23:23:59] Ox0dea: LLVM C is also two spaces, which caught me off guard.
[23:24:13] Ox0dea: *C(++), of course.
[23:24:58] baweaver: t0code: http://www.amazon.com/Practical-Object-Oriented-Design-Ruby-Addison-Wesley/dp/0321721330/
[23:25:03] baweaver: buy that, read it.
[23:25:50] Ox0dea: t0code: https://github.com/michaelchadwick/gemwarrior
[23:25:52] Ox0dea: Clone that, read it.
[23:26:25] GriffinHeart: has joined #ruby
[23:26:38] baweaver: read all the things
[23:30:11] swgillespie: has joined #ruby
[23:31:20] shevy: write all the things! http://i.imgur.com/Wyzn1.jpg
[23:32:03] shevy: havenwood here is one variant for the -> stabby lambda http://img04.deviantart.net/bcb0/i/2011/203/a/8/stab_all_the_things_by_rayfe-d41c7a8.png
[23:33:40] oetjenj: has joined #ruby
[23:34:02] t0code: installing
[23:36:26] baweaver: has joined #ruby
[23:37:29] Shoutsid: has joined #ruby
[23:38:29] t0code: whats the dev kit have in it?
[23:38:38] craigs: has joined #ruby
[23:39:10] nofxx: has joined #ruby
[23:40:55] failshell: has joined #ruby
[23:41:56] etrae: has joined #ruby
[23:42:13] Musashi007: has joined #ruby
[23:42:29] quazimodo: has joined #ruby
[23:42:33] Shoutsid: has joined #ruby
[23:42:55] arthurix_: has joined #ruby
[23:43:37] idefine: has joined #ruby
[23:44:42] Bellthoven: has joined #ruby
[23:44:43] atmosx: hello shevy
[23:44:50] atmosx: hello everyone
[23:45:07] shevy: yo atmosx
[23:45:11] shevy: did you finally get your degree
[23:45:13] atmosx: shevy: how are you?
[23:45:25] atmosx: shevy: no, I have to start studying for the state exams, 8/12
[23:45:34] atmosx: shevy: it's the last exam, if I pass this, it's over no more exams
[23:45:39] shevy: quite ok, I am about 20% done porting my last project from the ruby 1.8.x era
[23:45:42] atmosx: shevy: degre ein June 16
[23:45:55] shevy: and after I have finished I shall never never never ever again do any rewrite. ever
[23:46:00] atmosx: I'm rewriting argosnap and writing my first rails project too
[23:46:11] shevy: atmosx if you pass the state exam you'll get the degree?
[23:46:19] atmosx: shevy: I could yes.
[23:46:28] shevy: what do you mean you "could" :D
[23:46:41] HAL2328: has joined #ruby
[23:46:43] atmosx: shevy: my thesis is ready, the states exams are ok. I will wait another 6 months but it's just ... waiting (if I pass) nothing more
[23:47:17] shevy: hehe... those waiting times are so strange
[23:47:55] atmosx: shevy: after thesis submition, I have to take the state exams. Once I pass the state exams, I need to 'present' my thesis and THEN I get the degree.
[23:48:12] atmosx: shevy: it's a scheme I devised in order to make it 5 years
[23:48:32] atmosx: shevy: otherwise would be 3.5 years which is not acceptable for MDPharm
[23:48:43] atmosx: not in Greece
[23:48:45] atmosx: in the UK it's fine
[23:48:55] shevy: so strange
[23:48:57] atmosx: nor Italy, Germany, Austria (IIRC), etc.
[23:49:10] atmosx: shevy: the strange is that I managed to finnish earlier bascially...
[23:49:32] atmosx: They let me take more classes per year
[23:50:10] atmosx: I did medicinal chemistry and analytical chemistry the same sem. You normaly don't do that. You take first analytical and then medicinal
[23:50:20] awrfas2: has joined #ruby
[23:52:30] colstrom_: has joined #ruby
[23:52:39] oetjenj: has joined #ruby
[23:52:55] JammyHammy: has joined #ruby
[23:56:23] EminenceHC: has joined #ruby
[23:56:36] t0code: when is it appropriate to use a module?
[23:57:01] nxa: has joined #ruby
[23:57:09] nxa: How does the coerce method work in ruby/
[23:57:38] Ox0dea: t0code: Are you familiar with the notion of namespaces?
[23:57:56] t0code: no, looking it up
[23:58:54] t0code: an idea of grouping related files/activities
[23:59:10] Ox0dea: Sort of, but not quite.
[23:59:16] Ox0dea: Really, it's right there on the tin; it's a space for names.
[23:59:43] Ox0dea: It's perfectly reasonable to exepct two different things to want, say, a Thing class, but they can't both have it, so they'd stick it in a module to disambiguate.