« Back to channel list

#ruby - 03 May 2016

« Back 1 day Forward 1 day »
[00:00:52] graft: how the hell can my argument mutate from a hash to an array across a method call?
[00:02:39] dfockler: It could be that the to_s representation of the Tempfile args is a hash and not an array
[00:02:42] graft: all of this is within Rack/ruby base, none of this is my code, so it ought to work anyway
[00:02:44] whathappens: has joined #ruby
[00:03:13] graft: nah, the call is literally Tempfile.new(["RackMultipart", file.extname(filename)])
[00:03:42] graft: and then within Tempfile#initialize(basename=""...), if you report basename.class.name it is Hash
[00:04:07] graft: so obviously Tempfile.new is not what i think it is
[00:05:10] ramfjord: has joined #ruby
[00:05:33] bobbycvi: has joined #ruby
[00:08:28] johnmilton: has joined #ruby
[00:10:01] shinnya: has joined #ruby
[00:10:39] shazaum_: has joined #ruby
[00:11:07] karmatr0n: has joined #ruby
[00:11:08] postmodern: has joined #ruby
[00:11:24] freerobby: has joined #ruby
[00:12:42] pawnbox: has joined #ruby
[00:13:12] stardiviner: has joined #ruby
[00:14:14] levensailor: has joined #ruby
[00:15:51] levensailor: hey guys.. figured i would try here for reading recommendations for learning ruby on rails ?
[00:16:51] vdamewood: has joined #ruby
[00:17:30] weaksauce: Radar's book is a good one
[00:18:00] weaksauce: nevermind. I guess that only works in the rails channel
[00:18:08] weaksauce: rails 4 in action
[00:22:32] baweaver: nope, bots not here for that
[00:22:36] levensailor: of course the author of the book would be in the irc channel
[00:22:45] baweaver: ACTION sighs
[00:22:51] baweaver: #RubyOnRails
[00:22:57] levensailor: i'm learning the joys of REST APIs and right now i'm doing php and curl
[00:23:09] baweaver: tends to be better for rails specific questions
[00:23:10] levensailor: and database integration
[00:23:14] emilford: has joined #ruby
[00:23:40] levensailor: and it seems like ruby on rails is a good full solution
[00:23:41] weaksauce: baweaver I guess #ruby has a different bot
[00:23:53] arescorpio: has joined #ruby
[00:24:08] weaksauce: levensailor yeah rails is really nice for things
[00:24:09] jenrzzz: has joined #ruby
[00:24:21] weaksauce: much nicer than php imo
[00:26:42] davedev24: has joined #ruby
[00:28:49] zacstewart: has joined #ruby
[00:30:10] FooMunki: has joined #ruby
[00:30:23] smathy: has joined #ruby
[00:30:35] Radar: levensailor: Hello :)
[00:30:50] Radar: levensailor: Do you have much Rails experience?
[00:30:52] levensailor: hey Radar, just bought your book i think
[00:31:08] Radar: :O thanks!
[00:31:16] Radar: Or Ruby experience for that matter?
[00:31:18] levensailor: mostly java, html.. some c, some php
[00:31:42] levensailor: some bash scripting and python
[00:32:18] levensailor: they don't teach ruby in schools :o
[00:32:27] levensailor: but they teach assembly language
[00:32:28] baweaver: Python will be the safest parallel.
[00:32:36] davedev24: has joined #ruby
[00:33:06] IrishGringo: has joined #ruby
[00:33:09] baweaver: Eloquent Ruby and Effective Ruby are great reads for learning to do Ruby like a Ruby programmer
[00:33:13] levensailor: if universities really wanted its graduates to make good livings they would require a year of advanced excel
[00:33:19] S_Waqas: has joined #ruby
[00:33:35] baweaver: levensailor so they can excel in life?
[00:33:58] rkazak: has joined #ruby
[00:35:21] nullwarp: has joined #ruby
[00:35:22] GodFather: has joined #ruby
[00:36:41] Vile`: has joined #ruby
[00:40:11] Radar: levensailor: Ok, I think you'll be able to pick up Ruby quickly if you know Python already. If you've got another few bucks to spare, then I can recommend https://www.manning.com/books/the-well-grounded-rubyist-second-edition as well
[00:42:55] Ropeney: has joined #ruby
[00:43:08] tax: has joined #ruby
[00:43:10] diegoaguilar: has joined #ruby
[00:44:49] idefine: has joined #ruby
[00:46:39] bronson: has joined #ruby
[00:46:44] torandu: has joined #ruby
[00:47:46] Vile`: has joined #ruby
[00:47:47] sharkman: if i log onto ipchicken with mechanize, then i turn a proxy on and log onto ipchicken with mechanze, i see the same IP address
[00:48:01] sharkman: how does ipchicken save my info?
[00:48:15] tAn: has joined #ruby
[00:50:08] mnrmnaugh: has joined #ruby
[00:50:18] drusepth: has joined #ruby
[00:50:38] stannard: has joined #ruby
[00:52:29] karmatr0n: has joined #ruby
[00:52:40] dudepare: has joined #ruby
[00:52:52] stoodfarback: has joined #ruby
[00:55:13] djcp: has joined #ruby
[00:56:09] northrup: has joined #ruby
[00:56:31] drusepth: has joined #ruby
[00:57:36] ur5us: has joined #ruby
[01:01:36] moeabdol: has joined #ruby
[01:05:58] jhack: has joined #ruby
[01:06:28] solocshaw: has joined #ruby
[01:06:37] Radar: My guess is that mechanize isn't configured to use the proxy
[01:08:37] sharkman: radar, it is
[01:08:55] sharkman: it works because if i turn the proxy on first and connect then ipchicken gives the proxy IP
[01:09:05] sharkman: and if i disconnect and connect a 2nd time then it STILL gives the proxy IP
[01:09:26] sharkman: so somewhere info is getting stored. but i am also clearing the mechanize cookies
[01:11:29] Arcaire: has joined #ruby
[01:11:42] Ebok: has joined #ruby
[01:13:10] drusepth_: has joined #ruby
[01:13:57] kies: has joined #ruby
[01:15:39] patrick_star: has joined #ruby
[01:18:58] eljimador: has joined #ruby
[01:20:01] Devalo: has joined #ruby
[01:21:57] karapetyan: has joined #ruby
[01:23:02] jenrzzz: has joined #ruby
[01:23:02] jenrzzz: has joined #ruby
[01:24:38] pawnbox: has joined #ruby
[01:24:38] aaeron: has joined #ruby
[01:25:37] JakFrist: has joined #ruby
[01:26:08] Es0teric: has joined #ruby
[01:26:18] S_Waqas: has joined #ruby
[01:27:10] whathappens: has joined #ruby
[01:27:13] kobain: has joined #ruby
[01:28:39] benlieb: has joined #ruby
[01:29:38] flashpoint9: has joined #ruby
[01:30:17] Yiota: has joined #ruby
[01:30:40] drusepth: has joined #ruby
[01:32:24] choke: has joined #ruby
[01:33:25] Xeago_: has joined #ruby
[01:44:21] sharkman: does mechanize cache pages
[01:45:37] Elvin: has joined #ruby
[01:46:01] chipotle: has joined #ruby
[01:48:40] devbug: has joined #ruby
[01:49:27] sharkman: mechanize is caching info somehow
[01:50:15] Radar: iirc, it doesn't do that
[01:50:24] GnuYawk: has joined #ruby
[01:50:30] GnuYawk: has joined #ruby
[01:53:20] mjuszczak: has joined #ruby
[01:54:30] tAn: has joined #ruby
[01:58:11] stannard: has joined #ruby
[02:00:37] thesheff17: has joined #ruby
[02:01:37] emilford: has joined #ruby
[02:02:18] IrishGringo: has joined #ruby
[02:02:20] matp: has joined #ruby
[02:02:49] bronson: has joined #ruby
[02:05:58] cpup: has joined #ruby
[02:08:18] rojomisin: has joined #ruby
[02:08:20] karmatr0n: has joined #ruby
[02:09:58] SilverKey: has joined #ruby
[02:10:17] zacts: hi rubyists
[02:10:25] JakFrist: has joined #ruby
[02:11:05] benlieb: has joined #ruby
[02:12:25] zacts: hey,, I'm just getting through this Text Processing with Ruby book by pragmatic
[02:12:28] dudepare: zacks: sup? this channel is quiet.
[02:12:29] davedev24: has joined #ruby
[02:12:51] sharkman: i remember a few months ago people talked i here more!
[02:12:52] zacts: pragmatic press
[02:15:09] dudepare: zacts: good for you. here's the author's blog: https://robm.me.uk/
[02:15:28] zacts: cool! :-)
[02:15:40] zacts: I'm about to learn the basics of parsing HTML with the nokogiri gem
[02:16:30] pawnbox: has joined #ruby
[02:17:35] Cohedrin_: has joined #ruby
[02:18:53] devbug: has joined #ruby
[02:19:04] vinleod: has joined #ruby
[02:20:38] rbennacer: has joined #ruby
[02:21:14] DefV: has joined #ruby
[02:21:19] marsjaninzmarsa: has joined #ruby
[02:21:34] marsjaninzmarsa: has joined #ruby
[02:23:56] zacstewart: has joined #ruby
[02:24:03] NightMonkey: has joined #ruby
[02:24:32] benlieb: has joined #ruby
[02:27:40] mg^: has joined #ruby
[02:28:15] statelesscode: has joined #ruby
[02:28:25] nanoz: has joined #ruby
[02:30:15] htmldrum: has joined #ruby
[02:30:27] flashpoint9: has joined #ruby
[02:32:19] blur3d: has joined #ruby
[02:33:13] fedexo: has joined #ruby
[02:34:15] Xeago_: has joined #ruby
[02:35:03] weemsledeux: has joined #ruby
[02:35:39] s00pcan: has joined #ruby
[02:37:23] ismaelga: has joined #ruby
[02:39:06] adgtl: has joined #ruby
[02:39:19] sharkman: i cant figure out what mechanize is dong
[02:42:55] Rixius: has joined #ruby
[02:45:25] zenguy_pc: has joined #ruby
[02:45:44] al2o3-cr: sharkman: whats up?
[02:46:20] sharkman: hi al2o3-cr how are you
[02:46:46] lxsameer: has joined #ruby
[02:46:46] lxsameer: has joined #ruby
[02:46:50] sharkman: i scrape ipchicken with mechanze and get an IP address, then i disconnect from a proxy and scrape ipchicken again and get the SAME ip addres
[02:47:05] al2o3-cr: let me check
[02:47:19] BtcBen: has left #ruby: ()
[02:47:25] al2o3-cr: sharkman: show code
[02:47:31] al2o3-cr: make a gist
[02:48:11] borodin: has joined #ruby
[02:49:25] sharkman: https://gist.github.com/anonymous/be14340531c824663126660a3b54619c
[02:49:35] LoneHerm_: has joined #ruby
[02:49:39] sharkman: this is part of the code, you wouldnt be able to recreate it since i have port forwarding set up on my computer to a server
[02:49:45] moeabdol: has joined #ruby
[02:50:05] Arcaire: Why wouldn't you just net::http.get icanhazip.com or something
[02:50:13] duderonomy: has joined #ruby
[02:50:23] sharkman: cause i will need to fill in forms
[02:50:28] Arcaire: ah okay so you're using it lter
[02:50:38] sharkman: yup. im just trying to set it up now
[02:50:43] al2o3-cr: TCPSocket::socks_server, where's this from?
[02:50:51] sharkman: socksify gem
[02:51:15] al2o3-cr: sharkman: why don't use set the proxy on mechanize agent itself?
[02:51:31] sharkman: id like to. but mechanze does not support socks proxy
[02:51:46] al2o3-cr: ah, socks thought was http
[02:52:02] al2o3-cr: let me check
[02:52:09] sharkman: okay thanks
[02:53:34] stardiviner: has joined #ruby
[02:54:18] dikaio: has joined #ruby
[02:56:09] sharkman: i kind of want to find a way to change Mechanize so it can accept a socks proxy, but that is probably above my skill level. i cant even figure out this much simpler problem
[02:57:23] al2o3-cr: just tried too, same ip address
[02:57:36] al2o3-cr: give me minute not to familiar with these gems
[02:57:39] tAn: has joined #ruby
[02:58:55] tildes_: has joined #ruby
[02:59:09] SilverKey: has joined #ruby
[02:59:12] sharkman: okay thanks i appreciate it
[02:59:34] sharkman: i notice that if you scrape http://www.ipchicken.com the first time, and then http://ipchicken.com the second time, it changes the IP
[03:00:06] rbennacer: has joined #ruby
[03:01:12] sharkman: https://gist.github.com/anonymous/64e34a6af7a5d5947bdf58f64161c4cd
[03:01:17] sharkman: this code also works, using nokogiri
[03:01:32] berserk_ren: has joined #ruby
[03:01:42] sharkman: so i guess mechanize is caching the page somewhere? even though i start different instances. i dont see anything in the documentation about this
[03:02:27] Arcaire: It's honestly probably not caching the page.
[03:02:38] Arcaire: Primarily because there's a bunch of gems specifically to enable Mechanize caching.
[03:02:48] Arcaire: So given their existence I'd venture that it doesn't do it by default.
[03:03:10] al2o3-cr: it doesn't cache
[03:05:44] tildes_: has joined #ruby
[03:06:06] CloCkWeRX: has joined #ruby
[03:06:49] sharkman: yeah good pont
[03:07:00] sharkman: yup i am stumped!
[03:11:01] zast: has joined #ruby
[03:11:13] binaryplease1: has joined #ruby
[03:13:01] pawnbox: has joined #ruby
[03:13:06] kobain: has joined #ruby
[03:14:07] sharkman: if i add the command "sleep(6)" in between scrapes than it gets different IP addreses
[03:14:19] sharkman: but if its just sleep(4) then it still gets the same IP
[03:14:52] braincrash: has joined #ruby
[03:15:23] htmldrum: has joined #ruby
[03:15:25] Limix: has joined #ruby
[03:15:30] stannard: has joined #ruby
[03:15:31] agent_white: has joined #ruby
[03:16:04] d0lph1n98: has joined #ruby
[03:16:23] sharkman: any ideas al2o3-cr
[03:16:30] Caerus: hello #ruby :)
[03:20:03] al2o3-cr: sharkman: been messing about for 15 minutes, still no further in why this is happening :(
[03:20:32] sharkman: okay thank you
[03:20:37] sharkman: its a tricky issue right
[03:21:09] al2o3-cr: upto now yes :p
[03:23:23] karmatr0n: has joined #ruby
[03:23:58] yfeldblum: has joined #ruby
[03:26:17] d0lph1n98: has joined #ruby
[03:28:57] x77686d: has joined #ruby
[03:29:49] gix: has joined #ruby
[03:32:01] ismaelga: has joined #ruby
[03:34:21] zacts: is mechanize inspired by perl's WWW::Mechanize?
[03:34:25] segy_: has joined #ruby
[03:34:58] Xeago_: has joined #ruby
[03:36:01] sharkman: i dont know zacts
[03:39:14] mnrmnaugh: has joined #ruby
[03:39:21] zacts: hrm... does mechanize automate navigating web pages?
[03:39:35] zacts: if so it's probably a similar lib
[03:39:46] zacts: (which I'll be learning about soon)
[03:40:02] moeabdol: has joined #ruby
[03:40:55] segy_: has joined #ruby
[03:40:57] smathy: ...inspired at least in name.
[03:41:31] auzty: has joined #ruby
[03:42:57] zacts: http://docs.seattlerb.org/mechanize/
[03:43:09] zacts: "Acknowledgments
[03:43:10] zacts: This library was heavily influenced by its namesake in the Perl world. A big thanks goes to Andy Lester, the author of the original Perl module WWW::Mechanize which is available here. Ruby Mechanize would not be around without you!
[03:43:18] dikaio: has joined #ruby
[03:43:23] zacts: ^ so there ya go
[03:46:34] BSaboia: has joined #ruby
[03:49:02] pawnbox: has joined #ruby
[03:50:27] htmldrum: has joined #ruby
[03:50:33] tildes_: has joined #ruby
[03:51:09] nando293921: has joined #ruby
[03:51:47] S_Waqas: has joined #ruby
[03:55:28] troys: has joined #ruby
[03:56:14] pawnbox: has joined #ruby
[03:56:27] BSaboia: has joined #ruby
[03:57:01] emilford: has joined #ruby
[03:59:07] BrunoSaboia: has joined #ruby
[04:01:04] tAn: has joined #ruby
[04:03:00] Coldblackice: has joined #ruby
[04:04:08] Rodya_: has joined #ruby
[04:04:51] igam: has joined #ruby
[04:06:04] Spami: has joined #ruby
[04:06:31] govg: has joined #ruby
[04:09:53] Devalo: has joined #ruby
[04:12:03] al2o3-cr: sharkman: hmm.. definitely a mechanize issue: https://gist.github.com/gr33n7007h/2c3cb18798e836067cc26a936253f1f7
[04:12:05] jenrzzz: has joined #ruby
[04:12:05] jenrzzz: has joined #ruby
[04:12:11] zacstewart: has joined #ruby
[04:16:44] Y_Ichiro: has joined #ruby
[04:18:16] Ikri: has joined #ruby
[04:19:22] Fire-Dragon-DoL: has joined #ruby
[04:19:39] ceej: has joined #ruby
[04:19:39] hostess: has joined #ruby
[04:19:44] rideh: has joined #ruby
[04:19:54] cschneid: has joined #ruby
[04:22:39] constantinexvi: has joined #ruby
[04:23:07] Yiota: has joined #ruby
[04:24:02] cybrside: has joined #ruby
[04:30:08] al2o3-cr: sharkman: running without debug always goes through the proxy. running it with debug (hit and miss) sometime it works sometime it doesn't. https://gist.github.com/gr33n7007h/550d959841c2e70adf4e487ce4939733
[04:31:00] al2o3-cr: so, i'm clueless to why this happens :(
[04:31:30] SparkMasterTape: has joined #ruby
[04:36:04] Xeago_: has joined #ruby
[04:36:34] rojomisin: has joined #ruby
[04:39:21] roadt_: has joined #ruby
[04:39:22] sharkman: al2o3-cr those liks you sent me dont open for me
[04:39:43] al2o3-cr: sharkman: working code: https://gist.github.com/gr33n7007h/9cd6ee94e2e5be730df6436b4fdc4f8c
[04:40:01] al2o3-cr: you have to use the #start method with a block
[04:40:27] al2o3-cr: sharkman: you can't open the link?
[04:40:40] sharkman: i can open the last one, the others didnt open. but this last one did
[04:40:55] al2o3-cr: sharkman: that works
[04:41:59] sharkman: so if you put it in blocks then it works? thats weird right. like a bug in mechanize?
[04:43:30] al2o3-cr: we should have a !next like #archlinux :P
[04:44:17] dikaio: has joined #ruby
[04:44:47] Radar: al2o3-cr: what does it do in that channel?
[04:45:08] al2o3-cr: Another satisfied customer! NEXT!
[04:45:20] S_Waqas: has joined #ruby
[04:45:52] Dimik: has joined #ruby
[04:46:10] sharkman: thank you for your help al2o3-cr!
[04:49:04] lxsameer: has joined #ruby
[04:53:59] zacts: nokogiri is cool
[04:54:04] tildes_: has joined #ruby
[04:55:07] duncannz: has joined #ruby
[04:55:44] duncannz: has joined #ruby
[04:55:51] al2o3-cr: it's also a japanese handsaw :P
[04:56:24] duncannz: has joined #ruby
[04:57:00] zacts: heh, that's cool
[04:58:04] KensoDev: has joined #ruby
[04:58:55] yfeldblum: has joined #ruby
[05:01:20] bernsie: has joined #ruby
[05:02:26] bernsie: has left #ruby: ()
[05:03:22] tAn: has joined #ruby
[05:08:09] djbkd: has joined #ruby
[05:11:53] ruby-lang207: has joined #ruby
[05:11:57] karmatr0n: has joined #ruby
[05:12:24] ruby-lang207: has left #ruby: ()
[05:14:25] rippa: has joined #ruby
[05:14:41] noService: has joined #ruby
[05:16:50] sauvin: has joined #ruby
[05:21:29] htmldrum: has joined #ruby
[05:22:06] last_staff: has joined #ruby
[05:22:18] PedramT: has joined #ruby
[05:22:50] PedramT: has joined #ruby
[05:24:25] Moosashi: has joined #ruby
[05:26:12] whathappens: has joined #ruby
[05:26:14] duncannz: has joined #ruby
[05:27:20] isxek: has joined #ruby
[05:29:15] dikaio: has joined #ruby
[05:37:05] Xeago_: has joined #ruby
[05:40:13] Macaveli: has joined #ruby
[05:40:54] aghalarp: has joined #ruby
[05:41:47] ruby[bot]: has joined #ruby
[05:41:47] ChanServ: +o ruby[bot]
[05:42:17] ruby[bot]: -bbb k8k8k!*@*$#ruby-banned wuieoo!*@*$#ruby-banned *!*@gateway/web/cgi-irc/kiwiirc.com/ip.213.205.251.58$#ruby-banned
[05:44:10] pawnbox: has joined #ruby
[05:47:14] jenrzzz: has joined #ruby
[05:52:33] moeabdol: has joined #ruby
[05:55:41] solars: has joined #ruby
[05:59:37] nippysaurus: has joined #ruby
[06:04:08] d0lph1n98: has joined #ruby
[06:04:19] bluOxigen_: has joined #ruby
[06:06:04] craysiii: has joined #ruby
[06:06:26] zzak: has joined #ruby
[06:08:12] craysiii: I'm trying to set up Jenkins CI on a VPS for a Rails project. Every time i try to run a build, when bundler is invoked, I keep getting an error that states Could not find gem 'rails_12factor' in any of the gem sources listed in your Gemfile or available on this machine. (Bundler::GemNotFound)
[06:08:32] craysiii: https://github.com/craysiii/bloccit/blob/master/Gemfile is my Gemfile
[06:09:17] craysiii: i am able to install these gems through gem install on the command line, but for some reason when Jenkins is doing the work it says they don't exist according to my Gemfile sources.
[06:09:37] Macaveli: has joined #ruby
[06:10:41] Tref: has joined #ruby
[06:10:56] whathappens: has joined #ruby
[06:14:40] ponga: has joined #ruby
[06:16:22] matt_d: craysiii: perhaps bundler is not being invoked with any production env vars set, your gemfile has the rails_12factor gem under the production group
[06:19:36] craysiii: https://gist.github.com/craysiii/a5d311f3717572d965ad916e2da83159
[06:20:00] craysiii: you're right that i am missing some environment variables related to my app
[06:20:05] PedramT: has joined #ruby
[06:20:06] grenierm: has joined #ruby
[06:20:17] craysiii: but why would that stop bundler from finding gems?
[06:20:33] scepticulous: has joined #ruby
[06:20:48] duncannz: has joined #ruby
[06:21:57] matt_d: craysiii: true, i think i glanced at your error too quickly. if the error is coming from the bundle command: Could not find gem
[06:22:13] matt_d: 'rails_12factor' in any of the gem sources listed in your Gemfile
[06:22:27] matt_d: then it seems that your produciton group is being run
[06:22:41] craysiii: well i have source 'https://rubygems.org' in my gemfile, and I can find the gem itself on the site
[06:22:45] craysiii: which is why im puzzled i guess
[06:23:47] firstdayonthejob: has joined #ruby
[06:24:00] agit0: has joined #ruby
[06:24:12] tAn: has joined #ruby
[06:25:50] matt_d: craysiii: rightfully so. i haven't used jenkins ci, so not sure what might be going on with JCI..
[06:25:53] dikaio: has joined #ruby
[06:26:20] craysiii: yeah that was my worry when coming here. it could be Jenkins CI, it could be the Rake plugin inside it, it could be Ruby..
[06:26:57] matt_d: craysiii: is this your first project with Jenkins CI?
[06:26:59] PedramT_: has joined #ruby
[06:27:33] rodfersou: has joined #ruby
[06:27:38] craysiii: i read a few tutorials but none give any tips in case something like this were to happen
[06:27:46] matt_d: craysiii: i was just going to ask how you like jenkins ci, but i don't think you're too impressed, yet :)
[06:28:02] craysiii: hah, well i don't think it's jenkins fault
[06:28:13] craysiii: pebcak most likely :P
[06:28:24] matt_d: craysiii: well you haven't been able to really use it yet
[06:29:02] craysiii: at first i thought it was the Gemfile.lock, so I got rid of it in the repo but then i still ran into this error
[06:29:36] andikr: has joined #ruby
[06:30:01] craysiii: and i am trying to get jenkins setup so i can move away from heroku for my portfolio projects
[06:30:50] PedramT: has joined #ruby
[06:33:21] karapetyan: has joined #ruby
[06:41:56] hakunin: has joined #ruby
[06:42:13] Pumukel: has joined #ruby
[06:42:41] lsmola: has joined #ruby
[06:43:15] galeido: has joined #ruby
[06:45:21] wuyin: has joined #ruby
[06:46:18] ur5us: has joined #ruby
[06:46:28] pawnbox: has joined #ruby
[06:48:47] PedramT: has joined #ruby
[06:49:00] ur5us: has joined #ruby
[06:50:01] jaruga___: has joined #ruby
[06:50:11] aganov: has joined #ruby
[06:53:54] sj: has joined #ruby
[06:54:28] jaguarmagenta: has joined #ruby
[06:56:16] aghalarp: has joined #ruby
[06:58:16] Xeago_: has joined #ruby
[06:58:26] CausaMortis: has joined #ruby
[07:00:10] hk238: has joined #ruby
[07:02:05] biberu: has joined #ruby
[07:03:23] akem: has joined #ruby
[07:09:29] stardiviner: has joined #ruby
[07:11:21] yardenbar: has joined #ruby
[07:11:29] Moosashi: has joined #ruby
[07:11:40] Macaveli: has joined #ruby
[07:12:24] madgen: has joined #ruby
[07:13:05] toretore: has joined #ruby
[07:16:09] edwinvdgraaf: has joined #ruby
[07:20:20] aufi: has joined #ruby
[07:22:33] dikaio: has joined #ruby
[07:24:11] Couch: has joined #ruby
[07:24:55] Tref: has joined #ruby
[07:26:34] ramfjord: has joined #ruby
[07:28:30] Mia: has joined #ruby
[07:28:30] Mia: has joined #ruby
[07:30:53] PedramT: has joined #ruby
[07:32:00] Xeago_: has joined #ruby
[07:32:19] DoubleMalt: has joined #ruby
[07:32:54] Amnez777: has joined #ruby
[07:33:25] mloy: has joined #ruby
[07:33:26] antgel: has joined #ruby
[07:34:31] PedramT: has joined #ruby
[07:36:00] grenierm: has joined #ruby
[07:37:17] neanderslob: has joined #ruby
[07:37:20] pawnbox_: has joined #ruby
[07:37:33] Madplatypus: has joined #ruby
[07:37:42] ur5us: has joined #ruby
[07:37:44] PedramT: has joined #ruby
[07:38:51] PedramT: has joined #ruby
[07:39:38] Amnez777: has joined #ruby
[07:40:46] xcesariox: has joined #ruby
[07:41:33] Alina-malina: has joined #ruby
[07:43:06] igam: has joined #ruby
[07:47:37] moeabdol: has joined #ruby
[07:48:19] zacstewart: has joined #ruby
[07:49:46] Moosashi: has joined #ruby
[07:53:03] User458764: has joined #ruby
[07:55:11] helpa-bot: has joined #ruby
[07:55:41] madgen_: has joined #ruby
[07:55:57] PaulCape_: has joined #ruby
[07:56:27] senayar: has joined #ruby
[07:56:27] senayar: has joined #ruby
[07:56:54] dling`: has joined #ruby
[07:56:54] err_ok_: has joined #ruby
[07:57:00] skade: has joined #ruby
[07:57:16] ged_: has joined #ruby
[07:57:39] helpa-bot: has joined #ruby
[07:57:50] Zarthus_: has joined #ruby
[07:57:58] jmcc___________: has joined #ruby
[07:58:14] im0b_: has joined #ruby
[07:58:18] gmci: has joined #ruby
[07:58:18] c355E3B_: has joined #ruby
[07:58:27] acerna: has joined #ruby
[07:58:27] Coldblackice: has joined #ruby
[07:58:29] jxf_: has joined #ruby
[07:58:33] eregon_: has joined #ruby
[07:58:34] [diecast]: has joined #ruby
[07:58:35] dafull97: has joined #ruby
[07:58:35] dafull97: has joined #ruby
[07:58:35] Kim^J: has joined #ruby
[07:58:35] gmci: has joined #ruby
[07:58:35] acerna: has joined #ruby
[07:58:38] [diecast]: has joined #ruby
[07:58:40] fn2187__: has joined #ruby
[07:58:42] boxrick1__: has joined #ruby
[07:58:47] neanderslob: has joined #ruby
[07:58:51] jaruga___: has joined #ruby
[07:58:53] deavid: has joined #ruby
[07:58:54] HashNuke_: has joined #ruby
[07:58:58] nwhirschfeld_: has joined #ruby
[07:59:05] drbrain: has joined #ruby
[07:59:05] nibbo: has joined #ruby
[07:59:14] cschneid: has joined #ruby
[07:59:14] x0F: has joined #ruby
[07:59:18] Amnez777: has joined #ruby
[07:59:18] jtd: has joined #ruby
[07:59:21] kitallis: has joined #ruby
[07:59:22] Xeago_: has joined #ruby
[07:59:22] toretore: has joined #ruby
[07:59:23] hfp: has joined #ruby
[07:59:25] LoganG: has joined #ruby
[07:59:27] zacts: has joined #ruby
[07:59:27] Dimik: has joined #ruby
[08:00:08] helpa: has joined #ruby
[08:00:15] chris2: has joined #ruby
[08:00:32] noodle: has joined #ruby
[08:00:34] symm-: has joined #ruby
[08:00:41] lancetw: has joined #ruby
[08:00:44] borkdude: has joined #ruby
[08:00:50] hostess: has joined #ruby
[08:01:05] aredridel: has joined #ruby
[08:01:11] sepp2k: has joined #ruby
[08:01:17] Amnez777: has joined #ruby
[08:01:21] Caelum: has joined #ruby
[08:01:32] zack6849: has joined #ruby
[08:01:33] zack6849: has joined #ruby
[08:01:51] mark_66: has joined #ruby
[08:01:55] zel: has joined #ruby
[08:02:18] swgillespie: has joined #ruby
[08:03:20] kalzz: has joined #ruby
[08:03:24] twe4ked: has joined #ruby
[08:03:28] mikecmpbll: has joined #ruby
[08:03:44] Xeago_: has joined #ruby
[08:03:50] kalz: has joined #ruby
[08:05:41] kireevco: has joined #ruby
[08:05:41] jimeh: has joined #ruby
[08:05:46] jokke: has joined #ruby
[08:05:53] lipoqil: has joined #ruby
[08:05:56] daemonwrangler: has joined #ruby
[08:06:58] anisha: has joined #ruby
[08:07:21] stef204: has joined #ruby
[08:07:31] deimos__: has joined #ruby
[08:07:35] ELCALOR: has joined #ruby
[08:08:20] tvw: has joined #ruby
[08:08:29] mrsolo: has joined #ruby
[08:08:57] pfg: has joined #ruby
[08:09:20] Expanse: has joined #ruby
[08:10:10] zrl_: has joined #ruby
[08:10:14] znz_jp: has joined #ruby
[08:10:32] nyuszika7h: has joined #ruby
[08:11:38] |2701: has joined #ruby
[08:11:45] akahn: has joined #ruby
[08:12:14] jhill: has joined #ruby
[08:12:14] yo61_: has joined #ruby
[08:12:18] Majost: has joined #ruby
[08:12:24] Caerus|Away: has joined #ruby
[08:13:27] jpinnix_______: has joined #ruby
[08:14:03] znz_jp: has joined #ruby
[08:18:15] gdp: has joined #ruby
[08:19:36] dionysus69: has joined #ruby
[08:20:54] stannard: has joined #ruby
[08:22:12] Moosashi: has joined #ruby
[08:22:49] devbug: has joined #ruby
[08:23:49] ByronJohnson: has joined #ruby
[08:23:53] ByronJohnson: has joined #ruby
[08:26:59] pawnbox: has joined #ruby
[08:27:07] MrSamuel: has joined #ruby
[08:27:55] awer: has joined #ruby
[08:29:46] mrgrieve1: has joined #ruby
[08:31:10] karmatr0n: has joined #ruby
[08:32:09] Lildirt: has joined #ruby
[08:33:25] pandaant: has joined #ruby
[08:35:39] codecop: has joined #ruby
[08:36:28] bronson: has joined #ruby
[08:37:32] TheHodge: has joined #ruby
[08:39:57] wldcordeiro: has joined #ruby
[08:41:22] skade: has joined #ruby
[08:42:04] dgncn: has joined #ruby
[08:42:33] MrSamuel: i made some packages in the aur
[08:42:45] MrSamuel: is it worth discussing with anyone bring those package to the official repos?
[08:42:49] PedramT: has joined #ruby
[08:43:02] MrSamuel: oh whoops wrong channel :D
[08:43:19] evidex: has joined #ruby
[08:44:45] htmldrum: has joined #ruby
[08:46:54] aupadhye: has joined #ruby
[08:47:55] pawnbox: has joined #ruby
[08:51:03] yfeldblum: has joined #ruby
[08:54:03] ferr: has joined #ruby
[08:54:40] the_drow: has joined #ruby
[08:56:59] blur3d: has joined #ruby
[09:00:15] Xeago_: has joined #ruby
[09:03:42] n008f4g_: has joined #ruby
[09:04:43] dede: has joined #ruby
[09:07:19] workmad3: has joined #ruby
[09:10:00] sepp2k: has joined #ruby
[09:10:04] hk238: has joined #ruby
[09:10:56] Xeago_: has joined #ruby
[09:11:50] giz|work: has joined #ruby
[09:13:07] ferr: has joined #ruby
[09:14:53] ferr: has joined #ruby
[09:15:25] johnny56: has joined #ruby
[09:17:08] PedramT: has joined #ruby
[09:17:46] blackmes1: has joined #ruby
[09:19:13] PedramT: has joined #ruby
[09:19:29] ferr: has joined #ruby
[09:20:29] ferr: has joined #ruby
[09:20:38] PedramT_: has joined #ruby
[09:21:59] pLaToOn: has joined #ruby
[09:24:36] FooMunki: has joined #ruby
[09:24:54] ferr: has joined #ruby
[09:25:15] al2o3-cr: good morning mr pLaToOn
[09:26:19] al2o3-cr: how we doing this fine morning?
[09:26:22] TomyLobo: has joined #ruby
[09:26:39] ferr: has joined #ruby
[09:26:59] pLaToOn: fine, thx, and you?
[09:27:18] al2o3-cr: not bad at all
[09:33:44] ferr: has joined #ruby
[09:35:09] Kaer: has joined #ruby
[09:35:44] Kaer: do anyone have a moment for a beginner with problem ?
[09:35:51] RegulationD: has joined #ruby
[09:38:24] Polysics: has joined #ruby
[09:39:53] stef_204: has joined #ruby
[09:40:50] cpup: has joined #ruby
[09:43:30] tildes: has joined #ruby
[09:45:56] Gasher: has joined #ruby
[09:50:57] Grantlyk: has joined #ruby
[09:53:06] n008f4g_: has joined #ruby
[09:54:38] ICantCook: has joined #ruby
[09:54:49] moeabdol: has joined #ruby
[09:55:11] infernix: has joined #ruby
[09:55:34] jaguarmagenta: has joined #ruby
[09:58:09] ur5us: has joined #ruby
[10:00:12] vondruch: has joined #ruby
[10:00:42] shevy: al2o3-cr you scared him off!
[10:01:02] PedramT: has joined #ruby
[10:01:08] PaulePanter: has joined #ruby
[10:03:13] al2o3-cr: shevy: freenode gateway, prolly a ***** anyway
[10:04:32] madgen: has joined #ruby
[10:05:38] al2o3-cr: i remember when trolls used to look like this, https://s-media-cache-ak0.pinimg.com/236x/61/bd/95/61bd957cef871e792d6b61eab343a4c4.jpg
[10:07:55] d0lph1n98: has joined #ruby
[10:08:30] Macaveli: has joined #ruby
[10:09:24] al2o3-cr: shevy: what you coding lately?
[10:09:38] karapetyan: has joined #ruby
[10:11:52] al2o3-cr: come backs with answer is disallowed within >= 20 lines
[10:12:38] awer: has joined #ruby
[10:16:02] al2o3-cr: >> Math.gamma(-~5)
[10:16:03] ruby[bot]: al2o3-cr: # => 120.0 (https://eval.in/564259)
[10:16:20] al2o3-cr: hey, factorials
[10:16:50] platzhirsch: has joined #ruby
[10:17:28] platzhirsch: has left #ruby: ()
[10:17:58] PedramT: has joined #ruby
[10:18:35] al2o3-cr: is their a shorter way to get PI in Ruby than `-1.arg`
[10:19:08] roshanavand: has joined #ruby
[10:19:58] adaedra: Not shorter but clearer: Math::PI
[10:21:41] al2o3-cr: adaedra: how to get 9999 back from this: [0.61029052734375, 14]
[10:22:17] stannard: has joined #ruby
[10:24:36] al2o3-cr: >> Math.frexp(9999)
[10:24:37] ruby[bot]: al2o3-cr: # => [0.61029052734375, 14] (https://eval.in/564284)
[10:32:34] blaxter: has joined #ruby
[10:37:05] bronson: has joined #ruby
[10:37:35] PedramT: has joined #ruby
[10:38:05] claw: has joined #ruby
[10:39:37] User458764: has joined #ruby
[10:41:59] aufi: has joined #ruby
[10:48:55] Ox0dea: has joined #ruby
[10:49:06] Ox0dea: al2o3-cr: It's right there in the docs for #frexp.
[10:51:07] silentpo1t: has joined #ruby
[10:51:53] slackbotgz: has joined #ruby
[10:52:09] Xeago_: has joined #ruby
[10:54:21] Mia: has joined #ruby
[10:58:14] sdothum: has joined #ruby
[11:02:34] FooMunki: has joined #ruby
[11:03:14] PedramT: has joined #ruby
[11:03:55] johnmilton: has joined #ruby
[11:07:52] roadt_: has joined #ruby
[11:10:40] moeabdol: has joined #ruby
[11:15:03] charliesome: has joined #ruby
[11:17:13] charliesome: has joined #ruby
[11:17:39] jds: has joined #ruby
[11:17:54] GodFather: has joined #ruby
[11:19:09] pawnbox: has joined #ruby
[11:23:10] d0lph1n98: has joined #ruby
[11:23:18] skade: has joined #ruby
[11:24:25] charliesome: has joined #ruby
[11:24:36] zacstewart: has joined #ruby
[11:27:06] rbr: has joined #ruby
[11:28:02] chipotle: has joined #ruby
[11:29:41] pawnbox: has joined #ruby
[11:32:36] adaedra: 0xGreetings.
[11:33:02] snowy: has joined #ruby
[11:33:44] Xeago_: has joined #ruby
[11:36:41] RegulationD: has joined #ruby
[11:39:39] inukshuk_: has joined #ruby
[11:39:52] Ox0dea: I want to understand.
[11:41:52] JakFrist: has joined #ruby
[11:42:40] pawnbox_: has joined #ruby
[11:43:28] PedramT: has joined #ruby
[11:43:53] User458764: has joined #ruby
[11:47:19] PedramT_: has joined #ruby
[11:49:02] PedramT: has joined #ruby
[11:51:47] nofxx: has joined #ruby
[11:51:47] nofxx: has joined #ruby
[11:52:54] vondruch: has joined #ruby
[11:54:08] madgen: has joined #ruby
[11:54:45] vondruch: has joined #ruby
[11:56:21] jaguarmagenta: has joined #ruby
[11:58:04] rbr: has joined #ruby
[11:59:56] mrgrieve1: has joined #ruby
[12:02:15] Xeago_: has joined #ruby
[12:02:45] ldnunes: has joined #ruby
[12:03:32] Xeago_: has joined #ruby
[12:04:44] diegoviola: has joined #ruby
[12:05:19] SHyx0rmZ: has joined #ruby
[12:05:22] pawnbox: has joined #ruby
[12:05:57] Hanmac: has joined #ruby
[12:07:10] rickmasta: has joined #ruby
[12:07:34] n008f4g_: has joined #ruby
[12:07:52] Polysics: has joined #ruby
[12:08:43] pawnbox_: has joined #ruby
[12:11:17] Azure|dc: has joined #ruby
[12:11:36] ItSANgo: has joined #ruby
[12:12:14] gnufied: has joined #ruby
[12:12:23] diegoaguilar: has joined #ruby
[12:13:21] tlaxkit: has joined #ruby
[12:14:42] diego1: has joined #ruby
[12:15:01] synthroid: has joined #ruby
[12:15:07] PlasmaStar: has joined #ruby
[12:15:20] Azure: has joined #ruby
[12:15:33] duckpuppy: has joined #ruby
[12:16:16] Hanmac: shevy: what do you think about that Fixnum and Bignum does colide? xD
[12:16:35] diego2: has joined #ruby
[12:16:43] diego2: has joined #ruby
[12:19:24] isxek: has joined #ruby
[12:19:55] Ox0dea: They're not "colliding"; they're being unified.
[12:20:03] Ox0dea: It's obviously a Good Thing.
[12:22:45] ismaelga: has joined #ruby
[12:23:52] stannard: has joined #ruby
[12:28:26] Tref: has joined #ruby
[12:28:49] jhill: has joined #ruby
[12:29:45] skade: has joined #ruby
[12:31:03] snowy: has joined #ruby
[12:35:04] apeiros: it's also mostly an implementation detail and all you have to consider is Integer
[12:35:42] karapetyan: has joined #ruby
[12:36:08] snowy: has joined #ruby
[12:36:26] Xiti: has joined #ruby
[12:38:59] bronson: has joined #ruby
[12:40:35] govg: has joined #ruby
[12:41:01] brendan-: has joined #ruby
[12:42:12] flashpoint9: has joined #ruby
[12:42:26] Hanmac: Ox0dea: they are colliding together like two big galaxies XD
[12:45:36] anisha: has joined #ruby
[12:45:48] apeiros: hanmac: in other words - it'll be a problem in millions of years but not now?
[12:46:14] Hanmac: apeiros: or it could mean the end of million lifeforms XD
[12:46:46] apeiros: somewhen a couple of million years in the future…
[12:47:48] User458764: has joined #ruby
[12:51:46] Ispira: has joined #ruby
[12:52:53] igam`: Galaxy collisions are basically harmless for life on planets on those galaxies.
[12:53:24] Xeago_: has joined #ruby
[12:53:44] igam`: You would need to be very unlucky to live on a planet whose star would pass close enough to a star of the colliding galaxy to perturbate your orbit catastrophically.
[12:55:58] Vingador: has joined #ruby
[12:56:33] Ox0dea: In case you wanted that.
[12:58:30] ChiefAlexander: has joined #ruby
[12:59:41] ramortegui: has joined #ruby
[13:01:45] kfpratt: has joined #ruby
[13:02:41] crystal77: has joined #ruby
[13:04:21] Vingador_: has joined #ruby
[13:04:45] aegis3121: has joined #ruby
[13:05:14] banister: has joined #ruby
[13:07:01] snowy: has joined #ruby
[13:09:00] madgen: has joined #ruby
[13:09:41] davedev24: has joined #ruby
[13:11:32] Xeago_: has joined #ruby
[13:13:35] platzhirsch: has joined #ruby
[13:13:38] nadir: has joined #ruby
[13:15:19] senayar: has joined #ruby
[13:15:19] senayar: has joined #ruby
[13:15:25] VeryBewitching: has joined #ruby
[13:17:09] nerium: has joined #ruby
[13:17:18] JakFrist: has joined #ruby
[13:21:09] karmatr0n: has joined #ruby
[13:21:37] ChiefAlexander: has joined #ruby
[13:22:39] madgen: has joined #ruby
[13:23:04] hhee: has joined #ruby
[13:23:15] hhee: guys, ruby difficult for beginner?
[13:25:08] tobiasvl: beginner in what?
[13:25:22] tobiasvl: ruby? object-oriented programming? functional programming? just programming?
[13:25:54] sgambino: has joined #ruby
[13:27:55] madgen: has joined #ruby
[13:29:18] hhee: tobiasvl, just programming. (i have a little knowledge of php in background)
[13:29:39] PedramT: has joined #ruby
[13:29:46] ismaelga: has joined #ruby
[13:30:09] hhee: tobiasvl, maybe in web-way. rails i mean
[13:30:53] aegis3121: has joined #ruby
[13:31:28] Ox0dea: has joined #ruby
[13:31:54] SilverKey: has joined #ruby
[13:32:39] tobiasvl: OK, I don't know rails
[13:32:44] godzillaenlacasa: has joined #ruby
[13:33:12] malconis: has joined #ruby
[13:33:46] nofxx: has joined #ruby
[13:33:53] S_Waqas: has joined #ruby
[13:34:22] adaedra: Ruby itself should not be difficult to pick up, given you use the right resource (and that depends on the person)
[13:34:35] KensoDev: has joined #ruby
[13:35:12] jordanm: has joined #ruby
[13:35:19] pandaant: has joined #ruby
[13:35:47] diego1: has joined #ruby
[13:35:50] Ebok: has joined #ruby
[13:36:15] diego1: has joined #ruby
[13:38:43] S_Waqas: has joined #ruby
[13:38:59] freerobby: has joined #ruby
[13:39:05] apeiros: hhee: I found ruby one of the easiest to learn languages. but I had other languages before that. also people differ.
[13:39:49] hhee: tobiasvl, ruby in rails i mean
[13:40:14] hhee: adaedra, apeiros got it. thx guys
[13:40:43] hhee: which books or courses can you recommend?
[13:40:54] Xeago_: has joined #ruby
[13:40:56] apeiros: ?books hhee
[13:40:57] ruby[bot]: hhee: You can find a list of recommended books at http://ruby-community.com/pages/links
[13:41:02] Elvin: has joined #ruby
[13:41:04] giz|work: has joined #ruby
[13:41:13] hhee: apeiros, cool
[13:41:25] tobiasvl: hhee: sure, I know what rails IS, I just don't know it myself :)
[13:41:32] tobiasvl: #rubyonrails
[13:41:33] GodFather: has joined #ruby
[13:42:13] malconis: has joined #ruby
[13:43:08] hhee: one more question. ruby suitable for system tasks like bash? instead python for example
[13:43:23] senayar: has joined #ruby
[13:43:26] swills: has joined #ruby
[13:43:28] pawnbox: has joined #ruby
[13:43:45] hinbody: has joined #ruby
[13:44:14] CloCkWeRX: has joined #ruby
[13:44:47] diego1: has joined #ruby
[13:44:57] diego1: has joined #ruby
[13:45:19] deadnull_: has joined #ruby
[13:45:30] sharkman: has joined #ruby
[13:46:48] pawnbox: has joined #ruby
[13:47:25] hostess: has joined #ruby
[13:48:24] JakFrist: has joined #ruby
[13:52:47] diegoviola: has joined #ruby
[13:53:13] cdg: has joined #ruby
[13:53:16] diegoviola: has joined #ruby
[13:54:26] MissionCritical: has joined #ruby
[13:56:19] nerium: has joined #ruby
[13:57:06] jaguarmagenta: has joined #ruby
[13:58:40] mrgrieves: hi, this is doing what I want but it's failing tests because it takes to long to run https://gist.github.com/dansanabria/220f435587a1dbc7be4df6e5f2eef51c
[13:59:48] rbennacer: has joined #ruby
[14:00:02] karmatr0n: has joined #ruby
[14:00:34] rbennacer: has joined #ruby
[14:00:45] gregf: has joined #ruby
[14:01:01] tobiasvl: what are the tests?
[14:01:12] adaedra: what is it expected to do?
[14:01:27] mrgrieves: basically we get an array of five names which we process from left to right (names) and a digit representing a position in the queue (r). when we process the first name we double it and move those 2 names to the back of the queue the idea of the method is to return the name that's going to be in position r
[14:02:14] mrgrieves: 1< r < 1000000000
[14:02:41] tobiasvl: shift removes the first entry from the array, you know? that doesn't sound like what you want
[14:03:00] apeiros: that's a funny algorithm…
[14:03:32] tobiasvl: oh wait that is what you want
[14:03:37] apeiros: so with r = 1000000000, you end up with 2000000000 items in the queue
[14:05:57] apeiros: you can probably make the given algorithm academically faster by choosing the right methods, but I doubt it'll solve your "too slow" problem. I assume the algorithm is required to be implemented like that?
[14:06:15] Xeago_: has joined #ruby
[14:06:17] firstdayonthejob: has joined #ruby
[14:06:22] apeiros: the alternative would be to just calculate the name
[14:06:53] stannard: has joined #ruby
[14:08:53] mrgrieves: apeiros: yes calculate the name - Return the single line the name of the person who is at the top of the queue on the r-th turn.
[14:08:56] ruby-lang956: has joined #ruby
[14:08:59] tobiasvl: what's the purpose of this method?
[14:09:07] apeiros: mrgrieves: your method does not calculate it
[14:09:10] apeiros: it "explores" it
[14:09:30] zacstewart: has joined #ruby
[14:09:32] mrgrieves: apeiros: you are right, my maths are crap
[14:10:16] CloCkWeRX: has joined #ruby
[14:10:47] apeiros: if you want to figure the formula to calculate it - given names.size = 5, inspect the array at those values for r: 0, 5, 15, 35, 75
[14:11:30] madgen: has joined #ruby
[14:11:34] charliesome: has joined #ruby
[14:11:43] moeabdol: has joined #ruby
[14:11:56] bim: has joined #ruby
[14:12:02] apeiros: and I was wrong, with r= 1000000000, you get quite a lot more than 2000000000 items in the queue. you probably would run out of memory.
[14:12:35] apeiros: oh, meh, or actually maybe not :)
[14:13:26] BSaboia: has joined #ruby
[14:13:30] mrgrieves: apeiros: I think you are on the right path with inspecting and figuring out the formula
[14:15:25] snowy: has joined #ruby
[14:16:19] Phasee: has joined #ruby
[14:17:37] ndrst: has joined #ruby
[14:18:32] madgen: has joined #ruby
[14:18:50] giz|work: has joined #ruby
[14:20:40] kobain: has joined #ruby
[14:20:52] FooMunki: has joined #ruby
[14:21:43] kobain: has joined #ruby
[14:22:16] dopamean_: has joined #ruby
[14:22:23] n008f4g_: has joined #ruby
[14:24:02] bronson: has joined #ruby
[14:26:34] charliesome_: has joined #ruby
[14:26:45] DoubleMalt: has joined #ruby
[14:26:49] smathy: has joined #ruby
[14:27:51] stannard: has joined #ruby
[14:28:17] stannard: has joined #ruby
[14:28:26] perlgod: has joined #ruby
[14:28:40] ChiefAlexander: has joined #ruby
[14:30:02] zast: has joined #ruby
[14:31:10] infernix: has joined #ruby
[14:32:57] SilverKey: has joined #ruby
[14:33:07] mihail: has joined #ruby
[14:33:40] IrishGringo: has joined #ruby
[14:35:08] whippythellama: has joined #ruby
[14:35:09] Limix: has joined #ruby
[14:35:37] mustmodify: has joined #ruby
[14:37:30] jhack: has joined #ruby
[14:37:32] freerobby: has joined #ruby
[14:39:32] hobodave: has joined #ruby
[14:40:57] dhollinger: has joined #ruby
[14:42:04] ixti: has joined #ruby
[14:42:30] jimcroft_: has joined #ruby
[14:43:31] LastWhisper____: has joined #ruby
[14:43:36] rojomisin: has joined #ruby
[14:44:54] kareeoleez: has joined #ruby
[14:44:59] rickmasta: has joined #ruby
[14:46:09] openstruct: has joined #ruby
[14:50:29] borodin: has joined #ruby
[14:52:59] Devalo: has joined #ruby
[14:53:25] emilford: has joined #ruby
[14:53:26] weemsledeux: has joined #ruby
[14:55:56] Blaguvest: has joined #ruby
[14:56:15] polishdub: has joined #ruby
[14:56:42] chey: has joined #ruby
[14:57:06] blackmes1: has joined #ruby
[14:57:44] skade: has joined #ruby
[14:58:21] pawnbox: has joined #ruby
[15:00:03] freerobby: has joined #ruby
[15:00:13] znz_jp: has joined #ruby
[15:00:25] maokomioko: has joined #ruby
[15:00:33] PedramT: has joined #ruby
[15:01:26] aegis3121: has joined #ruby
[15:03:39] mark_66: has left #ruby: ("PART #RubyOnRails :PART #elixir-lang :PART #crystal-lang :PONG :orwell.freenode.net")
[15:05:27] zacstewart: has joined #ruby
[15:05:58] PedramT: has joined #ruby
[15:07:19] ruby-lang880: has joined #ruby
[15:07:35] GinoMan2440: has joined #ruby
[15:09:02] freerobby1: has joined #ruby
[15:10:26] amclain: has joined #ruby
[15:10:47] idefine: has joined #ruby
[15:11:54] crystal77: has joined #ruby
[15:12:31] minimalism: has joined #ruby
[15:12:39] drale2k: has joined #ruby
[15:12:41] diegoaguilar: has joined #ruby
[15:12:48] nofacade: has joined #ruby
[15:13:47] troulouliou_div2: has joined #ruby
[15:14:00] blandflakes: has joined #ruby
[15:15:11] enslavedtuna: has joined #ruby
[15:16:30] enslavedtuna: Hey guys quick question. I want to acces x[:test] but "test" is a string as in z = "test". how do i use z in the first statement? x[:#{z}] does not work
[15:16:47] adaedra: x[z.to_sym]
[15:17:02] apeiros: but if z is user-input, you should reconsider why you're using symbols as keys in the first place
[15:17:03] n008f4g_: has joined #ruby
[15:17:03] adaedra: go back to ninja school, apeiros
[15:17:14] c_nick: has joined #ruby
[15:17:16] mjuszczak: has joined #ruby
[15:17:24] enslavedtuna: thanks a lot guys! did not know about to_sym
[15:17:25] apeiros: why go back? I'm still a sensai there
[15:17:46] c_nick: i am calling an exe using system(executable *args) How to output a log file with the status of the exe?
[15:21:21] adaedra: the status?
[15:21:25] enslavedtuna: oh the : symbol is not part of the string, but I do need it in the index, is there a better way than to add : to the string?
[15:21:38] bronson: has joined #ruby
[15:21:44] adaedra: :test is not a string but a symbol
[15:21:46] Kyle__: has joined #ruby
[15:21:47] Limix: has joined #ruby
[15:21:50] adaedra: >> "test".to_sym
[15:21:51] ruby[bot]: adaedra: # => :test (https://eval.in/564634)
[15:22:20] enslavedtuna: ohh, I'm such a noob. Thanks again!
[15:22:27] Yiota: has joined #ruby
[15:23:28] Kyle__: It's been a while, but I __thought__ I used to be able to do something like this: r=/something (?<a>\S+) (?<b>\S+)/;File.read("somefile").scan(r)
[15:23:52] Kyle__: And get an array of matches with named captures. Is my memory fault here? Is that just something I wanted to happen and didn't?
[15:25:37] c_nick: adaedra: yeah I trued with `` and with system surprisingly p gives me the output of the invoked cmd for both while one was supposed to tell me whether the call was successful or not
[15:26:06] adaedra: You may be after $?
[15:26:12] c_nick: p `date`, $?
[15:26:19] c_nick: > p `date`, $?
[15:26:26] c_nick: >> p `date`, $?
[15:26:27] ruby[bot]: c_nick: # => (https://eval.in/564635)
[15:26:30] adaedra: Do you need to get the output of the program?
[15:26:42] c_nick: yeah otherwise i wont know if it ran successfully or not
[15:26:43] adaedra: You can't `` with the bot, use your irb/pry.
[15:27:27] adaedra: $? contains system information about the last run command
[15:27:36] adaedra: (or something like that but should be close enough)
[15:28:22] berserk_ren: has joined #ruby
[15:28:54] adaedra: &ri Process::Status
[15:28:54] `derpy: http://ruby-doc.org/core-2.3.0/Process/Status.html
[15:29:13] kareeoleez: has joined #ruby
[15:31:22] giz|work: has joined #ruby
[15:31:43] sgambino: has joined #ruby
[15:31:46] c_nick: $?.success? works for me
[15:31:58] c_nick: i am intrigued to find out how to read from the stdout
[15:32:15] adaedra: using `` will provide you the stdout once the command is finished
[15:32:51] adaedra: otherwise, IO.open() allows to pipe to/from a process and interact directly
[15:32:57] adaedra: there's also open3
[15:33:30] adaedra: mh, hold on
[15:33:38] c_nick: $stdout.reopen("out.txt", "w")
[15:33:45] c_nick: this should help too right?
[15:33:55] PedramT: has joined #ruby
[15:33:58] adaedra: from a fork {} block sure, but that's quite manual.
[15:34:19] adaedra: if you need something short like date, `date` is enough.
[15:34:57] adaedra: It's Kernel.open, not IO.open which allows to pipe commands, my bad.
[15:35:13] adaedra: &ri Kernel.open
[15:35:13] `derpy: http://ruby-doc.org/stdlib-2.3.0/libdoc/open-uri/rdoc/Kernel.html#method-c-open
[15:35:15] akem: has joined #ruby
[15:35:38] c_nick: cool thanks
[15:36:22] nando293921: has joined #ruby
[15:36:32] rodfersou: has joined #ruby
[15:37:08] rbr: has joined #ruby
[15:38:22] ljames: has joined #ruby
[15:38:34] adaedra: mh, this link is wrong.
[15:39:09] hogetaro: has joined #ruby
[15:39:22] adaedra: this is the right one: http://ruby-doc.org/core-2.3.0/Kernel.html#method-i-open
[15:39:30] c_nick: since i am using team city i can let the output be displayed on the stdout only the success and failure of the command is what i am worried about
[15:39:38] adaedra: ACTION hits `derpy on the head
[15:39:48] adaedra: then you can just use system() then check $?
[15:40:16] soahccc: Is there a way to use OptionParser but not raising an InvalidOption exception? I just want it to treat unknown options as normal arguments... any chance? I tried with ex.recover but that doesn't resume processing and I need to not interrupt the order of arguments
[15:40:17] c_nick: i think team city fails the job if the process status is failed
[15:40:55] adaedra: also, if the only thing you're doing is passing down the status to make the build fail, you can also exec(), which will transform your current process to the new one and remove the need of passing down the status.
[15:41:25] c_nick: ah! i dont want that .. because the script is doing two interdependent things
[15:41:41] c_nick: if i use exec() it will lose out on the second part
[15:41:45] adaedra: fair enough
[15:42:43] dionysus69: has joined #ruby
[15:43:13] c_nick: soahccc: Soachcc
[15:43:18] c_nick: http://stackoverflow.com/questions/1885161/how-can-i-get-optparses-optionparser-to-ignore-invalid-options
[15:43:26] rbr: has joined #ruby
[15:43:47] c_nick: And for Ruby - http://stackoverflow.com/questions/3642331/can-optionparser-skip-unknown-options-to-be-processed-later-in-a-ruby-program
[15:44:58] akem: has joined #ruby
[15:47:09] Spami: has joined #ruby
[15:48:02] chey: what do you guys use to write in ruby?
[15:48:12] Limix: has joined #ruby
[15:48:43] chey: using linux?
[15:48:55] jackdaniel: yes, but emacs works fine on windows too
[15:49:06] chey: thanks bro
[15:49:33] jackdaniel: sure. be aware that emacs has somewhat steep learning curve, I knew it before
[15:49:35] whathappens: has joined #ruby
[15:49:52] madgen: has joined #ruby
[15:50:01] chey: no worries i learn pretty fast
[15:50:16] kareeoleez: has joined #ruby
[15:50:30] jackdaniel: sure, just a warning
[15:50:32] duderonomy: has joined #ruby
[15:51:59] DarkBushido: has joined #ruby
[15:51:59] DarkBushido: has joined #ruby
[15:52:06] SilverKey: has joined #ruby
[15:52:16] chey: yea i was just trying to find an ide to no avail
[15:52:37] duderonomy: has joined #ruby
[15:53:07] moeabdol: has joined #ruby
[15:53:31] cocotton: has joined #ruby
[15:53:52] smathy: chey, for Linux?
[15:54:35] duderonomy: has joined #ruby
[15:55:53] ruby[bot]: an IDE is not necessary to develop with ruby. A decent text editor is sufficient. If you truly want an IDE, take a look at RubyMine by JetBrains (https://www.jetbrains.com/ruby/).
[15:56:07] The_Phoenix: has joined #ruby
[15:56:22] hhee: has joined #ruby
[15:57:07] chey: i just finished ruby on codecademy i did it twice
[15:57:12] sgambino: has joined #ruby
[15:57:17] Xeago_: has joined #ruby
[15:57:18] chey: just to make sure
[15:57:19] oncall-pokemon: has joined #ruby
[15:57:20] LastWhisper____: has joined #ruby
[15:57:51] jaguarmagenta: has joined #ruby
[15:58:32] Coldblackice: has joined #ruby
[16:00:49] stannard: has joined #ruby
[16:01:19] idefine: has joined #ruby
[16:01:53] soahccc: c_nick: thanks I think that will work :)
[16:02:27] terminal_: has joined #ruby
[16:03:01] RH72: has joined #ruby
[16:04:13] synthroid: has joined #ruby
[16:04:16] chey: emacs is quality thanks
[16:06:04] RegulationD: has joined #ruby
[16:06:37] moeabdol: has joined #ruby
[16:08:33] kareeoleez: has joined #ruby
[16:10:31] Sot: has joined #ruby
[16:10:49] stannard: has joined #ruby
[16:11:03] dikaio: has joined #ruby
[16:12:15] [Butch]: has joined #ruby
[16:12:18] Stephen321: has joined #ruby
[16:12:36] Stephen321: Anyone ever find or develop a documentation standard for Web Forms?
[16:13:25] Xeago_: has joined #ruby
[16:14:12] sp4rrow: has joined #ruby
[16:16:20] Infra-Red: has joined #ruby
[16:18:10] chey: what sort of situation do you put two ends at the end guys?
[16:18:28] chey: if indented?
[16:18:49] smathy: chey, two ends?
[16:19:47] smathy: chey, in English, repeating something someone said with a question mark following it is shorthand for "I don't understand what this meant, please elaborate."
[16:20:34] rojomisin: has joined #ruby
[16:20:38] chey: there was a tutorial that i spent ages on the answer cus i had to put end under end
[16:21:18] chey: at the end of the script
[16:21:54] bronson: has joined #ruby
[16:22:05] chey: but then sometimes i dont even put end at the end of a script
[16:22:36] chey: strange haha
[16:22:58] newjersey: has joined #ruby
[16:23:32] bqscott: has joined #ruby
[16:24:45] chey: and to think i have an alevel in english!
[16:25:25] nrd_pxs: has joined #ruby
[16:25:56] pawnbox: has joined #ruby
[16:26:03] platzhirsch: has left #ruby: ()
[16:26:55] kareeoleez: has joined #ruby
[16:29:21] sneakerhax: has joined #ruby
[16:31:37] hobodave_: has joined #ruby
[16:32:15] IrishGringo: has joined #ruby
[16:32:39] stannard: has joined #ruby
[16:33:09] Grantlyk: has joined #ruby
[16:33:38] djbkd: has joined #ruby
[16:33:58] Grantlyk: has joined #ruby
[16:33:58] charliesome: has joined #ruby
[16:34:24] Dimik: has joined #ruby
[16:34:25] djbkd: has joined #ruby
[16:34:43] S_Waqas: has joined #ruby
[16:35:34] stannard: has joined #ruby
[16:36:10] rbennacer: has joined #ruby
[16:36:14] stannard: has joined #ruby
[16:36:19] idefine: has joined #ruby
[16:36:30] wldcordeiro: has joined #ruby
[16:38:45] whathappens: has joined #ruby
[16:39:11] ivanskie: has joined #ruby
[16:39:12] mitt3ns: has joined #ruby
[16:39:43] malconis: has joined #ruby
[16:40:01] S_Waqas: has joined #ruby
[16:40:04] mikecmpbll: has joined #ruby
[16:41:42] silentpost: has joined #ruby
[16:41:47] benlieb: has joined #ruby
[16:41:51] snowy: has joined #ruby
[16:42:02] Don_John: has joined #ruby
[16:42:08] Logico: has joined #ruby
[16:43:13] drusepth: has joined #ruby
[16:44:21] nemish: has joined #ruby
[16:45:07] kareeoleez: has joined #ruby
[16:45:15] nemish: Can someone help me figure out why my puts evaluations are all blank? http://pastebin.com/VN7f8TGe
[16:45:16] ruby[bot]: nemish: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/a6175e41c77edb3df3f402e3f68c19ea
[16:45:16] ruby[bot]: nemish: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[16:46:24] apeiros: role = facts[role] # you override role
[16:47:01] nemish: apeiros: i'm trying to write role with content above from facts[role]
[16:48:11] nemish: apeiros: in `method_missing': undefined local variable or method `role' for
[16:48:13] nemish: if i remove it
[16:49:59] c_nick: nemish: :role is a symbol you have not defined that in the hash
[16:50:10] c_nick: :role and role are diferent
[16:50:33] malconis: has joined #ruby
[16:51:00] Guest38: has joined #ruby
[16:51:53] baweaver: chey for every beginning there must be an end.
[16:52:54] nemish: c_nick: yes that's why i was trying facts[role] which is in the hash
[16:52:54] baweaver: did.... did we just dodge an editor war?
[16:52:59] baweaver: ACTION is impressed
[16:53:26] _aeris_: has joined #ruby
[16:54:49] nanoz: has joined #ruby
[16:57:08] whathappens: has joined #ruby
[16:57:33] mtkd: has joined #ruby
[16:58:17] aegis3121: has joined #ruby
[16:58:30] eljimmy: has joined #ruby
[16:58:30] ramfjord: has joined #ruby
[17:01:26] sp4rrow: has joined #ruby
[17:01:36] freerobby: has joined #ruby
[17:02:05] freerobby: has joined #ruby
[17:02:12] tildes_: has joined #ruby
[17:02:42] nemish: c_nick: here is the full script if it helps: https://gist.github.com/cdenneen/3d170620ccfc38b5b077d9baeaf2cf94
[17:03:17] ChiefAlexander: has joined #ruby
[17:03:18] kareeoleez: has joined #ruby
[17:04:10] Ebok: has joined #ruby
[17:04:36] bklane: has joined #ruby
[17:04:43] salty_solution: has joined #ruby
[17:05:01] nando293921: has joined #ruby
[17:06:07] `tim`: has joined #ruby
[17:06:47] BSaboia: has joined #ruby
[17:07:00] c_nick: nemish: what is the issue
[17:07:06] salty_solution: Has anyone played with the new rails 5.0 api goodness?
[17:08:10] shevy: the people on #rubyonrails have!
[17:08:44] Ishido: has joined #ruby
[17:09:18] diegoaguilar: has joined #ruby
[17:09:30] mikecmpbll: has joined #ruby
[17:09:35] c_nick: nemish: comment line 28
[17:09:48] apeiros: ACTION sobs
[17:10:03] apeiros: nemish: unless `role` is a method, which i doubt it is, you really should revisit my statement.
[17:10:27] nando293921: has joined #ruby
[17:12:46] blackmes1: has joined #ruby
[17:13:03] openstruct: has joined #ruby
[17:14:11] marr: has joined #ruby
[17:16:38] whathappens: has joined #ruby
[17:16:41] choke: has joined #ruby
[17:17:04] Cohedrin: has joined #ruby
[17:17:17] kareeoleez: has joined #ruby
[17:17:51] the_drow: has joined #ruby
[17:20:04] zzz: has joined #ruby
[17:21:28] mesamoo: has joined #ruby
[17:22:39] kareeoleez: has joined #ruby
[17:23:35] the_drow: has joined #ruby
[17:23:51] whathappens: has joined #ruby
[17:24:00] bronson: has joined #ruby
[17:24:52] chouhoul_: has joined #ruby
[17:26:16] dionysus69: has joined #ruby
[17:27:34] benlieb: Can anyone help me understand why ruby-install says it has installed ruby 2.2.3 but then it doesn't list it as available, and can't find it when 2.2.3 is in .ruby-version file?
[17:27:35] benlieb: https://gist.github.com/benlieb/9616f91cdea14486fce2f9ef5495124c
[17:27:51] SilverKey: has joined #ruby
[17:28:03] Devalo: has joined #ruby
[17:28:16] benlieb: or am I misunderstand the default output of ruby-install?
[17:28:53] havenwood: benlieb: It is successfully installed, but ruby-install doesn't set GEM_HOME, GEM_PATH or modify PATH.
[17:29:36] havenwood: benlieb: chruby will detect the Ruby automatically in that location
[17:29:37] workmad3: benlieb: also, if you're using chruby, then it evaluates its list of available rubies when you load the script... if you install a new ruby, you need to reload chruby for it to find the new one
[17:29:38] benlieb: haven I'm using chruby which should switch
[17:29:40] chipotle: has joined #ruby
[17:29:59] benlieb: I tried in a new terminal window...
[17:30:00] havenwood: benlieb: chruby doesn't automatically switch unless you set it up to
[17:30:13] drewo: has joined #ruby
[17:30:23] benlieb: it is set up to, and finds 2.2.4, 2.3, etc
[17:30:31] benlieb: is it because it's not "stable"
[17:30:51] benlieb: ? I just started a project that is using 2.2.3
[17:31:00] workmad3: benlieb: no... chruby doesn't care about that... it only cares about what rubies it can see
[17:31:07] havenwood: benlieb: restart your terminal
[17:31:32] freerobby1: has joined #ruby
[17:31:45] havenwood: benlieb: RUBIES gets populated when you source chruby
[17:31:49] cjbottaro: has joined #ruby
[17:31:59] nando293921: has joined #ruby
[17:32:10] drewo: has joined #ruby
[17:32:41] benlieb: havenwood: yeah that worked
[17:32:55] benlieb: had to be another window, not another tab, hm
[17:33:58] SCHAAP137: has joined #ruby
[17:34:10] PedramT: has joined #ruby
[17:34:34] dopie2: has joined #ruby
[17:35:21] yardenbar: has joined #ruby
[17:35:25] TheWhip: has joined #ruby
[17:37:00] lipoqil: has joined #ruby
[17:37:02] jlyndon: has joined #ruby
[17:37:04] discounted: has joined #ruby
[17:37:04] jmcc___________: has joined #ruby
[17:37:13] sp4rrow: has joined #ruby
[17:37:56] TheHodge: has joined #ruby
[17:37:57] ELCALOR: has joined #ruby
[17:38:24] Elvin: has joined #ruby
[17:38:43] discounted: has joined #ruby
[17:38:54] Phasee: has joined #ruby
[17:39:10] idefine: has joined #ruby
[17:39:19] chouhoulis: has joined #ruby
[17:39:56] err_ok: has joined #ruby
[17:40:06] jimcroft: has joined #ruby
[17:40:11] p0p0pr37: has joined #ruby
[17:40:22] Lightsword: has joined #ruby
[17:40:48] chouhoul_: has joined #ruby
[17:40:57] Asher: has joined #ruby
[17:43:20] dikaio: has joined #ruby
[17:44:04] idefine: has joined #ruby
[17:44:18] ggherdov: has joined #ruby
[17:44:28] braderhart: has joined #ruby
[17:44:45] Karunamon: has joined #ruby
[17:46:00] whathappens: has joined #ruby
[17:46:05] nemish: apeiros: maybe I'm not fully understanding your statement? You said I'm overriding role = facts[role]. role isn't currently set (only inside the facts hash). I'm trying to print out facts[role] and it's empty
[17:46:40] toretore: has joined #ruby
[17:47:33] ramfjord: has joined #ruby
[17:48:00] bronson: has joined #ruby
[17:48:46] karapetyan: has joined #ruby
[17:49:21] nemish: c_nick: I can and just did comment out line 28... but the 2 puts above it are printing blank values
[17:50:18] govg: has joined #ruby
[17:50:46] nemish: My Role is
[17:50:47] nemish: My FactsRole is
[17:50:58] nemish: nothing evaluating for either
[17:52:07] rbennacer: has joined #ruby
[17:52:43] lomex: has joined #ruby
[17:53:05] nemish: is it because it's within the same context?
[17:53:24] bklane: has joined #ruby
[17:54:09] zacts: hi rubyists
[17:54:36] charliesome: has joined #ruby
[17:55:34] roadt__: has joined #ruby
[17:56:28] Phasee: has joined #ruby
[17:56:36] roadt__: has joined #ruby
[17:57:08] elifoster: has joined #ruby
[17:57:38] codecop: has joined #ruby
[17:57:55] roadt__: has joined #ruby
[17:58:37] jaguarmagenta: has joined #ruby
[18:00:55] tAn: has joined #ruby
[18:01:21] sp4rrow: has joined #ruby
[18:03:10] soulisson: has joined #ruby
[18:03:24] Miron: has joined #ruby
[18:03:34] shevy: yo zacts the man
[18:04:30] bluOxigen: has joined #ruby
[18:04:58] soulisson: Hi, are xml external entities fetched when they are declared or when they are used? or does it depend on the parser?
[18:06:47] charliesome: has joined #ruby
[18:07:02] ramfjord_: has joined #ruby
[18:07:11] howdoico1: has joined #ruby
[18:07:14] xcesariox: has joined #ruby
[18:07:41] Guest15533: has joined #ruby
[18:08:00] discounted: has joined #ruby
[18:08:03] flashpoint9: has joined #ruby
[18:08:08] skade: has joined #ruby
[18:08:14] bklane: has joined #ruby
[18:08:32] Pumukel: has joined #ruby
[18:12:48] Ebok: has joined #ruby
[18:13:14] roadt_: has joined #ruby
[18:14:08] Hanmac: has joined #ruby
[18:14:13] soulisson_: has joined #ruby
[18:17:05] Ispira: nuby here with a question about methods
[18:17:16] Ispira: just learning the language and it confuses me with one thing
[18:17:41] Ispira: object.method1.method2.method3 was shown to me to work, and I used it in an earlier part of this
[18:17:50] tildes_: has joined #ruby
[18:18:17] Ispira: previously I used gets.chomp.upcase! and that worked fine and dandy
[18:18:33] Ispira: but gets.chomp.split!(' ') does not work
[18:19:06] SilverKey: has joined #ruby
[18:19:27] mustmodify: lspira: try split instead of split!
[18:19:30] hobodave: has joined #ruby
[18:19:58] Ispira: ooooh I see
[18:20:01] mustmodify: split! isn't an option... generally speaking, methods ending in ! have a similar method that does not end in ! and do one of two things.
[18:20:18] Ispira: it /needs/ to make a copy since it's changing object type?
[18:20:20] Ispira: basically
[18:20:20] mustmodify: either they change the underlying object or they raise an error.
[18:20:37] mustmodify: lspira: right, doesn't make sense to change a string to an arrya
[18:20:42] Ispira: whereas calling upcase! can modify in-place because it's just manipulating data that's already there, rather than making a new data
[18:20:46] Ispira: Alright thanks :D
[18:22:19] twistedpixels: has joined #ruby
[18:25:16] dionysus69: has joined #ruby
[18:26:56] inukshuk_: has joined #ruby
[18:27:10] nixfreak: has joined #ruby
[18:27:53] nixfreak: I need to install ruby , rubygems, and several gems on a offline server what would be the best way to do this?
[18:28:25] shevy: rubygems is included in ruby since quite a long time by now
[18:28:46] shevy: gems that don't have to be compiled, are in the .gem format, which you can batch-install locally
[18:29:19] djbkd: has joined #ruby
[18:29:41] skade: has joined #ruby
[18:30:43] _djbkd: has joined #ruby
[18:30:49] RegulationD: has joined #ruby
[18:31:00] roadt_: has joined #ruby
[18:31:11] havenwood: nixfreak: There are a variety of options. A production server? Just need one Ruby?
[18:31:15] idefine_: has joined #ruby
[18:31:32] havenwood: nixfreak: Like shevy said, RubyGems ships with Ruby so you'd just need Ruby and the gems.
[18:33:18] roadt__: has joined #ruby
[18:33:24] nixfreak: Ok so so far this is what I need according to my test machine, @havenwood no its going to be software testing on staging env.
[18:34:01] havenwood: nixfreak: So need a Ruby switcher or just one Ruby?
[18:34:14] zacts: I <3 this nokogiri gem
[18:34:37] nixfreak: https://bpaste.net/show/2c59804b6772
[18:34:38] havenwood: zacts: See also Oga: https://github.com/YorickPeterse/oga#readme
[18:34:38] zacts: I'm going to learn mechanize next
[18:35:03] pipework: zacts: I suggest you share your feelings with the gem. It might be scary, but if there are shared feelings, it might be the best thing in the world. Alternatively, it might crush you… but I say go for it!
[18:35:05] nixfreak: Just one Ruby for now
[18:35:09] replay: has joined #ruby
[18:35:40] benlieb: has joined #ruby
[18:35:50] Ox0dea: has joined #ruby
[18:36:01] shevy: zacts teach me too! I used to play with it years ago, then some changes happened, nokogiri was added and acted weird and I lost interest for a while. But I need some way to interact with remote websites from some ruby scripts eventually
[18:36:03] nixfreak: I'm just trying to figure out how many depends I need
[18:36:14] jenrzzz: has joined #ruby
[18:36:16] havenwood: nixfreak: tar -xjvf ruby-2.3.1.tar.bz2 && cd ruby-2.3.1 && ./configure && make && sudo make install
[18:36:43] havenwood: nixfreak: You can just copy ruby-2.3.1.tar.bz2 to your server and install it by hand if you'd like ^
[18:36:55] freerobby: has joined #ruby
[18:37:07] havenwood: nixfreak: Then it's easy to install local gems.
[18:37:32] zacts: shevy: well I think nokogiri has both XPath and CSS styles of navigating recursive XML/HTML structures
[18:37:34] sdothum: has joined #ruby
[18:37:34] nixfreak: yeah I will have to build it which is fine , but then do I just download all of the gems and install
[18:37:40] zacts: so you can choose
[18:37:54] zacts: the guide on http://www.nokogiri.org/ is a good intro
[18:38:05] havenwood: nixfreak: Another option is Traveling Ruby but I'm not sure that makes sense for your usecase: http://phusion.github.io/traveling-ruby/
[18:38:06] SilverKey: has joined #ruby
[18:38:14] perlgod: has joined #ruby
[18:38:15] pipework: shevy: mechanize has a nice API.
[18:38:16] shevy: nixfreak the .gem files are easy, just put them all onto a USB stick
[18:38:36] zacts: it looks like this Oga gem uses only XPath
[18:38:38] diegoaguilar: has joined #ruby
[18:38:48] zacts: Oga seems cool for certain applications
[18:38:50] shevy: ruby itself you may have to compile, either on the offline computer, or build it on another one, then copy the respective files (should work without problem if it is the same arch)
[18:38:51] pipework: zacts: Read the whole readme.
[18:38:54] zacts: but I would have to try it
[18:38:56] zacts: pipework: ah ok
[18:39:22] havenwood: zacts: It's not just XPath, there're CSS queries as well.
[18:39:23] nixfreak: ok great sounds like I answered my own questions , I'm new at ruby so I wanted to get a better opinon
[18:39:30] pipework: havenwood: And sax parsing!
[18:39:35] havenwood: pipework: :D
[18:39:38] pipework: So kinda like almost but does that even?
[18:39:55] rcvalle: has joined #ruby
[18:39:57] zacts: perhaps I may prefer oga over nokogiri, I'll have to try it out
[18:40:21] Gandalf: has joined #ruby
[18:41:37] pipework: zacts: Lots of gems depend on nokogiri, but I suspect if you're using those you don't often care about the underlying library.
[18:41:58] drewo: has joined #ruby
[18:42:08] chouhoulis: has joined #ruby
[18:42:20] perlgod_: has joined #ruby
[18:43:09] blackmes1: has joined #ruby
[18:43:20] davedev24: has joined #ruby
[18:43:49] Pumukel: has joined #ruby
[18:44:06] chouhoul_: has joined #ruby
[18:44:18] ptx0: has joined #ruby
[18:44:41] whathappens: has joined #ruby
[18:46:10] c_nick: has joined #ruby
[18:46:24] c_nick: has left #ruby: ()
[18:47:14] shevy: hmmm one of my gems has a Gem::MissingSpecError
[18:48:01] shevy: aha... I do a rescue Gem::LoadError
[18:49:11] Rush: has joined #ruby
[18:49:16] RushPL: has joined #ruby
[18:50:44] yardenbar: has joined #ruby
[18:50:49] felltir: has joined #ruby
[18:52:08] synthroid: has joined #ruby
[18:52:28] Es0teric: has joined #ruby
[18:53:40] idefine: has joined #ruby
[18:54:14] soulisson: has joined #ruby
[18:57:37] RegulationD: has joined #ruby
[18:57:47] Hanmac: has joined #ruby
[18:58:15] JakFrist: has joined #ruby
[19:01:08] discounted: has joined #ruby
[19:01:34] skade: has joined #ruby
[19:02:22] pietr0: has joined #ruby
[19:03:24] roadt__: has joined #ruby
[19:07:10] Benny_: has joined #ruby
[19:07:43] tjohnson: has joined #ruby
[19:09:08] elifoster: has joined #ruby
[19:09:17] d0nn1e: has joined #ruby
[19:09:48] SilverKey: has joined #ruby
[19:10:12] freerobby: has joined #ruby
[19:12:37] idefine: has joined #ruby
[19:13:33] madgen: has joined #ruby
[19:13:37] Benny_: has left #ruby: ()
[19:13:47] discounted: has joined #ruby
[19:13:53] govg: has joined #ruby
[19:15:31] yfeldblum: has joined #ruby
[19:17:16] chouhoulis: has joined #ruby
[19:18:11] roadt_: has joined #ruby
[19:18:50] justin_pdx: has joined #ruby
[19:19:02] aswen: has joined #ruby
[19:19:02] chipotle: has joined #ruby
[19:22:04] benlieb: has joined #ruby
[19:22:12] roadt__: has joined #ruby
[19:22:41] blackmes1: has joined #ruby
[19:27:36] craysiii: has joined #ruby
[19:29:31] tildes_: has joined #ruby
[19:31:35] giz|work: has joined #ruby
[19:31:41] haylon: has joined #ruby
[19:31:42] ruby[bot]: -bb $a:Zomber$#ruby-banned Zomber!*@*
[19:32:25] helpa: has joined #ruby
[19:35:01] eljimmy: has joined #ruby
[19:35:04] aegis3121: has joined #ruby
[19:35:22] sp4rrow: has joined #ruby
[19:36:12] snowy: has joined #ruby
[19:36:37] helpa-bot: has joined #ruby
[19:37:25] emilford: has joined #ruby
[19:39:26] helpa: has joined #ruby
[19:39:31] Xeago_: has joined #ruby
[19:40:05] discounted: has joined #ruby
[19:40:21] FooMunki: has joined #ruby
[19:40:38] karmatr0n: has joined #ruby
[19:43:04] spider-mario: has joined #ruby
[19:45:23] kriskropd: has joined #ruby
[19:45:44] devbug: has joined #ruby
[19:46:26] [Butch]: has joined #ruby
[19:47:49] TheWhip: has joined #ruby
[19:48:17] akkmaxon: has joined #ruby
[19:48:23] acerna: has joined #ruby
[19:48:24] roadt_: has joined #ruby
[19:49:01] solocshaw: has joined #ruby
[19:49:03] nyuszika7h: has joined #ruby
[19:49:27] akkmaxon: has joined #ruby
[19:51:09] mikecmpbll: has joined #ruby
[19:51:28] Moosashi: has joined #ruby
[19:51:40] funnel: has joined #ruby
[19:51:40] emilford: has joined #ruby
[19:51:40] benlieb: has joined #ruby
[19:51:40] freerobby: has joined #ruby
[19:51:40] jenrzzz: has joined #ruby
[19:51:40] flashpoint9: has joined #ruby
[19:51:40] Miron: has joined #ruby
[19:51:40] Karunamon: has joined #ruby
[19:51:40] pawnbox: has joined #ruby
[19:51:40] rojomisin: has joined #ruby
[19:51:41] borodin: has joined #ruby
[19:51:41] ixti: has joined #ruby
[19:51:41] VeryBewitching: has joined #ruby
[19:51:41] johnmilton: has joined #ruby
[19:51:41] PaulePanter: has joined #ruby
[19:51:41] cpup: has joined #ruby
[19:51:41] sepp2k: has joined #ruby
[19:51:41] priodev: has joined #ruby
[19:51:41] constantinexvi: has joined #ruby
[19:51:41] Rixius: has joined #ruby
[19:51:41] mg^: has joined #ruby
[19:51:41] nullwarp: has joined #ruby
[19:51:41] hayden_: has joined #ruby
[19:51:41] mgorbach: has joined #ruby
[19:51:41] ceegee_: has joined #ruby
[19:51:41] peterhu_: has joined #ruby
[19:51:41] tw1sted: has joined #ruby
[19:51:41] hfp_work: has joined #ruby
[19:51:41] ryotarai: has joined #ruby
[19:51:41] djellemah_: has joined #ruby
[19:51:41] valeri_ufo: has joined #ruby
[19:51:41] croberts: has joined #ruby
[19:51:41] greister: has joined #ruby
[19:51:41] JesseH2: has joined #ruby
[19:51:42] aef: has joined #ruby
[19:51:42] baweaver: has joined #ruby
[19:51:42] nisstyre: has joined #ruby
[19:51:42] sphex: has joined #ruby
[19:51:42] svkurowski: has joined #ruby
[19:51:42] lycaonian: has joined #ruby
[19:51:42] joconcepts: has joined #ruby
[19:51:42] M-shine: has joined #ruby
[19:51:42] julieeharshaw: has joined #ruby
[19:51:42] ruskie: has joined #ruby
[19:51:42] beawesomeinstead: has joined #ruby
[19:51:42] wnd: has joined #ruby
[19:51:42] ghr: has joined #ruby
[19:51:42] ghoti: has joined #ruby
[19:51:42] mattp_: has joined #ruby
[19:51:42] M-mistake: has joined #ruby
[19:51:42] edwardly: has joined #ruby
[19:51:42] musl: has joined #ruby
[19:51:42] papercode: has joined #ruby
[19:51:42] bnagy_: has joined #ruby
[19:51:42] trollface: has joined #ruby
[19:51:42] tjvc: has joined #ruby
[19:51:42] yorickpeterse: has joined #ruby
[19:51:42] sonne: has joined #ruby
[19:51:42] unsymbol: has joined #ruby
[19:51:42] Thai_: has joined #ruby
[19:51:43] mhenrixon: has joined #ruby
[19:51:43] KervyN: has joined #ruby
[19:51:43] mmasaki: has joined #ruby
[19:51:43] dopie: has joined #ruby
[19:51:43] chipotle: has joined #ruby
[19:51:43] justin_pdx: has joined #ruby
[19:51:43] chouhoulis: has joined #ruby
[19:51:43] madgen: has joined #ruby
[19:51:43] d0nn1e: has joined #ruby
[19:51:43] RegulationD: has joined #ruby
[19:51:43] diegoaguilar: has joined #ruby
[19:51:43] xcesariox: has joined #ruby
[19:51:43] bluOxigen: has joined #ruby
[19:51:43] Asher: has joined #ruby
[19:51:43] p0p0pr37: has joined #ruby
[19:51:43] Ishido: has joined #ruby
[19:51:43] Logico: has joined #ruby
[19:51:43] agent_white: has joined #ruby
[19:51:43] nrd_pxs: has joined #ruby
[19:51:43] moeabdol: has joined #ruby
[19:51:43] duderonomy: has joined #ruby
[19:51:43] nerium: has joined #ruby
[19:51:43] godzillaenlacasa: has joined #ruby
[19:51:44] Vingador_: has joined #ruby
[19:51:44] gnufied: has joined #ruby
[19:51:44] ByronJohnson: has joined #ruby
[19:51:44] akahn: has joined #ruby
[19:51:44] Expanse: has joined #ruby
[19:51:44] pfg: has joined #ruby
[19:51:44] gmas: has joined #ruby
[19:51:44] ged_: has joined #ruby
[19:51:44] PaulCape_: has joined #ruby
[19:51:44] zzak: has joined #ruby
[19:51:44] Y_Ichiro: has joined #ruby
[19:51:44] gix: has joined #ruby
[19:51:44] reaVer: has joined #ruby
[19:51:44] JoshL: has joined #ruby
[19:51:44] danzilio: has joined #ruby
[19:51:44] fumduq-: has joined #ruby
[19:51:44] gomix: has joined #ruby
[19:51:44] cfillion: has joined #ruby
[19:51:44] astrobun_: has joined #ruby
[19:51:44] csaunders_: has joined #ruby
[19:51:44] z3uS: has joined #ruby
[19:51:44] swistak35_: has joined #ruby
[19:51:44] sarlalian_: has joined #ruby
[19:51:44] FifthWall: has joined #ruby
[19:51:44] Rubycito: has joined #ruby
[19:51:44] renderful: has joined #ruby
[19:51:45] mikeiniowa: has joined #ruby
[19:51:45] Fernando-Basso: has joined #ruby
[19:51:45] Guest35736: has joined #ruby
[19:51:45] sarbs: has joined #ruby
[19:51:45] AustinMatherne: has joined #ruby
[19:51:45] dreinull: has joined #ruby
[19:51:45] spacemud: has joined #ruby
[19:51:45] TheMoonMaster: has joined #ruby
[19:51:45] Puffball: has joined #ruby
[19:51:45] John3: has joined #ruby
[19:51:45] BTRE: has joined #ruby
[19:51:45] Grav1: has joined #ruby
[19:51:45] Danielss89: has joined #ruby
[19:51:45] ejnahc: has joined #ruby
[19:51:45] eboaz: has joined #ruby
[19:51:45] colegatron: has joined #ruby
[19:51:45] iNs: has joined #ruby
[19:51:45] crankharder: has joined #ruby
[19:51:45] ltp: has joined #ruby
[19:51:45] apeiros: has joined #ruby
[19:51:45] KramerC: has joined #ruby
[19:51:45] crank1988: has joined #ruby
[19:51:46] bmn: has joined #ruby
[19:51:46] stryek: has joined #ruby
[19:51:46] Papierkorb: has joined #ruby
[19:51:46] Nilium: has joined #ruby
[19:51:46] Adam_FrVancouver: has joined #ruby
[19:51:46] brainslug: has joined #ruby
[19:51:46] Authenticator: has joined #ruby
[19:53:13] sj: has joined #ruby
[19:53:59] al2o3-cr: has joined #ruby
[19:54:00] idefine: has joined #ruby
[19:54:19] idefine: has joined #ruby
[19:55:56] charlespl: has joined #ruby
[19:56:20] al2o3-cr1: has joined #ruby
[19:57:24] karmatr0_: has joined #ruby
[19:58:30] nisstyre: has joined #ruby
[19:58:41] shadowdf: has joined #ruby
[19:58:50] shadowdf: Boa tarde pessoal
[19:59:22] jaguarmagenta: has joined #ruby
[20:00:06] mjuszczak: has joined #ruby
[20:00:27] kirun: has joined #ruby
[20:00:29] nemish: apeiros: what do you feel I'm missing?
[20:00:52] bronson: has joined #ruby
[20:00:57] funnel: has joined #ruby
[20:01:19] moei: has joined #ruby
[20:01:28] adaedra: hi shadowdf, this is an english-speaking channel
[20:02:16] tildes_: has joined #ruby
[20:02:52] rickmasta: has joined #ruby
[20:02:55] `tim`: has joined #ruby
[20:04:12] aef: has joined #ruby
[20:04:28] djbkd: has joined #ruby
[20:05:35] Bugboy1028: has joined #ruby
[20:05:37] mtkd: has joined #ruby
[20:06:46] karapetyan: has joined #ruby
[20:06:51] roadt__: has joined #ruby
[20:08:13] whathappens: has joined #ruby
[20:08:47] Kamilion: has joined #ruby
[20:10:19] drewo: has joined #ruby
[20:10:33] djbkd: has joined #ruby
[20:10:59] Gasher: has joined #ruby
[20:11:27] |2701_: has joined #ruby
[20:11:50] Madplatypus: has joined #ruby
[20:12:01] bobbycvi: has joined #ruby
[20:14:06] LastWhisper____: has joined #ruby
[20:14:24] rojomisi1: has joined #ruby
[20:14:41] blackgoat: has joined #ruby
[20:14:41] karapetyan: has joined #ruby
[20:17:27] steve: has joined #ruby
[20:19:31] GodFather: has joined #ruby
[20:19:46] weemsledeux: has joined #ruby
[20:21:46] roadt_: has joined #ruby
[20:23:39] howdoico1: has joined #ruby
[20:24:25] shevy: I can speak more than english!
[20:25:59] adaedra: A lot of people here can; however, English is the most common denominator, being the international lingua franca.
[20:26:33] der-landgraf: has joined #ruby
[20:26:41] pipework: I thought food was the international lingua franca? (besides, I don't like beef tongue anyways.)
[20:28:53] adaedra: Ein andere Sprache sprechen ist nicht nett für Volk wem kann nicht es sprechen
[20:28:56] dhollinger: has joined #ruby
[20:29:07] adaedra: (sorry for any horror I could have written here)
[20:29:31] auxbuss: has joined #ruby
[20:29:55] Ox0dea: https://www.youtube.com/watch?v=vExjnn_3ep4
[20:29:56] shevy: I grade you a B for the above
[20:30:09] sp4rrow: has joined #ruby
[20:31:00] adaedra: (moving to ot)
[20:31:42] mjuszczak: has joined #ruby
[20:32:08] discounted: has joined #ruby
[20:32:27] Xeago_: has joined #ruby
[20:32:32] jonathanwallace1: has joined #ruby
[20:33:42] charliesome: has joined #ruby
[20:37:56] tax: has joined #ruby
[20:38:18] aegis3121: has joined #ruby
[20:38:21] salty_solution: has joined #ruby
[20:39:12] scepticulous: has joined #ruby
[20:41:08] zacts: anyway, I still have much to learn about ruby and oop
[20:41:15] zacts: I'm such a newbie right now
[20:41:42] DevastatingDave: has joined #ruby
[20:41:46] zacts: next after the ruby text processing and ruby cli books, I'm reading the ruby black book 2nd edition
[20:41:52] zacts: The Well Grounded Rubyist
[20:41:56] zacts: I need to learn Ruby and OOP
[20:42:11] mustmodify: has left #ruby: ()
[20:42:16] adaedra: Practicing is also a great way to learn
[20:42:17] zacts: but I figured starting with UNIXy cli and text tools would give me a good start
[20:42:32] zacts: adaedra: indeed =)
[20:42:41] zacts: I'm starting small though
[20:43:05] zacts: small utility scripts, and then larger tools that require more class definitions
[20:43:17] zacts: and then to full Ruby programming, and eventually frameworks like rails
[20:43:18] shevy: this is the best way to start!
[20:49:22] discounted: has joined #ruby
[20:49:23] baweaver: https://imagetragick.com/ - ImageMagick CVE, update your stuff people.
[20:49:38] Es0teric: has joined #ruby
[20:50:46] akkad: or don't use imagemagick
[20:50:59] akkad: idiots and their dumb naming of bugs.
[20:51:03] baweaver: it's commonly used enough
[20:51:10] sp4rrow: has joined #ruby
[20:51:32] akkad: tragedy: ode to goats. the last song in a Dionysian play
[20:51:43] baweaver: akkad no need for name calling in any case
[20:52:12] DoubleMalt: has joined #ruby
[20:52:21] chandlerbing: has joined #ruby
[20:54:00] pipework: I think it's amusing. It's not like the CVE isn't in a public database too...
[20:54:46] pipework: there's greater need for calling people idiots who don't subscribe to security mailing lists for everything they use than there is for someone spending the money to buy a domain and name a bug.
[20:55:36] akkad: domain registration over a CVE?
[20:56:20] pipework: akkad: When you have loads of cash from your high paying software engineering job, you wouldn't even think twice, likely.
[20:56:33] adaedra: For what a domain costs nowadays
[20:56:36] pipework: Get one! Buy all the domains!
[20:56:46] pipework: Name all the CVE's!
[20:56:46] baweaver: wasn't it like $10 a year?
[20:56:47] roadt__: has joined #ruby
[20:57:00] pipework: You can get them less, but generally around there, yeah
[20:57:14] baweaver: yeah, but those sites are pains to work with
[20:57:39] pipework: I mostly do gandi, then namecheap, then nic.<tld>
[20:57:54] adaedra: Anyway, we're offtopicying here.
[20:57:55] lomex: has joined #ruby
[20:58:04] ruby[bot]: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[20:58:21] chopin: has joined #ruby
[20:58:50] discounted: has joined #ruby
[20:58:51] karapetyan: has joined #ruby
[20:59:16] whathappens: has joined #ruby
[20:59:31] ixti: has joined #ruby
[20:59:48] shark: has joined #ruby
[21:02:27] ur5us: has joined #ruby
[21:02:47] cloaked1: has joined #ruby
[21:02:47] cloaked1: has joined #ruby
[21:03:00] freerobby: has joined #ruby
[21:03:46] chopin: Hi all, quick question on best practices. I've read the patterns and good practices section on rubygems.org and done some googling but haven't found a complete answer.
[21:04:20] majuscule: that's not a question!
[21:04:21] workmad3: has joined #ruby
[21:04:21] pipework: chopin: There isn't one.
[21:04:22] chopin: I'm building my first gem which is a wrapper for an API. What's the best place to set a constant for the gem. Say for example the base url for said API?
[21:04:44] adaedra: That sounds more like some configuration.
[21:04:45] pipework: chopin: I don't necessarily like singleton constants for that. I prefer a configuration object.
[21:04:55] pipework: singletons/constants*
[21:05:20] chopin: Excellent. I guess it did feel 'weird'. I will do some more Googling. ty!
[21:05:43] DoubleMalt: has joined #ruby
[21:11:29] skade: has joined #ruby
[21:14:37] SCHAAP137: has joined #ruby
[21:16:06] dikaio: has joined #ruby
[21:16:14] Grantlyk: has joined #ruby
[21:17:05] Grantlyk: has joined #ruby
[21:17:34] mjuszczak: has joined #ruby
[21:17:41] pawnbox: has joined #ruby
[21:20:03] mjuszczak: has joined #ruby
[21:20:49] mjuszczak: has joined #ruby
[21:21:00] wldcordeiro: has joined #ruby
[21:21:34] mjuszczak: has joined #ruby
[21:21:46] rbennacer: has joined #ruby
[21:22:28] hobodave: has joined #ruby
[21:24:11] kareeoleez: has joined #ruby
[21:26:02] djbkd: has joined #ruby
[21:26:49] htmldrum: has joined #ruby
[21:27:04] dgncn: has joined #ruby
[21:28:00] GinoMan2440: has joined #ruby
[21:29:07] rojomisin: has joined #ruby
[21:29:17] karapetyan: has joined #ruby
[21:30:04] karapetyan: has joined #ruby
[21:32:15] djbkd: has joined #ruby
[21:33:22] rkoller: has joined #ruby
[21:35:25] Devalo: has joined #ruby
[21:35:26] northrup: has joined #ruby
[21:37:56] moei: has joined #ruby
[21:40:34] yfeldblum: has joined #ruby
[21:41:10] drewo: has joined #ruby
[21:44:14] slackbotgz: has joined #ruby
[21:44:28] IrishGringo: has joined #ruby
[21:45:05] Kami: has joined #ruby
[21:46:44] johnny56_: has joined #ruby
[21:46:57] mjuszczak: has joined #ruby
[21:47:20] dopamean1: has joined #ruby
[21:47:59] whathappens: has joined #ruby
[21:48:28] dopamean1: has joined #ruby
[21:48:40] minimalism: has joined #ruby
[21:48:56] sp4rrow: has joined #ruby
[21:50:00] dopie: has joined #ruby
[21:50:00] Infinite_182: has joined #ruby
[21:50:45] heyimwill: has joined #ruby
[21:51:21] mjuszczak: has joined #ruby
[21:52:00] Gasher: has joined #ruby
[21:52:36] drusepth: has joined #ruby
[21:54:16] flashpoint9: has joined #ruby
[21:54:42] ruby[bot]: -bb nikger!*@*$#ruby-banned NEGGIR!*@*$#ruby-banned
[21:55:44] Yiota: has joined #ruby
[21:56:03] GinoMan2440: has joined #ruby
[21:57:16] Grantlyk: has joined #ruby
[21:57:54] yqt: has joined #ruby
[21:58:08] snowy: has joined #ruby
[21:58:24] blaxter: has joined #ruby
[21:58:44] sgambino: has joined #ruby
[21:59:15] GinoMan2440_: has joined #ruby
[22:00:00] hobodave: has joined #ruby
[22:00:08] jaguarmagenta: has joined #ruby
[22:01:24] bronson: has joined #ruby
[22:01:47] Infinite_182: anyone know if you can put two attributes added together into the same collection_select?
[22:04:17] djbkd: has joined #ruby
[22:05:25] silentpo1t: has joined #ruby
[22:05:29] zacts: zombie chopin cool!
[22:05:36] zacts: (kidding)
[22:05:47] dikaio: has joined #ruby
[22:06:57] spectra: has joined #ruby
[22:06:57] spectra: has joined #ruby
[22:07:14] flashpoint9: has joined #ruby
[22:08:23] zacts: if chopin were alive today, he would dig Ruby. That's all I can say. Anyway, back to #ruby
[22:09:48] sp4rrow: has joined #ruby
[22:10:02] shevy: ruby is like poetry, art and music combined
[22:10:43] nemish: has joined #ruby
[22:10:54] ProofTechnique: has joined #ruby
[22:11:46] shadows: has joined #ruby
[22:11:48] nibbo: has joined #ruby
[22:12:03] akkad: baweaver: oh the person who names the bug and not the exploit is clearly one who spends a lot of time alone, justifying the label
[22:12:36] baweaver: akkad again, don't be rude
[22:13:36] Limix: has joined #ruby
[22:14:25] workmad3: has joined #ruby
[22:14:35] cdg: has joined #ruby
[22:15:47] shadows: given x = [[a,b,c],[1,2,3],[4,5,6],[d,e,f],[7,8,9]] ; smallest ruby-way to split x with regex ; result something like [ [[a,b,c],[1,2,3],[4,5,6]], [[d,e,f],[7,8,9]] ] ; I've got a working bit of code but it's ugly
[22:16:08] shadows: tried messing with zip and map, only to end up in a big conditional loop
[22:16:16] shadows: not super awesome how I have it right now
[22:17:03] baweaver: you didn't mention the condition
[22:17:10] baweaver: I just see an arbitrary split
[22:17:14] akkad: baweaver: no rudeness. merely your neurological association of said word being projected on others.
[22:17:26] baweaver: !rude akkad
[22:17:26] ruby[bot]: +qqq $a:Akkad akkad!*@* *!*@dns.mauthesis.com
[22:17:28] ruby[bot]: -qq rooby!*@* angrywombat!*@*
[22:17:30] baweaver: that's nice
[22:17:49] BSaboia: has joined #ruby
[22:18:31] shadows: baweaver: the input is a text dump from Wireshark and I'm only interested in pretty-ifying the bytes outputs; will pastebin sample input if it's somehow relevent
[22:18:43] baweaver: use gist if you could
[22:19:04] baweaver: A few in/out samples would do wonders to understanding the problem
[22:19:10] bronson: has joined #ruby
[22:19:23] pipework: shadows: What we're seeing is that you have an array and want to split it taking the first three and the last two as two arrays that are the 0th and 1st elements of a new array.
[22:19:36] pipework: Nothing you've said has made the necessity of regex plain.
[22:19:47] shadows: pipework: i'd like to do this if alphanumeric i.e.
[22:19:56] pipework: shadows: regex are for string-like content.
[22:20:13] shadows: ohh yeah I meant quoted letters
[22:20:17] shadows: they're not variables
[22:20:26] shadows: I'd better just come up with the input... will pastebin
[22:20:30] pipework: I don't think either of us has any clue about what the other is saying.
[22:20:32] Azure: has joined #ruby
[22:20:42] baweaver: real data will help that
[22:20:46] shadows: sorry for confusion will try to be more clear yes
[22:20:56] pipework: Here's how you take x and split it. [x[0,2], x[3,-1]]
[22:22:56] shadows: input example (first 50 lines): http://paste.ubuntu.com/16209337/
[22:23:41] baweaver: shadows so this line type? '0000 c0 b4 44 9b 00 88 ff ff 53 02 00 04 08 00 00 00'
[22:23:43] idefine: has joined #ruby
[22:23:49] shadows: yeah kind of
[22:23:53] pipework: By giving us the desired outputs and inputs with some seemingly non-sequitur piece of code seems more like you've come up with a puzzle where the answer is the puzzle to solve the answer initially given.
[22:24:15] pipework: A veritable Jeopardy+mastermind
[22:24:20] rc0r: has joined #ruby
[22:24:36] shadows: baweaver: I don't care about that "block" of lines unless the first line in the block is /^[\w ]+ \(\d+ bytes\)\:.*\n/
[22:24:55] pipework: shadows: I think what might help here is if you described using inputs that are real, what should be done to them in order to reach your intended result. Describe the logic involved.
[22:24:55] shadows: example output I've done by hand http://paste.ubuntu.com/16209346/
[22:25:50] shadows: wireshark byte display output splits on 8 byte margins (I couldn't find any common setting in Wireshark to change this and it's got to be repeatable without hacking up source)
[22:25:54] baweaver: shadows nothing matches that regexp
[22:26:18] pipework: shadows: Hm, so you want to take some text and extract some of the values from it, right?
[22:26:19] CausaMortis: has joined #ruby
[22:26:36] pipework: Miaow I assume you've got maybe like a line of the file in hand and you want to remove or extract some data, right?
[22:27:15] pipework: So you've got a line and miaow you need to find values within it to purportedly do something else with.
[22:27:17] shadows: oh paste.ubuntu wants login to view / download oops
[22:27:39] shadows: the interesting lines don't happen until around line 30 or so
[22:28:06] shadows: and I didn't even provide enough lines to make that happen
[22:28:16] shadows: baweaver: I'm really not doing so hot today huh
[22:28:18] pipework: We prefer gist
[22:28:19] mikecmpbll: has joined #ruby
[22:28:22] pipework: See the topic.
[22:28:28] shadows: looking thanks
[22:28:36] davedev24: has joined #ruby
[22:29:02] whathappens: has joined #ruby
[22:29:10] baweaver: It happens. Anyways, I'd better head off, still recovering from some sickness
[22:29:27] chouhoul_: has joined #ruby
[22:30:28] shadows: thanks for trying baweaver ... assembling better prepared question now with gist example
[22:34:27] banister: has joined #ruby
[22:35:01] shadows: okay using gist the textfile is 5Mb or so note https://gist.github.com/eshattow/fdeb79efbeb6bd014cf63ced513638a8
[22:36:49] crystal77: has joined #ruby
[22:36:52] zenlot: has joined #ruby
[22:37:00] shadows: most of it is junk I don't want, so what I'm looking for are these blocks of text (ending in \n\n) that begin with a text label ending in "\(\d+ bytes\)\:"
[22:37:36] pipework: shadows: Why use regex when you can use the String class?
[22:37:43] weemsledeux: has joined #ruby
[22:38:00] Guest43: has joined #ruby
[22:38:02] pipework: String#split is pretty cool, look at the arguments you can pass it.
[22:38:29] Guest43: Hello. Would this be a good place to ask for some help with a dashing job? (dashing.io)
[22:38:54] pipework: Guest43: When you say 'job' what do you mean?
[22:38:56] shadows: pipework: well, currently I parse from stdin... so I should not try to wait until forever to parse... hmm
[22:39:14] Guest43: pipework the actual rb script dashing is executing
[22:40:19] swills: has joined #ruby
[22:40:21] shadows: pipework: interesting thought about String#split but I don't think I can do nested regexp groups
[22:40:27] shadows: or can we?
[22:40:28] pipework: shadows: So buffer up a string until it contains the delimeter yo uwant
[22:40:30] pipework: Then fix that.
[22:40:45] pipework: shadows: I'm still not sure you need any regular expressions yet.
[22:41:50] shadows: pipework: what else would I split on?
[22:42:01] shadows: input is already split on \n
[22:42:38] adgtl: has joined #ruby
[22:43:02] pipework: shadows: You said you wanted all the text after the first ":"
[22:43:27] pipework: Basically, to make this a lot easier on yourself, don't use regex and just manipulate the string using ruby.
[22:44:44] northrup: has joined #ruby
[22:46:05] idefine: has joined #ruby
[22:47:54] howdoico1: has joined #ruby
[22:50:13] shadows: pipework: better gist with input, output, and ruby code I have so far at https://gist.github.com/eshattow/57322d18a59e8e5f00788efc2aa2a056
[22:50:26] shadows: pipework: you can do this with String#split? I'd like to know how
[22:51:46] shadows: pipework: the output10lines.txt in the gist is not the ideal output, just it's as far as I've gotten
[22:51:53] ytti: $_ is faux pas
[22:52:05] shadows: ytti: what to use instead?
[22:52:07] ytti: while line = $stdin.gets
[22:52:18] urbanmonk: has joined #ruby
[22:52:49] skolman_: has joined #ruby
[22:53:03] ytti: shadows, http://ruby-doc.org/stdlib-1.9.3/libdoc/strscan/rdoc/StringScanner.html this may be of interest to tyou
[22:53:04] hinbody: has joined #ruby
[22:53:11] ytti: sc = StringScanner.new line
[22:53:12] shadows: looking now thanks
[22:53:44] ytti: while not sc.eos?
[22:54:15] shadows: ytti: yes this is very interesting
[22:54:25] ytti: sc.scan_until /^\d{4} [\da-f]/
[22:54:28] mtkd: has joined #ruby
[22:54:47] ytti: hex << sc.scan_until /^\s*$/
[22:54:50] ytti: something like that
[22:55:36] ytti: that won't work, because the fir sc.scan_until will eat the line you need, but hopefully gives some tools
[22:55:54] shadows: ytti: also part of what I'm doing is to take say the lines:
[22:55:56] shadows: 0000 57 00 20 10 00 00 00 00 00 00 00 00 00 00 00 00 W. .............
[22:56:02] shadows: 0010 00 00 00 00 30 06
[22:56:17] ytti: hex = sc.scan_until /^\s*$/
[22:56:25] whathappens: has joined #ruby
[22:56:31] ytti: hex = hex.split(' ')[1]
[22:56:33] ytti: hexes << hex
[22:56:48] shadows: and then turn that into one line 57 00 20 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30 06 W. .................0.
[22:56:56] ytti: (i don't know what i'm talking about, i didn't really even read the url, sorry)
[22:57:05] ytti: but hopefully you got some tools
[22:57:08] shadows: you're still helpful thanks
[23:00:38] ytti: hex = hex.lines.map{|e|e.split(' ')[1]}
[23:00:47] ytti: hexes << hex.lines.map{|e|e.split(' ')[1]}
[23:00:52] tAn: has joined #ruby
[23:05:25] jpterry: has joined #ruby
[23:05:47] csmb: has joined #ruby
[23:05:48] seitensei: has joined #ruby
[23:05:48] seitensei: has joined #ruby
[23:06:22] chopin: has joined #ruby
[23:07:11] whathappens: has joined #ruby
[23:07:49] Xeago_: has joined #ruby
[23:09:24] jhack: has joined #ruby
[23:11:47] Guest43: https://gist.github.com/csbogdan/0474bdff604fb7be2877f2a9732585fa Any ideas as to why that file trows: /usr/local/rvm/gems/ruby-1.9.3-p551/gems/dashing-1.3.6/lib/dashing/app.rb:137:in `send_event' /vagrant/dashing/dashing/jobs/Mashery-jen.rb:57:in `block in <top (required)>' please?
[23:11:47] n008f4g_: has joined #ruby
[23:12:17] symm-: has joined #ruby
[23:15:34] devbug: has joined #ruby
[23:17:28] shadowdf: has joined #ruby
[23:17:43] ruby[bot]: -qqq $a:Akkad akkad!*@* *!*@dns.mauthesis.com
[23:18:33] chouhoulis: has joined #ruby
[23:19:51] chouhoulis: has joined #ruby
[23:20:03] dopamean_: has joined #ruby
[23:20:44] Infinite_182: has joined #ruby
[23:20:51] elifoster: has joined #ruby
[23:21:17] ChiefAlexander: has joined #ruby
[23:21:52] zapata: has joined #ruby
[23:21:54] rbennacer: has joined #ruby
[23:23:59] rbennacer: has joined #ruby
[23:27:31] robbyoconnor: has joined #ruby
[23:27:34] mjuszczak: has joined #ruby
[23:28:05] mikecmpbll: has joined #ruby
[23:28:44] Infinite_187: has joined #ruby
[23:31:39] Vile`: has joined #ruby
[23:32:55] drewo: has joined #ruby
[23:33:02] dikaio: has joined #ruby
[23:33:45] mjuszczak: has joined #ruby
[23:33:56] Limix: has joined #ruby
[23:34:29] benlieb: has joined #ruby
[23:34:55] madgen: has joined #ruby
[23:37:03] Devalo: has joined #ruby
[23:40:24] karapetyan: has joined #ruby
[23:41:22] CloCkWeRX: has joined #ruby
[23:44:01] rojomisin: has joined #ruby
[23:44:17] tAn: has joined #ruby
[23:44:45] crystal77: has joined #ruby
[23:45:42] hahuang65: has joined #ruby
[23:47:07] whathappens: has joined #ruby
[23:50:07] Emmanuel_Chanel: has joined #ruby
[23:51:45] idefine: has joined #ruby
[23:51:54] graft: has joined #ruby
[23:52:04] graft: ok, can someone help me out with this stack trace? https://gist.github.com/graft/9db3cf99681e7d6c22bed39501dbe38e
[23:52:13] Radar: it's wrong
[23:52:14] Radar: ACTION opens the gist
[23:52:26] graft: for some reason rack is barfing on multipart uploads, the problem seems to have something to do with Tempfile.new
[23:52:48] graft: Rack does this: Tempfile.new(["RackMultipart", ::File.extname(filename)])
[23:52:50] Radar: graft: Filename there seems weird, like it's being munged by something before it gets to Rack.
[23:53:15] Radar: graft: Does Rails 4.2.6 fix this by any chance?
[23:53:27] graft: 4.2.6? hmm
[23:53:52] graft: thing is this works on my production machine running ruby 2.2.0, but not on my dev machine running ruby 2.3.0 (yes, i know, don't yell at me)
[23:54:30] idefine_: has joined #ruby
[23:54:54] graft: the really, really weird thing is that between that Tempfile.new line in rack's parser.rb, and initialize in ruby's tempfile.rb, the first argument mutates from an Array (the one above) to a Hash (the one in the error)
[23:55:01] mjuszczak: has joined #ruby
[23:55:05] graft: i have no idea how this could possibly happen
[23:55:41] graft: i feel like i'm taking crazy pills here
[23:55:57] chipotle: has joined #ruby
[23:56:07] graft: and, again, all of this code works fine on my production machine
[23:56:13] ledestin: has joined #ruby
[23:57:29] mjuszczak: has joined #ruby
[23:58:53] idefine__: has joined #ruby
[23:59:26] idefine: has joined #ruby