« Back to channel list

#ruby - 27 December 2015

« Back 1 day Forward 1 day »
[00:00:15] Ox0dea: Prove it.
[00:00:36] davedev: has joined #ruby
[00:01:06] Ox0dea: has left #ruby: ("WeeChat 1.4-dev")
[00:01:31] shevy: dwfait it compiled without error here, do you not get any errors?
[00:01:50] shevy: lots of warnings though... cc1plus: warning: command line option '-Wdeclaration-after-statement' is valid for C/ObjC but not for C++
[00:02:03] krobzaur: has joined #ruby
[00:02:23] nkwsy: Question on scraping data with nokogiri/mechanize. I am parcing a local document using xpath, and it works. Now I am trying to scrape from the live internets, now I have gotten the program to work using css tags, but when I try to scrape with xpath it says its undifined. my question is do I need the flie stored locally to scrape using xpath?
[00:03:19] radgeRayden: has joined #ruby
[00:03:27] roshanavand: has joined #ruby
[00:04:32] nkwsy: heres some relevent code to my question
[00:04:34] nkwsy: page = agent.get('https://parkingtickets.cityofchicago.org/CPSWeb/home.do')
[00:04:44] nkwsy: doc = Nokogiri::HTML(page)
[00:04:50] genpaku: has joined #ruby
[00:04:58] funnel: has joined #ruby
[00:05:01] yokel: has joined #ruby
[00:05:13] nkwsy: doc.xpath('//table/tbody/tr').each do |row|
[00:05:13] nkwsy: tarray = [] #.reject!
[00:05:13] nkwsy: row.xpath('td[@class="bodytextsmall"]').each do |cell|
[00:05:13] nkwsy: tarray << cells.text.strip
[00:05:15] nkwsy: #.gsub(/z+/, ' ')
[00:06:18] kobain: has joined #ruby
[00:06:24] bithon: nkwsy: gist.github.com
[00:08:30] Some-body_: has joined #ruby
[00:08:51] asmodlol: has joined #ruby
[00:09:01] wavbounce: has joined #ruby
[00:09:48] sonOfRa_: has joined #ruby
[00:09:59] abra0_: has joined #ruby
[00:10:20] Rodya_: has joined #ruby
[00:10:41] _fumk: has joined #ruby
[00:10:54] djbkd: has joined #ruby
[00:11:06] Rush: has joined #ruby
[00:11:12] boshhead_: has joined #ruby
[00:11:20] kaspergrubbe: has joined #ruby
[00:11:25] peterhu_: has joined #ruby
[00:11:31] charliesome: has joined #ruby
[00:11:46] klaas_: has joined #ruby
[00:11:51] mayamai: has joined #ruby
[00:11:52] nirix_: has joined #ruby
[00:11:54] lianj_: has joined #ruby
[00:11:54] Affix-Phobos: has joined #ruby
[00:11:55] lianj_: has joined #ruby
[00:12:02] bakingbread: has joined #ruby
[00:12:03] bakingbread: has joined #ruby
[00:12:08] martinbjeldbak_: has joined #ruby
[00:12:12] chipotle_: has joined #ruby
[00:12:15] LW_Luna: has joined #ruby
[00:12:16] dfoolz_: has joined #ruby
[00:12:29] musl_: has joined #ruby
[00:13:14] marcdel: has joined #ruby
[00:13:30] brixen_: has joined #ruby
[00:14:10] nisstyre_: has joined #ruby
[00:14:17] infernixx: has joined #ruby
[00:15:15] bodie__: has joined #ruby
[00:15:27] andywojo: has joined #ruby
[00:18:34] j0bk_: has joined #ruby
[00:18:37] cats: has joined #ruby
[00:18:41] nkwsy: sorry will use
[00:18:41] konopka_: has joined #ruby
[00:18:43] samuelkadolph1: has joined #ruby
[00:19:04] nkwsy: https://gist.github.com/nkwsy/30ae6ea95119eb8ed1a4
[00:19:12] timmow_: has joined #ruby
[00:19:12] peitera-: has joined #ruby
[00:19:21] bakedb: has joined #ruby
[00:19:28] mrtomme: has joined #ruby
[00:20:26] sonne: has joined #ruby
[00:20:48] smactive: has joined #ruby
[00:23:20] dexter_e: has joined #ruby
[00:24:13] krobzaur: has joined #ruby
[00:24:46] [spoiler]: has joined #ruby
[00:25:17] dfinninger: has joined #ruby
[00:25:28] ruby-lang769: has joined #ruby
[00:30:01] nkwsy_: has joined #ruby
[00:30:42] dlitvak: has joined #ruby
[00:33:48] rgrmatt: has joined #ruby
[00:33:58] ^CrYpto^: has joined #ruby
[00:34:11] CloCkWeRX: has joined #ruby
[00:34:38] ^CrYpto^: has joined #ruby
[00:35:19] nkwsy: has joined #ruby
[00:38:16] ascarter: has joined #ruby
[00:39:41] rkazak_: has joined #ruby
[00:39:46] wsewolod: has joined #ruby
[00:41:49] trif: has joined #ruby
[00:43:55] tim_s007: has joined #ruby
[00:46:04] PlasmaStar: has joined #ruby
[00:46:30] trif: has left #ruby: ()
[00:47:35] asmodlol: has joined #ruby
[00:47:40] waka: has joined #ruby
[00:49:56] chouhoulis: has joined #ruby
[00:50:18] xyh: has joined #ruby
[00:50:31] DLSteve: has joined #ruby
[01:00:07] pawnbox: has joined #ruby
[01:06:16] dwfait: has joined #ruby
[01:09:43] baweaver: has joined #ruby
[01:11:36] nkwsy: I am having trouble getting mechanize to allow me to parce using xpath. I can get it to work when I use nokogiri methods on a saved page. can anyone see where I am going worng
[01:11:41] nkwsy: https://gist.github.com/nkwsy/30ae6ea95119eb8ed1a4
[01:17:23] ledestin: has joined #ruby
[01:18:07] asmodlol: has joined #ruby
[01:18:38] andywojo: has joined #ruby
[01:19:38] senayar: has joined #ruby
[01:19:39] senayar: has joined #ruby
[01:20:01] treaki_: has joined #ruby
[01:22:47] duckpuppy: has joined #ruby
[01:23:29] Scripore: has joined #ruby
[01:28:08] asmodlol: has joined #ruby
[01:38:57] sneakerhax: has joined #ruby
[01:40:09] seitensei: has joined #ruby
[01:42:35] asmodlol: has joined #ruby
[01:44:32] _blizzy_: has joined #ruby
[01:44:58] _blizzy_: may anyone help me figure out why when I run this code, https://gist.github.com/NotBlizzard/5d0f5f406731911ac467 , when it tries to open the file, it returns "not in gzip format"
[01:45:09] radgeRayden_: has joined #ruby
[01:45:21] _blizzy_: however, if I download the file using chrome, and try to open it with ruby, it opens without errors.
[01:48:07] sneakerhax: _blizzy_, possibly because you try to open it directly from the site. You said it when you download it and run it locally it works.
[01:48:37] rrichardsr3: has joined #ruby
[01:48:54] KnownSyntax: has joined #ruby
[01:49:05] _blizzy_: sneakerhax, but I'm not trying to open it directly from the site.
[01:49:17] _blizzy_: Im saving it as hello.tar.gz, then I try to open hello.tar.gz
[01:49:20] bkxd: has joined #ruby
[01:49:37] _blizzy_: oh, sorry, I mean when I try to
[01:49:40] _blizzy_: open the local file
[01:49:47] _blizzy_: I can download the file with ruby without problems
[01:49:47] sneakerhax: You doing f.write and calling download_url
[01:50:07] _blizzy_: sneakerhax, yes, I have no problems with that. it's when I try to open the local file
[01:50:14] rrichardsr3: has joined #ruby
[01:50:20] _blizzy_: nvm Im sorrry
[01:50:33] sneakerhax: I"m just speculating on possibly issues
[01:50:40] sneakerhax: and taking what you said
[01:50:41] chouhoulis: has joined #ruby
[01:50:56] dlitvak: has joined #ruby
[01:50:56] dwfait: has joined #ruby
[01:52:59] boxofrox: has joined #ruby
[01:53:02] dwfait: shevy: sorry, afk for a bit. The error here is because ldflags is nil, therefore shellsplit can???t process it (from extconf.rb:64 in eventmachine)
[01:54:14] dwfait: If I hack shellsplit to return empty array if nil, then I start to get C errors, because of a #define that???s not set correctly (HAVE_RB_THREAD_FD_SELECT)
[01:55:50] mikeric: has joined #ruby
[01:56:39] karapetyan: has joined #ruby
[01:57:14] bkxd: has joined #ruby
[01:58:48] _blizzy_: ok, I updated the gist. https://gist.github.com/NotBlizzard/ad92f2c0320f879f202a at line 13, I get that the file is not in gzip format
[01:59:04] _blizzy_: I can download the file using ruby, I just can't open it using ruby.
[01:59:23] devoldmx: has joined #ruby
[02:00:58] symm-: has joined #ruby
[02:04:12] kegan_: has joined #ruby
[02:05:36] nkwsy: has joined #ruby
[02:06:12] shevy: dwfait weird... I don't have LDFLAGS set at all
[02:07:28] asmodlol: has joined #ruby
[02:08:47] _blizzy_: so anyway, I can't seem to open the file
[02:09:51] shevy: what do you mean
[02:09:54] shevy: can not open a file
[02:10:53] _blizzy_: I get the error "not in gzip format"
[02:10:53] shevy: are you even downloading it at all
[02:11:02] _blizzy_: yes, because I can open the file using winrar
[02:11:15] _blizzy_: well, the tar.gz file
[02:11:31] shevy: ah I see that now ok
[02:11:33] dwfait: shevy I think it???s something to do with my openssl install / setup. pkconfig is failing to get the information on the openssl package. I???ve configured my ruby install with the correct location to my openssl, maybe I???m not doing something to feed that through to the native extensions like ruby-install would? (I???m doing --with-openssl-dir=`brew --prefix openssl`)
[02:11:41] shevy: the file downloaded some 71MB
[02:11:46] diegoviola: has joined #ruby
[02:12:22] shevy: _blizzy_ would it work if it is .gz rather than .tar.gz ?
[02:12:42] dlitvak: has joined #ruby
[02:13:04] _blizzy_: shevy, trying it right now
[02:13:27] _blizzy_: nope, still get "not in gzip format"
[02:13:42] shevy: I think the archive is not valid
[02:13:54] _blizzy_: then how can I open it in winrar?
[02:14:18] shevy: perhaps winrar has some extra code to detect invalidity ... hmm
[02:14:32] shevy: I can not unpack it here on linux
[02:14:46] shevy: file says "POSIX tar archive (GNU)"
[02:15:05] _blizzy_: hmm, maybe Im downloading the file wrong?
[02:15:28] devbug: has joined #ruby
[02:16:49] QualityAddict: has left #ruby: ("Leaving")
[02:17:03] shevy: I'll play with this for a bit
[02:17:19] shevy: there is one thing I'd do if I were you
[02:17:23] shevy: I'd put this into separate actions
[02:17:25] shevy: (1) Download
[02:17:31] shevy: (2) after download, (re)package
[02:17:41] ElFerna: has joined #ruby
[02:17:47] _blizzy_: what do you mean by repackage
[02:17:51] shevy: I have no idea if this makes a difference but right now you seem to do both
[02:17:54] shevy: f.write(Zlib::GzipReader.new(open(download_url)).read)
[02:19:04] shakes: has joined #ruby
[02:20:22] _blizzy_: I figured it out
[02:20:31] _blizzy_: f.write(open(download_url).read) works
[02:20:38] _blizzy_: thank you, shevy
[02:20:52] shevy: simplicity for the win
[02:22:33] sankaber: has joined #ruby
[02:28:04] skcin7: has joined #ruby
[02:28:57] nunchuck: has joined #ruby
[02:29:45] diego1: has joined #ruby
[02:31:09] dwfait_: has joined #ruby
[02:33:39] diego1: has joined #ruby
[02:35:13] ElFerna: has joined #ruby
[02:40:35] diego1: has joined #ruby
[02:41:15] dwfait: has joined #ruby
[02:41:30] diego1: has joined #ruby
[02:44:06] radgeRayden__: has joined #ruby
[02:49:56] dwfait_: has joined #ruby
[02:49:59] dlitvak: has joined #ruby
[02:50:34] rasengan: has joined #ruby
[02:51:23] chouhoulis: has joined #ruby
[02:51:45] bkxd: has joined #ruby
[02:52:57] rgrmatt: has joined #ruby
[02:57:04] woodruffw: has joined #ruby
[02:58:45] dwfait: has joined #ruby
[03:00:13] fsdsdf: has joined #ruby
[03:00:17] fsdsdf: i'm having trouble using this code, it doesn't accept any file that i input. https://gist.githubusercontent.com/ttscoff/986f0dcda3d3dd4270f6/raw/cb583cd5660fc1b59b876b3b8ce79c3742a681f7/font_grabber.rb
[03:02:42] asmodlol: has joined #ruby
[03:04:38] arescorpio: has joined #ruby
[03:09:03] dfinninger: has joined #ruby
[03:11:59] tectonic: has joined #ruby
[03:12:29] dlitvak: has joined #ruby
[03:19:15] mikeric: has joined #ruby
[03:20:42] rgrmatt: has joined #ruby
[03:22:26] blackjid: has joined #ruby
[03:23:32] duckpuppy: has joined #ruby
[03:27:26] rkazak: has joined #ruby
[03:28:17] dlitvak: has joined #ruby
[03:31:17] lidza_: has joined #ruby
[03:35:59] ruu_: has joined #ruby
[03:36:21] asmodlol: has joined #ruby
[03:40:22] charliesome: has joined #ruby
[03:41:09] seitensei: has joined #ruby
[03:42:11] dh64: has joined #ruby
[03:43:25] nkwsy: has joined #ruby
[03:44:56] wolffles: has joined #ruby
[03:46:05] dwfait: has joined #ruby
[03:49:50] dlitvak_: has joined #ruby
[03:52:10] chouhoulis: has joined #ruby
[03:53:08] dwfait: so a ruby ./configure && make && make install && gem install eventmachine gives output of https://gist.github.com/dwfait/9af1d6dbadac07da057a and a mkmf.log of https://gist.github.com/dwfait/8e2a7309550bbc93cbda
[03:53:43] dwfait: things I???ve tried: without openssl support, config options of: --with-openssl-dir=`brew --prefix openssl` --with-opt-dir=/usr/local/opt/openssl
[03:54:33] dwfait: using chruby and ruby-install with 2.3, everything works OK. Any clues to where I???m going wrong?
[03:55:25] tectonic: has joined #ruby
[03:57:28] shevy: does not ruby-install log output what it does? then you can trace back what it does differently
[03:57:37] shevy: havenwood should know a thing or two about ruby-install so perhaps he can help
[04:00:07] devoldmx: has joined #ruby
[04:01:57] dwfait: I???ve logged out how ruby-install configures ruby, which is where the configure flags I???ve tried come from. No luck, unfortunately
[04:02:52] Spami: has joined #ruby
[04:05:39] shevy: openssl is usually a pain anyway
[04:08:55] rickmasta: has joined #ruby
[04:11:44] baweaver: has joined #ruby
[04:18:39] Uptime: has left #ruby: ()
[04:20:18] braincrash: has joined #ruby
[04:21:11] highsen: has joined #ruby
[04:21:34] rgrmatt: has joined #ruby
[04:28:50] dlitvak: has joined #ruby
[04:30:33] robh71: has joined #ruby
[04:32:29] shadoi: has joined #ruby
[04:33:24] araujo: has joined #ruby
[04:34:01] PaulCapestany: has joined #ruby
[04:35:49] araujo: has joined #ruby
[04:36:50] ruu_: has joined #ruby
[04:39:27] marcdel: has joined #ruby
[04:39:33] devoldmx: has joined #ruby
[04:45:51] Trynemjoel: has joined #ruby
[04:45:56] rkazak: has joined #ruby
[04:46:06] dlitvak: has joined #ruby
[04:46:56] adgtl: has joined #ruby
[04:51:46] senayar: has joined #ruby
[04:51:47] senayar: has joined #ruby
[04:52:54] chouhoulis: has joined #ruby
[04:54:02] diego1: has joined #ruby
[04:54:19] diego1: has joined #ruby
[04:56:14] skcin7: has joined #ruby
[04:58:16] gizmore: has joined #ruby
[05:02:07] belak: Is rvm still the best way to install ruby? It was pretty much the only option when I was messing with ruby a few years ago, other than system packages.
[05:02:59] PaulCapestany: has joined #ruby
[05:03:42] domgetter: has joined #ruby
[05:05:00] robh71: has joined #ruby
[05:07:05] adgtl_: has joined #ruby
[05:08:51] duckpuppy: has joined #ruby
[05:11:15] _whitelogger: has joined #ruby
[05:13:06] voker57: has joined #ruby
[05:13:06] voker57: has joined #ruby
[05:13:10] drPoggs: has joined #ruby
[05:14:26] diego1: has joined #ruby
[05:14:58] diego1: has joined #ruby
[05:17:25] leslie: has joined #ruby
[05:17:25] leslie: has joined #ruby
[05:17:27] tekacs: has joined #ruby
[05:21:00] CloCkWeRX: has joined #ruby
[05:21:14] dseitz: has joined #ruby
[05:21:46] [spoiler]: has joined #ruby
[05:22:45] colegatron: has joined #ruby
[05:23:15] bkxd: has joined #ruby
[05:27:40] dlitvak_: has joined #ruby
[05:29:08] The_Phoenix: has joined #ruby
[05:30:40] PlasmaStar: has joined #ruby
[05:32:53] _whitelogger: has joined #ruby
[05:33:12] drPoggs: has joined #ruby
[05:33:28] tekacs: has joined #ruby
[05:33:40] JStoker: has joined #ruby
[05:33:52] voker57: has joined #ruby
[05:33:52] voker57: has joined #ruby
[05:34:16] JoL1hAHN: has joined #ruby
[05:36:11] EvilJStoker: has joined #ruby
[05:37:09] houhoulis: has joined #ruby
[05:37:30] ruu_: has joined #ruby
[05:39:25] leslie: has joined #ruby
[05:39:25] leslie: has joined #ruby
[05:39:27] [spoiler]: has joined #ruby
[05:41:59] seitensei: has joined #ruby
[05:42:00] seitensei: has joined #ruby
[05:44:20] CloCkWeRX: has joined #ruby
[05:44:28] dlitvak: has joined #ruby
[05:45:03] charliesome: has joined #ruby
[05:45:28] dingman: has joined #ruby
[05:46:44] Rodya_: has joined #ruby
[05:47:33] smactive: has joined #ruby
[05:47:49] darkf: has joined #ruby
[05:49:47] charliesome: has joined #ruby
[05:50:12] bjmllr: has joined #ruby
[05:52:12] dfinninger: has joined #ruby
[05:52:46] marcdel: has joined #ruby
[05:53:40] chouhoulis: has joined #ruby
[05:55:53] wolffles: just thought id say hi
[05:56:01] wolffles: was too quiet
[05:56:23] bkxd: has joined #ruby
[05:57:13] Gadgetoid: has joined #ruby
[05:57:15] domgetter: Perhaps everyone's busy enjoying their new Xmas presents
[05:57:27] wolffles: i got nothing for christmas
[05:58:07] fantazo: has joined #ruby
[05:58:37] domgetter: That sucks :(
[05:59:20] wolffles: ehhh i havent gotten very many presents in years
[06:00:05] Radar: belak: no RVM isn't the best option.
[06:00:12] dlitvak: has joined #ruby
[06:00:23] Radar: belak: Follow this: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you//
[06:03:15] shevy: domgetter I got only awful presents
[06:03:36] shevy: domgetter well, except for a new ruby
[06:03:56] domgetter: And a new Perl (if you're into that)
[06:04:10] pontiki: i got something pearlescent
[06:04:25] Radar: I gave my wife a pearl necklace
[06:07:34] yfeldblum: has joined #ruby
[06:09:13] canton7: has joined #ruby
[06:09:31] Takumo: has joined #ruby
[06:09:32] Takumo: has joined #ruby
[06:15:56] PlasmaStar: has joined #ruby
[06:16:05] blackgoat: has joined #ruby
[06:19:16] Antiarc: has joined #ruby
[06:20:06] dlitvak_: has joined #ruby
[06:23:51] rgrmatt: has joined #ruby
[06:24:58] bjmllr: has joined #ruby
[06:25:30] the_nick_me: has joined #ruby
[06:27:10] bjmllr: has joined #ruby
[06:30:28] lxsameer: has joined #ruby
[06:32:39] the_nic__: has joined #ruby
[06:33:45] kaspergrubbe: has joined #ruby
[06:35:27] voker57: has joined #ruby
[06:35:27] voker57: has joined #ruby
[06:35:51] leslie: has joined #ruby
[06:35:51] leslie: has joined #ruby
[06:36:03] tekacs: has joined #ruby
[06:36:18] drPoggs: has joined #ruby
[06:36:21] Pupeno: has joined #ruby
[06:36:22] Pupeno: has joined #ruby
[06:36:46] JStoker: has joined #ruby
[06:37:42] PlasmaStar: has joined #ruby
[06:38:16] ruu_: has joined #ruby
[06:39:16] EvilJStoker: has joined #ruby
[06:40:03] kegan_: has joined #ruby
[06:40:27] baweaver: has joined #ruby
[06:49:40] cassioscabral: has joined #ruby
[06:53:20] claw: has joined #ruby
[06:54:24] chouhoulis: has joined #ruby
[07:00:10] dlitvak: has joined #ruby
[07:00:28] Emmanuel_Chanel: has joined #ruby
[07:01:24] baweaver: has joined #ruby
[07:02:04] charliesome: has joined #ruby
[07:05:00] Trynemjoel: has joined #ruby
[07:05:33] sp1rs: has joined #ruby
[07:07:18] the_nick_me: has joined #ruby
[07:10:47] canton7: has joined #ruby
[07:11:50] trwyth: has joined #ruby
[07:12:11] trwyth: has joined #ruby
[07:15:18] passerine: has joined #ruby
[07:15:54] dlitvak: has joined #ruby
[07:21:00] karapetyan: has joined #ruby
[07:22:33] ruu_: has joined #ruby
[07:22:55] xet7: has joined #ruby
[07:24:25] bkxd: has joined #ruby
[07:25:25] rgrmatt: has joined #ruby
[07:25:50] rippa: has joined #ruby
[07:26:42] ledestin: has joined #ruby
[07:27:00] adgtl: has joined #ruby
[07:27:29] Dimik: has joined #ruby
[07:30:54] aryaching: has joined #ruby
[07:34:40] agit0: has joined #ruby
[07:34:50] _whitelogger: has joined #ruby
[07:35:24] drPoggs: has joined #ruby
[07:35:36] JoL1hAHN: has joined #ruby
[07:35:42] tekacs: has joined #ruby
[07:35:52] voker57: has joined #ruby
[07:35:52] EvilJStoker: has joined #ruby
[07:35:52] voker57: has joined #ruby
[07:36:22] JStoker: has joined #ruby
[07:36:35] passerine: has left #ruby: ()
[07:38:24] skcin7: has joined #ruby
[07:39:05] djbkd: has joined #ruby
[07:39:27] leslie: has joined #ruby
[07:39:27] leslie: has joined #ruby
[07:39:58] [spoiler]: has joined #ruby
[07:40:49] RegulationD: has joined #ruby
[07:42:10] arup_r: has joined #ruby
[07:46:04] rkazak_: has joined #ruby
[07:48:24] gizless: has joined #ruby
[07:53:02] Trynemjoel: has joined #ruby
[07:54:35] _whitelogger_: has joined #ruby
[07:55:06] kster: has joined #ruby
[07:55:07] chouhoulis: has joined #ruby
[07:55:09] voker57: has joined #ruby
[07:55:09] voker57: has joined #ruby
[07:55:12] tekacs: has joined #ruby
[07:55:16] [spoiler]: has joined #ruby
[07:55:26] drPoggs: has joined #ruby
[07:56:29] charliesome: has joined #ruby
[07:57:19] kster: question as an experienced developer but complete ruby noob. i've been given a ruby project with little knowledge of configuration. the "start" command that's in my docs is: bundle exec dl:start:all is there like a ...compiled build cache or something? i'm receiving an error referencing a change i was doing in one of the .rb fi
[07:57:20] kster: les, but i already undid that change and the error is still happening
[07:57:28] leslie: has joined #ruby
[07:57:28] leslie: has joined #ruby
[07:58:33] kster: i was trying to add in a new object member named short_order_id to be a truncated version of the original property order_id
[07:58:54] EvilJStoker: has joined #ruby
[07:59:00] kster: but i've reverted the code back to original. but execution still throws an error referring to short_order_id
[07:59:11] charliesome: has joined #ruby
[07:59:52] Axsuul: has joined #ruby
[07:59:56] gizmore: has joined #ruby
[08:00:03] senayar: has joined #ruby
[08:00:03] senayar: has joined #ruby
[08:00:31] dlitvak: has joined #ruby
[08:02:31] baweaver: has joined #ruby
[08:03:08] djbkd_: has joined #ruby
[08:03:30] JStoker: has joined #ruby
[08:05:53] devoldmx: has joined #ruby
[08:06:48] cyfr0n: has joined #ruby
[08:08:11] nkwsy: has joined #ruby
[08:10:16] highsen: has joined #ruby
[08:10:54] Takumo: has joined #ruby
[08:10:54] Takumo: has joined #ruby
[08:11:00] agit0: has joined #ruby
[08:11:04] canton7: has joined #ruby
[08:11:07] Morrolan: has joined #ruby
[08:11:22] kaspergrubbe: has joined #ruby
[08:11:35] marwinism: has joined #ruby
[08:11:36] Drakevr: has joined #ruby
[08:11:37] ammar: has joined #ruby
[08:11:46] lnx: has joined #ruby
[08:13:20] Dimik: has joined #ruby
[08:14:11] PlasmaStar: has joined #ruby
[08:14:57] adgtl: has joined #ruby
[08:16:38] _whitelogger: has joined #ruby
[08:16:49] voker57: has joined #ruby
[08:16:55] voker57: has joined #ruby
[08:18:41] dlitvak: has joined #ruby
[08:20:27] SantaClaus1: has joined #ruby
[08:34:47] dmt420: has joined #ruby
[08:34:50] dmt420: has left #ruby: ()
[08:35:38] yaewa: has joined #ruby
[08:36:47] sp1rs: has joined #ruby
[08:38:55] duckpuppy: has joined #ruby
[08:39:31] lacuna: has joined #ruby
[08:42:11] BSaboia: has joined #ruby
[08:52:14] the_nick_me: has joined #ruby
[08:54:45] dfinninger: has joined #ruby
[08:55:54] chouhoulis: has joined #ruby
[09:02:04] dlitvak: has joined #ruby
[09:02:18] the_nick_me: has joined #ruby
[09:04:21] Gnut: has joined #ruby
[09:07:30] Takumo: has joined #ruby
[09:07:30] Takumo: has joined #ruby
[09:08:12] ammar: has joined #ruby
[09:08:16] leslie: has joined #ruby
[09:08:16] leslie: has joined #ruby
[09:08:19] tekacs: has joined #ruby
[09:08:20] Morrolan: has joined #ruby
[09:08:25] [spoiler]: has joined #ruby
[09:08:30] drPoggs: has joined #ruby
[09:08:33] JoL1hAHN: has joined #ruby
[09:08:36] canton7: has joined #ruby
[09:09:01] JStoker: has joined #ruby
[09:09:02] EvilJStoker: has joined #ruby
[09:09:27] _whitelogger: has joined #ruby
[09:10:46] Drakevr: has joined #ruby
[09:10:47] kaspergrubbe: has joined #ruby
[09:10:56] lnx: has joined #ruby
[09:11:22] marwinism: has joined #ruby
[09:11:45] lucas: has joined #ruby
[09:12:51] FernandoBasso: has joined #ruby
[09:16:13] vdamewood: has joined #ruby
[09:19:03] marr: has joined #ruby
[09:19:32] oddmunds: has joined #ruby
[09:21:11] dlitvak: has joined #ruby
[09:26:42] AlexRussia: has joined #ruby
[09:26:49] rgrmatt: has joined #ruby
[09:27:26] karapetyan: has joined #ruby
[09:30:15] karapetyan: has joined #ruby
[09:35:49] arup_r: has joined #ruby
[09:39:01] devbug_: has joined #ruby
[09:39:40] duckpuppy: has joined #ruby
[09:41:31] RegulationD: has joined #ruby
[09:41:50] norc: has joined #ruby
[09:42:13] norc: Hello folks.
[09:42:23] norc: I see, we have gotten our Christmas present. :)
[09:42:54] highsen: has joined #ruby
[09:43:19] Axsuul: has joined #ruby
[09:43:45] seitensei: has joined #ruby
[09:44:50] asmodlol: has joined #ruby
[09:45:48] steffkes: has joined #ruby
[09:45:49] steffkes: has joined #ruby
[09:47:15] BrunoSaboia: has joined #ruby
[09:48:40] cyfr0n: has joined #ruby
[09:49:38] norc: So Im thinking about a feature request for our next Ruby version. "Source code comments everywhere".
[09:50:20] norc: And I'm just wondering about the countless variations of broken English this feature request will be denied with.
[09:53:03] domgetter: If you want to submit a feature request that will be denied, I'm sure we can get pretty creative...
[09:53:18] Begi: has joined #ruby
[09:53:21] arup_r: has joined #ruby
[09:53:45] andywojo: has joined #ruby
[09:56:17] dfinninger: has joined #ruby
[09:56:38] chouhoulis: has joined #ruby
[09:57:35] rab00f: has joined #ruby
[09:58:36] drPoggs: has joined #ruby
[09:59:28] [spoiler]: has joined #ruby
[10:00:04] kegan_: if i have an xpath //div[@class="categories"]//a that returns two separate a values, and i'm using nokogiri to extract that information, is there a way to nest those two separately, instead of together?
[10:00:16] kegan_: or a better xpath to use
[10:00:46] kegan_: there's no good way to extricate one from the other once they're combined
[10:01:44] trif: has joined #ruby
[10:02:05] senayar: has joined #ruby
[10:03:18] JoL1hAHN: has joined #ruby
[10:03:37] drPoggs: has joined #ruby
[10:03:38] _whitelogger: has joined #ruby
[10:04:53] postmodern: has joined #ruby
[10:05:06] EvilJStoker: has joined #ruby
[10:06:37] devoldmx: has joined #ruby
[10:06:42] Hanmac: has joined #ruby
[10:07:06] JStoker: has joined #ruby
[10:08:12] platzhirsch: has left #ruby: ()
[10:13:17] yfeldblum: has joined #ruby
[10:14:43] rcs: has joined #ruby
[10:15:25] spider-mario: has joined #ruby
[10:16:35] trwyth: has joined #ruby
[10:18:02] dkam: has joined #ruby
[10:19:20] Liothen: has joined #ruby
[10:19:20] Liothen: has joined #ruby
[10:19:22] kenichi: has joined #ruby
[10:19:42] Junaos: has joined #ruby
[10:19:54] G: has joined #ruby
[10:20:31] Sou|cutter: has joined #ruby
[10:20:46] kmckelvin: has joined #ruby
[10:20:55] papercode: has joined #ruby
[10:20:57] anekos: has joined #ruby
[10:21:07] rcs: has joined #ruby
[10:21:08] bmn: has joined #ruby
[10:22:45] SegFaultAX: has joined #ruby
[10:23:30] mblagden: has joined #ruby
[10:24:21] miah: has joined #ruby
[10:33:07] Axsuul: has joined #ruby
[10:35:27] djbkd: has joined #ruby
[10:35:31] DoubleMalt: has joined #ruby
[10:36:11] jbrhbr: has joined #ruby
[10:36:41] snarkanoid: has joined #ruby
[10:43:06] johnhamelink: has joined #ruby
[10:43:15] Junaos: has joined #ruby
[10:44:19] dtordable: has joined #ruby
[10:48:42] kirun: has joined #ruby
[10:48:58] skcin7: has joined #ruby
[10:51:42] trampi: has joined #ruby
[10:52:24] dtordable: has joined #ruby
[10:52:25] skcin7: has joined #ruby
[10:53:58] Pupeno: has joined #ruby
[10:53:58] Pupeno: has joined #ruby
[10:54:20] HANJIN: has joined #ruby
[10:56:24] norc: kegan_: Im not sure I understand your problem. Can you provide a sample document (haml/slim suffices) and describe it with that document?
[10:56:49] norc: domgetter: The difference is, I actually want that feature. ;-)
[10:57:22] chouhoulis: has joined #ruby
[10:57:24] norc: domgetter: Most European contributions that introduce new functions actually bring fairly extensive documentation, this really must be some Japanese thing.
[10:57:28] puria: has joined #ruby
[10:57:59] Jackneill: has joined #ruby
[10:58:08] domgetter: norc: Oh you meant comments in Ruby's source code?
[10:58:18] domgetter: not just source code of programs written in Ruby
[10:58:33] norc: There are some C functions spanning up to thousands of lines of code, containing less than a dozen lines of comments - if any.
[10:58:36] norc: It is downright silly.
[10:58:47] platzhirsch: has joined #ruby
[10:58:54] domgetter: The function for puts uses goto :P
[10:59:13] norc: There is no such thing as goto.
[11:00:01] norc: On a serious note, goto is fine for some convuluted conditionals.
[11:01:15] arup_r: has joined #ruby
[11:01:51] norc: What is worse is the fact that Ruby makes heavy use of macros, which makes building call graphs really hard, which means it is really hard to figure out what a function does if it doesnt say.
[11:01:55] dlitvak: has joined #ruby
[11:01:57] domgetter: norc: https://github.com/ruby/ruby/blob/edea151a4bae78a57efdb67d73a22ba52421952c/io.c#L7106
[11:02:18] norc: domgetter: Nothing wrong with that.
[11:02:30] domgetter: I... didn't say there was?
[11:02:51] domgetter: There is no such thing as goto. "
[11:04:11] norc: domgetter: Ah, it's a saying I used at work for a colleque that used it to great extend for control flow - needless to say, his libraries ended up being largely unmaintainable.
[11:05:03] domgetter: My brother and I have a similar saying about how there's no such thing as plain text
[11:05:39] darkf: has joined #ruby
[11:05:45] mdw: has joined #ruby
[11:05:57] norc: What is interesting, is that Ruby - like most other languages, uses setjmp/longjmp for Exceptions as well as catch and throw - internally they are actually not that much different. :)
[11:06:25] norc: And you can abuse that fact to rescue from actual segmentation faults, there is a Ruby hacker here how found a really neat way for this.
[11:07:00] blub: call/cc is just goto done right
[11:07:08] alphaatom: has joined #ruby
[11:07:40] domgetter: blub: isn't that deprecated and replaced with Fibers?
[11:08:52] duckpuppy: has joined #ruby
[11:09:33] blub: i forgot where i was sorry
[11:09:59] m8: has joined #ruby
[11:12:13] norc: blub: Well they are completely different things. Goto is local, call/cc is not.
[11:12:55] kegan_: has joined #ruby
[11:13:54] norc: Or wait, which language are we talking about.
[11:13:58] norc: Scheme? C? Ruby?
[11:14:15] fantazo: has joined #ruby
[11:14:32] SCHAAP137: has joined #ruby
[11:14:43] domgetter: Algvascript
[11:16:11] blackmesa: has joined #ruby
[11:16:43] kegan_: norc: im exhausted, please excuse the lack of example here, i think i can explain well enough though. if not i'll just wait until after sleep: page contains numerous divs with class="categories", some have one child <a> with category text, others have multiples. as it stands, using nokogiri's xpath on the page w/ xpath= //div[@class="categories"] will give me, for the divs with multiple anchors,
[11:16:43] kegan_: all of the results mashed into one nodeset, whereas I want to be able to delineate between each match under that parent div so that I can separate them in some meaningful fashion
[11:17:02] norc: kegan_: Just write a sample HAML document please. It is fairly easy. :)
[11:17:08] norc: Or slim. Whatever
[11:18:40] last_staff: has joined #ruby
[11:19:03] norc: (Or a full XML example if you prefer, but HAML/SLIM is probably much faster to type :P)
[11:19:33] kmckelvin: has joined #ruby
[11:20:07] CloCkWeRX: has left #ruby: ()
[11:21:50] norc: The reason Im forcing you, is because I don't have the time to read and guess what you mean. If you give a sample document, we can use it to test various examples against.
[11:22:04] norc: Much faster and more reliable way of getting help. :)
[11:23:06] kegan_: norc, i get it, i would do the same. you're not being unreasonable, not in the slightest, I just... I can't. i respect the request and i'll come back after sleep when i can
[11:23:18] colegatron: has joined #ruby
[11:23:19] norc: Fair enough. :)
[11:24:22] norc: kegan_: Incidentally, you should have such sample documents anyway - because you test your application with RSpec/Minitest, am I right? ;-)
[11:24:27] norc: ACTION hides
[11:26:02] mostlybadfly: has joined #ruby
[11:27:06] anisha: has joined #ruby
[11:27:21] Feyn: has joined #ruby
[11:28:25] rgrmatt: has joined #ruby
[11:31:11] dearleader: has joined #ruby
[11:32:33] kegan_: ahaha, for a rails app? TDD w/ rspec. for a <80 line crawl script? no way
[11:33:34] anisha_: has joined #ruby
[11:33:47] kegan_: should i minitest those? for the sake of edification?
[11:33:58] kegan_: not sarcasm
[11:34:10] rcs: has joined #ruby
[11:34:12] ta: has joined #ruby
[11:34:21] kegan_: i'm about to drop dead on my desk here, incapable of derision
[11:34:26] anekos: has joined #ruby
[11:34:46] bmn: has joined #ruby
[11:34:54] kenichi: has joined #ruby
[11:37:14] Axsuul: has joined #ruby
[11:37:15] norc: kegan_: Never not write tests I say.
[11:37:38] kp666: has joined #ruby
[11:37:43] greenarrow: has joined #ruby
[11:38:07] norc: Often the issue is that developers tend to be the test framework themselves. If you want to add something with an expected behavior, do not verify that behavior in the browser after writing it - verify it in the test.
[11:38:35] kp666: has joined #ruby
[11:39:36] kp666: has joined #ruby
[11:40:19] norc: If you do it right, you end not not even needing the Browser at all during development, aside from styling.
[11:40:36] kp666: has joined #ruby
[11:41:31] kp666: has joined #ruby
[11:42:27] kp666: has joined #ruby
[11:42:44] anisha__: has joined #ruby
[11:43:29] kp666: has joined #ruby
[11:44:02] toretore: has joined #ruby
[11:44:28] kp666: has joined #ruby
[11:44:37] seitensei: has joined #ruby
[11:44:37] seitensei: has joined #ruby
[11:44:49] mdw: has joined #ruby
[11:45:16] anisha: has joined #ruby
[11:45:21] kp666: has joined #ruby
[11:46:24] kp666: has joined #ruby
[11:52:03] trif: has left #ruby: ()
[11:53:09] katxic: has joined #ruby
[11:57:43] dfinninger: has joined #ruby
[11:58:09] chouhoulis: has joined #ruby
[12:00:11] yfeldblum: has joined #ruby
[12:01:00] anisha__: has joined #ruby
[12:02:59] anisha_: has joined #ruby
[12:05:01] senayar: has joined #ruby
[12:05:53] Liothen: has joined #ruby
[12:05:53] Liothen: has joined #ruby
[12:06:18] anisha_: has joined #ruby
[12:06:22] miah: has joined #ruby
[12:06:24] Mon_Ouie: has joined #ruby
[12:06:29] anekos: has joined #ruby
[12:06:47] kenichi: has joined #ruby
[12:06:53] Junaos: has joined #ruby
[12:07:22] anisha_: has joined #ruby
[12:07:26] devoldmx: has joined #ruby
[12:07:49] bmn: has joined #ruby
[12:08:43] anisha_: has joined #ruby
[12:08:45] rcs: has joined #ruby
[12:09:36] duckpuppy: has joined #ruby
[12:10:02] anisha_: has joined #ruby
[12:10:04] G: has joined #ruby
[12:10:14] anisha__: has joined #ruby
[12:10:51] mblagden: has joined #ruby
[12:10:52] anisha_: has joined #ruby
[12:11:37] papercode: has joined #ruby
[12:12:16] Sou|cutter: has joined #ruby
[12:13:58] anisha_: has joined #ruby
[12:16:12] anisha_: has joined #ruby
[12:16:49] SegFaultAX: has joined #ruby
[12:16:55] SegFaultAX: has joined #ruby
[12:26:52] shredding: has joined #ruby
[12:28:16] FooMunki: has joined #ruby
[12:28:27] karapetyan: has joined #ruby
[12:29:14] rgrmatt: has joined #ruby
[12:33:24] booboo: has joined #ruby
[12:35:17] booboo: hi, I cannot compile eventmachine under ruby 2.3, here's the log: http://pastebin.com/evNP8WKS Is it just me or it should be reported ?
[12:35:18] ruboto: booboo, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[12:36:09] bkxd: has joined #ruby
[12:36:24] Papierkorb: booboo: To see why this extension failed to compile, please check the mkmf.log which can be found here: /usr/local/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/eventmachine-1.0.8/mkmf.log
[12:36:57] Papierkorb: booboo: please !gist that file
[12:37:47] booboo: Papierkorb: yes, sorry
[12:38:04] roshanavand: has joined #ruby
[12:38:43] booboo: Papierkorb: mkmf.log says "dyld: Symbol not found: __cg_jpeg_resync_to_restart\n"
[12:39:23] Papierkorb: booboo: No idea about ruby2.3's API changes, nor Mac in general, but try googling for that method name
[12:40:18] booboo: Papierkorb: yes, I've just found something about it, thanks
[12:43:24] anisha_: has joined #ruby
[12:43:32] karapetyan: has joined #ruby
[12:44:55] karapetyan: has joined #ruby
[12:45:51] solocshaw: has joined #ruby
[12:47:42] skcin7_: has joined #ruby
[12:50:17] alem0lars: has joined #ruby
[12:52:04] blackmesa: has joined #ruby
[12:54:01] dorei: has joined #ruby
[12:56:33] roshanavand: has joined #ruby
[12:57:59] Scripore: has joined #ruby
[12:58:01] dkam_: has joined #ruby
[12:58:39] dfinninger: has joined #ruby
[12:58:52] chouhoulis: has joined #ruby
[13:00:29] banister: has joined #ruby
[13:00:56] gagrio: has joined #ruby
[13:06:01] FooMunki: has joined #ruby
[13:06:11] senayar: has joined #ruby
[13:08:00] anisha_: has joined #ruby
[13:08:27] Klumben: has joined #ruby
[13:08:46] sdothum: has joined #ruby
[13:09:53] c355E3B: has joined #ruby
[13:10:32] moei: has joined #ruby
[13:11:10] d0nn1e: has joined #ruby
[13:11:42] dexter_e: has joined #ruby
[13:12:07] themsay: has joined #ruby
[13:12:56] c0ncealed: has joined #ruby
[13:16:46] FernandoBasso: has joined #ruby
[13:16:47] robh71: has joined #ruby
[13:18:55] cyfr0n: has joined #ruby
[13:19:01] krz: has joined #ruby
[13:23:35] howdoi: has joined #ruby
[13:24:24] pawnbox: has joined #ruby
[13:25:18] alphaatom: has joined #ruby
[13:26:08] trwyth: has joined #ruby
[13:30:52] ghr: has joined #ruby
[13:37:00] johnhamelink: has joined #ruby
[13:38:57] alphaatom: has joined #ruby
[13:45:30] seitensei: has joined #ruby
[13:47:04] duckpuppy: has joined #ruby
[13:52:15] anisha: has joined #ruby
[13:52:47] alphaatom: has joined #ruby
[13:54:37] highsen: has joined #ruby
[13:55:47] colegatron: has joined #ruby
[13:58:37] lxsameer: has joined #ruby
[13:59:38] chouhoulis: has joined #ruby
[14:00:50] highsen: has joined #ruby
[14:02:25] roshanavand: has joined #ruby
[14:02:29] alphaatom: has joined #ruby
[14:02:43] j0bk: has joined #ruby
[14:02:48] pawnbox: has joined #ruby
[14:03:01] PedramT: has joined #ruby
[14:03:20] pawnbox: has joined #ruby
[14:03:25] csaunders: has joined #ruby
[14:03:43] LBRapid: has joined #ruby
[14:03:58] SirCmpwn: has joined #ruby
[14:04:00] Jello_Raptor: has joined #ruby
[14:04:06] nfk: has joined #ruby
[14:05:06] Scripore: has joined #ruby
[14:06:06] cyfr0n: has joined #ruby
[14:06:39] senayar: has joined #ruby
[14:06:49] pleiosaur: has joined #ruby
[14:06:52] peterhu: has joined #ruby
[14:07:04] rasengan: has joined #ruby
[14:07:07] ec: has joined #ruby
[14:07:11] janelleb: has joined #ruby
[14:07:34] Scripore: has joined #ruby
[14:08:10] devoldmx: has joined #ruby
[14:08:44] Salehi: has joined #ruby
[14:12:30] Scripore: has joined #ruby
[14:13:31] blackmesa: has joined #ruby
[14:21:29] robh71: has joined #ruby
[14:23:23] toretore: has joined #ruby
[14:23:44] roshanavand: has joined #ruby
[14:24:57] Scripore: has joined #ruby
[14:26:20] Jardayn: has joined #ruby
[14:27:57] asmodlol: has joined #ruby
[14:28:02] kmckelvin: has joined #ruby
[14:35:43] osiutino: has joined #ruby
[14:37:42] mary5030: has joined #ruby
[14:43:04] pawnbox: has joined #ruby
[14:43:50] pawnbox: has joined #ruby
[14:46:56] jgt: has joined #ruby
[14:47:29] csaunders: has joined #ruby
[14:47:46] LBRapid: has joined #ruby
[14:47:47] duckpuppy: has joined #ruby
[14:47:57] Jello_Raptor: has joined #ruby
[14:48:19] peterhu: has joined #ruby
[14:48:24] ec: has joined #ruby
[14:48:31] janelleb: has joined #ruby
[14:49:03] pleiosaur: has joined #ruby
[14:49:25] rasengan: has joined #ruby
[14:50:57] morfin: has joined #ruby
[14:50:58] j0bk: has joined #ruby
[14:51:28] annomander: has joined #ruby
[14:52:07] SirCmpwn: has joined #ruby
[14:53:21] curses: has joined #ruby
[14:54:26] skingsbu: has joined #ruby
[14:54:37] jgt1: has joined #ruby
[14:55:18] Ox0dea: has joined #ruby
[14:55:30] FooMunki: has joined #ruby
[14:56:32] karapetyan: has joined #ruby
[14:56:53] skingsbu: Hello all I am in the process of converting a legacy perl script to Ruby and have a question on how ruby reads a yaml file.
[14:57:42] skingsbu: i can read individual values fine but i have some that are in the following format
[14:57:59] skingsbu: trying to pull that into an array
[14:59:09] robh71: has joined #ruby
[14:59:36] Ox0dea: skingsbu: https://eval.in/493760
[14:59:41] pontiki: an array of nils?
[14:59:56] skingsbu: sorry - val1
[15:00:03] dfinninger: has joined #ruby
[15:00:20] chouhoulis: has joined #ruby
[15:03:17] chipotle: has joined #ruby
[15:03:42] karapetyan: has joined #ruby
[15:03:49] skingsbu: thanks for the quick response i appreciate it
[15:06:54] karapety_: has joined #ruby
[15:06:58] SamGerber: has joined #ruby
[15:09:03] senayar: has joined #ruby
[15:09:26] Ox0dea: sum grep * %% (3|5), ^1000
[15:09:40] Scripore: has joined #ruby
[15:09:40] Ox0dea: Bye, y'all.
[15:09:50] pontiki: bye <sniff>
[15:09:53] krobzaur: has joined #ruby
[15:09:56] Ox0dea: It's so nice!
[15:10:09] pawnbox: has joined #ruby
[15:10:16] Ox0dea: The list of nifty (and useful) features just goes on and on.
[15:10:58] Ox0dea: There's a ponbiki in #perl6...
[15:11:58] pontiki: no relation. shevy already made hay about that
[15:12:47] cassioscabral: has joined #ruby
[15:13:46] RegulationD: has joined #ruby
[15:14:15] PedramT: has joined #ruby
[15:14:15] blackmesa: has joined #ruby
[15:15:32] kam270: has joined #ruby
[15:15:40] edwinvdgraaf: has joined #ruby
[15:16:23] edwinvdgraaf: has joined #ruby
[15:19:39] skcin7: has joined #ruby
[15:21:09] edwinvdg_: has joined #ruby
[15:21:34] DoubleMalt: has joined #ruby
[15:26:40] alphaatom: has joined #ruby
[15:30:44] PedramT: has joined #ruby
[15:30:57] nateberkopec: has joined #ruby
[15:31:32] charliesome: has joined #ruby
[15:31:43] mrtomme: has joined #ruby
[15:32:16] codecop: has joined #ruby
[15:32:21] dtordable: has joined #ruby
[15:33:11] dtordable: has joined #ruby
[15:33:39] peeja: has joined #ruby
[15:36:52] Encapsulation: has joined #ruby
[15:38:05] wildlander: has joined #ruby
[15:38:34] roshanav_: has joined #ruby
[15:38:45] wildlander: has joined #ruby
[15:40:10] arup_r: has joined #ruby
[15:42:53] Axsuul: has joined #ruby
[15:43:46] Drakevr: has joined #ruby
[15:45:36] Trynemjoel: has joined #ruby
[15:46:18] Exce1l: has joined #ruby
[15:46:27] seitensei: has joined #ruby
[15:47:10] aryaching: has joined #ruby
[15:47:57] krobzaur: has joined #ruby
[15:47:59] alphaatom: has joined #ruby
[15:50:27] rab00f: has joined #ruby
[15:51:39] chipotle: has joined #ruby
[15:53:13] snarkanoid: has joined #ruby
[15:53:42] dwfait: has joined #ruby
[15:55:13] nullwarp: has joined #ruby
[15:56:28] alakra: has joined #ruby
[15:57:20] belak: Is there a big difference between rbenv, chruby and rvm?
[15:57:21] karapetyan: has joined #ruby
[15:57:38] adaedra: features, mainly
[15:57:51] adaedra: way of working, also.
[15:58:02] shevy: hmm what was the way to find out the common entries in two arrays? & ?
[15:58:37] adaedra: chruby and rvm will modify your env to provide you correct paths while rbenv will provide binary "shims" calling the choosen versions
[15:59:10] adaedra: rvm will provide the most features (but is heavier), chruby is the lightest (do just one thing, choosing ruby versions ?????but do it well ;) )
[16:00:21] TheMoonMaster: has joined #ruby
[16:00:45] jottr: has joined #ruby
[16:01:07] chouhoulis: has joined #ruby
[16:01:27] pawnbox: has joined #ruby
[16:03:00] rippa: has joined #ruby
[16:04:57] wsewolod: has joined #ruby
[16:05:08] sp1rs: has joined #ruby
[16:06:33] robh71: has joined #ruby
[16:08:57] devoldmx: has joined #ruby
[16:09:49] senayar: has joined #ruby
[16:10:31] karapetyan: has joined #ruby
[16:14:12] jordanm: has joined #ruby
[16:16:37] dualbus: has joined #ruby
[16:17:57] ElFerna: has joined #ruby
[16:18:59] Begi: has joined #ruby
[16:19:17] arup_r: shevy: `Array#&`
[16:19:32] arup_r: >> puts [1,2] & [1]
[16:19:33] ruboto: arup_r # => 1 ...check link for more (https://eval.in/493779)
[16:20:05] arup_r: I need to go through the Ruby core API.. they added lot of new methods.. :)
[16:20:39] robh71: has joined #ruby
[16:21:26] shevy: they did?
[16:21:28] Ox0dea: arup_r: Array#& is a very old method.
[16:21:38] shevy: Ah yes #dig and such
[16:21:40] arup_r: Yes, I know
[16:21:45] shevy: I don't think I have used it yet
[16:21:49] dualbus: has joined #ruby
[16:21:58] pontiki: dig looks pretty cool
[16:22:22] pontiki: i'm still not too sure about &.
[16:22:26] arup_r: Ox0dea: But they added some new things like #dig , and now some enumerable methods are added to Array also.. which was not before
[16:23:05] hagabaka: has joined #ruby
[16:23:22] Ox0dea: arup_r: Array got new methods in 2.3?
[16:23:39] arup_r: shevy: yes Array#dig
[16:24:13] Ox0dea: > and now some enumerable methods are added to Array also
[16:24:16] Ox0dea: arup_r: What did you mean there?
[16:24:57] arup_r: ok.. Yes, I saw it yesterday.. But now not able to remember .. A method may be in 2.3 or in 2.2.* ..
[16:25:03] colegatron: has joined #ruby
[16:25:10] shevy: arup_r also Hash#dig
[16:25:49] Ilyes512: has joined #ruby
[16:26:17] The_Phoenix1: has joined #ruby
[16:26:20] colegatron: has joined #ruby
[16:28:48] arup_r: I also read in a blog where authro shown we can check if a hash includes another hash .. now not able to recall the method .. :/
[16:29:21] dtonal: has joined #ruby
[16:29:21] sp1rs: has joined #ruby
[16:29:39] arup_r: hm.. got http://ruby-doc.org/core-2.3.0/Hash.html#method-i-3C
[16:29:52] arup_r: there are series of comparisons..
[16:31:23] blub: why are some of them hsh
[16:31:34] blub: hi ox0dea
[16:31:41] Ox0dea: >> hash # blub
[16:31:42] ruboto: Ox0dea # => -508949562 (https://eval.in/493780)
[16:31:53] Ox0dea: People (mistakenly) think they need to be careful with that identifier.
[16:32:23] Ox0dea: Or else it's just for symmetry with `ary`, `str`, and the like.
[16:32:47] belak: Is it possible to not have to install chruby locally? Similar to how rbenv works?
[16:33:09] dtonal: has left #ruby: ("Konversation terminated!")
[16:33:09] _blizzy_: has joined #ruby
[16:34:00] rickmasta: has joined #ruby
[16:34:27] adaedra: You can put chruby anywhere you please
[16:34:40] belak: It seems like all the recommendations are to just run sudo make install
[16:34:47] Darin_: has joined #ruby
[16:34:48] arup_r: Ox0dea: ok it is #any, but is is included in 2.2.1 not in 2.2.3 before 2.2.1 it was documented in Enumerable, but since 2.2.1 it is in Array API
[16:35:07] karapetyan: has joined #ruby
[16:35:09] Ox0dea: arup_r: Array#any? and Enumerable#any? are different methods.
[16:35:25] pontiki: hmm. what are the reasons for: https://github.com/ruby/ruby/blob/v2_3_0/NEWS#L307 ?
[16:35:27] arup_r: Nah, they are same.. see what I said
[16:35:38] anisha: has joined #ruby
[16:35:39] adaedra: belak: chruby is just a set of shell scripts, they don't really depend on a location.
[16:36:57] Ox0dea: >> [].method(:all?).owner == [].method(:any?).owner # arup_r
[16:36:58] ruboto: Ox0dea # => false (https://eval.in/493781)
[16:36:59] Rodya_: has joined #ruby
[16:37:07] Ox0dea: Array#any? is optimized specifically for Array.
[16:37:20] arup_r: ^^ That is my point
[16:37:33] _blizzy_: atm I'm making a ruby version manager for windows. it's a fun project.
[16:38:08] mdw: has joined #ruby
[16:38:12] Ox0dea: arup_r: Why are you talking about differences between 2.2.1 and 2.2.3?
[16:38:30] arup_r: nothing.. leave it :)
[16:38:44] Ox0dea: And why has documentation to do with any of this?
[16:39:05] Darin_: What good is a get_name method that asks for a name of a person, if the only way to print out a greeting you have to give the name of a person as an argument when you create a new person object?
[16:39:23] adaedra: pontiki: voil?? https://bugs.ruby-lang.org/issues/11025
[16:39:29] pawnbox_: has joined #ruby
[16:39:51] arup_r: See, when I was referring before the #any method, I need to read it from Enumerable API, since 2.2.1 it was added to the Array API ..
[16:40:09] arup_r: but I thought it is added 2.3 .. which I was wrong..
[16:40:33] Ox0dea: arup_r: But they're different methods...
[16:40:37] pontiki: ta, adaedra
[16:40:42] smactive: has joined #ruby
[16:40:49] arup_r: Before 2.2.1 also they were different ?
[16:41:07] arup_r: humm.. since 2.2.1 they are different..
[16:41:22] Ox0dea: Yes, Array#any? is optimized specifically for Array.
[16:41:27] arup_r: I got it,, that is the point I want to made.. mistakenly said from 2.3
[16:41:32] Ox0dea: Fair enough.
[16:41:36] Ox0dea: 2.2 is EOL anyways. :P
[16:41:51] musl: has joined #ruby
[16:43:54] pontiki: yay, time to install a new ruby
[16:44:03] blackmesa: has joined #ruby
[16:44:24] pontiki: starting with the project boxes
[16:44:27] sp1rs: has joined #ruby
[16:45:14] Ox0dea: $ ruby -v
[16:45:15] Ox0dea: ruby 2.4.0dev (2015-12-27 trunk 53351) [x86_64-linux]
[16:45:20] Ox0dea: (But don't tell anybody.)
[16:46:47] BrunoSaboia: has joined #ruby
[16:47:33] jottr_: has joined #ruby
[16:47:51] DoubleMalt: has joined #ruby
[16:48:26] CloCkWeRX: has joined #ruby
[16:48:33] duckpuppy: has joined #ruby
[16:49:26] adaedra: ACTION tells EVERYONE
[16:49:28] shevy: so much geek
[16:49:39] blackmesa: has joined #ruby
[16:50:14] sandstrom: has joined #ruby
[16:50:23] adaedra: Woohoo, tests passing! \o/
[16:51:31] shevy: what are you testing
[16:53:06] lidza_: has joined #ruby
[16:55:01] jgt1: has joined #ruby
[16:55:35] Trynemjoel: has joined #ruby
[16:56:22] jottr: has joined #ruby
[16:56:40] shevy: did you mean gem strikes again
[16:56:40] _blizzy_: may anyone help me figure out why when ruby reaches line 10, it says "not in zip format"? https://gist.github.com/NotBlizzard/1e7df0aea2b595cb7607 I guess the file isn't downloading correctly.
[16:56:43] shevy: NoMethodError: undefined method `comment' for Colours:Module
[16:56:43] shevy: Did you mean? ecomment
[16:57:32] adaedra: zip != gzip
[16:57:50] _blizzy_: so is there anyway to open a zip using the standard library?
[16:58:11] arup_r: has joined #ruby
[16:58:25] pontiki: compiling!!
[16:59:02] sdothum: has joined #ruby
[16:59:59] tildes: has joined #ruby
[17:00:00] Ox0dea: _blizzy_: Just use Rubyzip?
[17:00:23] _blizzy_: Ox0dea, for reasons, I'd rather try to make this without using 3rd party gems.
[17:00:48] Ox0dea: _blizzy_: Then you get to do some learning.
[17:00:55] arup_r: has joined #ruby
[17:01:28] rab00f: has joined #ruby
[17:01:55] chouhoulis: has joined #ruby
[17:02:03] shevy: pontiki which version have you picked?
[17:02:24] arup_r: has joined #ruby
[17:02:45] Trynemjoel: has joined #ruby
[17:03:27] arup_r: has joined #ruby
[17:03:47] roshanavand: has joined #ruby
[17:04:19] pontiki: the fans are running!
[17:04:24] SamGerber: has joined #ruby
[17:04:33] _blizzy_: hmm, IDK where to even start.
[17:04:38] arup_r: has joined #ruby
[17:04:43] pontiki: _blizzy_: is there some reason you refuse to use the Zlib::Inflate methods?
[17:05:07] _blizzy_: pontiki, no, but I didn't know about that until now. thanks.
[17:05:21] pontiki: it's in the same library...
[17:06:02] arup_r: has joined #ruby
[17:06:43] SamGerber: has joined #ruby
[17:06:50] arup_r: has joined #ruby
[17:07:06] anisha: has joined #ruby
[17:07:20] xcesariox: has joined #ruby
[17:07:34] roshanav_: has joined #ruby
[17:07:53] arup_r: has joined #ruby
[17:10:01] arup_r: has joined #ruby
[17:10:35] shevy: needle in a haystack, needle in a haaaaaaystack!
[17:10:45] _blizzy_: pontiki, https://gist.github.com/NotBlizzard/1d2a488f4ae39effa8ec , but now I get buffer error. I've tried changing read to read(10), no prevail.
[17:11:16] senayar: has joined #ruby
[17:11:19] dwfait: has joined #ruby
[17:11:31] arup_r: has joined #ruby
[17:11:57] _blizzy_: also, sorry, I didn't notice Zlib::Inflate in the Zlib library.
[17:12:01] Papierkorb: _blizzy_: ZLib only handles zlib compressed data, not zip archives ...
[17:12:20] _blizzy_: so how would I open a zip file using the standard library ....
[17:12:27] Papierkorb: _blizzy_: 'ZIP' is a file format. It's like you're trying to open a word document with notepad.exe
[17:12:31] _blizzy_: I can't find anything on Google.
[17:12:39] Papierkorb: _blizzy_: by implementing a ZIP-file reader
[17:13:00] arup_r: has joined #ruby
[17:13:13] arup_r: has joined #ruby
[17:13:19] Papierkorb: (Or using rubyzip of course)
[17:14:12] ElFerna: has joined #ruby
[17:14:31] RegulationD: has joined #ruby
[17:14:42] _blizzy_: ugh, screw it, I'll use rubyzip. thanks everyone.
[17:18:01] aryaching: has joined #ruby
[17:19:37] PaulCapestany: has joined #ruby
[17:21:06] sp1rs: has joined #ruby
[17:22:08] Trynemjoel: has joined #ruby
[17:23:22] CloCkWeRX: has left #ruby: ()
[17:24:13] kster: has joined #ruby
[17:24:24] kster: morning. anyone around for a noob ruby question?
[17:24:36] havenwood: kster: Ask away!
[17:24:38] SamGerber: has joined #ruby
[17:25:21] roshanavand: has joined #ruby
[17:25:51] colegatron: has joined #ruby
[17:26:01] lacuna: has joined #ruby
[17:26:01] lacuna: has joined #ruby
[17:26:26] kster: i'm an experienced dev. but complete ruby noob. but alas i had a ruby project dropped in my lap and i don't know what's going on with it. i started tinkering with the files but i screwd it up somehow. now whenever i execute the program, i get an error referring to a piece of code i modified but already reverted
[17:26:40] Ox0dea: Please tell us more.
[17:26:51] havenwood: Feed us code.
[17:26:58] kster: the command i execute to start the program is: bundle exec rake dl:start:all
[17:27:09] Ox0dea: And the error?
[17:27:47] kster: the error is methodnotfound "short_order_id" i was trying to add a new property to an order object
[17:27:51] kster: but apparently did it wrong
[17:28:23] Ox0dea: And now the code. :P
[17:28:43] kster: well..let me pull up the part i did edit
[17:30:06] kster: https://gist.github.com/GU-Chicago/f38273872dd6251faef4
[17:30:20] FooMunki: has joined #ruby
[17:30:47] wolffles: has joined #ruby
[17:30:55] kster: i was thinking it was just adding a member property
[17:31:12] kster: but apparently not. i think it's actually referring to a mysql model instead
[17:32:11] yqt: has joined #ruby
[17:32:20] kster: the inheritence isn't that clear to me. this file assets.rb inherits from downloader:Asset
[17:32:28] dwfait: Could be that you need to migrate / do a db:schema:load if it???s a Rails model. The attributes on a model are loaded in from the database, so if your database is out of sync, your model won???t have the attribute on it.
[17:32:53] kster: and downloader:asset inherits from asset... which i dunno even know where that is
[17:34:00] kster: so i should update the db schema, add a new field short_order_id then run...what? bundle exec rake db:schema:load ?
[17:35:04] dwfait: Are you trying to add the new short_order_id field on the model?
[17:35:31] dwfait: If so, you???ll need to write a rails migration to do so and run it before your code will work: http://edgeguides.rubyonrails.org/active_record_migrations.html
[17:35:31] PedramT: has joined #ruby
[17:35:41] kster: what i would like is just a member property that's a truncated version of the full order_id
[17:35:52] kster: i don't need to necessarily have a db field for it
[17:36:09] kster: but if new db field makes it easier...then sure why not
[17:36:20] dwfait: Then you could just have a method in the model which truncates it on access (a getter)
[17:36:38] dwfait: No need to assign it that way.
[17:37:22] kster: are getters implicit across the board? i just didn't even see a decleartion for getters
[17:37:46] dwfait: For fields on the database, yes, they???re explicit
[17:38:01] dwfait: but if you want one for something calculated, not stored on the database, it???s quite easy
[17:38:57] kster: so if i... def short_order_id self.order_id.split('-')[1] that should do it...
[17:39:07] kster: sounds good....
[17:39:17] Begi: has joined #ruby
[17:39:27] dwfait: Yup, stick that in your model and you should be good.
[17:39:43] adgtl: has joined #ruby
[17:39:45] dwfait: Don???t need the self. there though I think.
[17:39:52] kster: do i still need the rails migration?
[17:40:09] kalopsian: has joined #ruby
[17:40:11] dwfait: No, you???re not creating any changes to the database schema, so you???re good.
[17:40:24] kster: cause something's stuck in memory right now. even upon recompilation, it's still thinking there's a short_order_id referred
[17:40:31] kster: is there like a make clean equiv?
[17:40:31] dwfait: But you won???t be able to assign it like the way you are in your rake task.
[17:41:15] kster: ugh omg kid just spilled half gallon of water
[17:41:16] dwfait: No make clean, it???s an interpreted language with no ahead of time compilation. If there???s an issue, means there???s something still causing trouble in your code
[17:43:23] devoldmx: has joined #ruby
[17:45:15] andywojo: has joined #ruby
[17:45:22] pawnbox: has joined #ruby
[17:46:35] Pupeno: has joined #ruby
[17:47:13] robh71: has joined #ruby
[17:47:17] seitensei: has joined #ruby
[17:47:18] seitensei: has joined #ruby
[17:47:38] PedramT: has joined #ruby
[17:51:01] PedramT: has joined #ruby
[17:51:17] dwfait: Anyone have any idea why require 'mkmf'; have_func('rb_thread_fd_select') returns false for me in ruby 2.3?
[17:51:36] nertzy: has joined #ruby
[17:53:53] Ox0dea: dwfait: That's very strange.
[17:53:57] PedramT_: has joined #ruby
[17:54:49] sandstrom: has joined #ruby
[17:55:14] dwfait: It is. It???s causing native extensions to fail. It works fine on 2.3 installed with ruby-build, but when I compile ruby myself, it returns false.
[17:55:46] jgt1: has joined #ruby
[17:57:05] Ox0dea: dwfait: That function isn't even conditionally defined. :/
[18:00:51] PedramT: has joined #ruby
[18:02:38] chouhoulis: has joined #ruby
[18:02:58] tvw: has joined #ruby
[18:03:09] alphaatom: has joined #ruby
[18:03:16] norc: has joined #ruby
[18:04:44] jgt1: has joined #ruby
[18:04:57] robh71: has joined #ruby
[18:05:21] Ilyes512: has joined #ruby
[18:07:56] adgtl: has joined #ruby
[18:08:35] kster: dang....no good. still getting error
[18:08:41] kster: undefined method `short_order_id=' for #<Downloader::Core::Asset:0x00000004c567b0>
[18:09:08] kster: next line in error: /lib/downloader/core/asset.rb:56:in `init_attributes'
[18:09:23] JakFrist: has joined #ruby
[18:09:41] kster: that's....so odd since that line doesn't exist with short_order_id
[18:10:28] norc: kster: Since I just hopped in - are you using some kind of app preloader like Spring perhaps (Rails?)
[18:10:38] Pupeno: has joined #ruby
[18:10:46] norc: kster: Also are you sure it is the complete stack trace?
[18:10:50] kster: norc: i have no idea. i'm a complete ruby noob
[18:11:01] kster: there's much more detail
[18:11:17] kster: it just goes into the full stack
[18:11:31] norc: kster: Are you developing a Rails framework? Please post the related source code and the full stack trace in a gist please.
[18:11:56] dwfait: kster: we defined a getter, the short_order_id= is a setter that we haven???t defined
[18:12:11] dwfait: you don???t need to assign to the attribute, as the getter we created gets the value on the fly when called
[18:12:11] niko: has joined #ruby
[18:12:29] dwfait: so you can get rid of the line to assign to it in your rake task
[18:12:37] kster: dwfait, yea but....i'm not even sure why the error with the setter is even showing up?
[18:12:45] kster: i did. it's not even there anymore
[18:12:50] mjw56: has joined #ruby
[18:13:14] dwfait: Something is still trying to assign to that field from somewhere???can you put the stacktrace up in a gist?
[18:13:15] diegoviola: has joined #ruby
[18:13:28] kster: yea i'll do
[18:14:58] kster: https://gist.github.com/GU-Chicago/aba8960f958469603d7a
[18:15:28] adgtl: has joined #ruby
[18:16:55] dwfait: can you show the code of the `init_attributes' method in asset.rb?
[18:16:59] kster: this is nuts. i grepped for "short" in entire project folder...nothing
[18:17:27] pnbeast: has joined #ruby
[18:18:45] dwfait: Are you using spring / guard / any other Rails preloader?
[18:19:20] sonOfRa: has joined #ruby
[18:20:23] kster: ...don't think so? but don't really know
[18:20:36] kster2: has joined #ruby
[18:20:46] kster2: entire asset.rb file
[18:20:46] kster2: https://gist.github.com/anonymous/b48fe0ac6409f08d4da4
[18:21:04] kster2: lib/downloader/core/asset.rb that is
[18:22:18] yes`r: has joined #ruby
[18:22:21] trwyth: has joined #ruby
[18:23:11] stannard: has joined #ruby
[18:23:33] kster: ok ...this is running something other than what i'm looking at
[18:23:33] norc: kster2: Is this part of a Rails application?
[18:23:39] PaulCapestany: has joined #ruby
[18:23:55] kster: i just renamed the downloader/core/asset.rb file to asset2.rb it should have crapped out. . but it didn't
[18:24:42] kster: norc. how od i tell?
[18:24:46] kster: it's defeintley going to a mysql db
[18:25:02] norc: kster: You tell me... are you writing a Ruby on Rails application?
[18:25:19] kster: i got a ruby application dropped into my lap :P
[18:25:42] kster: support dev. it's the best *snicker*
[18:25:45] norc: kster: Look for the Gemfile in your project root directory, open it, and search for rails.
[18:26:08] kster: no mention of rails
[18:26:17] houhoulis: has joined #ruby
[18:26:18] kster: gem beanstalkd_view
[18:26:20] kster: gem mysql2
[18:26:26] kster: gem database_cleaner
[18:26:34] kster: get bluepill
[18:26:36] _blizzy_: geez, all the ruby 2 exe projects are dead-ish.
[18:26:39] norc: gist maybe?
[18:26:42] _blizzy_: guess I gotta write this in Go or something.
[18:26:51] kster: yea sure i'll put it up
[18:26:55] norc: Because if it somehow uses spring or zeus, you should probably restart that. ;-)
[18:27:21] kster2: https://gist.github.com/anonymous/f399bb20a5be6794794f
[18:27:22] norc: kster: Honestly though, we are not your tech support channel - we help people learn Ruby.
[18:27:29] norc: What you probably are looking for is a Ruby consultant.
[18:27:54] kster: quite understandable.
[18:28:01] arup_r: has joined #ruby
[18:28:12] kster: i'm just reaching out to anywhere for help.
[18:28:28] SamGerber: has joined #ruby
[18:28:49] norc: Shall we talk about an hourly rate?
[18:29:09] sev4252: has joined #ruby
[18:29:29] shevy: usually if you have to make modifications to a project before you can get it to run, it's not worth to continue investing more time into it
[18:29:47] kster: no offense man, i don't get paid enough to pay out of my pocket for consulting :)
[18:29:56] arup_r: has joined #ruby
[18:29:57] norc: Have your company pay for it then.
[18:30:14] kster: yea i'll have to take it up to big heads
[18:30:20] norc: Nothing is worse than you trying to fix something that you dont understand. It gives them the wrong impression they can task you with more of this.
[18:30:22] inanepenguin: has joined #ruby
[18:30:29] norc: While you just ending up not knowing what you are doing.
[18:31:05] arup_r: has joined #ruby
[18:31:16] kster: i'm not even normally in this area. i'm in the web applicaitons in php and coldfusion.
[18:31:37] kster: but hey...stuff gets broken, i'm the tech guy. this ruby was someone else's project
[18:32:02] norc: That is your chance to step up then.
[18:32:11] arup_r: has joined #ruby
[18:32:58] kster: i am trying to fix this problem. of course something that needed to be fixed 2 weeks ago. but that guy just done left on us
[18:33:07] arup_r: has joined #ruby
[18:33:20] norc: We are currently in the process of injecting lots of Ruby code across our IT infrastructure because of rapid prototyping - as part of this we looked for partners with Ruby developers - to have backup solutions in case I become unavailable.
[18:33:48] norc: kster: All the more reason to show them that you need a reliable partner. Because it becomes only worse if you take over.
[18:35:02] norc: kster: Mind my asking which City is your company located in_
[18:35:24] kster: if you can refer anyone, i'd be grateflu
[18:35:46] mdw: has joined #ruby
[18:35:48] stannard: has joined #ruby
[18:35:58] norc: Personally I don't know anyone from Chicago, but from what I hear there is plenty of Ruby and/or Rails freelancers around there.
[18:36:12] karapetyan: has joined #ruby
[18:36:18] norc: Other people here might know (or even be) someone
[18:36:41] Gnut: has joined #ruby
[18:37:25] sp1rs: has joined #ruby
[18:37:52] nkwsy: has joined #ruby
[18:38:48] _blizzy_: yay for ocra
[18:39:37] kster: well. for the moment, i'll just go back to taking a production snapshot and loading it up on a vm and keep poking at it
[18:39:38] kster: thanks guys
[18:39:50] DLSteve: has joined #ruby
[18:40:30] havenwood: _blizzy_: You might take a look at releasy as well.
[18:40:46] _blizzy_: havenwood, I did, but the last commit was like in 2014.
[18:41:23] sandstrom: has joined #ruby
[18:43:02] norc: _blizzy_: I still haven't tried it.
[18:43:11] norc: Is it really that decent?
[18:44:13] _blizzy_: norc, it's ok.
[18:45:07] norc: We are currently in the process of overhauling our server space, but are unsure which direction to pursue (We are heavily leavning towards Docker based provisioning)
[18:47:08] _blizzy_: I've never used Docker.
[18:48:05] SamGerber: has joined #ruby
[18:49:19] duckpuppy: has joined #ruby
[18:50:59] atomical: has joined #ruby
[18:51:31] domgetter: has joined #ruby
[18:55:55] _blizzy_: hmm, I need to find a list of precompiled binaries for windows
[18:58:36] queequeg2: has joined #ruby
[19:01:21] ElFerna: has joined #ruby
[19:01:33] sonOfRa: has joined #ruby
[19:02:50] TomPeed: has joined #ruby
[19:03:48] chouhoulis: has joined #ruby
[19:04:15] dingman: has joined #ruby
[19:06:18] asmodlol: has joined #ruby
[19:07:03] jgt1: has joined #ruby
[19:07:06] scottschecter: has joined #ruby
[19:07:23] tectonic: has joined #ruby
[19:18:03] alphaatom: has joined #ruby
[19:18:27] tmtwd: has joined #ruby
[19:18:31] rodfersou: has joined #ruby
[19:19:43] skcin7: has joined #ruby
[19:23:55] Rodya_: has joined #ruby
[19:24:06] jbrhbr: has joined #ruby
[19:26:01] atomical_: has joined #ruby
[19:32:30] ruid: has joined #ruby
[19:33:05] Rodya_: has joined #ruby
[19:33:59] ta: has joined #ruby
[19:34:28] Dimik: has joined #ruby
[19:36:13] alphaatom: has joined #ruby
[19:36:35] stannard: has joined #ruby
[19:36:40] rickmasta: has joined #ruby
[19:40:44] puria: has joined #ruby
[19:41:06] pawnbox: has joined #ruby
[19:41:31] nkwsy: has joined #ruby
[19:42:09] asmodlol: has joined #ruby
[19:42:11] bause: has joined #ruby
[19:44:17] dkelman: has joined #ruby
[19:44:44] Axsuul: has joined #ruby
[19:45:55] Scripore: has joined #ruby
[19:46:05] pawnbox: has joined #ruby
[19:46:30] dkelman: does anyone here know how to open an airplay socket in ruby?
[19:46:44] dkelman: and make it discoverable?
[19:47:21] norc: dkelman: https://nto.github.io/AirPlay.html
[19:47:24] Zarthus: Is it possible to create an OpenStruct that does not call k = k.to_sym? I'm using `OpenStruct.new('a' => 'b').to_h.to_yaml' but am not entirely fond of the ":a: b" syntax and would prefer if the leading colon is gone.
[19:47:54] Zarthus: I could do some string replacements but none of the solutions I can think of seem to be worth the readability / familiarity it might offer.
[19:48:07] seitensei: has joined #ruby
[19:49:01] norc: Zarthus: You could reimplement (or use if you have AS as a dependency already) stringify_keys and symbolize_keys
[19:49:04] dkelman: norc: Thanks!!
[19:50:52] Zarthus: norc: I'll have a look at it. I'm currently experimenting with overriding to_h
[19:50:57] norc: Zarthus: Dont.
[19:51:08] norc: Doing that is likely going to break things.
[19:51:29] Zarthus: Even if I specifically have a different class that extends OpenStruct?
[19:54:57] shevy: monkey patching might work
[19:56:12] shevy: I think the conversion is done because method names are kept as symbols
[19:56:20] mdw: has joined #ruby
[19:56:20] shevy: >> OpenStruct.new('a' => 'b').to_h
[19:56:21] ruboto: shevy # => uninitialized constant OpenStruct (NameError) ...check link for more (https://eval.in/493824)
[19:56:32] shevy: ruboto is not a xmasbot!
[19:56:46] Zarthus: shevy: it is, OpenStruct calls k = k.to_sym in OpenStruct.new()
[19:57:31] Zarthus: which is great, but when outputting it as a yaml file I find it just looks ugly and might even confuse users.
[19:58:01] Ox0dea: has joined #ruby
[19:58:37] Ox0dea: Zarthus: Symbol keys are part of the YAML spec.
[19:58:52] bause: has joined #ruby
[19:58:57] Ox0dea: Any conforming implementation should handle them "sanely", and users should be aware of this feature.
[19:59:06] Ox0dea: Don't coddle the lowest common denominator.
[20:00:47] Zarthus: Ox0dea: I'd find it less of a problem if it was consistent. But:
[20:00:48] Zarthus: >> require 'ostruct'; OpenStruct.new('a' => {'b' => 'c'}).to_h
[20:00:49] ruboto: Zarthus # => {:a=>{"b"=>"c"}} (https://eval.in/493825)
[20:01:08] Ox0dea: That's not inconsistent.
[20:01:56] Zarthus: It'll make a YAML file only have symbols on the earliest indentation level, and the hashes proceeding that are not "symbolized"
[20:02:11] Zarthus: as writing it goes or manually editing, I'd say it's easier to keep it all the same.
[20:03:02] yqt: has joined #ruby
[20:03:37] shevy: >> require 'ostruct'; OpenStruct.new({'a' => {'b' => 'c'}}).to_h == {'a' => {'b' => 'c'}}
[20:03:38] ruboto: shevy # => false (https://eval.in/493826)
[20:04:28] chouhoulis: has joined #ruby
[20:04:42] shevy: is intended and documented behaviour though http://ruby-doc.org/stdlib-2.3.0/libdoc/ostruct/rdoc/OpenStruct.html#method-i-to_h - other than monkey patching you could try to report to ruby core but only hanmac here gets changes into ruby core :D
[20:05:17] shevy: perhaps you want an OriginalStruct that does not do automagic conversions
[20:05:38] Zarthus: In my personal opinion, it's either everything or nothing. And it's (probably) both easier and looks better to have no preceeding colon. If anything, I'd expect the YAML library to read and write them in as symbols at all times, but the yaml library also seems very undocumented as far it's available options go. But anything else would be a bit overkill for what I am writing.
[20:05:56] Papierkorb: Zarthus: Just convert the result hash in the form you want it
[20:06:08] shevy: Zarthus yeah it should be user-controllable
[20:06:08] chipotle: has joined #ruby
[20:06:30] Zarthus: Papierkorb: I'm currently experimenting with ActiveSupport's stringify_keys method
[20:06:31] Ox0dea: Zarthus: Are you sure you need OpenStruct?
[20:06:41] shevy: Zarthus but I don't think .to_yaml is at fault, it already is a symbol before .to_yaml
[20:07:07] Zarthus: Ox0dea: Absolutely sure? nope. I'm writing a configuration file class though, that loads in and stores in yaml
[20:07:21] Ox0dea: Zarthus: So what's wrong with a Hash?
[20:07:40] ur5us: has joined #ruby
[20:07:59] shevy: Zarthus haha I did about the same thing for a custom Configuration object that I would use :D
[20:07:59] Papierkorb: Zarthus: See the 'config' gem
[20:08:12] yfeldblum: has joined #ruby
[20:09:09] Papierkorb: Zarthus: oh, we're not in #RubyOnRails. You can get it to work however without rails, it also does not depend on active support. But I don't know if it supports writing configs
[20:09:49] norc: Zarthus: That method is like a 5 line method
[20:09:52] norc: So you can provide it zourself
[20:10:26] Zarthus: norc: I am,
[20:11:01] Ox0dea: norc: It should be one.
[20:11:29] shevy: Zarthus can indeed provite it for zourself
[20:11:53] Zarthus: Ox0dea: Haven't experimented with it. It's probably entirely possible to do it with a hash as well. I can't say I've experimented sufficiently with either approach to give a concise answer to your question.
[20:12:12] Ox0dea: Zarthus: Well, what made you reach for OpenStruct in the first place?
[20:12:26] Zarthus: Somebody else used it in their configuration class.
[20:12:43] Ox0dea: OpenStruct is for when you want to say `foo.bar` instead of `foo[:bar]`.
[20:12:49] Ox0dea: It's a cosmetic library.
[20:13:10] ruu_: has joined #ruby
[20:13:44] shevy: lipstick on a pig
[20:13:56] Ox0dea: Zarthus: Tada! https://eval.in/493829
[20:14:43] symm-: has joined #ruby
[20:15:32] Ox0dea: Never mind.
[20:15:59] Zarthus: I didn't want to override initialize without calling super(), seemed like a bad thing to do on ruby-provided libraries
[20:16:08] Zarthus: If something changes in the future it'll possibly break.
[20:16:49] Ox0dea: It's already borked. The getters key into `@table` with Symbols.
[20:16:49] norc: Ox0dea: Honestly, somehow I expected more in 2.3 :(
[20:17:14] shevy: ACTION fetches popcorn
[20:17:17] Ox0dea: norc: I'd've quite liked `%d[1 2 3]`, but I didn't figure out how to implement it in time. :(
[20:17:20] norc: I was a bit disappointed when all that was new was the neat #to_binary and #load from RubyVM::IS
[20:18:02] nunchuck: has joined #ruby
[20:18:05] Ox0dea: norc: I bet you'd like Perl 6.
[20:18:06] norc: Ox0dea: What is that syntax supposed to do?
[20:18:10] Ox0dea: norc: The obvious?
[20:18:48] norc: Ox0dea: Im asking because I prefer not to guess.
[20:18:58] Ox0dea: We have %w for array of "words" and %i for array of "interns"; why not %d for array of numerics?
[20:19:15] norc: See, I never even know that the letters had meanings. ;-)
[20:19:41] norc: I thought they were picked due to a resemblance to Kanji characters.
[20:19:48] norc: You knew know.
[20:19:54] norc: *You never know.
[20:19:55] Ox0dea: %d[2ri 3.14 4e2].all?(Numeric) #=> true
[20:20:08] Ox0dea: That should be made a reality.
[20:20:30] norc: Well, at least we have #dig now.
[20:20:46] shevy: <norc> I thought they were picked due to a resemblance to Kanji characters.
[20:20:52] shevy: ^^^ one more for my epic IRC collection!
[20:21:10] Ox0dea: norc: %i[have some keys].reduce(hash, :[]) rescue nil
[20:21:18] ur5us: has joined #ruby
[20:21:35] norc: Im not sure I like Exceptions for that...
[20:21:42] norc: But that may just be me.
[20:23:08] Ox0dea: Hm... it'd be nice if there were a way to stick safe navigation semantics in there.
[20:24:03] norc: Ox0dea: I have one for you though, you might have a way to solve this one (I couldnt see a way)
[20:24:11] BrunoSaboia: has joined #ruby
[20:24:24] Ox0dea: ACTION whips out Fiddle.
[20:26:54] norc: No, just wrap stdlib.
[20:26:55] norc: https://gist.github.com/anonymous/25a92726d224330529e5
[20:27:12] norc: Any more elegant way that you can see_
[20:27:14] stannard: has joined #ruby
[20:27:19] hahuang61: has joined #ruby
[20:27:51] norc: (It basically is a combination of limiting parameters to those specified, and mapping them to other names)
[20:27:54] atomical: has joined #ruby
[20:28:14] norc: Could have simply used strong params for one part, and did the other with a simple map, but that was boring.
[20:29:49] devoldmx: has joined #ruby
[20:30:08] xblade: has joined #ruby
[20:30:13] kalopsian: has joined #ruby
[20:30:20] yfeldblum: has joined #ruby
[20:31:00] Ox0dea: norc: Is this you? http://codenoble.com/blog/transforming-hashes-a-refactoring-story/
[20:31:43] norc: I wish I had the time to write on blogs.
[20:32:13] Ox0dea: Oh. Well, that article is all about various ways to do this sort of thing.
[20:32:24] Ox0dea: Yours looks fine, though.
[20:32:50] pontiki: hi, again, after a morning nap that stretched to the afternoon
[20:33:30] pontiki: now installing 2.3 on the host machine
[20:33:31] dtordable: has joined #ruby
[20:33:56] dtordable: has joined #ruby
[20:35:04] norc: Ox0dea: There is a couple gems linked in that blogs comment, I think Ill check those out.
[20:35:18] norc: I actually do this pattern in a few places where I have to work with our LDAP servers.
[20:35:58] shevy: pontiki lol
[20:36:12] shevy: pontiki that's actually funny... I thought you finished a long time ago with it by now
[20:36:51] atomical: has joined #ruby
[20:37:18] norc: https://launchpad.net/~brightbox/+archive/ubuntu/ruby-ng
[20:37:22] norc: Still no 2.3
[20:37:24] norc: What is this
[20:37:30] ur5us: has joined #ruby
[20:37:34] pontiki: well, the VM boxes, yeah. but then i started to poke at some other stuff, and some other stuff, and... and then i got a bit tired. old age does that you know
[20:37:43] marr: has joined #ruby
[20:38:47] pontiki: norc, is the NG in that name for nginx or angular?
[20:39:01] wolffles: has joined #ruby
[20:39:34] sandstrom: has joined #ruby
[20:40:07] Ox0dea: pontiki: "NG" almost always indicates "next generation".
[20:40:08] norc: pontiki: Next generation, because Ubuntu has this old Debian disease where they add packages as quickly as Perl releases new versions.
[20:40:19] Ox0dea: Sick burn.
[20:41:42] xblade: has joined #ruby
[20:42:58] pdoherty: has joined #ruby
[20:45:28] bradleyprice: has joined #ruby
[20:45:32] akem: has joined #ruby
[20:47:10] solocshaw: has joined #ruby
[20:47:30] dwfait: has joined #ruby
[20:47:43] atomical_: has joined #ruby
[20:48:37] akem: has joined #ruby
[20:50:04] duckpuppy: has joined #ruby
[20:51:38] agit0: has joined #ruby
[20:54:40] ChameleonSix: has joined #ruby
[20:54:52] ChameleonSix: how do i define string length
[20:54:57] Ox0dea: ChameleonSix: Wat.
[20:55:08] ChameleonSix: for example if something is longer than letters in string
[20:55:18] wolffles: string.length
[20:55:21] ChameleonSix: array = ["Tree", "House"] house = array.select { |key| key > 4 }
[20:55:32] ChameleonSix: i want key to be longer than 4 letters
[20:55:39] Ox0dea: ChameleonSix: Do you know about methods?
[20:55:56] Ox0dea: ChameleonSix: No, like #select there. That's a method on Array.
[20:56:02] Ox0dea: String also has some methods.
[20:56:12] Ox0dea: What do you reckon the one that tells you how long the string is is called?
[20:56:30] Ox0dea: Well done.
[20:57:46] wolffles: so i have a line of code that works fine when i use { } but when ???do end??? is used it returns #enumerator
[20:57:58] Ox0dea: wolffles: {} binds a little more tightly.
[20:57:58] blackmesa: has joined #ruby
[20:58:31] kalopsian: has joined #ruby
[20:58:32] norc: Ox0dea: That sounds cuddly.
[20:58:44] Ox0dea: wolffles: https://eval.in/493835
[20:59:05] Ox0dea: In the second case, the block is being passed to `p` (and ignored).
[20:59:24] Axsuul: has joined #ruby
[21:00:18] _seanc_: has joined #ruby
[21:00:21] wolffles: so is it just a general rule that { } is a safer bet?
[21:00:31] Ox0dea: No. Use Weirich's rule.
[21:00:50] Ox0dea: http://devblog.avdi.org/2011/07/26/the-procedurefunction-block-convention-in-ruby/
[21:01:33] Ox0dea: If you follow that convention, you'll never be printing the result of a `do/end`, so you'll be "safe".
[21:02:05] ChameleonSix: ruby vs python*
[21:02:14] norc: The problem though stems from leaving optional parens Ox0dea.
[21:02:24] norc: It is the mother of 95% syntax errors I see here.
[21:02:26] poguez_: has joined #ruby
[21:02:28] Ox0dea: Optional parens best parens.
[21:03:15] mdw: has joined #ruby
[21:03:19] norc: Do you actually follow that style guide?
[21:03:23] wolffles: master debaters :P
[21:04:27] atomical: has joined #ruby
[21:04:52] Ox0dea: norc: Weirich's rule? Yes.
[21:05:14] chouhoulis: has joined #ruby
[21:05:21] norc: Well, I was just surprised you called it by its "author" - made me wonder whether you and that style guide are best buddies.
[21:05:22] kubapol: has joined #ruby
[21:05:36] Ox0dea: Just deference to a good man lost, really.
[21:05:42] norc: Fair enough.
[21:06:10] norc: >> 1 if 1 if 1 if
[21:06:12] ruboto: norc # => /tmp/execpad-7651d14240fb/source-7651d14240fb:3: syntax error, unexpected keyword_rescue ...check link for more (https://eval.in/493837)
[21:06:15] norc: >> 1 if 1 if 1 if 1
[21:06:16] ruboto: norc # => 1 (https://eval.in/493838)
[21:06:21] norc: Interesting.
[21:06:31] Ox0dea: >> defined? defined? defined?
[21:06:32] ruboto: Ox0dea # => /tmp/execpad-35a80baac7f8/source-35a80baac7f8:3: syntax error, unexpected keyword_rescue ...check link for more (https://eval.in/493839)
[21:06:33] Ox0dea: >> defined? defined? defined? 1
[21:06:34] ruboto: Ox0dea # => "expression" (https://eval.in/493840)
[21:06:37] Ox0dea: Interesting.
[21:07:28] Mia: has joined #ruby
[21:07:28] Mia: has joined #ruby
[21:07:31] blub: what an ugly rule
[21:08:17] norc: Ox0dea: Is this a parser thing?
[21:08:37] norc: That is the only way I can see this being possible.
[21:09:07] Ox0dea: norc: `defined?` is syntax, yes.
[21:11:27] Ox0dea: norc: https://eval.in/493852
[21:11:33] Ox0dea: One of the weirdest things in Ruby, I reckon.
[21:11:44] colegatron: has joined #ruby
[21:11:46] norc: Ox0dea: Im looking at the parser at the moment to figure this out.
[21:13:16] cassioscabral: has joined #ruby
[21:14:59] norc: Ox0dea: Ah no its in the compiler. :)
[21:15:16] norc: https://github.com/ruby/ruby/blob/trunk/compile.c#L5762-L5782
[21:15:17] Ox0dea: norc: In any case, `defined?` is most definitely a keyword.
[21:15:30] norc: Ox0dea: Sure, but it gets just inserted as a node in the AST.
[21:17:30] norc: >> defined? _=0
[21:17:31] ruboto: norc # => "assignment" (https://eval.in/493853)
[21:17:50] Ox0dea: norc: I did that too. :P
[21:18:46] norc: Ox0dea: Let me guess, you did some defined? _=$$ shenanigans to obtain a useful string for some obfuscated Ruby code?
[21:19:13] Ox0dea: norc: Nah, I'd just never seen `defined?` return "assignment".
[21:19:27] Ox0dea: `defined?` has way too many letters for it to be useful for my purposes in the suggested regard.
[21:20:00] Ox0dea: You might be onto something, though. :)
[21:20:02] norc: Though to the unknowing it would be a real surprise, seeing as anyone would expect this method to just return true or false.
[21:20:15] Ox0dea: It isn't a method.
[21:20:25] norc: Heh, was aobut to correct myself.
[21:20:27] norc: You beat me to it.
[21:21:04] Exce1l: has joined #ruby
[21:21:26] Ox0dea: >> C = c = Class.new; [defined? c, defined? C]
[21:21:27] ruboto: Ox0dea # => ["local-variable", "constant"] (https://eval.in/493854)
[21:21:55] Ox0dea: I bet eam would like to be made aware of `defined?`'s ability to look like a paren-less method invocation in an Array literal.
[21:22:55] norc: Ox0dea: Honestly that thing is about as disgusting as Kernel#test
[21:23:08] norc: Just doesn't fit very well.
[21:23:16] Ox0dea: I concur.
[21:25:27] jbrhbr: has joined #ruby
[21:26:51] wolffles: has joined #ruby
[21:27:14] norc: >> defined? _=0 unless false
[21:27:15] ruboto: norc # => "assignment" (https://eval.in/493870)
[21:27:17] cassioscabral: has joined #ruby
[21:27:19] norc: Now this is bizarre.
[21:27:26] norc: Or no it isnt.
[21:27:32] norc: >> defined?(_=0 unless false)
[21:27:33] ruboto: norc # => /tmp/execpad-a8e0975bda45/source-a8e0975bda45:2: syntax error, unexpected modifier_unless, expecting ...check link for more (https://eval.in/493871)
[21:27:52] norc: This is.
[21:28:16] norc: Though I suppose you cannot use a trailing conditional in an expression like that?
[21:28:39] norc: >> a = (1 unless false);
[21:28:40] ruboto: norc # => 1 (https://eval.in/493873)
[21:28:42] norc: No apparently you can mmm.
[21:28:52] norc: >> a = puts(1 unless false);
[21:28:53] ruboto: norc # => /tmp/execpad-2ad5262b7c57/source-2ad5262b7c57:2: syntax error, unexpected modifier_unless, expecting ...check link for more (https://eval.in/493874)
[21:28:56] norc: No you cant.
[21:29:06] norc: Why is that
[21:29:07] Ox0dea: Looks like a bug to me?
[21:29:21] Ox0dea: But to what should it evaluate?
[21:29:59] Ox0dea: Hmm, `defined?` having a conditional evaluation seems weird.
[21:30:17] Ox0dea: It *should*, I suppose, but it'd still be weird.
[21:30:27] havenwood: >> a = puts((1 unless false))
[21:30:28] ruboto: havenwood # => 1 ...check link for more (https://eval.in/493875)
[21:30:37] norc: Ox0dea: That is the thing - now that I have written a patch there I know that conditional gets optimized away entirely.
[21:30:40] Ox0dea: havenwood: `defined?` is not a method.
[21:30:48] norc: Ox0dea: Which means that should actually evaluate to "assignment"
[21:30:54] norc: Which would be irritating.
[21:31:04] Ox0dea: Let's forget `defined?` is a thing.
[21:31:08] norc: No lets not!
[21:31:14] norc: This has just become too much fun!
[21:31:37] Ox0dea: >> Complex.constants nil # norc
[21:31:38] ruboto: Ox0dea # => [:compatible, :I] (https://eval.in/493876)
[21:31:49] Ox0dea: How might I get `defined?` to tell me that that first one is a constant?
[21:32:02] Ox0dea: I can't even think how to *try* to do it from C.
[21:32:17] norc: >> defined? Kernel
[21:32:18] ruboto: norc # => "constant" (https://eval.in/493878)
[21:32:37] Ox0dea: That's a regular-ol' constant, though. I want the weird one.
[21:32:55] ta: has joined #ruby
[21:32:56] Ox0dea: It starts with a minuscule.
[21:33:30] Ox0dea: We can't access it with `Complex::compatible`, but it's definitely there and definitely a constant.
[21:33:55] mjw56_: has joined #ruby
[21:34:11] Ox0dea: https://github.com/ruby/ruby/blob/trunk/complex.c#L2230
[21:34:14] Ox0dea: It looks so suspicious.
[21:34:39] norc: Ox0dea: Best part is the trailing comment /* :nodoc: */
[21:34:59] norc: "This might look suspicious, and that is precisely why we are documenting that we are not documenting this"
[21:35:25] Nightmare: has joined #ruby
[21:37:04] davedev24: has joined #ruby
[21:37:21] xcesariox: has joined #ruby
[21:38:01] Yzguy: has joined #ruby
[21:38:16] pawnbox: has joined #ruby
[21:38:28] fantazo: has joined #ruby
[21:38:52] norc: Ox0dea: My example was a direct example of how useless defined? is though with parse time optimizations. The AST has become a completely meaningless structure since it neither reflects on the source code, nor on the bytecode.
[21:39:09] gizless: has joined #ruby
[21:39:21] norc: I dont see how defined? can know this to be a constant.
[21:39:41] norc: Even if you could use Complex::compatible that would just look like a method call
[21:39:59] norc: (Which still bugs me that its used for method dispatch)
[21:49:00] seitensei: has joined #ruby
[21:51:50] atomical_: has joined #ruby
[21:53:42] dr3w: has joined #ruby
[21:55:01] atomical_: has joined #ruby
[21:55:34] mezcan: has joined #ruby
[21:56:03] B1n4r10: has joined #ruby
[21:56:16] davedev24: has joined #ruby
[21:56:34] bauruine: has joined #ruby
[21:56:52] Rodya_: has joined #ruby
[21:57:31] vikas027: has joined #ruby
[21:57:51] asmodlol: has joined #ruby
[21:58:20] blackgoat: has joined #ruby
[21:58:21] rgtk: has joined #ruby
[21:58:56] stannard: has joined #ruby
[21:59:11] BSaboia: has joined #ruby
[21:59:14] alphaatom: has joined #ruby
[22:00:21] bauruine: has joined #ruby
[22:01:26] agit0: has joined #ruby
[22:05:20] yfeldblum: has joined #ruby
[22:06:01] chouhoulis: has joined #ruby
[22:06:09] havenwood: Maybe defined? should be limited to REPLs. ;P
[22:06:49] norc: havenwood: That makes no difference still.
[22:07:07] havenwood: norc: A difference in that it won't make it into code that's run for reals.
[22:07:52] norc: The issue is not that it runs the code, but that it can be pretty inaccurate because Ruby 2.0 happened.
[22:08:00] havenwood: Not that you see it anyways.
[22:08:03] pawnbox: has joined #ruby
[22:08:15] norc: I dont need any additional hand holding.
[22:08:29] havenwood: norc: That it's return value won't be relied upon. Sure, shoot your eye out, it's fun!
[22:08:43] lubekpl: has joined #ruby
[22:09:10] Ox0dea: Ruby: Every day is Look Like a Pirate Day.
[22:09:24] havenwood: Eye patch or you're not a Rubyist!
[22:09:49] norc: havenwood: I would just trash it entirely, together with ZSUPER
[22:09:54] norc: And Kernel#test.
[22:09:54] alphaatom: has joined #ruby
[22:10:01] havenwood: Does anyone use Kernel#test?
[22:10:21] al2o3-cr: has joined #ruby
[22:10:26] norc: Sure, since File#exists? is really cumbersome to use haha
[22:11:08] norc: Though trashing ZSUPEP would probably render the bulk of gems out there broken in a pinch.
[22:14:46] norc: Ox0dea: That constant seems completely inaccessible from Rubyland.
[22:15:02] Ox0dea: norc: It is.
[22:15:07] norc: Im guessing that is another dispatch hack that filters out lower cased constants?
[22:15:14] norc: For "internal constants" ?
[22:15:21] Ox0dea: Aye, same as for ivars.
[22:15:42] norc: Really interesting that it shows up then.
[22:16:01] norc: That is like blueballing kids with candy.
[22:16:46] Ox0dea: It's lame.
[22:17:23] norc: Well, we should be able to find the constant pretty quickly.
[22:19:24] Begi: has joined #ruby
[22:19:48] bensarz: has joined #ruby
[22:23:02] norc: Ox0dea: All we have to do is to Fiddle our way into the const_tbl of the rb_classext_struct and look through that hash table.
[22:24:01] kegan_: has joined #ruby
[22:26:16] Ox0dea: >> ObjectSpace.each_object(Class).select { |c| c.to_s[':c'] } # norc
[22:26:17] ruboto: Ox0dea # => [Complex::compatible, Rational::compatible] (https://eval.in/493925)
[22:26:19] Ox0dea: Or that. :)
[22:26:24] djbkd: has joined #ruby
[22:26:34] last_staff: has joined #ruby
[22:26:50] Ox0dea: There's also a NameError::message class for whatever reason.
[22:27:01] Ox0dea: Probably did_you_mean.
[22:29:13] KyloRenKillsSolo: has joined #ruby
[22:29:15] KyloRenKillsSolo: why did kylo ren kill han solo?
[22:30:16] ruboto: -o ruboto
[22:31:20] ChanServ: +o havenwood
[22:32:19] trwyth: has joined #ruby
[22:34:14] chipotle_: has joined #ruby
[22:34:39] havenwood: -b *!*@unaffiliated/ethicalhacker$#ruby-banned
[22:34:43] havenwood: +b *!*@*66.214.91.245
[22:35:01] darix: the * in front of the IP doesnt make much sense
[22:35:18] mary5030: has joined #ruby
[22:35:37] d0nn1e: has joined #ruby
[22:35:48] havenwood: darix: splat!
[22:35:53] havenwood: darix: like a bug...
[22:37:10] havenwood: havenwood kicked KyloRenKillsHanS: behavior is not conducive to the desired environment.
[22:38:30] dwfait: Would anyone have the time to help me figure out why a fresh ruby compile off trunk returns false for have_func('rb_thread_fd_select') ? I???ve hit a wall with this issue.
[22:40:23] ChameleonSix: has joined #ruby
[22:40:26] dkam__: has joined #ruby
[22:40:47] skcin7: has joined #ruby
[22:40:51] Guest49679: has joined #ruby
[22:40:54] Guest49679: https://doyle.ninja/limechat-crash.gif
[22:41:07] ur5us: has joined #ruby
[22:41:17] pwnd_nsfw: has joined #ruby
[22:41:17] Niall: has joined #ruby
[22:41:26] davedev24: has joined #ruby
[22:41:31] havenwood: -b *!*@122.155.138.106
[22:41:32] JordanDoyle: has joined #ruby
[22:41:33] rgtk: has joined #ruby
[22:41:58] adaedra: we're having fun in here I see
[22:42:10] yfeldblum: has joined #ruby
[22:42:39] Ox0dea: Guest49679: Why w4?
[22:42:58] thejamespinto: has joined #ruby
[22:43:07] havenwood: ACTION growls
[22:43:38] Ox0dea: ChameleonSix: You figured it out on your own last time.
[22:43:41] Guest49679: https://doyle.ninja/limechat-crash.gif
[22:43:45] Ox0dea: I bet you could do it again.
[22:43:46] juddey: has joined #ruby
[22:43:53] ChameleonSix: I wont figure this out
[22:43:56] ur5us: has joined #ruby
[22:43:58] Guest49679: has left #ruby: ()
[22:44:02] davedev24: has joined #ruby
[22:44:07] Exce1l: has left #ruby: ()
[22:44:07] ChameleonSix: How do i make a script that opens my webcam via skype
[22:44:25] adaedra: ChameleonSix: what about you ask sensible questions?
[22:44:45] ChameleonSix: How do i access the program register
[22:45:00] adaedra: Do you even know what you're talking about?
[22:45:01] havenwood: ChameleonSix: Do you have a Ruby question?
[22:45:08] Ox0dea: ChameleonSix: Are you tired?
[22:45:18] ChameleonSix: I coded all day
[22:45:22] zenlot2: has joined #ruby
[22:45:22] Ox0dea: Prove it.
[22:45:41] ChameleonSix: That would be hard since im on phone now
[22:45:53] havenwood: ChameleonSix: Do you have a Ruby question?
[22:45:55] ChameleonSix: I was here few hours ago
[22:46:05] ChameleonSix: That is a ruby question
[22:46:11] ur5us: has joined #ruby
[22:46:12] havenwood: !kick ChameleonSix http://ruby-community.com/pages/user_rules#rule_2_3
[22:46:13] ruboto: ruboto kicked ChameleonSix:
[22:46:13] ruboto: -o ruboto
[22:46:20] hakunin: has joined #ruby
[22:46:30] ChameleonSix: has joined #ruby
[22:46:38] ChameleonSix: You kicked me for no reason
[22:46:56] pontiki: i know it's ridiculous of me for not having seen star wars VII eighteen times already, but now i'm really fucking sad
[22:47:09] havenwood: ChameleonSix: You can discuss in #ruby-banned if you prefer. Otherwise ask Ruby-related questions and do your research first.
[22:47:26] adaedra: ?offtopic pontiki
[22:47:26] ruboto: pontiki, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[22:47:29] Ox0dea: pontiki: Had you *really* not had it spoiled yet?
[22:47:39] hahuang61: has joined #ruby
[22:47:46] pontiki: has left #ruby: (""Poets have been mysteriously silent on the subject of cheese" -- G.K.Chesterson")
[22:47:49] ChameleonSix: You don't need to ban me
[22:48:05] ChameleonSix: Im a nice guy
[22:48:19] adaedra: That's what will happen if you keep asking random things without prior research.
[22:49:01] ChameleonSix: Where should i ask that
[22:49:10] rkazak: has joined #ruby
[22:49:21] ChameleonSix: Hmm #general programming
[22:49:30] adaedra: I'm still not sure you really know what you're talking about.
[22:49:33] havenwood: !ban ChameleonSix !T 10m "This isn't a general help channel."
[22:49:37] ChanServ: +b ChameleonSix!*@*
[22:49:37] ChanServ: ChanServ kicked ChameleonSix: is banned from this channel
[22:50:07] JordanDoyle: https://doyle.ninja/limechat-crash.gif
[22:50:21] adaedra: adaedra kicked JordanDoyle: no.
[22:50:26] ur5us: has joined #ruby
[22:50:26] davedev24: has joined #ruby
[22:50:31] JordanDoyle: has joined #ruby
[22:50:32] dkelman: has joined #ruby
[22:50:48] ahhh: has joined #ruby
[22:50:49] duckpuppy: has joined #ruby
[22:50:50] ahhh: https://doyle.ninja/limechat-crash.gif
[22:50:59] hakunin: has joined #ruby
[22:51:01] ahhh: has left #ruby: ()
[22:51:07] ur5us: has joined #ruby
[22:51:11] davedev24: has joined #ruby
[22:51:44] thejamespinto: has joined #ruby
[22:51:52] havenwood: -b *!*@*66.214.91.245
[22:52:29] rgtk: has joined #ruby
[22:52:42] dkam___: has joined #ruby
[22:56:58] dr3w: has joined #ruby
[22:58:21] dwfait: have_header(???ruby/intern.h???) returns true, which is where rb_thread_fd_select is defined. make install correctly placed it in /usr/local/include/ruby-2.4.0/ruby.
[22:58:28] pawnbox: has joined #ruby
[22:59:33] Ox0dea: dwfait: The only relevant tidbit I can find is that that function used to be called rb_thread_select().
[22:59:34] ChanServ: -b ChameleonSix!*@*
[22:59:40] JordanDoyle: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[22:59:42] trwyth: has joined #ruby
[22:59:47] dwfait: Yeah, pre 1.9
[23:00:12] Ox0dea: Is it possible there are demons in your machine?
[23:00:21] dwfait: Quite possible
[23:00:44] adaedra: Ain't gonna be easy to debug.
[23:02:34] dwfait: Yeah, I???ve tried digging into have_func in lib/mkmf.rb. It???s attempting to link a program it generates to find out if the symbols are there. Quite ingenious, but as you said, not easy to debug.
[23:02:59] ChanServ: -o havenwood
[23:03:08] guideX: has left #ruby: ()
[23:03:14] dwfait: My only hunch at the moment is something on my PATH isn???t quite right
[23:04:55] adaedra: -o adaedra
[23:06:43] chouhoulis: has joined #ruby
[23:09:23] aspire: has joined #ruby
[23:10:24] DoubleMalt: has joined #ruby
[23:10:31] ahhh: has joined #ruby
[23:12:21] spleeze: has joined #ruby
[23:12:24] ChameleonSix: has joined #ruby
[23:12:41] ChameleonSix: I got a ruby question
[23:12:53] ruid: has joined #ruby
[23:13:00] ChameleonSix: (You don't need to insta ban someone)
[23:13:00] havenwood: ChameleonSix: Don't ask to ask, just ask.
[23:13:13] lenwood: has joined #ruby
[23:13:14] ChameleonSix: How do i make a script to press keyboard buttons
[23:13:43] havenwood: ChameleonSix: Please use a single line instead of hitting "return" so often.
[23:13:50] adaedra: What is your goal?
[23:14:31] havenwood: ChameleonSix: require 'io/console'; STDIN.getch
[23:14:45] ta: has joined #ruby
[23:14:50] ChameleonSix: My goal is to press P button 10times
[23:14:57] ChameleonSix: As fast as possible
[23:15:03] Ox0dea: ChameleonSix: Why Ruby?
[23:15:06] adaedra: To do what?
[23:15:09] havenwood: ChameleonSix: https://github.com/nobu/io-console#synopsis
[23:15:11] ChameleonSix: Cause i know ruby
[23:15:12] Ox0dea: adaedra: To cheat at some game.
[23:15:21] iszak: sounds legit
[23:15:24] havenwood: ChameleonSix: No Lols.
[23:15:35] Ox0dea: ChameleonSix: No affirmations.
[23:15:47] adaedra: Ox0dea: sssh, I want them to tell it.
[23:16:11] shevy: ChameleonSix did you already write some ruby code
[23:16:11] djbkd: has joined #ruby
[23:16:22] Ox0dea: ChameleonSix: OS?
[23:16:36] ChameleonSix: I have kali on laptop
[23:16:47] ChameleonSix: And windows 10 on pc
[23:17:03] Ox0dea: ChameleonSix: while:; xdotool key p; done
[23:17:04] ChameleonSix: Kali is a linux distro
[23:17:18] Ox0dea: ChameleonSix: xdotool is a program for scripting X11.
[23:17:32] Ox0dea: Ruby is not The Right Tool here.
[23:17:36] ChameleonSix: What do you mean
[23:17:50] adaedra: He just told you...
[23:18:24] Ox0dea: Oh, if you actually need to press it 10 times and none more: `xdotool type pppppppppp`
[23:18:28] c-c: has joined #ruby
[23:18:35] Ox0dea: But I can't imagine why you wouldn't want it to loop.
[23:18:46] ChameleonSix: Amazing program
[23:18:50] shaman42: has joined #ruby
[23:19:04] sluukkonen: has joined #ruby
[23:19:04] wolffles: has joined #ruby
[23:19:22] yfeldblum: has joined #ruby
[23:19:45] Ox0dea: -e:1: syntax error, unexpected '?'
[23:20:09] thone: has joined #ruby
[23:20:18] ChameleonSix: I dont seem to understand
[23:20:54] adaedra: Ox0dea: you've found a living implementation of ed?
[23:20:54] shevy: ChameleonSix http://www.semicomplete.com/projects/xdotool/
[23:21:08] Ox0dea: adaedra: I was gonna say something to that effect. :)
[23:21:28] ChameleonSix: I got tons of ruby questions
[23:21:32] Ox0dea: Prove it.
[23:22:05] ChameleonSix: But they have to be ruby specific and legal
[23:22:17] Ox0dea: ChameleonSix: No facetiousness.
[23:22:45] ChameleonSix: This irc is full of rules
[23:23:08] ChameleonSix: Why are single line lols disallowed
[23:23:09] jalopez: has joined #ruby
[23:23:21] Ox0dea: Because they reflect poorly on you and the community of which you wish to be a part.
[23:23:27] adaedra: Because it's annoying, much like messages split on multiple lines.
[23:23:48] ChameleonSix: Anyway is mac osx good for coding?
[23:23:55] DoubleMalt: has joined #ruby
[23:24:01] _seanc_: has joined #ruby
[23:24:26] Ox0dea: ChameleonSix: I dare you to ask one of those Ruby questions you said you had.
[23:24:50] Ox0dea: Do you accept the challenge?
[23:25:07] ChameleonSix: Change background
[23:25:24] ChameleonSix: Using system()?
[23:25:40] adaedra: So it's not really ruby-related. You're looking for a general command.
[23:26:07] ChameleonSix: Does it have to be 100% ruby related
[23:26:24] Ox0dea: No ellipses.
[23:26:30] ChameleonSix: Like seriously
[23:26:36] Ox0dea: No "like"s.
[23:26:40] adaedra: I feel like you don't really have ruby problems, just a bag of vague ideas of small utilities.
[23:26:42] Ox0dea: No seriousness.
[23:26:52] Ox0dea: No exactitude.
[23:27:29] ChameleonSix: Are you people some ruby experts
[23:27:36] Ox0dea: No interviews.
[23:27:47] Ox0dea: NO ELLIPSES!
[23:27:51] adaedra: Ox0dea: ssssh, no feeding.
[23:28:00] ramortegui: has joined #ruby
[23:28:19] adaedra: Enough of this, back to ruby.
[23:28:47] ChameleonSix: Why doesnt gets.chomp work on my phone in ruboto
[23:29:01] Nilium: ACTION is an expert in eating tortilla chips.
[23:29:05] TheHodge: has joined #ruby
[23:30:18] shevy: lol Nilium
[23:30:40] shevy: ChameleonSix hey... I just realized... you are asking this now for the 3rd time
[23:30:54] ChameleonSix: 1st time actually
[23:30:59] shevy: <ChameleonSix> Using system()?
[23:31:19] ChameleonSix: That wasnt even a question
[23:31:26] ChameleonSix: Someone nice expalined that
[23:31:57] ChameleonSix: Can you help me to make game hacks using ruby?
[23:32:13] adaedra: You're asking for something too vague.
[23:32:57] DarkElement: has joined #ruby
[23:33:00] adaedra: You don't have ruby projects, do you?
[23:33:13] ChameleonSix: I started learning
[23:33:23] ChameleonSix: I wouldn't be here if i knew everything
[23:33:42] adaedra: Those two elements are not related.
[23:34:38] shevy: you did not write ruby code ChameleonSix :(
[23:34:40] ChameleonSix: Is there a way to translate ruby to python
[23:35:02] ChameleonSix: I made a calc
[23:35:05] adaedra: Code you could have questions upon.
[23:35:23] ChameleonSix: I got no idea where to start
[23:36:08] ledestin: has joined #ruby
[23:36:09] HANJIN: has joined #ruby
[23:36:41] adaedra: So you're just poking around?
[23:36:46] Ox0dea: ChameleonSix: Try asking in #python.
[23:37:15] ChameleonSix: Python to ruby
[23:37:35] ChameleonSix: The point is in translation
[23:38:21] ChameleonSix: I see you answer to ruby strict questions
[23:38:32] ChameleonSix: I will come here if i need help with my code debugging
[23:38:33] bithon: i don't think such tool exists as Ruby and Python are both very different languages and their underling libraries are quite different. but I guess in some ways they do share certain similiarities and therefore some code could be 'appropriately' translated
[23:38:59] bithon: have a good one
[23:39:03] ChameleonSix: has left #ruby: ("Quit")
[23:40:04] Darin_: has joined #ruby
[23:40:46] rgrmatt: has joined #ruby
[23:42:34] bithon: is there a proper way to delete a particular gem with all of its dependancies ?
[23:43:54] Rodya_: has joined #ruby
[23:45:50] devoldmx: has joined #ruby
[23:46:10] domgetter: has joined #ruby
[23:49:56] seitensei: has joined #ruby
[23:50:01] BTRE: has joined #ruby
[23:52:33] shevy: hmm "gem uninstall name" for single gem uninstalls... I am sure there must be some massive-purge command
[23:52:48] postmodern: has joined #ruby
[23:52:49] TomPeed: has joined #ruby
[23:53:55] ElFerna: has joined #ruby
[23:55:47] marcdel: has joined #ruby