« Back to channel list

#ruby - 21 June 2015

« Back 1 day Forward 1 day »
[00:00:01] apeiros: sphex: nope
[00:00:48] ekem: has joined #ruby
[00:01:13] jmhmccr: has joined #ruby
[00:01:13] skakri: has joined #ruby
[00:01:19] im0b: has joined #ruby
[00:01:51] pmarreck: has joined #ruby
[00:02:03] yeltzooo: has joined #ruby
[00:02:17] cek: has joined #ruby
[00:02:23] jmcc: has joined #ruby
[00:02:25] SegFaultAX: has joined #ruby
[00:03:37] knowtheory: has joined #ruby
[00:03:39] higuys: has joined #ruby
[00:04:00] jpinnix______: has joined #ruby
[00:04:08] theery: has joined #ruby
[00:04:16] havenwood: has joined #ruby
[00:04:37] frankS2: has joined #ruby
[00:04:48] hippopot: has joined #ruby
[00:04:51] sphex: elektronaut: 1.8, was that before "real" unicode support?
[00:04:51] dmoe: has joined #ruby
[00:05:11] Thr3d: has joined #ruby
[00:05:15] andrewstewart: has joined #ruby
[00:05:19] CaptainCibai: has joined #ruby
[00:05:22] rikai: has joined #ruby
[00:05:32] elektronaut: sphex: sort of, yeah
[00:05:33] LiquidInsect: has joined #ruby
[00:05:43] _ixti_: has joined #ruby
[00:05:52] culturelabs: has joined #ruby
[00:05:52] brandon: has joined #ruby
[00:05:53] mello: has joined #ruby
[00:05:53] amitchellbullard: has joined #ruby
[00:05:54] ckrailo: has joined #ruby
[00:05:56] rflot: has joined #ruby
[00:06:29] sphex: I'm starting with 2.1 and won't ever have to use anything older. looks like my life will have been free of any hardship.
[00:06:32] havenwood: sphex: So an IO operation is failing?
[00:06:36] cbednarski: has joined #ruby
[00:06:36] HashNuke: has joined #ruby
[00:07:01] sphex: havenwood: no, syntax error in a custom parser
[00:07:08] alxndr: has joined #ruby
[00:07:23] bttf: has joined #ruby
[00:07:26] havenwood: i totally misread the question
[00:07:28] harleypig: has joined #ruby
[00:07:30] firevolt: has joined #ruby
[00:07:48] charles81: has joined #ruby
[00:07:48] adambeynon: has joined #ruby
[00:07:48] pusewicz: has joined #ruby
[00:07:48] cschneid: has joined #ruby
[00:07:48] atmosx_: has joined #ruby
[00:07:48] wookiehangover: has joined #ruby
[00:07:49] yardenbar: has joined #ruby
[00:07:49] c0ncealed: has joined #ruby
[00:07:49] GarethAdams: has joined #ruby
[00:07:49] ratazzi: has joined #ruby
[00:07:49] whoojemaflip: has joined #ruby
[00:07:49] alakra: has joined #ruby
[00:07:49] CHVNX: has joined #ruby
[00:07:49] v0n: has joined #ruby
[00:07:49] danoo_: has joined #ruby
[00:07:49] cgrieger^away: has joined #ruby
[00:08:05] Musashi007: has joined #ruby
[00:08:33] joaomdmoura: has joined #ruby
[00:08:35] sphex: now.. I gotta make a new derived exception class... and.. it gotta pretty-print right and show its error message right. hugh. I don't know how to do anything yet. :/
[00:08:38] RegulationD: has joined #ruby
[00:08:38] cardoni: has joined #ruby
[00:09:03] manveru: has joined #ruby
[00:09:28] rfv: has joined #ruby
[00:09:47] apeiros: sphex: just remember not to inherit from Exception directly
[00:09:50] elektronaut: sphex: good.. encoding is the only thing that makes me feel i know less the more i learn
[00:10:00] NightMonkey: has joined #ruby
[00:10:01] bjeanes: has joined #ruby
[00:10:01] apeiros: at max, inherit from StandardError
[00:10:14] sphex: dammit I can't think with all this netsplitting
[00:10:22] lala: has joined #ruby
[00:10:47] chrisseaton: has joined #ruby
[00:10:51] sphex: apeiros: oh ok
[00:11:00] bcavileer: has joined #ruby
[00:11:19] havenwood: sphex: Check the right side for a rough idea of the Error landscape: https://www.gliffy.com/go/publish/5152080
[00:11:22] t-richards: has joined #ruby
[00:11:22] zrl: has joined #ruby
[00:11:44] bove: has joined #ruby
[00:12:03] droidburgundy: has joined #ruby
[00:12:04] sphex: yeah I read something about not catching Exception directly too. I remember stabbing threats I think...
[00:12:41] sphex: havenwood: oh neat. thanks!
[00:12:53] havenwood: sphex: zenspider has threatened stabbing on that account I believe ;)
[00:13:25] havenwood: but it will be like with Caesar, many daggers
[00:13:55] sphex: it works. very mnemonic.
[00:13:57] [diecast]: has joined #ruby
[00:14:46] t-richards: has joined #ruby
[00:16:22] deimos: has joined #ruby
[00:17:21] maZtah: has joined #ruby
[00:17:32] hellschreiber_: has joined #ruby
[00:22:23] felixjet__: has joined #ruby
[00:23:06] Zamerick: has joined #ruby
[00:24:09] kenndel_: has joined #ruby
[00:24:28] chouhoulis: has joined #ruby
[00:24:45] gr33n7007h: has joined #ruby
[00:24:48] flughafen_: has joined #ruby
[00:25:18] sross07: has joined #ruby
[00:26:01] Channel6: has joined #ruby
[00:26:03] ex0ns: has joined #ruby
[00:27:08] joevandyk: has joined #ruby
[00:27:14] Scientz: has joined #ruby
[00:27:18] artmann_: has joined #ruby
[00:27:21] neersighted_: has joined #ruby
[00:27:29] benatkin_: has joined #ruby
[00:27:33] Esya: has joined #ruby
[00:28:02] firevolt_: has joined #ruby
[00:28:16] jmhmccr_: has joined #ruby
[00:28:46] coderkevin_: has joined #ruby
[00:28:49] FastJack: has joined #ruby
[00:28:55] renderful: has joined #ruby
[00:29:25] harleypig_: has joined #ruby
[00:29:31] robustus|Off: has joined #ruby
[00:29:31] lordkryss_: has joined #ruby
[00:29:33] Blue_Ice_: has joined #ruby
[00:29:33] bkutil_: has joined #ruby
[00:29:46] hoey_: has joined #ruby
[00:29:48] verto: has joined #ruby
[00:29:50] cjk101010_: has joined #ruby
[00:29:56] mjc__: has joined #ruby
[00:30:01] t-richards_: has joined #ruby
[00:30:07] HashNuke_: has joined #ruby
[00:30:09] lala_: has joined #ruby
[00:30:13] bjeanes_: has joined #ruby
[00:30:15] pizzaops_: has joined #ruby
[00:30:15] Adran-: has joined #ruby
[00:30:18] bhaak: has joined #ruby
[00:30:25] bkxd: has joined #ruby
[00:30:30] rfv_: has joined #ruby
[00:30:31] bcavileer_: has joined #ruby
[00:30:31] manveru_: has joined #ruby
[00:30:31] djbender_: has joined #ruby
[00:30:36] deimos_: has joined #ruby
[00:30:41] zrl_: has joined #ruby
[00:30:45] SpleezeDos: has joined #ruby
[00:30:47] NeverDie_: has joined #ruby
[00:30:54] bruno-: has joined #ruby
[00:31:08] jsaak: has joined #ruby
[00:31:44] [diecast]_: has joined #ruby
[00:31:44] okdas_: has joined #ruby
[00:31:45] rflot_: has joined #ruby
[00:31:47] krainboltgreene_: has joined #ruby
[00:31:48] andrewstewart_: has joined #ruby
[00:31:57] jpinnix_______: has joined #ruby
[00:32:23] C0deMaver1ck_: has joined #ruby
[00:32:26] sideshowcoder_: has joined #ruby
[00:32:26] jmcc_: has joined #ruby
[00:32:30] joaomdmoura_: has joined #ruby
[00:32:34] ryotarai_: has joined #ruby
[00:32:36] hellschreiber__: has joined #ruby
[00:32:40] brb3_: has joined #ruby
[00:32:46] knowtheory_: has joined #ruby
[00:32:48] M-Technic: has joined #ruby
[00:32:49] baweaver_: has joined #ruby
[00:33:04] Derasi: has joined #ruby
[00:33:13] pmarreck_: has joined #ruby
[00:33:18] Sypheren_: has joined #ruby
[00:33:21] bove_: has joined #ruby
[00:33:27] dmoe_: has joined #ruby
[00:33:39] cardoni_: has joined #ruby
[00:33:44] chrisseaton_: has joined #ruby
[00:33:47] DroidBur_: has joined #ruby
[00:33:58] nikkyjr: has joined #ruby
[00:34:01] NightMonkey_: has joined #ruby
[00:34:21] cek_: has joined #ruby
[00:34:32] vasilakisfil_: has joined #ruby
[00:34:32] culturelabs_: has joined #ruby
[00:34:37] t4nk266: has joined #ruby
[00:35:08] mrsolow: has joined #ruby
[00:35:15] im0b_: has joined #ruby
[00:35:30] t4nk266: is there a way I can retrieve an objects' superclass instance? for example, https://gist.github.com/anonymous/0e5343809b164983d939
[00:36:13] ggherdov_: has joined #ruby
[00:36:18] kq_away_: has joined #ruby
[00:36:22] frankS2_: has joined #ruby
[00:36:29] stnly: has joined #ruby
[00:37:14] Bish_: has joined #ruby
[00:37:18] peterhu: has joined #ruby
[00:37:20] hasB4K: has joined #ruby
[00:37:20] hasB4K: has joined #ruby
[00:37:23] stonith: has joined #ruby
[00:37:23] stonith: has joined #ruby
[00:37:23] Mohan: has joined #ruby
[00:37:26] aredridel: has joined #ruby
[00:37:29] Kilo`byte: has joined #ruby
[00:37:34] edwardly: has joined #ruby
[00:37:35] edwardly: has joined #ruby
[00:37:50] elektronaut: t4nk266: c.class.superclass
[00:37:59] mellett68: has joined #ruby
[00:38:23] prosodyContext_: has joined #ruby
[00:38:54] Rubie: has joined #ruby
[00:41:08] TheMoonMaster: has joined #ruby
[00:41:24] Axilla: has joined #ruby
[00:41:29] bafbomb_1: has joined #ruby
[00:41:52] blackmes1: has joined #ruby
[00:41:58] hoelzro: has joined #ruby
[00:41:58] chris2: has joined #ruby
[00:41:58] Agoldfish: has joined #ruby
[00:41:58] cj: has joined #ruby
[00:41:58] TvL: has joined #ruby
[00:41:59] eggoez: has joined #ruby
[00:41:59] Zimsky_: has joined #ruby
[00:41:59] shevy: has joined #ruby
[00:41:59] bttf: has joined #ruby
[00:41:59] SegFaultAX: has joined #ruby
[00:41:59] Diabolik: has joined #ruby
[00:41:59] dbussink: has joined #ruby
[00:41:59] ckrailo: has joined #ruby
[00:41:59] Klumben: has joined #ruby
[00:41:59] cbednarski: has joined #ruby
[00:41:59] twistedpixels: has joined #ruby
[00:41:59] mjmac: has joined #ruby
[00:41:59] Cybergeek: has joined #ruby
[00:41:59] alxndr: has joined #ruby
[00:41:59] sorah: has joined #ruby
[00:41:59] rmoriz: has joined #ruby
[00:41:59] amitchellbullard: has joined #ruby
[00:41:59] jeregrine: has joined #ruby
[00:41:59] opalraava: has joined #ruby
[00:41:59] leslie: has joined #ruby
[00:41:59] snapcase: has joined #ruby
[00:41:59] zly: has joined #ruby
[00:41:59] shtirlic: has joined #ruby
[00:41:59] joast: has joined #ruby
[00:41:59] dgutierrez1287: has joined #ruby
[00:41:59] uptownhr: has joined #ruby
[00:41:59] lhz: has joined #ruby
[00:41:59] olistik_: has joined #ruby
[00:42:01] Hien: has joined #ruby
[00:42:02] jeregrine: has joined #ruby
[00:42:02] amitchellbullard: has joined #ruby
[00:42:04] alxndr: has joined #ruby
[00:42:05] cbednarski: has joined #ruby
[00:42:06] bttf: has joined #ruby
[00:42:06] ckrailo: has joined #ruby
[00:42:13] soulcake: has joined #ruby
[00:42:23] maZtah: has joined #ruby
[00:42:28] tfittsy: has joined #ruby
[00:42:43] leslie: has joined #ruby
[00:42:43] twistedpixels: has joined #ruby
[00:42:46] Dreamer3_: has joined #ruby
[00:42:48] soulcake: has joined #ruby
[00:43:05] Klumben: has joined #ruby
[00:43:07] Miron: has joined #ruby
[00:43:26] uxp_: has joined #ruby
[00:44:16] avalon_: has joined #ruby
[00:44:23] shaman42_: has joined #ruby
[00:44:25] hedgecor1: has joined #ruby
[00:44:28] badeball_: has joined #ruby
[00:44:33] Killerkeksdose_: has joined #ruby
[00:44:36] susmus_: has joined #ruby
[00:44:37] ljarvis_: has joined #ruby
[00:44:38] rtl: has joined #ruby
[00:44:38] ada2358: has joined #ruby
[00:44:42] Janusz1_: has joined #ruby
[00:44:42] destruct1re: has joined #ruby
[00:44:47] patteh_: has joined #ruby
[00:44:48] rdema: has joined #ruby
[00:44:50] _kfpratt: has joined #ruby
[00:44:52] droidburgundy: has joined #ruby
[00:44:55] bnagy_: has joined #ruby
[00:44:58] speaking1ode: has joined #ruby
[00:45:00] givello_: has joined #ruby
[00:45:16] atom3: has joined #ruby
[00:45:18] `scootaloo: has joined #ruby
[00:45:18] adamski2600: has joined #ruby
[00:45:24] unreal_: has joined #ruby
[00:46:00] nwhirschfeld_: has joined #ruby
[00:47:00] brb3: has joined #ruby
[00:47:11] workmad3: has joined #ruby
[00:47:17] xnr_: has joined #ruby
[00:47:33] theRoUS`: has joined #ruby
[00:48:21] Radar_: has joined #ruby
[00:48:23] derekv2: has joined #ruby
[00:48:29] skarn: has joined #ruby
[00:48:39] perryh: has joined #ruby
[00:48:44] perryh: has joined #ruby
[00:48:44] pabloh: has joined #ruby
[00:48:58] pontiki: has joined #ruby
[00:49:22] Casty: has joined #ruby
[00:49:35] terrellt: has joined #ruby
[00:49:45] t4nk266: elektronaut, it seems that gives me the Class type of the superclass which is close - i'm trying to get an actual instance of the superclass
[00:49:56] t4nk266: not sure if it's possible though
[00:50:13] kaspergrubbe: has joined #ruby
[00:50:28] t4nk266: i guess it's analogous to upcasting in C++
[00:51:02] charliesome: has joined #ruby
[00:51:19] _main_: has joined #ruby
[00:51:35] atom3_: has joined #ruby
[00:52:29] voxxit_: has joined #ruby
[00:52:30] elektronaut: t4nk266: yeah, i doubt that is possible.
[00:53:14] cescalante_: has joined #ruby
[00:53:31] bakingbread: has joined #ruby
[00:53:39] pabloh: Hi can some suggest a regexp (or some other way) to tell a windows path from a URI?
[00:54:24] wjimenez5271_: has joined #ruby
[00:54:33] riking_: has joined #ruby
[00:54:45] shawnacscott: has joined #ruby
[00:55:03] yeticry_: has joined #ruby
[00:55:17] Riking: has joined #ruby
[00:55:22] Gadgetoid_: has joined #ruby
[00:55:38] kadoppe: has joined #ruby
[00:55:53] Doc_IX: has joined #ruby
[00:55:58] Me1k0r: has joined #ruby
[00:56:03] martinbmadsen: has joined #ruby
[00:56:33] woodruffw: has joined #ruby
[00:57:10] Cork: has joined #ruby
[00:57:12] sparr: has joined #ruby
[00:57:17] Platini: has joined #ruby
[00:57:18] vondruch: has joined #ruby
[00:57:31] Cust0sLim3n: has joined #ruby
[01:00:43] elektronaut: t4nk266: https://gist.github.com/elektronaut/bc425f3cc86ba1bf028b
[01:01:17] t4nk266: elektronaut, wow, thanks!
[01:02:12] elektronaut: i haven't actually tested that.. and i would probably be more explicit about it rather than relying on metaprogramming
[01:02:44] elektronaut: but that's basically how rails transfers instance variables from controllers to the views
[01:03:35] atom3: has joined #ruby
[01:04:06] elektronaut: also, won't work if the parent class initializer requires arguments
[01:04:25] Axilla: has joined #ruby
[01:05:13] t4nk266: elekronaut, got it. but it's somewhere to start, ty
[01:08:51] Ropeney: has joined #ruby
[01:09:08] zenguy_pc: has joined #ruby
[01:09:45] vasilakisfil_: has joined #ruby
[01:09:54] ndrei: has joined #ruby
[01:10:45] fgo: has joined #ruby
[01:12:25] zets: has joined #ruby
[01:13:28] episage: has joined #ruby
[01:13:33] mt_: has joined #ruby
[01:13:56] episage: how to use ruby's open to connect via proxy?
[01:14:03] episage: real_ip = open(checker_url, :proxy => ).read.strip
[01:16:21] zenguy_pc: has joined #ruby
[01:18:33] episage: found it @ http://ruby-doc.org/stdlib-2.0.0/libdoc/open-uri/rdoc/OpenURI/OpenRead.html
[01:18:50] nofxxx: has joined #ruby
[01:19:15] pontiki: hah, i just found it, too :)
[01:19:37] pontiki: ((i usually give up and just go with Net::HTTP...))
[01:21:00] rafaelsales: has joined #ruby
[01:22:13] Axilla: has joined #ruby
[01:23:42] pyon: has joined #ruby
[01:24:25] Pupeno_: has joined #ruby
[01:26:02] dopie: has joined #ruby
[01:28:31] premera: has joined #ruby
[01:29:01] ledestin: has joined #ruby
[01:29:33] fabrice31: has joined #ruby
[01:29:42] gr33n7007h: episage: res = open("https://www.google.com", :proxy => URI("http://103.29.251.231:8080"), :ssl_verify_mode => OpenSSL::SSL::VERIFY_NONE) if using https
[01:30:20] episage: gr33n7007h: does it have to be wrapped in URI if I have ip:port pair w/o http(s) ?
[01:30:50] gr33n7007h: shouldn't do
[01:31:03] gr33n7007h: i just do it out of habit
[01:32:19] episage: gr33n7007h: works, thanks
[01:32:49] iamninja: has joined #ruby
[01:33:03] episage: but actually i need to put a valid schema
[01:34:19] gr33n7007h: ACTION can't wait for the raspberry pi 3
[01:35:29] zacts: there is a 3rd rpi?
[01:35:37] zacts: didn't rpi2 just get released?
[01:35:42] gr33n7007h: zacts: no yet
[01:35:56] chipotle: has joined #ruby
[01:36:37] pontiki: there's a new version of model B
[01:38:46] seanstickle: has joined #ruby
[01:39:39] zenguy_pc: has joined #ruby
[01:40:01] havenwood: Pi 2 Model B
[01:40:29] swgillespie: has joined #ruby
[01:41:30] Nilium: ACTION is currently setting up FreeBSD on his Pi 2.
[01:41:36] havenwood: Nilium: \o/
[01:41:40] Nilium: portsnap fetch has been running for like 3 hours
[01:41:51] Nilium: I need to get a new SD card I think, 'cause that's totally an IO bound thing
[01:42:40] nietzschette__: has joined #ruby
[01:44:44] StephenOTT: has joined #ruby
[01:45:12] StephenOTT: What is a good lib to use to run your rack server and mongo db through a single command?
[01:46:23] bruno-: has joined #ruby
[01:48:33] seanstickle: has joined #ruby
[01:49:11] yfeldblum: has joined #ruby
[01:49:22] zenguy_pc: has joined #ruby
[01:51:39] _blizzy_: hello. I am using Ruby, and am trying to append to an array. however, I'm getting "undefined method << for nil class." https://gist.github.com/NotBlizzard/2d26618fe6c34b1ffd50
[01:51:48] zenguy_pc: has joined #ruby
[01:51:55] _blizzy_: ignore the messy code. it's on line 29
[01:52:29] nietzschette: you should put your declairation in an initialization function
[01:52:48] keen____________: has joined #ruby
[01:52:49] nietzschette: @moves = [] from line 6 to line 16
[01:53:10] nietzschette: class BATTLE!?
[01:53:47] _blizzy_: thanks, nietzschette
[01:55:23] seanstickle: Better a class Battle
[01:55:23] mcclurmc: has joined #ruby
[01:55:26] seanstickle: Than a class war
[01:55:41] _blizzy_: it's a Pokemon bot.
[01:55:58] seanstickle: Use metaprogramming
[01:56:01] seanstickle: It's super-effective
[01:57:14] nietzschette: I made one for sdl with sprites ripped from ninja warrior
[01:57:33] nietzschette: it was also super-effective
[01:58:12] swgillespie: has joined #ruby
[01:59:35] nietzschette: does anyone else here use ruby sdl?
[02:01:28] mary5030: has joined #ruby
[02:01:30] nietzschette: I've run into issues when I upgrade, and I don't like being stuck in ruby 1.9 and i'd like to get with this century
[02:01:57] seanstickle: I don't. I have a game in mind, but I feel like it'll probably be easier to make it in JavaScript.
[02:02:32] nietzschette: yeah. I used ruby to learn GLSL and SDL
[02:02:40] nietzschette: and I'm starting to migrate code to C
[02:02:53] jtdoncas: has joined #ruby
[02:04:38] nietzschette: but I like to use it for some visualization of geometry problems and other bs. But I can't seem to get the latest versions to work
[02:05:38] nietzschette: it's like, the classes are all loaded but none of their methods. I don't know if this is an error in my build or what
[02:14:08] Al3ks_: has joined #ruby
[02:15:36] baweaver: has joined #ruby
[02:15:37] htmldrum: has joined #ruby
[02:18:09] uptownhr: has joined #ruby
[02:19:33] rafaelsales: has joined #ruby
[02:19:54] startupality: has joined #ruby
[02:23:37] nickjj: has joined #ruby
[02:23:50] seanstickle: has left #ruby: ()
[02:26:28] j4cknewt: has joined #ruby
[02:27:11] jfarmer: has joined #ruby
[02:27:11] fgo: has joined #ruby
[02:27:38] jtdoncas: has joined #ruby
[02:29:19] ChanServ: -b nambiz!*@*
[02:29:22] bentanweihao: has joined #ruby
[02:34:21] Cust0sLim3n: has joined #ruby
[02:35:43] hahuang65: has joined #ruby
[02:35:53] workmad3: has joined #ruby
[02:43:40] jglover: has joined #ruby
[02:44:25] jglover: has anybody here been able to build and use either Thin or Puma, from a local gem
[02:44:29] jglover: maybe that makes no sense..
[02:45:13] jglover: gem install does something to build the parser, in both of those, that doesn't seem to get done if i clone out either repo and include it as a local gem in a project
[02:46:00] toretore: because then it's not a gem
[02:46:18] jglover: toretore: hm how so?
[02:46:28] pontiki: jglover: do you modify the source? otherwise i'm unclear about why you're including it in your repo
[02:46:39] jglover: gem "puma", :path => "/Users/jglover/Projects/puma-test/puma"
[02:47:01] jglover: pontiki: just interested in how webservers work, so I want to put logger statements in the various files in order to check out the flow of control
[02:47:44] pontiki: sure, that makes sense. you might need other things installed to make that work, depending on the original gem. i have no idea for puma
[02:48:01] pontiki: i can't actually answer your quesiton, tho :/
[02:48:32] jglover: ill keep investigating then. having exactly the same issue in both gems, and I suspect if I tried any other webserver, it would be the same problem
[02:48:47] jglover: they both use the modified version of the mongrel http/1.1 parser, built with ragel
[02:48:58] jglover: and i need to do SOMETHING to get that sucker to work
[02:49:21] pontiki: it might have to do with how it's started, in either case
[02:49:32] toretore: did you try building and then installing the gem after you modified the source?
[02:49:37] dopie: has joined #ruby
[02:49:50] jglover: toretore: haven't even modified the source yet, just trying to get "hello world" to work
[02:49:51] toretore: gem build puma.gemspec; gem install puma-whatever.gem
[02:49:59] jglover: ill give it a shot
[02:50:19] toretore: remember to uninstall any puma versions you have installed already
[02:51:59] bruno-: has joined #ruby
[02:52:26] noethics: has joined #ruby
[02:52:37] dlousy: has joined #ruby
[02:53:07] jglover: man, i feel like its something with the file paths
[02:53:25] jglover: require': cannot load such file -- puma/puma_http11
[02:54:02] toretore: what happens when you build and install it>
[02:54:14] jglover: it appears to be fine
[02:54:27] toretore: and how do you require it?
[02:54:35] toretore: don't use a Gemfile
[02:54:36] icebourg: has joined #ruby
[02:54:48] jglover: Using puma 2.11.3 from source at /Users/jglover/Projects/puma-test/puma
[02:54:52] jglover: ah i am using the gemfile
[02:54:53] toretore: ruby -rpuma -e'puts "hello"'
[02:55:43] jglover: doesn't like that one
[02:56:11] mcclurmc: has joined #ruby
[03:00:03] Sypheren_: Anyone know about any open source projects handling evolutionary neuro networks?
[03:00:43] scx_: has joined #ruby
[03:00:50] Oog: has joined #ruby
[03:02:18] T3: has joined #ruby
[03:03:56] dross: has joined #ruby
[03:04:02] nietzschette: I've been dabbling
[03:04:53] drewvanstone: has joined #ruby
[03:06:28] nietzschette: I'd love to share but my ruby is broken
[03:07:29] pabloh: does anyone knows how to recognize if a filesystem path on a string is a valid windows path?
[03:07:56] nietzschette: File.directory?(directory)
[03:08:08] darkf: has joined #ruby
[03:08:48] cappsio: has joined #ruby
[03:09:34] pabloh: nietzschette, and for paths including file names?
[03:09:45] nietzschette_: has joined #ruby
[03:10:33] bnagy: bear in mind that what's valid for ruby might not be valid for native win32 APIs or external apps
[03:10:51] bnagy: ruby itself uses / as separator even on Windows
[03:11:00] braincrash: has joined #ruby
[03:11:21] Casty: has joined #ruby
[03:13:13] nietzschette__: has joined #ruby
[03:16:54] pabloh: bnagy, but can you not use regular windows for File.read(), for instance?
[03:18:48] aridere: has joined #ruby
[03:19:26] zenguy_pc: has joined #ruby
[03:19:39] pablolm: has joined #ruby
[03:20:23] dross: has joined #ruby
[03:20:39] fabrice31: has joined #ruby
[03:22:19] noethics: Sypheren_, encog?
[03:24:14] pontiki: File.read doens't work on windows??
[03:24:54] Tempesta: has joined #ruby
[03:25:38] letmein1723: has joined #ruby
[03:26:53] dross: has joined #ruby
[03:30:06] yoongkang: has joined #ruby
[03:30:23] iamninja: has joined #ruby
[03:34:03] jlast: has joined #ruby
[03:36:26] mary5030: has joined #ruby
[03:37:52] dross: has joined #ruby
[03:39:06] havenn: has joined #ruby
[03:39:57] znz_jp: has joined #ruby
[03:41:14] seansith: has joined #ruby
[03:41:26] MatthewsFace: has joined #ruby
[03:41:29] gix: has joined #ruby
[03:42:09] arescorpio: has joined #ruby
[03:44:03] psye: has joined #ruby
[03:44:06] pontiki: has joined #ruby
[03:45:07] chipotle: has joined #ruby
[03:47:26] Exuma: has joined #ruby
[03:49:57] shevy: has joined #ruby
[03:50:53] dross: has joined #ruby
[03:51:04] Lucky_: has joined #ruby
[03:55:05] bronson: has joined #ruby
[03:55:33] Santana: has joined #ruby
[03:55:37] robertozimek: has joined #ruby
[03:55:51] michael_mbp: has joined #ruby
[03:56:48] mcclurmc: has joined #ruby
[03:57:58] Spami: has joined #ruby
[03:58:25] Spami: has joined #ruby
[03:58:31] fgo: has joined #ruby
[04:06:32] Nilium: Hm, using CURRENT instead of RELEASE might've been a not entirely great decision just because it seems to have limited my use pkg, or I've just set something up wrong
[04:06:36] jlast: has joined #ruby
[04:07:27] Ropeney_: has joined #ruby
[04:10:23] dross: has joined #ruby
[04:13:04] schy: has joined #ruby
[04:15:12] schy: wrong place
[04:15:53] dross: has joined #ruby
[04:17:19] Cust0sLim3n: has joined #ruby
[04:17:21] shevy: #ruby is never the wrong place!
[04:17:35] schy: lol it was the wrong place just for a moment
[04:17:41] schy: I was going to send a screenshot
[04:18:03] schy: I <3 #ruby even tho I just lurk it.
[04:19:12] shevy: does anyone of you use ruby from the latest sources? I mean git-sources or svn-sources, whatever version control system is in use
[04:19:36] shevy: I have a weird problem with the latest ruby-2.2.2 tarball suddenly; I installed some other distribution
[04:19:38] shevy: linking miniruby
[04:19:38] shevy: gcc: error: miniprelude.o: No such file or directory
[04:19:55] avahey: has joined #ruby
[04:20:59] shevy: schy lurking and idling makes us stronger!
[04:21:16] schy: lol I want to have strong bones!
[04:21:18] Plimsol: has joined #ruby
[04:21:40] schy: I guess milk would be better than IRC :\
[04:21:59] al2o3-cr: has joined #ruby
[04:22:03] schy: but that method isn't found in the fridge class....
[04:22:10] schy: *sadface*
[04:24:44] workmad3: has joined #ruby
[04:30:06] pragmatism: has joined #ruby
[04:30:27] Musashi007: has joined #ruby
[04:37:20] serivich: has joined #ruby
[04:38:50] baweaver: Ah, to those who had mentioned interest earlier, FP primer for Spark: http://baweaver.com/blog/2015/06/20/a-functional-programming-primer-for-spark/
[04:41:09] shevy: a beaver blog
[04:41:35] shevy: that's a lot of import statements
[04:42:06] baweaver: one reason why I have a great deal of hate for Java
[04:42:52] greenbagels: has joined #ruby
[04:44:04] shevy: that's some tight packing of statements:
[04:44:08] shevy: public static class IntSumReducer extends Reducer<Text,IntWritable,Text,IntWritable> {
[04:44:11] baweaver: Some people had mentioned wanting to check it out once I got it written up. I'll post around the usual channels
[04:44:20] baweaver: It's straight from Hadoops wordcount example
[04:45:27] zenguy_pc: has joined #ruby
[04:48:13] baweaver: Well back home for me. That's enough writing for tonight.
[04:48:16] baweaver: 'night all.
[04:48:43] yeticry: has joined #ruby
[04:49:19] towski_: has joined #ruby
[04:50:32] datanoise: has joined #ruby
[04:52:47] zenguy_pc: has joined #ruby
[04:53:47] al2o3-cr: has joined #ruby
[04:55:13] mary5030: has joined #ruby
[04:56:41] shevy: is git checkout slower than svn checkout?
[04:57:02] mozzarella: shouldn't be
[04:57:24] sphex: hey anybody using `ruby -r debug`? I'm having a hard time figuring out how to make it not exit after an uncaught exception.
[04:57:32] sphex: shevy: prolly depends on the server a lot
[04:57:33] mcclurmc: has joined #ruby
[04:57:53] Hanmac: has joined #ruby
[04:58:06] heftig: svn checkout doesn't download the whole history, or necessarily the whole tree
[04:58:50] blue_deref: has joined #ruby
[04:58:59] shevy: yeah was wondering about that when I git clone the ruby repository
[04:59:01] heftig: while you can avoid the former with git (shallow clone), you can't avoid the latter
[04:59:06] shevy: Receiving objects: 17% (54000
[05:00:14] heftig: shevy: git clone --depth 1
[05:01:23] dross: has joined #ruby
[05:03:12] Rubie: has joined #ruby
[05:05:35] al2o3-cr: has joined #ruby
[05:06:44] Musashi007: has joined #ruby
[05:07:30] zenguy_pc: has joined #ruby
[05:09:25] fabrice31: has joined #ruby
[05:14:25] zenguy_pc: has joined #ruby
[05:14:44] Oog: has joined #ruby
[05:17:38] framling: has joined #ruby
[05:20:54] chinmay_dd: has joined #ruby
[05:25:38] theery: has joined #ruby
[05:28:29] n3vtelen: has joined #ruby
[05:28:33] fgo: has joined #ruby
[05:28:34] Cache_Money: has joined #ruby
[05:31:08] Prawnzy: has joined #ruby
[05:31:43] Rubie: has joined #ruby
[05:37:01] jokester: has joined #ruby
[05:37:53] Cache_Money: has joined #ruby
[05:39:00] sevenseacat: has joined #ruby
[05:42:30] baweaver: has joined #ruby
[05:47:51] lxsameer: has joined #ruby
[05:48:15] [k-: has joined #ruby
[05:48:59] quazimodo: has joined #ruby
[05:49:33] hahuang65: has joined #ruby
[05:50:39] ndrei: has joined #ruby
[05:52:03] araujo: has joined #ruby
[05:54:28] dented42: has joined #ruby
[05:54:44] zenguy_pc: has joined #ruby
[05:56:53] theery: has joined #ruby
[05:57:31] dross: has joined #ruby
[05:58:20] mcclurmc: has joined #ruby
[05:59:58] djbkd: has joined #ruby
[06:00:30] yfeldblum: has joined #ruby
[06:01:22] [k-: https://www.reddit.com/r/programming/comments/3aitbh/how_we_turned_json_into_a_full_programming/
[06:01:35] Torrieri: has joined #ruby
[06:01:35] Torrieri: has joined #ruby
[06:01:59] Soda: has joined #ruby
[06:07:08] ta: has joined #ruby
[06:07:25] symm-: has joined #ruby
[06:08:37] beneggett: has joined #ruby
[06:11:05] adamski2600: has joined #ruby
[06:11:36] Ilyas: has joined #ruby
[06:12:06] kenndel: has joined #ruby
[06:13:30] workmad3: has joined #ruby
[06:15:48] zenguy_pc: has joined #ruby
[06:15:56] sphex: hey. does ruby support something like "#line" directives?
[06:15:59] shevy: bloat comes naturally
[06:16:09] shevy: what is that directive
[06:16:13] shevy: a method?
[06:16:19] shevy: or how did you come to #line
[06:16:46] sphex: I mean a cpp-like directive to let the parser know which file name / line number the input came from.
[06:18:55] charliesome: has joined #ruby
[06:19:35] [k-: __LINE__ sort of thing?
[06:19:58] sphex: [k-: yeah, but sort of the other way around
[06:20:30] shevy: not sure how __LINE__ works on the C level
[06:20:52] shevy: ext/ripper/ripper.c: case keyword__LINE__:
[06:21:00] fantazo: has joined #ruby
[06:21:01] sphex: [k-: this is for generated code. I'd like to change the parser's idea of the current line number.
[06:21:58] shevy: lex.c: {"__LINE__", {keyword__LINE__, keyword__LINE__}, EXPR_END},
[06:23:09] sphex: [k-: so that it reports the original line number from which the parsed code was generated in stack traces, syntax error exceptions, etc. C and Perl (and prolly others) change their idea of the current line number when they encounter "#line N" comments, which allows just that. (yacc/lex use that, for example)
[06:24:36] [k-: Wait so you are changing line numbers and want the original one?
[06:25:53] [k-: I dont know cpp so...
[06:25:55] sphex: [k-: well, the generated code line numbers won't match the ones from the input from which it was generated. so yeah, I'd want to "fix" them.
[06:26:25] sphex: shevy: oh.. I see it allows to set the current line number / file name at the beginning of the parsing, but not sure afterward... :/
[06:26:25] [k-: Why not just use a map then
[06:27:23] yardenbar: has joined #ruby
[06:28:55] shevy: sphex if you don't find an easy way to change it, you could always try to write a feature suggestion at http://bugs.ruby-lang.org/projects/ruby-trunk for the ruby core team; I am not sure how many people here on #ruby know the internals well... I think there is #ruby-core or #ruby-dev either of these two; but they may be less active as there be less people there
[06:29:28] bruno-: has joined #ruby
[06:29:37] adac: has joined #ruby
[06:29:51] sphex: oh ok. yeah I'll do that if I can't find a way.
[06:30:47] [k-: instance_eval accepts line_no's too
[06:32:25] [k-: I...try abit too hard sometimes
[06:32:52] sphex: [k-: oh yeah... actually.. I guess I could generate code with some lines merged with ";", and emit some extra blank lines to keep the parser's line numbers in sync with the original ones. kinda kludgy though. :/
[06:35:03] [k-: I mean having a key-value store to map the line no to each other
[06:35:36] JoshGlzBrk: has joined #ruby
[06:35:52] [k-: So when you see line 7 on the generated one, you can replace it with 2 which is the original line
[06:36:10] sphex: [k-: that doesn't get it "into ruby", so the exceptions/stacktraces won't have those line numbers
[06:36:33] railsraider: has joined #ruby
[06:37:41] [k-: http://stackoverflow.com/questions/3829157/how-to-get-a-stack-trace-object-in-ruby
[06:38:14] theery: has joined #ruby
[06:39:05] lapide_viridi: has joined #ruby
[06:39:54] [k-: Would it help? I'm not a smart guy in any way
[06:40:16] blue_deref: has joined #ruby
[06:41:41] sphex: [k-: it could.. I guess I could fixup the line numbers after exceptions occur.. but it would be a PITA.
[06:42:16] [k-: I guess so
[06:42:51] [k-: But if you can't find an entry in the hash, it would mean that there is a problem with your generated code
[06:43:06] [k-: So that would be a plus if you go down this road
[06:43:41] tvw: has joined #ruby
[06:44:34] jfarmer: has joined #ruby
[06:46:58] zenguy_pc: has joined #ruby
[06:47:11] tsvenson: has joined #ruby
[06:50:23] kraljev11: has joined #ruby
[06:50:34] sphex: shevy: eh, someone else already asked for this feature: https://bugs.ruby-lang.org/issues/11181
[06:53:53] Beoran_: has joined #ruby
[06:56:47] romero: has joined #ruby
[06:59:09] mcclurmc: has joined #ruby
[06:59:28] Torrieri: has joined #ruby
[07:01:44] Rollabun_: has joined #ruby
[07:02:45] Musashi007: has joined #ruby
[07:03:40] chris2: has joined #ruby
[07:03:46] yoongkang: has joined #ruby
[07:03:48] [k-: has joined #ruby
[07:04:59] fabrice31: has joined #ruby
[07:06:03] bkxd: has joined #ruby
[07:08:05] Dopagod: has joined #ruby
[07:09:55] gaucheph: has joined #ruby
[07:10:08] xcesariox: has joined #ruby
[07:12:02] shevy: comment that you also want this :)
[07:12:08] shevy: so he won't stay alone and under the radar :P
[07:12:57] shevy: nevermind I'll comment on your behalf ;P
[07:15:05] sphex: ah great, thanks!
[07:15:10] gianlucadv: has joined #ruby
[07:15:21] shevy: the ruby core team is not that large... probably between 6-12 people
[07:15:40] shevy: nobu is one of the most active... here is the latest changelog activity https://github.com/ruby/ruby/blob/trunk/ChangeLog
[07:16:22] shevy: "Nobuyoshi Nakada" is one of the main devs, like matz' right hand (matz works mostly on mruby https://github.com/mruby/mruby)
[07:16:38] j4cknewt: has joined #ruby
[07:17:05] sphex: oh really? 6-12? pretty surprising given the probably millions of users depending on it.
[07:17:56] duderonomy: has joined #ruby
[07:18:09] shevy: well there are some sporadic committers
[07:19:34] gr33n7007h: has joined #ruby
[07:20:03] neanderslob: has joined #ruby
[07:20:20] shevy: from that list it is mostly ... Yusuke Endoh; Naohisa Goto; Nobuyoshi Nakada; Koichi Sasada; Yui Naruse, I may have forgotten one or two more japanese devs. Unsure about non-japanese devs in core team being regularly active
[07:20:35] shevy: Aaron Patterson aka tenderlove perhaps
[07:21:49] sevenseacat: yeah tenderlove is ruby core, also rails core
[07:21:54] sevenseacat: the only one to be both
[07:22:15] baweaver: Is he really the only one? Seems like there may be a few more.
[07:22:25] baweaver: Xavier Shay wouldn't surprise me if he was.
[07:22:27] sphex: does ruby have a large japanese user base too?
[07:22:43] sevenseacat: i thought he was. I may be wrong.
[07:22:50] baweaver: ACTION shrugs
[07:22:51] sevenseacat: its been known to happen very very occasionally.
[07:22:56] baweaver: I've never looked into it myself.
[07:23:20] TinkerTyper: has joined #ruby
[07:23:21] shevy: sphex somewhat yeah, I think non-japanese users outnumber the japanese users by a huge margin actually
[07:23:34] shevy: but it's hard to say, I can't read japanese
[07:23:48] shevy: on rubygems.org though, I think there are more non-japanese than japanese
[07:24:42] pragmatism: My understanding is that Tenderlove contributes to both the Ruby and Rails cores.
[07:25:46] sphex: I'll probably end up using ruby a lot; I hope I'll contribute a bit to it.
[07:25:53] pragmatism: Ruby is fantastic.
[07:26:19] pragmatism: I've worked my way up the chain, and while slow, Ruby is my favorite language to build with.
[07:28:04] User458764: has joined #ruby
[07:28:52] sphex: oh yeah. I was mostly using perl as a scripting languages, but.. well, that was my problem :p. I started learning python a few months ago and really didn't like it. I was used to doing things the way I wanted to. :/
[07:29:55] pragmatism: Have you worked in any other languages?
[07:30:59] sphex: mostly C/C++. I really like Scheme, but I never get to really use it.
[07:31:02] pragmatism: Object orient programming is worth doing a survey of
[07:31:07] fusillicode1: has joined #ruby
[07:31:11] fusillicode1: has left #ruby: ()
[07:31:25] pragmatism: Yeah, then you're set. I've found Ruby to be the most expressive language I've used
[07:31:48] pragmatism: I really enjoy working in it, and it is so easy to read comments are actually considered bad-practice.
[07:32:10] pragmatism: But check out jRuby and Rubinious.
[07:32:20] sphex: The smalltalk-ish design is pretty neat too... first time I ever used something like that.
[07:32:24] pragmatism: There are non-MRI interpreters that don't implement a GIL.
[07:32:45] pragmatism: Yeah, plus people like Sandi Metz are in the community now because of smalltalk.
[07:33:37] pragmatism: Excited to see what Ruby does in the next few years. Been playing around a lot with functional languages, too.
[07:33:58] michael_mbp: has joined #ruby
[07:37:03] _blizzy_: has joined #ruby
[07:37:08] antgel: has joined #ruby
[07:38:08] sphex: pragmatism: personally I'm not too worried about the performance for now. it seems like MRI had *huge* performance boosts lately; method calls look really fast compared to what I'm used to with perl. dynamic language OO design won't stress me out for the first time ever, eh. :p
[07:38:10] last_staff: has joined #ruby
[07:38:28] scx: has joined #ruby
[07:39:20] sphex: and I've always used processes for concurrency with scripting languages. mostly because I didn't really have a choice.
[07:41:23] pragmatism: Yeah, and that's the way EC2 is essentially architected.
[07:41:59] jrhe_: has joined #ruby
[07:42:28] bkxd: has joined #ruby
[07:42:30] shevy: sphex you seem to come from the C-world; did you not use something like perl or php before?
[07:43:06] shevy: if you want a game written largely in scheme, check out nazghul/haxima: http://downloads.sourceforge.net/project/nazghul/nazghul/nazghul-0.7.1/nazghul-0.7.1.tar.gz
[07:43:16] shevy: I try to motivate the main author to not abandon it :P
[07:43:24] shevy: he tried to switch to python
[07:43:26] shevy: which failed
[07:43:33] scx_: has joined #ruby
[07:44:10] shevy: sorry this is a better link, with pictures: /
[07:44:17] shevy: damn it... again http://sourceforge.net/projects/nazghul/
[07:44:33] shevy: Last Update: 2014-04-07, so he did not abandon it entirely...
[07:45:40] bruno-: has joined #ruby
[07:45:58] sphex: shevy: oh.. interresting. I heard about a few CommonLisp graphical games before.. but not Scheme, until now!
[07:46:18] awer: has joined #ruby
[07:46:27] shevy: the world is written in .scm files
[07:46:39] shevy: (say knpc "According to legend, the sorceress Isin almost single-handedly defeated two armies. "
[07:46:48] shevy: apparently that's some npc-dude speaking
[07:47:44] sphex: hrm. looks like he has his own scheme interpreter with persistency support, among other things
[07:50:05] rht: has joined #ruby
[07:50:11] fgo: has joined #ruby
[07:53:33] sameerynho: has joined #ruby
[07:54:32] awer: Hi. does anyone have a working example of posting a message with a set of facebook groups?
[07:55:32] awer: i would like to post one message multiple times to facebook groups by using a ruby script
[07:55:50] awer: i have got this work for pages just cant get it to works for groups
[07:55:54] lxsameer_: has joined #ruby
[07:56:16] beneggett: has joined #ruby
[07:56:19] awer: im using koala
[07:56:32] wildroman2: has joined #ruby
[07:57:14] wildroman2: has joined #ruby
[07:57:20] micmus: has joined #ruby
[07:59:00] shevy: baweaver look! they are using not only beavers but also koalas now
[07:59:18] [k-: shevy pls :(
[07:59:44] mcclurmc: has joined #ruby
[08:00:21] unshadow: has joined #ruby
[08:00:21] [k-: if it doesn't work using koala, contact the maintainer?
[08:00:25] adamski2600: has joined #ruby
[08:00:34] [k-: if you need it now, try a different library
[08:00:46] datanoise: has joined #ruby
[08:00:50] awer: ok thanks
[08:00:59] sinkensabe: has joined #ruby
[08:01:22] sameerynho: has joined #ruby
[08:01:42] baweaver: ACTION wanders back off
[08:02:15] workmad3: has joined #ruby
[08:04:39] Rubie: has joined #ruby
[08:06:03] scx: has joined #ruby
[08:07:04] The_Phoenix: has joined #ruby
[08:08:02] Xeago: has joined #ruby
[08:08:10] The_Phoenix: has joined #ruby
[08:08:11] Cust0sLim3n: has joined #ruby
[08:11:09] hahuang65: has joined #ruby
[08:13:07] duncannz: has joined #ruby
[08:18:12] pragmatism: sphex done anything functional?
[08:18:27] sandstrom: has joined #ruby
[08:19:11] djbkd: has joined #ruby
[08:19:24] Torrieri: has joined #ruby
[08:19:24] Torrieri: has joined #ruby
[08:20:09] bmalum: has joined #ruby
[08:21:51] al2o3-cr: has joined #ruby
[08:23:13] swgillespie: has joined #ruby
[08:23:48] olistik: has joined #ruby
[08:24:13] yoongkang: has joined #ruby
[08:25:31] DEA7TH: has joined #ruby
[08:26:55] User458764: has joined #ruby
[08:28:33] roolo: has joined #ruby
[08:30:29] beneggett: has joined #ruby
[08:30:51] michael_mbp: has joined #ruby
[08:32:38] blackmes1: has joined #ruby
[08:34:15] iamninja: has joined #ruby
[08:35:03] Igorshp: has joined #ruby
[08:42:51] Jackneill: has joined #ruby
[08:43:16] TvL2386: has joined #ruby
[08:44:39] n008f4g_: has joined #ruby
[08:44:49] peter_paule: has joined #ruby
[08:49:04] dfockler: has joined #ruby
[08:49:33] airy: has joined #ruby
[08:50:16] fabrice31: has joined #ruby
[08:52:55] adac: has joined #ruby
[08:53:35] AvidChronos: has joined #ruby
[08:54:01] pragmatism: Anyone interested in sharing lightning talks? My company does them weekly, and it would be awesome to hear about some of the problems other engineers are solving.
[08:54:18] pragmatism: * s/company/employer/g
[08:56:41] allomov: has joined #ruby
[08:56:56] esposito: has joined #ruby
[09:00:38] mcclurmc: has joined #ruby
[09:00:41] duncannz: has joined #ruby
[09:00:55] bmalum: has joined #ruby
[09:01:14] Spami: has joined #ruby
[09:01:15] micmus: has joined #ruby
[09:02:07] Ropeney: has joined #ruby
[09:03:33] revath: has joined #ruby
[09:04:23] AlexRussia: has joined #ruby
[09:05:24] djbkd: has joined #ruby
[09:05:42] blackmes1: has joined #ruby
[09:08:02] bkxd: has joined #ruby
[09:08:29] uptownhr: has joined #ruby
[09:11:10] jacor: has joined #ruby
[09:11:43] hahuang65: has joined #ruby
[09:11:49] User458764: has joined #ruby
[09:12:29] DEA7TH: has left #ruby: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[09:13:00] Cust0sLim3n: has joined #ruby
[09:13:53] tvw: has joined #ruby
[09:20:06] tvw: has joined #ruby
[09:20:08] Torrieri: has joined #ruby
[09:23:39] wildroman2: has joined #ruby
[09:25:07] revath: has left #ruby: ()
[09:26:56] multi_io: has joined #ruby
[09:27:25] serivich: has joined #ruby
[09:29:21] vasilakisfil_: has joined #ruby
[09:31:26] timonv: has joined #ruby
[09:37:41] Tempesta: has joined #ruby
[09:41:28] duncannz: has joined #ruby
[09:41:35] blackmes1: has joined #ruby
[09:45:22] marr: has joined #ruby
[09:47:52] towski_: has joined #ruby
[09:47:52] chinmay_dd: has joined #ruby
[09:49:15] spider-mario: has joined #ruby
[09:49:16] adamski2600: has joined #ruby
[09:50:32] chrisseaton: has joined #ruby
[09:51:00] workmad3: has joined #ruby
[09:54:50] bruno-: has joined #ruby
[09:55:21] FernandoBasso: has joined #ruby
[10:00:32] Xeago: has joined #ruby
[10:01:16] mcclurmc: has joined #ruby
[10:06:12] bentanweihao: has joined #ruby
[10:06:26] sdothum: has joined #ruby
[10:07:20] OrbitalKitten: has joined #ruby
[10:11:26] serivich: has joined #ruby
[10:11:43] Musashi007: has joined #ruby
[10:20:54] Torrieri: has joined #ruby
[10:21:04] quazimodo: has joined #ruby
[10:21:21] [k-: I legitly see blank lines
[10:23:27] User458764: has joined #ruby
[10:24:31] fantazo: has joined #ruby
[10:24:56] shevy: I think he has some invisible character there
[10:27:21] shevy: but it may be hard to prove
[10:33:03] blackmesa: has joined #ruby
[10:37:12] bronson: has joined #ruby
[10:37:20] Cust0sLim3n: has joined #ruby
[10:39:00] fabrice31: has joined #ruby
[10:39:25] _jesterfraud: so, I assume there have been conversations about CodeClimate cli now, is there somewhere in particular to talk about it?
[10:39:37] _jesterfraud: I'm mainly trying to work out how to actually use it
[10:39:43] _jesterfraud: (as in, it's working, what now?)
[10:43:29] Papierkorb: has joined #ruby
[10:44:31] vasilakisfil_: has joined #ruby
[10:44:59] adamski2600: has joined #ruby
[10:45:45] blackmes1: has joined #ruby
[10:47:40] shevy: what talk are you guys watching? first pragmatism now _jesterfraud, I seem to totally miss what is going on
[10:48:21] _jesterfraud: shevy, talk? I saw the blog post that says that CodeClimate have open sourced their engines etc
[10:48:22] yxhuvud: has joined #ruby
[10:48:42] pragmatism: Those posts are a few hours apart.
[10:48:42] _jesterfraud: which I've now successfully run over my work codebase, but I'm struggling to work out what that actually achieves
[10:50:13] _jesterfraud: pragmatism, are those talks being published or anything?
[10:50:27] Rollabunna: has joined #ruby
[10:51:38] vasilakisfil_: has joined #ruby
[10:53:52] Rubie: has joined #ruby
[10:58:14] revath: has joined #ruby
[10:58:34] zarubin_: has joined #ruby
[10:58:53] Ilyas_: has joined #ruby
[10:59:02] zenguy_pc: has joined #ruby
[10:59:16] marsjaninzmarsa: has joined #ruby
[11:00:29] hahuang65: has joined #ruby
[11:01:16] vkgfx: has joined #ruby
[11:01:22] redondos: has joined #ruby
[11:03:45] pontiki: has joined #ruby
[11:06:04] callumacrae: has joined #ruby
[11:08:15] stamina: has joined #ruby
[11:08:57] chinmay__: has joined #ruby
[11:13:37] kraljev11: has joined #ruby
[11:18:47] exadeci: has joined #ruby
[11:21:02] shevy: [k- you added too many characters there
[11:21:24] [k-: too many?
[11:21:24] psye: has joined #ruby
[11:21:26] revath: has joined #ruby
[11:21:40] Torrieri: has joined #ruby
[11:21:40] Torrieri: has joined #ruby
[11:21:40] [k-: I did a blank line!
[11:21:45] sanjivupadhyaya: has joined #ruby
[11:21:46] ttilley: has joined #ruby
[11:21:52] [k-: well there was a space but
[11:22:10] sanjivupadhyaya: anyone know which is the best gem for extracting google analytics data ?
[11:22:37] bkxd: has joined #ruby
[11:24:42] sanjivupadhyaya: join #googleAnalytics
[11:26:20] User458764: has joined #ruby
[11:26:45] autrilla: has joined #ruby
[11:27:39] [k-: you forgot a /
[11:27:42] Cust0sLim3n: has joined #ruby
[11:28:32] railsraider_: has joined #ruby
[11:29:28] shevy: http://www.ludd.ltu.se/~vk/q/asciitutorials/Joan_Stark.html
[11:29:39] shevy: "I first saw ASCII art in the summer of 1995 and was intrigued by it. My immediate thought was that there were people in this world who had too much time on their hands"
[11:29:41] shevy: can this be
[11:29:47] shevy: people who have too much time on their hands
[11:29:56] shevy: ACTION looks at #ruby in disbelief.
[11:34:29] j4cknewt: has joined #ruby
[11:36:59] akkad: has joined #ruby
[11:38:02] j4cknewt: has joined #ruby
[11:38:07] mattarse: has joined #ruby
[11:38:26] datanoise: has joined #ruby
[11:39:42] aryaching: has joined #ruby
[11:39:57] workmad3: has joined #ruby
[11:44:12] dorei: has joined #ruby
[11:44:48] [k-: has joined #ruby
[11:48:20] jesterfraud: I don't have enough time on my hands, because I spend it all playing games
[11:48:36] jesterfraud: does that count shevy?
[11:51:02] Pupeno: has joined #ruby
[11:54:40] shevy: what kind of games?
[11:54:51] shevy: my high days of games sort of stopped... I am not even writing any games in ruby either
[11:55:07] Rubie: has joined #ruby
[11:55:20] vasilakisfil_: has joined #ruby
[11:55:42] shevy: it's often the case that 3D engines and similar, often written in C++, will have bindings for python
[11:55:44] shevy: and not for ruby
[11:55:46] shevy: so that also sucks
[11:55:52] lkba: has joined #ruby
[12:02:37] revath: has joined #ruby
[12:02:45] mcclurmc: has joined #ruby
[12:04:26] _blizzy_: has joined #ruby
[12:04:33] yoongkang: has joined #ruby
[12:05:03] kaichanvong_: has joined #ruby
[12:07:16] Synthead: has joined #ruby
[12:07:23] j4cknewt: has joined #ruby
[12:09:08] peter_paule: has joined #ruby
[12:09:33] startupality: has joined #ruby
[12:10:04] datanoise: has joined #ruby
[12:13:21] vasilakisfil_: has joined #ruby
[12:13:54] vasilakisfil_: has joined #ruby
[12:17:36] otherj: has joined #ruby
[12:21:52] Aswebb_: has joined #ruby
[12:22:26] Torrieri: has joined #ruby
[12:22:26] Torrieri: has joined #ruby
[12:22:43] T3: has joined #ruby
[12:22:57] vasilakisfil_: has joined #ruby
[12:26:33] phutchins: has joined #ruby
[12:26:39] A205B064: has joined #ruby
[12:27:14] allomov: has joined #ruby
[12:28:23] bohallor: has joined #ruby
[12:37:53] Papierkorb_: has joined #ruby
[12:37:58] T3: has joined #ruby
[12:38:21] revath: has joined #ruby
[12:38:29] quazimodo: has joined #ruby
[12:38:42] [k-: would you play a ruby game?
[12:40:06] [k-: https://www.reddit.com/r/programminghorror/comments/37mq2n/slug/croiy63
[12:44:47] shevy: possibly; FIFE engine was quite nice
[12:45:08] shevy: http://www.fifengine.net/media.html but only python bindings
[12:45:12] shevy: and it's a lot of work to create games
[12:46:43] Deele: has joined #ruby
[12:47:23] olistik: has joined #ruby
[12:48:34] T3: has joined #ruby
[12:49:25] sandstrom: has joined #ruby
[12:49:57] j4cknewt: has joined #ruby
[12:51:20] Rollabunna: has joined #ruby
[12:51:49] yasu: has joined #ruby
[12:56:50] bentanweihao: has joined #ruby
[12:57:06] shevy: http://www.arubystory.com/2015/06/being-developer.html
[12:57:14] vasilakisfil_: has joined #ruby
[12:58:59] gaucheph__: has joined #ruby
[12:59:23] kenndel_: has joined #ruby
[13:00:13] mjmac_: has joined #ruby
[13:00:41] darkf_: has joined #ruby
[13:00:46] alxndr_: has joined #ruby
[13:00:53] adaedra: has joined #ruby
[13:01:14] riking_: has joined #ruby
[13:01:56] hedgecore: has joined #ruby
[13:01:56] ljarvis: has joined #ruby
[13:02:09] Hanmac1: has joined #ruby
[13:02:35] nickjj_: has joined #ruby
[13:03:23] Janusz1_: has joined #ruby
[13:03:45] Janusz1_: has joined #ruby
[13:03:52] Zinox101: has joined #ruby
[13:04:01] bkxd_: has joined #ruby
[13:04:05] romero_: has joined #ruby
[13:04:11] hien_: has joined #ruby
[13:04:29] transiency: has joined #ruby
[13:04:30] sinkensabe: has joined #ruby
[13:04:31] givello: has joined #ruby
[13:04:35] symm-: has joined #ruby
[13:04:47] premera_n: has joined #ruby
[13:04:49] ht: has joined #ruby
[13:04:53] sevenseacat: shevy: i chuckled
[13:05:09] premera_n: has joined #ruby
[13:05:13] cbednarski_: has joined #ruby
[13:05:17] senayar: has joined #ruby
[13:05:18] moloch: has joined #ruby
[13:05:20] jeregrine_: has joined #ruby
[13:05:29] SegFaultAX_: has joined #ruby
[13:05:31] premera_n: has joined #ruby
[13:05:34] enebo: has joined #ruby
[13:05:42] bnagy_: has joined #ruby
[13:05:44] hoelzro_: has joined #ruby
[13:05:54] premera_n: has joined #ruby
[13:05:56] Pupeno_: has joined #ruby
[13:06:07] bttf_: has joined #ruby
[13:06:08] maZtah_: has joined #ruby
[13:06:14] premera_n: has joined #ruby
[13:06:16] _main_: has joined #ruby
[13:06:22] larshaugseth: has joined #ruby
[13:06:23] Miron_: has joined #ruby
[13:06:39] premera_n: has joined #ruby
[13:06:40] znz_jp0: has joined #ruby
[13:06:49] tobiasvl: has joined #ruby
[13:06:50] shawnatyger: has joined #ruby
[13:07:03] premera_n: has joined #ruby
[13:07:18] leslie1: has joined #ruby
[13:07:18] shtirlic_: has joined #ruby
[13:07:19] CJNE: has joined #ruby
[13:07:19] brb3_: has joined #ruby
[13:07:20] brb3_: has joined #ruby
[13:07:27] premera_n: has joined #ruby
[13:07:48] Carnage\: has joined #ruby
[13:07:55] skarn_: has joined #ruby
[13:07:57] otherj_: has joined #ruby
[13:08:14] jokester: has joined #ruby
[13:08:23] lapide_viridi: has joined #ruby
[13:08:27] Diabolik: has joined #ruby
[13:08:40] eggoez: has joined #ruby
[13:08:43] shevy: has joined #ruby
[13:09:17] terrellt: has joined #ruby
[13:09:25] rmoriz: has joined #ruby
[13:09:30] dbussink_: has joined #ruby
[13:09:44] Al3ks_: has joined #ruby
[13:09:44] Klumben: has joined #ruby
[13:09:58] Cybergeek_: has joined #ruby
[13:10:15] sdothum: has joined #ruby
[13:10:32] ttilley: has joined #ruby
[13:10:33] opalraava: has joined #ruby
[13:10:35] jokester: has joined #ruby
[13:10:37] Zimsky__: has joined #ruby
[13:10:59] ckrailo: has joined #ruby
[13:11:09] twistedpixels: has joined #ruby
[13:11:23] minibar: has joined #ruby
[13:11:58] minibar: anyone knows if it is possible to make comments on the .env file used by foreman?
[13:12:05] Ariadeno: has joined #ruby
[13:13:13] amitchellbullard: has joined #ruby
[13:13:40] snapcase: has joined #ruby
[13:13:40] cescalante: has joined #ruby
[13:14:44] peter_paule: has joined #ruby
[13:15:01] sorah: has joined #ruby
[13:17:22] galeido^: has joined #ruby
[13:17:40] cvtsx1: has joined #ruby
[13:17:51] Axy: has joined #ruby
[13:17:51] Axy: has joined #ruby
[13:17:51] ziprar: has joined #ruby
[13:18:30] RazorX_: has joined #ruby
[13:18:53] ChronosLegion: has joined #ruby
[13:18:54] jesterfraud: minibar, is it a plain ruby file?
[13:19:13] snapcase: has joined #ruby
[13:19:25] chris2: has joined #ruby
[13:19:51] alem0lars__: has joined #ruby
[13:20:26] contradictioned: has joined #ruby
[13:20:36] iwishiwerearobot: has joined #ruby
[13:21:39] minibar: jesterfraud I don't think so
[13:21:43] EnergyCoffee: has joined #ruby
[13:21:53] suffice: has joined #ruby
[13:21:55] sumark: has joined #ruby
[13:21:57] minibar: is a configuration file with a list of key value pairs separated by =
[13:21:59] s2013: has joined #ruby
[13:22:10] maloik: has joined #ruby
[13:22:14] Kyle__: has joined #ruby
[13:22:17] hedgecore: has joined #ruby
[13:22:18] jenksy: has joined #ruby
[13:22:20] shadeslayer: has joined #ruby
[13:22:31] thomas1: has joined #ruby
[13:22:46] Guest19828: has joined #ruby
[13:22:53] ccooke: has joined #ruby
[13:22:58] EnergyCoffee: has joined #ruby
[13:23:18] gregf_: has joined #ruby
[13:23:21] Torrieri: has joined #ruby
[13:23:36] Guest19828: has joined #ruby
[13:24:15] oz: has joined #ruby
[13:24:15] EnergyCoffee: has joined #ruby
[13:25:11] jesterfraud: minibar, not sure this is the right place to ask then, foreman is a specific library
[13:25:48] oz`: has joined #ruby
[13:25:53] zz_Outlastsheep: has joined #ruby
[13:25:59] shinnya: has joined #ruby
[13:26:04] brainslug: has joined #ruby
[13:26:05] mansel: has joined #ruby
[13:26:13] quarcu: has joined #ruby
[13:26:13] tris: has joined #ruby
[13:26:14] S_Walker: has joined #ruby
[13:26:20] mr_rich101: has joined #ruby
[13:26:22] seansith: has joined #ruby
[13:26:27] Affix: has joined #ruby
[13:26:57] julieeharshaw: has joined #ruby
[13:27:22] peter_paule: has joined #ruby
[13:27:41] minibar: jesterfraud since it is a ruby gem I assumed you guys used it
[13:27:48] aytch: has joined #ruby
[13:28:23] jesterfraud: minibar, there are 6468 gems listed on rubygems, we can't be experts on them all :P
[13:28:39] minibar: jesterfraud you can't
[13:28:41] bougyvoid: that's only 6.5 gems per person here, jesterfraud
[13:28:43] workmad3: has joined #ruby
[13:28:45] bougyvoid: if we work hard we can.
[13:28:55] minibar: that was going to be my point
[13:29:00] Synthead: has joined #ruby
[13:29:11] Rollabunna: has joined #ruby
[13:29:11] znz_jp: has joined #ruby
[13:29:16] jesterfraud: well, I can't see any documentation for Foreman, really
[13:29:22] jesterfraud: although I might just be blind
[13:29:32] jesterfraud: but I'd say there's no capabilities for comments within that file format
[13:29:39] jesterfraud: have you tried # comment?
[13:30:32] railsraider_: has joined #ruby
[13:30:48] sparr: has joined #ruby
[13:31:05] kirun: has joined #ruby
[13:31:29] j416_: has joined #ruby
[13:32:34] hectorsq: has joined #ruby
[13:32:51] guardianx: has joined #ruby
[13:33:10] atom3: has joined #ruby
[13:33:42] Aswebb__: has joined #ruby
[13:33:42] kp666_: has joined #ruby
[13:34:12] Steve_Jobs: has joined #ruby
[13:34:15] tdy: has joined #ruby
[13:34:48] surs: has joined #ruby
[13:35:08] fold: has joined #ruby
[13:35:23] Blaguvest: has joined #ruby
[13:36:06] avelldiroll: has joined #ruby
[13:36:09] ndrei: has joined #ruby
[13:39:45] serivich: has joined #ruby
[13:40:54] yoongkang: has joined #ruby
[13:41:02] allomov: has joined #ruby
[13:41:24] shevy: is there another way than: $/ = "\n\n"
[13:42:41] blackmesa: has joined #ruby
[13:45:13] gregf_: has joined #ruby
[13:47:32] denver: has joined #ruby
[13:48:32] chris2: has joined #ruby
[13:49:01] shevy: I thought it would be $INPUT_RECORD_SEPARATOR
[13:49:36] shevy: ah require english
[13:49:48] blackmesa: has joined #ruby
[13:50:19] bakednotfried: has joined #ruby
[13:50:23] pyon: has joined #ruby
[13:50:54] Aswebb_: has joined #ruby
[13:51:10] shevy: lol ascii art ponies https://github.com/mbasaglia/ASCII-Pony
[13:51:26] shevy: "systempony is a script which shows a pony and system information."
[13:51:39] shevy: if you ever think you have a useless project
[13:51:44] shevy: look at github for more inspiration
[13:52:08] jesterfraud: for me, github entertainment = commit logs from last night
[13:52:14] mistnim: has joined #ruby
[13:52:19] freerobby: has joined #ruby
[13:54:02] shevy: the strangest part about ascii art
[13:54:05] shevy: is when someone signs it
[13:54:41] Xeago: what is a good gem for rendering table'd output?
[13:54:41] shevy: https://goo.gl/1QNENE
[13:54:53] shevy: Xeago rendering how? ascii output?
[13:54:58] shevy: or some pdf file
[13:55:02] Xeago: I find myself wanting to read ENV['COLUMNS'] doing math, ljust's and rjusts
[13:55:06] Xeago: terminal output
[13:55:09] Xeago: just raw text
[13:55:22] Xeago: fooo is adjusted more details about foooo
[13:55:44] Xeago: with "foo is adjusted " length to be determined by the longest item of it's kind
[13:55:49] Xeago: (plus a bit of padding)
[13:55:57] Xeago: Can make a gist with a multiline example if you want
[13:56:24] jokester: has joined #ruby
[13:56:58] mary5030: has joined #ruby
[13:57:24] Xeago: https://gist.github.com/Xeago/9c3f09d333a37a942603
[13:57:53] Xeago: I suspect there must be something that does this given a simple hash
[13:58:14] endash: has joined #ruby
[13:58:33] e1nh4nd3r: has joined #ruby
[13:59:26] bougyman: https://github.com/arches/table_print
[14:00:10] brb3: has joined #ruby
[14:00:20] Xeago: yea cool, thanks!
[14:00:35] klingeldraht: has joined #ruby
[14:00:38] bougyman: seems a bit bound to those active record models, but maybe that's just for the examples
[14:01:09] jesterfraud: bougyman, "If you're not using ActiveRecord, the TablePrint default is to show all the methods defined directly on your object (nothing from superclasses/mixins)."
[14:02:17] bougyman: jesterfraud: seems fine, then
[14:02:51] shevy: NameError: uninitialized constant Generator::DATA
[14:03:02] shevy: when is DATA available? the thing that comes after __END__
[14:03:16] x0F: has joined #ruby
[14:03:24] bougyman: Xeago: if you wanted to go it yourself, you could just grab longest = hash.keys.max_by(&:length) and printf "%-#{longest.length}s %s", k, v
[14:04:14] mcclurmc: has joined #ruby
[14:05:29] bougyman: it's available for me
[14:05:33] bougyman: maybe you want ::DATA
[14:06:11] joast: has joined #ruby
[14:06:21] Rollabunna: has joined #ruby
[14:06:24] bougyman: http://sprunge.us/OLgB?ruby
[14:06:26] bougyman: works here.
[14:07:18] edwinvdgraaf: has joined #ruby
[14:08:55] sinkensabe: has joined #ruby
[14:09:03] serivichi: has joined #ruby
[14:13:24] edwinvdg_: has joined #ruby
[14:16:26] shevy: bougyman hmm
[14:16:42] shevy: bougyman if you require the file from another file as well?
[14:17:28] scottstamp: has joined #ruby
[14:17:35] ddv: what do you prefer and why? 1) next if !header == 'ta' || !header == 'tz' 2) next if header != 'ta' || header != 'tz' 3) unless header == 'ta' || header == 'tz'
[14:17:58] shevy: test2.rb:3:in `initialize': uninitialized constant Test2::DATA (NameError)
[14:18:14] shevy: I can't seem to get it to work the moment I try to have it load up from another .rb file
[14:18:31] shevy: unless I seem to be doing some mistake here, it seems as if DATA is only file-local to the given file in question from where it is being run?
[14:18:54] shevy: ddv I hate them all. Does that help? :)
[14:18:56] shevy: let me think...
[14:19:18] shevy: nope, I hate them all. I think (3) is the best possibly because I have to think less
[14:19:30] ddv: shevy: funny a lot of people seem to dislike 3
[14:19:48] shevy: well (1) is the worst; let me look at (2)...
[14:20:03] shevy: hmm nope, I hate (2) too
[14:20:27] shevy: are they all equialent?
[14:20:30] shevy: *equivalent
[14:20:48] Mon_Ouie: No they're not. header != 'ta' || header != 'tz' is always going to be true.
[14:20:48] bougyman: data is file-local, I think.
[14:20:53] shevy: I guess I'd have to put them into my editor, and align them from top-down... on IRC it's all one single line without colours...
[14:21:10] ddv: Mon_Ouie: explain
[14:21:16] scx: http://wklej.org/hash/fda4fee7696/
[14:21:19] shevy: bougyman ah ok thanks; I can solve that differently then, by just putting it into another file and loading that then reliably
[14:21:25] ddv: Mon_Ouie: what do you prefer?
[14:21:49] havenn: ddv: It will always either not equal one or the other since it can't be both.
[14:21:52] mrsolow: has joined #ruby
[14:22:06] scx: i am not sure what it is doing: make --type argument optional or something else?
[14:22:09] Kharma: has joined #ruby
[14:22:34] Mon_Ouie: So, whichever one you can write right the first time is probably easier to understand
[14:22:45] bougyman: um, works for me from another file, too, shevy
[14:22:53] ddv: I picked 1)
[14:22:58] ddv: because 3) can be confusing
[14:23:03] bougyman: the first file you load is the only one that populates DATA
[14:23:10] shevy: bougyman hmm
[14:23:26] Mon_Ouie: I don't know if you literally mean "!header == 'tz'"
[14:23:38] Mon_Ouie: Because that negates 'header' and compares the result with tz
[14:24:03] Torrieri: has joined #ruby
[14:24:04] Mon_Ouie: So if header is a string, !header is nil and nil is always different from 'tz'
[14:24:11] havenn: ddv: ^ which is going to produce warnings: warning: string literal in condition
[14:24:28] havenn: And not be what you want.
[14:24:35] migbar: has joined #ruby
[14:24:35] ddv: oooh good one
[14:24:42] shevy: cool... there is DATA.pos
[14:24:57] havenn: ddv: So if 1 and 3 don't do what you intend like Mon_Ouie points out... only 2 remains.
[14:25:09] Mon_Ouie: Those were 1) and 2) though
[14:25:17] havenn: Ah, numbers!
[14:25:32] ddv: I want it to skip this iteration if it is nil or not ta or tz
[14:26:16] havenn: ddv: Maybe show more of the context?
[14:26:30] Mon_Ouie: Then I'd go with next if (x != 'ta' && x != 'tz') (considering the fact that this means it can't also be nil)
[14:26:57] jgt: has joined #ruby
[14:27:03] jgt: hey folks
[14:27:17] shevy: ddv look! Mon_Ouie used ()
[14:27:29] shevy: that makes it cleaner
[14:27:32] ddv: Mon_Ouie: ok thanks
[14:27:38] jhass: shevy: I disagree :P
[14:27:48] shevy: if x != 'ta' && x != 'tz'
[14:27:56] jhass: yeah, much better
[14:28:03] jgt: is there a way to use ruby to open another ruby file and return a list of all things that look like constants?
[14:28:09] JoshGlzBrk: has joined #ruby
[14:28:23] Mon_Ouie: I??think I mostly felt like grouping it because of IRC, to separate code from the rest of the sentence
[14:28:29] shevy: jgt hmm you mean all CONSTANTS defined in a given (other) .rb file?
[14:28:39] jhass: jgt: http://ruby-doc.org/stdlib-2.2.2/libdoc/ripper/rdoc/Ripper.html
[14:28:52] shevy: if they are in a module or class, you could do: Name.constants
[14:28:58] jgt: shevy: I mean anything that looks like a class
[14:29:07] jgt: I have this rails app with a seeds.rb file
[14:29:23] jgt: I want to get a list of classes referenced in that seeds.rb file
[14:29:34] jgt: so I can exclude them from DatabaseCleaner
[14:29:39] jgt: rather than write them all out by hand
[14:30:19] free_speech: has joined #ruby
[14:30:21] jhass: write them out by hand
[14:30:50] shevy: if ruby would only allow per-file manipulations like that! ".rb file, tell me the constants you use"
[14:31:01] shevy: though I guess it's not a very common use case actually
[14:31:10] Mon_Ouie: Maintaining the complicated logic to properly detect the right constants is probably more work than maintaining the list of classes
[14:32:25] jgt: call me na??ve, but the logic doesn???t seem to complicated to me, given all classes referenced in seeds.rb are written in the same way
[14:32:42] jgt: it???s basically SomeModelName.create([???]), but 21 times
[14:32:55] jgt: s/to/too/
[14:33:18] jgt: eh??? I guess I???ll just write them
[14:35:25] p1k: has joined #ruby
[14:35:25] Mon_Ouie: You could keep that list somewhere and loop over it to call create like seeds.rb does, and use it to exclude it from DatabaseCleaner
[14:35:38] vasilakisfil_: has joined #ruby
[14:35:47] iamninja: has joined #ruby
[14:35:59] Mon_Ouie: But actually looking at the way the code looks at runtime is usually only a good idea for development tools, not for your application's code
[14:36:22] p1k: so I'm trying rbenv in a container instead of rvm to manage versions, and does it not auto-set new gem-paths when you switch versions? or am I missing something?
[14:36:37] jgt: Mon_Ouie: Do feature tests count as development tools? Or application code?
[14:36:39] noethics: has joined #ruby
[14:37:31] rkadius: has joined #ruby
[14:37:51] countryHick: has joined #ruby
[14:37:53] sharpmachine: has joined #ruby
[14:37:55] vasilakisfil_: has joined #ruby
[14:38:12] shevy: jgt it should be trivial to grab all constants from a given .rb file; they must start with an uppercase character
[14:38:31] Mon_Ouie: Do you have tests that say 'code should look like X'? I think tests should test the behavior of code, not how it is structured, etc. --- otherwise those tests are just going to break if the implementation changes, even if it still works correctly
[14:39:15] jgt: Mon_Ouie: I???m not sure that???s relevant to this discussion
[14:41:41] xtsee: has joined #ruby
[14:42:35] sharpmachine: has joined #ruby
[14:44:29] Rubie: has joined #ruby
[14:44:52] Aswebb_: has joined #ruby
[14:45:30] micmus: has joined #ruby
[14:46:15] jgt: well, this seems to be a good start???
[14:46:17] jgt: File.open("db/seeds.rb") { |file| file.each { |line| puts line if line =~ /\.create/ } }
[14:46:33] jgt: that gets me the right lines
[14:47:23] jhass: seriously though, if I'd discover that in a codebase the author would get a long grumpy stare from me
[14:47:36] rafaelsales: has joined #ruby
[14:48:32] ddv: it's a pretty weird thing to do
[14:49:42] e1nh4nd3r1: has joined #ruby
[14:50:21] jgt: I don???t see the problem
[14:50:23] Mon_Ouie: Weird is fine, but it's extremely fragile. You'd have to read a completely different file to see why changing the syntax of the code in seeds.rb breaks things.
[14:50:25] sinkensabe: has joined #ruby
[14:50:41] jgt: Mon_Ouie: That???s a valid point
[14:51:20] jgt: I???m not sure what code is supposed to look like in seeds.rb though, if not SomeModel.create(???
[14:51:41] jhass: I've seen FactoryGirl.create
[14:52:05] jgt: I???d say my solution is actually more robust than writing all the tables out, since I don???t need to keep them in sync if I add to seeds.rb
[14:52:07] Mon_Ouie: If you had a list of the model names and the arguments to pass to create, you could just iterate over that list in seeds.rb to call create
[14:52:24] Mon_Ouie: And then you could also extract the name of the models from that list for DatabaseCleaner
[14:52:52] jgt: Mon_Ouie: I???m curious how that would look
[14:53:08] jgt: would I separate the model names from the attributes?
[14:53:27] Mon_Ouie: SEEDS = [[SomeModel, [arg1, arg2]], [OtherModel, [thingy]]]
[14:53:31] GitGud: has joined #ruby
[14:53:45] Mon_Ouie: then juts SEEDS.each { |model, args| model.create(*args) }
[14:54:03] Mon_Ouie: or .map(&:first).uniq to get the classes
[14:55:16] vasilakisfil_: has joined #ruby
[14:55:23] jgt1: has joined #ruby
[14:56:31] sharpmachine: has joined #ruby
[14:58:32] atom3: has joined #ruby
[14:58:37] Torrieri: has joined #ruby
[14:59:11] renderful: has joined #ruby
[14:59:24] jenrzzz: has joined #ruby
[14:59:26] ttilley: has joined #ruby
[15:01:29] shazaum: has joined #ruby
[15:03:02] davedev24_: has joined #ruby
[15:04:58] p1k: has joined #ruby
[15:05:34] Rubie: has joined #ruby
[15:06:19] sarkyniin: has joined #ruby
[15:09:21] s2013: has joined #ruby
[15:11:50] mary5030: has joined #ruby
[15:12:10] rbennacer: has joined #ruby
[15:13:16] jordanm: has joined #ruby
[15:15:40] s2013: has joined #ruby
[15:16:25] bronson: has joined #ruby
[15:17:16] workmad3: has joined #ruby
[15:17:31] Ch0c0late: has joined #ruby
[15:17:57] baweaver: has joined #ruby
[15:18:01] rbennacer: has joined #ruby
[15:19:09] soulcake: has joined #ruby
[15:19:56] datanoise: has joined #ruby
[15:20:39] Mon_Ouie: has joined #ruby
[15:21:24] bohallor: has joined #ruby
[15:21:46] Aswebb_: has joined #ruby
[15:23:16] bier: has joined #ruby
[15:25:49] ejnahc: has joined #ruby
[15:27:23] senayar: has joined #ruby
[15:27:33] CHVNX: has joined #ruby
[15:29:41] quazimod1: has joined #ruby
[15:29:54] joast: has joined #ruby
[15:33:12] revath: has joined #ruby
[15:33:33] atom3: has joined #ruby
[15:34:00] flughafe1: has joined #ruby
[15:35:09] railsraider: has joined #ruby
[15:35:28] blackmesa: has joined #ruby
[15:35:40] chinmay__: has joined #ruby
[15:36:04] Affix: has joined #ruby
[15:38:18] Rubie: has joined #ruby
[15:39:02] rahul_j: has joined #ruby
[15:39:28] vudew_: has joined #ruby
[15:39:40] soulcake: has joined #ruby
[15:40:00] p1k: has joined #ruby
[15:40:05] davedev24: has joined #ruby
[15:41:53] uptownhr: has joined #ruby
[15:45:34] dross: has joined #ruby
[15:45:38] gianlucadv: has joined #ruby
[15:47:45] bpfh: has joined #ruby
[15:49:33] sinkensabe: has joined #ruby
[15:49:35] NeverDie: has joined #ruby
[15:49:42] fantazo: has joined #ruby
[15:51:39] Channel6: has joined #ruby
[15:53:34] doerteDev: has joined #ruby
[15:53:42] davedev24_: has joined #ruby
[15:55:17] e1nh4nd3r: has joined #ruby
[15:55:58] ruboto: shevy # => "\n" (https://eval.in/385018)
[15:56:11] shevy: if I modify this variable in one program
[15:56:19] shevy: that is used by other programs (.rb files)
[15:56:28] shevy: then I should reset its original value again lateron right?
[15:57:17] fsvehla: has joined #ruby
[15:57:46] jhass: shevy: if you have concerns about that you should seek a better class design with stronger encapsulation
[15:58:54] bpfh: A question for you guys: what application do you use in your workplace for help desk services? We've been trying redmine here, but the help desk thing specifically IMO is not very suited for it
[15:59:01] shevy: oh you are doing lots of assumptions; for instance, I am looking at code written by someone else
[15:59:24] jhass: but yes, if you have to modify it you should reset it
[15:59:43] shevy: the code confused me
[15:59:49] shevy: he was using: $/ = "\n\n"
[15:59:54] shevy: and then DATA.readlines.sample
[16:00:08] noethics: SIDE EFFECTS
[16:00:13] lupine: some ruby globals are thread locals
[16:00:19] lupine: I don't think $/ is one of them
[16:00:29] lupine: seriously, sometimes ruby needs to GTFO
[16:00:33] jhass: shevy: doesn't readlines take that as parameter?
[16:00:33] shevy: lupine I get scared by those globals
[16:00:46] shevy: jhass yeah, I realized that too, which made me wonder even more about that code :))
[16:00:51] maia: has joined #ruby
[16:01:03] jhass: $/ is basically just the default value for a bunch of parameters
[16:01:15] jhass: it should be a constant IMO
[16:01:35] Xeago: is there a loop_with_counter?
[16:01:39] Xeago: or something similar?
[16:01:45] shevy: or obtainable in another way, like through Kernel.method or something like that
[16:01:59] lupine: Xeago, 1.upto(number) do |i| ... end
[16:02:02] jhass: Xeago: each_with_index, Enumerator#with_index
[16:02:13] lupine: is about the closest you can get without using an external counter
[16:02:17] shevy: loop_on_steroids do {|counter| }
[16:02:19] Xeago: I don't have a ceiling number perse, and I don't have something proper to iterate over???
[16:02:21] shevy: oh damn syntax error...
[16:02:28] jhass: #times, #upto, #downto, Range#each
[16:02:37] shevy: they don't wanna give you loop on steroids Xeago!
[16:02:50] jhass: Xeago: Float::INFINITY
[16:02:53] lupine: thin wrappers around x=0; loop { x++ ; ... ; break if x == ? }
[16:02:54] Xeago: I could loop over ary.first.each_with_index :|
[16:03:07] shevy: what is the x++
[16:03:17] jhass: Xeago: if you want a concrete suggestion provide context
[16:03:18] lupine: hah, sorry, i've been away from ruby too long
[16:03:42] shevy: I usually end up using a counter in such a case with loop
[16:03:49] Xeago: jhass: I got an answer :) there's no loop_with_index :)
[16:04:00] shevy: there should be!
[16:04:00] dfockler: has joined #ruby
[16:04:05] Xeago: there totally should be
[16:04:06] Casty: has joined #ruby
[16:04:17] shevy: let's call it loopy
[16:04:18] Xeago: I'll share my code once my practice coding session is done
[16:04:30] shevy: loopy {|x| puts x }
[16:04:40] jhass: 0.upto(Float::INFINITY)
[16:04:49] jhass: but I doubt it's the best solution to your actual problem
[16:04:53] lupine: IMO ruby already has too many ways to do it
[16:04:59] shevy: let's add one more
[16:05:02] lupine: adding more sybntax is a bad idea
[16:05:08] shevy: https://xkcd.com/927/
[16:05:12] lupine: adding more stdlib is a bad idea
[16:05:16] jhass: surprisingly few stuff is syntax in Ruby
[16:05:20] lupine: adding more core is... you get the idea
[16:05:22] scx_: has joined #ruby
[16:05:25] shevy: python is bigger than ruby!
[16:05:31] lupine: surprising for some people, certainly ;)
[16:05:33] bier: has joined #ruby
[16:05:34] lupine: python is also too big
[16:05:40] bier_: has joined #ruby
[16:05:41] shevy: python-3.5.0a4.tar.xz 14M
[16:05:50] mcclurmc: has joined #ruby
[16:05:54] shevy: ruby-2.2.2.tar.xz 10M
[16:06:07] shevy: perl-5.22.0.tar.xz 11M
[16:06:11] shevy: lua is small
[16:06:41] shevy: I wonder why python is bigger. Is it because of having a larger stdlib?
[16:06:52] jhass: it's because of the utterly verbose docs
[16:07:52] wasamasa: you know, I prefer their docs for their optparse equivalent
[16:08:09] chinmay__: has joined #ruby
[16:09:02] jhass: I see, Xeago doesn't want to share their actual problem, fine
[16:09:55] shevy: optparse drives me nuts
[16:10:22] shevy: wasamasa what do you use for ARGV handling?
[16:10:46] wasamasa: shevy: in ruby?
[16:11:03] wasamasa: well, I've written one thing using slop, constantly guessing how the hell it works
[16:11:29] Ch0c0late: has joined #ruby
[16:12:03] Xeago: jhass: I'm practicing programming
[16:12:08] Xeago: I don't want to get too much help
[16:12:12] jhass: ljarvis: was your OptionParser#to_h patch accepted btw?
[16:12:17] Xeago: i.e. I don't want you to solve my problem :)
[16:12:31] shevy: jhass wants too much to solve other people's problems!
[16:12:37] ljarvis: jhass: not yet, still discussing (but they're suggesting alternatives)
[16:12:41] fantazo: has joined #ruby
[16:12:46] aphprentice: has joined #ruby
[16:12:46] Xeago: though I do have another question regarding Array
[16:12:58] shevy: make it a tough one please
[16:13:01] IrishGringo: has joined #ruby
[16:13:14] JoshGlzBrk: has joined #ruby
[16:13:15] Xeago: With h=Hash.new { Array.new } one can do h[i]<< 'foo'
[16:13:16] jhass: Xeago: cool, though come back with your solution so we can see if there are other approaches (that helps quite a lot in learning IME) ;)
[16:13:23] Xeago: jhass: definitely
[16:13:28] Xeago: can a similar thing be done to array?
[16:13:33] Xeago: I'm failing in my pry session
[16:13:42] shevy: isn't that an Array anyway
[16:14:01] Xeago: I fail because of: foo=Array.new { Array.new }; h[0] #=> nil and not array
[16:14:09] jhass: Xeago: the return value of default_proc is ignored, but you get the key and the hash yielded ;)
[16:14:24] Xeago: jhass: huh?
[16:14:47] jhass: Hash.new {|h, k| h[k] = [] }
[16:15:00] jhass: oh, you're asking about Array.new
[16:15:02] Xeago: foo = Hash.new { Array.new }; foo[0] #=> []
[16:15:17] Xeago: I want to do the same thing with an Array as container
[16:15:25] jhass: that's not like Hash.new, Array.new's block is for eager evaluation, not lazy one
[16:15:28] Xeago: I can rely on the index in the array rather then the key in a hash
[16:15:34] jhass: >> Array.new(5) {|i| i**2 }
[16:15:37] ruboto: jhass # => [0, 1, 4, 9, 16] (https://eval.in/385019)
[16:15:37] blackmesa: has joined #ruby
[16:15:49] Xeago: I don't know the number of elements yet though :'(
[16:15:55] Xeago: I'll just use a hash then
[16:16:03] jhass: yeah, sounds like a hash
[16:16:13] Xeago: I have a ordered lists of lengths
[16:16:42] Xeago: I can store that based on the index in a hash, but fairly meh
[16:17:38] jhass: well, still hard to nudge you in the right direction with zero context ;)
[16:18:13] Ch0c0late: Any better way to code convert time(AM/PM to 24 hours format)? http://hastebin.com/ejubiqedim.avrasm
[16:18:32] Xeago: I guess I can share my problem, don't provide solutions though
[16:19:58] jhass: Ch0c0late: I'd fiddle with Time#strptime and Time#strftime (both available after require "time")
[16:20:40] Ch0c0late: jhass: Yes, but I wanted to propose my own solution to see how I think stuff
[16:21:11] Xeago: The data structure: ary=[[streamer, subject, ??? ], ??? ]. Align on screen with a max_width, with minimum 2 spaces padding between the different elements in the tuple. See https://gist.github.com/Xeago/9c3f09d333a37a942603 Rather then ary.each{|e| puts e #first example }. Align it nicely second example.
[16:21:17] Xeago: jhass: questions regarding the problem?
[16:21:38] mdw: has joined #ruby
[16:23:13] Rubie: has joined #ruby
[16:23:19] jhass: Xeago: I'd just iterate twice, one time to find the maximum length (Array#max) and then for the output (String#l/rjust might get handy)
[16:23:52] joast: has joined #ruby
[16:24:17] Xeago: jhass: I need to find the maximum length for each column. Again please don't provide a solution yet :)
[16:24:40] Scripore: has joined #ruby
[16:24:47] shevy: jhass do not provide a solution!!!
[16:25:05] jhass: ACTION whispers "nested maps" and nothing more
[16:25:25] datanoise: has joined #ruby
[16:25:51] jgt: has joined #ruby
[16:26:09] Cache_Money: has joined #ruby
[16:26:17] jhass: Ch0c0late: how about extracted AM/PM with input[-3..-1] ?
[16:27:01] Ch0c0late: jhass: Good idea
[16:27:34] jhass: Ch0c0late: I'd then .chomp that of and then split(':').map(&:to_i)
[16:28:01] senayar: has joined #ruby
[16:28:01] senayar: has joined #ruby
[16:29:35] jhass: to me the comparisons feel backwards btw, I like variable == literal, to read if thing_i_am_unsure_about is foobar
[16:29:55] awer: has joined #ruby
[16:30:14] endash: has joined #ruby
[16:30:15] Carnage`: has joined #ruby
[16:31:37] Xeago: >> column_lengths = Hash.new { Array.new }; column_lengths[0]<<1; column_lengths
[16:31:38] ruboto: Xeago # => {} (https://eval.in/385023)
[16:31:40] Xeago: why is it an empty hash?
[16:31:41] AlexAltea: has joined #ruby
[16:32:36] imperator: has joined #ruby
[16:32:50] imperator: howdy folks
[16:33:16] c_nick: has joined #ruby
[16:33:36] c_nick: installation always fails while searching for sqlite3.h http://paste.ubuntu.com/11751648/
[16:35:41] jhass: Ch0c0late: so I think I'd end up with http://paste.mrzyx.de/pwyii0wyx, when avoiding strptime for some reason
[16:36:04] revath: has joined #ruby
[16:38:45] shevy: c_nick, and file /usr/include/sqlite3.h exists?
[16:39:18] shevy: not sure how windows deals with that path
[16:40:25] bougyman: Xeago: how'd it end up?
[16:40:31] bougyman: i went away for a while.
[16:41:30] peter_paule: has joined #ruby
[16:42:29] t_mmyv: has joined #ruby
[16:43:49] kobain: has joined #ruby
[16:44:35] Ch0c0late: jhass: Nice
[16:44:42] awer: hi, im trying to email a group of email address's. The first part of the email address is stored in a file and the proceeding @ and domain part are the same. I want to send the email with a message which has links in it. Thsi is what i have so far but cant seem to get it to work as i expect. can anyone advise on what i need to do please?#!/usr/bin/ruby
[16:44:49] arup_r: has joined #ruby
[16:44:50] awer: message = print "test message youtube.be/123 \n
[16:44:53] awer: #hashtag #hastag2 #hastag3"
[16:44:56] awer: email = `echo #{message} | ssmtp -vvv #{line}@groups.facebook.com`
[16:44:58] awer: File.open("/home/awer/coding/ruby/fb-sharing/id.txt", "r") do |f|
[16:44:59] c_nick: shevy: sqlite3.h is given through the option --with-sqlite3-include its there in that directory however its not picked up from there. the stackoverflow reference somehow gets the job done but not getting it at my end
[16:45:01] awer: f.each_line do |line|
[16:45:06] awer: puts email
[16:45:14] awer: http://paste.ee/p/eLiI3 - Apologies
[16:45:56] starfox_sf: has joined #ruby
[16:48:17] Ch0c0late: jhass: But your proposed solution can't handle cases such as 12:00:00AM or 12:04:04:AM
[16:48:25] ttilley: has joined #ruby
[16:51:48] _blizzy_: has joined #ruby
[16:52:24] jhass: I didn't gather that as a requirement from your code :P http://paste.mrzyx.de/ppoirokdy
[16:52:56] dseitz: has joined #ruby
[16:54:57] fsvehla: has joined #ruby
[16:56:18] bruno-: has joined #ruby
[16:57:25] sandstrom: has joined #ruby
[16:58:41] Ch0c0late: jhass: Heh, good
[16:59:44] toretore: has joined #ruby
[16:59:58] unshadow: has joined #ruby
[17:00:53] sandstrom: has joined #ruby
[17:01:19] yqt: has joined #ruby
[17:01:35] c_nick: can someone help me with sqlite3 gem installation
[17:02:08] luckyruby: has joined #ruby
[17:03:01] awer: anyone able to comment ?
[17:04:34] jacor: has joined #ruby
[17:05:44] Cache_Money: has joined #ruby
[17:05:58] vikaton: has joined #ruby
[17:06:04] workmad3: has joined #ruby
[17:08:17] bohallor: has joined #ruby
[17:09:04] sinkensabe: has joined #ruby
[17:09:27] s2013: has joined #ruby
[17:11:22] DexterLB: has joined #ruby
[17:11:45] awer: anyhelp would be appreciated.
[17:12:16] wildroman2: has joined #ruby
[17:13:14] shevy: awer I dont even know what the problem is
[17:13:29] shevy: I also dont know how ssmtp works
[17:13:43] enebo: has joined #ruby
[17:13:53] shevy: I tend to use sendmail when I need email; mail = Mail.new
[17:14:01] awer: shevy: the ssmtp part works fine
[17:14:03] shevy: mail.delivery_method :sendmail
[17:14:32] shevy: what are you doing there:
[17:14:33] shevy: File.open("/home/awer/coding/ruby/fb-sharing/id.txt", "r") do |f|
[17:14:37] nertzy: has joined #ruby
[17:14:59] awer: shevy: im trying to open a file and read each line of that file
[17:15:18] shevy: what do you mean
[17:15:24] shevy: puts email
[17:15:29] shevy: you don't seem to read anything there?
[17:15:50] shevy: anyway, use: File.readlines().each to iterate over every line
[17:16:04] shevy: I still don't know what the puts email is doing there
[17:16:07] sdegutis: has joined #ruby
[17:16:09] sdegutis: Are there any decent OCR packages for Ruby?
[17:16:26] sdegutis: I mean libraries.
[17:17:28] awer: shevy: so what I'm trying to do is to send an email with the same body of text. the email address it is going to is read from a file called id.txt. each line would indicate a new email message being sent
[17:17:32] revath: has joined #ruby
[17:17:55] Xeago: bougyman: I'm a slow coder??? :)
[17:18:17] toretore: https://code.google.com/p/tesseract-ocr/
[17:18:25] awer: shevy: because each email takes about 8 seconds to send i want each email to wait 8 seconds before the next email is sent out
[17:19:11] davedev24: has joined #ruby
[17:19:48] Xeago: awer: why not send directly from ruby? It will block until the other end has received it
[17:20:32] bougyman: Xeago: http://sprunge.us/ZPiS?ruby
[17:20:46] Xeago: don't spoil me with a solution!
[17:20:52] jud: has joined #ruby
[17:21:11] awer: Xeago: because in order for the recient to recieve the email it has to be from an email account that is logged in from a particular gmail accoutn first.
[17:21:18] shevy: we all kept on telling jhass to not spoil things
[17:21:22] shevy: and someone else does!
[17:21:27] ellisTAA: has joined #ruby
[17:21:42] Xeago: I didn't get much besides the output had three columns
[17:21:45] shevy: Xeago will either solve it - or buy a new cat
[17:21:59] Xeago: I do wonder though if it implements a max_width?
[17:22:10] ellisTAA: does anyone know why line 57 is returning an object whose class is nil? https://gist.github.com/ellismarte/98b8fb4823d6ef3de4ca#file-error-rb-L57 i have the same line of code on line 91 but it isn???t working on 57
[17:22:24] bougyman: in a fashin
[17:22:36] Xeago: each column should have a ratio to each other column determined by it's column size and each row be no longer than max_width
[17:22:41] Xeago: that is my step2
[17:24:57] endash: has joined #ruby
[17:26:10] alphaatom|pc: has joined #ruby
[17:26:59] imperator: anyone at goruco yesterday?
[17:27:23] Torrieri: has joined #ruby
[17:27:56] Spami: has joined #ruby
[17:29:18] senayar: has joined #ruby
[17:30:38] weszlem: has joined #ruby
[17:31:07] baweaver: has joined #ruby
[17:31:13] kohgpat: has joined #ruby
[17:31:28] fusillicode: has joined #ruby
[17:31:31] fusillicode: has left #ruby: ()
[17:32:01] Xeago: bougyman: I guess it doesn't help that I am watching http://video6.fra01.hls.ttvnw.net/hls59/esl_dota2_14957766528_260182963/chunked/py-index-live.m3u8?token=id=5908640832085128287,bid=14957766528,exp=1434994298,node=video6-1.fra01.hls.justin.tv,nname=video6.fra01,fmt=chunked&sig=582a4d19ca2d6f670fddbccf65d2a822e452fa63 as well, makes for pretty distracted coding
[17:32:49] bougyman: i'm not going to click that, ok?
[17:33:13] Xeago: you may, it's a dota2 stream
[17:33:22] Xeago: esl_one in frankfurt, currently bo5 finals
[17:33:48] Xeago: I'm working on https://github.com/xeago/twitch.rb
[17:34:45] mdw: has joined #ruby
[17:35:00] imperator: c_nick, what's your issue?
[17:37:36] alphaatom: has joined #ruby
[17:41:19] tvw: has joined #ruby
[17:42:31] freerobby: has joined #ruby
[17:44:41] codex: has joined #ruby
[17:46:23] dzejrou_: has joined #ruby
[17:48:02] rbennacer: has joined #ruby
[17:48:15] blackmesa: has joined #ruby
[17:49:44] blackmes1: has joined #ruby
[17:52:14] tacit7: has joined #ruby
[17:52:23] c_nick: imperator: installation always fails while searching for sqlite3.h http://paste.ubuntu.com/11751648/
[17:52:32] Deele: has joined #ruby
[17:53:04] c_nick: imperator: do have a look at the reference link i have followed that until now
[17:53:23] michael_mbp: has joined #ruby
[17:53:46] rbennacer: has joined #ruby
[17:54:28] revath: has joined #ruby
[17:55:23] imperator: c_nick, alright, let's start with where you have sqlite installed on your box
[17:55:30] imperator: those dirs look pretty odd to me
[17:55:42] imperator: what's the base directory?
[17:56:17] imperator: btw, i take it you don't want to use the precompiled binary for some reason?
[17:59:47] uptownhr: has joined #ruby
[17:59:51] serivichi: has joined #ruby
[18:00:15] flughafe2: has joined #ruby
[18:00:46] alphaatom: has joined #ruby
[18:00:53] Torrieri: has joined #ruby
[18:01:41] c_nick: has joined #ruby
[18:02:01] c_nick: imperator: sorry got disconnected
[18:03:53] ellisTAA: anyone know why my sinatra session is getting reset when i go to this route? https://gist.github.com/ellismarte/98b8fb4823d6ef3de4ca#file-error-rb-L54-L59
[18:04:10] bougyman_: has joined #ruby
[18:05:35] Casty: has joined #ruby
[18:05:39] shinnya: has joined #ruby
[18:06:19] fedexo: has joined #ruby
[18:06:28] djellemah: has joined #ruby
[18:06:34] soulcake: has joined #ruby
[18:06:52] imperator: c_nick, dunno if you saw my questions
[18:07:13] imperator: c_nick, you don't want to use the precompiled binary i take it?
[18:07:29] ellisTAA: are you talking to me?
[18:07:48] k3asd`: has joined #ruby
[18:07:52] pushpak: has joined #ruby
[18:08:44] Rubie: has joined #ruby
[18:08:58] imperator: EllisTAA, no, c_nick
[18:09:06] c_nick: imperator: Hi,, Yes I saw your question - my issue is i need to install the ruby gem sqlite3 (preferably locally) So i ran into some issues for which i tried solution from the link i have posted in references
[18:09:26] mikecmpbll: has joined #ruby
[18:09:39] ernie_: has joined #ruby
[18:09:55] c_nick: unfortunately its not able to find sqlite3.h which is available in the C:\Users\Administrator\ Desktop\sqlite-autoconf-3081002 folder
[18:10:10] sinkensabe: has joined #ruby
[18:10:12] imperator: c_nick, ok, let's start with the base directory for your sqlite
[18:11:23] c_nick: ok sqlite-autoconf-3081002 <- downloaded this then did configure make and make install by launching mysys.bad in devkit
[18:11:56] imperator: the full path is C:\Users\Administrator\Desktop\sqlite-autoconf-3081002 ?
[18:12:22] imperator: and if you look there, there are include and lib subdirectories?
[18:13:11] c_nick: there is no include nor libs. there is a hidden folder (like in linux) -> .libs
[18:13:25] workmad3: has joined #ruby
[18:13:41] imperator: ok, strange
[18:13:48] c_nick: I thought gcc was looking explicitly for libs and include so i copied .libs as lib folder and created an include having sqlite3.h and sqlite3ext.h
[18:14:05] quimrstorres: has joined #ruby
[18:15:05] k3asd`: has joined #ruby
[18:16:32] c_nick: imperator: http://picpaste.com/try-eb9x7qPq.png
[18:17:16] imperator: alright, if you make 'lib' and 'include' dirs yourself, then you should be able to do "--with-sqlite3-dir=C:/Users/Administrator/Desktop/sqlite-autoconf-3081002"
[18:20:47] c_nick: imperator: same issue http://paste.ubuntu.com/11752149/
[18:21:07] c_nick: gcc is explitly appending include and lib folder to the command link
[18:21:59] mikecmpbll: is there a simpler (shorter) way of getting a array without a particular index than arr.reject.with_index{ |_, i| i == x } ?
[18:22:07] mikecmpbll: where x is the undesired index.
[18:22:35] mikecmpbll: it should return the new array and not affect the original
[18:22:58] shevy: so you want the inverse of a .select there
[18:23:13] c_nick: mikecmpbll: array.map {|s| s != x}
[18:23:34] mikecmpbll: c_nick: that has nothing to do with the index, though? :)
[18:23:46] jhass: yours looks pretty good to me, a.values_at(*(a.size.times.to_a-[x])) perhaps
[18:24:43] mikecmpbll: ah ok cool. feels like there's a convenience method i'm missing, but i'll stick with that then
[18:24:47] c_nick: there is a direct way to achieve this if i am not mistaken like array.delete_at() or something. it should return a new array though
[18:24:55] datanoise: has joined #ruby
[18:25:02] mikecmpbll: ^my thoughts, but after looking there doesn't seem to be
[18:25:26] jhass: oh well, good point though, could just .dup.tap {|a| a.delete_at() }
[18:26:27] OrbitalKitten: has joined #ruby
[18:26:45] rindolf: has joined #ruby
[18:26:56] mikecmpbll: tap returns the original though
[18:27:12] mikecmpbll: i'd like to be able to chain it. all good tho.
[18:28:03] jhass: mikecmpbll: you can totally chain it, tap's what makes it possible
[18:28:04] imperator: c_nick, may not matter, but try forward slashes
[18:28:05] spider-mario: has joined #ruby
[18:28:36] mikecmpbll: >> 2.tap { |a| 2 }
[18:28:37] zipace: has joined #ruby
[18:28:37] ruboto: mikecmpbll # => 2 (https://eval.in/385123)
[18:28:42] mikecmpbll: >> 2.tap { |a| 3 }
[18:28:43] ruboto: mikecmpbll # => 2 (https://eval.in/385124)
[18:28:48] imperator: c_nick, also check privs - might need to use admin shell
[18:28:50] mikecmpbll: i'm being an idiot
[18:29:19] yqt: has joined #ruby
[18:29:49] senayar: has joined #ruby
[18:31:53] nofxxx: has joined #ruby
[18:32:06] mikecmpbll: delete_at is 35% or so faster, thanks ;) not that it matters but may as well make it faster eh ;)
[18:32:41] dgutierrez1287: has joined #ruby
[18:32:55] alphaatom|pc: has joined #ruby
[18:34:13] dzejrou: has joined #ruby
[18:34:14] alphaatom: has joined #ruby
[18:34:47] Cache_Money: has joined #ruby
[18:35:15] sharpmachine: has joined #ruby
[18:36:02] quimrstorres: has joined #ruby
[18:36:14] tcrypt: has joined #ruby
[18:37:17] renderful: has joined #ruby
[18:37:18] ttilley: has joined #ruby
[18:38:13] c_nick: imperator: done that , i am the admin so it should work, am missing something else here, i compiled like linus but this is windows
[18:41:49] pontiki: has joined #ruby
[18:43:16] Spami: has joined #ruby
[18:46:24] mary5030: has joined #ruby
[18:47:03] solars: has joined #ruby
[18:47:05] Spami: has joined #ruby
[18:47:51] kahuna_: has joined #ruby
[18:47:53] nahtnam: has joined #ruby
[18:48:50] Cache_Money: has joined #ruby
[18:49:10] shevy: hey pontiki
[18:49:14] shevy: finally some action again here
[18:49:43] Tau: has joined #ruby
[18:49:50] atom3: has joined #ruby
[18:49:53] revath: has joined #ruby
[18:50:14] imperator: c_nick, not sure, i think i would just use the precompiled binary
[18:50:29] imperator: gem install sqlite3 - Just Works
[18:50:51] sandstrom: has joined #ruby
[18:52:03] codex: has joined #ruby
[18:52:16] djbkd: has joined #ruby
[18:55:52] kalusn: has joined #ruby
[18:56:17] uptownhr: has joined #ruby
[18:57:42] iamninja: has joined #ruby
[18:57:48] rindolf: has joined #ruby
[19:02:02] alphaatom: has joined #ruby
[19:02:28] ruv: has joined #ruby
[19:04:30] c_nick: imperator: ok i will try that, strange the package u download is sqlite3-1.3.10 while the package thats getting downloaded from the ruby gem archive on doing gem install is sqlite3-1.3.10-x86-mingw32.gem
[19:05:07] sinkensabe: has joined #ruby
[19:05:24] vasilakisfil_: has joined #ruby
[19:05:30] djellemah: has joined #ruby
[19:06:25] peter_paule: has joined #ruby
[19:07:28] Cache_Money: has joined #ruby
[19:08:19] soulcake: has joined #ruby
[19:08:21] c_nick: imperator: thanks for the help :)
[19:08:26] Alina-malina: has joined #ruby
[19:08:36] Cache_Money: has joined #ruby
[19:12:59] imperator: c_nick, the "x86-mingw32" is a rubygems thing
[19:13:16] imperator: it's just letting you know that this is a precompiled 32-bit binary for mingw on x86
[19:13:28] imperator: (i.e. that's normal)
[19:15:20] c_nick: imperator: hmm that was the issue, well resolved now. this gem got installed
[19:15:54] yfeldblum: has joined #ruby
[19:16:41] c_nick: bye for now tc
[19:16:44] c_nick: has left #ruby: ()
[19:17:12] ellisTAA: it seems that when i request data from my databse my session gets reset ??? is this something that happens?
[19:18:07] pyon: has joined #ruby
[19:18:45] bougyman_: has joined #ruby
[19:18:47] ellisTAA: whenever i go to this route my session gets reset https://gist.github.com/ellismarte/98b8fb4823d6ef3de4ca#file-error-rb-L54-L59
[19:18:58] jhass: how do you verify that claim?
[19:19:52] ellisTAA: when i go to any other page the session still exists, when i click the search bar it resets my session so it doesn???t exist
[19:20:03] ellisTAA: here???s my page https://enigmatic-sea-2215.herokuapp.com/
[19:20:33] ellisTAA: if u sign in and then try to search it will sign you out, you can tell bc after you search your name disappears form the top left corner
[19:20:53] creakybones: has joined #ruby
[19:20:53] creakybones: has joined #ruby
[19:21:21] jhass: if I sign in with wrong credentials it crashes your app
[19:21:35] ellisTAA: yeah i???ve got to fix that
[19:22:28] pontiki: https://gist.github.com/ellismarte/98b8fb4823d6ef3de4ca#file-error-rb-L54 is this literally what you have? i think that would be a syntax error
[19:22:46] ellisTAA: pontiki: i fixe that already but thanks
[19:23:03] jhass: EllisTAA: also I won't spend any minute on this until it stores passwords using BCrypt
[19:23:15] ellisTAA: i do use bcrypt!
[19:23:21] Tau: is there something like twisted for ruby?
[19:23:28] jhass: @user.password == params[:password]
[19:23:29] Tau: twisted python.
[19:23:37] Tau: interesting.
[19:23:52] jhass: Tau: eventmachine?
[19:23:59] Tau: jhass i'm new to ruby.
[19:24:10] jhass: I'm not 100% sure what Twisted is
[19:24:12] Tau: starting it today.
[19:24:22] toretore: eventmachine is what you're looking for
[19:24:26] alphaatom: has joined #ruby
[19:24:49] m8: has joined #ruby
[19:25:10] ellisTAA: password is the brcrypt method ...
[19:25:34] doctorly: has joined #ruby
[19:26:17] mozzarella: yeah, eventmachine and twisted are similar
[19:26:35] jhass: well, I have no proof of that and you didn't provide demo credentials
[19:26:38] doctorly: has joined #ruby
[19:27:09] jhass: my cookie doesn't change while doing a search while signed out
[19:27:27] shevy: jhass has a cookie
[19:27:42] ellisTAA: yeah the cookie doesn???t change but the name @ the top disappears and clicking the button doesn???t send u to the results page until you click it twice
[19:27:47] shevy: and hopefully also a tea
[19:28:11] jhass: EllisTAA: you realize that you don't show how you display the name so we still have no way to verify your claim?
[19:28:53] jhass: and still no demo creds
[19:29:17] msgodf: has joined #ruby
[19:29:24] ellisTAA: ok https://github.com/ellismarte/new_neesh/tree/users-can-save-links
[19:29:27] slackbotgz: has joined #ruby
[19:30:24] jhass: https://github.com/ellismarte/new_neesh/blob/users-can-save-links/app/views/index.erb#L4 ?
[19:30:27] ellisTAA: oops just updated it
[19:30:33] jhass: that's only in the template for the index route
[19:30:42] senayar: has joined #ruby
[19:31:04] toretore: you need to move the display-username logic to the layout
[19:31:09] ellisTAA: oh ok yes i see
[19:31:15] toretore: and set @user in some sort of filter instead
[19:31:17] avahey: has joined #ruby
[19:31:25] JoshGlzB_: has joined #ruby
[19:31:33] ellisTAA: ill google that
[19:35:04] Carnage\: has joined #ruby
[19:35:10] ellisTAA: this line throws an error: https://github.com/ellismarte/new_neesh/blob/users-can-save-links/app/views/results.erb#L13 & i???m expecting the variable to be coming from here https://github.com/ellismarte/new_neesh/blob/users-can-save-links/app/controllers/index.rb#L55
[19:36:31] amclain: has joined #ruby
[19:37:13] ellisTAA: #<NoMethodError: undefined method `id' for nil:NilClass>
[19:37:45] pontiki: EllisTAA: why do you think @user might be nil at that point?
[19:38:00] ellisTAA: no effin idea. it works in every other route
[19:39:05] quimrstorres: has joined #ruby
[19:39:30] Scripore: has joined #ruby
[19:39:51] fabrice31: has joined #ruby
[19:40:26] blue_deref: has joined #ruby
[19:40:32] pontiki: maybe you want to see what's actually in session at that point in your controller
[19:41:42] ellisTAA: when i run puts session[:user_id] it returns nothing but in every other route it returns the id
[19:42:08] codecop: has joined #ruby
[19:44:44] Cache_Money: has joined #ruby
[19:48:45] User458764: has joined #ruby
[19:48:50] sandstrom: has joined #ruby
[19:48:50] endash: has joined #ruby
[19:50:25] baweaver: has joined #ruby
[19:51:18] scottschecter: has joined #ruby
[19:52:36] NeverDie: has joined #ruby
[19:52:53] adac: has joined #ruby
[19:54:09] swgillespie: has joined #ruby
[19:54:48] bronson: has joined #ruby
[19:55:42] ledestin: has joined #ruby
[19:57:48] Boohbah: has joined #ruby
[19:58:14] Boohbah: authors of rubygems don't seem to understand the concept of API stability
[19:58:29] Boohbah: heck, ruby itself
[19:58:35] jhass: semver is actually not unpopular
[20:02:03] Channel6: has joined #ruby
[20:02:21] Torrieri: has joined #ruby
[20:02:29] TheHodge: has joined #ruby
[20:02:51] atom3_: has joined #ruby
[20:03:20] luzidco: has joined #ruby
[20:03:39] Scripore: has joined #ruby
[20:04:42] blackmes1: has joined #ruby
[20:04:43] theery: has joined #ruby
[20:04:59] peter_paule: has joined #ruby
[20:05:59] Xeago: has joined #ruby
[20:06:41] tsvenson: has joined #ruby
[20:08:15] vasilakisfil_: has joined #ruby
[20:08:57] Papierkorb: has joined #ruby
[20:10:24] Xeago: How do I get ratio's? 2 / 3 #=> 2/3
[20:10:49] datanoise: has joined #ruby
[20:11:11] ruboto: jhass # => (2/3) (https://eval.in/385160)
[20:11:14] GnuYawk: has joined #ruby
[20:11:34] Xeago: SyntaxError: unexpected tIDENTIFIER, expecting end-of-input :O
[20:11:53] Xeago: what version does that require?
[20:11:58] jhass: 20>> Rational(2, 3)
[20:11:59] ruboto: jhass # => (2/3) (https://eval.in/385161)
[20:12:10] jhass: 21>> 2/3r
[20:12:11] ruboto: jhass # => (2/3) (https://eval.in/385162)
[20:12:14] jhass: 20>> 2/3r
[20:12:15] ruboto: jhass # => /tmp/execpad-159fddd4b44b/source-159fddd4b44b:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/385163)
[20:12:18] jhass: interesting
[20:12:45] al2o3-cr: yeah i and r was 2.1
[20:12:57] doctorly: has joined #ruby
[20:13:00] centrx: has joined #ruby
[20:14:12] k3asd`: has joined #ruby
[20:14:29] al2o3-cr: 20>> 3.5.to_r
[20:14:30] ruboto: al2o3-cr # => (7/2) (https://eval.in/385165)
[20:16:46] Xeago: al2o3-cr: but that is lossy, isn't it?
[20:17:14] al2o3-cr: Xeago: to be frank, yeah
[20:17:23] Xeago: ah fookin chruby
[20:17:27] Xeago: and chgems
[20:17:41] Xeago: chgems reads the environment before spawning a subshell
[20:17:42] fsvehla: has joined #ruby
[20:18:18] Xeago: setting up GEM_HOME to be .gem/ruby/OUTER_SHELL_VERSION/
[20:18:34] jhass: bundler <3
[20:18:35] crdpink2: has joined #ruby
[20:18:37] Xeago: within the shell it spawns it doesn't take the outer ruby from chruby :|
[20:18:43] Xeago: I'm using 2.1.3 gems on 2.0.0
[20:18:52] havenwood: has joined #ruby
[20:18:54] Xeago: jhass: I use bundler within chgems
[20:19:05] jhass: I use bundler without any gemsets
[20:19:05] Xeago: jhass: I don't want to ever pollute system gems
[20:19:23] jhass: --path vendor/bundle
[20:19:30] jhass: install: --user-install
[20:19:44] jhass: and chruby sets GEM_HOME to $HOME/.gem/$ruby too
[20:19:54] jhass: system gems are only installed via package manager
[20:19:55] Xeago: jhass: I chruby first and then chgems
[20:20:11] Xeago: jhass: default gem install on osx tries to install systemwide if I'm not mistaken
[20:20:25] jhass: for the system ruby perhaps, thus second point
[20:21:25] Xeago: yea, I know that chgems (and chruby) both are easily replaced by some environment variables or flags
[20:21:33] Xeago: but sometimes it's just easier to not have to bother
[20:22:02] jhass: second point goes into ~/.gemrc
[20:22:07] yorickpeterse: ladies *tips non existing fedora*
[20:22:34] Xeago: also hit and run style gem tryouts are quite nice with chgems
[20:24:35] k3asd`: has joined #ruby
[20:26:02] ttilley: has joined #ruby
[20:31:52] alphaatom: has joined #ruby
[20:41:18] Al3ks: has joined #ruby
[20:42:27] Mon_Ouie: has joined #ruby
[20:42:48] WildBamboo-Josh: has joined #ruby
[20:43:31] nux443: has joined #ruby
[20:44:52] jlast: has joined #ruby
[20:46:57] gaucheph__: has joined #ruby
[20:48:44] _blizzy_: has joined #ruby
[20:49:20] sharpmachine: has joined #ruby
[20:50:29] ReK2: has joined #ruby
[20:50:29] ReK2: has joined #ruby
[20:51:49] luzidco: has joined #ruby
[20:54:46] jlast_: has joined #ruby
[20:56:12] Limix: has joined #ruby
[20:56:14] iamninja: has joined #ruby
[20:56:33] dross: has joined #ruby
[20:56:58] charliesome: has joined #ruby
[20:56:58] jlast: has joined #ruby
[21:03:19] chris2: has joined #ruby
[21:05:30] Cache_Money: has joined #ruby
[21:09:09] e1nh4nd3r: has joined #ruby
[21:10:05] Vile`: has joined #ruby
[21:11:57] datanoise: has joined #ruby
[21:13:18] jacor: has joined #ruby
[21:13:43] vasilakisfil__: has joined #ruby
[21:15:23] lkba: has joined #ruby
[21:15:46] dzejrou: has joined #ruby
[21:18:19] yoongkang: has joined #ruby
[21:21:20] olistik: has joined #ruby
[21:26:03] subtwo: has joined #ruby
[21:28:37] Asher: has joined #ruby
[21:28:40] fabrice31: has joined #ruby
[21:29:37] awer_: has joined #ruby
[21:30:26] dfockler: has joined #ruby
[21:31:48] Pupeno: has joined #ruby
[21:31:50] dross: has joined #ruby
[21:31:56] jfarmer: has joined #ruby
[21:34:04] rafaelsales: has joined #ruby
[21:36:05] skysploit: has joined #ruby
[21:36:41] zeroDivisible: has joined #ruby
[21:37:54] Ilyas_: has joined #ruby
[21:38:06] MatthewsFace: has joined #ruby
[21:43:03] endash: has joined #ruby
[21:43:31] zeroDivisible: has joined #ruby
[21:44:08] bronson: has joined #ruby
[21:49:00] shevy: yorickpeterse oh you tipped fedora users!
[21:49:09] workmad3: has joined #ruby
[21:50:29] alphaatom|pc: has joined #ruby
[21:52:07] JoshL: has joined #ruby
[21:52:07] soulcake: has joined #ruby
[21:52:38] yorickpeterse: they really should call that m'lady Linux
[21:54:02] yorickpeterse: hm, that actually has a certain ring to it
[21:54:02] DLSteve: has joined #ruby
[21:54:15] yorickpeterse: "m'lady Linux" rolls off the tongue pretty well too
[21:57:08] cappsio_: has joined #ruby
[21:57:16] pontiki: has joined #ruby
[21:57:35] zeroDivisible: has joined #ruby
[22:01:17] WildBamboo-Josh: has joined #ruby
[22:01:28] decoponio: has joined #ruby
[22:02:13] allomov: has joined #ruby
[22:03:19] theery: has joined #ruby
[22:04:03] Pupeno_: has joined #ruby
[22:06:55] rcs: has joined #ruby
[22:09:13] Al3ks: has joined #ruby
[22:09:48] Liothen: has joined #ruby
[22:09:52] kenichi: has joined #ruby
[22:10:49] quimrstorres: has joined #ruby
[22:14:12] Pupeno: has joined #ruby
[22:14:12] Pupeno: has joined #ruby
[22:15:39] Pisuke: has joined #ruby
[22:15:51] Igorshp: has joined #ruby
[22:17:06] Log1x: has joined #ruby
[22:17:06] Log1x: has joined #ruby
[22:17:50] Igorshp: has joined #ruby
[22:17:57] bturker: has joined #ruby
[22:18:02] baweaver: has joined #ruby
[22:20:27] larissa: has joined #ruby
[22:20:43] JoshGlzBrk: has joined #ruby
[22:21:20] waxjar: has joined #ruby
[22:21:26] RealMarc: has joined #ruby
[22:21:43] auraka: has joined #ruby
[22:21:46] rmoriz: has joined #ruby
[22:21:55] sparr: has joined #ruby
[22:22:04] Gadgetoid: has joined #ruby
[22:22:09] BackEndCoder: has joined #ruby
[22:22:15] Pisuke: has joined #ruby
[22:23:32] ttilley: has joined #ruby
[22:24:26] joe2: has joined #ruby
[22:24:50] jokester: has joined #ruby
[22:26:04] unclouded: has joined #ruby
[22:26:11] datanoise: has joined #ruby
[22:28:46] dgutierrez1287: has joined #ruby
[22:31:03] danoo_: has joined #ruby
[22:31:32] djbkd: has joined #ruby
[22:32:11] freerobby: has joined #ruby
[22:32:24] papercod1: has joined #ruby
[22:32:34] theery: has joined #ruby
[22:32:37] senayar: has joined #ruby
[22:34:05] kent\n: malady linux represents how I see it appropriately.
[22:35:16] Casty: has joined #ruby
[22:35:52] kent\n: because Fedora is sick bruv.
[22:36:07] ZOMGITSABEAR1: ACTION tips fedora
[22:37:27] olistik: has joined #ruby
[22:38:42] uptownhr: has joined #ruby
[22:39:29] Mon_Ouie: has joined #ruby
[22:39:38] Ropeney: has joined #ruby
[22:43:55] yoongkang: has joined #ruby
[22:44:36] h4sh3dN4m3: has joined #ruby
[22:46:34] baweaver: has joined #ruby
[22:46:50] rafaelsales: has joined #ruby
[22:47:49] sharpmachine: has joined #ruby
[22:48:51] uptownhr: has joined #ruby
[22:49:57] Agoldfish: has joined #ruby
[22:50:08] lucianob: has joined #ruby
[22:50:46] bkxd: has joined #ruby
[22:51:04] theery: has joined #ruby
[22:51:30] skysploit: has joined #ruby
[22:51:50] Limix: has joined #ruby
[22:53:29] sarkyniin: has joined #ruby
[22:53:32] tmoor: has joined #ruby
[22:54:19] charliesome: has joined #ruby
[22:55:53] Blizzy: has joined #ruby
[22:56:04] davorb: has joined #ruby
[22:56:26] davorb: i'm using httparty with 1.8.7
[22:56:26] robbyoconnor: has joined #ruby
[22:56:39] davorb: every time i make a request it adds "connection: close" to the headers
[22:56:56] davorb: well, actually, it's net::http that does this
[22:57:13] davorb: in any case, is there a way for me to do a request with httparty without sending that header?
[22:57:26] kent\n: what is the problem with it sending that header?
[22:57:42] lupine: pretty rubbish if you want to keep the connection open for extra requests
[22:57:57] lupine: not sure httparty supports that though
[22:58:28] lupine: ACTION snuggles the go net/http impl
[23:01:13] jhass: davorb: 1.8.7 is out of official support
[23:01:31] jhass: even its successor 1.9.3 is
[23:01:59] toretore: i don't think net/http nor httparty supports persistent connections
[23:02:23] davorb: jhass: i realize that, but i just took over a project this week that is held together with duct tape and it's too early to change
[23:02:36] davorb: kent\n: the problem is that the server will give me a 403 if that header is present
[23:02:58] toretore: davorb: what is it for?
[23:03:20] davorb: i think i'll just monkey patch the stdlib if i can't find a good solution
[23:03:51] davorb: toretore: basically if i do a get to this page with that header present, i get a 403 https://www.sherrihill.net/login
[23:03:58] toretore: so you're actually going to close the connection after receiving the body?
[23:04:06] davorb: toretore: yes.
[23:04:16] toretore: ok then it should kinda work
[23:04:52] jhass: https://github.com/ruby/ruby/blob/ruby_1_8_7/lib/net/http.rb#L1036
[23:05:02] jhass: set it to something that doesn't cause a 403 ?
[23:05:20] davorb: jhass: it's not my site, but i need to connect to that site and log in to it
[23:05:32] davorb: so that's the problem. i can't change how their server reacts.
[23:05:36] jhass: how's that relevant to my answer?
[23:06:07] jhass: https://github.com/ruby/ruby/blob/ruby_1_8_7/lib/net/http.rb#L1073 https://github.com/ruby/ruby/blob/ruby_1_8_7/lib/net/http.rb#L1076 all set it only if not set already
[23:06:12] toretore: oh right, just override it
[23:06:51] jhass: I'd try to set it to other valid values or even garbage (empty string, newline whatever)
[23:06:53] davorb: jhass: oh, sorry. i thought you meant i should set the server to something that doesn't give the 403. but yeah, i'm thinking the same thing, will have to monkey patch net::http.
[23:07:11] toretore: and it looks like you can do persistent connections
[23:07:45] davorb: jhass: ah, thanks for those on ~L1076. didn't see those.
[23:08:15] davorb: good idea, i'll try that.
[23:09:40] davorb: yeah, setting it to something else didn't work
[23:09:48] ellisTAA: has joined #ruby
[23:10:59] Cache_Money: has joined #ruby
[23:11:16] rbennacer: has joined #ruby
[23:11:21] toretore: can i make bundler put a gem in vendor/cache without installing it locally first?
[23:12:14] jhass: a specific one? don't think so. But maybe you want bundle package ?
[23:13:29] toretore: it's not installed locally, i only need it on the server
[23:14:39] jhass: bundle package does them all I think, matching your groups platform or not
[23:15:18] toretore: but doesn't that require me to bundle install it first? i don't really know much about bundler tbh
[23:15:55] jhass: I wouldn't expect so, if you have a lock that is
[23:16:39] CpuID: has joined #ruby
[23:17:12] fabrice31: has joined #ruby
[23:17:59] startupality: has joined #ruby
[23:18:16] toretore: yeah it's still trying to install it
[23:18:51] senayar: has joined #ruby
[23:19:05] uptownhr: has joined #ruby
[23:19:19] arooni-mobile: has joined #ruby
[23:20:20] Fluent_: has joined #ruby
[23:20:45] ur5us: has joined #ruby
[23:21:07] Fluent_: So, I'm in a little stupid debate
[23:21:12] Fluent_: Just looking for opinions
[23:21:30] Fluent_: When submitting code publicly, I was told this is an issue
[23:21:47] Fluent_: Using != True instead of using == False, of course they both do the same thing logically
[23:21:55] quimrstorres: has joined #ruby
[23:21:57] Fluent_: But one claims it's the 'double negative' of the programming world
[23:22:18] toretore: >> true != True
[23:22:19] ruboto: toretore # => uninitialized constant True (NameError) ...check link for more (https://eval.in/385223)
[23:22:37] Fluent_: foo == False, or foo != True
[23:22:59] toretore: where do you get `False` and `True` from?
[23:23:06] Fluent_: Some value
[23:23:16] Fluent_: >> foo = False; foo != True
[23:23:17] ruboto: Fluent_ # => uninitialized constant False (NameError) ...check link for more (https://eval.in/385224)
[23:23:27] toretore: so you have two constants named True and False?
[23:23:38] Fluent_: No, that's not what I mean
[23:23:48] Fluent_: You have some statement you are checking the condition if it's true of false
[23:23:54] Fluent_: well checking if it's false
[23:23:58] Fluent_: by using != True
[23:24:08] toretore: come up with some real, working code and you'll gen a better answer
[23:24:10] Fluent_: But I was told to change that to if it == False instead
[23:24:12] mozzarella: why not use !cond
[23:24:18] mozzarella: or unless cond
[23:24:22] Fluent_: Fine, it will be like 2 seconds
[23:25:11] Fluent_: >> foo = false; puts foo == false? 'hi' : nil
[23:25:12] ruboto: Fluent_ # => /tmp/execpad-bb03981598df/source-bb03981598df:2: syntax error, unexpected tSTRING_BEG, expecting key ...check link for more (https://eval.in/385226)
[23:25:21] Fluent_: Meh, let me work this out
[23:25:33] bakedb: has joined #ruby
[23:25:54] mozzarella: don't ever use == true or == false
[23:26:04] mozzarella: it's redundant
[23:26:04] Fluent_: http://repl.it/t6Z/1
[23:26:10] Fluent_: http://repl.it/t6Z
[23:26:11] davorb: ok, turns out it wasn't the header. i have no idea why i can't access sherrihill.net with httparty, while it works just fine with every other client out there.
[23:26:13] Fluent_: Same thing logically
[23:26:41] armyriad: has joined #ruby
[23:28:00] davedev24_: has joined #ruby
[23:28:08] jfarmer: has joined #ruby
[23:28:08] mozzarella: "unless foo" or "if !foo"
[23:28:15] toretore: first of all, you wouldn't do `== true` in ruby
[23:28:19] tractatus: has joined #ruby
[23:28:29] Fluent_: This isn't directly geared towards ruby
[23:28:39] Fluent_: Just in general procedural languages
[23:28:39] mozzarella: it's the same in every language
[23:29:06] mozzarella: why test a boolean against another boolean? it's already a boolean
[23:34:40] Pupeno: has joined #ruby
[23:35:17] tacit7: has joined #ruby
[23:35:34] atom3: has joined #ruby
[23:35:45] startupality: has joined #ruby
[23:38:03] workmad3: has joined #ruby
[23:39:12] Torrieri: has joined #ruby
[23:39:17] quazimodo: has joined #ruby
[23:40:39] Pupeno: has joined #ruby
[23:41:19] apt-get_: has joined #ruby
[23:41:52] ltd: has joined #ruby
[23:44:50] Limix: has joined #ruby
[23:47:22] blackmesa: has joined #ruby
[23:48:27] houhoulis: has joined #ruby
[23:48:46] swgillespie: has joined #ruby
[23:53:27] e1nh4nd3r: has joined #ruby
[23:54:39] h4sh3dN4m3: has joined #ruby
[23:56:06] Cache_Money: has joined #ruby
[23:57:07] MatthewsFace: has joined #ruby
[23:57:39] MatthewsFace: has joined #ruby
[23:58:41] Cache_Money: has left #ruby: ()
[23:59:22] CloCkWeRX: has joined #ruby
[23:59:59] phizzbuzz: has joined #ruby