« Back to channel list

#ruby - 05 August 2015

« Back 1 day Forward 1 day »
[00:00:06] eam: Unicorn|: if this is for a game, you will want to use something like the gosu gem to handle keypresses
[00:00:20] tubuliferous_: has joined #ruby
[00:00:42] Ox0dea: > use sdl for your console game
[00:01:05] eam: Ox0dea: the sdl gems are in kinda poor shape, have you tried 'em?
[00:01:10] Unicorn|: Ok, I'll look at it. And I just wanted to make sure that the program doesn't end right away
[00:01:45] Ox0dea: eam: Oh, I seem to have mistakenly assumed Gosu depended on SDL.
[00:01:56] hashrocket: has joined #ruby
[00:02:03] Kyuujitsu: has joined #ruby
[00:02:10] gaboesquivel: has joined #ruby
[00:02:38] eam: I prefer libsdl, fwiw, but the best maintained and easiest to use gem I found for ruby was gosu
[00:02:53] nfk: has joined #ruby
[00:03:33] eam: everything's opengl though, so there are odd issues with things like large textures
[00:03:47] CloCkWeRX: has joined #ruby
[00:04:13] CloCkWeRX: has left #ruby: ()
[00:04:13] Ox0dea: eam: Gosu *does* depend on SDL.
[00:04:22] zenspider: eam: I'm changing that
[00:04:53] eam: Ox0dea: not surprised -- but there's no access to just plain old surfaces and so on
[00:04:57] graydot: has joined #ruby
[00:04:58] eam: zenspider: fantastic :)
[00:04:58] Ox0dea: eam: My greentext stands; recommending a multimedia library to handle console input is lulzy.
[00:04:59] zenspider: dfockler: you can make an xnor by nand or nor
[00:05:22] zenspider: eam: gosu bugged me. I am wrapping ruby-sdl to be "usable" (ENTIRELY MY DEFINITION of usable)
[00:05:26] dfockler: well just combine your keys together then :P
[00:05:31] eam: zenspider: that's even more fantastic
[00:05:49] eam: actually, maybe I'm even interested in helping ...
[00:06:00] Ox0dea: dfockler: NAND + NOR = AND; what am I supposed to do with an AND?
[00:06:07] zenspider: right now it is optimized for osx (just because of fonts)... but I'm open to cross platform changes that are straightforward
[00:06:21] zenspider: eam: take a look https://github.com/zenspider/graphics
[00:06:29] zenspider: I'm about to cut a beta soon
[00:06:39] eam: I don't even have a linux box with a graphics display right now, unless I count the rpi in my garage
[00:06:50] dimasg: has joined #ruby
[00:07:23] Kyuujitsu: has joined #ruby
[00:07:44] eam: (and there's no way I'm doing development on that)
[00:07:57] Pupeno: has joined #ruby
[00:08:03] hashrocket: has joined #ruby
[00:08:14] dimasg: has joined #ruby
[00:08:23] zenspider: eh. then just go critique the examples by code reading...
[00:09:07] eam: zenspider: oh, I'll build on osx :)
[00:09:13] htmldrum: has joined #ruby
[00:09:43] zenspider: if you have homebrew... there's a shell script at the top that'll set up everything you need
[00:09:51] zenspider: and run through a couple sanity tests
[00:11:34] Musashi007: has joined #ruby
[00:12:24] dfockler: zenspider: this looks cool
[00:13:45] shevy: wheeee zenspider goes 3D :D
[00:13:52] lannonbr: has joined #ruby
[00:14:07] rehat: has joined #ruby
[00:14:24] zenspider: the biggie for me was wanting to be able to use normal maths
[00:14:44] dfockler: instead of weird x/y coords?
[00:14:45] zenspider: so I fixed it to use right hand rule rotation and to use quadrant 1
[00:14:57] bruno-: has joined #ruby
[00:14:59] zenspider: I wanted my trig functions to work normally
[00:15:00] Igorshp: has joined #ruby
[00:15:50] Aeyrix: has joined #ruby
[00:16:34] dfockler: that is pretty nice not having to think of the screen as being at a 45 degree angle upside down
[00:16:54] nfk: has joined #ruby
[00:16:55] rjno: has joined #ruby
[00:17:02] Kyuujitsu: has joined #ruby
[00:17:11] ivanskie: has joined #ruby
[00:17:28] zenspider: it especially bugged me that it wasn't quadrant 4 (negative Y)... but quadrant 1 flipped
[00:17:32] johny_: has joined #ruby
[00:17:38] johny_: Hi everyone
[00:17:57] Inside: has joined #ruby
[00:17:57] Inside: has joined #ruby
[00:18:01] swgillespie: has joined #ruby
[00:19:14] dfockler: hey I saw a window! It worked!
[00:20:22] ruby_: has joined #ruby
[00:21:18] ruby_: I have a todo app in rails and I want to edit a todo and delete a todo and not sure how to create the view to do so, Please Help
[00:21:19] zenspider: dfockler: fantastic
[00:21:28] ruboto: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[00:22:03] pengin: has joined #ruby
[00:22:05] zenspider: I just got some labs back. I gotta go home and cook a 1 lb ribeye to celebrate.
[00:22:26] zenspider: dfockler: write some examples and throw them at me!
[00:22:30] dopie: has joined #ruby
[00:23:28] ruby_: @ruboto, I cant post in the RubyOnRails chatroom
[00:25:59] centrx: And...it's gone
[00:26:37] khebbie: has joined #ruby
[00:27:36] Radar: I see the intelligence test for #rubyonrails is still working wonders.
[00:27:41] Kyuujitsu: has joined #ruby
[00:27:53] Azure: has joined #ruby
[00:28:28] Ox0dea: Which was the first thousand-story building?
[00:29:04] auzty: has joined #ruby
[00:29:26] havenwood: has joined #ruby
[00:30:12] Igorshp: has joined #ruby
[00:30:44] j_mcnally: has joined #ruby
[00:31:20] j_mcnally: has joined #ruby
[00:34:02] Pupeno: has joined #ruby
[00:34:04] hashrocket: has joined #ruby
[00:34:26] zenspider: make that a 25 oz ribeye. holy crap that's big
[00:34:32] zenspider: already in the oven... but only 41 degrees. it's gonna take aw hile
[00:34:36] zenspider: ...a while.
[00:34:59] dfockler: zenspider: did that graphics library need a gemspec, because I wrote one to install it
[00:35:28] leesharma: has joined #ruby
[00:35:49] Oog: has joined #ruby
[00:36:54] zenspider: dfockler: not the way I do my gems, no
[00:37:06] dfockler: oh how do you install them?
[00:37:24] zenspider: dfockler: for what you're doing, you need not install at all
[00:37:27] bradleyprice: has joined #ruby
[00:37:31] zenspider: rsdl -Ilib example/boids.rb for example
[00:37:41] wldcordeiro_: has joined #ruby
[00:37:43] zenspider: (press d! then press b and s to make the radius bigger and smaller)
[00:38:20] Kyuujitsu: has joined #ruby
[00:38:21] zenspider: rake newb && rake install_gem will suffice locally... I'm about to release a beta versioned gem tho, so just gem install will work after that
[00:38:24] dfockler: oh! yeah! -I does includes that path huh
[00:38:34] Rollabunna: has joined #ruby
[00:38:39] michael_mbp: has joined #ruby
[00:42:00] rgs: has left #ruby: ()
[00:42:33] sevenseacat: has joined #ruby
[00:42:40] eam: dependencies: reminding me why I like to stay away from the apex of product code and instead do lower level stuff
[00:42:42] woobywooby: has joined #ruby
[00:42:45] baroquebobcat_: has joined #ruby
[00:42:50] woobywooby: anyone familiar with twilio here?
[00:43:19] Kyuujitsu: has joined #ruby
[00:43:28] woobywooby: trying to get the image url from a text but params[MediaUrl0] outputs a link to the image the image address itself
[00:43:42] woobywooby: link to the image rather than the image address itself*
[00:45:13] tkuchiki: has joined #ruby
[00:45:20] millerti: has joined #ruby
[00:45:31] woobywooby: normally a link to the image would be fine but i need the image address itself because imagemagick on heroku spits out "ERROR: no decode delegate for this image format"
[00:46:22] dopie: has joined #ruby
[00:48:04] woobywooby: this might be a unique problem huh
[00:49:09] centrx: What's twilio
[00:49:20] dgutierrez1287: has joined #ruby
[00:49:29] Azure: has joined #ruby
[00:49:35] ruboto: I don't know anything about ruby
[00:49:47] woobywooby: your name is ruboto
[00:49:48] weemsledeux: has joined #ruby
[00:49:56] centrx: That's the bot
[00:50:51] ruboto: I don't know anything about ruby
[00:50:58] tuelz: has joined #ruby
[00:52:29] woobywooby: somebody save me
[00:52:30] ragingcake: has joined #ruby
[00:52:43] woobywooby: in smallville opening theme music
[00:52:46] baweaver: has joined #ruby
[00:52:59] Kyuujitsu: has joined #ruby
[00:53:56] centrx: woobywooby, Have you tried #twilio ?
[00:54:05] jhack: has joined #ruby
[00:54:05] jhack: has joined #ruby
[00:54:52] woobywooby: i didnt know such a thing existed
[00:55:15] RobertBi_: has joined #ruby
[00:56:55] mistym: raz: The rootless issue you mentioned seems to already be fixed in the latest 10.11 dev beta. Your user should upgrade!
[00:57:15] ivanskie: has joined #ruby
[00:57:45] zenspider: I just released graphics v1.0.0b1!
[00:58:08] zenspider: http://blog.zenspider.com/releases/2015/08/graphics-version-1-0-0b1-has-been-released.html
[01:01:14] woobywooby: centrx i think most people in #twilio is afk
[01:02:41] Kyuujitsu: has joined #ruby
[01:03:17] dimasg: has joined #ruby
[01:03:54] hashrocket: has joined #ruby
[01:03:58] raz: mistym: oh cool, good to know, thx!
[01:10:55] allcentury: has joined #ruby
[01:11:09] shevy: hmm what is this doing? @game_pause ^= true
[01:11:30] beef-wellington: has joined #ruby
[01:11:39] Igorshp: has joined #ruby
[01:11:57] s00pcan: has joined #ruby
[01:12:22] Kyuujitsu: has joined #ruby
[01:14:12] gaboesquivel: has joined #ruby
[01:14:29] zenspider: my place smells delicious
[01:14:57] tuelz: has joined #ruby
[01:14:58] zenspider: shevy: clever toggle
[01:15:10] wldcordeiro_: has joined #ruby
[01:16:33] zenspider: 21 more degrees to go... argh I'm humbry
[01:17:23] Channel6: has joined #ruby
[01:18:19] d10n-work: has joined #ruby
[01:19:11] ipstatic: has joined #ruby
[01:20:10] j3r0: has joined #ruby
[01:20:57] mjuszczak: has joined #ruby
[01:21:06] ipstatic: is there a way to operate on the assignment of a variable in a .each block? For example I am reading a file line by line and would love to run .strip on the assignment of line so I don't have to inside the block. file.each |line.strip| vs file.each |line|
[01:21:35] Kyuujitsu: has joined #ruby
[01:21:38] Vile`: has joined #ruby
[01:21:41] arescorpio: has joined #ruby
[01:21:43] jpfuentes2: has joined #ruby
[01:22:01] centrx: ipstatic, use #map ?
[01:22:04] cpruitt: has joined #ruby
[01:22:49] ipstatic: centrx: heh, why didn't I think of that
[01:23:18] woobywooby: does anyone know how to deal with this
[01:23:19] woobywooby: ERROR: no decode delegate for this image format `/tmp/magick-wLG2p7Dv' @ error/svg.c/ReadSVGImage/2871
[01:23:27] mjuszczak: has joined #ruby
[01:23:39] woobywooby: it works fine on my mac but on heroku it throws that error out
[01:24:47] baweaver: http://stackoverflow.com/questions/4900905/imagemagick-and-paperclip-problem
[01:24:55] yfeldblum: has joined #ruby
[01:25:01] MrButh: has joined #ruby
[01:26:22] gambl0re: how many of you consider yourself fluent in ruby?
[01:26:43] baweaver: depends on what the result is of claiming so :P
[01:26:56] woobywooby: baweaver unfortunately my problem is only inside of heroku
[01:26:58] msnyon_: has joined #ruby
[01:27:06] Kyuujitsu: has joined #ruby
[01:27:10] baweaver: what have you tried?
[01:27:11] zenspider: ARGH.... 12 degrees
[01:27:33] zenspider: gambl0re: I only pretend to be
[01:27:40] baweaver: zenspider: deepfreeze coding?
[01:27:42] gambl0re: what does that mean
[01:27:45] woobywooby: tried what? i dont have paperclip installed
[01:27:45] j_mcnally: has joined #ruby
[01:27:55] zenspider: baweaver: 12 degrees to go up to 125
[01:28:12] zenspider: woobywooby: is it an svg??
[01:28:41] woobywooby: it seems like it from the error message but it's really a link to a png image
[01:28:45] zenspider: gambl0re: .ca implies you're not ESL, so you know what pretend means
[01:28:49] rakm: has joined #ruby
[01:28:59] woobywooby: which is finicky but it works on my system
[01:29:07] zenspider: woobywooby: a link? should you be reading it first and handing it the raw data?
[01:29:30] omegamike: has joined #ruby
[01:29:44] woobywooby: not sure how to do that, it's a twilio mediurl0 link
[01:30:05] woobywooby: meaning i get it from a text like this params['MediaUrl0']
[01:30:10] minmax: has joined #ruby
[01:30:35] zenspider: is it a uri, or is it a binary blob?
[01:30:37] gambl0re: you pretend to be fluent in ruby?
[01:30:47] gambl0re: so you're saying that you're not fluent in ruby?
[01:30:49] zenspider: and what imagemagick method are you calling? what does it take?
[01:31:26] baweaver: I know enough to be extremely dangerous to myself and others in my immediate git proximity
[01:31:26] woobywooby: im actually calling a zbarimg
[01:31:41] woobywooby: which triggers imagemagick
[01:31:50] zenspider: git proximity... I like that. like a grenade
[01:31:50] dgutierrez1287: has joined #ruby
[01:32:01] baweaver: or a force push
[01:32:48] MatrixBridge: has joined #ruby
[01:32:51] Rollabunna: has joined #ruby
[01:33:16] zenspider: woobywooby: ZBar::Image.new?
[01:33:18] MatrixBridge1: has joined #ruby
[01:33:18] baweaver: Really though, fluency is a very vague term to use as a qualifier of skill gambl0re
[01:33:55] zenspider: `ZBar::Image.from_jpeg(File.read('test.jpg')).process` implies that you need to hand it the blob, not a uri.
[01:33:58] kies^: has joined #ruby
[01:34:46] zenspider: easiest way, if it isa uri, is to use open-uri.
[01:34:57] chipotle: has joined #ruby
[01:35:02] zenspider: open(uri).read or URI.parse(uri).read
[01:35:10] woobywooby: zenspider: no zbarimg -q http://api.twilio.com/2010-04-01/Accounts/ACc7c65972d8789ebf6c9325c2d8e23bb1/Messages/MM2c5099e9149559b93f3dada69eb7c4ce/Media/MEd8564b1618b2f1ad5395e6a7a4af5bf3
[01:35:23] woobywooby: ^this works on my system fine but not on heroku
[01:35:52] zenspider: daaamnit... 5 more degrees
[01:36:13] MatrixBridge: has joined #ruby
[01:36:29] zenspider: seems like a problem with heroku, rather than your code
[01:36:57] Kyuujitsu: has joined #ruby
[01:37:20] zenspider: `curl -LI http://api.twilio.com/2010-04-01/Accounts/ACc7c65972d8789ebf6c9325c2d8e23bb1/Messages/MM2c5099e9149559b93f3dada69eb7c4ce/Media/MEd8564b1618b2f1ad5395e6a7a4af5bf3` shows it resolving correctly after several redirects. seems to have Content-Type and Content-Length correctly
[01:38:04] umop3plsdn: has joined #ruby
[01:38:06] Rollabunna: has joined #ruby
[01:38:07] woobywooby: zenspider i get redirect forbidden
[01:38:49] zenspider: I suggest you take it up with heroku support
[01:38:58] zenspider: maybe try #heroku or somesuch
[01:38:59] fullofcaffeine: has joined #ruby
[01:39:31] mjuszczak: has joined #ruby
[01:39:57] zenspider: A watched steak never cooks
[01:40:13] baweaver: almost sounds like you're cooking over there zenspider
[01:40:30] Ox0dea: zenspider: "Humbry" is "humbly hungry"?
[01:40:30] baroquebobcat_: has joined #ruby
[01:41:00] zenspider: right now there's nothing humble about it. I'm dying
[01:41:03] woobywooby: this is true despair
[01:41:16] zenspider: ugh. and making my place waaaaarm
[01:42:03] Yzguy: has joined #ruby
[01:42:35] Kyuujitsu: has joined #ruby
[01:43:28] luckyme: has joined #ruby
[01:44:16] zenspider: yay! searing time!
[01:45:11] Synthbread: has joined #ruby
[01:45:52] Synthbread: has joined #ruby
[01:46:07] ivanskie: has joined #ruby
[01:46:15] ragingcake: has joined #ruby
[01:46:56] Rollabunna: has joined #ruby
[01:47:55] fullofcaffeine: has joined #ruby
[01:48:52] ragingcake: has joined #ruby
[01:49:02] tubuliferous_: has joined #ruby
[01:50:58] ragingcake: has joined #ruby
[01:52:23] baroquebobcat_: has joined #ruby
[01:52:25] Kyuujitsu: has joined #ruby
[01:52:27] ragingcake: has joined #ruby
[01:53:02] tenderlove: has joined #ruby
[01:54:01] ragingcake: has joined #ruby
[01:54:19] woobywooby: zenspider thanks i got it working
[01:55:41] mjuszczak: has joined #ruby
[01:56:01] ragingcake: has joined #ruby
[01:56:19] tuelz: has joined #ruby
[01:56:45] hazelux: has joined #ruby
[01:56:51] benlovell: has joined #ruby
[01:56:56] zenspider: woobywooby: what was it?
[01:56:59] tenderlove: has joined #ruby
[01:57:33] cnngimenez: has joined #ruby
[01:57:37] Asher: has joined #ruby
[01:57:39] woobywooby: had to use open uri redirect
[01:57:50] fullofcaffeine: has joined #ruby
[01:58:16] woobywooby: struggled with many problems surrounding that feature since friday
[01:58:26] nettoweb: has joined #ruby
[01:59:11] SpecialBlue: has joined #ruby
[02:00:40] nettoweb: has joined #ruby
[02:03:27] zenspider: ok... off to nerd party. hopefully I can demo my library
[02:04:25] swgillespie: has joined #ruby
[02:04:49] dimasg: has joined #ruby
[02:04:53] Igorshp: has joined #ruby
[02:05:11] GriffinHeart: has joined #ruby
[02:05:30] wldcordeiro_: has joined #ruby
[02:05:48] Igorshp: has joined #ruby
[02:07:10] zacstewart: has joined #ruby
[02:07:14] Ox0dea: The first building with over a thousand stories was...
[02:07:26] Kyuujitsu: has joined #ruby
[02:11:47] mjuszczak: has joined #ruby
[02:11:58] Oog: has joined #ruby
[02:13:14] michaelryu: has joined #ruby
[02:17:27] Kyuujitsu: has joined #ruby
[02:18:20] Rixius: has joined #ruby
[02:18:51] mjuszczak: has joined #ruby
[02:20:09] joneshf-laptop: has joined #ruby
[02:20:13] bruno-: has joined #ruby
[02:21:02] Aeyrix: Ox0dea: Stories? The library of Alexandria.
[02:21:06] Aeyrix: Storeys? The Pyramids.
[02:22:42] dimasg: has joined #ruby
[02:22:46] Kyuujitsu: has joined #ruby
[02:22:54] tcrypt: has joined #ruby
[02:25:16] woodruffw: has joined #ruby
[02:25:18] leesharma: has joined #ruby
[02:25:55] Ox0dea: He's good.
[02:26:07] dopie: has joined #ruby
[02:26:36] Ox0dea: I was indeed looking for The Library at Alexandria.
[02:28:05] Kyuujitsu: has joined #ruby
[02:29:04] iGaves: has joined #ruby
[02:30:55] CorySimmons: has joined #ruby
[02:33:24] Kyuujitsu: has joined #ruby
[02:36:35] akurilin: has joined #ruby
[02:37:44] Oka: has joined #ruby
[02:38:08] rickmasta: has joined #ruby
[02:38:09] devoldmx: has joined #ruby
[02:38:32] mjuszczak: has joined #ruby
[02:38:47] Kyuujitsu: has joined #ruby
[02:41:32] graydot: has joined #ruby
[02:41:37] omegamike: has joined #ruby
[02:43:44] Kyuujitsu: has joined #ruby
[02:45:33] jmhmccr: has joined #ruby
[02:46:43] devoldmx: has joined #ruby
[02:50:47] MVPhelp_: has joined #ruby
[02:52:14] tkuchiki: has joined #ruby
[02:53:08] unsymbol: has joined #ruby
[02:53:48] Kyuujitsu: has joined #ruby
[02:54:01] Pupeno_: has joined #ruby
[02:54:21] GriffinHeart: has joined #ruby
[02:54:29] sarmiena_: has joined #ruby
[02:55:19] sdwrage: has joined #ruby
[02:56:37] qiukun: has joined #ruby
[02:56:58] iateadonut: has joined #ruby
[02:57:48] MVPhelp: has joined #ruby
[02:58:11] PhantomS_: has joined #ruby
[02:59:08] Kyuujitsu: has joined #ruby
[03:02:15] jonee: has joined #ruby
[03:02:48] dopie: has joined #ruby
[03:04:08] Kyuujitsu: has joined #ruby
[03:06:40] unsymbol: has joined #ruby
[03:07:33] railswebdev: has joined #ruby
[03:08:25] fullofcaffeine: has joined #ruby
[03:08:28] Ox0dea: > mfw https://github.com/ch11ng/exwm
[03:09:20] Kyuujitsu: has joined #ruby
[03:09:30] jcdesimp: has joined #ruby
[03:11:05] ecksit: has joined #ruby
[03:12:12] ragingcake: has joined #ruby
[03:12:49] speaking1ode: has joined #ruby
[03:13:33] tanath: has joined #ruby
[03:13:54] j4cknewt: has joined #ruby
[03:13:55] zacstewart: has joined #ruby
[03:14:10] braincrash: has joined #ruby
[03:14:35] Kyuujitsu: has joined #ruby
[03:14:46] hashrocket: has joined #ruby
[03:16:26] rackquestion: has joined #ruby
[03:17:39] luckyme: has joined #ruby
[03:18:42] ecksit: has joined #ruby
[03:19:54] Kyuujitsu: has joined #ruby
[03:21:52] mdavid613: has joined #ruby
[03:23:30] mrod: has joined #ruby
[03:24:59] texasmade: has joined #ruby
[03:25:09] jcdesimp_: has joined #ruby
[03:25:17] BTRE: has joined #ruby
[03:25:59] rcs: has joined #ruby
[03:27:28] djstorm: has joined #ruby
[03:27:32] rubyrack: has joined #ruby
[03:28:07] mrod: Hi, I'm trying to write tests for my gem. It relies on a websocket object that I create with another gem. I want to pre-define the data that comes down the websocket but I'm not sure how to load my mock classes. Here's my code: https://github.com/mikerodrigues/orderbook/blob/master/lib/orderbook.rb and mocks https://gist.github.com/mikerodrigues/27f880806e917a879a3b Am I going about this the right way?
[03:29:18] Vile`: has joined #ruby
[03:29:46] Kyuujitsu: has joined #ruby
[03:29:57] sarmiena_: has joined #ruby
[03:30:25] j4cknewt: has joined #ruby
[03:30:47] mrod: I don't see how I can have my code use the mock classes without rewriting the code to the point of making the tests too contrived.
[03:31:29] fullofcaffeine: has joined #ruby
[03:31:34] deavid: has joined #ruby
[03:33:20] theery: has joined #ruby
[03:34:09] gix: has joined #ruby
[03:35:34] darkf: has joined #ruby
[03:37:33] tubuliferous_: has joined #ruby
[03:38:20] Inside: has joined #ruby
[03:39:30] j_mcnally: has joined #ruby
[03:39:47] Kyuujitsu: has joined #ruby
[03:40:05] swgillespie: has joined #ruby
[03:40:26] baweaver: has joined #ruby
[03:40:31] wldcordeiro_: has joined #ruby
[03:41:01] fullofcaffeine: has joined #ruby
[03:41:23] ofdtrinity: has left #ruby: ("Leaving")
[03:44:36] CorySimmons: has joined #ruby
[03:44:46] j_mcnally: has joined #ruby
[03:45:37] Kyuujitsu: has joined #ruby
[03:47:17] Trynemjoel: has joined #ruby
[03:49:09] the4tress: has joined #ruby
[03:49:15] freerobby: has joined #ruby
[03:49:36] the4tress: is this the best place to ask questions about the liquid templating engine?
[03:50:24] Ox0dea: the4tress: Are you using Liquid in a Rails app? :P
[03:50:51] the4tress: Ox0dea: im trying to work with desk.com
[03:50:55] the4tress: which uses liquid
[03:50:55] j_mcnally: has joined #ruby
[03:50:58] Kyuujitsu: has joined #ruby
[03:51:14] the4tress: but it looks like liquid was created for ruby apps... not sure if it is only used in ruby apps
[03:51:30] the4tress: first day messing with it
[03:52:10] ybian: has joined #ruby
[03:52:59] jgpawletko: has joined #ruby
[03:53:16] dgutierrez1287: has joined #ruby
[03:54:33] theery: has joined #ruby
[03:56:19] Kyuujitsu: has joined #ruby
[03:56:49] arup_r: has joined #ruby
[03:57:06] benlovell: has joined #ruby
[03:59:11] Iskarlar: has joined #ruby
[04:00:22] pawnbox: has joined #ruby
[04:01:17] Kyuujitsu: has joined #ruby
[04:02:24] chipotle: has joined #ruby
[04:03:36] codecop: has joined #ruby
[04:04:40] dopie: has joined #ruby
[04:05:38] Iskarlar: has joined #ruby
[04:05:53] j_mcnally: has joined #ruby
[04:08:05] j4cknewt: has joined #ruby
[04:09:27] lkba: has joined #ruby
[04:09:40] brianpWins: has joined #ruby
[04:09:55] zacstewart: has joined #ruby
[04:10:02] fullofca_: has joined #ruby
[04:11:13] ascarter: has joined #ruby
[04:11:39] theery: has joined #ruby
[04:13:32] saddad: has joined #ruby
[04:13:59] pawnbox_: has joined #ruby
[04:15:37] Kyuujitsu: has joined #ruby
[04:18:04] rickmasta: has joined #ruby
[04:18:50] rjno: has joined #ruby
[04:19:59] jonee: has joined #ruby
[04:20:05] xcesariox: has joined #ruby
[04:20:30] havenwood: has joined #ruby
[04:22:39] wldcordeiro_: has joined #ruby
[04:25:06] astrobun_: has joined #ruby
[04:25:14] Kyuujitsu: has joined #ruby
[04:25:50] swgillespie: has joined #ruby
[04:28:26] khebbie: has joined #ruby
[04:28:32] psye: has joined #ruby
[04:28:39] aldodelgado: has joined #ruby
[04:29:06] kjones_: has joined #ruby
[04:29:28] aldodelgado: has left #ruby: ()
[04:30:39] Kyuujitsu: has joined #ruby
[04:30:44] aldodelgado: has joined #ruby
[04:30:46] ragingcake: has joined #ruby
[04:34:19] unsymbol: has joined #ruby
[04:36:29] Kyuujitsu: has joined #ruby
[04:40:15] benlovell: has joined #ruby
[04:40:41] fedexo: has joined #ruby
[04:42:20] tcrypt: has joined #ruby
[04:42:26] swgillespie: has joined #ruby
[04:42:36] astrobun_: has joined #ruby
[04:43:21] Oog: has joined #ruby
[04:44:49] jonee: has joined #ruby
[04:46:03] elton: has left #ruby: ()
[04:46:35] Kyuujitsu: has joined #ruby
[04:47:25] Rutix: has joined #ruby
[04:47:25] Rutix: has joined #ruby
[04:47:28] prefixed: has joined #ruby
[04:48:38] theery: has joined #ruby
[04:50:37] havenwood: prefixed: hi
[04:51:35] Kyuujitsu: has joined #ruby
[04:51:36] prefixed: why isn't this regex matching? http://pastebin.com/U43jLrY9
[04:51:37] ruboto: prefixed, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/705af052c271c2506f97
[04:51:37] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[04:51:43] busterarm: has joined #ruby
[04:53:35] kannan4k: folks, can anyone help me understand this code -> https://gist.github.com/kannan4k/99ae3363ed0755411fde
[04:55:39] zacstewart: has joined #ruby
[04:57:13] Ox0dea: kannan4k: Is that *all* of the data?
[04:57:31] havenwood: prefixed: so it's escaping your anchor: /\.TEST\$/
[04:57:51] Trynemjoel: has joined #ruby
[04:58:00] bustrarm: has joined #ruby
[04:58:00] kannan4k: Ox0dea, that's all I got it, but it can vary I guess
[04:58:11] kannan4k: oh wait, let me get you another one
[04:58:40] GriffinHeart: has joined #ruby
[04:58:50] prefixed: havenwood anchor?
[04:59:08] Ox0dea: prefixed: The '$'.
[04:59:21] havenwood: prefixed: instead of `/\.TEST$/` it's converting to `/\.TEST\$/`.
[04:59:27] prefixed: how do I make it not escape it
[04:59:39] havenwood: prefixed: array = [/\.TEST$/]
[05:00:02] kannan4k: Ox0dea, here is the long one -> https://gist.github.com/kannan4k/99ae3363ed0755411fde#gistcomment-1543562
[05:00:06] prefixed: havenwood what if that array is part of a json object?
[05:00:13] havenwood: >> array = ['\.TEST$'].map { |s| Regexp.new s }
[05:00:14] ruboto: havenwood # => [/\.TEST$/] (https://eval.in/412075)
[05:00:49] havenwood: prefixed: just do it a way that the anchor ($) doesn't get escaped
[05:01:34] Kyuujitsu: has joined #ruby
[05:01:50] prefixed: havenwood I don't understand. what "other" way is there?
[05:01:58] prefixed: I need to union an array of regexes
[05:01:58] pawnbox: has joined #ruby
[05:02:10] Ox0dea: kannan4k: Well, the point seems to be to symbolize the keys, but it's also wrapping sub-Hashes in Arrays, which seems sort of pointless.
[05:02:11] havenwood: prefixed: but they're not Regexps they're Strings?
[05:02:36] havenwood: prefixed: if it was an Array of Regexps you'd not have the problem, like I pointed out ^
[05:03:04] prefixed: havenwood I pass some regexes in via a json array. the problem there is that the regexes need to be strings in the json object
[05:03:11] havenwood: prefixed: see the second example above for mapping an Array of Strings to Regexps without escaping
[05:03:34] TvL2386: has joined #ruby
[05:03:52] kannan4k: Ox0dea, keys you mean, "users" and "jobcodes" ?
[05:04:03] duderonomy: has joined #ruby
[05:04:39] railsraider: has joined #ruby
[05:04:59] xcesariox: has joined #ruby
[05:05:17] Ox0dea: ~ $ ri Regexp.union | grep to_regexp -B1 | paste -s
[05:05:18] Ox0dea: Note: the arguments for ::union will try to be converted into a regular expression literal via #to_regexp.
[05:05:20] Ox0dea: Uh... what?
[05:05:29] Ox0dea: >> 'foo'.method(:to_regexp) rescue $!
[05:05:30] ruboto: Ox0dea # => #<NameError: undefined method `to_regexp' for class `String'> (https://eval.in/412076)
[05:05:46] graydot: has joined #ruby
[05:06:19] jeremy04_: has joined #ruby
[05:07:03] pkh: has joined #ruby
[05:08:15] Ox0dea: Oh, right. #to_regexp is a coercer.
[05:08:48] havenwood: >> ['\.TEST$'].map &Regexp.public_method(:new)
[05:08:49] ruboto: havenwood # => [/\.TEST$/] (https://eval.in/412077)
[05:09:26] riotjones: has joined #ruby
[05:10:08] Ox0dea: Imagine if non-nullary methods returned "themselves" when called with no arguments.
[05:10:17] Ox0dea: You could say map(&Regexp.new).
[05:10:20] riotjones: has joined #ruby
[05:11:23] Kyuujitsu: has joined #ruby
[05:11:34] gambl0re: has joined #ruby
[05:12:02] skade: has joined #ruby
[05:12:29] niiamon: has joined #ruby
[05:13:17] DoubleMalt: has joined #ruby
[05:15:30] devbug: has joined #ruby
[05:16:37] Kyuujitsu: has joined #ruby
[05:17:19] niiamon: has joined #ruby
[05:19:51] hailong: has joined #ruby
[05:20:13] leesharma: has joined #ruby
[05:21:22] Trynemjoel: has joined #ruby
[05:23:03] brianpWins: has joined #ruby
[05:24:50] njr: has joined #ruby
[05:25:06] baweaver: Ox0dea: Most of the idea I'm not entirely fond of the no parens on Ruby
[05:25:46] tubuliferous_: has joined #ruby
[05:26:04] baweaver: You sacrifice a ton of practical usage for a minor semantical convenience.
[05:26:08] stevednd: has joined #ruby
[05:26:17] Aeyrix: I use parens whenever there's more than one arg.
[05:26:45] havenwood: I always use parens when it breaks the interpreter not to.
[05:27:21] baweaver: Ignoring the hate of Javascript in some cases, it has the gist of the idea. A function isn't called unless it has at least () on the end.
[05:27:26] baweaver: Same with Python
[05:27:53] baweaver: More typing? Yes. Being able to pass _anything_ around as a function? Worth it.
[05:28:05] ElSif: closures are so nice :D
[05:28:52] aganov: has joined #ruby
[05:29:01] Ox0dea: baweaver: I disagree. Ruby lets us do what $other does, whereas $other programmers don't get a choice.
[05:30:32] Ox0dea: ElSif: Could you clarify the context of your comment?
[05:30:56] baweaver: then again send methods and public_method are slow aren't they?
[05:31:19] ruboto: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[05:31:23] Trynemjoel: has joined #ruby
[05:31:26] pawnbox: has joined #ruby
[05:31:52] Ox0dea: baweaver: * is slow.
[05:31:53] ElSif: uhhh hmmm, you can also use closures when you might use an anonymous function, and they are nice
[05:32:30] baweaver: closures are anonymous functions
[05:32:40] Ox0dea: baweaver: + an environment.
[05:32:40] baweaver: and mentioning something as slow isn't offtopic
[05:32:47] baweaver: it's discussing ruby
[05:32:59] ElSif: function pointer and binding context right Ox0dea?
[05:33:00] Ox0dea: baweaver: Methinks you've missed the humor bit.
[05:33:07] Ox0dea: ElSif: Oui.
[05:33:16] Ox0dea: Which Ruby has in spades, thus my asking for clarification.
[05:33:46] ElSif: but are they nice?
[05:34:22] baweaver: >> def divisible_by(n) -> x { x % n } end; (1..10).select(&divisible_by(3))
[05:34:23] ruboto: baweaver # => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] (https://eval.in/412080)
[05:34:29] Ox0dea: ElSif: The timing of your comment struck me as praise for $other for having closures.
[05:34:31] baweaver: >> def divisible_by(n) -> x { x % n == 0 } end; (1..10).select(&divisible_by(3))
[05:34:32] ruboto: baweaver # => [3, 6, 9] (https://eval.in/412081)
[05:34:57] baweaver: divisible_by returns a function which remembers n
[05:35:24] baweaver: >> def divisible_by(n) -> x { x % n == 0 } end; d3 = divisible_by(3); (1..10).select(&d3)
[05:35:25] ruboto: baweaver # => [3, 6, 9] (https://eval.in/412082)
[05:35:44] ElSif: Ox0dea: i can see it being a bit random :)
[05:35:47] baweaver: you can even assign them to variables, pass them around, the possibilities are interesting.
[05:36:06] Kyuujitsu: has joined #ruby
[05:36:20] Ox0dea: ElSif: Ill-informed, if nothing else. :P
[05:36:24] Ox0dea: No harm done, of course.
[05:36:53] ElSif: i know theres a difference, and how to put it in code, but english is not code :(
[05:36:54] Trynemjoel: has joined #ruby
[05:37:08] ElSif: but you can code in english...
[05:37:15] baweaver: A closure is a function that closes around the state in which it was defined
[05:37:33] baweaver: s/state/environment/ if you like
[05:38:31] Ox0dea: ElSif: I know of Shakespeare and LOLCODE; what're some other examples?
[05:39:00] Ox0dea: Forgot Chef.
[05:39:22] ElSif: turing complete languages?
[05:39:34] Ox0dea: I know Chef and LOLCODE are, not sure about the first.
[05:40:26] Ox0dea: ElSif: To clarify, I'm asking about languages in which one can code in English, loosely interpreted.
[05:40:36] railsraider: has joined #ruby
[05:40:40] ElSif: lol gotcha
[05:40:52] Aeyrix: That Arnold Schwarzenegger language
[05:40:56] ElSif: c++ templates are turing complete in context
[05:41:03] ElSif: of runtime i think?
[05:41:23] ElSif: template daemon time?
[05:41:36] ElSif: is that english?
[05:41:40] Ox0dea: I think not.
[05:41:47] Ox0dea: ArnoldC is, though.
[05:42:43] ElSif: ive never used one, do people every try to execute shakespeare plays ??
[05:43:08] cornerma1: has joined #ruby
[05:43:35] ElSif: LOLCODE reads very shakespearian
[05:44:34] yardenbar: has joined #ruby
[05:45:47] Kyuujitsu: has joined #ruby
[05:46:24] Trynemjoel: has joined #ruby
[05:47:26] riotjones: has joined #ruby
[05:47:33] zacstewart: has joined #ruby
[05:50:30] hazelux: has joined #ruby
[05:50:38] astrobun_: has joined #ruby
[05:52:20] ElSif: Shakespeare is probably my favorite, thanks Ox0dea
[05:54:20] jackjackdripper: has joined #ruby
[05:55:12] pawnbox: has joined #ruby
[05:55:14] Kyuujitsu: has joined #ruby
[05:55:18] swgillespie: has joined #ruby
[05:58:41] Alayde: In trying to understand this (http://techoverflow.net/blog/2013/12/29/solve-invalid-multibyte-escape-xfe-xff-in-ruby-vpim/), is it a fair assumption that the ruby interpreter will set encoding based solely on adding a comment like that to the top of a file?
[05:59:34] Ox0dea: Alayde: That's right.
[05:59:45] Alayde: Interesting. I learned something pretty kick ass today
[06:00:14] Kyuujitsu: has joined #ruby
[06:00:16] AlexRussia: has joined #ruby
[06:01:05] Ox0dea: ElSif: Happy to have assisted your discovery. The semantics make for unpleasantly rigid constructions that don't read very well, in my opinion.
[06:01:15] Ox0dea: Beatnik (https://esolangs.org/wiki/Beatnik) is a lot more malleable in that regard.
[06:01:22] FooMunki: has joined #ruby
[06:01:49] axisys: has joined #ruby
[06:02:23] Ox0dea: > mfw Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch in that alphabet program
[06:04:58] _blizzy_: has joined #ruby
[06:06:41] safeforge: has joined #ruby
[06:07:44] jenrzzz: has joined #ruby
[06:09:30] devbug_: has joined #ruby
[06:09:35] s2013: has joined #ruby
[06:13:33] andikr: has joined #ruby
[06:13:39] _blizzy_: has joined #ruby
[06:18:51] schaerli: has joined #ruby
[06:21:51] bruno-: has joined #ruby
[06:22:33] Synthead: has joined #ruby
[06:26:55] Axy: has joined #ruby
[06:32:18] chipotle: has joined #ruby
[06:33:27] lkba_: has joined #ruby
[06:33:54] Askilada: has joined #ruby
[06:34:06] TomyLobo: has joined #ruby
[06:34:34] brianpWins: has joined #ruby
[06:34:35] ohaibbq: has joined #ruby
[06:35:01] krz: has joined #ruby
[06:40:33] unsymbol: has joined #ruby
[06:45:10] DoubleMalt: has joined #ruby
[06:47:05] zacstewart: has joined #ruby
[06:47:45] solars: has joined #ruby
[06:50:02] GriffinHeart: has joined #ruby
[06:50:50] Macaveli: has joined #ruby
[06:51:09] ap4y: has joined #ruby
[06:53:07] rdark: has joined #ruby
[06:53:25] dgutierrez1287: has joined #ruby
[06:53:38] _joes_: has joined #ruby
[06:54:08] fella6s: has joined #ruby
[06:55:37] pawnbox: has joined #ruby
[06:56:12] scorp007: has joined #ruby
[06:56:40] scorp007: When embedding, is it possible to make a class only creatable from the host but not the script?
[06:57:06] Ox0dea: scorp007: Please clarify.
[06:57:18] railswebdev: has joined #ruby
[06:57:37] scorp007: rb_define_class will create a scripter-visible class definition. They call Foo.new it up.
[06:57:45] Ox0dea: scorp007: Undefine #new?
[06:57:59] scorp007: Will that prevent the host application from newing it?
[06:58:09] scorp007: that's no good then.
[06:58:29] Ox0dea: Sorry, I misinterpreted "host" there.
[06:58:44] Ox0dea: scorp007: Lemme tinker.
[06:58:44] scorp007: I.e. will it prevent rb_class_new_instance from working?
[06:58:51] Ox0dea: It shouldn't, no.
[06:58:57] scorp007: oh, then that's fine
[06:58:57] Oog: has joined #ruby
[06:59:13] scorp007: if I can rb_class_new_instance but they can't Foo.new, then I'm good.
[06:59:39] scorp007: I'll give it a shot, thanks.
[06:59:44] Ox0dea: Happy to help.
[07:00:49] ragingcake: has joined #ruby
[07:01:00] Axy: has joined #ruby
[07:01:00] Axy: has joined #ruby
[07:01:31] lapide_viridi: has joined #ruby
[07:02:47] ragingcake: has joined #ruby
[07:05:41] omfgtora: has joined #ruby
[07:05:42] skade: has joined #ruby
[07:06:48] kwd: has joined #ruby
[07:07:22] Ox0dea: scorp007: Works like a charm. :)
[07:08:31] kp666: has joined #ruby
[07:09:36] kp666: has joined #ruby
[07:11:28] niiamon: has joined #ruby
[07:11:28] pawnbox: has joined #ruby
[07:12:46] Ox0dea: scorp007: You're aware that Fiddle/FFI can be made to reattach your initializer, yes?
[07:13:56] tubuliferous_: has joined #ruby
[07:14:34] ragingcake_: has joined #ruby
[07:16:15] niiamon: has joined #ruby
[07:16:31] noethics: has joined #ruby
[07:19:30] tkrajcar: has joined #ruby
[07:19:41] qiukun: has joined #ruby
[07:20:08] nhhagen: has joined #ruby
[07:20:14] chipotle: has joined #ruby
[07:21:40] leesharma: has joined #ruby
[07:21:59] keeguon: has joined #ruby
[07:24:30] charliesome: has joined #ruby
[07:25:11] arturmartins: has joined #ruby
[07:25:39] cajone: has left #ruby: ()
[07:26:59] ap4y: has joined #ruby
[07:28:06] cibs: has joined #ruby
[07:28:12] Iskarlar: has joined #ruby
[07:28:54] lsmola: has joined #ruby
[07:29:43] bayed: has joined #ruby
[07:30:02] alphaatom: has joined #ruby
[07:31:43] upload`: has joined #ruby
[07:31:46] howdoi: has joined #ruby
[07:31:56] cajone: has joined #ruby
[07:32:55] wprice: has joined #ruby
[07:33:03] niiamon: has joined #ruby
[07:33:15] wldcordeiro_: has joined #ruby
[07:35:19] omfgtora: has joined #ruby
[07:35:25] ponga: has joined #ruby
[07:36:02] zacstewart: has joined #ruby
[07:36:02] TomyWork: has joined #ruby
[07:36:51] k3asd`: has joined #ruby
[07:38:03] niiamon_: has joined #ruby
[07:39:32] yh: has joined #ruby
[07:39:36] Iskarlar: has joined #ruby
[07:41:17] Ox0dea: A river derchi.
[07:41:21] tkuchiki: has joined #ruby
[07:41:22] quimrstorres: has joined #ruby
[07:42:12] c0m0: has joined #ruby
[07:42:13] quimrstorres: has joined #ruby
[07:46:41] wldcordeiro__: has joined #ruby
[07:47:17] Philipp__: has joined #ruby
[07:50:20] DoubleMalt: has joined #ruby
[07:50:34] niiamon: has joined #ruby
[07:56:46] arup_r: has joined #ruby
[07:57:03] tomphp: has joined #ruby
[07:57:18] nhhagen: has joined #ruby
[07:57:50] ishahnaz: has joined #ruby
[07:58:13] djbkd: has joined #ruby
[08:00:10] mikecmpbll: has joined #ruby
[08:00:14] xfbs: has joined #ruby
[08:00:14] lanemeyer: has joined #ruby
[08:02:58] xfbs: has joined #ruby
[08:03:55] astrobun_: has joined #ruby
[08:05:58] pawnbox: has joined #ruby
[08:05:59] GriffinHeart: has joined #ruby
[08:08:01] Vile`: has joined #ruby
[08:08:32] Musashi007: has joined #ruby
[08:09:12] tomphp: has joined #ruby
[08:09:35] yh_: has joined #ruby
[08:10:00] xfbs: has joined #ruby
[08:12:01] khebbie: has joined #ruby
[08:13:17] marr: has joined #ruby
[08:13:51] Cust0sLim3n: has joined #ruby
[08:14:54] benlovell: has joined #ruby
[08:15:12] chthon: has joined #ruby
[08:15:54] izabera: c-c-combo breaker
[08:16:13] adaedra: But UGT :'(
[08:16:44] krz: has joined #ruby
[08:18:43] yh_: has joined #ruby
[08:20:59] Zai00: has joined #ruby
[08:22:08] banister: has joined #ruby
[08:25:48] Musashi007: has joined #ruby
[08:26:20] Mendenhall: has joined #ruby
[08:27:14] niiamon_: has joined #ruby
[08:28:18] zacstewart: has joined #ruby
[08:30:31] sheeny: has joined #ruby
[08:32:38] sheeny: Hi all, I have a rails project which connects to an external database (i dont have control over the column names/data) unfortunately the column names are all upcase, so when i try object.attribute it obviously raises method missing, where object['ATTRIBUTE'] would work. I am considering overriding method missing to handle this but before I do i was wondering if anyone had a better cleaner solution?
[08:33:21] lkba: has joined #ruby
[08:33:24] ruboto: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[08:33:37] sheeny: has left #ruby: ()
[08:34:07] shredding: has joined #ruby
[08:34:26] quimrstorres: has joined #ruby
[08:34:46] anisha: has joined #ruby
[08:35:51] pawnbox: has joined #ruby
[08:35:59] isxek: has joined #ruby
[08:36:58] Ropeney: has joined #ruby
[08:37:33] yawniek: has joined #ruby
[08:38:06] pawnbox: has joined #ruby
[08:39:22] niemcu: has joined #ruby
[08:40:45] hazelux: has joined #ruby
[08:41:16] andikr: has joined #ruby
[08:41:21] yawniek: Zlib::GzipReader.new(infile).each_line somehow stops at 50 lines (even though the file has around 25k lines. why?
[08:41:40] yorickpeterse: yawniek: without any code samples in a gist that will be hard to answer
[08:41:43] senayar: has joined #ruby
[08:41:43] senayar: has joined #ruby
[08:41:59] Oog: has joined #ruby
[08:42:26] jenrzzz: has joined #ruby
[08:43:48] niiamon_: has joined #ruby
[08:44:22] yawniek: yorickpeterse: Zlib::GzipReader.new( open("t.gz") ).each_line.map{1}.reduce(&:+)
[08:46:24] yorickpeterse: My only guess is that ".gz" only has 50 lines
[08:46:35] yxhuvud: .map{1}.reduce(&:+) ? how about using .count instead?
[08:47:00] yorickpeterse: yawniek: `wc -l t.gz`, what does that output?
[08:47:02] yorickpeterse: minus the backticks
[08:47:22] yawniek: gzcat t.gz| wc -l => 25001
[08:47:59] Ox0dea: It's just `zcat`.
[08:48:22] yorickpeterse: yawniek: no idea in that case
[08:48:43] apeiros: yxhuvud: better yet, .size. Enumerator optimizes that if possible.
[08:48:52] terlar: has joined #ruby
[08:49:07] yawniek: Ox0dea: i might have written my own zcat implementation that automagically inflates the content OR possibly i'm just using the gnu tools on os x. in the later case gzcat is a better version of zcat
[08:49:21] yawniek: apeiros: ohai apeiros, long time no see
[08:49:29] apeiros: hi yawniek :)
[08:49:37] Ox0dea: yawniek: What makes `gzcat` superior?
[08:49:52] yxhuvud: >> "foo\nbar".each_line.size
[08:49:53] ruboto: yxhuvud # => nil (https://eval.in/412168)
[08:50:00] yxhuvud: apeiros: therefore.
[08:50:02] adaedra: The g, obviously.
[08:50:19] gizmore: has joined #ruby
[08:50:31] apeiros: yxhuvud: ugh
[08:50:37] apeiros: yxhuvud: good to know
[08:50:50] yawniek: Ox0dea: afair its faster. at least i was able to see some difference once and ever since i use it. very scientific :P
[08:51:01] yorickpeterse: #size and #count are very different in Enumerator
[08:51:14] yawniek: is returning nil in my above example
[08:51:15] ta: has joined #ruby
[08:51:36] yorickpeterse: #size in a whole bunch of cases returns a pre-determined size
[08:51:45] yorickpeterse: which isn't always available
[08:51:54] yawniek: still major wtf, still 50 lines
[08:52:55] Ox0dea: It's a bug that `File.open('/dev/full', ?w).write('foo')` doesn't raise Errno::ENOSPC, right?
[08:53:32] apeiros: from the docs it sounds like .size is only available if it is known or can be calculated, but it won't go enumerating all values and count to get the size
[08:53:38] yorickpeterse: Ox0dea: eh, why would it?
[08:53:42] yorickpeterse: writing to /dev/null is just fine
[08:53:49] Ox0dea: yorickpeterse: /dev/null != /dev/full
[08:54:12] adaedra: funny, IO.write does raise
[08:54:30] Ox0dea: Definitely a bug then, I reckon.
[08:54:46] yawniek: ok, gzcatting the file and repacking it makes everything work. but this is weird
[08:54:49] adaedra: bufferization?
[08:55:24] yorickpeterse: When you flush it it does raise
[08:55:38] adaedra: or when you close
[08:56:17] withnale____: has joined #ruby
[08:57:22] adaedra: so not sure if bug
[08:57:38] Ox0dea: Well, it comes late enough to be harmful, but it's also 2015.
[08:58:08] Hounddog: has joined #ruby
[08:58:09] ebarrett: chrisseaton: thanks
[08:58:28] [spoiler]: has joined #ruby
[08:59:17] adaedra: It does raise if you have a close/flush (so, IO.write, File.open with a block)
[08:59:35] Ox0dea: Right, but you could easily lose a write in between.
[09:00:04] adaedra: It's the problem of the buffered output, errors are delayed
[09:00:09] Ox0dea: Well, not *easily*, but I'm sure somebody somewhere's been bitten.
[09:00:38] niiamon_: has joined #ruby
[09:01:16] Ox0dea: In any case, #write returns the number of bytes written to /dev/full and is thus a liar.
[09:01:57] quimrstorres: has joined #ruby
[09:02:04] leat: has joined #ruby
[09:02:06] tubuliferous_: has joined #ruby
[09:02:20] _joes_: has joined #ruby
[09:02:37] Ox0dea: What're some special treatments applied to other device files?
[09:03:11] Hounddog: has joined #ruby
[09:04:21] Stan: has joined #ruby
[09:05:35] adaedra: The same problem happens if the file is already open (passed by fd from parent), error is not seen without a flust ??? seems all that IO does at writing is buffered
[09:06:57] rickmasta: has joined #ruby
[09:08:04] adaedra: I guess it's not a problem if you know about it (and how to bypass the buffer), but can effectively be bitey
[09:10:03] xfbs: has joined #ruby
[09:11:07] zacstewart: has joined #ruby
[09:12:36] Ox0dea: IO#write_nonblock to the rescue.
[09:12:58] adaedra: Or IO#sync=
[09:13:33] adaedra: Or IO#syswrite
[09:13:38] adaedra: Plenty of choice!
[09:17:24] Toska: has joined #ruby
[09:18:33] arup_r: has joined #ruby
[09:18:33] yeticry: has joined #ruby
[09:18:38] niiamon_: has joined #ruby
[09:19:28] jbwiv: has joined #ruby
[09:19:36] cheeti: has joined #ruby
[09:19:54] pengin: has joined #ruby
[09:20:24] dgutierrez1287: has joined #ruby
[09:21:02] pawnbox: has joined #ruby
[09:21:44] riffraff: has joined #ruby
[09:23:09] leesharma: has joined #ruby
[09:24:15] yh: has joined #ruby
[09:26:24] banister: has joined #ruby
[09:27:05] ita-ness: Hello Everyone
[09:27:28] soc42: has joined #ruby
[09:29:48] MatrixBridge: has joined #ruby
[09:30:06] platzhirsch: has joined #ruby
[09:31:11] quimrstorres: has joined #ruby
[09:36:13] yorickpeterse: angular 1.0.1 doesn't support PATCH ._________.
[09:36:24] yorickpeterse: something something that's what you get for not upgrading it
[09:36:32] adaedra: ?ot yorickpeterse
[09:36:33] ruboto: yorickpeterse, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[09:37:20] yawniek: the reason for my problem with only 50 lines was that i wrote chunks of 50 lines into the file, apparently each of the chunks had a gzip header which stops GzipReader
[09:37:25] yorickpeterse: ACTION dusts off a kitchen towel and slaps it at adaedra
[09:37:40] yorickpeterse: why does it never pick the fun ones D:
[09:37:42] yorickpeterse: ACTION slaps adaedra and starts getting carried away
[09:38:48] adaedra: ACTION finds the closest large object and gives yorickpeterse a slap with it
[09:38:51] yorickpeterse: ACTION dusts off a kitchen towel and slaps it at adaedra
[09:38:59] yorickpeterse: I have so many funny ones and it picks those
[09:39:01] yorickpeterse: ACTION likes slapping people and randomly picks adaedra to slap
[09:39:04] yorickpeterse: (??????????)?????? ?????????
[09:39:20] yfeldblum: has joined #ruby
[09:39:38] Ox0dea: yorickpeterse: Where did you get extras?
[09:39:43] yorickpeterse: I added them myself
[09:39:51] yorickpeterse: it's a plugin that just reads them from a text file
[09:40:01] Ox0dea: That I knew.
[09:40:20] Ox0dea: WeeChat differentiates between plugins and scripts, for what that's worth.
[09:40:45] yorickpeterse: https://gist.github.com/YorickPeterse/81164f0b3d3144525638 the list
[09:41:09] yorickpeterse: probably should just remove the boring ones
[09:41:18] adaedra: ???( ??? )???
[09:41:54] yfeldblum: has joined #ruby
[09:42:59] yorickpeterse: ??? ???_??????
[09:43:23] adaedra: ???( ???? ???? ????)???
[09:43:47] yorickpeterse: ??????????????????
[09:47:14] yfeldblum: has joined #ruby
[09:48:40] shevy: are you using unicode again
[09:48:56] voiter: has joined #ruby
[09:49:05] adaedra: yes we are
[09:49:17] AlexRussia: has joined #ruby
[09:50:09] voiter: i try to install a ruby gem but it fails. where do i start finding the reason? the gem i try to install is taskjuggler
[09:50:38] adaedra: what command are you trying, what is the output?
[09:51:16] adaedra: shevy: (????????????)???*:????????? ?????????????????????
[09:52:06] yorickpeterse: voiter: gem install --verbose GEM NAME
[09:52:17] stardiviner: has joined #ruby
[09:53:50] platosha_: has joined #ruby
[09:54:13] slackbotgz: has joined #ruby
[09:54:34] leafybasil: has joined #ruby
[09:54:47] rubytor: has joined #ruby
[09:56:16] voiter: yorickpeterse, the error is not reproducable
[09:56:50] shevy: adaedra that's worse than french
[09:57:13] adaedra: shevy: no u
[09:57:42] voiter: and when i try to run taskjuggler it says: http://pastie.org/10331010
[09:57:54] quimrstorres: has joined #ruby
[09:58:25] adaedra: "Website is offline"
[09:58:35] adaedra: ah here it is
[09:58:45] shevy: voiter what was the install error?
[09:59:45] senayar: has joined #ruby
[10:00:11] yorickpeterse: voiter: well then we can't really help you
[10:00:25] voiter: shevy, it's not in scrollback history anymore. but i think it was in tins (a dependency of taskjuggler) and it was something about: .. string%s "i"
[10:00:51] voiter: well ok. taskjuggler is out of question then :P
[10:00:58] last_staff: has joined #ruby
[10:01:27] tuor: has joined #ruby
[10:01:52] voiter: (RDoc::Error) unknown type of %string "i"
[10:01:56] voiter: there it is
[10:02:05] voiter: ERROR: While generating documentation for tins-1.5.4
[10:02:08] apfeluser: has joined #ruby
[10:02:30] yorickpeterse: gem install XXX --no-ri --no-rdoc
[10:02:40] yorickpeterse: or update rdoc first
[10:02:43] tuor: hi, why can't I read the file multiple times in a File.open('myfile') do |f|; puts f.read; puts f.read; end ?
[10:02:45] yorickpeterse: gem update rdoc # IIRC
[10:02:57] yorickpeterse: tuor: ...you know how reading files works right?
[10:03:02] shevy: tuor I think you must reseek to the beginning
[10:03:08] yorickpeterse: tuor: once you've read a file you've reached the end, you must rewind it first
[10:04:25] tuor: yorickpeterse, ah ok. Just for case this was the code: https://gist.github.com/anonymous/7b0499540b0c05bbe4be
[10:04:43] tuor: So how can i rewind?
[10:04:50] tkuchiki: has joined #ruby
[10:04:55] adaedra: &ri File#rewind iirc
[10:04:56] `derpy: No results
[10:05:01] doerteDev: has joined #ruby
[10:05:18] adaedra: &ri IO#rewind
[10:05:18] `derpy: http://www.rubydoc.info/stdlib/core/IO#rewind-instance_method
[10:05:19] `derpy: http://www.rubydoc.info/stdlib/core/IO#rewind-instance_method
[10:05:32] voiter: yorickpeterse, the installation was successful but when i try to run taskjuggler (which is installed in the directory specified with --install-dir) i still get this error: http://pastie.org/10331010
[10:05:36] yorickpeterse: tuor: you just call `file.rewind`
[10:05:50] tuor: yorickpeterse, ah ok thx.
[10:06:00] yorickpeterse: voiter: no idea
[10:06:10] voiter: do i need to parameterise ruby maybe?
[10:06:42] adaedra: voiter: what does `gem install taskjuggler --no-ri --no-rdoc` outputs?
[10:06:50] zacstewart: has joined #ruby
[10:07:22] tuor: yorickpeterse, when I want to write after reading do I need to rewind first?
[10:07:34] voiter: adaedra, the installation was successful (note that i also used --install-dir). but running the ruby script is causing the error: http://pastie.org/10331010
[10:07:48] yorickpeterse: voiter: answer the question
[10:07:49] adaedra: depends where you want to write, tuor
[10:07:55] yorickpeterse: You can't get that error if the installation is successful
[10:07:58] yorickpeterse: because then it's not successful
[10:08:09] yorickpeterse: tuor: You can't open a file for both reading and writing at once
[10:08:19] adaedra: er, yes you can
[10:08:21] yorickpeterse: lemme check if I'm not dumb
[10:08:30] yorickpeterse: too many things going on at once
[10:08:43] voiter: http://pastie.org/10331032
[10:08:59] norc: has joined #ruby
[10:09:06] voiter: i remove --install-dir when you tell me how i can get rid of junk if installation fails.
[10:09:12] tuor: yorickpeterse, so for what is: "r+" | Read-write, starts at beginning of file. (http://ruby-doc.org/core-1.9.3/IO.html)
[10:09:48] yorickpeterse: That requires the file to already exist
[10:10:06] adaedra: voiter: so without --install-dir it errors, right?
[10:10:12] tuor: yorickpeterse, ah ok.
[10:10:17] Oog: has joined #ruby
[10:10:32] voiter: adaedra, it already did with --install-dir
[10:10:34] tuor: So if I don't know if the file exists i have to do it in 2 steps.
[10:10:45] voiter: i just want to keep my system clean.
[10:10:48] adaedra: voiter: with o u t
[10:10:54] yorickpeterse: ok yeah using w+ you can read/write
[10:11:02] yorickpeterse: But you'll need to rewind to read whatever you just wrote
[10:11:12] adaedra: what do you mean by "system clean"
[10:11:33] yorickpeterse: voiter: you can't just install Gems in random directories and expect it all to work out of the box
[10:11:44] yorickpeterse: If you don't want to mess with your system use something like chruby
[10:12:00] adaedra: if you don't want to install system wide, use --user-install, or, like yorickpeterse, chruby and others
[10:12:58] tuor: yorickpeterse, and I need the rewind to overwrite what i just read?
[10:13:08] charliesome: has joined #ruby
[10:13:13] tuor: (first read, then overwrite)
[10:13:20] voiter: adaedra, yorickpeterse: when installing system-wide i get meaningful output of the script tj3. now i need to check how to use it.
[10:13:28] j4cknewt: has joined #ruby
[10:13:29] adaedra: tuor: yes. Also, bear in mind that if you write something that is smaller, you'll keep non-overwritten part.
[10:13:31] Chau: has joined #ruby
[10:13:39] yorickpeterse: tuor: write -> rewind -> read -> rewind -> write
[10:13:45] tuor: adaedra, oh ok.
[10:13:51] tuor: yorickpeterse, ok thx. :)
[10:14:15] xfbs: has joined #ruby
[10:15:07] GriffinHeart: has joined #ruby
[10:15:11] tuor: Do I need to check if the file exists or can i just do file_content = File.read('myfile')
[10:15:20] tuor: what happens when the file don't exist?
[10:15:29] xfbs: has joined #ruby
[10:16:17] sunslide2: has joined #ruby
[10:17:14] stamina: has joined #ruby
[10:17:17] yorickpeterse: If you open it like that you'll get an error
[10:17:23] sunslide2: hi guys, still haven't solved my stuff from yesterday :( anybody knows if there is a way to evaluate a wildcard? (not a regex) I only need to support asterisks
[10:17:34] tuor: yorickpeterse, just tested and saw it.
[10:17:50] ita-ness: sunslide2: How do you mean, evaluate a wildcard? In what context?
[10:18:38] Kyuujitsu: has joined #ruby
[10:19:15] yorickpeterse: sunslide2: you'll need to turn it into a regex
[10:20:26] rickmasta: has joined #ruby
[10:20:26] shevy: tuor always handle the case if the file does not exist, if your code is important
[10:20:41] bodgix: has joined #ruby
[10:20:52] tuor: shevy, just doing it now. :)
[10:21:56] sunslide2: hmm yeah I don't mind turning it into a regex but I have a string that might contain other characters that are regex keywords like dots / question marks / etc and I'm only intrested in evaluating the asterisks in that sense
[10:22:05] sevenseacat: has joined #ruby
[10:23:00] tkuchiki: has joined #ruby
[10:23:23] bruno-: has joined #ruby
[10:23:29] Oog: has joined #ruby
[10:24:54] quimrstorres: has joined #ruby
[10:25:02] khebbie: has joined #ruby
[10:25:47] tvw: has joined #ruby
[10:27:50] yqt: has joined #ruby
[10:28:38] quimrstorres: has joined #ruby
[10:28:41] tuor: so next try: https://gist.github.com/anonymous/bd81d4b542dc6b828f57
[10:30:07] shevy: you have a bit repetition there
[10:30:22] sunslide2: ah, guess not :)
[10:30:24] shevy: 3 lines with zabbix.templates_export[name]
[10:30:34] devoldmx: has joined #ruby
[10:31:19] ita-ness: tuor: file_name = "data/%06d" % file_number
[10:31:27] ita-ness: Should really be all you need there.
[10:31:48] tkuchiki: has joined #ruby
[10:31:57] tuor: ita-ness, ah thx. :)
[10:32:07] avril14th: has joined #ruby
[10:32:41] tuor: shevy, hmm how to do it shorter? I mean i can put it in a local variable and then use it but why?
[10:32:43] chipotle: has joined #ruby
[10:32:48] ita-ness: tuor: And you have the exact line twice for writing the file, perhaps you should break that out into a method. Not sure what the unless file.read is for...
[10:33:17] yeticry: has joined #ruby
[10:34:32] tuor: ita-ness, the file.read is for only writing to the file if it differs from the new content.
[10:35:23] shevy: tuor dunno, depends on how important the code is. once you have to change a lot of instances where repetition occurs you will understand
[10:35:39] michael_mbp: has joined #ruby
[10:35:54] ita-ness: tuor: Not sure about your file sizes, but it's not going to take much more time generally to write the file in the first place. You can clean up your code there as well.
[10:36:04] tuor: shevy, ok. So what would you do?
[10:37:40] shevy: I would simplify the code and probably use methods
[10:38:00] shevy: and use a class :)
[10:38:25] ita-ness: tuor: This is how I would have written your code: http://pastie.org/private/ikfdhunaqlaeyjniy2vjq
[10:38:31] shevy: you sorta do the same both when the file exists and when it does :P
[10:38:36] shevy: erm *does not
[10:39:06] yeticry: has joined #ruby
[10:39:46] tuor: ita-ness, so you would do it just like this: https://gist.github.com/anonymous/f1a43ad78a5e27630fd8 ?
[10:40:19] tuor: ita-ness, ah it's mostly the same.
[10:40:43] ita-ness: tuor: Yup, you don't need parenthesis around your first argument, otherwise the same. Much cleaner.
[10:41:40] atmosx: ops, I forgot the milk! :-(
[10:41:56] atmosx: no milk, no party. bbl
[10:42:05] jonee: has joined #ruby
[10:42:41] adaedra: No milk today ???
[10:45:14] tuor: shevy, Ah right i acces directly to the hash. I have to write a attr_accesor for it(?)
[10:45:37] shevy: attr_accessor is doing the same as if you yourself define the methods
[10:45:40] xelim: has joined #ruby
[10:45:56] shevy: attr_accessor :foo is: def foo; @foo; end and def foo=(i); @foo = i; end
[10:46:16] Igorshp: has joined #ruby
[10:46:28] shevy: atmosx you are already awake!
[10:47:11] tuor: shevy, OK. I'll come back later (eating).
[10:49:03] norc: shevy: Im actually wondering. Is that really all, or is there some subtle difference?
[10:50:16] tubuliferous_: has joined #ruby
[10:50:16] adaedra: one is shorter to write.
[10:50:39] shevy: norc as far as I am aware that is it exactly. attr_accessor just combines attr_reader and attr_writer
[10:50:45] krz: has joined #ruby
[10:51:49] niemcu: has joined #ruby
[10:51:59] norc: shevy: Interesting. This made me look at the actual implementation in MRI/vm_method.c - Im surprised how readable this code is. :)
[10:52:00] Zai00: has joined #ruby
[10:53:30] shevy: this here? https://github.com/ruby/ruby/blob/trunk/vm_method.c#L1069
[10:54:21] rikkipitt: has joined #ruby
[10:54:31] Xiti: has joined #ruby
[10:55:29] niemcu: has joined #ruby
[10:57:08] chills42: has joined #ruby
[10:59:57] allcentury: has joined #ruby
[11:01:04] shevy: perhaps one of you has an idea: http://pastie.org/10331103
[11:01:24] shevy: essentially I would need to redirect puts call from a module, into the instance variable of a class
[11:03:13] phutchins: has joined #ruby
[11:03:31] yqt: has joined #ruby
[11:05:10] rodfersou: has joined #ruby
[11:05:30] norc: shevy: This is an obvious one, but why not monkey patch the test method?
[11:05:33] OrbitalKitten: has joined #ruby
[11:05:44] atmosx: shevy: just came back from work :-P
[11:09:52] shevy: norc that is an example
[11:10:02] shevy: norc in reality I must redirect output from all methods from a given module
[11:10:11] norc: shevy: Change $stdout then
[11:10:33] shevy: how could I do that?
[11:12:16] atmosx: shevy: have a method call the module and gets the output
[11:12:26] lannonbr: has joined #ruby
[11:16:27] norc: shevy: http://pastie.org/10331129
[11:16:50] norc: shevy: That is a very rudimentary example. Others can probably give better solutions, but this definitely lets you hook into puts calls.
[11:17:07] atmosx: or with $stdout.reopen()
[11:18:23] sarkyniin: has joined #ruby
[11:18:43] shevy: the interesting thing is that literally every example I am seeing, redirects into a file :D
[11:18:57] atmosx: shevy: http://stackoverflow.com/questions/14987362/how-can-i-capture-stdout-to-a-string
[11:19:22] norc: shevy: Its all based on IO which is heavily centered around files from what I understand
[11:19:44] jgpawletko: has joined #ruby
[11:19:56] norc: atmosx: that StringIO is exactly what shevy asked for, nice
[11:20:06] shevy: if I could just get it to work
[11:20:29] shevy: brb eating canelloni
[11:20:53] niiamon: has joined #ruby
[11:22:00] stardiviner: has joined #ruby
[11:22:15] kannan4k: hello, i have a ruby question
[11:22:16] kannan4k: @@_accessors[name].push name: fname.to_sym, type: type, exclude: options.fetch(:exclude, [])
[11:22:24] norc: kannan4k: You are in the right place!
[11:22:25] kannan4k: what does this code do?
[11:22:26] norc: Ask away
[11:22:40] [k-: has joined #ruby
[11:23:08] ita-ness: kannan4k: Looks like it's adding a hash to a hash with arrays as values.
[11:23:18] atmosx: kannan4k: looks like a sort of badly typed hash
[11:23:33] ita-ness: Adding an array element, that is a hash, to a hash with array elements as values, that is.
[11:23:41] norc: kannan4k: http://pastie.org/10331148 - I simplified it for you a bit.
[11:24:22] atmosx: norc: cool hehe
[11:24:28] kannan4k: oh waoh, thanks all
[11:24:39] leesharma: has joined #ruby
[11:24:44] kannan4k: btw, what is 'name' in there?
[11:25:25] ita-ness: kannan4k: That is dependent on the rest of the code. We can't know.
[11:26:21] norc: shevy: Im curious, why do you want to do that in the first place?
[11:26:35] [k-: yeah, shevy
[11:26:56] norc: Oh noes. I still have no cookies.
[11:27:06] pl1ght: has joined #ruby
[11:27:20] kannan4k: ita-ness, norc here is the entire class -> https://gist.github.com/kannan4k/90297acf6eec2911f5e6
[11:27:24] adaedra: ?cookie norc
[11:27:24] ruboto: norc, here's your cookie: ????
[11:27:40] dimasg: has joined #ruby
[11:28:00] norc: kannan4k: It does *things*
[11:28:15] last_staff: has joined #ruby
[11:28:56] bruno-: has joined #ruby
[11:29:06] kannan4k: norc: yeah, any idea what is 'name' in there
[11:29:19] ita-ness: kannan4k: I quite honestly have no idea what name is there... I would be very curious to know. That code works?
[11:30:33] ita-ness: kannan4k: As far as I can tell, it looks like name is some kind of dynamically assigned method or variable on the class.
[11:30:48] ita-ness: It doesn't appear to be coming from inside of that file.
[11:31:13] but3k4: has joined #ruby
[11:31:23] pawnbox: has joined #ruby
[11:31:30] ita-ness: It's the class name, I am an idiat.
[11:31:46] ita-ness: String.name == "String"
[11:32:02] OrbitalKitten: has joined #ruby
[11:32:10] banister: has joined #ruby
[11:32:18] kannan4k: ohhhh, that simple :)
[11:32:22] apeiros: Module#name is by default the name of the first constant the module/class is assigned to
[11:32:27] Ropeney: has joined #ruby
[11:32:41] kannan4k: thanks ita-ness
[11:32:48] ita-ness: kannan4k: Sure thing.
[11:33:02] apeiros: >> x = Class.new; x.name
[11:33:03] ruboto: apeiros # => nil (https://eval.in/412362)
[11:33:08] apeiros: >> x = Class.new; Y = x; x.name
[11:33:10] ruboto: apeiros # => "Y" (https://eval.in/412363)
[11:33:17] apeiros: compare the above two examples :)
[11:33:24] dionysus69: has joined #ruby
[11:34:02] apeiros: and `class X; end` is just a nice way to say "assign that class to constant X and evaluate this piece of code in the context of the class"
[11:34:10] [k-: levenstein distance = 5
[11:34:17] [k-: i have compared them!
[11:34:30] but3k4: has joined #ruby
[11:35:03] [k-: there was something wrong in [k-
[11:35:38] ita-ness: kannan4k: I would wager that that class is meant to create new classes from, then name is evaluating to the name of your subclass.
[11:35:41] Iskarlar: has joined #ruby
[11:36:25] ita-ness: kannan4k: So TSheets::Model is holding all the variables from it's subclasses in a hash.
[11:36:31] kannan4k: ita-ness, in that case from where it is getting set
[11:36:38] ita-ness: kannan4k: Whos keys are the names of the subclasses
[11:36:43] ita-ness: kannan4k: Correct
[11:37:24] ndrei: has joined #ruby
[11:38:32] benlovell: has joined #ruby
[11:38:39] kannan4k: ita-ness, you are correct, I just found this file -> https://gist.github.com/kannan4k/8bf0ca2ca7cf8e2523db
[11:39:33] niiamon: has joined #ruby
[11:39:33] devoldmx: has joined #ruby
[11:39:37] A124: has joined #ruby
[11:40:00] ldnunes: has joined #ruby
[11:40:06] ita-ness: kannan4k: There you go!
[11:41:47] socrates: has joined #ruby
[11:44:17] j4cknewt: has joined #ruby
[11:44:19] ebram: has joined #ruby
[11:44:48] countryHick: has joined #ruby
[11:45:49] kannan4k: ita-ness, if the model class is inherited by another class called "Timesheets", then @@__accessors['Timesheets'] will be created?
[11:46:08] ita-ness: @@__accessors[Timesheets]
[11:46:20] ita-ness: kannan4k: Or no, my apologies, you are right
[11:47:20] dgutierrez1287: has joined #ruby
[11:47:48] ita-ness: kannan4k: Well, actually I am not sure, it might have the parent class name in there as well, let me check
[11:48:38] ferhaty: has joined #ruby
[11:49:00] ita-ness: kannan4k: If the class that is inheriting it inside a module, it will be the module name as well, so "Module::Timesheets", otherwise just "Timesheets"
[11:49:04] [k-: real men don't check, they evaluate
[11:49:36] ita-ness: [k-: alias_method :check, :evaluate
[11:50:50] [k-: undefined method evaluate for ita-ness
[11:51:25] arup_r: has joined #ruby
[11:51:41] ita-ness: class ItaNess < Inferior;end
[11:52:25] adaedra: ItaNess = Class.new(Inferior)
[11:52:46] [k-: ACTION promotes ita-ness to Superior
[11:54:08] leat: has joined #ruby
[11:54:49] arup_r: has joined #ruby
[11:56:20] sdothum: has joined #ruby
[11:57:45] quimrstorres: has joined #ruby
[11:58:06] benlovell: has joined #ruby
[11:58:32] Marsupermammal: has joined #ruby
[11:58:40] sinkensabe: has joined #ruby
[11:58:42] ndrei: has joined #ruby
[12:01:21] rideh: has joined #ruby
[12:01:27] rodfersou: has joined #ruby
[12:02:06] sepp2k: has joined #ruby
[12:02:18] omegamike: has joined #ruby
[12:02:56] vondruch: has joined #ruby
[12:03:58] DoubleMalt: has joined #ruby
[12:04:13] stardiviner: has joined #ruby
[12:04:19] ishahnaz: has joined #ruby
[12:14:06] pyrotecnix: has joined #ruby
[12:16:09] izabera: https://practicingruby.com/ what is this channel's opinion on this site?
[12:17:00] OrbitalKitten: has joined #ruby
[12:18:18] pontiki: it's a good site
[12:18:18] hazelux: has joined #ruby
[12:18:39] ita-ness: izabera: Never heard of it, looks interesting.
[12:19:15] sevenseacat: I haven't read any of it, but I know of it and have some opinions on it.
[12:21:39] |n|iggers: has joined #ruby
[12:23:47] xfbs: has joined #ruby
[12:24:24] apeiros: !kick |n|iggers nope
[12:24:24] helpa: apeiros: No.
[12:24:25] ruboto: ruboto kicked |n|iggers:
[12:24:25] ruboto: -o ruboto
[12:24:25] |n|iggers: has joined #ruby
[12:24:38] apeiros: !ban |n|iggers !T 1d still nope
[12:24:39] ChanServ: +b |n|iggers!*@*
[12:24:39] ChanServ: ChanServ kicked |n|iggers: still nope
[12:25:05] ndrei: has joined #ruby
[12:25:10] quimrstorres: has joined #ruby
[12:25:10] khebbie: has joined #ruby
[12:26:19] apeiros: they're trying it every day, no?
[12:26:45] sevenseacat: you'd think they'd get bored.
[12:27:15] apeiros: well, 3y old children are endlessly fascinated by the same single sound
[12:27:19] apeiros: I think this is similar
[12:27:40] lannonbr: has joined #ruby
[12:29:07] [k-_: has joined #ruby
[12:29:22] rikkipitt: has joined #ruby
[12:30:22] Xzanron: has joined #ruby
[12:32:16] codecop: has joined #ruby
[12:32:46] tkuchiki: has joined #ruby
[12:32:54] apeiros: -o apeiros
[12:34:27] banister: has joined #ruby
[12:37:23] arup_r1: has joined #ruby
[12:38:27] tubuliferous_: has joined #ruby
[12:38:33] Iskarlar: has joined #ruby
[12:38:52] Igorshp: has joined #ruby
[12:39:52] yqt: has joined #ruby
[12:41:33] Dzejmskrokan: has joined #ruby
[12:43:15] relix: has joined #ruby
[12:44:02] ttilley: has joined #ruby
[12:44:04] ttilley: has joined #ruby
[12:44:51] terlar: has joined #ruby
[12:46:18] benlovell: has joined #ruby
[12:46:50] davedev24: has joined #ruby
[12:48:43] _blizzy_: has joined #ruby
[12:49:53] nateberkopec: has joined #ruby
[12:51:14] omegamike: has joined #ruby
[12:51:23] Guest50: has joined #ruby
[12:52:26] [k-_: shevy: DeBot is still not here, it is definitely safe1
[12:52:40] bmurt: has joined #ruby
[12:54:12] Igorshp: has joined #ruby
[12:54:38] jenrzzz: has joined #ruby
[12:55:09] hazelux: has joined #ruby
[12:55:14] devoldmx: has joined #ruby
[12:56:20] xfbs: has joined #ruby
[12:59:31] jeremy04: has joined #ruby
[12:59:33] juanpaucar: has joined #ruby
[13:00:42] pawnbox: has joined #ruby
[13:01:10] OrbitalKitten: has joined #ruby
[13:02:05] atomical: has joined #ruby
[13:03:02] whippythellama: has joined #ruby
[13:04:33] allcentury: has joined #ruby
[13:05:06] dblessing: has joined #ruby
[13:05:14] madneroo: has joined #ruby
[13:05:15] leat: has joined #ruby
[13:05:22] johnhame_: has joined #ruby
[13:05:24] madnero: has joined #ruby
[13:08:03] spider-mario: has joined #ruby
[13:08:45] but3k4: has joined #ruby
[13:10:06] sgambino: has joined #ruby
[13:10:21] Dzejmskrokan: has joined #ruby
[13:10:27] chthon: has joined #ruby
[13:10:29] madnero: has left #ruby: ()
[13:11:41] OrbitalKitten: has joined #ruby
[13:12:30] dimasg: has joined #ruby
[13:12:31] chills42: has joined #ruby
[13:13:12] tmtwd: has joined #ruby
[13:14:21] johnhamelink: Hey guys, anyone have any experience with Active Model Serializers and Grape? I'm experiencing a strange issue where I'm getting a "not opened for reading" error
[13:15:17] Cust0sLim3n: has joined #ruby
[13:16:37] malconis: has joined #ruby
[13:16:42] ita-ness: johnhamelink: http://stackoverflow.com/questions/19808921/upgrade-to-rails-4-got-ioerror-not-opened-for-reading
[13:16:55] benlovell: has joined #ruby
[13:17:25] johnhamelink: @ita-ness I'm using AMS from git (tried with 0.10.0.rc2 as well)
[13:17:35] johnhamelink: - same error with 0.10.0.rc2
[13:17:44] malconis: has joined #ruby
[13:18:25] victortyau: has joined #ruby
[13:18:37] johnhamelink: The issue doesn't exist in 0.9.3
[13:18:40] stardiviner: has joined #ruby
[13:18:45] stardiviner: has joined #ruby
[13:19:08] ita-ness: johnhamelink: I really have no idea, without more context I can only point you to google.
[13:19:27] johnhamelink: OK, I will write up a bug report on Github
[13:19:39] johnhamelink: just wanted to check in here first :)
[13:19:42] xfbs: has joined #ruby
[13:21:14] diegoviola: has joined #ruby
[13:22:03] gizmore: has joined #ruby
[13:22:51] sheldonh: has joined #ruby
[13:23:14] chills42: has joined #ruby
[13:23:16] A124: has joined #ruby
[13:23:32] johnhamelink: ita-ness: FYI https://github.com/rails-api/active_model_serializers/issues/1038
[13:24:11] radgeRayden: has joined #ruby
[13:24:32] sevenseacat: johnhamelink: you might need to post some kind of code in your error report.
[13:24:41] sheldonh: when the Singleton module is included in a class, it wipes out @singleton__instance__ without protecting this operation with a mutex. so if a singleton class definition is reloaded, you lose the instance. sound like a bug?
[13:24:45] johnhamelink: OK I will add my example in @sevenseacat
[13:24:47] MatrixBridge: has joined #ruby
[13:25:05] platosha: has joined #ruby
[13:25:34] sanguisdex: has joined #ruby
[13:26:08] platosha__: has joined #ruby
[13:27:17] platosha_: has joined #ruby
[13:28:28] symm-: has joined #ruby
[13:28:33] paulcsmith___: has joined #ruby
[13:29:07] M-mistake: has joined #ruby
[13:29:07] devdazed: has joined #ruby
[13:29:08] M-prosodyContext: has joined #ruby
[13:29:28] thiagovsk: has joined #ruby
[13:29:34] rickmasta: has joined #ruby
[13:29:41] prestorium: has joined #ruby
[13:29:49] jerius: has joined #ruby
[13:29:55] rbennacer: has joined #ruby
[13:30:10] yh: has joined #ruby
[13:31:31] banister: has joined #ruby
[13:31:37] Zai00: has joined #ruby
[13:33:05] railswebdev: has joined #ruby
[13:39:30] jhack: has joined #ruby
[13:41:37] quimrstorres: has joined #ruby
[13:43:19] yorickpeterse: ughghghhgh strong parameters
[13:43:20] lele|w: has joined #ruby
[13:43:26] yorickpeterse: dhh y u do dis
[13:44:31] Violentr: has joined #ruby
[13:44:50] hinbody: has joined #ruby
[13:45:28] tmtwd: has joined #ruby
[13:46:21] adaedra: To crush your dreams, yorickpeterse
[13:46:33] apeiros: s/r dreams//
[13:47:28] decoponio: has joined #ruby
[13:47:31] dopie: has joined #ruby
[13:47:33] JoshL: has joined #ruby
[13:48:15] chills42_: has joined #ruby
[13:48:18] Pumukel: has joined #ruby
[13:48:25] [k-_: Correction: <adaedra> To crush you, yorickpeterse
[13:49:01] adaedra: Ah, we have a bot which applies sed-syntax now?
[13:49:33] niiamon: has joined #ruby
[13:49:40] fdgfdsagfdsag: has joined #ruby
[13:49:48] fdgfdsagfdsag: has left #ruby: ()
[13:50:53] havenwood: has joined #ruby
[13:50:54] sonOfRa: s/maybe/yes/
[13:51:48] centrx: has joined #ruby
[13:52:26] gthank: has joined #ruby
[13:52:37] zz_barkerd427: has joined #ruby
[13:52:39] gthank: has joined #ruby
[13:53:42] yosafbridge: has joined #ruby
[13:56:26] banister: has joined #ruby
[13:58:08] devoldmx: has joined #ruby
[13:58:49] Vile`: has joined #ruby
[13:59:10] KC9YDN: has joined #ruby
[13:59:17] KC9YDN: has joined #ruby
[13:59:34] quimrstorres: has joined #ruby
[14:00:17] safeforge: has joined #ruby
[14:01:14] danzilio: has joined #ruby
[14:01:37] Muhannad: has joined #ruby
[14:02:54] mister_solo: has joined #ruby
[14:03:45] beef-wellington: has joined #ruby
[14:03:58] Darkwater: Correction: <[k-_> no
[14:05:30] juanpaucar: has joined #ruby
[14:05:50] nsuke: has joined #ruby
[14:06:27] niemcu: has joined #ruby
[14:06:40] Igorshp: has joined #ruby
[14:06:58] tmtwd: has joined #ruby
[14:08:04] niiamon: has joined #ruby
[14:08:04] davep3rrett: has joined #ruby
[14:08:57] dorei: has joined #ruby
[14:09:27] nzst: has joined #ruby
[14:09:41] uris: has joined #ruby
[14:09:46] Aeyrix: has joined #ruby
[14:09:47] Fire-Dragon-DoL: has joined #ruby
[14:10:07] Fire-Dragon-DoL: gem install resurrect_me_during_morning
[14:10:23] Fire-Dragon-DoL: gem not found, obviously
[14:10:33] adaedra: ACTION noms Fire-Dragon-DoL
[14:10:34] apeiros: that sounds like a bad idea. undead are cheaper workforce.
[14:10:49] stardiviner: has joined #ruby
[14:10:59] tjohnson: has joined #ruby
[14:11:09] Fire-Dragon-DoL: I'm a zombie which turns back human only after lunch :P
[14:11:25] apeiros: so that's why zombies crave brains?
[14:11:53] ytti: when ever is see zombie mobie
[14:12:01] ytti: i think 'free energy'
[14:12:05] ytti: have them turn a turbine
[14:12:26] adaedra: We should do that with hamsters
[14:12:36] ytti: hamsters need to eat :(
[14:12:54] ytti: zombies inexpliably can output energy without needing to input it
[14:13:43] ashleyhindle: zombies don't need to feed?
[14:13:48] [k-_: inexplicably*
[14:14:03] ashleyhindle: Why do they want to say 'brains' and chase people?
[14:14:16] Aeyrix: has joined #ruby
[14:14:17] yorickpeterse: because all they can think of are brains
[14:14:36] dopie: has joined #ruby
[14:14:52] ytti: ashleyhindle, in movies they can be trapped for years or decades
[14:15:14] ytti: ashleyhindle, evidently mobile all the time, just jotting around
[14:15:33] ytti: also there is no blood, to actually transport energy to muscles
[14:15:47] ytti: even if they did feed, they couldn't power the muscles
[14:15:48] workmad3: ytti: depends on the film... plenty of zombie films have zombies that decay over time
[14:15:54] ccooke: that doesn't mean they are producing free energy
[14:16:12] ytti: i don't think zombis can explained without breaking laws of thermodynamics
[14:16:16] Aeyrix: has joined #ruby
[14:16:30] ytti: in most literature/film
[14:16:43] ccooke: ytti: sure they can. The nanite-based ones certainly can.
[14:16:46] workmad3: ytti: I doubt you need to go as far as thermodynamics to find faulty reasoning with zombies
[14:17:10] deepu: has joined #ruby
[14:17:10] prefixed: has joined #ruby
[14:17:14] ccooke: I mean, we don't have the tech for them it *might* be impossible to ever obtain, but the basic concept is sound
[14:17:17] Iskarlar: has joined #ruby
[14:17:21] D-unit: has joined #ruby
[14:18:07] ccooke: (nanites absorb materials around the body to repair damaged tissue, but can't actually restore full brain function)
[14:18:14] workmad3: ?offtopic ytti ;)
[14:18:14] ruboto: ytti, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[14:18:24] ccooke: (... also, this is not the channel I expected to find this discussion in)
[14:18:39] workmad3: (sorry, I'm also to blame for engaging in the conversation)
[14:18:43] bhaak: has joined #ruby
[14:20:38] adaedra: (sorry, not sorry)
[14:21:23] axl_: has joined #ruby
[14:22:06] jeremy04_: has joined #ruby
[14:24:11] JoshL: has joined #ruby
[14:24:19] chills42: has joined #ruby
[14:24:28] chouhoulis: has joined #ruby
[14:24:34] Dzejmskrokan: has joined #ruby
[14:24:42] kfpratt: has joined #ruby
[14:25:08] renanoronfle: has joined #ruby
[14:26:37] tubuliferous_: has joined #ruby
[14:26:53] ita-ness: Im not sure where to ask this, and the github channel is unresponsive. Does anyone here have any idea where I might find a raw markdown file that has examples of all the github flavoured markdown?
[14:27:31] apeiros: ita-ness: github has a help link where it has markdown editors
[14:27:46] Criten: https://help.github.com/articles/github-flavored-markdown/
[14:27:51] Criten: https://help.github.com/articles/writing-on-github/
[14:28:13] j_mcnally: has joined #ruby
[14:28:25] DaniG2k: has joined #ruby
[14:28:36] Criten: not exactly what you asked for... but theres what i could find
[14:28:47] ndrei: has joined #ruby
[14:28:59] ita-ness: Criten: Yeah I have found those and used them as much as I could. No worries, looks like it's not anywhere. Oh well.
[14:28:59] Criten: https://guides.github.com/features/mastering-markdown/
[14:29:13] Zarthus: ita-ness: is there something specific you'd like to do?
[14:29:20] ita-ness: Criten: Oh that's a bit better...
[14:29:24] mjuszczak: has joined #ruby
[14:30:04] Criten: I think he's just looking for everything that he *can* do
[14:30:06] Zarthus: I found https://github.com/krman009/Github-Flavoured-Markdown - there's more of those cheat-sheet style repos
[14:30:40] ita-ness: Well, I jsut finished writing a sort of documentation gem for a site to keep everything documented for the business design team. Basically just makes markdown files in the repo available via links etc. We will be writing them all in markdown, so I just wanted a full sheet to style everything and get all the developers here to have a comprehensive set of 'attributes' available
[14:31:10] kfpratt: has joined #ruby
[14:31:13] adaedra: Criten: careful, many markdown-derivatives exist and support different things
[14:31:35] workmad3: adaedra: he did ask for github-flavoured md though
[14:31:41] ita-ness: adaedra: Yeah, I am focusing on the github markdown as that's the gem I am using to convert to html, and the one most devs here are familiar with
[14:31:51] adaedra: fair enough
[14:32:03] [k-_: hello Zarthus
[14:32:12] ita-ness: Anyway, thanks everyone, I can just build my own raw markdown file with all those examples
[14:32:19] adaedra: and I misread the person to talk too, I should really learn to read
[14:32:29] Criten: all good adaedra :)
[14:32:41] mleung: has joined #ruby
[14:33:03] rjno: has joined #ruby
[14:33:13] maverick08: has joined #ruby
[14:33:43] Guest50: has joined #ruby
[14:34:01] radgeRayden: has joined #ruby
[14:34:18] rideh: has joined #ruby
[14:35:29] tmtwd: has joined #ruby
[14:36:50] pawnbox: has joined #ruby
[14:39:05] segfalt: has joined #ruby
[14:39:20] leesharma: has joined #ruby
[14:40:38] kfpratt: has joined #ruby
[14:41:20] Chau: has joined #ruby
[14:41:50] hazelux: has joined #ruby
[14:42:33] Chau: has joined #ruby
[14:46:18] imperator: has joined #ruby
[14:46:32] imperator: hal_9000, ping
[14:46:54] [k-_: hal_9000, ping
[14:47:11] adaedra: random_nick, ping
[14:47:13] rjno: has joined #ruby
[14:47:22] [k-_: adaedra. ping
[14:47:24] pontiki: "i can't do that, Dave"
[14:47:39] adaedra: [k-_: pong
[14:48:06] kfpratt: has joined #ruby
[14:48:21] MatrixBridge: has joined #ruby
[14:50:08] fullofcaffeine: has joined #ruby
[14:51:30] j4cknewt: has joined #ruby
[14:51:32] umgrosscol: has joined #ruby
[14:51:33] hal_9000: imperator: pong
[14:52:24] rippa: has joined #ruby
[14:52:37] The_Phoenix: has joined #ruby
[14:52:59] M-mistake: has joined #ruby
[14:53:00] M-prosodyContext: has joined #ruby
[14:53:57] kfpratt: has joined #ruby
[14:55:42] jenrzzz: has joined #ruby
[14:58:05] radgeRayden_: has joined #ruby
[14:59:58] shevy: hal is back
[15:00:33] hal_9000: i???m baaaack
[15:00:43] adaedra: back to the USSR?
[15:01:30] ashleyhindle: Born in the USA
[15:02:34] pontiki: ??? flew in from miami beach BOAC / didn't get to bed last night / all the way the paper bag was on my knee / man it was a dreadful flight ???
[15:03:30] adaedra: Aaaaah ??? Look at all the lonely people ???
[15:03:47] pontiki: adaedra: that's IRC
[15:04:08] al2o3-cr: where do they all come from :)
[15:04:44] Marc-: has joined #ruby
[15:04:51] scottschecter: has joined #ruby
[15:04:51] benlovell: has joined #ruby
[15:04:53] ElderFain-: has joined #ruby
[15:04:54] ytti: has joined #ruby
[15:04:54] tacotaco_: has joined #ruby
[15:05:01] ElderFain: has joined #ruby
[15:05:02] slawrence00: has joined #ruby
[15:05:13] al2o3-cr: morning rublings
[15:06:11] Brando753: has joined #ruby
[15:06:20] soloone: has joined #ruby
[15:06:22] sysanthrope: has joined #ruby
[15:06:47] al2o3-cr: hi renanoronfle
[15:08:24] adaedra: did 'MURICA just woke up?
[15:08:30] theery: has joined #ruby
[15:08:46] sevenseacat: and now 'straya goes to bed
[15:08:47] snockerton: has joined #ruby
[15:08:51] shinnya: has joined #ruby
[15:09:36] Rutix: has joined #ruby
[15:09:36] Rutix: has joined #ruby
[15:09:36] adaedra: o/*\o high-five
[15:10:41] khebbie: has joined #ruby
[15:11:55] tmtwd: has joined #ruby
[15:12:55] blue_deref: has joined #ruby
[15:14:57] jobewan: has joined #ruby
[15:15:06] platosha_: has joined #ruby
[15:15:11] codecop: has joined #ruby
[15:17:36] A124: has joined #ruby
[15:18:08] imperator: has left #ruby: ("Leaving")
[15:19:41] kies^: has joined #ruby
[15:20:30] hoov: has joined #ruby
[15:21:10] banister: has joined #ruby
[15:21:16] radgeRayden__: has joined #ruby
[15:21:32] pontiki: nah, been awake for a while
[15:21:36] terlar: has joined #ruby
[15:23:06] lordkryss: has joined #ruby
[15:26:23] NeverDie: has joined #ruby
[15:29:19] DaniG2k: has joined #ruby
[15:30:20] pawnbox: has joined #ruby
[15:30:59] snath: has joined #ruby
[15:32:03] atomical_: has joined #ruby
[15:32:50] bruno-: has joined #ruby
[15:33:08] platzhirsch: safest way to implement infinite loop which listenes to interrupt signals?
[15:33:38] platzhirsch: exit_requested = false; Kernel.trap("INT") { exit_requested = true }; while !exit_requested; ...; end? is that legit?
[15:34:00] tkuchiki: has joined #ruby
[15:35:04] sarkyniin: has joined #ruby
[15:36:33] apeiros: platzhirsch: until instead of `while !`
[15:36:52] apeiros: platzhirsch: legit, but be aware that if anything in the loop blocks, the abort will wait until then
[15:36:54] adaedra: use while unit not
[15:37:07] platzhirsch: apeiros: yeah fair enough
[15:37:16] platzhirsch: oh great, hopefully no one in my team will say we don
[15:37:24] platzhirsch: t use this kind of keyword.. you better write while !cond
[15:37:29] platzhirsch: but I'll try thanks :)
[15:37:46] jschmid: has joined #ruby
[15:37:48] danzilio: has joined #ruby
[15:38:52] podman: has joined #ruby
[15:39:55] Sembei: has joined #ruby
[15:40:42] tacotaco_: has joined #ruby
[15:43:36] preyalone: has joined #ruby
[15:43:58] gambl0re: has joined #ruby
[15:45:07] ascarter: has joined #ruby
[15:45:46] ytti: has joined #ruby
[15:46:13] MMM: has joined #ruby
[15:46:20] railsraider: has joined #ruby
[15:46:39] MMM: has left #ruby: ()
[15:46:57] cndiv: has joined #ruby
[15:47:14] angrywombat: has left #ruby: ("WeeChat 0.4.2")
[15:47:22] h4ckurate: has joined #ruby
[15:47:55] pawnbox: has joined #ruby
[15:49:04] yeticry: has joined #ruby
[15:49:22] riotjones: has joined #ruby
[15:49:31] jud: has joined #ruby
[15:53:09] lapideviridi: has joined #ruby
[15:53:15] pawnbox: has joined #ruby
[15:53:27] towski_: has joined #ruby
[15:53:52] cccc: has joined #ruby
[15:54:57] gamename: has joined #ruby
[15:55:47] uris: has joined #ruby
[15:55:53] maverick08: has joined #ruby
[15:55:56] treehug88: has joined #ruby
[15:57:31] theery: has joined #ruby
[15:58:29] d10n-work: has joined #ruby
[15:59:01] devoldmx: has joined #ruby
[15:59:13] yeticry: has joined #ruby
[15:59:22] webopsx: has joined #ruby
[15:59:25] Scripore: has joined #ruby
[15:59:25] ChanServ: -b |\|IGGER!*@*
[15:59:38] Coldblackice: has joined #ruby
[16:00:20] msnyon: has joined #ruby
[16:00:35] dfockler: has joined #ruby
[16:00:39] Royalb15: has joined #ruby
[16:00:41] OrbitalKitten: has joined #ruby
[16:01:29] govg: has joined #ruby
[16:02:00] danzilio: has joined #ruby
[16:02:24] saddad: has joined #ruby
[16:02:31] ferhaty: has joined #ruby
[16:03:50] govg: has joined #ruby
[16:04:09] blahwoop: has joined #ruby
[16:05:04] blahwoop: hi all. how do i find the ruby directory ? i want to take a look at the source code
[16:05:14] blahwoop: im using rvm
[16:05:26] adaedra: https://github.com/ruby/ruby
[16:05:33] amclain: has joined #ruby
[16:05:43] zacstewart: has joined #ruby
[16:05:52] govg_: has joined #ruby
[16:06:02] fractalis: has joined #ruby
[16:06:09] blahwoop: adaedra: thanks but I wanted to look at it on my own computer
[16:06:42] adaedra: you can clone the repository, or get an archive from ruby's official website, like rvm does before compiling (not sure it keeps the sources though)
[16:07:25] RobertBirnie: has joined #ruby
[16:08:00] jimms: has joined #ruby
[16:08:31] serivich: has joined #ruby
[16:09:20] adaedra: cloning the repository lets you browse the history of versions and see evolution tho
[16:09:29] platzhirsch: What was again the method to concat an array?
[16:09:42] platzhirsch: [1,2,3].foo('+') => '1+2+3
[16:09:58] mleung: has joined #ruby
[16:10:19] baroquebobcat: has joined #ruby
[16:12:18] bffff_: has joined #ruby
[16:13:10] havenwood: has joined #ruby
[16:13:23] Marsupermammal: has joined #ruby
[16:13:35] jschmid: has joined #ruby
[16:14:10] rickmasta: has joined #ruby
[16:14:30] A124: has joined #ruby
[16:14:48] tubuliferous_: has joined #ruby
[16:15:36] matchaw: has joined #ruby
[16:15:55] DANtheBEASTman: has left #ruby: ()
[16:16:02] pengin: has joined #ruby
[16:19:50] blahwoop: adaedra: ah ok. good point. thanks!
[16:21:47] xelim: has joined #ruby
[16:22:02] rbennacer: has joined #ruby
[16:22:52] webopsx: has joined #ruby
[16:23:03] texasmade: has joined #ruby
[16:24:07] xelim: has joined #ruby
[16:24:52] fractalis: has joined #ruby
[16:25:31] nettoweb: has joined #ruby
[16:26:08] mdavid613: has joined #ruby
[16:26:15] prefixed: how do I preserve tabs in a multi-line opt parse?
[16:26:22] [Butch]: has joined #ruby
[16:26:27] Hanmac: has joined #ruby
[16:26:36] centrx: tabs ? multi-line cmmand-line?!?
[16:26:49] prefixed: multi-line help text
[16:27:23] bricker: has joined #ruby
[16:27:41] centrx: prefixed, I thought optparse automatically tabbed the help text for you?
[16:27:54] withnale_____: has joined #ruby
[16:28:49] robbyoconnor: has joined #ruby
[16:29:19] 6JTABQ8VO: has joined #ruby
[16:29:39] pawnbox: has joined #ruby
[16:29:43] prefixed: centrx http://pastebin.com/QQHfJ0kv
[16:29:44] ruboto: prefixed, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/f55b31023f084e991208
[16:29:44] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[16:30:02] prefixed: ruboto you are a very jealous robot.
[16:30:20] saddad: has joined #ruby
[16:30:57] rakm: has joined #ruby
[16:33:02] yqt: has joined #ruby
[16:34:47] ruboto: nomnomnomnom
[16:35:41] shevy: ?bottoilet
[16:35:41] ruboto: I don't know anything about bottoilet
[16:35:51] gambl0re: has joined #ruby
[16:37:41] c0m0: has joined #ruby
[16:37:57] mdavid613: has joined #ruby
[16:38:08] pyrotecnix: has joined #ruby
[16:39:06] higuys: has joined #ruby
[16:39:40] higuys: does ruby use ++ increments?
[16:39:54] havenwood: higuys: nope
[16:40:14] higuys: why not..
[16:40:23] ruboto: havenwood # => 6 (https://eval.in/412633)
[16:41:45] treehug88: I think to avoid the unary operator, and confusion between ++a and a++, and how b = a++ operates
[16:42:21] shevy: higuys matz explained it once
[16:42:22] centrx: higuys, ++ is a special operator in C. It can have confusing behavior between prefix and postfix. It's not in Ruby probably because it's so special and doesn't necessarily fit into the simplicity of Ruby
[16:42:39] treehug88: also it requires mutation. Others can chime in -- avoiding the unary operator is not a justification
[16:42:42] eam: it's not just confusing, it's undefined in just about every common implementation
[16:42:50] havenwood: higuys: incrementing the operand by one is madness
[16:43:04] eam: though that's a bit of a bad reason since we still have .next
[16:43:10] eam: which suffers from all the same problems
[16:43:12] treehug88: eam: what's undefined in every common implementation?
[16:43:17] eam: treehug88: ++
[16:43:18] shevy: higuys here is what matz wrote about that: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/2710
[16:43:26] havenwood: eam: that's asking to return the next, not modifying the receiver though
[16:43:39] treehug88: eam: every common implementation of what?
[16:44:00] eam: havenwood: ah, fair (but I could implement next!)
[16:44:02] shlomo: has joined #ruby
[16:44:12] eam: treehug88: every implementation of a mutating increment operator
[16:44:23] Scripore: has joined #ruby
[16:44:35] treehug88: eam: it's pretty well defined in C. But whatever
[16:44:48] eam: treehug88: no, it's explicitly undefined in C in certain contexts
[16:44:56] eam: C is a perfect example
[16:45:05] havenwood: higuys: You want to mutate numbers? Stop that!
[16:45:07] treehug88: eam: interesting. Which contexts?
[16:45:14] eam: treehug88: http://c-faq.com/expr/evalorder2.html
[16:45:16] havenwood: higuys: Abomination!
[16:45:29] eam: treehug88: read up on "sequence points" in C
[16:45:41] Musashi007: has joined #ruby
[16:45:42] eam: https://en.wikipedia.org/wiki/Sequence_point
[16:45:50] treehug88: bah, yeah, in that case you get what you deserve. Point taken eam
[16:46:03] cschneid_: has joined #ruby
[16:46:23] JoshL_: has joined #ruby
[16:46:38] havenwood: higuys: and yeah: +=
[16:46:49] havenwood: higuys: for variables ^
[16:46:58] havenwood: adaedra: g'mornin'
[16:47:00] rbennacer: has joined #ruby
[16:47:24] havenwood: >> x = 0; x += 1; x
[16:47:24] ruboto: havenwood # => 1 (https://eval.in/412638)
[16:47:35] renanoronfle: has joined #ruby
[16:47:41] rehat: has joined #ruby
[16:47:47] michaeldeol: has joined #ruby
[16:49:38] higuys: im used to using x++ to increment
[16:49:58] gambl0re: has joined #ruby
[16:50:09] pietr0: has joined #ruby
[16:50:23] centrx: He is pissed off!!!!
[16:50:29] Guest50: has joined #ruby
[16:50:56] eam: someone should tell him ++x is faster
[16:51:06] wldcordeiro__: has joined #ruby
[16:51:17] niemcu: has joined #ruby
[16:51:18] fantazo: has joined #ruby
[16:52:30] webopsx: has joined #ruby
[16:52:34] towski_: has joined #ruby
[16:53:37] gambl0re: i'm right here...
[16:53:54] gambl0re: i'm used to x++ becaues i was learning javascript for the past couple months
[16:54:05] gambl0re: and its commonly used..
[16:54:11] havenwood: gambl0re: in javascript...
[16:54:18] centrx: gambl0re, There's also much less use for the increment operator in Ruby, due to e.g. block functions
[16:54:28] The_Phoenix: has joined #ruby
[16:54:59] eam: gambl0re: oh I meant higuys
[16:55:19] eam: I really don't miss ++ tbh
[16:55:21] danzilio: has joined #ruby
[16:55:45] gambl0re: i am higuys, thats my alter ego
[16:55:55] havenwood: it's not miss-worthy
[16:56:48] j4cknewt: has joined #ruby
[16:58:13] j4cknewt_: has joined #ruby
[16:58:37] Musashi007: has joined #ruby
[16:59:12] Soviet_jesus: has joined #ruby
[16:59:13] casadei: has joined #ruby
[16:59:22] govg: has joined #ruby
[16:59:30] marr: has joined #ruby
[16:59:45] juanpaucar: has joined #ruby
[16:59:54] paulcsmith___: has joined #ruby
[17:00:10] juanpaucar: has joined #ruby
[17:00:16] Frem: has joined #ruby
[17:02:18] JimmyNeutron: has joined #ruby
[17:03:10] Soviet_jesus: So I tested a regular expression a on rubular, and it shows the correct match groups, but when I attempt this: https://gist.github.com/JasonMadeSomething/1b4cbb3c5654fd678d46 All the capture groups return nil. I've double checked that @title holds a value when this gets called, but for some reason I'm just not getting the matches
[17:03:18] yfeldblum: has joined #ruby
[17:03:26] chills42: has joined #ruby
[17:04:51] eam: soviet_jesus: include sample data for @title?
[17:05:11] yfeldblum: has joined #ruby
[17:06:38] tuelz: has joined #ruby
[17:07:37] dorei: soviet_jesus: ur nick is awesome :)
[17:07:55] Soviet_jesus: oh I think I made a silly mistake, i was accedentally looking for the folder number prefix too
[17:08:07] Soviet_jesus: @dorei thanks
[17:08:32] eam: soviet_jesus: happy to rubberduck :)
[17:08:33] pwnd_nfsw: has joined #ruby
[17:08:34] renanoronfle: has joined #ruby
[17:08:54] gambl0re: this line here = >print (redact_words.include? x) ? "REDACTED!": x
[17:08:59] gambl0re: is ther ternary expression?
[17:09:55] gambl0re: so its say "if redact_words includes x then print REDACTED?
[17:10:09] gambl0re: what does this part do? ? "REDACTED!": x
[17:11:55] gambl0re: ? (if true do this): (false do this)
[17:11:58] gambl0re: is that right>?
[17:12:10] eam: gambl0re: it's just like this: print(if redact_words.include? x; "REDACTED!"; else x; end)
[17:14:06] snath: has left #ruby: ("Leaving")
[17:14:31] RegulationD: has joined #ruby
[17:15:42] Kruppe: has joined #ruby
[17:15:53] jenrzzz: has joined #ruby
[17:16:06] A124: has joined #ruby
[17:17:04] umgrosscol: has joined #ruby
[17:18:52] Jackneill: has joined #ruby
[17:18:55] ascarter: has joined #ruby
[17:18:56] shadoi: has joined #ruby
[17:19:03] tcopeland: has joined #ruby
[17:20:26] ragingcake: has joined #ruby
[17:21:29] shevy: gambl0re yeah; first one is always if true, second one always the alternative to the if true
[17:21:49] ragingcake: has joined #ruby
[17:21:53] shevy: I don't find it particularly readable especially the more ? are on the same line
[17:22:13] shevy: if colours?.include? :grey ? ok? : not_ok!
[17:22:48] dseitz: has joined #ruby
[17:23:15] lapide_viridi: has joined #ruby
[17:23:29] centrx: !? ? : ? !!!
[17:24:22] ht__: has joined #ruby
[17:24:29] mikecmpbll: has joined #ruby
[17:24:36] wldcordeiro__: has joined #ruby
[17:24:50] Maletor: has joined #ruby
[17:25:16] gambl0re: do you iterate through a multidimensional array the same way you would do with a normal array?
[17:25:18] bruno-: has joined #ruby
[17:25:30] gambl0re: array.each do |x| ....
[17:25:33] shevy: well you always have .each
[17:25:35] Channel6: has joined #ruby
[17:25:38] shevy: and inside it you have other arrays
[17:25:46] shevy: like those matrushka dolls or whatever their name is
[17:25:56] centrx: Matrix dolls
[17:26:06] modern: has joined #ruby
[17:26:06] ragingcake: has joined #ruby
[17:27:43] gambl0re: if im iterating over a hash and i only want to print out the value and not the key but i only include one argument....
[17:27:44] shevy: kermit and miss piggie are no longer together :(
[17:27:47] gambl0re: why doesnt it work
[17:27:59] shevy: no just use .each_pair {|key, value| and you are done
[17:28:25] gambl0re: i always have to include two arguments even if i just want to print out the value or just the key?
[17:29:09] eam: {}.each_value
[17:29:20] eam: {}.each_key
[17:29:36] Alayde: has joined #ruby
[17:30:20] rbennacer: has joined #ruby
[17:30:39] shevy: so eam's suggestion is even better
[17:30:42] JoshL: has joined #ruby
[17:31:37] pengin: has joined #ruby
[17:32:12] shevy: he used to be a perl guru, now he has become a ruby guru
[17:32:17] iamjarvo: has joined #ruby
[17:32:52] iamjarvo: has joined #ruby
[17:32:53] segfalt: has joined #ruby
[17:32:54] eam: I know how to hit <tab> in my REPL
[17:33:14] danman: has joined #ruby
[17:33:17] eam: I'll take a corner office please
[17:33:38] iamjarvo: has joined #ruby
[17:33:54] nahtnam: has joined #ruby
[17:34:22] iamjarvo: has joined #ruby
[17:34:42] davedev24: has joined #ruby
[17:36:15] dionysus69: has joined #ruby
[17:36:19] alphaatom: has joined #ruby
[17:36:48] jeremy04: has joined #ruby
[17:37:38] bigbadbear: has joined #ruby
[17:39:08] platosha: has joined #ruby
[17:39:34] darix: .oO( pry ftw )o
[17:40:21] ascarter: has joined #ruby
[17:41:16] safeforge: has joined #ruby
[17:41:42] Aswebb_: has joined #ruby
[17:42:17] Mia: has joined #ruby
[17:42:17] Mia: has joined #ruby
[17:44:44] hahuang65: has joined #ruby
[17:45:40] Musashi007: has joined #ruby
[17:45:42] vdamewood: has joined #ruby
[17:47:45] riotjones: has joined #ruby
[17:48:53] swgillespie: has joined #ruby
[17:49:27] freerobby: has joined #ruby
[17:49:41] A124: has joined #ruby
[17:50:04] baroquebobcat: has joined #ruby
[17:51:19] atomical: has joined #ruby
[17:51:24] cornerma1: has joined #ruby
[17:53:09] arup_r: has joined #ruby
[17:53:11] rickmasta: has joined #ruby
[17:53:47] banister: has joined #ruby
[17:54:13] jenrzzz: has joined #ruby
[17:57:37] gambl0re: this line doesnt even make sense puts "That's not an integer." unless n.is_a? Integer
[17:57:57] baweaver: has joined #ruby
[17:58:47] RegulationD: has joined #ruby
[17:59:13] Cust0sLim3n: has joined #ruby
[17:59:18] Guest50: has joined #ruby
[17:59:34] centrx: "This sentence is false."
[17:59:39] devoldmx: has joined #ruby
[17:59:53] centrx: gambl0re, but no, 'unless' means 'if not'
[17:59:59] havenwood: gambl0re: What doesn't make sense about it?
[18:00:11] Scripore: has joined #ruby
[18:00:35] pengin: has joined #ruby
[18:00:54] gambl0re: isnt the statement usually inside the unless condition?
[18:01:09] gambl0re: but in that line above its after the statement
[18:01:28] tomphp_: has joined #ruby
[18:02:00] gambl0re: unless (condition) do this...
[18:02:02] fmcgeough: has joined #ruby
[18:02:13] gambl0re: not.... "do this... unless(condition)
[18:02:28] havenwood: gambl0re: Which way does English do it?
[18:02:31] ascarter: has joined #ruby
[18:03:00] tubuliferous_: has joined #ruby
[18:03:11] gambl0re: "do this... unless(condition)
[18:03:17] miah: you can pass unless a block, but its also usable as above
[18:03:24] havenwood: gambl0re: or the other way
[18:03:26] gambl0re: yes but isnt most programming languages the opposite way arround
[18:03:26] tomphp_: has joined #ruby
[18:03:35] gambl0re: unless(condition) do this..
[18:03:45] safeforge: has joined #ruby
[18:03:59] havenwood: gambl0re: Languages vary. Ruby, like English, allows either.
[18:04:02] gambl0re: i mean its not usually.... "do this if(condition)
[18:04:57] miah: https://github.com/bbatsov/ruby-style-guide/#unless-for-negatives
[18:05:43] nahtnam: Would anyone be interested in a irc bot that lets you tip coffee's with bitcoin through https://coffee.foldapp.com/
[18:05:43] jeremy04_: has joined #ruby
[18:06:03] atmosx: gambl0re: truth to be told, most audit tools will show a big warning on using 'unless' in your code, but it really saves lines of code.
[18:06:04] havenwood: nahtnam: :D coffee!
[18:06:04] wldcordeiro__: has joined #ruby
[18:06:26] miah: depends on how you're using unless
[18:06:40] miah: i wouldn't mind just tips with bitcoin
[18:06:44] atmosx: most of the times, I'm using it: x = 5 unless y = 10
[18:07:03] fractalis: has joined #ruby
[18:07:11] nahtnam: miah: Well, gotta promote the business somehow.
[18:07:17] atmosx: btc for the win
[18:07:18] railsraider: has joined #ruby
[18:07:55] blue_deref: has joined #ruby
[18:08:05] miah: nahtnam: sure =)
[18:08:07] scpike: Possibly boneheaded question - What's a good way to get string interpolation when reading a file? File.read('foo.txt') # foo.txt = "Foo contains #{bar}"
[18:08:18] nahtnam: Looks like there is some interest :P
[18:08:42] reset: has joined #ruby
[18:09:16] nahtnam: Couldnt hurt to make it
[18:09:30] shevy: a brother in mind! http://blog.dantup.com/2014/05/web-development-sucks-and-its-not-getting-any-better/
[18:09:56] miah: i've been writing a sinatra app the past few weeks
[18:10:06] miah: and what i've learned is i'm really bad at html/css
[18:10:27] khebbie: has joined #ruby
[18:10:41] bricker: scpike: it's not really clear what you're asking
[18:10:50] shevy: as long as I can click on the page it's good miah!
[18:11:02] scpike: bricker: I suppose I want this http://stackoverflow.com/questions/346380/in-ruby-can-you-perform-string-interpolation-on-data-read-from-a-file
[18:11:12] atmosx: miah: I feel you, I have this CSS/HTML book. I have to re-read it everytime I mess with CSS. It's a mess. Are you using boostrap by any chance?
[18:11:31] scpike: bricker: I have a reporting script running some SQL that's currently inlined in the script, and I want to move it out
[18:11:57] miah: no, we're using out own internal style stuff. so i dont have to do _too_ much
[18:11:59] atmosx: scpike: maybe, you could use ruby to talk to the sql db directly?
[18:11:59] chipotle: has joined #ruby
[18:12:06] platzhirsch: has left #ruby: ()
[18:12:08] atmosx: using sequel (orm) should be a piece of cake
[18:12:11] bradleyprice: has joined #ruby
[18:12:13] bricker: scpike: Oh. What's wrong with the answers on that SO post?
[18:12:18] miah: but i have been embedding some html in my erb's and i know i'm going to have somebody from frontend help polish this
[18:12:28] atmosx: miah: I see
[18:12:33] scpike: bricker: I asked here before finding that :)
[18:12:45] bricker: scpike: oh :D
[18:12:47] scpike: using erb or a sql engine seems reasonable
[18:12:48] miah: (i'm writing a user management interface for our ldap)
[18:12:58] scpike: atmosx: Idon't want to use a ORM for this - it's a beast of a query with some temp tables
[18:13:13] atmosx: scpike: you can use raw SQL if you have the query.
[18:13:34] atmosx: scpike: all I'm saying is... it makes more sense to dig into the DB using ruby, directly. But then again you know better.
[18:13:43] atmosx: your use case, etc.
[18:14:04] scpike: atmosx: Ok more precise question - can I give sequel something like "SELECT * from X where id = :id", {id: 5} ?
[18:14:17] scpike: Is that waht you mean by talk directly, using a library that knows what SQL is ?
[18:14:18] atmosx: scpike: of course you can use raw SQL
[18:14:41] atmosx: scpike: but if that's the only thing you're going to use, then better use the SQL gem (mysql? mssql?)
[18:14:48] atmosx: and use raw SQL queries
[18:15:11] atmosx: scpike: http://sequel.jeremyevans.net/rdoc/files/doc/cheat_sheet_rdoc.html have a look
[18:15:46] miah: +1 sequel
[18:16:09] scpike: Yea I'm using sequel to run the query already (and like it)
[18:16:22] gambl0re: #{string[1..-1]}...what does the [1..-1] do?
[18:16:42] railsraider: has joined #ruby
[18:16:48] havenwood: gambl0re: all but first character
[18:17:05] Musashi007: has joined #ruby
[18:17:09] havenwood: gambl0re: 0 is first and -1 is last
[18:17:38] scpike: atmosx: woa sequel is awesome, this works DB["SELECT * FROM X where id = :id", { id: 1 }]
[18:17:54] gambl0re: ["ryan", "jane"].each {|string| puts "#{string[0].upcase}#{string[1..-1]}"}
[18:18:30] lkba: has joined #ruby
[18:18:31] gambl0re: -1 indicates the last character?
[18:18:42] gambl0re: -2 would indicate second last character and so on?
[18:19:00] havenwood: gambl0re: try it out in irb or pry!
[18:20:33] DLSteve: has joined #ruby
[18:21:08] gambl0re: ok so if you do "string"[0] it would output s
[18:21:18] mdavid613: has joined #ruby
[18:21:29] gambl0re: i didnt know string have index positions
[18:22:04] Muhannad: has joined #ruby
[18:22:09] miah: >> 'string'[0]
[18:22:10] ruboto: miah # => "s" (https://eval.in/412732)
[18:22:12] yqt: has joined #ruby
[18:22:32] banister: has joined #ruby
[18:22:55] havenwood: >> 'string'.index 's'
[18:22:56] ruboto: havenwood # => 0 (https://eval.in/412734)
[18:23:22] havenwood: gambl0re: In Pry take a look at: ls ""
[18:23:36] baweaver: has joined #ruby
[18:23:41] kidoz: has joined #ruby
[18:24:08] lannonbr: has joined #ruby
[18:24:16] gambl0re: why are programmers always seeking to create a more efficient sorting algorithm programming languages already have build in sorting functions included
[18:24:27] havenwood: >> 'strings'.rindex 's'
[18:24:28] ruboto: havenwood # => 6 (https://eval.in/412735)
[18:24:37] davedev24: has joined #ruby
[18:25:03] miah: gambl0re: because humanity is all about iterative improvement
[18:25:19] symm-: has joined #ruby
[18:25:36] dfockler: and no one has proven, "this is the best sorting algorithm of all time"
[18:25:54] adaedra: and, you're talking about bubble sort
[18:25:59] adaedra: ACTION flees
[18:26:04] miah: see also; https://www.youtube.com/watch?v=kPRA0W1kECg
[18:26:05] robbyoconnor: has joined #ruby
[18:26:10] baroquebobcat: has joined #ruby
[18:26:42] dfockler: and there are tons of trade-offs per sorting situation
[18:26:53] dfockler: literally tons!
[18:27:26] kirun: has joined #ruby
[18:27:34] BTRE: has joined #ruby
[18:28:13] jackjackdripper: has joined #ruby
[18:28:33] twohlix: yea, different algorithms perform better on differently jumbled sets
[18:28:50] j_mcnally: has joined #ruby
[18:29:11] havenwood: And then stuff like this happens: http://envisage-project.eu/wp-content/uploads/2015/02/sorting.pdf
[18:29:32] djbkd: has joined #ruby
[18:29:46] miah: http://www.brpreiss.com/books/opus8/
[18:30:36] banister: has joined #ruby
[18:30:42] halcyone3: has joined #ruby
[18:32:13] wldcordeiro__: has joined #ruby
[18:33:59] tkuchiki: has joined #ruby
[18:34:19] rbennacer: has joined #ruby
[18:34:27] atmosx: gambl0re: why are f1 teams try to find a way to go faster :-P
[18:35:38] Zai00: has joined #ruby
[18:35:52] quimrstorres: has joined #ruby
[18:37:49] postmodern: has joined #ruby
[18:39:54] tcrypt: has joined #ruby
[18:40:14] polpak: has joined #ruby
[18:40:39] jackjackdripper: has joined #ruby
[18:42:14] bradleyprice: has joined #ruby
[18:44:24] ivanskie: has joined #ruby
[18:45:26] zacstewart: has joined #ruby
[18:48:01] maverick08: has joined #ruby
[18:50:05] davedev24: has joined #ruby
[18:50:17] gard: has joined #ruby
[18:50:23] juanpaucar: has joined #ruby
[18:50:49] iateadonut: has left #ruby: ()
[18:50:52] Zai00: has joined #ruby
[18:51:32] webopsx: has joined #ruby
[18:52:09] quimrstorres: has joined #ruby
[18:52:28] leesharma: has joined #ruby
[18:53:59] dopie: has joined #ruby
[18:54:51] ascarter: has joined #ruby
[18:54:58] Scripore: has joined #ruby
[18:55:52] sanguisdex: has joined #ruby
[18:57:19] mjuszczak: has joined #ruby
[18:57:34] baroquebobcat: has joined #ruby
[18:58:42] Guest50: has joined #ruby
[19:00:06] MatthewsFace: has joined #ruby
[19:04:23] TomyLobo: has joined #ruby
[19:05:25] eam: this test failed
[19:05:45] slawrence00: has joined #ruby
[19:05:58] gagrio: has joined #ruby
[19:05:59] skade: has joined #ruby
[19:06:23] gambl0re: whats the difference between if (movies[title.to_sym] == nil) and if (movies[title.to_sym] == nil?)
[19:06:56] centrx: You mean movies[title.to_sym].nil?
[19:07:32] gambl0re: no...the way i typed it
[19:07:36] jerius: has joined #ruby
[19:07:54] centrx: Then the difference is the second one won't work, or it calls a method defined with the name "nil?" which we don't see
[19:08:06] nahtnam: Quick question. If users = "", and I do if users, will it return true or false?
[19:08:07] Scriptonaut: Hey guys, I'm trying to do a post in capybara. I'm getting this: https://gist.github.com/robins35/936e7039b8721c694529 However, when I do a rake routes | grep create_seats, I get: create_seats_users POST /users/create_seats(.:format) users#create_seats
[19:08:20] eam: >> false == nil?
[19:08:21] ruboto: eam # => true (https://eval.in/412746)
[19:08:41] eam: gambl0re: nil? is the same as self.nil?
[19:08:44] gambl0re: so it should be written as if (movies[title.to_sym].nil?)
[19:09:56] centrx: nahtnam, "" is truthy. only false and nil are falsy
[19:10:43] nahtnam: centrx: Well does ruby have something similar to this: http://stackoverflow.com/questions/5515310/is-there-a-standard-function-to-check-for-null-undefined-or-blank-variables-in where """ is falsy?
[19:11:13] centrx: nahtnam, #empty? or #blank? (#blank? is in ActiveSupport/Rails)
[19:11:18] jimms: has joined #ruby
[19:11:29] centrx: >> nil.empty?
[19:11:30] ruboto: centrx # => undefined method `empty?' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/412752)
[19:11:46] centrx: nahtnam, blank? is in ActiveSupport, ActiveSupport is nice
[19:11:46] nahtnam: There is no combination?
[19:12:21] centrx: nahtnam, blank? is just: respond_to?(:empty?) ? !!empty? : !self
[19:12:25] hazelux: has joined #ruby
[19:12:41] centrx: >> ?: ? ? !! ? : !
[19:12:42] ruboto: centrx # => /tmp/execpad-cdaba414cf32/source-cdaba414cf32:2: warning: invalid character syntax; use ?\s ...check link for more (https://eval.in/412753)
[19:12:54] spider-mario: has joined #ruby
[19:13:24] nahtnam: Lol, thanks centrx
[19:13:38] nahtnam: What do you guys think of "cinch"? It looks pretty cool
[19:14:04] Musashi007: has joined #ruby
[19:14:08] bluOxigen: has joined #ruby
[19:14:17] gambl0re: this is confusing.... so you can do it 2 ways =====> 1) statement if(condition) 2) if(condition) do this
[19:14:51] nahtnam: Is there a bot here that will give a link to a rubygem if you know the name?
[19:14:55] centrx: gambl0re, postfix conditional is basically to have nice one liners
[19:16:10] jeremy04: has joined #ruby
[19:16:53] banister: has joined #ruby
[19:17:01] iamjarvo: has joined #ruby
[19:17:30] puppeh_: has joined #ruby
[19:17:46] puppeh_: any1 knows how can I get a unix domain socket with Socket#getaddrinfo ?
[19:17:58] skade: has joined #ruby
[19:18:14] _blizzy_: has joined #ruby
[19:18:27] eam: puppeh_: what do you mean?
[19:18:55] eam: getaddrinfo queries DNS
[19:19:08] safeforge: has joined #ruby
[19:21:20] puppeh_: documentation states that it accepts Socket::UNIX in the address family http://ruby-doc.org/stdlib-1.9.3/libdoc/socket/rdoc/Socket.html#method-c-getaddrinfo
[19:21:46] nfk: has joined #ruby
[19:22:33] eam: that looks like wrong documentation to me
[19:23:31] niemcu: has joined #ruby
[19:23:37] eam: (checking)
[19:23:41] webopsx: has joined #ruby
[19:25:12] jmfurlott: has joined #ruby
[19:25:24] alphaatom: has joined #ruby
[19:25:31] jmfurlott: is #rails private ?
[19:25:59] gambl0re: has joined #ruby
[19:26:00] eam: puppeh_: it appears some unixes support the unix socket type in getaddrinfo, or did upon a time -- but most do not
[19:26:15] eam: guessing that bit should be removed
[19:26:29] alphaatom: has joined #ruby
[19:27:13] jerius: has joined #ruby
[19:29:08] Musashi007: has joined #ruby
[19:29:59] Dzejmskrokan: has joined #ruby
[19:31:08] alexherbo2: has joined #ruby
[19:31:13] benlovell: has joined #ruby
[19:32:11] gambl0re: whats the difference between .each and .collect
[19:32:12] mjuszczak: has joined #ruby
[19:33:03] Ox0dea: gambl0re: #collect is an alias for #map; do you know the difference between #each and #map?
[19:33:05] hazelux: jmfurlott: are you looking for #RubyOnRails?
[19:33:05] shevy: use .map rather than .collect
[19:33:12] shevy: .map applies something on each element
[19:33:17] nofxx: has joined #ruby
[19:33:27] shevy: perhaps you need to append a string to each element of your array
[19:33:29] Ox0dea: eam: Ruby gets to drink legally in the States this year; it has accumulated lots of little inconsistencies like that over the years.
[19:33:31] shevy: then .map would be the proper way
[19:33:57] Ox0dea: shevy: You've written far too much Ruby to not have your method notation down yet. :P
[19:34:00] gambl0re: .map changes the value whereas .each makes a collection or a copy of the original?
[19:34:25] shevy: gambl0re .each just iterates through your collection, you use it typically to output/print it
[19:34:53] gambl0re: and .map iterates and creates a new copy of the collection and returns it
[19:35:23] shevy: gambl0re who said anything about a new copy
[19:35:29] arup_r: >> require 'date'; p (Date.today.year..Date.today.year + 3).to_a
[19:35:30] ruboto: arup_r # => [2015, 2016, 2017, 2018] ...check link for more (https://eval.in/412757)
[19:35:42] arup_r: but I want
[19:35:50] shevy: gambl0re you can modify in-place via .map!
[19:36:31] Ox0dea: arup_r: You want starts of year as Time objects?
[19:36:34] arup_r: [[15, 2015], [16, 2016], [17, 2017], [18, 2018]]
[19:36:48] graydot: has joined #ruby
[19:36:50] arup_r: But number can be strings...
[19:37:05] arup_r: These years are credit card display years
[19:37:29] arup_r: 2 digits are option text and 4 digits are option value
[19:38:45] TomyLobo: Ox0dea, is that 16, 18 or 21?
[19:39:06] dman777_alter: has joined #ruby
[19:39:17] Trynemjoel: has joined #ruby
[19:39:23] tkuchiki: has joined #ruby
[19:39:37] jge: has joined #ruby
[19:39:54] Ox0dea: TomyLobo: I don't think it's actually a national mandate, but it's twenty-one in most places.
[19:40:15] mjuszczak: has joined #ruby
[19:40:21] TomyLobo: https://en.wikipedia.org/wiki/National_Minimum_Drinking_Age_Act
[19:40:31] jge: hi everyone, so I was running a ruby on rails app (redmine) with thin and now I've switched over to Passenger but I'm getting the following: http://pastie.org/private/lcuaxcsuywhytigbkrba
[19:40:38] jge: anyone could shed some light please?
[19:40:45] jge: I'm running ubuntu 14.04 LTS
[19:40:45] Ox0dea: ?rails jge
[19:40:45] ruboto: jge, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[19:40:45] TomyLobo: nowadays, congress cant even agree on a budget
[19:41:20] jge: roger that
[19:41:23] jge: has left #ruby: ("WeeChat 1.0.1")
[19:42:28] adaedra: TomyLobo: that's for the US only though
[19:42:34] al2o3-cr: >> require 'date'; (Date.today.year..Date.today.year+3).map {|y| [y%1000, y] } # arup_r
[19:42:34] ruboto: al2o3-cr # => [[15, 2015], [16, 2016], [17, 2017], [18, 2018]] (https://eval.in/412766)
[19:42:35] Scriptonaut: According to rspec, this value (account.seats) isn't changing. However I put a binding.pry in there and it is. I can't seem to get it to reload. Can you guys see anything obviously wrong with this way of reloading an object in rpsec on line 3: https://gist.github.com/robins35/4478901c239ad7ea1ef5
[19:42:49] TomyLobo: over here you can get a beer at 16, i think
[19:42:53] adaedra: ah didn't see it was the original scope
[19:43:05] Ox0dea: al2o3-cr: That should be mod-100.
[19:43:10] TomyLobo: yep and wine too
[19:43:24] adaedra: drink I don't remember, buy it's 18
[19:43:34] al2o3-cr: ah, yeah :(
[19:43:42] RandyT: has joined #ruby
[19:43:57] failshell: has joined #ruby
[19:44:05] adaedra: ok, no limit for drinking
[19:44:27] TomyLobo: purchase: 16 (spirits 18), drinking: no prohibition
[19:44:43] crimson_penguin: has left #ruby: ("["Textual IRC Client: www.textualapp.com"]")
[19:44:48] Trynemjoel: has joined #ruby
[19:44:50] TomyLobo: seriously, there are countries with laws that forbid drinking alcohol?
[19:45:20] Scriptonaut: most of them do TomyLobo
[19:45:24] shevy: based on age
[19:45:26] Scriptonaut: most first world countries do at least
[19:45:42] adaedra: We don't :D
[19:45:45] mjuszczak: has joined #ruby
[19:45:48] Scriptonaut: adaedra: what country?
[19:46:03] adaedra: Scriptonaut: FR
[19:46:07] TomyLobo: https://en.wikipedia.org/wiki/Legal_drinking_age#Europe most of europe has no such silly thing
[19:46:14] d2dchat: has joined #ruby
[19:46:31] Scriptonaut: according to google, the drinking age in France is 18
[19:46:33] TomyLobo: greece, you're doing it wrong
[19:46:43] adaedra: Scriptonaut: to buy
[19:46:58] Scriptonaut: The age is definietly way too high here in the US
[19:47:06] TomyLobo: in greece if you're <18, you can buy alcohol but not drink it
[19:47:10] Scriptonaut: everyone has to sneak around in high school
[19:47:51] adaedra: Scriptonaut: it's allowed to make children drink, but not to make them drunk
[19:48:02] Violentr: has joined #ruby
[19:48:04] jenrzzz: has joined #ruby
[19:48:08] diegoviola: has joined #ruby
[19:48:10] Scriptonaut: Here you can drink as a child if your parent gives it to you legally
[19:48:20] Scriptonaut: like having a beer with dinner, etc
[19:48:25] TomyLobo: adaedra, it should not be allowed to *make* children drink
[19:48:30] adaedra: But it's illegal to sell alchool to children
[19:49:28] adaedra: TomyLobo: dunno
[19:49:35] adaedra: To force, yes
[19:50:14] TomyLobo: vietnam has no restrictions at all
[19:50:15] arup_r: has left #ruby: ("Leaving")
[19:50:32] TomyLobo: i was gonna say that explains this, but it's thailand: https://www.youtube.com/watch?v=Wraq6VnXmGo
[19:50:48] Trynemjoel: has joined #ruby
[19:50:55] adaedra: But we're a country of wine drinkers, having a restrictive alcohol law would be strange, I guess
[19:50:57] Scriptonaut: I think it doesn't make much sense comparing 3rd world countries, you can also buy opium on the streets in Vietnam, haha
[19:51:12] tubuliferous_: has joined #ruby
[19:51:26] Scriptonaut: oh wow, this is #ruby
[19:51:32] Scriptonaut: no wonder people haven't been answering my questions
[19:51:39] Scriptonaut: I thought this was #rubyonrails this entire time
[19:51:54] adaedra: There was a question?
[19:52:06] myztic: has joined #ruby
[19:52:12] Scriptonaut: ya, an rspec question
[19:52:13] Scriptonaut: According to rspec, this value (account.seats) isn't changing. However I put a binding.pry in there and it is. I can't seem to get it to reload. Can you guys see anything obviously wrong with this way of reloading an object in rpsec on line 3: https://gist.github.com/robins35/4478901c239ad7ea1ef5
[19:52:16] adaedra: ACTION serves Scriptonaut a glass of wine
[19:52:22] thiagovsk: has joined #ruby
[19:52:27] tmtwd: has joined #ruby
[19:52:31] Scriptonaut: I hate to admit it but I *hate* wine
[19:52:47] Zarthus: stand in line
[19:53:01] Scriptonaut: I brew a lot of beer
[19:53:19] adaedra: I don't actually drink Alcohol
[19:53:49] dfockler: has joined #ruby
[19:53:50] _blizzy_: has joined #ruby
[19:54:07] al2o3-cr: I drink to much :)
[19:54:19] blackmesa: has joined #ruby
[19:54:30] adaedra: al2o3-cr: how are the pink elephants?
[19:54:55] al2o3-cr: i've named them all dumbo :D
[19:55:26] Scriptonaut: I try not to drink often nowadays, but it's not unusual for me to wake up on the living room floor at 7am on a saturday :P
[19:55:41] centrx: heroin will do that to you
[19:55:59] adaedra: now this is illegal, children or not
[19:56:03] dfockler: with weed you just end up in your bed well rested
[19:56:18] Scriptonaut: that's legal here (near Seattle)
[19:57:18] NightMonkey: has joined #ruby
[19:57:27] rickmasta: has joined #ruby
[19:58:11] centrx: adaedra, as long as we don't say "guys" I think anything goes
[19:58:22] Alayde: has joined #ruby
[19:58:54] Muhannad: has joined #ruby
[20:00:25] devoldmx: has joined #ruby
[20:00:26] rbennacer: has joined #ruby
[20:00:28] Ox0dea: Hey, gals! Any tips for choosing the best vein?
[20:00:40] iamjarvo_: has joined #ruby
[20:00:49] Aria: Seriously?
[20:01:14] ascarter: has joined #ruby
[20:01:20] A124: has joined #ruby
[20:01:22] Aria: Just don't. This is a programming channel.
[20:01:36] Ox0dea: Aria: Please advise with some haste. I'm goin' in!
[20:01:46] centrx: I think he's mining for ore
[20:01:52] Scriptonaut: Aria don't be so damn uptight
[20:01:55] Vile`: has joined #ruby
[20:02:08] drbrain: Scriptonaut: that's inappropriate
[20:02:20] Trynemjoel: has joined #ruby
[20:02:32] Scriptonaut: Makin a joke like that?
[20:02:32] Aria: dfockler++
[20:02:44] Aria: centrx++
[20:02:56] ascarter: has joined #ruby
[20:03:56] adaedra: ACTION slaps centrx with all the reasons PHP is bad
[20:04:11] centrx: it's a fractal, fractals are cool man
[20:04:17] alphaatom: has joined #ruby
[20:05:17] centrx: Alright, back to work people! I'm not paying you all to...do anything
[20:05:46] bazbing81: has joined #ruby
[20:06:04] ruboto: dfockler # => 0 (https://eval.in/412775)
[20:06:10] dfockler: thanks ruboto
[20:06:29] adaedra: you're welcome
[20:07:22] ndrei: has joined #ruby
[20:08:50] Trynemjoel: has joined #ruby
[20:09:17] A124: has joined #ruby
[20:12:52] bazbing81: before I dive into this, how does my gem get another gem's root? so gemA has a a dependency on gemB, how does gemB get gemA's root? Because of the way installed gem's are installed will it always be File.expand_path '../..', __FILE__ or something? I mean I know gems themselves are installed in a folder further up the directory tree in Ubuntu, but when we require them insto another gem would that allow us to use File.expand_path '../..' ?
[20:13:31] sbhatore: has joined #ruby
[20:13:42] ivanf: has joined #ruby
[20:14:45] bazbing81: just for more clarification, we're developing gemA gemA isn't an installed gem
[20:15:11] adaedra: usually, gems just require each other without trying to figure where they are installed
[20:15:44] shevy: I found that RbConfig::CONFIG['sitelibdir']+'/name_of_gem/' works reliably for my gems
[20:16:28] shevy: what do you use adaedra
[20:16:32] bazbing81: adaedra I want to create a gem that scans the gem we're developing for a keyword...but only the gem we're developing. No gems that are installed
[20:16:47] adaedra: then just scan the directory, bazbing81
[20:16:58] adaedra: shevy: to do what
[20:17:09] shevy: to get the path of the gem
[20:17:56] bazbing81: adaedra: you mean they should manually put the root in?
[20:18:24] adaedra: bazbing81: if your goal is to have a gem tool that scans other code bases, the best it to have your gem get as config which path to scan
[20:18:43] adaedra: either by config file, environment or cli argument
[20:19:06] TomyLobo: i have an array with keys and an array with values. how do i combine them into a dictionary?
[20:19:45] TomyLobo: (except by iterating over the indices)
[20:19:52] adaedra: &ri Array#zip Array#to_h
[20:19:52] `derpy: http://www.rubydoc.info/stdlib/core/Array#zip-instance_method, http://www.rubydoc.info/stdlib/core/Array#to_h-instance_method
[20:20:07] adaedra: Also, in ruby those are Hashes
[20:20:11] al2o3-cr: >> [[1, 3, 5], [2, 4, 6]].transpose.to_h
[20:20:12] ruboto: al2o3-cr # => {1=>2, 3=>4, 5=>6} (https://eval.in/412777)
[20:20:29] TomyLobo: al2o3-cr, awesome :)
[20:21:00] tkuchiki: has joined #ruby
[20:21:46] Ox0dea: TomyLobo: It may be worth bearing in mind that #to_h is 2.1+.
[20:22:04] Ox0dea: Before that, there was the Hash[] constructor.
[20:22:05] vickleton: has joined #ruby
[20:22:40] Ox0dea: I mean, it still exists, but #to_h is preferable.
[20:22:43] Ox0dea: >> foo, bar = %i[a b c], [1, 2, 3]; Hash[foo.zip(bar)]
[20:22:44] ruboto: Ox0dea # => {:a=>1, :b=>2, :c=>3} (https://eval.in/412778)
[20:22:45] jeremy04_: has joined #ruby
[20:22:56] baweaver: has joined #ruby
[20:23:15] Ox0dea: Symbol array.
[20:23:46] TomyLobo: kinda redundant, isnt it?
[20:23:50] jeremy04_: has joined #ruby
[20:23:53] Ox0dea: Convenient.
[20:24:14] Scripore: has joined #ruby
[20:24:25] adaedra: >> %i[a b c]
[20:24:26] ruboto: adaedra # => [:a, :b, :c] (https://eval.in/412779)
[20:25:03] fractalis: has joined #ruby
[20:25:10] Ox0dea: %w saves the most typing, but %i is still nice.
[20:25:44] dfockler: what does the %i and %w stand for?
[20:26:11] al2o3-cr: %W for interpolation :)
[20:26:45] waxjar: i kinda wish ruby didnt have these
[20:27:34] dfockler: %w will stand for '(W)hen you need a string'
[20:27:52] dfockler: %i will stand for '(I) really need a symbol'
[20:28:12] djbkd: has joined #ruby
[20:28:23] waxjar: %w denotes an array, thought
[20:28:28] texasmade: has joined #ruby
[20:28:36] dfockler: they both generate arrays
[20:28:45] adaedra: array of Welcomed strings, array of Important symbols
[20:28:51] Ox0dea: dfockler: %w is "word", %i is "intern".
[20:29:08] dfockler: I don't want to hire interns
[20:29:23] Ox0dea: dfockler: Symbols are "interned" strings.
[20:29:25] waxjar: just type a couple characters extra :D
[20:29:30] tenderlove: has joined #ruby
[20:29:58] Ox0dea: waxjar: Have you never typed out an array of strings? It's fucking annoying.
[20:30:02] benlovell: has joined #ruby
[20:30:27] adaedra: %w and %i are so nice
[20:30:41] erts: has joined #ruby
[20:30:54] waxjar: meh, type it out as you would with %w and use your editor to insert quotes, commas and line breaks at the right places
[20:31:01] waxjar: multiple cursors, ftw!
[20:31:04] Ox0dea: Or, y'know,
[20:31:05] hazelux: has joined #ruby
[20:31:07] puppeh_: I'm searching how I can initialize a unix domain socket and *then* connect to it. I don't want to use Socket.unix or UNIXSocket which connects at the same time it initializes the socket
[20:31:11] puppeh_: any ideas?
[20:31:25] adaedra: why would you want to do that
[20:32:11] puppeh_: cause I want to connect at a later time, only when needed
[20:32:18] al2o3-cr: don't forget %s
[20:32:27] Ox0dea: al2o3-cr: That doesn't create an array, though.
[20:32:39] adaedra: then create the socket when you need it?
[20:33:18] puppeh_: adaedra: I need it earlier, and I want to connect to it later
[20:33:25] puppeh_: for a reason that's out of scope right now
[20:33:25] TomyLobo: in a gsub with a block, can i get the captures somehow? i only get the entire match as a string
[20:33:50] fullofcaffeine: has joined #ruby
[20:33:50] waxjar: the captures come in as block arguments i believe
[20:34:00] puppeh_: i try like this: http://pastie.org/private/fwbwklbvgrjlnltyy13niw
[20:34:19] adaedra: >> "hello, world".gsub(/[aeiouy]/) { |e| e.upcase }
[20:34:20] ruboto: adaedra # => "hEllO, wOrld" (https://eval.in/412780)
[20:34:52] adaedra: hi zenspider
[20:34:53] waxjar: ah nope, they don't :(
[20:34:56] rideh: has joined #ruby
[20:35:05] Ox0dea: >> [*?A..?z].select { |x| next if x[/X/i]; begin; eval "%#{x}[]"; rescue SyntaxError; nil end }
[20:35:05] ruboto: Ox0dea # => ["I", "Q", "W", "]", "i", "q", "r", "s", "w"] (https://eval.in/412781)
[20:35:11] michael_mbp: has joined #ruby
[20:35:37] al2o3-cr: all of them :)
[20:35:42] TomyLobo: >> '/issues/:id/comments'.gsub(/\/:([^\/]+)\//) { |match, a, b, c, d| puts match,a,b,c,d }
[20:35:43] ruboto: TomyLobo # => /:id/ ...check link for more (https://eval.in/412782)
[20:36:01] Ox0dea: al2o3-cr: Except %x and %X, which would've borked it.
[20:36:17] Ox0dea: Not sure how "]" ended up in there.
[20:36:30] al2o3-cr: ah, the shell command :)
[20:36:42] TomyLobo: waxjar, so no block arguments i'm afraid :/
[20:37:25] zenspider: Don't forget that you can use %X...X as a string, with any X, including space... which is HORRIBLE.
[20:37:41] roolo: has joined #ruby
[20:37:49] ruboto: adaedra # => "[" (https://eval.in/412783)
[20:38:03] adaedra: interesting
[20:38:07] zenspider: I... didn't think that would work
[20:38:22] adaedra: ah yes, logical.
[20:38:24] zenspider: I thought the braces were special and had to be matched... but maybe only if you start with the opener
[20:38:26] leafybasil: has joined #ruby
[20:38:33] ruboto: adaedra # => "(" (https://eval.in/412784)
[20:38:44] zenspider: apparently space doesn't work anymore?
[20:38:55] Ox0dea: >> % it does # right?
[20:38:56] ruboto: Ox0dea # => /tmp/execpad-24a0eba70a84/source-24a0eba70a84:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/412785)
[20:38:59] Ox0dea: >> % it_does # right?
[20:38:59] adaedra: >> % z # hello
[20:39:00] ruboto: Ox0dea # => "it_does" (https://eval.in/412787)
[20:39:00] ruboto: adaedra # => "z" (https://eval.in/412787)
[20:39:31] zenspider: huh. it is pissing off my ruby
[20:39:37] baweaver: has joined #ruby
[20:39:48] Ox0dea: >> %x pwd # What's in the box?!
[20:39:49] ruboto: Ox0dea # => (https://eval.in/412788)
[20:39:51] adaedra: >> %w hello # n
[20:39:52] ruboto: adaedra # => /tmp/execpad-f2068085f71e/source-f2068085f71e:2: unterminated string meets end of file ...check link for more (https://eval.in/412789)
[20:40:02] zenspider: ah... no. It was reading the % as a method in my context
[20:40:21] zenspider: I was doing ruby -e 'p % word ' and it looked like p().%(word)
[20:40:44] Oka: has joined #ruby
[20:41:18] adaedra: ok, how do I close %w<space>
[20:42:12] al2o3-cr: so, most things can be a delimiter for %?
[20:42:31] ap4y: has joined #ruby
[20:42:40] adaedra: non alphanumeric iirc
[20:43:03] al2o3-cr: ah, ok nice to know
[20:43:37] adaedra: with the special cases of ({[<
[20:43:56] zenspider: no, pretty much anything except those other special chars specifying other types
[20:44:02] ruboto: zenspider # => "blah" (https://eval.in/412790)
[20:44:05] zenspider: that kills me
[20:44:18] ruboto: al2o3-cr # => "foo" (https://eval.in/412791)
[20:44:19] adaedra: >> %????pizza????
[20:44:20] ruboto: adaedra # => /tmp/execpad-0171e7c6d572/source-0171e7c6d572:2: invalid multibyte char (UTF-8) ...check link for more (https://eval.in/412792)
[20:44:21] ruboto: TomyLobo # => "blah" (https://eval.in/412793)
[20:44:27] ruboto: TomyLobo # => /tmp/execpad-33b27351e72d/source-33b27351e72d:4: unterminated string meets end of file ...check link for more (https://eval.in/412794)
[20:44:43] adaedra: %(blah(blah)blah)
[20:44:46] adaedra: >> %(blah(blah)blah)
[20:44:47] ruboto: adaedra # => "blah(blah)blah" (https://eval.in/412795)
[20:44:48] zenspider: adaedra: that's ruboto being dumb. try it in your terminal
[20:44:58] bb010g: has joined #ruby
[20:45:00] adaedra: zenspider: doesn't work either, but with a different error
[20:45:08] zenspider: interesting
[20:45:12] adaedra: ah no, same
[20:45:23] adaedra: %w???? gives a different error
[20:45:27] sumark: has joined #ruby
[20:45:28] shevy: adaedra I can't get %][] to work, what magic have you been doing?
[20:45:42] adaedra: shevy: I use ruby
[20:45:57] ruboto: al2o3-cr # => /tmp/execpad-7e96b898d592/source-7e96b898d592:3: syntax error, unexpected tCONSTANT, expecting keywo ...check link for more (https://eval.in/412796)
[20:46:06] Ox0dea: al2o3-cr: ruboto strips whitespace.
[20:46:09] al2o3-cr: works in pry
[20:46:11] adaedra: al2o3-cr: you need a comment, ruboto trims
[20:46:15] al2o3-cr: ah, thats why
[20:46:17] Ox0dea: shevy: Do %][] and then ^D.
[20:46:17] adaedra: >> % pizza # yum
[20:46:18] ruboto: adaedra # => "pizza" (https://eval.in/412797)
[20:46:31] shevy: Ox0dea weird
[20:46:31] banister: al2o3-cr pry is for n00bs
[20:46:34] Ox0dea: shevy: Very.
[20:46:41] baroquebobcat: has joined #ruby
[20:46:43] Ox0dea: Pry gave me a virus.
[20:46:56] adaedra: Ah, LFS, it's shevy's fault
[20:47:02] adaedra: I sentence shevy to unicode
[20:47:09] shevy: I don't use LFS
[20:47:22] cscheib: //win 2
[20:47:43] Maletor: has joined #ruby
[20:48:51] mjuszczak: has left #ruby: ()
[20:49:07] phutchins: has joined #ruby
[20:49:37] TomyLobo: >> '/issues/:id/comments'.gsub(/\/:([^\/]+)\//) { |match| puts match,$1 }
[20:49:38] ruboto: TomyLobo # => /:id/ ...check link for more (https://eval.in/412798)
[20:49:41] TomyLobo: figured it out :)
[20:50:49] yfeldblum: has joined #ruby
[20:51:13] shinnya: has joined #ruby
[20:51:35] zenspider: TomyLobo: what are you doing and why?
[20:51:41] benlovell: has joined #ruby
[20:51:44] djbkd: has joined #ruby
[20:51:57] khebbie: has joined #ruby
[20:51:58] TomyLobo: rails-style routing with not-rails
[20:52:01] TomyLobo: not web either
[20:52:18] symm-: ah, the wonders of precompiled binaries
[20:52:46] zenspider: def / var; ...; end... just sayin'
[20:52:54] symm-: I was starting to get PTSD from running "./configure" and "make install" in something called "msys"
[20:52:59] kenichi: maybe look at mustermann?
[20:53:22] Trynemjoel: has joined #ruby
[20:54:30] zenspider: makes me want to eat a sausage
[20:55:27] pengin: has joined #ruby
[20:56:23] iamjarvo: has joined #ruby
[20:56:28] Ox0dea: > mfw zenspider is secretly tenderlove
[20:57:46] Muhannad: has joined #ruby
[20:57:55] zenspider: nah. he's still driving up from pdx
[20:57:58] Ox0dea: TomyLobo: No need for the block parameter if you're not categorically opposed to magic variables.
[20:58:10] Ox0dea: $~ == match in your example there.
[20:58:19] skade: has joined #ruby
[20:58:22] fullofcaffeine: has joined #ruby
[20:58:30] zenspider: I always forget that one and use () and \1
[20:58:43] TomyLobo: Ox0dea, i removed the block parameter already
[20:58:51] TomyLobo: and i need \1 not \0
[20:58:53] Trynemjoel: has joined #ruby
[20:59:00] Ox0dea: That's what $1 is for?
[20:59:09] Ox0dea: What is \0, even?
[20:59:10] TomyLobo: ruby calls it $1, yes
[20:59:19] TomyLobo: entire string
[21:00:05] TomyLobo: it's basically working now. i'm cleaning it up a bit then i'll pastebin it
[21:00:10] Ox0dea: '\0' appears to be an alias for '\1', which is weird.
[21:00:22] Ox0dea: >> 'foo'.gsub(/(.)/, '\0\1')
[21:00:22] apeiros: \0 is full match
[21:00:23] ruboto: Ox0dea # => "ffoooo" (https://eval.in/412799)
[21:00:25] apeiros: \1 is first capture
[21:00:35] Ox0dea: Oh, right.
[21:00:38] apeiros: so yes, if you capture the full match, \0 and \1 are the same ;-p
[21:00:45] modern: has joined #ruby
[21:00:49] user1138: has joined #ruby
[21:00:52] apeiros: but WHO IN THEIR RIGHT MIND capture the full match? makes no sense!
[21:01:16] iamjarvo: has joined #ruby
[21:01:34] zenspider: um... *raises hand*
[21:01:58] apeiros: ACTION blinks
[21:02:01] drbrain: I think for split and/or scan /(.)/ does special things
[21:02:08] drbrain: that /./ does not do
[21:02:15] apeiros: drbrain: sure, but there you don't have \0 nor \1
[21:02:37] Ox0dea: Well, they're internal backreferences in that case.
[21:02:42] apeiros: split includes captures in the result, scan turns to array of arrays with captures
[21:03:26] modern: has joined #ruby
[21:03:30] zenspider: I don't like \0 ... dunno why
[21:03:38] zenspider: prolly because $0 vs $1
[21:03:46] modern: has joined #ruby
[21:04:12] Ox0dea: >> 'aabbcc'.split(/(.)\1/) # POLS violation
[21:04:13] ruboto: Ox0dea # => ["", "a", "", "b", "", "c"] (https://eval.in/412800)
[21:04:39] apeiros: that doesn't capture the full match :-p
[21:04:53] apeiros: ACTION now wonders whether /(foo\0)/ makes any sense
[21:05:17] ragingcake_: has joined #ruby
[21:05:25] Ox0dea: Chomsky would like a word.
[21:06:11] A124: has joined #ruby
[21:06:41] platzhirsch: has joined #ruby
[21:06:46] drbrain: Ox0dea: matz would not be surprised because matz knows perl
[21:07:45] zenspider: POLS is a myth
[21:07:57] zenspider: POMLS is the real acronym
[21:08:04] Unicorn|: has joined #ruby
[21:08:05] drbrain: Principle of Matz Least Surprise
[21:08:48] danzilio: has joined #ruby
[21:09:15] arup_r: has joined #ruby
[21:09:24] mordocai: has joined #ruby
[21:10:03] danzilio: has joined #ruby
[21:13:00] TomyLobo: Most Least*
[21:14:57] arup_r: who called me?
[21:15:10] adaedra: santa claus
[21:15:14] Ox0dea: Hey, gals! How would you attach a "label" to a nameless Proc without intefering with its parameter list?
[21:15:31] arup_r: no idea.. I got a beep with a blink..
[21:15:40] apeiros: Ox0dea: what'd that label be?
[21:15:42] arup_r: I am on 20 channels
[21:15:50] arup_r: so no idea from where it came
[21:15:54] Ox0dea: apeiros: A name, essentially, for later referral.
[21:16:02] adaedra: arup_r: and your client don't display where it comes from?
[21:16:17] zenspider: arup_r: not our job to maintain your communications
[21:16:34] Ox0dea: arup_r: "whence" == "from where", for future reference.
[21:16:34] apeiros: Ox0dea: so storing it on the proc itself wouldn't help because then you'd need to have the proc to get it - i.e. can't be used for referral?
[21:16:34] zenspider: Ox0dea: singleton method?
[21:16:43] TomyLobo: arup_r, as a general rule, dont use amsg
[21:16:53] arup_r: No I think.. I saw blinks in my tray icon,, so came here to see.. who ... :D
[21:16:54] Dzejmskr_: has joined #ruby
[21:17:11] bruno-: has joined #ruby
[21:17:28] Ox0dea: apeiros: But I do have the Proc? I just can't stick it in a bona fide variable.
[21:17:41] martinium: has joined #ruby
[21:17:44] apeiros: Ox0dea: well, then as zenspider said - singleton method?
[21:17:55] Ox0dea: Might as well just be an instance variable in that case, no?
[21:17:58] arup_r: TomyLobo, didn't get you
[21:19:01] arup_r: I use HexChat client
[21:19:11] apeiros: >> module Kernel; module_method def labeled_proc(label, &block); prc = proc(&block); prc.define_singleton_method(:label) { label }; prc; end; end; labeled_proc(:foo) { "hi" }.label
[21:19:12] ruboto: apeiros # => undefined method `module_method' for Kernel:Module (NoMethodError) ...check link for more (https://eval.in/412801)
[21:19:13] arup_r: anyway leave it..
[21:19:23] apeiros: >> module Kernel; module_function def labeled_proc(label, &block); prc = proc(&block); prc.define_singleton_method(:label) { label }; prc; end; end; labeled_proc(:foo) { "hi" }.label
[21:19:24] ruboto: apeiros # => :foo (https://eval.in/412802)
[21:20:23] Neener54: has joined #ruby
[21:20:50] banister: >> module Kernel; module_function def labeled_proc(label); proc.tap { |v| v.define_singleton_method(:label) { label } } end; end; labeled_proc(:foo) { "hi" }.label
[21:20:51] ruboto: banister # => :foo (https://eval.in/412803)
[21:20:52] skade: has joined #ruby
[21:21:38] leafybasil: has joined #ruby
[21:21:43] zenspider: we're golfing now?
[21:21:48] TomyLobo: https://github.com/TomyLobo/jirafuse/blob/master/test.rb Ox0dea zenspider or whoever was curious about what i was doing and why :)
[21:21:51] chuy: has joined #ruby
[21:21:58] tkuchiki: has joined #ruby
[21:22:04] zenspider: >> def labeled_proc(label); proc.tap { |v| v.define_singleton_method(:label) { label } } end; labeled_proc(:foo) { "hi" }.label
[21:22:05] ruboto: zenspider # => :foo (https://eval.in/412804)
[21:22:13] zenspider: module Kernel ... end is completely unnecessary
[21:22:39] Ox0dea: >> Kernel == Object # zenspider
[21:22:39] chatrjr: has joined #ruby
[21:22:40] ruboto: Ox0dea # => false (https://eval.in/412805)
[21:22:48] apeiros: all global pseudo-functions reside in Kernel and are available as class methods
[21:22:59] apeiros: >> Kernel.proc { "hi" }.call
[21:23:00] ruboto: apeiros # => "hi" (https://eval.in/412806)
[21:23:08] apeiros: >> self.proc { "hi" }.call
[21:23:09] ruboto: apeiros # => private method `proc' called for main:Object (NoMethodError) ...check link for more (https://eval.in/412807)
[21:23:13] fractalis: has joined #ruby
[21:23:20] Ox0dea: >> def foo; end; method(:foo).owner
[21:23:21] ruboto: Ox0dea # => Object (https://eval.in/412808)
[21:23:25] apeiros: private, as all module_functions. and should be, so it doesn't interfere with method_missing
[21:23:35] millerti: has joined #ruby
[21:24:12] apeiros: rubygems got that one wrong with its require replacement :-p
[21:24:17] Mendenhall: has joined #ruby
[21:24:30] zenspider: that's nice. also completely unnecessary.
[21:24:34] gthank: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[21:24:55] zenspider: Kernel.msg == coding like a prat
[21:25:10] apeiros: try using proc in a BasicObject
[21:25:18] apeiros: and then tell me who pratty you feel :-p
[21:25:25] apeiros: (or any Kernel method)
[21:25:55] leesharma: has joined #ruby
[21:25:57] zenspider: a... unicorn just walked by... a light blue one. I love my neighborhood
[21:26:01] bradleyprice: has joined #ruby
[21:26:07] apeiros: >> class X < BasicObject; def gimme_proc; proc { "hi" }; end; end; X.new.gimme_proc
[21:26:08] ruboto: apeiros # => undefined method `proc' for #<X:0x407a3e84> (NoMethodError) ...check link for more (https://eval.in/412809)
[21:26:17] Ox0dea: apeiros: Needs more ::Kernel.
[21:26:20] gamename: has joined #ruby
[21:26:54] sarkyniin: has joined #ruby
[21:28:12] Ox0dea: zenspider: You should start the Church of the Visible Light Blue Unicorn.
[21:29:42] blahwoop: sounds like scientology
[21:30:02] apeiros: scientology is less believable than that???
[21:30:19] adaedra: tell that to all people that are in it.
[21:30:27] Ox0dea: ACTION worships the IPU.
[21:30:48] Ox0dea: Come at me, Pastafarians.
[21:30:54] apeiros: adaedra: I try not to interact with that level of crazy
[21:30:59] apeiros: IRC is enough :-p
[21:31:00] k3asd`: has joined #ruby
[21:31:51] Yzguy: has joined #ruby
[21:34:44] AlxAltea: has joined #ruby
[21:35:30] roolo_: has joined #ruby
[21:36:18] TomyLobo: zombie jesusism is less believable than that
[21:37:29] TomyLobo: zenspider, photos?
[21:37:40] hazelux: has joined #ruby
[21:37:47] Ox0dea: TomyLobo: Have faith.
[21:37:58] TomyLobo: faith or it didnt happen?
[21:38:46] apeiros: that's got some schr??dinger touch to it
[21:39:03] mordocai: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[21:39:38] tubuliferous_: has joined #ruby
[21:39:46] ddv: has joined #ruby
[21:40:09] platzhirsch: has joined #ruby
[21:40:15] ddv: has joined #ruby
[21:40:18] martinium: has joined #ruby
[21:40:20] shinnya: has joined #ruby
[21:40:40] Ox0dea: TomyLobo: Applying De Morgan's gets to the heart of the thing: faith and it happened.
[21:40:44] FernandoBasso: has joined #ruby
[21:41:58] TomyLobo: negate both the result and the inputs
[21:42:19] TomyLobo: not no faith and it happened.
[21:43:06] omegamike: has joined #ruby
[21:43:23] zenspider: TomyLobo: walked by too fast
[21:43:27] bruno-: has joined #ruby
[21:43:38] Ox0dea: Unicorns move faster than the speed of light.
[21:43:58] Ox0dea: -the speed of
[21:44:10] sarmiena_: has joined #ruby
[21:44:23] FernandoBasso: has joined #ruby
[21:44:29] zenspider: this wasn't a mythical unicorn.
[21:45:12] DenSchub: has joined #ruby
[21:45:38] banister: has joined #ruby
[21:46:23] Scripore: has joined #ruby
[21:49:07] baweaver: has joined #ruby
[21:49:13] treehug88: has joined #ruby
[21:49:42] |\|370: has joined #ruby
[21:49:50] Sperant: has joined #ruby
[21:51:16] umop3plsdn: has joined #ruby
[21:51:23] towski__: has joined #ruby
[21:51:57] hinbody: has joined #ruby
[21:52:07] skade: has joined #ruby
[21:54:14] kadoppe: has joined #ruby
[21:57:45] sdothum: has joined #ruby
[21:58:57] Dzejmskrokan: has joined #ruby
[22:00:57] graydot: has joined #ruby
[22:00:58] Scripore: has joined #ruby
[22:01:18] decoponio: has joined #ruby
[22:01:25] devoldmx: has joined #ruby
[22:03:50] Guest50: has joined #ruby
[22:03:56] baweaver: has joined #ruby
[22:06:11] msnyon_: has joined #ruby
[22:08:15] Musashi007: has joined #ruby
[22:10:32] RobertBirnie: has joined #ruby
[22:13:13] _X_C_V_B_: has joined #ruby
[22:13:42] allcentury: has joined #ruby
[22:14:43] baweaver: has joined #ruby
[22:15:25] jenrzzz: has joined #ruby
[22:15:48] milesforrest: has joined #ruby
[22:19:33] crdpink: has joined #ruby
[22:19:49] ledestin: has joined #ruby
[22:20:57] renanoronfle: is wrong create a method name equal get_products_from_user
[22:21:55] Ox0dea: renanoronfle: Is that what the method does?
[22:22:18] renanoronfle: get user products
[22:22:31] renanoronfle: get products from user :)
[22:23:22] zenspider: any method that returns a value can be seen as a get_* method. Generally rubyists eschew such prefixing
[22:23:34] zenspider: from_user implies that the method belongs on User
[22:23:42] tkuchiki: has joined #ruby
[22:23:43] zenspider: so, you might want to have User#products
[22:23:54] zenspider: that said... "wrong" is a BS notion
[22:24:58] Lewix: has joined #ruby
[22:25:07] oddmunds: has joined #ruby
[22:28:49] Scriptonaut: has left #ruby: ()
[22:28:59] Muhannad: has joined #ruby
[22:29:13] jeremy04: has joined #ruby
[22:29:42] bruno-: has joined #ruby
[22:30:52] ereslibre: has joined #ruby
[22:31:09] ndrei: has joined #ruby
[22:32:20] zacstewart: has joined #ruby
[22:33:24] yqt: has joined #ruby
[22:33:27] icarus: has joined #ruby
[22:33:46] icarus: has joined #ruby
[22:33:53] RobertBirnie: has joined #ruby
[22:38:49] icarus: has joined #ruby
[22:40:18] robbyoconnor: has joined #ruby
[22:43:05] DenSchub: has joined #ruby
[22:44:02] omegamike: has joined #ruby
[22:44:19] shevy: renanoronfle you can alias methods so ultimately could use several different ways to address to methods
[22:44:59] ddv: has joined #ruby
[22:46:23] graydot: has joined #ruby
[22:47:02] banister: has joined #ruby
[22:47:31] sepp2k: has joined #ruby
[22:47:52] ereslibre: has joined #ruby
[22:50:45] BTRE: has joined #ruby
[22:51:12] tcopeland: has joined #ruby
[22:51:44] r0bby_: has joined #ruby
[22:52:26] jenrzzz: has joined #ruby
[22:53:44] robbyoconnor: has joined #ruby
[22:53:56] Musashi007: has joined #ruby
[22:55:14] khebbie: has joined #ruby
[22:56:17] lannonbr: has joined #ruby
[22:56:18] Sperant: has joined #ruby
[22:57:01] zacstewart: has joined #ruby
[22:58:36] michaeldeol: has joined #ruby
[22:59:20] jenrzzz: has joined #ruby
[23:02:28] dopie: has joined #ruby
[23:05:33] j_mcnally: has joined #ruby
[23:05:42] r0bby_: has joined #ruby
[23:06:37] Sperant: has joined #ruby
[23:08:44] tanath: has joined #ruby
[23:10:02] Axsuul: has joined #ruby
[23:11:30] havenwood: has joined #ruby
[23:11:33] leesharma: has joined #ruby
[23:11:38] KramerC: has joined #ruby
[23:12:50] iamjarvo: has joined #ruby
[23:13:20] tmtwd: has joined #ruby
[23:13:21] vikaton: has joined #ruby
[23:14:23] user1138: has joined #ruby
[23:14:34] iamjarvo: has joined #ruby
[23:15:11] crdpink2: has joined #ruby
[23:16:14] al2o3-cr: has joined #ruby
[23:19:56] jordanm: has joined #ruby
[23:20:26] j_mcnally: has joined #ruby
[23:21:07] charliesome: has joined #ruby
[23:22:09] casadei: has joined #ruby
[23:23:09] baweaver: has joined #ruby
[23:23:45] lilsheep: has joined #ruby
[23:23:47] lilsheep: how to read input in a nonblocking way?
[23:24:17] A124: has joined #ruby
[23:24:45] darix: lilsheep: thread, fiber, eventmachine.
[23:26:25] s00pcan: has joined #ruby
[23:27:47] tubuliferous_: has joined #ruby
[23:27:58] pawz: has left #ruby: ("Linkinus - http://linkinus.com")
[23:30:35] blackmesa: has joined #ruby
[23:30:44] GeissT: has joined #ruby
[23:32:03] kwatz: has joined #ruby
[23:32:12] xelkarin: has joined #ruby
[23:32:49] havenwood: lilsheep: For example a `thread = Thread.new { gets.chomp }` then `thread.value` later to get the value or block until it's available.
[23:33:27] j3r0: has joined #ruby
[23:34:30] Sperant: has joined #ruby
[23:35:04] Scripore: has joined #ruby
[23:35:38] benlovell: has joined #ruby
[23:36:20] Cust0sLim3n: has joined #ruby
[23:39:13] valetudo: has joined #ruby
[23:39:38] segfalt: has joined #ruby
[23:40:39] _X_C_V_B_: has joined #ruby
[23:40:44] ascarter: has joined #ruby
[23:41:27] hackeron: has joined #ruby
[23:42:20] bazbing80: has joined #ruby
[23:42:27] ascarter: has joined #ruby
[23:43:21] jgpawletko: has joined #ruby
[23:44:14] bazbing80: can I replace a file by specific line and column number? File().replace(4,6, with: 'replacemntText') something like that?
[23:44:43] drbrain: ARGF has some tools for that, but not that simple
[23:46:18] leesharma: has joined #ruby
[23:48:12] Ox0dea: bazbing80: String#[]= is pretty versatile.
[23:48:39] Ox0dea: >> s = 'foobar'; s[2..-1] = 'rmula'; s
[23:48:40] ruboto: Ox0dea # => "formula" (https://eval.in/412830)
[23:49:35] bazbing80: Ox0dea that's cool...yeah read each line of file when count == line utilize string[], thanks
[23:50:39] Radar: bazbing80: Thor has commands for this iirc
[23:51:23] banister: has joined #ruby
[23:51:31] Ox0dea: Alternatively, `sed -i`.
[23:51:44] rehat: has joined #ruby
[23:51:53] tmtwd: has joined #ruby
[23:53:14] A124: has joined #ruby
[23:54:08] baweaver: has joined #ruby
[23:54:11] Alayde: Might someone know why SOAP calls to an internal host fail with 'certificate verify failed' while an 'openssl s_client -connect <host>:443' works without issue? I've ensured that our internal CA is within CentOS' cert bundle (hence the working openssl s_client)
[23:54:25] Alayde: I'm thuroughly stumped
[23:54:39] bazbing80: Radar can't find any reference to that functionality
[23:55:22] skade: has joined #ruby
[23:56:11] workmad3: has joined #ruby