« Back to channel list

#ruby - 13 August 2015

« Back 1 day Forward 1 day »
[00:00:15] hays: i don't really like that i have that empty array initialization
[00:00:49] drbrain: hays: use map instead of each
[00:01:02] drbrain: then you'll get an Array of Threads back
[00:01:22] renderful: has joined #ruby
[00:02:04] bodgix1: has joined #ruby
[00:02:34] hays: like so https://bpaste.net/show/a600b395704e ?
[00:03:09] bodgix: has joined #ruby
[00:04:46] jhass: hays: yeah. btw your do/end vs {/} usage seems a bit random. The two schools are single line vs multiline and https://web.archive.org/web/20140221124509/http://onestepback.org/index.cgi/Tech/Ruby/BraceVsDoEnd.rdoc
[00:05:08] zenspider: I always adhere to the weirich method
[00:05:13] astrobun_: has joined #ruby
[00:05:31] jhass: I mostly due, though not strictly I think
[00:05:58] jhass: some I can't decide still, tap for example
[00:06:22] jhass: I execute it for side effects, yet quite often I like to chain onto it
[00:06:26] omegamike: has joined #ruby
[00:06:42] hays: if I have (1..100) and I want to add a bias to the range, is there a way to do this.. e.g to get (3..102) for example
[00:07:12] shevy: you can add the +2 when you get a position
[00:07:30] hays: yeah that's what im doing now
[00:07:51] zenspider: that doesn't seem like a bias... still linear distribution
[00:08:43] bluOxigen: has joined #ruby
[00:09:06] zenspider: >> class Range; def + n; Range.new self.begin+n, self.end+n; end; end; (1..100)+2
[00:09:07] ruboto: zenspider # => 3..102 (https://eval.in/416051)
[00:09:46] jhass: more like >> ?
[00:11:08] shevy: a monkey Range :)
[00:11:16] hays: hmm you can just add bits to a class like that?
[00:11:37] ctalr: has joined #ruby
[00:11:40] hays: cool i think. either that or terrible. can't decide
[00:11:45] shevy: hays you can always modify ruby classes
[00:11:49] Seich: has joined #ruby
[00:11:51] jhass: though use it with much consideration in real world code
[00:13:27] jhass: hays: you may also want to read up on refinements
[00:13:45] shevy: http://ruby-doc.org/core-2.1.1/doc/syntax/refinements_rdoc.html
[00:14:30] shevy: the syntax is kinda weird
[00:14:50] jhass: it's just method calls!
[00:15:58] pothibo: has joined #ruby
[00:19:51] michaeldeol: has joined #ruby
[00:20:14] cpruitt: has joined #ruby
[00:21:15] hays: i know there is a cleaner way to do this: one day I will figure it out https://bpaste.net/show/339f92575a98
[00:22:02] NeverDie: has joined #ruby
[00:22:08] IceyEC: has joined #ruby
[00:23:30] bricker: hays: it looks like you're opening a new connection on every loop
[00:24:36] hays: well i think only if the connection fails
[00:24:56] hays: but i agree it is confusing
[00:25:34] baweaver: has joined #ruby
[00:25:41] zanloy: has joined #ruby
[00:28:16] drewo: has joined #ruby
[00:29:28] hays: i wonder if regs[mreg] ^= 1 would work
[00:29:40] tubulife-: has joined #ruby
[00:30:49] allcentury: has joined #ruby
[00:30:58] hays: watchdog = regs[mreg] = watchdog ^ 1 <== this maybe is bad form? or makes it clearer?
[00:31:36] jhass: it's not equivalent to the former
[00:31:46] havenwood: has joined #ruby
[00:32:07] jhass: and most "would work" questions are answered by just spending 20 seconds in irb or pry ;)
[00:32:42] hays: yeah ill have to try it out with the modbus server actually going
[00:32:56] keen___: has joined #ruby
[00:33:37] jhass: whether some syntax is valid? nah, just construct the minimal case
[00:33:46] jhass: >> a = 1; a ^= 1; a
[00:33:47] ruboto: jhass # => 0 (https://eval.in/416054)
[00:34:45] rehat: has joined #ruby
[00:37:05] josh3: has joined #ruby
[00:37:25] GnuYawk: has joined #ruby
[00:38:36] jenrzzz: has joined #ruby
[00:38:38] yo: has joined #ruby
[00:38:41] tkuchiki: has joined #ruby
[00:38:50] shazaum_: has joined #ruby
[00:39:10] Oog: has joined #ruby
[00:39:12] TheNet: has joined #ruby
[00:39:47] Guest38519: has left #ruby: ()
[00:40:13] drewo: has joined #ruby
[00:40:28] bronson: has joined #ruby
[00:40:46] houhoulis: has joined #ruby
[00:40:50] hotpancakes: has joined #ruby
[00:41:27] tkuchiki: has joined #ruby
[00:41:43] autofsckk: has joined #ruby
[00:42:40] rbennacer: has joined #ruby
[00:42:42] autofsckk: hello, im trying to install fedena and i get this error http://codepad.org/9ElnrQft im really new to ruby, its my first time trying to install something, any help would be appreciated
[00:43:17] jpfuentes2: has joined #ruby
[00:44:25] shevy: autofsckk this means that "iconv" is missing
[00:44:46] shevy: the gem is probably on https://rubygems.org/gems/iconv
[00:44:52] shevy: you can try on the commandline "gem install iconv"
[00:44:54] northfurr: has joined #ruby
[00:45:25] jackjackdripper: has joined #ruby
[00:45:30] tkuchiki: has joined #ruby
[00:45:33] autofsckk: shevy: should i install gems with root? cause the guide im using says to install with sudo, is it right?
[00:45:39] ascarter: has joined #ruby
[00:46:07] hays: you can do user-install also
[00:46:42] Rubie: has joined #ruby
[00:46:45] shevy: autofsckk well there are two main modes of installing
[00:46:55] TheNet: has joined #ruby
[00:46:59] shevy: autofsckk globally into that prefix you see, /usr/lib/ruby bla, or home-dir local
[00:47:14] RegulationD: has joined #ruby
[00:47:17] autofsckk: hays: i read about that too, that if i want to install to all users do it with root privileges, but what is recommended? im using a specific user to show webpages on his /home
[00:47:23] shevy: the second would go via "gem install --user-install"
[00:47:29] hays: gem install iconv --user-install perhaps
[00:47:45] shevy: autofsckk on my machine here, with me as the only user, I install globally
[00:48:00] shevy: at work I had no access to /usr hierarchy so I had to use --user-install
[00:48:05] hotpancakes: has joined #ruby
[00:48:16] autofsckk: this is testing environment too, so system wide its ok?
[00:48:28] Pupeno: has joined #ruby
[00:48:46] Pupeno: has joined #ruby
[00:48:53] c0ncealed: has joined #ruby
[00:49:32] shevy: yeah. I don't know why you are so reluctant. if it is your machine, you find out you don't like it, you uninstall it again via "gem uninstall name_here"
[00:51:04] shevy: anyone happens to know if I made a mistake here? goo.gl/15XiCX - the intent was to compare 4 programming languages
[00:51:14] autofsckk: its not being reluctant, its that this is new to me, all jajajaj so i dont know whats safer and best practices, i've been reading for 2 days about ruby, its a lot of information
[00:52:03] hays: i am very much enjoying ruby here at my 2nd or 4rd week
[00:52:11] shevy: you can install and uninstall gems just fine
[00:52:16] hays: that range is [ , )
[00:52:17] mistym: has joined #ruby
[00:52:32] shevy: hays but you used another programming language before right
[00:53:22] autofsckk: now i get this error after iconv been installed
[00:53:24] hays: my personal preference is to keep everything in user directories on my mac..
[00:53:24] autofsckk: http://lpaste.net/6198708058143588352
[00:53:58] shevy: autofsckk hmm I don't think I have seen that error before
[00:54:32] autofsckk: neither do i jajajaja :/
[00:54:38] shevy: RDocTask is not a standalone gem; the :: prefix means it is part of the Rake namespace, probably it is a rake-addon
[00:55:00] shevy: does the thing you are trying to install, not have any readme or instructions?
[00:55:38] shevy: and btw why do you have /root/.gem/ruby/2.2.0/gems/, that is --user-install or?
[00:56:09] autofsckk: shure https://en.wikibooks.org/wiki/Fedena/Installation#Ubuntu_Linux but i got stuck at the middle with these errors
[00:56:14] xcesariox: has joined #ruby
[00:56:15] tkuchiki_: has joined #ruby
[00:56:18] sevenseacat: has joined #ruby
[00:57:36] autofsckk: shevy: i got this warning when installing iconv by the way http://codepad.org/TndXFbgz
[00:59:14] thang: has joined #ruby
[01:00:38] christiandsg: has joined #ruby
[01:02:43] Nightmare: has joined #ruby
[01:02:44] Davey: has joined #ruby
[01:02:47] jalcine: has joined #ruby
[01:03:03] twohlix: has joined #ruby
[01:03:04] shevy: autofsckk that is strange, it seems to install into your home dir by default.
[01:03:31] shevy: autofsckk you can also look at "gem env" and "gem list"
[01:04:00] shevy: you need to keep in mind when you follow a guide that this is distribution specific
[01:04:23] shevy: so if you want to follow a guide, you should follow it without modifications
[01:04:25] LBRapid: has joined #ruby
[01:04:35] luckyme: has joined #ruby
[01:05:09] josh3: has joined #ruby
[01:05:15] msnyon: has joined #ruby
[01:05:18] shevy: when I do a "gem install foo", it will install into /Programs/Ruby/Current/lib/ruby/gems/2.2.0/gems/
[01:06:58] autofsckk: i didnt know about the distro specific, i use arch and i dont know where gems get installed, im installing the app at a users home dir, and now im trying to install gems as that user instead of root
[01:07:21] zenspider: mmm... you're installing it in public_html... which is not a good idea
[01:07:34] Hijiri: has joined #ruby
[01:07:45] lannonbr: has joined #ruby
[01:08:31] Rubie: has joined #ruby
[01:08:47] autofsckk: zenspider: ok i see, so i should install it in /home/user
[01:09:21] Rubie: has joined #ruby
[01:09:22] shevy: autofsckk well, when you do a "gem install", the gems will be downloaded; you can switch to the specific user, and always perform a --user-install installation of the .gem in question
[01:09:34] Rubie: has joined #ruby
[01:12:39] baweaver: has joined #ruby
[01:14:19] autofsckk: pwdi moved the folder from public_html to /home/user and installed as user, asked me for "gem install i18n -v 0.4.0" and "gem install -v=2.3.5 rails" with i did, and then after doing "rake gems:install --trace" i get this erros http://lpaste.net/6491805770408001536
[01:15:21] autofsckk: what does rake do?
[01:15:33] coban2k: has joined #ruby
[01:15:51] sgambino: has joined #ruby
[01:16:14] autofsckk: oh i see, it does like compile and make the binary right?
[01:16:23] zenspider: this code is ancient, isn't it?
[01:16:38] zenspider: Rake::RDocTask implies this is ooold
[01:16:49] nerio: has joined #ruby
[01:17:00] zenspider: and you're installing rails 2.3.5???
[01:17:16] zenspider: but you're using ruby 2.2.0 ... you're just going to have a ton of problems
[01:17:36] autofsckk: jejejeje im already having them :/ zenspider
[01:18:33] autofsckk: when i did "rake gems:install" this was the answer Fedena requires i18n gem version 0.4.0 to be installed.Run gem install i18n -v 0.4.0
[01:18:45] autofsckk: Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed. thats why i installed that rails version
[01:19:29] zenspider: rails 2.3 is _ancient_. the rake task you want to run is _ancient_. But you're trying to do that with the latest version of ruby. This isn't going to end well for you
[01:19:47] zenspider: either, find a project that is actually kept up to date, or follow their instructions EXACTLY
[01:20:18] zenspider: which, by looking at their instructions, you've failed to do
[01:20:19] swgillespie: has joined #ruby
[01:20:47] zenspider: these instructions are terrible
[01:20:55] ecksit: has joined #ruby
[01:21:38] juanpablo__: has joined #ruby
[01:21:40] Rubie: has joined #ruby
[01:21:50] zenspider: autofsckk: I'd just stop what you're doing right now
[01:21:59] zenspider: the instructions are bad and are going to waste your time
[01:22:16] zenspider: this project hasn't had a commit to it since jan 2013
[01:22:29] davedev24: has joined #ruby
[01:22:42] j4cknewt: has joined #ruby
[01:23:19] zenspider: http://projectfedena.org/install is better... but still assuming that apt-get install ruby will install 1.8.x, which is false
[01:23:28] bronson: has joined #ruby
[01:23:29] autofsckk: zenspider: i can maybe downgrade the ruby version and rails so that project works?
[01:24:12] autofsckk: zenspider: im using arch and i can install ruby 2.2 2.1 2.0 or 1.9
[01:24:43] decaff: has joined #ruby
[01:24:56] Oog: has joined #ruby
[01:28:08] mesamoo: has joined #ruby
[01:29:41] hydrozen: has joined #ruby
[01:30:27] bootstrappm: has left #ruby: ()
[01:31:17] coban2k: has joined #ruby
[01:32:52] michaeldeol: has joined #ruby
[01:33:18] sphex: hey.. the "WeakHash" example from the "WeakRef" documentation doesn't allow the hash table itself to free up its space right? just the key/value objects it points to?
[01:34:59] drewo: has joined #ruby
[01:35:48] ivanskie: has joined #ruby
[01:37:47] shevy: autofsckk downgrading will become even harder ;)
[01:37:56] devoldmx: has joined #ruby
[01:38:23] shevy: autofsckk if you are using arch though, you can wait for jhass to wake up (european time zone); he is an arch pro
[01:39:09] NeverDie: has joined #ruby
[01:39:31] TheNet: has joined #ruby
[01:41:04] hotpancakes: has joined #ruby
[01:41:41] RobertBirnie: has joined #ruby
[01:42:17] tkuchiki: has joined #ruby
[01:42:18] SirFunk: has joined #ruby
[01:44:21] NeverDie: has joined #ruby
[01:45:39] galeido: has joined #ruby
[01:49:35] tmtwd: has joined #ruby
[01:50:01] galeido^: has joined #ruby
[01:50:04] casadei: has joined #ruby
[01:53:36] jackjackdripper: has joined #ruby
[01:54:52] workmad3: has joined #ruby
[01:55:36] htmldrum: has joined #ruby
[01:56:35] blackmesa: has joined #ruby
[01:56:37] bmurt: has joined #ruby
[01:56:45] frozen3: has joined #ruby
[01:58:01] mmmmmagic: has joined #ruby
[01:58:09] mmmmmagic: has left #ruby: ()
[01:58:36] omegamike: has joined #ruby
[02:01:16] drewo: has joined #ruby
[02:03:45] Scripore: has joined #ruby
[02:05:17] christiandsg: has joined #ruby
[02:07:17] coban2k: has joined #ruby
[02:07:55] saddad: has joined #ruby
[02:08:03] bigmac: has joined #ruby
[02:10:30] olivierrr: has joined #ruby
[02:11:34] lampshades: has joined #ruby
[02:12:17] seanmclaren: has joined #ruby
[02:14:07] arooni-mobile: has joined #ruby
[02:16:39] miah: downgrading is ... don't do it.
[02:17:40] Feyn: has joined #ruby
[02:17:41] Alayde: has joined #ruby
[02:18:09] Musashi007: has joined #ruby
[02:19:31] LMity: has joined #ruby
[02:22:24] pontiki: hi, folks o/
[02:22:25] juanpablo__: has joined #ruby
[02:23:18] j4cknewt: has joined #ruby
[02:24:12] devbug: has joined #ruby
[02:24:45] rbennacer: has joined #ruby
[02:25:38] ascarter: has joined #ruby
[02:26:09] centrx: has joined #ruby
[02:26:17] shevy: hey tikipontas
[02:26:36] Oog: has joined #ruby
[02:26:48] Limix: has joined #ruby
[02:29:34] jackjackdripper: has joined #ruby
[02:29:46] northfurr: has joined #ruby
[02:30:55] michael_mbp: has joined #ruby
[02:33:15] bronson: has joined #ruby
[02:35:00] htmldrum: has joined #ruby
[02:35:49] rickmasta: has joined #ruby
[02:37:08] northfurr: has joined #ruby
[02:38:39] Oog: has joined #ruby
[02:39:04] dseitz: has joined #ruby
[02:39:48] josh3: has joined #ruby
[02:40:23] Channel6: has joined #ruby
[02:40:28] Frem: has joined #ruby
[02:40:52] LMity: has joined #ruby
[02:40:58] linuxboytoo: has joined #ruby
[02:43:50] radgeRayden_: has joined #ruby
[02:46:32] josh3: has joined #ruby
[02:47:07] ivanskie: has joined #ruby
[02:47:33] hotpancakes: has joined #ruby
[02:48:08] christiandsg: has joined #ruby
[02:49:14] Pupeno: has joined #ruby
[02:51:45] Igor2__: has joined #ruby
[02:54:29] rbennacer: has joined #ruby
[02:54:41] baweaver: has joined #ruby
[02:55:53] shevy: i.gsub!(/\n/,'')
[02:56:05] shevy: that is equal to i.delete!("\n") or?
[02:56:29] frozen3: has joined #ruby
[02:56:41] centrx: can't be because Rails has a String#remove for that
[02:56:55] RobertBirnie: has joined #ruby
[02:57:25] centrx: might be the same when it's only one character
[02:57:25] celly: has joined #ruby
[02:58:15] christiandsg: has joined #ruby
[02:58:28] bronson: has joined #ruby
[02:59:49] rcs: has joined #ruby
[03:03:29] yfeldblum: has joined #ruby
[03:04:33] shevy: I didn't know you do rails
[03:05:54] centrx: yeah I'm a rails pro
[03:06:26] techsethi: has joined #ruby
[03:06:30] yfeldblum: has joined #ruby
[03:06:32] ascarter: has joined #ruby
[03:06:41] celly: anyone here have some good experience with DEVISE?
[03:07:29] celly: getting a weird bug where when a user changes their email address, instead of changing it and allowing them to log in with said email, it just cancels their account
[03:07:31] autofsckk: has joined #ruby
[03:08:09] astrobun_: has joined #ruby
[03:08:18] ascarter: has joined #ruby
[03:09:10] Aeyrix: celly: #rubyonrails
[03:10:04] ascarter: has joined #ruby
[03:10:20] celly: @Aeyris: i posted in there but got no response, and i just saw someone else get kicked (gambl0re) that was being pushy, i guess, and i didn't want to be that guy....
[03:10:32] jenrzzz: has joined #ruby
[03:11:28] braincrash: has joined #ruby
[03:12:02] Torrieri: has joined #ruby
[03:13:21] centrx: celly, Yeah it's pretty heated in there, but you can ask questions,just seems to be getting drowned out
[03:13:39] centrx: celly, It helps to ask something specific, with say an error message, with what you've tried so far, code pastes
[03:13:46] centrx: celly, Did you find anything about this problem by searching online?
[03:13:52] centrx: celly, Usually you're not the first one
[03:13:54] celly: yeah, i've been asking, but apparently, its goign unnoticed
[03:14:07] celly: i usually try to search online before jumping on IRC
[03:14:59] countryHick: has joined #ruby
[03:15:05] chipotle: has joined #ruby
[03:17:37] autofsckk: has joined #ruby
[03:17:37] autofsckk: has joined #ruby
[03:21:27] shevy: is there a simple way to downcase all keys of a hash?
[03:22:04] centrx: shevy, http://api.rubyonrails.org/classes/Hash.html#method-i-transform_keys
[03:22:32] Aeyrix: I went with x.map{ |k,v| k.downcase } tbh
[03:22:41] Aeyrix: returns an array of keys
[03:22:44] ctalr_: has joined #ruby
[03:23:14] shevy: centrx damn... they have a lot of stuff
[03:23:41] centrx: shevy, Yeah you don't need to use the rest of Rails either, all these utility methods are in ActiveSupport which can be used by itself
[03:25:45] ecksit: has joined #ruby
[03:26:17] sphex_: has joined #ruby
[03:27:19] bruno-: has joined #ruby
[03:30:24] galeido: has joined #ruby
[03:30:25] ctalr_: has joined #ruby
[03:31:16] jackjackdripper: has joined #ruby
[03:32:22] hydrozen: has joined #ruby
[03:34:49] icebourg: has joined #ruby
[03:35:01] towski_: has joined #ruby
[03:35:24] hotpancakes: has joined #ruby
[03:36:01] josh3: has joined #ruby
[03:37:00] christiandsg: has joined #ruby
[03:39:03] devoldmx: has joined #ruby
[03:40:40] framling: has joined #ruby
[03:42:20] Musashi007: has joined #ruby
[03:43:36] workmad3: has joined #ruby
[03:44:49] ascarter: has joined #ruby
[03:46:23] Vile`: has joined #ruby
[03:47:07] hotpancakes: has joined #ruby
[03:47:28] hotpancakes: has joined #ruby
[03:48:39] lessless: has joined #ruby
[03:48:53] Oog: has joined #ruby
[03:49:07] carlosoliveira: has joined #ruby
[03:51:22] josh3: has joined #ruby
[03:55:48] jonee: has joined #ruby
[04:02:54] gix: has joined #ruby
[04:04:04] nirvdrum: has joined #ruby
[04:06:35] rbennacer: has joined #ruby
[04:08:15] ght: Is this syntax not correct for rescuing SocketError and XMLRPC:;FaultExceptions?: rescue SocketError, XMLRPC::FaultException => e
[04:08:42] sevenseacat: ght: don't cross-post.
[04:08:46] freerobby: has joined #ruby
[04:08:52] ght: Two different channels.
[04:08:56] ght: Anyone?
[04:09:02] sevenseacat: yeah thats kinda the definition of cross-posting
[04:09:25] sevenseacat: and given I asked you a question in the other channel you didnt answer, well
[04:09:57] ght: I'm looking for the answer, not more questions.
[04:10:04] ruboto: +q ght!*@*
[04:10:04] ruboto: -o ruboto
[04:10:32] sevenseacat: don't be rude, also.
[04:11:05] Musashi007: has joined #ruby
[04:11:09] juanpablo__: has joined #ruby
[04:11:11] Oog: has joined #ruby
[04:12:09] Aeyrix: Is there something in the water today?
[04:12:18] Aeyrix: ACTION looks outside at the rain.
[04:13:33] ShellsForDays: has joined #ruby
[04:13:43] swgillespie: has joined #ruby
[04:14:21] sevenseacat: ShellsForDays: good afternoon
[04:14:40] Aeyrix: sevenseacat: Wait is it afternoon for you now?
[04:14:42] ShellsForDays: As you can see by my nick, I have, in fact, "shells for days"
[04:14:45] Aeyrix: My understanding of timezones is clearly broken.
[04:14:50] Aeyrix: ShellsForDays: neat
[04:14:56] coban2k: has joined #ruby
[04:15:34] sevenseacat: Aeyrix: we're tww hours behind you.
[04:15:43] Aeyrix: ShellsForDays: what
[04:15:47] sevenseacat: ShellsForDays: huh?
[04:15:49] Aeyrix: sevenseacat: Oh. I genuinely thought you were 3.
[04:15:56] sevenseacat: Aeyrix: only during daylight savings.
[04:16:02] ShellsForDays: ShellsForDays: wat?
[04:16:16] Aeyrix: sevenseacat: Oh, right.
[04:16:18] sevenseacat: ShellsForDays: you want me to mute you?
[04:16:36] ShellsForDays: Well, you muted shell #57 over there
[04:17:00] sevenseacat: oh I see, you're ght playing stupid tricks?
[04:17:47] ShellsForDays: That's not very polite.
[04:18:43] sevenseacat: that was entertaining.
[04:20:56] michael_mbp: has joined #ruby
[04:21:11] NeverDie: has joined #ruby
[04:21:15] xwct: has joined #ruby
[04:21:41] chihhsin: has joined #ruby
[04:21:43] sbnrd: has joined #ruby
[04:21:57] haraoka: has joined #ruby
[04:22:34] Aeyrix: Worst botflood I've ever seen tbh.
[04:23:22] kp666: has joined #ruby
[04:26:30] mary5030: has joined #ruby
[04:30:12] christiandsg: has joined #ruby
[04:33:33] Meow-J: has joined #ruby
[04:35:24] techsethi: has joined #ruby
[04:37:13] darkf: has joined #ruby
[04:39:39] symm-: has joined #ruby
[04:40:36] dimasg: has joined #ruby
[04:44:04] RegulationD: has joined #ruby
[04:44:11] techsethi_: has joined #ruby
[04:45:23] josh3: has joined #ruby
[04:46:13] Creator: has joined #ruby
[04:47:21] iamninja: has joined #ruby
[04:47:31] niiggeradder: has joined #ruby
[04:48:12] mary5030: has joined #ruby
[04:48:32] khebbie: has joined #ruby
[04:49:10] techietrash: has joined #ruby
[04:49:59] Pupeno: has joined #ruby
[04:51:45] mary5030_: has joined #ruby
[04:51:52] Musashi007: has joined #ruby
[04:53:53] swgillespie: has joined #ruby
[04:57:01] swgillespie: has joined #ruby
[04:57:18] djbkd: has joined #ruby
[04:57:28] Rubie: has joined #ruby
[04:58:02] josh3: has joined #ruby
[04:58:27] qiukun: has joined #ruby
[04:59:59] nofxx: has joined #ruby
[05:00:14] niiggeradder: has anyone seen miss watson's big nigger named jim around?
[05:01:26] michael_mbp: has joined #ruby
[05:01:59] miah: !ban niiggeradder
[05:03:15] Aeyrix: n i c e m e m e
[05:04:33] niiggeradder: don't let your memes be dreams
[05:04:56] ChanServ: +b niiggeradder!*@*
[05:04:56] ChanServ: ChanServ kicked niiggeradder: http://ruby-community.com/pages/user_rules#rule_2_10
[05:05:20] Radar: !ban niiggeradder !T 1D
[05:05:20] ruboto: Radar, could not find a matching user for "niiggeradder"
[05:05:25] yardenbar: has joined #ruby
[05:05:34] Radar: +b *!*@*98.254.231.125
[05:05:36] miah: i think i won the race
[05:06:18] miah: i dont understand it :/
[05:06:25] miah: lets talk about ruby!
[05:07:04] Radar: So I'm expected to be able to take data from one system and magically make it appear in another system, with extra data added
[05:07:28] Radar: For instance there's a product in System #1 called "Giant Cypress DX", and then in System #2, it has a different name which really means the same thing, let's say it
[05:07:35] Radar: it's "Cypress DX 2015", and "Giant" is some other field
[05:07:42] SOLDIERz: has joined #ruby
[05:08:00] Radar: There is no shared unique ID between the two products, and yet I am supposed to know magically how to work out that these two products are the same
[05:08:15] Radar: Can Ruby make these demands more reasonable?
[05:08:48] TvL2386: has joined #ruby
[05:09:17] mozzarella: does it follow specific rules?
[05:11:03] riotjones: has joined #ruby
[05:11:47] jpfuentes2: has joined #ruby
[05:11:58] riotjones: has joined #ruby
[05:12:47] Oog: has joined #ruby
[05:13:22] pawnbox: has joined #ruby
[05:14:11] mary5030: has joined #ruby
[05:14:32] ramfjord: has joined #ruby
[05:16:08] jpfuente_: has joined #ruby
[05:16:44] dhjondoh: has joined #ruby
[05:18:36] sevenseacat: i have no idea how you would do that
[05:18:36] Radar: mozzarella: Nope.
[05:19:02] sevenseacat: I'd be printing a long list of each product name and getting an intern somewhere to match them up
[05:20:56] hotpancakes: has joined #ruby
[05:21:12] mozzarella: do they have some common data?
[05:23:25] khebbie: has joined #ruby
[05:26:44] freeze: has joined #ruby
[05:27:24] jonee: has joined #ruby
[05:28:01] bruno-: has joined #ruby
[05:29:11] baroquebobcat: has joined #ruby
[05:29:45] Oog: has joined #ruby
[05:29:48] blt: has joined #ruby
[05:30:21] Radar: mozzarella: Nope.
[05:30:31] Radar: Titles *might* be identical, but that's a stretch.
[05:30:36] Igor2__: hmm, it seems there is no Integer() in mruby
[05:31:14] riotjones: has joined #ruby
[05:31:38] Igor2__: what could I use as an alternative?
[05:32:24] workmad3: has joined #ruby
[05:32:27] rickmasta: has joined #ruby
[05:33:03] Igor2__: I'd like to convert a string to an integer
[05:34:42] ferhaty: has joined #ruby
[05:34:42] Igor2__: it did the trick, thanks!
[05:34:53] Hayate: has joined #ruby
[05:34:58] RobertBirnie: has joined #ruby
[05:35:32] Hayate: has left #ruby: ()
[05:37:01] mary5030: has joined #ruby
[05:38:34] UtkarshRay: has joined #ruby
[05:39:47] devoldmx: has joined #ruby
[05:40:30] Maletor: has joined #ruby
[05:40:31] Igor2__: ... and... tada! from now on libgpmi has support for mruby
[05:41:09] skade: has joined #ruby
[05:45:44] DanielI: has joined #ruby
[05:45:56] blt: has left #ruby: ("WeeChat 1.2")
[05:47:45] aibo: has joined #ruby
[05:48:06] Musashi007: has joined #ruby
[05:48:15] FamilyGuy: has joined #ruby
[05:48:25] FamilyGuy: [ace] [spoiler] \13k _5moufl __main__ _aeris_ _ht _mh_ _vision _whitelogger `derpy abbe abyss AccordLTN AckZ adaedra adam12 adambeynon adamholt AdamMeghji adeponte Adran adzuci aep Aeyrix Affix ahuman aibo ajafo ajaiswal akahn akitada akkad akosednar akurilin al2o3-cr alakra Alayde alekst_ alem0lars
[05:48:25] FamilyGuy: AlexAltea alexblom alexherbo2 Alina-malina allie alxndr amclain amcoder amitchellbullard ammar andersh anekos angelixd Ankhers AnoHito Antiarc apeiros Apocalypse araujo ArchRogem Aria artmann Asher ashleyhindle ashleyis asi_ aspiers astrobun_ astrobunny atmosx atom3_ atomical AustinMatherne avdi avelldiroll awk axisys Azure badeball bakedb
[05:48:26] FamilyGuy: banister bankair baroquebobcat bartj3 bascht bauruine baweaver bcavileer benatkin benlakey bestie bf4_ bffff_ bhaak bhorn1|away bier bigkevmcd bigmac bihi Billias Biohazard_ Bish bjeanes bkutil_ blackjid blowmage` Blue_Ice_ BLuEGoD bluOxigen bmcginty bmn_ bnagy bnizzle bodie_ borkdude bougyman bourbon bove BraddPitt bradland
[05:48:27] FamilyGuy: braidn braincrash brainslug Brando753 brixen bronson bryancp BTRE bttf busterarm ByronJohnson bzf C0deMaver1ck_ c0ncealed Caelum Caius cajone callumacrae camilasan camt canton7 cardoni carlosoliveira casadei catbusters cball cbednarski cbetta ccbn ccooke certainty cescalante cFouts cgrieger^away Channel6 charles81 charliesome ChasedSpade chihhsin chipotle
[05:48:28] FamilyGuy: chridal chris2 chrisarcand chrisseaton chuy CHVNX cibs cina cj cjk101010 ckrailo clamstar cliffstah closer coban2k code1o6 code_ codeitagile coffeejunk Coldblackice colstrom connor_goodwolf contradictioned cookiez Coraline Cork cornerman corpsicle cout crankharder crayfishx crdpink2 Criten crowell csaunders cscheib cschneid cstrahan culturelabs Cust0sLim3n
[05:48:29] FamilyGuy: dabradley daed dandrade danieli DanKnox danman danoo_ danshultz danzilio darix DarkBushido darkf DarthGandalf davedev24 Davey davidcelis daxroc daynaskully dbussink dcope ddfreyne ddv DEac- deavid DefV deimos_ demophoon DenSchub destructure devbug devn devyn DexterLB df dfedde dfoolz_ dfrakk dhjondoh dhruvasagar dhtns
[05:48:30] FamilyGuy: Diabolik diegok dijikul djbender djbkd djcp dling DmitryM dmoe dogeuira dont-panic dopamean_ dostoyevsky drager Drakevr drbrain drizz drPoggs drzel dseitz dualbus duckson_ dudedudeman duderonomy dukedave duoi dvabr Dwarf DylanJ eam ebarrett ec\_ edenc edwardly eggoez Eising ejnahc ekem elaptics ELCALOR
[05:48:31] FamilyGuy: ElderFain elektronaut ELLIOTTCABLE ElSif elton emdub Encapsulation EnergyCoffee entropie epochwolf eregon erichmenge ericwood Esya EvanGuru EvilJStoker ex0ns exadeci exceion existensil eytanfb FamilyGuy farn FastJack ferhaty Feyn FifthWall finges firevolt firoxer Flipez flori fluchtreflex Fluent flughafen fold forgot Fraeon framling franckverrot
[05:48:32] FamilyGuy: frank_____ frankS2 freedrull freerobby freeze frem frigidcode frode15243 fulgore_ fumduq- fumk funnel G g0rx_ Gadgetoid gagrio galeido GarethAdams ged__ george2 gf3 ggherdov GGMethos ghormoon ght gigetoo gix glowcoil gnarf Gnubie_ go|dfish graft greedo gregf gregf_ grubernaut gsingh93 Guest41043 Guest70057 Guest85414______
[05:48:33] FamilyGuy: Guest87023 haasn hachiya hackeron_ hagabaka hakunin hal_9000 halfdan Hamled hanmac haraoka harleypig haroldwu hasB4K HashNuke hays headius Heero heftig heinrich5991 Helheim hellschreiber helpa heyimwill hfp hfp_work Hien Hijiri Hobbyboy hoelzro hoey holsee_ hostess hotpancakes hplar htmldrum humd1ng3r hyperdrive hypnosb iamayam
[05:48:34] FamilyGuy: iamdevnul iamninja icedp IceDragon IceyEC Igor2__ im0b imajes infernix infinite1tate inukshuk iooner ipstatic irk_ ironcamel iszak ivanf j416 j4cknewt jalcine Jamo jamo_ janno jaredrhine_ jatb JaTochNietDan jaxxstorm jayne jeaye Jello_Raptor jenrzzz jeregrine jevs jgpawletko jhass jidar jimbeaudoin jimeh JimmyNeutron jinie
[05:48:35] FamilyGuy: jinx123 jlyndon jmcc jmhmccr jmignault joaomdmoura joast joelataylor joevandyk joeyjones johnhamelink jokke JoL1hAHN jonee joneshf-laptop jordanm jpfuente_ jpinnix______ jsaak jso jsrn JStoker jtdowney jtperreault Juanchito jud julie_harshaw Junaos justinmcp justinweiss jxf jxie jzigmund kadoppe kalleth kallisti5 kalz kalzz Kamilion kannan4k
[05:48:36] FamilyGuy: kapowaz kappy Karunamon kaspergrubbe KC9YDN keen___ Kellin kenichi kent\n Kero Kharma kies kiki_lamb KillerFox Killerkeksdose kitallis kith klaas klingeldraht kloeri Klumben knowtheory knu Koshian Kovensky kp666 kq_away_ krainboltgreene KramerC krasnus kriskropd Kruppe KrzaQ lacrosse lady3bean lagweezle lampd1 lancetw lanemeyer larissa
[05:48:37] FamilyGuy: LBRapid leafybasil ledestin lele lele|w leslie lessless levifig lguardiola lhz Liam` lianj Lildirt linc01n linduxed Liothen LiquidInsect livcd ljarvis Lloyd lnx Log1x lokulin loop3r lorn lostcuaz lotherk low-profile lsmola ltd Lucky__ luksaur luluapple lupine luzidco lwu M-mistake M-prosodyContext M-Technic m4rCsi
[05:48:38] FamilyGuy: machty madhatter mago0 mahlon major_majors malcolmva maletor maloik mame2 manveru marcoamo1 MarcWeber marens marienz marsjaninzmarsa martinbjeldbak martinium Matadoer mathie matled matp MatrixBridge matrixise matti mattp- maxmanders mburns mclee Meeh Mekkis melter Meow-J mgorbach mhenrixon Mia miah michael_mbp mighty_gorilla MiracleBlue Miron
[05:48:39] FamilyGuy: MissionCritical mist MisterRusty mistym mjc_ mjmac mlue mmasaki mnemon modern mondo monoprotic monsieurp moredhel Morrolan mosez moshee Motoservo mozzarella mroth mrsolow MuffinPimp Musashi007 musl Muz MVPhelp n1ftyn8_ ndrst neanias neektza neersighted nemesit|znc nertzy neurotech nfsnobody nicechap nickfausnight nickjj nifoc Nightmare
[05:48:40] FamilyGuy: NightMonkey Nilium Nirgali43 nirix nisstyre nitrix nizmow njr njs126 nlsun nocturnalviolet nofxx nomadic noname noobQ nopc0de Nowaker nuck nullwarp nwhirschfeld nyandoge Obfuscate oddmunds okdas olblak Olipro omegahm Omni- oo_ opalraava oxpom oz ozzloy p7r p8952 pabs papercode Paradox parus patronus
[05:48:41] FamilyGuy: patteh_ PaulCapestany PaulePanter Pavel_Fin pawnbox perrier perry petems peterhil peterhu petersaints peteyg petridish ph8 PhilK Phoop phreakocious phrozen77 pipework Pisuke pizzaops pjaspers_ pl1ght PlasmaStar Platini platosha_ pleiosaur pmarreck pocketprotector poguez_ pontiki postmodern pragmatism prasselpikachu preller preyalone Prira programmerq prosodyContext psmolen
[05:48:42] FamilyGuy: psy_ ptierno pusewicz pygospa pyon qiukun QKO quarcu Raboo Radar radens radgeRayden_ raenk ramblinpeck ramfjord RandyT Ray` raypulver RazorX rcs rdema RealMarc redlegion redondos rehat renanoronfle renderful Rennex reprazent_ retornam rfi rflot rfv rhg135 Rickmasta rikai Riking riotjones Rixius rj-code
[05:48:43] FamilyGuy: rmoriz Roa rob_ robbyoconnor RobertBirnie roger_rabbit romero roolo_ Ropeney RTG` rtl rubie ruboto ruisantos russt rvchangue ryotarai ryuu saltsa sanguisdex sarid sarlalian sbhatore sbnrd Schmidt Scient scottstamp scottymeuk scpike scripore scroff SebastianThorn SegFaultAX segmond segv segy Seich Senjai sethetter sevenseacat
[05:48:44] FamilyGuy: sevin sevvie sfr^ shadeslayer shaman42 shawnacscott shazaum_ shelling__ shevy Shibo Shidash shortdudey123 shreknet shtirlic SHyx0rmZ SilentEcho Silex silverdust sindork sirecote SirFunk sivoais sjohnsen skakri skarn Skelz0r skmp slackbotgz slani slash_nick slawrence00 slide sluukkonen smooth_penguin sn0wb1rd snapcase soahccc_ SOLDIERz soloone Someguy123
[05:48:45] FamilyGuy: sonOfRa soosfarm sorah_ Sou|cutter Sp4rKy spacemud Spami sparr spastorino speakingcode spectra_ sphex_ Spleeze ss_much ss_ss sshuff|gone starship Steve_Jobs stevednd StevenXL Sthebig stnly stonecolddevin stoodfarback stryek suffice sumark superrorc superspring SuperTux88 swgillespie swills symm- sysanthrope ta tabakhase tacotaco_ Takumo tbuehlmann tchebb
[05:48:47] FamilyGuy: TDJACR tekacs tekk Tempesta tenderlove tenseiten teotwaki tercenya terrellt thang TheBrayn thejoecarroll TheMoonMaster TheMysticWyvern theRoUS thesheff17 thomas three18ti timanema timmow_ tkuchiki tobiasvl tobyx tokik tomaw tommylommykins tonini torpig towski_ Tratos Trieste tris Tristan-Speccy troter___ troyready Trynemjoel tskogberg tsunamie TTilus tubbo
[05:48:48] FamilyGuy: tubuliferous_ tuor TvL2386 twistedpixels twohlix tylersmith uber ukd1 unclouded universa1 unreal unsymbol Urocyon UtkarshRay uxp v0n valeri_ufo ValicekB vcoinminer verto vifino Vile` Voker57 vondruch voxxit vt102 warreng wasamasa waxjar weaksauce webhat wedgwood wheresmyjetpack whiteline WillAmes wjimenez5271 wlanboy wldcordeiro wldcordeiro_ wmoxam
[05:48:49] FamilyGuy: wnd woodruffw wookiehangover xcesariox Xiti xMopxShell xnr Xoro xsdg xwct xxneolithicxx xxx yardenbar yasu yawniek ybian yeltzooo yeticry yie yo61 yokel yorickpeterse yosafbridge ytti yxhuvud z3uS zack6849 Zackio zacts Zarthus ZeeNoodleyGamer zemmihates zenguy_pc zenspider zero7 zipkid zly znz_jp zrl ZYPP
[05:48:50] FamilyGuy: zz_barkerd427 zz_Outlastsheep zzak
[05:48:51] Radar: +b FamilyGuy!*@*
[05:48:51] FamilyGuy: has left #ruby: ()
[05:48:52] Radar: Shut. Up.
[05:48:53] Aeyrix: nice meme
[05:48:54] harleypig: has left #ruby: ()
[05:48:55] djbkd: Thank you.
[05:49:00] Lildirt: This dick was just in #android :(
[05:49:22] Radar: +b *!*@*edvps.3geeks.com.au
[05:49:26] towski_: it seems today
[05:49:30] towski_: spammers you see
[05:49:49] Caelum: this guy is spamming like every channel
[05:49:51] Radar: ACTION celebrates the first proper detection of spam by helpa :D 
[05:50:00] Aeyrix: I'm a bad test case.
[05:50:11] AlexRussia: has joined #ruby
[05:50:25] NeverDie: has joined #ruby
[05:50:54] dimasg: has joined #ruby
[05:51:09] User458764: has joined #ruby
[05:51:24] Radar: Totes weird that we have required nickserv registration turned on in #rubyonrails and we don't get spammers.
[05:51:32] Radar: Must just be a coincidence.
[05:51:49] ivanskie: has joined #ruby
[05:52:30] Igor2__: well, if nickserv was on for #ruby, i couldn't come here to get help and [spoiler] couldn't tell me about mruby and I guess gpmi would have stayed with ruby1.8
[05:52:32] Aeyrix: Not allowed to enable it here?
[05:52:41] Aeyrix: Igor2__: Why don't you just register..?
[05:52:51] Aeyrix: Hell to even USE my IRC network you have to register yourself.
[05:52:54] Igor2__: because I came here only for a few simple questions
[05:53:02] Igor2__: this is a barrier for users like me
[05:53:11] Aeyrix: if that's a barrier
[05:53:20] Aeyrix: then i don't really know what to tell you
[05:53:38] Igor2__: it's a question of preference or goal of a channel/project
[05:53:49] Igor2__: if you want to be open for wide audience
[05:54:01] Igor2__: you have to accept that not everyone is a hardcore ruby fan who will do anything to join
[05:54:03] Aeyrix: #ror is open to a wide audience
[05:54:51] sevenseacat: Radar: funny, isn't it.
[05:54:53] Igor2__: when I get hooked with a new project, I often look at such barriers
[05:55:00] techsethi: has joined #ruby
[05:55:09] Aeyrix: sevenseacat: I assume this is a uh
[05:55:15] Aeyrix: #ruby BDFL directive
[05:55:26] Igor2__: if I can't report a bug or can't get support without registration, that means to me that the proejct is hostile to users
[05:55:33] sevenseacat: Aeyrix: https://github.com/apeiros/ruby-community/issues/19
[05:55:49] devbug: https://i.imgur.com/kIukF5L.jpg
[05:55:55] devbug: DISREGARD
[05:55:57] khebbie: has joined #ruby
[05:55:58] Thomas-0725: has joined #ruby
[05:56:00] devbug: ACTION runs in shame
[05:56:07] sevenseacat: glad I didn't click that.
[05:56:19] devbug: (it's just an alien egg laying didlo from reddit)
[05:56:52] sarid: devbug's acting a little buggy
[05:57:08] DanielI: devbug: lol wut
[05:57:18] DanielI: what kind of shady subreddits do you even hang on?
[05:57:19] devbug: wrong channel :S
[05:57:23] devbug: danieli: /r/all
[05:57:54] devbug: If anyone wants the thread: https://www.reddit.com/r/WTF/comments/3gspmx/this_is_a_sex_toy_for_simulating_an_alien_laying/
[05:58:18] Aeyrix: If anyone wants the thread: Please seek help.
[05:58:30] DanielI: arrow block
[05:58:58] ohaibbq: has joined #ruby
[05:59:06] techsethi_: has joined #ruby
[06:00:05] Nilium: ACTION looks up, is glad he didn't click.
[06:00:15] devbug: Ah, it's called a "Splorch."
[06:00:15] juanpablo__: has joined #ruby
[06:00:26] Nilium: OK, you can stop talking about it
[06:00:36] devbug: I'll take you up on that.
[06:02:03] Nilium: So, in unrelated news, I decided to buy a MinnowBoard because having a Raspberry Pi-sized x86-64 computer would be nice.
[06:02:26] Nilium: Also because it turns out it's hard to do anything CPU-dependent on my Pi 2.
[06:02:43] Nilium: Like running anything in Ruby.
[06:03:06] sevenseacat: so use elixir instead. :trollface:
[06:03:24] Nilium: I use Go.
[06:03:32] Nilium: ACTION drops the pin.
[06:03:57] sevenseacat: and how is that go...ing?
[06:04:02] Nilium: Sadly, arm64 support in the Go compiler's also not too great right now.
[06:04:08] Nilium: Getting better, but not great.
[06:04:17] Aeyrix: sevenseacat: ???_???
[06:04:36] Nilium: Considering I made it into one of our primary languages at work, pretty well
[06:04:59] Nilium: Downside is I really need to do more code review with the coworkers who are just now learning it 'cause it's not great.
[06:05:15] celly: has joined #ruby
[06:05:20] Oog: has joined #ruby
[06:05:24] sbhatore: has joined #ruby
[06:05:28] Nilium: Lots of obvious cases of not reading the language spec/guide and some terrifying data races
[06:05:38] NeverDie: has joined #ruby
[06:05:39] Aeyrix: Which data won?
[06:05:41] Musashi007: has joined #ruby
[06:06:12] Nilium: Don't know, but one of the servers a coworker wrote ??? which isn't in production yet ??? could accidentally overwrite response data from one request if you hit it with two simultaneously.
[06:06:18] jud: Nilium, are you trying to run it on a pi?
[06:07:13] Nilium: I haven't really worked out why exactly the response was a global variable, but it was.
[06:07:41] sbhatore: has joined #ruby
[06:08:05] icarus: has joined #ruby
[06:08:41] tkuchiki: has joined #ruby
[06:10:17] Nilium: jud: Not sure what you're asking about.
[06:10:43] jud: oh, arm64. nvm
[06:10:47] Nilium: I had it working on a Pi 2 after building it myself.
[06:10:53] Nilium: Just wasn't really great.
[06:10:57] jpfuentes2: has joined #ruby
[06:12:22] jud: speed or something else?
[06:13:00] jud: im sort of interested to try windows 10 iot core on the pi.. i wonder what distro they based it off of.
[06:13:36] Nilium: Speed's generally not great on the Pi 2, obviously, and besides that a lot of other software I want just plain refuses to work 'cause arm64, of course.
[06:13:59] Nilium: So, I got a MinnowBoard and the general plan is to throw CoreOS and Docker on it, and see how it fares
[06:14:10] Nilium: If all goes well, I'm going to buy several more and turn it into a cluster.
[06:14:19] eGGsha: has joined #ruby
[06:14:30] Nilium: At which point I will have finally accomplished my utterly pointless goal of building a very tiny low-power cluster.
[06:15:50] Nilium: Which I could do with Pi 2s, but getting Docker to work with them would be difficult because all Docker images right now assume your architecture is x86-64
[06:16:15] Nilium: Could probably use Snappy Ubuntu in place of CoreOS, though.
[06:17:00] astrobun_: has joined #ruby
[06:17:05] ruby-lang189: has joined #ruby
[06:18:49] Pavel_Fin: has joined #ruby
[06:20:46] Askilada: has joined #ruby
[06:22:25] yfeldblum: has joined #ruby
[06:22:48] nofxx: Nilium, archlinux-arm , can't find a better distro for those lil bastards
[06:23:01] Nilium: Probably, but I'm not a huge fan of arch
[06:23:05] Scripore: has joined #ruby
[06:23:36] [spoiler]: Nilium: oh what problems did you have with the Pie?
[06:23:40] Nilium: At this point I just run FreeBSD on the Pi 2 and that keeps me happy.
[06:23:50] [spoiler]: and running Ruby, I mean
[06:24:01] Nilium: Just poor performance because of what it is.
[06:24:02] Chau: has joined #ruby
[06:24:52] aganov: has joined #ruby
[06:25:21] nofxx: Nilium, found that new one that's octa core? snapdragon iirc. Lil expensive, ~80 , but might be a better fit for your cluster
[06:25:43] Nilium: I think I saw it, but my concern at this point is just that arm64 support for anything is poor.
[06:25:52] [spoiler]: Why is there a pigeon in my office
[06:26:03] [spoiler]: it's running, too and not flying
[06:26:09] [spoiler]: more like prancing
[06:26:31] Nilium: e.g., Docker, CoreOS, etc. ??? sort of what I'm trying to do as a proof of concept so I can push our office to build a larger cluster of machines for QA/CI/general dev stuff.
[06:26:47] zenspider: aren't all ios devices in the arm64 family?
[06:27:11] Nilium: Not all of the ones that are still supported are
[06:27:19] Nilium: Most are, though
[06:27:46] zenspider: soooo as far as compiler support and stuff goes... arm64 should be pretty tight
[06:28:03] zenspider: might be a good usecase for mruby
[06:28:27] Nilium: Depends on the compiler, but that's not really the main issue.
[06:29:04] [spoiler]: I had zero issues with mruby on pi2
[06:29:06] Nilium: There are plenty of compilers that will work if one doesn't.
[06:29:33] Nilium: But the software I want to run isn't practical nor really working on arm64
[06:29:56] michael_mbp: has joined #ruby
[06:30:14] Nilium: It's not a problem with arm64 or the Pi, it's just a problem with that software not supporting it.
[06:32:07] zenspider: what's the problem?
[06:32:30] [spoiler]: Nilium: is it proprietary software, or does it use some x86_64-specific stuff (I don't even know what the differences between ARM x86_64, actually)
[06:32:35] solars: has joined #ruby
[06:32:36] [spoiler]: never looked up ARM
[06:32:47] Nilium: After saying it several times, I kind of just want to drop the conversation now
[06:32:47] [spoiler]: I just know vaguely what it is
[06:33:10] [spoiler]: Nilium: Oh, OK! Sorry, if I was being pushy.
[06:33:10] j4cknewt: has joined #ruby
[06:33:20] Nilium: Not at all, it's just annoying repeating myself.
[06:33:32] solars: has joined #ruby
[06:34:23] Nilium: There's only so many times I can say "CoreOS and Docker don't support arm64"
[06:34:43] khebbie: has joined #ruby
[06:34:52] Nilium: Or even ARM. Or x86. Just x86-64.
[06:35:04] [spoiler]: Nilium: I went and read the backlog :)
[06:35:22] [spoiler]: Nilium: I missed the conversation from earlier
[06:36:13] Oog: has joined #ruby
[06:37:40] ellisTAA: has joined #ruby
[06:37:42] codecop: has joined #ruby
[06:40:51] sinkensabe: has joined #ruby
[06:41:32] Pavel_Fin: has joined #ruby
[06:42:09] icarus: has joined #ruby
[06:44:10] troulouliou_div2: has joined #ruby
[06:45:24] ankov: has joined #ruby
[06:45:58] sinkensabe: has joined #ruby
[06:47:36] mary5030: has joined #ruby
[06:50:45] Pupeno: has joined #ruby
[06:52:23] ellisTAA: has joined #ruby
[06:54:32] arup_r: has joined #ruby
[06:55:32] Philipp__: has joined #ruby
[06:56:09] davedev24: has joined #ruby
[06:56:55] joe2: has joined #ruby
[06:57:28] jokester: has joined #ruby
[06:59:17] Cust0sLim3n: has joined #ruby
[06:59:36] blackmesa: has joined #ruby
[07:02:36] alphaatom: has joined #ruby
[07:03:00] Stan: has joined #ruby
[07:03:56] leat: has joined #ruby
[07:04:11] k3asd`: has joined #ruby
[07:04:41] joonty: has joined #ruby
[07:05:13] djbkd: has joined #ruby
[07:05:57] railsraider: has joined #ruby
[07:06:48] yh: has joined #ruby
[07:12:59] anisha: has joined #ruby
[07:14:27] ishahnaz: has joined #ruby
[07:14:50] eGGsha: has joined #ruby
[07:17:13] Igor2__: bumped into the last problem: on x86_64, debian, /usr/lib/libmruby.a is not compiled with -fPIC, at least the compiler is complaining when I try to link
[07:17:46] Oog: has joined #ruby
[07:17:55] UtkarshRay: has joined #ruby
[07:18:06] [spoiler]: Igor2__: you can use the rbconf file to add -fPIC I remember having that issue I think
[07:18:21] [spoiler]: although I didn't install it from the repo
[07:18:31] [spoiler]: I just downloaded the source
[07:18:39] [spoiler]: and built manually
[07:18:49] Igor2__: i'm just doing that
[07:18:55] Igor2__: if it works, i'll issue a debian bugreport
[07:20:08] TheHodge: has joined #ruby
[07:20:21] alphaatom: has joined #ruby
[07:21:10] workmad3: has joined #ruby
[07:21:16] lxsameer: has joined #ruby
[07:22:10] cron: has joined #ruby
[07:22:23] towski_: has joined #ruby
[07:23:29] nomadic: has joined #ruby
[07:23:29] nomadic: has joined #ruby
[07:24:04] marsjani-: has joined #ruby
[07:24:24] `derpy: has joined #ruby
[07:24:40] Iskarlar: has joined #ruby
[07:25:04] perrier: has joined #ruby
[07:25:23] charliesome: has joined #ruby
[07:25:49] ironcamel: has joined #ruby
[07:25:52] Igor2__: cool, now it works on x86_64 too, passes the test
[07:25:54] low-profile: has joined #ruby
[07:25:58] ghormoon: has joined #ruby
[07:26:03] lorn: has joined #ruby
[07:26:12] Matadoer: has joined #ruby
[07:26:31] sindork: has joined #ruby
[07:26:43] Igor2__: I think my adventure with ruby ends here, thanks everyone for the help
[07:26:51] Igor2__: will write the debian bugreport later today
[07:26:52] Coraline: has joined #ruby
[07:27:11] DifferentLambda: has joined #ruby
[07:27:35] [spoiler]: Igor2__: got it to work?
[07:27:53] FATZOMBI: has joined #ruby
[07:28:06] Iskarlar: has joined #ruby
[07:28:33] sectionme: has joined #ruby
[07:30:29] Igor2__: yup, works on x86_64 after recompiled with -fPIC
[07:30:41] [spoiler]: yorickpeterse: hi <3></3>
[07:31:20] [spoiler]: Igor2__: I'd assume it should be compiled with -fPIC by default
[07:31:21] alex88: has joined #ruby
[07:31:24] Igor2__: (i wanted to try it because on x86_64 sizeof(int) != sizeof(void *) so if i had any invalid int<->ptr conversion it would ahve bitten me)
[07:31:24] [spoiler]: wonder why it isn't
[07:31:38] Igor2__: this why i will file a bug report to debian
[07:32:07] Igor2__: they will decide if it was intentional or if it wasn't, they can fix their build
[07:32:32] [spoiler]: Igor2__: I meant mruby in general. Are there any disadvantages to -fPIC?
[07:32:33] Igor2__: (i didn't use the official release of mruby, I used the debian package)
[07:33:10] Igor2__: i think -fPIC adds some overhead, but i am unsure how/where exactly
[07:33:33] Igor2__: I am compiling my software to like 4..8 architectures normally
[07:33:50] Igor2__: and x86_64 is the only one that requires -fPIC, on the others it's optional
[07:36:56] greenarrow: has joined #ruby
[07:36:59] Igor2__: did some research
[07:37:01] wldcordeiro_: has joined #ruby
[07:37:05] Igor2__: it seems the overhead is paltform dependent
[07:37:47] Igor2__: on i386 it affects every function prologue by loading a pic register and using relative addressing
[07:38:29] Igor2__: but i guess i should look at some asm output
[07:39:09] [spoiler]: Igor2__: I am confused because I didn't think/know you needed fPIC for static libraries (I could be wrong)
[07:40:07] nhhagen: has joined #ruby
[07:40:21] devoldmx: has joined #ruby
[07:40:47] Igor2__: I am building a dynamic library
[07:40:58] sbhatore: has joined #ruby
[07:41:03] Igor2__: that in turn depends on a static library (because libmruby is shipped as a static)
[07:41:22] [spoiler]: Right, but if you link your static library into the dynamic one, will it need fPIC?
[07:41:29] Igor2__: because of my dynamic lib, i need all the .o files to be linked with -fPIC, whether they are coming from my source tree or elsewhere
[07:41:49] Igor2__: static lib is no magic
[07:41:58] Igor2__: .a is just an archive format like tar or zip
[07:42:04] [spoiler]: I realise that
[07:42:05] Igor2__: so it's just a bunch of .o files
[07:42:21] Igor2__: when i build my .so, the rule is that i need all .o files compiled with -fPIC
[07:42:48] 14WAATIYW: has joined #ruby
[07:42:50] conor_: has joined #ruby
[07:42:52] Igor2__: when debian (or anyone else) packages a library, the packager can't predict what a random user will use the lib for
[07:42:59] low-profile: has joined #ruby
[07:42:59] marsjaninzmarsa: has joined #ruby
[07:42:59] nofxx: has joined #ruby
[07:42:59] Rubie: has joined #ruby
[07:42:59] kp666: has joined #ruby
[07:42:59] chipotle: has joined #ruby
[07:42:59] bronson: has joined #ruby
[07:42:59] c0ncealed: has joined #ruby
[07:42:59] Shibo: has joined #ruby
[07:42:59] wheresmyjetpack: has joined #ruby
[07:42:59] akosednar: has joined #ruby
[07:42:59] duderonomy: has joined #ruby
[07:42:59] mago0: has joined #ruby
[07:42:59] robbyoconnor: has joined #ruby
[07:42:59] wldcordeiro: has joined #ruby
[07:42:59] programmerq: has joined #ruby
[07:42:59] devn: has joined #ruby
[07:42:59] andersh: has joined #ruby
[07:42:59] JimmyNeutron: has joined #ruby
[07:42:59] humd1ng3r: has joined #ruby
[07:42:59] njr: has joined #ruby
[07:42:59] bmcginty: has joined #ruby
[07:42:59] tercenya: has joined #ruby
[07:42:59] StevenXL: has joined #ruby
[07:42:59] matp: has joined #ruby
[07:42:59] sarlalian: has joined #ruby
[07:43:00] DanKnox: has joined #ruby
[07:43:00] Nirgali43: has joined #ruby
[07:43:00] nickjj: has joined #ruby
[07:43:00] corpsicle: has joined #ruby
[07:43:00] lanemeyer: has joined #ruby
[07:43:00] ipstatic: has joined #ruby
[07:43:00] scpike: has joined #ruby
[07:43:00] hal_9000: has joined #ruby
[07:43:00] sevin: has joined #ruby
[07:43:00] lampd1: has joined #ruby
[07:43:00] emdub: has joined #ruby
[07:43:00] adam12: has joined #ruby
[07:43:00] ZYPP: has joined #ruby
[07:43:00] dont-panic: has joined #ruby
[07:43:00] _5moufl: has joined #ruby
[07:43:00] shadeslayer: has joined #ruby
[07:43:00] nlsun: has joined #ruby
[07:43:00] mrsolow: has joined #ruby
[07:43:00] Kharma: has joined #ruby
[07:43:00] graft: has joined #ruby
[07:43:00] shortdudey123: has joined #ruby
[07:43:00] iszak: has joined #ruby
[07:43:00] BraddPitt: has joined #ruby
[07:43:00] oz: has joined #ruby
[07:43:00] RTG`: has joined #ruby
[07:43:00] yie: has joined #ruby
[07:43:00] Skelz0r: has joined #ruby
[07:43:00] brainslug: has joined #ruby
[07:43:00] cescalante: has joined #ruby
[07:43:00] phreakocious: has joined #ruby
[07:43:00] ashleyhindle: has joined #ruby
[07:43:00] MisterRusty: has joined #ruby
[07:43:01] irk_: has joined #ruby
[07:43:01] martinbjeldbak: has joined #ruby
[07:43:01] C0deMaver1ck_: has joined #ruby
[07:43:01] Killerkeksdose: has joined #ruby
[07:43:01] olblak: has joined #ruby
[07:43:01] drzel: has joined #ruby
[07:43:01] bmn_: has joined #ruby
[07:43:01] Flipez: has joined #ruby
[07:43:01] justinmcp: has joined #ruby
[07:43:01] shawnacscott: has joined #ruby
[07:43:01] Biohazard_: has joined #ruby
[07:43:01] petridish: has joined #ruby
[07:43:01] wmoxam: has joined #ruby
[07:43:01] apeiros: has joined #ruby
[07:43:01] nirix: has joined #ruby
[07:43:01] dostoyevsky: has joined #ruby
[07:43:01] madhatter: has joined #ruby
[07:43:01] rikai: has joined #ruby
[07:43:01] scottstamp: has joined #ruby
[07:43:01] pleiosaur: has joined #ruby
[07:43:01] EnergyCoffee: has joined #ruby
[07:43:01] MuffinPimp: has joined #ruby
[07:43:01] ec\_: has joined #ruby
[07:43:01] kenichi: has joined #ruby
[07:43:15] mago0_: has joined #ruby
[07:43:18] Igor2__: so i think if an arch requires -fPIC, all the libs need to be compiled with that, even if they are static
[07:43:19] krz: has joined #ruby
[07:43:24] chipotle_: has joined #ruby
[07:43:29] tercenya_: has joined #ruby
[07:43:31] bronson_: has joined #ruby
[07:44:00] hal_9000_: has joined #ruby
[07:44:55] Igor2__: just made some test compilations with gcc on x86_64, there's no diff between fPIC and no-fPIC objects on code level
[07:45:08] marsjani-: has joined #ruby
[07:45:10] MuffinPimp: has joined #ruby
[07:45:25] RTG`: has joined #ruby
[07:45:33] Igor2__: (while linking, my error is about having a .rodata section, which is not allowed in shared libs)
[07:45:40] wldcordeiro_: has joined #ruby
[07:45:49] robbyoconnor: has joined #ruby
[07:46:02] thiagovsk: has joined #ruby
[07:46:44] [spoiler]: Hmm, interesting. I learned something, then :)
[07:46:51] dostoyevsky: has joined #ruby
[07:46:53] EnergyCoffee: has joined #ruby
[07:47:02] Igor2__: hmm, strange, there's no diff in the .o either
[07:47:04] justinmcp: has joined #ruby
[07:47:11] Igor2__: it smells like i am doing something wrong
[07:47:11] corpsicle: has joined #ruby
[07:47:12] olblak: has joined #ruby
[07:47:16] dont-panic: has joined #ruby
[07:47:20] ashleyhindle: has joined #ruby
[07:47:20] devn: has joined #ruby
[07:47:28] StevenXL: has joined #ruby
[07:47:30] irk: has joined #ruby
[07:47:33] Nirgali42: has joined #ruby
[07:47:33] emdub: has joined #ruby
[07:47:37] pleiosaur: has joined #ruby
[07:47:43] graft: has joined #ruby
[07:47:46] tomphp: has joined #ruby
[07:47:48] iszak: has joined #ruby
[07:47:48] iszak: has joined #ruby
[07:47:53] bmcginty: has joined #ruby
[07:47:55] wmoxam: has joined #ruby
[07:47:56] Skelz0r: has joined #ruby
[07:48:00] njr: has joined #ruby
[07:48:03] scpike: has joined #ruby
[07:48:04] yie: has joined #ruby
[07:48:04] Killerkeksdose: has joined #ruby
[07:48:30] tvw: has joined #ruby
[07:48:53] sbhatore: has joined #ruby
[07:48:54] juanpablo__: has joined #ruby
[07:48:55] rikai: has joined #ruby
[07:49:00] Igor2__: ahh, ok, i had a pure function
[07:49:12] Igor2__: it starts to matter if i reference external symbols
[07:49:30] shadeslayer: has joined #ruby
[07:50:05] Zggb: has joined #ruby
[07:50:42] Igor2__: hah, yeah, overhead
[07:50:53] Igor2__: so i have an external function call from my function
[07:51:01] oz: has joined #ruby
[07:51:02] Igor2__: on x86_64 there are only two little differences
[07:51:10] shawnacscott: has joined #ruby
[07:51:13] nlsun: has joined #ruby
[07:51:21] martinbjeldbak: has joined #ruby
[07:51:26] charliesome: has joined #ruby
[07:51:30] _5moufl: has joined #ruby
[07:51:36] sinkensabe: has joined #ruby
[07:51:38] shortdudey123: has joined #ruby
[07:51:39] Igor2__: with fpic, i have a leaq instead of a mov, so an indirection, and later on a call to a @PLT function instead of a direct call to the function
[07:51:45] Igor2__: so on x86_64 it's almost neglible
[07:51:46] brainslug: has joined #ruby
[07:51:49] sbhatore: has joined #ruby
[07:51:49] Igor2__: on i386, it looks worse
[07:51:50] ipstatic: has joined #ruby
[07:51:54] drzel: has joined #ruby
[07:52:03] C0deMaver1ck: has joined #ruby
[07:52:03] MisterRusty: has joined #ruby
[07:52:04] Biohazard: has joined #ruby
[07:52:06] Igor2__: - subl $24, %esp
[07:52:06] Igor2__: + pushl %ebx
[07:52:06] Igor2__: + subl $20, %esp
[07:52:06] Igor2__: + .cfi_offset 3, -12
[07:52:06] Igor2__: + call __i686.get_pc_thunk.bx
[07:52:07] Igor2__: + addl $_GLOBAL_OFFSET_TABLE_, %ebx
[07:52:16] Igor2__: (- is the no-fpic, + is the fpic version)
[07:52:23] humd1ng3r: has joined #ruby
[07:52:27] baweaver: You do realize this is ruby right?
[07:52:29] kenichi: has joined #ruby
[07:52:34] Igor2__: yup, sorry
[07:52:36] sevin: has joined #ruby
[07:52:36] Flipez: has joined #ruby
[07:52:44] nirix: has joined #ruby
[07:52:45] adam|: has joined #ruby
[07:52:47] DanKnox: has joined #ruby
[07:53:08] cescalante: has joined #ruby
[07:53:12] nobitanobi: has joined #ruby
[07:53:35] shredding: has joined #ruby
[07:53:38] apeiros: has joined #ruby
[07:54:04] bmn: has joined #ruby
[07:54:08] gagrio: has joined #ruby
[07:54:31] [spoiler]: baweaver: it is marginally realted :P
[07:54:35] [spoiler]: He was compling mruby
[07:54:47] baweaver: netsplit hid most of it
[07:55:01] [spoiler]: Igor2__: we can continue in #ruby-offtopic
[07:55:02] baweaver: seemed odd there was asm around
[07:55:09] ec\: has joined #ruby
[07:55:09] lanemeyer: has joined #ruby
[07:55:25] [spoiler]: baweaver: yeah I understand what you mean :)
[07:55:31] madhatter: has joined #ruby
[07:56:57] phreakocious: has joined #ruby
[07:57:42] hakunin: has joined #ruby
[07:57:55] infernix: has joined #ruby
[07:58:19] JimmyNeutron: has joined #ruby
[07:58:30] nofxx: has joined #ruby
[07:58:34] sarlalian: has joined #ruby
[07:58:44] akosednar: has joined #ruby
[07:58:49] kp666: has joined #ruby
[07:58:56] lxsameer: has joined #ruby
[07:59:52] low-profile: has joined #ruby
[07:59:58] programmerq: has joined #ruby
[08:00:00] fflush: has joined #ruby
[08:00:10] blackmesa: has joined #ruby
[08:00:13] matp: has joined #ruby
[08:00:27] lampd1: has joined #ruby
[08:01:00] kp666: has joined #ruby
[08:01:19] ZYPP: has joined #ruby
[08:01:20] crdpink: has joined #ruby
[08:01:28] Platini: has joined #ruby
[08:01:38] mikecmpbll: has joined #ruby
[08:02:06] fflush: good morning
[08:03:00] kp666: has joined #ruby
[08:03:24] joonty: has joined #ruby
[08:04:25] bumbar_: has joined #ruby
[08:04:39] Coldblackice: has joined #ruby
[08:05:13] kp666: has joined #ruby
[08:06:06] celly: has joined #ruby
[08:08:19] charliesome: has joined #ruby
[08:08:31] tomphp: has joined #ruby
[08:08:31] bweston92: has joined #ruby
[08:10:38] stoffus: has joined #ruby
[08:10:41] Oog: has joined #ruby
[08:10:46] c0ncealed: has joined #ruby
[08:10:53] gagrio: has joined #ruby
[08:14:15] sameerynho: has joined #ruby
[08:15:57] apfeluser: has joined #ruby
[08:20:51] bodgix: has joined #ruby
[08:21:01] vdamewood: has joined #ruby
[08:21:24] jhass: -oo Radar jhass
[08:25:11] Pupeno: has joined #ruby
[08:25:48] Thermatix: has joined #ruby
[08:26:26] TvL2386: has joined #ruby
[08:26:43] arquebus: has joined #ruby
[08:27:59] lessless: has joined #ruby
[08:27:59] pawnbox: has joined #ruby
[08:28:21] mrtg9970: has joined #ruby
[08:28:40] lokulin: has joined #ruby
[08:28:51] Oog: has joined #ruby
[08:29:03] iamninja: has joined #ruby
[08:32:44] mikecmpbll: !isitfriday ..
[08:32:58] mikecmpbll: ACTION quits in shame, wrong room.
[08:33:15] jenrzzz: has joined #ruby
[08:33:23] darkf_: has joined #ruby
[08:34:33] yawniek: i'm completely puzzled, code that uses 30gb+ memory on osx uses 700mb on linux. mainly AA's and RBTrees
[08:34:55] yawniek: ups wrong channel sry
[08:35:20] adaedra: ACTION renames #ruby to #wrongchannel
[08:36:00] sbhatore: has joined #ruby
[08:36:02] corpsicle: that way its always the right channel!
[08:36:21] mikecmpbll: what does helpa do in here anyway? :P just log?
[08:36:53] sectionme: has joined #ruby
[08:37:05] soc42: has joined #ruby
[08:37:39] jbw: has joined #ruby
[08:37:53] chthon: has joined #ruby
[08:38:04] iamsnes: has joined #ruby
[08:38:30] startupality: has joined #ruby
[08:38:46] adaedra: mikecmpbll: it's muted
[08:38:56] mikecmpbll: poor helpa :(
[08:38:56] adaedra: so it tries to answer...
[08:39:32] kidoz: has joined #ruby
[08:39:48] yeticry: has joined #ruby
[08:41:27] apeiros: mikecmpbll: yes, it logs
[08:41:52] mikecmpbll: apeiros: ????
[08:41:56] michael_mbp: has joined #ruby
[08:42:38] amoeba: has joined #ruby
[08:42:46] scottstamp: has joined #ruby
[08:43:09] marr: has joined #ruby
[08:43:20] khebbie: has joined #ruby
[08:44:02] iamsnes: has joined #ruby
[08:44:04] BraddPitt: has joined #ruby
[08:44:47] htmldrum: has joined #ruby
[08:45:04] yeticry: has joined #ruby
[08:45:35] RegulationD: has joined #ruby
[08:45:39] nisstyre: has joined #ruby
[08:45:50] startupality: has joined #ruby
[08:45:58] Kharma: has joined #ruby
[08:46:28] mrsolow: has joined #ruby
[08:46:45] f4cl3y: has joined #ruby
[08:46:56] matcouto: has joined #ruby
[08:48:12] senayar: has joined #ruby
[08:48:12] senayar: has joined #ruby
[08:48:21] dionysus69: has joined #ruby
[08:48:29] startupality: has joined #ruby
[08:49:26] LMity: has joined #ruby
[08:51:24] Pisuke: has joined #ruby
[08:53:06] iamsnes: has joined #ruby
[08:54:19] nobitanobi: has joined #ruby
[08:54:47] galeido: has joined #ruby
[08:56:33] quimrstorres: has joined #ruby
[08:58:00] dumdedum: has joined #ruby
[08:58:43] ekleog: has joined #ruby
[08:58:54] sbhatore: has joined #ruby
[08:58:58] iamsnes: has joined #ruby
[08:59:49] xgt001: has joined #ruby
[09:00:20] Iskarlar: has joined #ruby
[09:00:39] [k-: has joined #ruby
[09:00:56] blackmesa: has joined #ruby
[09:01:21] sideshowcoder: has joined #ruby
[09:02:55] FATZOMBI: has joined #ruby
[09:04:26] ekleog: Hi there! Just wondering, is there a way to test whether some function prints something to stdout?
[09:04:27] c0m0: has joined #ruby
[09:04:40] apeiros: ekleog: stub/mock $stdout
[09:04:47] leafybasil: has joined #ruby
[09:04:51] ekleog: (I'm 5-hour-new to ruby, so please forgive if my question is stupid)
[09:05:06] apeiros: $stdout = StringIO.new; runyourstuff; $stdout.string == "expected output"
[09:05:09] quimrstorres: has joined #ruby
[09:05:24] apeiros: note that this may not work for stuff which prints from native (C) code
[09:05:42] ekleog: OK, thanks!
[09:06:07] apeiros: also note that some things write to $stderr, not $stdout. and some others fail to follow convention and use STDOUT/STDERR
[09:06:10] iamsnes: has joined #ruby
[09:07:17] yh: has joined #ruby
[09:07:19] iamsnes: has joined #ruby
[09:07:23] dhjondoh: has joined #ruby
[09:07:28] jhass: ekleog: or does "test" mean rspec or minitest?
[09:07:42] ekleog: Well, ATM that's just for grabbing from puts, so it should be OK, but I'll keep that in mind
[09:08:04] face: has joined #ruby
[09:08:09] ekleog: jhass: The tutorials I followed all used minitest so I'm going for minitest
[09:08:58] jhass: ekleog: http://www.rubydoc.info/gems/minitest/Minitest/Assertions#assert_output-instance_method
[09:09:28] jhass: http://www.rubydoc.info/gems/minitest/Minitest/Assertions#capture_io-instance_method
[09:09:49] jhass: or http://www.rubydoc.info/gems/minitest/Minitest/Expectations#assert_output-instance_method
[09:10:21] ekleog: ACTION returns to learning searches
[09:11:21] DanielI: has joined #ruby
[09:11:47] DanielI: has joined #ruby
[09:12:36] [spoiler]: minitest is nice because less typing
[09:12:52] sectionme: has joined #ruby
[09:12:55] [spoiler]: I feel like I type so much with rspev
[09:13:04] [spoiler]: you know what I mena
[09:13:06] jhass: use shoulda ? :P
[09:13:40] jhass: http://matchers.shoulda.io/
[09:13:47] [spoiler]: Lmao I saw shoulda
[09:14:10] startupality: has joined #ruby
[09:14:17] apeiros: either [spoiler]'s autocorrection is working overtime, or it's vacation???
[09:14:23] dhjondoh: has joined #ruby
[09:14:39] DoubleMalt: has joined #ruby
[09:14:54] [spoiler]: apeiros: ha. ha. ha. :P
[09:15:50] tonios57: has joined #ruby
[09:16:14] khebbie: has joined #ruby
[09:17:24] Rubie: has joined #ruby
[09:17:42] Guest32: has joined #ruby
[09:18:24] iamsnes: has joined #ruby
[09:19:19] blackmesa: has joined #ruby
[09:20:35] techsethi: has joined #ruby
[09:20:38] chichou: has joined #ruby
[09:20:48] dhjondoh: has joined #ruby
[09:22:11] livcd: what's this in ruby ? n ** 2
[09:22:20] gregf_: >> 2 ** 2
[09:22:21] ruboto: gregf_ # => 4 (https://eval.in/416253)
[09:22:21] Pathfinder: has joined #ruby
[09:22:30] adaedra: livcd: pow
[09:22:44] [spoiler]: gregf_: lol that wasn't the best example
[09:22:54] ruboto: adaedra # => 9 (https://eval.in/416254)
[09:23:04] [spoiler]: that is much better
[09:23:23] [spoiler]: base ** exponent, basically
[09:23:50] jhass: &ri Fixnum#**
[09:23:50] `derpy: http://www.rubydoc.info/stdlib/core/Fixnum#%2A%2A-instance_method
[09:23:51] gregf_: >> [2,3,4].each { |v| [ v ** 2, v * v ] }
[09:23:52] ruboto: gregf_ # => [2, 3, 4] (https://eval.in/416255)
[09:24:01] yh: has joined #ruby
[09:24:02] gregf_: >> [2,3,4].map { |v| [ v ** 2, v * v ] }
[09:24:03] ruboto: gregf_ # => [[4, 4], [9, 9], [16, 16]] (https://eval.in/416256)
[09:24:18] livcd: but i get it...it makes much more sense when i translate powe to my native language :3
[09:26:45] leafybasil: has joined #ruby
[09:27:46] apeiros: livcd: <pedantic mode>what n ** 2 does depends entirely on n, since ** is a method call</pedantic mode>
[09:28:16] adaedra: apeiros.pedantic_mode = false
[09:28:53] apeiros: >> class Foo; def initialize(str); @str = str; end; def **(n); @str * n * " ** "; end; end; n = Foo.new("weeee"); n ** 4
[09:28:53] khebbie: has joined #ruby
[09:28:54] ruboto: apeiros # => no implicit conversion of String into Integer (TypeError) ...check link for more (https://eval.in/416257)
[09:29:04] apeiros: ACTION hits ruboto with a trout
[09:29:13] yorickpeterse: ACTION slaps ruboto around with a copy of parse.y
[09:29:17] adaedra: apeiros.class.send(:private, :pedantic_mode=)
[09:29:29] bruno-: has joined #ruby
[09:29:56] jhass: adaedra: you mean :undef
[09:30:30] apeiros: >> class Foo; def initialize(str); @str = str; end; def **(n); Array.new(n, @str) * " ** "; end; end; n = Foo.new("weeee"); n ** 4
[09:30:31] ruboto: apeiros # => "weeee ** weeee ** weeee ** weeee" (https://eval.in/416258)
[09:30:40] sectionme: has joined #ruby
[09:30:47] apeiros: yorickpeterse: that's unnecessarily brutal, no?
[09:30:48] khebbie: has joined #ruby
[09:30:59] techsethi: has joined #ruby
[09:32:13] adaedra: ACTION slaps yorickpeterse around a bit with a large trout
[09:32:40] cornerma1: has joined #ruby
[09:32:58] krz: has joined #ruby
[09:33:41] yorickpeterse: I removed the non funny ones
[09:33:46] yorickpeterse: so now it picks all the brutal ones
[09:34:24] yorickpeterse: ACTION finds the closest large object and gives adaedra a slap with it
[09:35:00] adaedra: ACTION slaps yorickpeterse's bottom and grins cheekily
[09:35:13] adaedra: Ah, there's this one too
[09:37:18] livcd: great thanks
[09:37:27] juanpablo__: has joined #ruby
[09:37:54] joonty: has joined #ruby
[09:38:52] dc: has joined #ruby
[09:39:08] galeido^: has joined #ruby
[09:39:52] dumdedum: has joined #ruby
[09:40:12] dhjondoh: has joined #ruby
[09:41:00] startupality: has joined #ruby
[09:41:04] devoldmx: has joined #ruby
[09:41:21] einarj: has joined #ruby
[09:42:22] yorickpeterse: ACTION breaks out the slapping rod and looks sternly at adaedra
[09:42:35] livcd: is collect and map basically the same ?
[09:43:55] chichou: it's an alias
[09:44:10] nickjj: has joined #ruby
[09:44:11] chichou: collect is the "old" name
[09:44:57] slackbotgz: has joined #ruby
[09:45:18] apeiros: hm, ri doesn't actually properly show that
[09:45:37] platzhirsch: has joined #ruby
[09:46:39] arup_r: has joined #ruby
[09:48:07] workmad3: has joined #ruby
[09:48:24] gregf_: livcd: they're the same , tho i always end up using map :/
[09:48:31] gregf_: >>class Foo; def initialize (val=nil);@a = val || 10;end; def sqr; @a ** 2;end; end; p [Foo.new,Foo.new(2)].map(&:sqr); p [Foo.new,Foo.new(2)].collect(&:sqr)
[09:48:32] ruboto: gregf_ # => [100, 4] ...check link for more (https://eval.in/416262)
[09:49:16] nertzy: has joined #ruby
[09:49:39] al2o3-cr: gregf_: you don't need `p` it uses inspect anyway :P
[09:50:14] gregf_: al2o3-cr: i know ;)
[09:51:20] yfeldblum: has joined #ruby
[09:52:37] sectionme: has joined #ruby
[09:55:23] galeido: has joined #ruby
[09:56:30] yh_: has joined #ruby
[09:57:10] jhass: gregf_: always using map and forgetting collect even exists is something to be happy about!
[09:58:30] platzhirsch: has joined #ruby
[10:00:33] symm-: has joined #ruby
[10:01:40] _blizzy_: has joined #ruby
[10:03:56] yorickpeterse: I updated this Rails engine
[10:04:01] yorickpeterse: now loading the app results in it gobbling up my CPU
[10:04:13] yorickpeterse: already had to force a reboot because it locked up my entire laptop
[10:04:20] yorickpeterse: yay macbooks, can't even handle 100% CPU usage
[10:06:25] sarkyniin: has joined #ruby
[10:07:00] celly: has joined #ruby
[10:11:57] m8: has joined #ruby
[10:12:38] suchness: has joined #ruby
[10:13:05] ekleog: Is there a way to mark a function / class as "private inside the module / gem", or is this only in the documentation?
[10:13:09] _blizzy_: has joined #ruby
[10:13:20] ferhaty: has joined #ruby
[10:13:25] apeiros: ekleog: see Module#private, #protected and #public
[10:13:34] ekleog: Thanks :)
[10:13:40] apeiros: ekleog: you can also mark a constant as private in newer rubies I think
[10:13:44] [spoiler]: how do you mark it as private from the documentation?
[10:13:54] apeiros: be aware though, that that's mostly informal. visibility can be bypassed in ruby.
[10:13:58] Vile`: has joined #ruby
[10:14:10] apeiros: [spoiler]: depends on whether you use rdoc or yard
[10:14:17] [spoiler]: yes, there's instance_eval, as apeiros poonted out
[10:14:27] apeiros: http://www.rubydoc.info/gems/yard/file/docs/Tags.md#private
[10:14:32] sectionme: has joined #ruby
[10:15:04] [spoiler]: they meant document that it's private
[10:15:05] artmann: has joined #ruby
[10:15:12] stamina: has joined #ruby
[10:15:20] apeiros: ah, Module#private_constant - figures
[10:15:34] kannan4k: has joined #ruby
[10:16:19] artmann: has joined #ruby
[10:17:11] Apocalypse: has joined #ruby
[10:17:11] Apocalypse: has joined #ruby
[10:17:15] TheBrayn: has joined #ruby
[10:18:08] al2o3-cr: So is Enumerable#member?/include? aliases?
[10:18:53] BTRE: has joined #ruby
[10:19:34] apeiros: al2o3-cr: yes
[10:19:48] Cork: has joined #ruby
[10:20:02] adaedra: iirc, aliases are together on yard doc
[10:20:09] adaedra: &ri Enumerable#member?
[10:20:09] `derpy: http://www.rubydoc.info/stdlib/core/Enumerable#member%3F-instance_method
[10:20:16] apeiros: al2o3-cr: if the docs don't tell, you can use `$ Enumerable#member?` to check the source
[10:20:19] rickmasta: has joined #ruby
[10:20:25] bradland: has joined #ruby
[10:20:37] apeiros: ok, yard does an extra effort then
[10:20:43] apeiros: because afaik those are not actually aliases
[10:20:48] al2o3-cr: Ok Thanks. Don't think I ever used member?
[10:20:56] apeiros: it's two methods defined in C backed by the same implementation
[10:21:40] apeiros: "not actually aliases" in the sense of not being defined using alias/alias_method
[10:22:02] adaedra: they point to the same C function then
[10:22:06] al2o3-cr: Ah, yeah what apeiros said
[10:22:08] ljarvis: https://github.com/ruby/ruby/blob/trunk/enum.c#L3524-L3525
[10:22:24] adaedra: that's the function yard is showing as source, so it may group them by that
[10:22:50] ValicekB: has joined #ruby
[10:22:52] apeiros: adaedra: yes. that's what I meant by "extra effort"
[10:23:01] apeiros: it checks the backing C function and groups them
[10:23:09] adaedra: that's nice
[10:23:33] ljarvis: i wish rdoc was better so yard didn't exist
[10:23:49] adaedra: ljarvis: make rdoc better then.
[10:24:09] ljarvis: it's not really that simple
[10:25:06] sectionme: has joined #ruby
[10:25:11] yorickpeterse: I wish Ruby had gradual typing so we wouldn't need YARD in the first place
[10:25:37] yorickpeterse: That is, much of the advantage of YARD is that it has a clear syntax for documenting arguments and their types and such
[10:25:45] yorickpeterse: which, if it's somehow part of the language itself, wouldn't be needed
[10:26:57] ytti: i never really understood why dynamic typing implies productivity
[10:27:13] jamesaxl: has joined #ruby
[10:27:34] juzmach: has joined #ruby
[10:27:46] yorickpeterse: Documentation has nothing to do with productivity
[10:28:02] spider-mario: has joined #ruby
[10:28:04] jhass: gradual typing is still dynamic typing
[10:28:21] yorickpeterse: jhass: it's as much dynamic typing as it is static typing
[10:29:00] jhass: I'd say it's a lot closer to dynamic typing, you have similar runtime requirements
[10:29:55] howdoi: has joined #ruby
[10:29:55] iamninja: has joined #ruby
[10:31:09] startupality: has joined #ruby
[10:31:58] DoubleMalt: has joined #ruby
[10:31:59] khebbie: has joined #ruby
[10:32:40] startupality: has joined #ruby
[10:33:04] Thermatix: does any one here have any expertise in getting sprockets to work with Sinatra?
[10:33:25] adaedra: I did it once, but don't really remember
[10:33:34] adaedra: I think I had a guide working
[10:33:36] Thermatix: my problem is that nothing is being rendered out
[10:33:41] Thermatix: It's just... blank
[10:34:06] Thermatix: here's a gist with what I've got so far
[10:34:06] adaedra: ah, may be that I used https://github.com/kalasjocke/sinatra-asset-pipeline
[10:34:06] Thermatix: https://gist.github.com/Thermatix/6c7d579a4962cc905d72
[10:35:19] ljarvis: https://gist.github.com/leejarvis/420a6dac6ccd3ff676a9
[10:36:02] Thermatix: what did you change?
[10:36:27] ljarvis: i fixed the indentation so i could read it
[10:36:30] al2o3-cr: thermatix: indentation
[10:36:39] adaedra: you know you have a diff log on gists?
[10:36:45] Thermatix: oh yeah, for some reason it was stuck on 8 spaces
[10:36:55] Thermatix: and wouldn't let me change it to 2 or 4
[10:37:36] Thermatix: I've been trying to figure this out for hours so now I'm just... at a brick wall
[10:37:48] chichou: has joined #ruby
[10:37:56] adaedra: I think you have to insert the Sprockets middleware at a moment
[10:37:59] sameerynho: has joined #ruby
[10:38:07] shock_one: has joined #ruby
[10:38:14] Thermatix: how would I do that without rackup?
[10:38:21] Thermatix: I mean a .ru file
[10:39:23] adaedra: how do you run your app then?
[10:39:52] Thermatix: my app is packaged as a gem
[10:40:03] melter: has joined #ruby
[10:40:10] Thermatix: and I use an executable to start my app
[10:40:23] rodfersou: has joined #ruby
[10:41:36] sectionme: has joined #ruby
[10:43:00] sdothum: has joined #ruby
[10:43:04] pawnbox: has joined #ruby
[10:43:54] sameerynho: has joined #ruby
[10:44:14] wldcordeiro: has joined #ruby
[10:46:03] ytti: can someone recommend me library to produce simple X/Y time series graphs
[10:46:10] ytti: like mrtg/rrdtool style
[10:46:14] senayar: has joined #ruby
[10:46:15] senayar: has joined #ruby
[10:46:29] ytti: bonus points for anti-alias manager friendly rendering
[10:46:32] ytti: (unlike gnuplot)
[10:47:00] senayar: has joined #ruby
[10:47:28] Thermatix: http://effectif.com/ruby/manor/data-visualisation-with-ruby
[10:47:35] Thermatix: http://sciruby.com/blog/2014/08/23/nyaplot-interactive-plots-generateor-with-ruby/
[10:47:57] darix: influxdb+grafana is probably overkill?:p
[10:48:23] Thermatix: influxdb is just a backend, you still need a frontend
[10:48:31] Thermatix: grafana is pretty slick too
[10:49:53] last_staff: has joined #ruby
[10:50:59] tsvenson: has joined #ruby
[10:51:44] shreknet: has left #ruby: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[10:51:48] khebbie: has joined #ruby
[10:53:21] marr: has joined #ruby
[10:54:41] Thermatix: it's like I'm a conversation killer, just by entering a room I murder all conversations \(0.0)>
[10:56:18] bodgix1: has joined #ruby
[10:57:51] joonty: has joined #ruby
[10:58:00] jbw: has joined #ruby
[10:58:42] omegamike: has joined #ruby
[10:59:24] stardiviner: has joined #ruby
[11:01:20] bodgix: has joined #ruby
[11:03:51] basmoura: has joined #ruby
[11:04:34] joe2: has joined #ruby
[11:05:03] bodgix: has joined #ruby
[11:05:11] jokester: has joined #ruby
[11:05:18] darix: thermatix: that skill can be useful at times ;)
[11:05:55] ferhaty: has joined #ruby
[11:06:22] adaedra: *woop* *woop*
[11:07:38] adaedra: I herd "murder"
[11:07:40] omegahm: has joined #ruby
[11:10:02] charliesome: has joined #ruby
[11:12:01] allcentury: has joined #ruby
[11:12:13] sarkyniin: has joined #ruby
[11:13:51] lxsameer_: has joined #ruby
[11:14:57] rdark: has joined #ruby
[11:16:36] omegamike: has joined #ruby
[11:16:52] User458764: has joined #ruby
[11:17:28] Trynemjoel: has joined #ruby
[11:18:57] joonty: has joined #ruby
[11:20:55] dangerousdave: has joined #ruby
[11:23:05] bodgix: has joined #ruby
[11:24:01] quimrstorres: has joined #ruby
[11:24:23] AlexRussia: has joined #ruby
[11:26:13] juanpablo__: has joined #ruby
[11:26:49] monzie: has joined #ruby
[11:30:00] Thermatix: yeah, the conversation was killed dead.
[11:30:04] shevy: le baguette murder
[11:30:44] shevy: ninja-maid-robot cool nick \o/
[11:30:55] Rubie: has joined #ruby
[11:30:57] ninja-maid-robot: shevy: Heh, ty. :-)
[11:31:18] frozen3: has joined #ruby
[11:31:25] bodgix: has joined #ruby
[11:32:04] jbw: has joined #ruby
[11:32:32] ninja-maid-robot: Since I'm talking here already, what guides to Ruby metaprogramming and DSLs would you guys recommend?
[11:32:35] bruno-: has joined #ruby
[11:32:57] Thermatix: https://rubymonk.com/learning/books/2-metaprogramming-ruby/chapters/32-introduction-to-metaprogramming/lessons/75-being-meta
[11:33:02] northfurr: has joined #ruby
[11:33:10] Thermatix: the zen kind ;D
[11:33:10] ninja-maid-robot: thermatix: Ah, thanks! :-)
[11:34:16] uw667: has joined #ruby
[11:34:56] blackmesa: has joined #ruby
[11:35:35] stamina: has joined #ruby
[11:36:18] cohiijay: has joined #ruby
[11:36:21] yorickpeterse: ok well this is a nice error: adding an undefined method call in my HAML layout causes Rails to gobble up 100% CPU
[11:36:25] krz: has joined #ruby
[11:36:25] yorickpeterse: and apparently query the DB to death....
[11:38:29] Trynemjoel: has joined #ruby
[11:39:31] krz: has joined #ruby
[11:40:20] fgo: has joined #ruby
[11:40:47] Oog: has joined #ruby
[11:41:56] olistik: has joined #ruby
[11:42:36] but3k4: has joined #ruby
[11:43:49] dorei: has joined #ruby
[11:44:21] shevy: do you people put up include statements and extend statements together? such as: include Foo; extend Bar
[11:44:30] Scripore: has joined #ruby
[11:45:27] iateadonut: has joined #ruby
[11:46:16] Chau: has joined #ruby
[11:47:52] senayar: has joined #ruby
[11:48:52] mandarinkin: has joined #ruby
[11:50:05] northfurr: has joined #ruby
[11:50:54] yorickpeterse: an undefined method error leading to 100% CPU usage
[11:50:58] yorickpeterse: and no error being outputted
[11:51:04] yorickpeterse: man I love Rails
[11:51:11] joonty: has joined #ruby
[11:51:12] UtkarshRay: has joined #ruby
[11:51:15] leat: has joined #ruby
[11:51:22] yorickpeterse: so tempted to just smash my laptop against the wall
[11:51:29] davedev24: has joined #ruby
[11:51:47] jhass: true rockstar programmer!
[11:52:19] yorickpeterse: https://github.com/rails/rails/issues/11068 this sounds exactly like my problem
[11:53:07] nerio: has joined #ruby
[11:53:33] mrtg9970: has joined #ruby
[11:53:35] sameerynho: has joined #ruby
[11:54:05] rbennacer: has joined #ruby
[11:54:18] adaedra: Your problem is that you use rails :v
[11:54:28] shevy: and you did not write better alternatives!
[11:55:20] jhass: oh, shevy defining rails, something for the quote db
[11:55:42] shevy: defining?
[11:55:51] jhass: defending
[11:56:01] ldnunes: has joined #ruby
[11:56:02] jhass: idk, something's broken with me again today
[11:56:04] shevy: ACTION scratches his head.
[11:56:06] conor_: has joined #ruby
[11:56:34] chichou: the problem is that you use HAML* :p
[11:56:36] shevy: may be the heat
[11:56:57] jhass: mmh, 28.5??C room temperature, maybe
[11:57:08] shevy: note how the issue was closed yorickpeterse :)
[11:57:34] shevy: I guess they can't find the bug
[11:57:40] olivierrr: has joined #ruby
[11:57:57] chichou: it sounds like haml related tho
[11:58:12] shevy: good point
[11:58:24] nirvdrum: has joined #ruby
[11:58:51] tkuchiki: has joined #ruby
[12:00:03] chichou: yorickpeterse: can you try with erb instead?
[12:01:06] chichou: oh just read the comment, he said same effect with erb
[12:01:31] chipotle: has joined #ruby
[12:01:32] shevy: a heisenbug
[12:01:34] shevy: you won't find it chichou
[12:02:00] jhass: has joined #ruby
[12:02:37] chichou: I know schr??dinbug never heard of heisenbug before :D
[12:03:06] adaedra: jhass: stop flooding
[12:03:23] jhass: I'm innocent!
[12:03:28] icedp: has joined #ruby
[12:03:29] jhass: ACTION blames weechat
[12:03:29] shevy: what did he do
[12:03:40] adaedra: jhass: away checking maybe
[12:03:55] jhass: most likely, I have a way too high limit :P
[12:03:56] yorickpeterse: I can't just rewrite my whole app to use ERB
[12:04:11] yorickpeterse: also wtf GDB doesn't show anything remotely interesting
[12:04:15] yorickpeterse: nor do the Ruby backtraces
[12:04:17] allcentury: has joined #ruby
[12:04:21] chichou: nevermind, was more about that part :)
[12:04:31] yorickpeterse: literally all I add is:
[12:04:39] yorickpeterse: and it gobbles up 100% CPU
[12:05:04] shevy: swear words add a penalty
[12:05:36] shevy: it's a heisenbug! you'll never find out where it hides
[12:05:54] frozen3: has joined #ruby
[12:06:18] terlar: has joined #ruby
[12:06:44] yorickpeterse: huh, seems to be the GC going crazy
[12:06:47] yorickpeterse: 1,3GB of memory too
[12:07:11] tmtwd: has joined #ruby
[12:07:52] yorickpeterse: and lol, doing an rb_raise from within GDB segfaults Ruby
[12:08:10] shevy: the zombie processes finally won
[12:08:34] blueOxigen: has joined #ruby
[12:09:25] yorickpeterse: well, lets see if this problem also occurs on rbx
[12:10:19] iamninja: has joined #ruby
[12:10:33] krz: has joined #ruby
[12:14:01] NeverDie: has joined #ruby
[12:14:39] senayar: has joined #ruby
[12:15:57] yorickpeterse: on Rbx it at least raises the error
[12:15:59] yorickpeterse: what the fuck MRI
[12:16:48] chichou: just for me to know, which version of MRI are you suing?
[12:16:58] adaedra: and in JRuby, OutOfMemoryExceptionFactoryException
[12:17:39] chichou: bleeding edge :)
[12:17:41] yorickpeterse: well, guess I gotta up to 2.2.2 anyway
[12:17:49] Rixius: has joined #ruby
[12:17:49] yorickpeterse: but now I can at least debug my shit
[12:18:41] centrx: has joined #ruby
[12:21:10] shevy: which version of MRI are we suing
[12:21:19] shevy: I sue all of them!
[12:22:37] Cust0sLim3n: has joined #ruby
[12:22:39] sanguisdex: has joined #ruby
[12:23:22] xcesariox: has joined #ruby
[12:24:12] Me: has joined #ruby
[12:24:25] shevy: Is there a simple strategy to follow to avoid "circular require" problems? For some reason I seem to find it not so easy to avoid that in some projects, and I could not even tell you whether I deliberately would have done so or not (since I can't remember how it came to be to this situation)
[12:25:02] shock_one: has joined #ruby
[12:25:56] centrx: shevy, Draw a diagram on a whiteboard and then stare at it for a few hours
[12:27:36] unver: has joined #ruby
[12:28:10] banister: has joined #ruby
[12:29:37] ctalr: has joined #ruby
[12:29:43] NeverDie_: has joined #ruby
[12:30:38] yh: has joined #ruby
[12:31:33] Kallis: has joined #ruby
[12:31:54] joonty: has joined #ruby
[12:34:06] seggy: has joined #ruby
[12:35:10] seggy: has joined #ruby
[12:35:11] nobitanobi: has joined #ruby
[12:35:15] shevy: centrx I did so already!
[12:35:17] shevy: It's complicated
[12:35:31] lxsameer_: has joined #ruby
[12:36:21] lannonbr: has joined #ruby
[12:38:39] Prizee: has joined #ruby
[12:38:41] Prizee: 3m Win a Playstation 4 For Free Click Here http://tinyurl.com/oswta9d
[12:38:49] phutchins: has joined #ruby
[12:38:50] phutchins1: has joined #ruby
[12:38:51] bruno-: has joined #ruby
[12:39:05] apeiros: !kick Prizee no spam
[12:39:05] helpa: apeiros: No.
[12:39:06] ruboto: ruboto kicked Prizee: spam
[12:39:06] ruboto: -o ruboto
[12:39:14] suchness: Finally can get my playstation
[12:40:03] apeiros: this lovely moment when you start testing against an API and the disparities between docs and reality start to show???
[12:40:58] suchness: I am wondering if it's possible to insert methods onto the method chain lookup in a fashion other than 'push' with subclasses or extending?
[12:41:10] symm-: has joined #ruby
[12:41:12] nobitanobi: has joined #ruby
[12:42:01] juanpablo__: has joined #ruby
[12:42:36] suchness: shevy: Does autoload do that?
[12:43:20] j3r0: has joined #ruby
[12:43:24] Tuxero: has joined #ruby
[12:43:39] rikkipitt: has joined #ruby
[12:43:42] yorickpeterse: welp, problem persists with 2.2.2
[12:43:43] suchness: shevy: Ah nevermind, appears to have been depricated
[12:47:06] RegulationD: has joined #ruby
[12:47:14] rickmasta: has joined #ruby
[12:47:42] [k-: has joined #ruby
[12:48:56] loc22: has joined #ruby
[12:50:12] victortyau: has joined #ruby
[12:50:26] yorickpeterse: aaaaand of course it doesn't occur in a standalone app
[12:50:39] sevenseacat: has joined #ruby
[12:51:53] vt102: has joined #ruby
[12:52:22] shevy: heisenbugs
[12:52:35] bodgix_wrk: has joined #ruby
[12:53:14] bronson: has joined #ruby
[12:54:11] dblessing: has joined #ruby
[12:55:59] chichou: do you have some kind of custom error rendering/rescuing? Not sure it applies to dev env though
[12:56:30] s00pcan: has joined #ruby
[12:56:39] yorickpeterse: There is Rollbar, could be a problem, lets see
[12:58:10] chichou: is your project versioned? you can use bisect with git to "debug" :D
[12:58:13] senayar: has joined #ruby
[12:58:13] senayar: has joined #ruby
[12:58:35] yorickpeterse: Yeah, it's not that easy I'm afraid
[12:58:41] chichou: unless you have like thousands of commits
[12:58:54] yorickpeterse: that's one part of it
[12:59:21] bmurt: has joined #ruby
[12:59:27] yorickpeterse: The pattern I'm seeing CPU/memory wise suggests it ends up in a loop allocating lots of objects, which could be an error handler of sorts ending up in an infinite loop
[12:59:34] yorickpeterse: so now we play the game of "lets disable every Gem"
[12:59:56] chichou: out of interest, how many gems are you using?
[13:00:49] [k-_: has joined #ruby
[13:01:49] senayar: has joined #ruby
[13:02:27] frozen3: has joined #ruby
[13:02:28] yorickpeterse: errr 62 actually
[13:03:07] Thermatix: has joined #ruby
[13:03:18] decoponio: has joined #ruby
[13:03:48] mrtg9970: has joined #ruby
[13:03:54] rbennacer: has joined #ruby
[13:05:13] nuttermb: has joined #ruby
[13:05:36] joonty: has joined #ruby
[13:05:42] sgambino: has joined #ruby
[13:05:55] neersighted: has joined #ruby
[13:08:01] mephistophocles: has joined #ruby
[13:08:38] pawnbox: has joined #ruby
[13:09:13] arup_r: has joined #ruby
[13:09:26] jbw: has joined #ruby
[13:11:51] conor_: has joined #ruby
[13:11:51] pandaant: has joined #ruby
[13:14:41] yorickpeterse: There's this one query which tries to get a certain list of objects you have access to
[13:14:46] yorickpeterse: For whatever reason that just returns _all_ records
[13:14:53] yorickpeterse: which are about half a million records
[13:14:56] yorickpeterse: which it then tries to render
[13:15:23] Cust0sLim3n: has joined #ruby
[13:15:52] chichou: has joined #ruby
[13:16:19] hinbody: has joined #ruby
[13:17:33] [spoiler]: Rails: RENDER ALL \o_ THE OBJECTS
[13:17:46] yorickpeterse: Hm, on Rbx it does also return the same amount of objects
[13:17:51] yorickpeterse: that's...interesting
[13:17:53] whippythellama: has joined #ruby
[13:18:08] accacin: has joined #ruby
[13:18:31] pawnbox: has joined #ruby
[13:18:39] [spoiler]: Why did you expect different behaviour?
[13:19:04] [spoiler]: Did something get upgraded?
[13:19:51] yorickpeterse: well for some reason MRI doesn't trigger the error until, apparently, after trying to render everything
[13:20:05] yorickpeterse: yet on rbx, and when we were still on rails 3, it would work fine
[13:20:47] hfp: Hey all, I never know what to do when I get this kind of issues when running bundle install: https://gist.github.com/Coaxial/9aafcaaa639b4ca24b77. I understand there seems to be an issue when compiling a C extension but that's as far as I get. Any pointers?
[13:21:09] decoponyo: has joined #ruby
[13:21:13] pawnbox: has joined #ruby
[13:21:17] DoubleMalt: has joined #ruby
[13:21:30] adaedra: yorickpeterse: ??\_(???)_/??
[13:21:57] olistik: has joined #ruby
[13:23:13] yorickpeterse: ACTION slaps Rails around with a copy of parse.y
[13:23:27] jtirila: has joined #ruby
[13:23:33] adaedra: ok, we got it that you love parse.y
[13:23:35] ljarvis: nobody deserves slapping with that
[13:24:03] Scripore: has joined #ruby
[13:24:06] dtzitz: has joined #ruby
[13:24:14] [spoiler]: adaedra: parse.y is a hate weapon
[13:24:20] stoodfarback: hfp: Try running the command manually: gem install sqlite3
[13:24:44] yorickpeterse: ACTION slaps Rails around with a crushing student debt
[13:24:55] VeganGreg: has joined #ruby
[13:24:58] yorickpeterse: So this code in itself is already weird
[13:25:06] yorickpeterse: we have this contract setup that determines if you can access something or not
[13:25:13] yorickpeterse: yet instead it _only_ relies on CanCanCan permissions here
[13:25:41] tkuchiki: has joined #ruby
[13:26:04] helloc: has joined #ruby
[13:26:15] ljarvis: inb4 CanCanCanCan
[13:26:15] [spoiler]: hfp: are ruby's development headers installed? I am not sure it would get to this point if they weren't, but check anyway
[13:26:47] jhass: hfp: the latest version of the sqlite3 gem is 1.3.10, can you try that one?
[13:26:50] Oog: has joined #ruby
[13:26:58] conor_: has joined #ruby
[13:27:41] darix: hfp: maybe try newer versions of the sqlite3 gem. maybe your version isnt adapted for ruby 2.2 yet
[13:27:48] helloc: hello i want to contribute to open source of ruby
[13:27:58] helloc: any idea how to start
[13:28:14] helloc: i have basics knowledge of ruby
[13:29:01] machinewar: has joined #ruby
[13:29:06] yorickpeterse: oh ha wtf I think I get what this app is doing
[13:29:09] sameerynho: has joined #ruby
[13:29:14] jhass: hello_: codetriage.com, https://github.com/trending?l=ruby&since=weekly
[13:29:17] yorickpeterse: which also explains why even though I can access half a million rows it only shows 3
[13:30:06] yorickpeterse: So this list it actually shows uses an API
[13:30:09] yorickpeterse: that one ignores CanCanCan
[13:30:22] yorickpeterse: that itself only shows 3 rows for me
[13:30:40] yorickpeterse: yet somehow it still tries to do something with the half million rows
[13:30:45] bruno-: has joined #ruby
[13:30:48] yorickpeterse: ...which are only used to see if the user has access to a single row only
[13:30:53] yorickpeterse: because in that case it just redirects to that row
[13:31:14] malconis: has joined #ruby
[13:31:30] yorickpeterse: no idea how this works
[13:31:54] malconis: has joined #ruby
[13:32:03] accacin: has joined #ruby
[13:32:14] helloc: jhass: these seems to be some difficult, previously i have no knowledge of how open source work
[13:32:40] jerius: has joined #ruby
[13:33:05] yorickpeterse: so if I move these 500k records to a local variable everything works fine
[13:33:17] jhass: hello_: pick some project you like then and look through its issue tracker or come up with your own ideas to contribute
[13:33:19] yorickpeterse: so I suspect HAML just gobbles up all instance variables, tries to do _something_ with it that triggers loading of them into memory
[13:33:22] helloc: yorickpeterse: how do you make these sign on keyborad?
[13:33:23] yorickpeterse: which then fucks everything up
[13:33:26] yorickpeterse: hello_: plugin
[13:33:52] helloc: yorickpeterse: which plugin
[13:34:03] conor_: has joined #ruby
[13:34:08] hal_9000_: has joined #ruby
[13:34:31] helloc: jhass: do i have to personally mail that person or start doing?
[13:34:34] yorickpeterse: https://github.com/mrdaemon/weechat-emojis
[13:35:12] jhass: hello_: most projects on github are happy if you just open a PR, some like to see if you comment on an issue you're working on to announce that fact
[13:35:25] tkuchiki: has joined #ruby
[13:35:50] da3mian: has joined #ruby
[13:36:20] frozen3: has joined #ruby
[13:36:51] centrx: has joined #ruby
[13:37:17] helloc: jhass what does PR means? and in github one can only put code or contribute it to isn't but comment don't know... m naive in this field...
[13:37:26] adaedra: Pull Request
[13:37:39] jhass: http://refactorcop.com/ another thing to find projects that might need a hand
[13:37:44] adaedra: You can comment on anything, hello_
[13:38:17] shevy: can I comment on the code quality of your code adaedra? :)
[13:38:43] jhass: hello_: https://help.github.com/articles/fork-a-repo/
[13:38:46] adaedra: If you want to submit code, you fork (create a repo you own with the other project current state), do your modifications, then do a Pull Request (ask to import your code to parent repository)
[13:38:54] adaedra: shevy: you can
[13:39:23] Zeroe: has joined #ruby
[13:39:41] quimrstorres: has joined #ruby
[13:39:50] nettoweb: has joined #ruby
[13:40:23] MarcWeber: has left #ruby: ()
[13:41:01] rikkipitt: has joined #ruby
[13:41:11] helloc: you guys are really useful>>
[13:42:11] devdazed: has joined #ruby
[13:42:38] silkfox: has joined #ruby
[13:42:50] shevy: webchatter!
[13:43:07] lucianopc: has joined #ruby
[13:43:19] joonty: has joined #ruby
[13:43:33] JoshL: has joined #ruby
[13:44:32] aganov: has joined #ruby
[13:45:16] PornPirate: has joined #ruby
[13:45:19] PornPirate: hey everyone
[13:45:29] Rubie: has joined #ruby
[13:45:51] ndrei: has joined #ruby
[13:46:07] PornPirate: I have a sever running ubuntu 14.x and ruby is spawning several hundred thousands open files (network via lsof) quickly and not releasing them.
[13:46:16] shevy: your nick man
[13:46:21] jhass: ?guys hello_
[13:46:21] ruboto: hello_, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[13:47:43] momomomomo: has joined #ruby
[13:47:44] helloc: jhass it was for you and others
[13:47:59] iamninja: has joined #ruby
[13:48:04] adaedra: I'm not a guy, I'm a meat popsicle
[13:48:20] jhass: I'm a sparkling ponycorn
[13:48:31] stoodfarback: PornPirate: Try grep for "TempFile", "mktmpdir", "/tmp", etc
[13:48:32] dc: has joined #ruby
[13:48:33] adaedra: "ponycorn"
[13:48:44] jhass: we're the best!
[13:48:57] jhass: adaedra: http://ponycorns.com/
[13:50:51] okdas: has joined #ruby
[13:50:51] okdas: has joined #ruby
[13:51:08] kristian_on_linu: has joined #ruby
[13:51:26] kristian_on_linu: inukshuk: hi, I have a question for jekyll-scholar
[13:51:53] PornPirate: ruboto: So I did well? :)
[13:52:04] ruboto: I'm just a bot. You don't need to address me.
[13:52:36] cpruitt: has joined #ruby
[13:53:07] helloc: ponycorn you are a female?
[13:53:33] helloc: nice to see a f on irc?
[13:53:57] jhass: is my or anyone's gender relevant?
[13:54:02] sevenseacat: it's really not.
[13:54:10] adaedra: IRC is not a dating site.
[13:54:33] shevy: it can be
[13:54:45] adaedra: go back to #dating
[13:54:58] yorickpeterse: people use IRC for dating? lol
[13:55:03] quimrstorres: has joined #ruby
[13:55:18] shevy: don't let [k- hear that
[13:55:34] helloc: it was an appreciation!!
[13:55:43] krz: has joined #ruby
[13:56:13] casadei: has joined #ruby
[13:57:25] nobitanobi: has joined #ruby
[13:57:31] shevy: we could go on a date - discussing ruby!
[13:57:49] joonty: has joined #ruby
[13:58:12] blackmesa: has joined #ruby
[13:58:43] prestorium: has joined #ruby
[13:58:46] pyon: has joined #ruby
[13:59:19] xcesariox: has joined #ruby
[14:00:23] adaedra: ACTION slaps shevy's bottom and grins cheekily
[14:00:44] yorickpeterse: ACTION likes slapping people and randomly picks adaedra to slap
[14:00:54] yorickpeterse: (???? ???? ????)
[14:00:56] freerobby: has joined #ruby
[14:01:42] adaedra: (????? ???)
[14:02:08] xcesariox: has joined #ruby
[14:02:28] a346: has joined #ruby
[14:03:00] Dreamer3: has joined #ruby
[14:03:16] qubitz: has joined #ruby
[14:04:16] accacin: has joined #ruby
[14:04:53] accacin: Where can I see the source code for the enumerable map method? I'm on Ruby's Github repo but I'm not sure which directories to find what I'm looking for in.
[14:04:58] dtzitz: this channel goes sideways whenever anyone says guys, lol
[14:05:18] adaedra: accacin: there is a "show source" on ruby documentation
[14:05:29] accacin: I see, I must have missed that sorry.
[14:05:31] adaedra: &ri Enumerable#map
[14:05:31] `derpy: http://www.rubydoc.info/stdlib/core/Enumerable#map-instance_method
[14:05:50] xcesariox: has joined #ruby
[14:06:03] accacin: Ah! That's perfect, thanks a lot adaedra
[14:06:45] The_Phoenix: has joined #ruby
[14:06:53] yh: has joined #ruby
[14:07:23] michaeldeol: has joined #ruby
[14:07:54] Oka: has joined #ruby
[14:08:04] duggiefresh: has joined #ruby
[14:08:15] The_Phoenix: has joined #ruby
[14:09:20] umgrosscol: has joined #ruby
[14:09:47] marcoecc: has joined #ruby
[14:09:59] Fraeon: has joined #ruby
[14:11:00] dojobo: has joined #ruby
[14:11:09] tjohnson: has joined #ruby
[14:11:25] jgpawletko: has joined #ruby
[14:13:47] accacin: has joined #ruby
[14:13:59] hs366: has joined #ruby
[14:14:05] rdark: has joined #ruby
[14:16:48] whiteline: has joined #ruby
[14:16:54] youngbaks: has joined #ruby
[14:17:20] senayar: has joined #ruby
[14:17:20] senayar: has joined #ruby
[14:20:16] coban2k: has joined #ruby
[14:20:44] failshell: has joined #ruby
[14:21:06] curses: has joined #ruby
[14:22:22] linuxboytoo: has joined #ruby
[14:23:10] chouhoulis: has joined #ruby
[14:24:56] Oog_: has joined #ruby
[14:24:58] senayar: has joined #ruby
[14:25:09] fmcgeough: has joined #ruby
[14:25:24] xcesariox: has joined #ruby
[14:25:35] sarkyniin: has joined #ruby
[14:26:28] snockerton: has joined #ruby
[14:27:21] jhack: has joined #ruby
[14:27:40] fmcgeough: has joined #ruby
[14:27:44] but3k4: has joined #ruby
[14:29:12] Jammyhammy|Work: has joined #ruby
[14:29:49] rikkipitt: has joined #ruby
[14:29:52] blackmesa: has joined #ruby
[14:30:46] dopie: has joined #ruby
[14:31:00] sepp2k: has joined #ruby
[14:31:03] juanpablo__: has joined #ruby
[14:31:08] ellisTAA: has joined #ruby
[14:33:33] ndrei_: has joined #ruby
[14:34:04] jpfuentes2: has joined #ruby
[14:34:13] ndrei: has joined #ruby
[14:34:46] Zeroe: has joined #ruby
[14:35:41] hazelux: has joined #ruby
[14:35:49] woodruffw: has joined #ruby
[14:36:26] DaniG2k: has joined #ruby
[14:38:36] mistym: has joined #ruby
[14:38:40] centrx: has joined #ruby
[14:38:45] uber: has joined #ruby
[14:41:06] suchness: I am starting to think something I am trying to do is impossible. Say I have class. I want to extend every instantiation of that class with some module to add to the method lookup chain. Is that even possible? http://pastie.org/10348619
[14:41:41] [k-_: call super
[14:41:50] suchness: I am calling super
[14:41:51] [k-_: in class A, that is
[14:42:00] suchness: I don't want the chain to go that direction
[14:42:02] ellisTAA: has joined #ruby
[14:42:15] [k-_: but you are calling it from class A
[14:42:36] cschneid_: has joined #ruby
[14:42:40] [k-_: how would you expect module B know that class A exists
[14:42:53] webopsx: has joined #ruby
[14:43:10] suchness: Well, that's where the insert code here comes in.
[14:43:19] DaniG2k: B isn't including A or vice-versa
[14:43:24] bruno-: has joined #ruby
[14:43:32] suchness: Again, the comment indicating code here...
[14:43:58] [k-_: call super first in class A
[14:44:05] [k-_: then code for class A goes below
[14:44:11] suchness: Can't call super in class A.
[14:44:17] suchness: Class A needs to remain unchanged.
[14:44:18] [k-_: include B
[14:44:29] platzhirsch: has joined #ruby
[14:44:35] suchness: That makes it work in the wrong direction
[14:44:41] yh: has joined #ruby
[14:44:55] suchness: then class A is calling super when I want module bs method to call super and get class As method
[14:45:26] adaedra: suchness: you can make a B.included that will: create an alias for check like orig_check, then inject a new check method that will do your new code then call orig_check
[14:45:28] [k-_: so, you want A to be the superclass
[14:45:49] suchness: The answer needs to come after independent declarations of both the module and class
[14:46:03] suchness: adaedra: Hrm...
[14:46:35] [k-_: you wouldn't have this problem if you took the functional approach!
[14:46:45] suchness: adaedra: Sounds like what I've got for the most part http://pastie.org/10348632
[14:47:03] ruby-lang806: has joined #ruby
[14:47:21] Stan: has joined #ruby
[14:47:30] suchness: clearly I am playing at work today
[14:47:33] [k-_: B.check(A.instance_method(:check))
[14:47:41] [k-_: no state at all!
[14:47:54] but3k4_: has joined #ruby
[14:48:11] shock_one: has joined #ruby
[14:48:25] suchness: [k-_: Hrm, didn't think about that
[14:49:56] suchness: nope that's not going to work
[14:49:58] dtzitz: I called super to fix my AC... it was ineffective
[14:50:43] riotjones: has joined #ruby
[14:51:05] Torrieri: has joined #ruby
[14:51:08] [k-_: ??\_(???)_/??
[14:51:27] [spoiler]: I'm confused. You want to include a module into a class without including the module?
[14:51:30] suchness: adaedra: My only fear with that, is I don't want to create methods like that in fear that they would conflict at some point, super and the lookup chain would prevent that from happening
[14:51:38] riotjones: has joined #ruby
[14:51:47] adaedra: suchness: super is for class inheritence
[14:51:57] suchness: adaedra: Not all the time
[14:52:32] suchness: object.extend(Module.new) will grant inheritance on that instance
[14:52:42] suchness: Which is pretty similar to what I am trying to accomplish
[14:53:02] banister: has joined #ruby
[14:53:07] havenwood: has joined #ruby
[14:53:18] suchness: Basically breaking into the singleton class of an instance which acts as a sort of inheritance
[14:53:54] voker57: has joined #ruby
[14:54:05] suchness: Anyhow, if there is a way to accomplish what I am trying to do I will find it.
[14:54:21] Jammyhammy|Work: has joined #ruby
[14:54:50] suchness: [spoiler]: I want a modules methods to be inserted in the method lookup chain of the instance of a class, and I want to do it after the module and class have already been defined.
[14:55:06] chandeer: has joined #ruby
[14:55:09] mary5030: has joined #ruby
[14:55:10] chandeer: is there a book on writing security exploits in ruby?
[14:55:35] yorickpeterse: chandeer: No, but it's very easy
[14:55:38] yorickpeterse: step 1: use YAML
[14:55:40] Maletor: has joined #ruby
[14:56:02] yorickpeterse: In all seriousness, there's https://ronin-ruby.github.io/ and IIRC metasploit is Ruby
[14:56:52] Zackio: has joined #ruby
[14:58:09] jhack: has joined #ruby
[14:58:34] LMity: has joined #ruby
[14:59:05] RegulationD: has joined #ruby
[14:59:26] yorickpeterse: I present to y'all, Rails: https://gist.github.com/YorickPeterse/ddc80b17ad1017cffe83
[14:59:41] yorickpeterse: who needs Array#map and Array#join
[14:59:56] conor_: has joined #ruby
[14:59:58] rdark: has joined #ruby
[15:00:18] chanadeer: has joined #ruby
[15:00:22] ruboto: apeiros is nobody
[15:00:38] havenwood: ruboto: be nice
[15:00:56] [k-: looks like php
[15:01:02] chanadeer: looks like rape
[15:01:11] havenwood: chanadeer: o.O
[15:01:34] havenwood: yorickpeterse: eek
[15:02:00] pontiki: i'm trying to find out if and where a particular method is called. is there a static analysis tool i could use for this?
[15:02:05] havenwood: chanadeer: There was a Rails security book a while back that was I think much of the basis of the basic guide: http://guides.rubyonrails.org/security.html
[15:02:27] havenwood: chanadeer: Best bet I think would first be to learn Ruby well, if you haven't already.
[15:02:32] big|bad|wolf: has joined #ruby
[15:02:54] adaedra: pontiki: put a log message in it?
[15:03:00] yorickpeterse: chanadeer: keep the rape remarks down
[15:03:00] chanadeer: i know ruby
[15:03:00] [k-: pontiki: buuuut ruby is dynamic
[15:03:12] pontiki: that would be okay dynamically
[15:03:13] [spoiler]: yorickpeterse: doesn't rails have like a to_sentence thing?
[15:03:24] chanadeer: i don't know how much i know ruby but i'm passing the high level exercises on codewars
[15:03:25] pontiki: i'ma just do a damn grep on 'user_name' :(
[15:03:45] [k-: pontiki: __callee__? set_trace_func__? __caller__?
[15:03:46] banister: has joined #ruby
[15:03:54] chanadeer: i would like to learn rails too.... i built an app with rails following a tutorial but i can't do anything on my own yet :(
[15:04:01] pontiki: [k-: those are *dynamic*
[15:04:10] [k-: theres no __ after set_trace_func*
[15:04:11] pontiki: [k-: see note about *static*
[15:04:19] adaedra: chanadeer: you'll learn by doing :)
[15:04:29] yorickpeterse: [spoiler]: Yeah, or you just do post.tags.map { |tag| tag.name.capitalize }.join(', ')
[15:04:30] [k-: you can log all calls easily using set_trace_func
[15:04:37] s2013: has joined #ruby
[15:04:39] pontiki: ignore [k-
[15:04:40] [k-: and you can grep it afterwards
[15:04:43] havenwood: chanadeer: Learn to make a Rack app. Learn to make a simple Rack middleware.
[15:05:02] ruby-lang662: has joined #ruby
[15:05:09] [k-: see avdi's blog about tools
[15:06:03] hydrozen: has joined #ruby
[15:06:41] [k-: there's no point in asking a question if you are just going to ignore the responses
[15:06:51] [k-: might as well just ask yourself silently
[15:07:16] [k-: if you do not want responses, label the question as rhetorical
[15:07:18] Diabolik: is there an http response object in ruby?
[15:07:32] havenwood: Diabolik: What does that mean?
[15:07:50] Diabolik: i want to build a case statement like
[15:07:50] yh: has joined #ruby
[15:07:51] Diabolik: case response
[15:07:51] Diabolik: [{lat: 51.536433, lng: -0.122309}, {lat: 51.536139, lng: -0.122266}, {lat: 51.535125, lng: -0.122395}]
[15:07:51] Diabolik: raise ApiError::EngineerAtDestinationError.new("Your Engineer should be with you.")
[15:08:06] jhass: ?flood Diabolik
[15:08:07] ruboto: Diabolik, Please use https://gist.github.com for more than three lines of text!
[15:08:11] Diabolik: sorry jhass
[15:08:13] icebourg: has joined #ruby
[15:08:14] adaedra: ?context Diabolik
[15:08:14] ruboto: Diabolik, Please add more context to your question, what are you doing, why are you doing it, which libraries are involved. Post some code to gist if it clarifies your question.
[15:08:22] nobitanobi: has joined #ruby
[15:08:27] [k-: its latitude and longitude!
[15:08:42] [k-: he wants the response codes, it seems
[15:08:56] bradland: where the response codes reside will depend on the lib used to make the request
[15:09:05] bradland: need moar code :)
[15:09:24] adaedra: need some context, so answers to questions made by ruboto
[15:10:01] Zeroe: has joined #ruby
[15:11:08] drewo: has joined #ruby
[15:11:13] ruboto: You can find an overview of my commands at http://ruby-community.com/ruboto/commands
[15:11:26] startupality: can you set default print area (from which to which row) by using axslx gem?
[15:12:41] rikkipitt: has joined #ruby
[15:12:50] sinkensabe: has joined #ruby
[15:13:54] ruboto: I don't know anything about smug
[15:14:00] dtzitz: I disagree
[15:14:10] bradland: startupality: we use axlsx a lot. you'll often find that you have to do some code diving to find what you're looking for.
[15:14:10] hobodave: has joined #ruby
[15:14:21] platzhirsch: has left #ruby: ()
[15:14:23] chinmay_dd: has joined #ruby
[15:14:26] tkuchiki: has joined #ruby
[15:14:45] bradland: startupality: https://github.com/randym/axlsx/blob/master/lib/axlsx/workbook/defined_name.rb#L63
[15:15:36] revoohc: has joined #ruby
[15:16:05] VeganGreg: has joined #ruby
[15:16:18] hashrocket: has joined #ruby
[15:17:53] Guest50: has joined #ruby
[15:17:56] Cache_Money: has joined #ruby
[15:18:13] banister: has joined #ruby
[15:18:41] pontiki: [k-: there is no point in *answering* a question if you don't understand the question, either
[15:19:39] [k-: as i said, ruby is dynamic, these kinds of things are difficult to achieve
[15:19:43] pontiki: [k-: i asked for a *static* analysis, you kept ticking off *dynamic* tools
[15:19:45] [k-: rubymine can do it
[15:19:53] dfockler: has joined #ruby
[15:20:11] bradland: Diabolik: i'm always one to take shots in the dark, so i'll presume you're working backward from response, trying to make a request.
[15:20:14] [k-: pontiki: i didnt kept on, i listed 3 in a sentence, and went on to elaborate
[15:20:20] bradland: have a look at the HTTP clients here: https://www.ruby-toolbox.com/categories/http_clients
[15:21:57] Diabolik: hi bradland sorry im using httparty
[15:22:00] dmitch: Question: Does anyone know if it's possible to send a request through some HTTP client and not wait for the response? Super strange, I know.
[15:22:04] blue_deref: has joined #ruby
[15:22:13] Diabolik: i want to return different responses depending on the http response code
[15:22:41] acej: has joined #ruby
[15:23:29] bruno-: has joined #ruby
[15:24:10] startupality: @bradland possible to define that I want area from A1 to K50 preslected when printing?
[15:24:48] gard: has joined #ruby
[15:24:56] chinmay_dd: has joined #ruby
[15:24:58] machinewar: dmitch: do you mean send request and then keep executing code before response is returned
[15:26:03] dmitch: machinewar: No, I mean the response will predictably get hung up, and yet the request is successful. The goal would be to send the request, and just move on in execution - the response doesn't matter.
[15:26:12] kbhat: has joined #ruby
[15:26:39] dmitch: I don't even know if I want to use such a solution, but I am just finding out if it's possible so that I can weigh options.
[15:27:01] kbhat: has left #ruby: ("Bye!")
[15:27:32] tkuchiki: has joined #ruby
[15:27:36] machinewar: could do it in javascript with ajax, I know this is #ruby but is that an option? Other option could be return a 202, and process it in a background job
[15:28:40] dmitch: This is all backend, so not really an AJAX candidate. I thought about background processing, which is another option. My guess is my original question isn't really possible.
[15:29:38] banister: has joined #ruby
[15:29:40] havenwood: dmitch: Sure, you can send a request asynchronously and never check the response.
[15:29:48] riotjones: has joined #ruby
[15:29:55] machinewar: havenwood: how do you send async requests in ruby
[15:30:20] havenwood: machinewar: Forking, threading or an event loop probably.
[15:30:32] dmitch: There's always opening up a new thread, EM deferring, etc. And that may be what I have to do.
[15:30:46] Maletor: has joined #ruby
[15:31:02] machinewar: havenwood: cool didn't think about it like that
[15:31:07] hobodave: has joined #ruby
[15:31:30] havenwood: dmitch: A bunch of the HTTP clients in Ruby have options built-in.
[15:31:48] havenwood: dmitch: For example from the HTTP.rb gem: https://github.com/httprb/http/wiki/Parallel-requests-with-Celluloid%3A%3AIO
[15:32:03] drewo: has joined #ruby
[15:32:15] machinewar: only problem is that then you don't know if request was accepted by server right
[15:32:23] havenwood: dmitch: Or Typhoeus: https://github.com/typhoeus/typhoeus#making-parallel-requests
[15:32:32] machinewar: what if you send some wrong parameters or something
[15:32:46] machinewar: that's why I think returning quick 202 and processing elsewhere make ssense
[15:32:49] havenwood: machinewar: you could always check the response, but apparently that's not desired
[15:33:12] dmitch: I think I'm already in that boat. This is not an _ideal_ API I'm using, and I would definitely say this is unacceptable from an API. However, it is what it is in this case.
[15:33:48] havenwood: dmitch: Are you opposed to check the statuses later? :P
[15:34:15] banister: has joined #ruby
[15:34:21] dmitch: havenwood: In a perfect world, yes, but I was planning on working around that piece.
[15:34:24] loc22: has joined #ruby
[15:34:37] havenwood: dmitch: I don't really follow what you're doing. Good luck!!
[15:34:48] chinmay_dd: has joined #ruby
[15:34:55] dmitch: havenwood: I know. I'm sad even asking these questions. Just send good vibes my way.
[15:35:06] Jammyhammy|Work: has joined #ruby
[15:35:52] apeiros: ACTION sends good vibes in the general direction of dmitch
[15:36:17] marr: has joined #ruby
[15:36:20] tkuchiki: has joined #ruby
[15:36:46] rehat: has joined #ruby
[15:37:54] djstorm: has joined #ruby
[15:38:08] mary5030_: has joined #ruby
[15:38:26] bradland: startupality: yes, althought it looks like it's kind of hacky
[15:38:57] bradland: have a look at Workbook#add_defined_name and you'll see that it just adds a DefinedName to the collection
[15:39:13] banister: has joined #ruby
[15:39:26] bradland: DefinedName.new is where this comes in: https://github.com/randym/axlsx/blob/master/lib/axlsx/workbook/defined_name.rb#L63
[15:39:39] suchness: [k- adaedra [spoiler] http://pastie.org/private/vg7xnjiazptpamzdogdupg booya
[15:39:50] polpak: has joined #ruby
[15:40:00] acej: /msg nickserv info greg
[15:40:41] nettoweb: has joined #ruby
[15:40:48] blackmesa: has joined #ruby
[15:41:03] wasamasa: Whitespace: With A Vengeance
[15:41:05] shevy: suchness lol
[15:41:13] shevy: suchness I thought you added a spoiler tag to your link
[15:41:16] christiandsg: has joined #ruby
[15:41:25] shock_one: has joined #ruby
[15:41:38] rippa: has joined #ruby
[15:41:52] bradland: so much 1999 going on with these nicks :P
[15:41:56] suchness: They said it couldn't be done! It is done. Observers for every method!
[15:42:35] suchness: I knew it had to be possible, just took a bit to evaluate what I was setting out to do.
[15:45:08] [k-_: we did not say it couldnt be done
[15:45:15] [k-_: dont stuff words into our mouths please
[15:45:38] suchness: I didn't mean that directed at anyone in particular
[15:46:17] suchness: I wonder if it even makes sense to have an intermediary ClassObserver class.
[15:46:44] suchness: And I am also curious about what you guys think about defining a 'new' method and calling super.
[15:47:09] poguez_: has joined #ruby
[15:47:11] [k-_: im pretty sure ruby already offers before_methods, after_methods or something like that already
[15:47:19] unver: Hi, how can I make this if block easier to read? http://hastebin.com/asifojezoz.avrasm
[15:47:25] mary5030: has joined #ruby
[15:47:27] suchness: [k-_: That's not the point
[15:47:38] momomomomo: has joined #ruby
[15:47:39] dr3w: has joined #ruby
[15:48:12] icarus: has joined #ruby
[15:48:25] olistik: has joined #ruby
[15:48:28] quimrstorres: has joined #ruby
[15:48:28] [k-_: ??\_(???)_/??
[15:48:41] adaedra: unver: use Range#include?
[15:48:53] emmiez: has joined #ruby
[15:48:55] yh_: has joined #ruby
[15:49:30] emmiez: is anyone familiar with the 'jira-ruby' gem?
[15:49:38] unver: adaedra: oh, that's a good idea, I was thinking more style wise, it's hard to tell that the ret << is nested in there, is there a way to write it more explicitly
[15:49:50] jhass: ?anyone emmiez
[15:49:50] ruboto: emmiez, Just ask your question, if anyone has or can, they will respond.
[15:50:21] omegamike: has joined #ruby
[15:50:37] adaedra: unver: you could put your condition in a method, so the if only takes one line
[15:50:48] kies: has joined #ruby
[15:50:57] havenwood: unver: You're currently calling #start_time and #end_time a bunch of times.
[15:51:01] jhass: unver: extract a method or two
[15:51:05] davejlong: has joined #ruby
[15:52:19] unver: good thoughts, time to roll up my sleeves
[15:52:26] startupality: has joined #ruby
[15:52:39] adaedra: unver.sleeves.each(&:roll_up)
[15:52:53] jhass: unver: you didn't show context, but given the ret << I suppose there some potential cleanup with #map / #select
[15:53:02] Torrieri: has joined #ruby
[15:54:01] gambl0re: has joined #ruby
[15:54:21] unver: you're right on that, (just want to let it be known that this is legacy code, I didn't originally write it)
[15:54:29] bronson: has joined #ruby
[15:55:04] adaedra: look who's rejecting fault on others.
[15:55:05] coban2k: has joined #ruby
[15:55:09] emmiez: I'm trying to create a JIRA widget to display the number of tickets that currently have a severity level of "Sev 2" for my Dashing dashboard. Here is what i have https://gist.github.com/anonymous/36aa492808f084bb6c10 The parameters in line 26 are required for the gem. Despite my thorough research, i'm still not sure why. Anyway, i
[15:55:28] emmiez: i'm getting an error that states scheduler caught exception: undefined local variable or method `comments' for main:Object /home/napower/north_american_power_dash/jobs/jira.rb:26:in `block in <top (required)>'
[15:55:41] emmiez: any help would be appreicated
[15:55:44] jhass: ?gist_usage emmiez
[15:55:44] ruboto: emmiez, To properly use gist, please enable syntax highlighting, either by choosing the language manually or by entering a proper filename. If you post multiple things, separate them into multiple files. If you have a Github account, please update your gist with new information instead of posting a new one.
[15:55:46] yardenbar: has joined #ruby
[15:55:47] saddad: has joined #ruby
[15:56:08] gard: has joined #ruby
[15:56:12] jhass: issues = client.Issue.jql(jql_query, [comments, summary])
[15:56:20] jhass: where do you expect comments to come from? it's not defined
[15:56:21] [k-_: unver: did you mean push?
[15:56:42] shevy: aha so emmiez tried to use a non-existing variable!
[15:57:10] emmiez: thank you
[15:57:12] linuxboytoo: has joined #ruby
[15:57:20] gheegh: has joined #ruby
[15:57:24] unver: adaedra: what's wrong with that? I still have to fix it
[15:57:29] freerobby: has joined #ruby
[15:57:43] coban2k_: has joined #ruby
[15:58:01] adaedra: look over whose head the joke went.
[15:58:28] jhass: oO, why did they left?
[15:59:03] shevy: ruboto must have been too unfriendly again
[15:59:03] adaedra: jhass: emmiez yes
[15:59:05] shevy: bad bot, bad
[15:59:10] ruboto: nomnomnomnom
[15:59:47] Amalicon: has joined #ruby
[15:59:52] hobodave: has joined #ruby
[16:00:10] renderful: has joined #ruby
[16:01:01] towski_: has joined #ruby
[16:01:09] jamesaxl|2: has joined #ruby
[16:01:35] uwa667: has joined #ruby
[16:01:42] slide: has left #ruby: ("Leaving")
[16:01:55] sbhatore: has joined #ruby
[16:01:56] duggiefresh: has joined #ruby
[16:02:05] duggiefresh: has joined #ruby
[16:02:07] gambl0re: has joined #ruby
[16:02:16] shock_one: has joined #ruby
[16:03:09] shevy: you are just trying to bribe the bot
[16:03:41] banister: has joined #ruby
[16:03:47] ruboto: I don't know anything about bribes
[16:03:54] rickmasta: has joined #ruby
[16:04:05] moted: has joined #ruby
[16:04:12] chinmay_dd: has joined #ruby
[16:04:27] adaedra: there's multiple bots
[16:04:39] ruboto: here's your cake: ????
[16:04:42] basmoura: has joined #ruby
[16:04:54] adaedra: 'tis a lie
[16:05:06] psye: has joined #ruby
[16:05:09] uwa667: has joined #ruby
[16:05:30] Scripore: has joined #ruby
[16:05:41] jonee: has joined #ruby
[16:05:42] droidburgundy: has joined #ruby
[16:05:57] dr3w: has joined #ruby
[16:06:20] shevy: really a lot of goodies in this bot
[16:06:21] hazelux: has joined #ruby
[16:07:42] greg: has joined #ruby
[16:07:54] greg: hello m new to this group
[16:08:06] Oog_: has joined #ruby
[16:08:13] Oog_: why does false || nil evaluate to nil instead of false?
[16:08:16] bradland: startupality: not sure if you're still around, but something like this *should* work: https://gist.github.com/bradland/584391ec594b3027eb69
[16:08:19] frozen3: has joined #ruby
[16:09:21] havenwood: Oog: What would you expect from?: false || true
[16:09:40] [k-_: Oog_: if the LHS is false, ruby returns the RHS
[16:09:50] ljarvis: that's why
[16:10:00] [k-_: >> false || 1
[16:10:01] ruboto: [k-_ # => 1 (https://eval.in/416395)
[16:10:12] Oog: interesting so its not like a real boolean operator?
[16:10:21] MEATCHICKEN: has joined #ruby
[16:10:29] MEATCHICKEN: how do I create a decimal in ruby?
[16:10:33] bradland: well, it's a logical operator
[16:10:36] MEATCHICKEN: whenever I try, it creates a float
[16:10:37] bradland: sry, not boolean
[16:11:04] MEATCHICKEN: Use case is application versioning -> 2.0 -> I want to increment it by 0.1 each time
[16:11:25] adaedra: meatchicken: use BigDecimal or Rational
[16:11:27] ljarvis: meatchicken: see BigDecimal
[16:11:40] Oog: i see i guess its more or less the same and will do. thanks
[16:11:40] MEATCHICKEN: BigDecimal.new should work?
[16:11:44] [k-_: (or use String#succ)
[16:11:45] lampd1: has joined #ruby
[16:12:01] valetudo: has joined #ruby
[16:12:24] Scripore: has joined #ruby
[16:12:25] [k-_: that's why it's in brackets!
[16:12:28] dc: has joined #ruby
[16:12:41] adaedra: those are not brackets
[16:12:43] mleung: has joined #ruby
[16:13:00] bradland: meatchicken: if you're using semver, consider splitting your version components up in an array, so you can increment them individually
[16:13:27] [k-_: parantheses :/
[16:13:29] MEATCHICKEN: bradland: these will be in a database
[16:13:35] MEATCHICKEN: not much sql database support array store
[16:13:51] MEATCHICKEN: thanks though guys
[16:13:59] MEATCHICKEN: checking out string#succ and bigdecimal
[16:14:00] Sembei: has joined #ruby
[16:14:16] flak: has joined #ruby
[16:14:19] bradland: IMO, i'd avoid String#succ if you expect math behavior
[16:14:29] conor_: has joined #ruby
[16:14:59] [k-_: >> "1.9".succ
[16:15:00] ruboto: [k-_ # => "2.0" (https://eval.in/416396)
[16:15:05] yardenbar: has joined #ruby
[16:15:18] [k-_: in versioning, one would expect "1.10"
[16:15:28] [k-_: which is not math behavior actually
[16:15:31] mrtg9970: has joined #ruby
[16:15:34] luckyme: has joined #ruby
[16:15:34] [k-_: bradland: you are wrong!
[16:15:39] MEATCHICKEN: bradland: what's wrong with String#succ?
[16:15:46] MEATCHICKEN: im actually okay with this
[16:16:05] bradland: well, as [k-_ just pointed out, "1.9".succ will return "2.0"
[16:16:09] s2013: has joined #ruby
[16:16:13] bradland: if that's ok for you, then you're good to go
[16:16:21] hololeap: has joined #ruby
[16:16:26] bradland: depend on your rules of versioning
[16:16:28] spinagon: has joined #ruby
[16:16:36] MEATCHICKEN: that is good enough!
[16:17:30] hashrocket: has joined #ruby
[16:17:31] startupality: @bradland hmm that didnt change the default layour in ms excel when trying to print -> p.workbook.add_defined_name("'Basic Worksheet'!A1:I30", :local_sheet_id => sheet.index, :name => '_xlnm.Print_Area')
[16:17:53] baroquebobcat: has joined #ruby
[16:17:59] bradland: startupality: yeah, i'm noticing the same. that should be close to what you want though, according to the docs.
[16:18:09] bradland: the trick is in figuring out why.
[16:18:26] josh3: has joined #ruby
[16:18:55] chadwtaylor: has joined #ruby
[16:19:28] Zamyatin: has joined #ruby
[16:19:48] startupality: @bradland what about using http://www.rubydoc.info/github/randym/axlsx/Axlsx/PrintOptions ?
[16:20:37] adaedra: how would you take n random letters /with/ repetition?
[16:21:36] olivierrr: has joined #ruby
[16:22:52] unver: How do I check that a range is a subset of another range?
[16:23:26] ruby-lang119: has joined #ruby
[16:23:45] apeiros: unver: b.cover?(a.start) && b.cover?(a.end)
[16:24:38] khebbie: has joined #ruby
[16:24:41] mary5030: has joined #ruby
[16:24:42] bradland: startupality: Strangely, I didn't see anything for print area there.
[16:24:46] ruby-lang497: has joined #ruby
[16:25:21] Hanmac: has joined #ruby
[16:25:54] autofsckk: has joined #ruby
[16:26:21] [k-_: adaedra: example? "gatanagabbbbcececececde" ??? "bbbb"?
[16:26:27] conor_: has joined #ruby
[16:27:15] luksaur: has joined #ruby
[16:27:33] adaedra: [k-_: no, just random letters from ?A..?Z, with possible repetition (so A Z A R would be ok)
[16:28:08] einarj: has joined #ruby
[16:28:19] ruby-lang643: has joined #ruby
[16:28:29] conor_: has joined #ruby
[16:28:31] [k-_: so, non-unique letters?
[16:28:54] adaedra: but I need to add weight to some letters, so I'll do otherwise
[16:28:56] _seanc_: has joined #ruby
[16:29:01] markserver: has joined #ruby
[16:29:08] dc: has joined #ruby
[16:29:20] shevy: adaedra give me a hug
[16:29:21] yardenbar: has joined #ruby
[16:29:24] Alayde: has joined #ruby
[16:29:37] khebbie: has joined #ruby
[16:29:38] adaedra: ACTION hugs shevy
[16:30:00] dcunit3d: has joined #ruby
[16:30:02] christiandsg: has joined #ruby
[16:30:16] riotjones: has joined #ruby
[16:30:35] conor_: has joined #ruby
[16:30:55] markserver: Hello, can anyone help me with this code: http://pastebin.com/iav9htTe ... I receive this error: mbi.rb:in `validate': undefined method `>' for #<Mysql2::Result:0x00000002b52988> (NoMethodError)
[16:30:55] ruboto: markserver, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/2ab33c376db46ee19101
[16:30:55] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[16:31:12] dcunit3d: hey guys is this the place to ask ruby dev questions?
[16:31:14] bricker: has joined #ruby
[16:32:02] startupality: has joined #ruby
[16:32:10] dcunit3d: i'm working on a non-profit project where we're taking GTFS files for bus system routes and we need to generate maps with all the routes on them.
[16:32:28] niko: has joined #ruby
[16:32:39] dcunit3d: i'm asking around to see if anyone has worked on something similar in the past. most of the project is pretty simple, but there's quite a few gotchas
[16:32:57] [k-_: UnpreparedStatementsError
[16:32:58] Scripore: has joined #ruby
[16:32:59] olistik: has joined #ruby
[16:33:21] markserver: Hello, can anyone help me with this code: https://gist.github.com/2ab33c376db46ee19101 ... I receive this error: mbi.rb:in `validate': undefined method `>' for #<Mysql2::Result:0x00000002b52988> (NoMethodError)
[16:33:51] markserver: Seems like ruby not find the > operator
[16:33:54] [k-_: markserver: @mysql.query returns a Mysql2::Result
[16:34:00] [k-_: which is not a number
[16:34:06] [k-_: it is a general type
[16:34:25] markserver: Thanks :) How i can revert it to a number?
[16:34:34] markserver: I need to iterate in the array?
[16:34:42] dcunit3d: first off, where could i obtain the background image for such a map? secondly, only the route stop GPS coordinates are in the GTFS files, but the routes b/w the stops may take turns. so how do i get a line drawn between route stops to follow the curvature of the road?
[16:34:51] [k-_: depends on what Mysql2::Result is
[16:35:12] NetworkingPro: I have a linux server running ruby 1.9.3p547. I am seeing that when I get a connection from a single IP into my apps listening port ruby spawns 47 files for a single connection on the OS
[16:35:18] NetworkingPro: anyone ever seen or heard of that?
[16:35:29] markserver: It is a simple query thath returns a field(Balance) with an integer
[16:35:59] ascarter: has joined #ruby
[16:36:36] conor_: has joined #ruby
[16:37:14] kenichi: dcunit3d: more gis question than ruby
[16:37:33] [k-_: markserver: extract the integer then
[16:37:51] Trynemjoel: has joined #ruby
[16:38:04] uwa667: has joined #ruby
[16:39:32] startupality: has joined #ruby
[16:39:38] dcunit3d: kenichi true, but i'm hoping to use ruby
[16:40:04] shevy: yay come to use dcunit3d \o/
[16:40:08] christiandsg: has joined #ruby
[16:40:09] shevy: don't join the evil php hyenas
[16:40:26] bootstrappm: has joined #ruby
[16:40:27] shevy: adaedra thanks for the hug! I was gone for a moment so you caught me in an afk-hug there
[16:40:43] yh: has joined #ruby
[16:40:46] NetworkingPro: shevy: you a ruby ninja?
[16:40:53] dcunit3d: i know there has to be some way to do this in an automated fashion. but they're more interested in the design of the maps. i'm asking in a few different channels
[16:41:34] quimrstorres: has joined #ruby
[16:41:44] havenwood: markserver: Rather than the whole if statement with `return true` and `return false` just: balance >= @amount
[16:41:47] shevy: NetworkingPro hmm not a ninja, just a simple user
[16:42:02] shevy: ninjas have to be swift and deadly, I have more shaped into a teddy bear
[16:42:03] kenichi: dcunit3d: if you pull coords from the stops out, you can build a geojson linesstring using terraformer.rb
[16:42:04] havenwood: markserver: Drop the empty parens from methods without arguments.
[16:42:22] kenichi: dcunit3d: won't be snapped to streets, but it will be a start
[16:42:31] NetworkingPro: I have a completely annoying issue.. ugh
[16:42:55] dionysus69: has joined #ruby
[16:42:56] markserver: havenwood thanks a lot
[16:43:01] havenwood: markserver: It's not an Integer apparently. Check: balance.class
[16:43:05] lkba: has joined #ruby
[16:43:14] pyon: has joined #ruby
[16:43:17] MasterPiece: has joined #ruby
[16:43:43] kenichi: dcunit3d: then look into things like mapbox, cartodb, etc.
[16:43:49] havenwood: markserver: Ah, you already showed what it is.
[16:44:10] havenwood: markserver: <Mysql2::Result:...>
[16:44:38] kenichi: dcunit3d: openstreetmap, osgeo.org, there is ffi-ogr gem that may be helpful too
[16:45:21] kenichi: gis is typically a python world...
[16:45:24] conor_: has joined #ruby
[16:45:37] havenwood: markserver: Distracted at the moment, but try?: balance.first
[16:46:22] startupality: has joined #ruby
[16:46:28] havenwood: markserver: It looks like #count, #each, and #fields are implemented and it includes Enumerable. So I'd try #first and see if that's what you're after.
[16:46:28] mephistophocles: has joined #ruby
[16:47:20] ascarter: has joined #ruby
[16:48:02] ferhaty: has joined #ruby
[16:48:03] dcunit3d: thanks kenichi, i've looked around, but i haven't heard of terraformer, mapbox, cartodb. i'm connecting to OSM's irc server now
[16:48:11] conor_: has joined #ruby
[16:48:20] fantazo: has joined #ruby
[16:48:31] kenichi: dcunit3d: it can be a bit of an obscure world! good luck :)
[16:48:56] dcunit3d: i live in a smaller town (<300,000) and we have a non-profit hackathon starting tomorrow and i'm trying to get a head start.
[16:49:06] havenwood: dcunit3d: You said non-profit? It looks like various normally-paid APIs have non-profit options. E.g.: http://www.esri.com/nonprofit
[16:49:08] segment23: has joined #ruby
[16:49:18] segment23: a ny contractors here? i have a question
[16:50:04] havenwood: segment23: What's the question?
[16:50:07] Vile`: has joined #ruby
[16:50:15] segment23: havenwood: how do you write your termination clause
[16:50:56] shevy: pull out the shotgun
[16:50:57] [k-_: my school is trying out esri
[16:51:10] [k-_: via arcgis
[16:51:11] shevy: [k-_ will you become a teacher at your school?
[16:51:13] kenichi: havenwood: i used to work there, and was trying to point dcunit3d away from propreitary
[16:51:20] [k-_: no shevy
[16:51:31] havenwood: kenichi: Aha! Yeah, that's probably a good idea. :D
[16:53:53] mary5030: has joined #ruby
[16:54:43] lk: has joined #ruby
[16:55:33] markserver: havenwood: .first doesn't work, i'll simply iterate the array with results.each
[16:55:54] havenwood: markserver: Was just hoping #first might give you some bearing.
[16:56:35] platzhirsch: has joined #ruby
[16:58:55] j4cknewt: has joined #ruby
[16:59:43] ndh: has joined #ruby
[16:59:46] dcunit3d: segment23 if you have time, i would try to present the client with options. bring someone else on, so your client's not screwed, but then gradually let that person take over. although some client's, you wouldn't want to give them to a friend
[16:59:47] ndh: I hate Miggers
[16:59:59] programm1: has joined #ruby
[17:00:10] ruboto: +q ndh!*@*
[17:00:10] ruboto: -o ruboto
[17:00:37] conor_: has joined #ruby
[17:00:37] segment23: dcunit3d: im the client trying to write a termination clause that is fair to protect me
[17:00:55] pietr0: has joined #ruby
[17:02:27] dopie: has joined #ruby
[17:02:31] rcvalle: has joined #ruby
[17:02:50] shock_one: has joined #ruby
[17:03:51] hahuang61: has joined #ruby
[17:03:56] markserver: havenwood: worked with result.first["Balance"] ... it was searching in the first row but not in the first column...
[17:04:04] havenwood: segment23: So do you want termination without cause by either party with written notice? Or what is your goal?
[17:04:34] chinmay_dd: has joined #ruby
[17:05:13] jerius: has joined #ruby
[17:05:14] segment23: havenwood: i want to be compensated in case of termination for any reasons
[17:05:35] lannonbr: has joined #ruby
[17:05:47] autrilla: has joined #ruby
[17:06:09] havenwood: segment23: I'd suggest reading some law review articles on New York liquidated damages clauses.
[17:06:31] [k-_: this isnt a ruby question!
[17:06:43] havenwood: havenwood: havenwood ?ot
[17:06:50] segment23: [k-_: its a ruby contract
[17:06:59] kidoz: has joined #ruby
[17:07:01] segment23: havenwood: i see. id appreciate it if you have links
[17:07:11] havenwood: segment23: Let's discuss in #ruby-offtopic.
[17:07:44] [k-_: segment23: what's your age? <--- i can ask this here since you are a ruby programmer?
[17:08:20] [k-_: no, i cant, because its a ruby contract is a poor excuse
[17:08:46] segment23: [k-_: we usually say how old are you" - i can't correct you since it's a ruby channel?
[17:09:13] allcentury: has joined #ruby
[17:09:16] banister: has joined #ruby
[17:09:53] quimrstorres: has joined #ruby
[17:10:03] Zeroe: has joined #ruby
[17:10:13] ellisTAA: has joined #ruby
[17:10:21] [k-_: segment23: that's not the point (aside: it is okay, since that is the normal flow of conversations), but you shouldn't ask such questions here ??\_(???)_/??
[17:10:28] jerius: has joined #ruby
[17:11:03] RegulationD: I will say it warmed my ex-attorney heart to glance over at IRC and see the phrase "liquidated damages"
[17:11:24] TomyLobo: has joined #ruby
[17:14:35] havenwood: RegulationD: It chilled my ex-att'y heart to its empty core to say it!
[17:15:20] chinmay_dd: has joined #ruby
[17:17:28] pauly_oc: has joined #ruby
[17:18:11] shevy: lawyers went ruby
[17:18:25] shevy: I forgot that havenwood is one as well, he seemed way too nice to be one though
[17:18:35] havenwood: shevy: I'm reformed.
[17:19:24] Maletor: has joined #ruby
[17:19:33] ramfjord: has joined #ruby
[17:19:39] [k-_: :o you are once a lawyer?
[17:19:50] [k-_: no wonder you read docs a lot
[17:21:42] Synthead: has joined #ruby
[17:22:35] drewo: has joined #ruby
[17:23:00] swgillespie: has joined #ruby
[17:23:09] bronson: has joined #ruby
[17:23:17] chichou: has joined #ruby
[17:23:25] al2o3-cr: has joined #ruby
[17:23:48] duggiefresh: has joined #ruby
[17:23:49] conor_: has joined #ruby
[17:24:11] muntos: has joined #ruby
[17:24:34] unver: has joined #ruby
[17:24:38] pyon: has joined #ruby
[17:25:29] rakm: has joined #ruby
[17:25:59] ascarter: has joined #ruby
[17:27:28] chinmay_dd: has joined #ruby
[17:28:09] jtdoncas: has joined #ruby
[17:30:35] cschneid_: what bit of minitest do I need to enable the `test do..end` syntax? Rails has it setup that way, but I'd like to do it in a standalone gem
[17:31:48] jpfuentes2: has joined #ruby
[17:31:51] postmodern: has joined #ruby
[17:34:44] conor_: has joined #ruby
[17:34:56] platzhirsch: has left #ruby: ()
[17:35:01] MEATCHICKEN: has left #ruby: ()
[17:35:20] banister: has joined #ruby
[17:35:50] wookiehangover: has joined #ruby
[17:36:00] towski_: has joined #ruby
[17:37:00] PaulCapestany: has joined #ruby
[17:38:32] akurilin: question: what's the sanest way I have to upgrade to the latest ruby in ubuntu 14.04? Do I have to rbenv?
[17:38:34] tomphp: has joined #ruby
[17:39:10] chichou: akurilin: is it a production server?
[17:39:14] havenwood: akurilin: Brightbox provides nice Ruby packages for Ubuntu: https://www.brightbox.com/docs/ruby/ubuntu/
[17:39:25] Rubie: has joined #ruby
[17:39:31] akurilin: chichou: dev box
[17:39:52] chichou: rbenv or chruby would be my choices
[17:40:33] havenwood: akurilin: If you just want to switch between MRI versions the Brightbox packages with ruby-switch or update-alternatives should suffice. Otherwise ruby-install with chruby!
[17:41:13] chichou: that ^, I have to admit that I don't use Ubuntu much :)
[17:41:57] havenwood: akurilin: https://github.com/postmodern/chruby#readme
[17:42:58] j3r0: has joined #ruby
[17:43:15] djbkd: has joined #ruby
[17:43:51] malconis_: has joined #ruby
[17:43:56] gard: has joined #ruby
[17:45:20] bradland: one man's opinion, but i would not use rbenv
[17:45:25] gambl0re: has joined #ruby
[17:45:30] muntos: has left #ruby: ()
[17:45:31] bradland: i would go with chruby
[17:46:10] jobewan: has joined #ruby
[17:46:15] akurilin: let me try to understand the upside of chruby
[17:46:18] workmad3: bradland: make that two people's opinions ;)
[17:46:43] havenwood: I third the motion.
[17:47:04] workmad3: akurilin: the motion passes, you are to use chruby! ;)
[17:47:06] akurilin: As far as I'm concerned I'm trying to reduce magic and the complexity of setting up different rubies,so if chruby gets me there, I'm happy
[17:47:22] bradland: in terms of reducing magic, chruby is what you want
[17:47:36] workmad3: akurilin: chruby is small enough that you can read through it and grok it quickly, if you're so inclined
[17:47:37] bradland: in order of magic from more to less: rvm, rbenv, chruby
[17:47:56] havenwood: akurilin: https://github.com/postmodern/chruby/blob/master/share/chruby/chruby.sh
[17:48:05] havenwood: akurilin: That's it ^
[17:48:21] woobywoob: has joined #ruby
[17:48:30] havenwood: woobywoob: hi
[17:48:36] woobywoob: anyone aware of how to prevent double submit on rails forms?
[17:48:41] akurilin: you guys are selling me super hard
[17:48:48] havenwood: woobywoob: #rubyonrails is the best place for Rails stuff
[17:48:52] jhass: ?rails woobywoob
[17:48:52] ruboto: woobywoob, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[17:48:56] Uuku: has joined #ruby
[17:48:59] Antiarc: has joined #ruby
[17:49:39] havenwood: akurilin: Hi, I'm with the chruby welcoming committee. Welcome!
[17:49:40] Mon_Ouie: has joined #ruby
[17:49:46] khebbie: has joined #ruby
[17:51:51] rickmasta: has joined #ruby
[17:52:02] christiandsg: has joined #ruby
[17:52:50] frozen3: has joined #ruby
[17:53:31] Rubie: has joined #ruby
[17:53:51] hobodave: has joined #ruby
[17:55:47] droidburgundy: has joined #ruby
[17:57:22] baweaver: has joined #ruby
[17:57:28] deol: has joined #ruby
[17:57:34] Torrieri: has joined #ruby
[17:58:08] Coraline: I'm invoking a shell command with ` and capturing its output in a variable. Is there a way to output _variable_ with each line of output from the ` ?
[17:58:25] Coraline: Rather than waiting for the ` to complete/
[17:58:52] jhass: Coraline: you'll have to use something from open3 stdlib or Process.popen
[17:59:06] jhass: er, IO.popen it was
[17:59:13] adaedra: or Kernel#open
[17:59:38] RegulationD: has joined #ruby
[17:59:51] jhass: or just use system if all you really want is the output going to your stdout
[18:00:28] hinbody: has joined #ruby
[18:00:36] jhass: or spawn if you don't even want to block on its execution
[18:02:28] autofsckk: has joined #ruby
[18:03:05] drewo: has joined #ruby
[18:03:54] sarkyniin: has joined #ruby
[18:03:57] podman: has joined #ruby
[18:04:17] hashrocket: has joined #ruby
[18:04:59] juanpablo__: has joined #ruby
[18:05:08] shock_one: has joined #ruby
[18:05:12] jerius: has joined #ruby
[18:05:33] shinnya: has joined #ruby
[18:05:39] wldcordeiro: has joined #ruby
[18:05:51] christiandsg: has joined #ruby
[18:05:55] Guest50: has joined #ruby
[18:06:04] ruby-lang901: has joined #ruby
[18:06:16] lagweezle: has left #ruby: ()
[18:06:24] hahuang61: has joined #ruby
[18:07:17] Scriptonaut: has joined #ruby
[18:07:54] Scriptonaut: anyone know of a quick way to take an array of objects and turn it into a hash with each key being a specified key and the valu being each object?
[18:08:32] dojobo: sounds like a job for Array#map
[18:08:32] Coraline: adaedra: I tried this https://gist.github.com/CoralineAda/d6a978e4d077873d5740 and get a broken pipe
[18:08:39] adaedra: .map { |o| [ o.field, o ] }.to_h
[18:08:39] gambl0re: has joined #ruby
[18:08:56] dojobo: adaedra++
[18:09:35] adaedra: /nick adaedrb
[18:09:42] swgillespie: has joined #ruby
[18:09:44] Zeroe: has joined #ruby
[18:09:58] adaedra: Coraline: works for me :x
[18:09:59] tomphp: has joined #ruby
[18:10:23] Coraline: adaedra: I'm invoking rspec through that command, make a different?
[18:10:31] toretore: has joined #ruby
[18:11:04] clarkenciel: has joined #ruby
[18:11:08] adaedra: if you read only one line and rspec outputs multiple line, it is normal that rspec SIGPIPE
[18:11:37] mikecmpbll: has joined #ruby
[18:11:51] Coraline: Makes sense
[18:11:56] veonik: has joined #ruby
[18:12:35] _clarkenciel: has joined #ruby
[18:12:39] Scripore: has joined #ruby
[18:12:40] NeverDie: has joined #ruby
[18:12:55] loc22: has joined #ruby
[18:13:01] veonik: hi everyone. I'm wondering if any have advice regarding activerecord alternatives? i would really prefer a data mapper style ORM but i wanted to see if anyone had specific suggestions
[18:13:03] xcesariox: has joined #ruby
[18:13:29] yorickpeterse: veonik: Sequel
[18:13:35] howdoico1: has joined #ruby
[18:13:38] Coraline: IIRC they just released a new version?
[18:13:41] Coraline: Oh yeah, that
[18:14:08] adaedra: Coraline: looping on gets works fine and doesn't SIGPIPE
[18:14:24] Coraline: Yep, that's what I'm trying now
[18:16:20] adaedra: Or #each_line :3
[18:16:34] chichou: has joined #ruby
[18:16:59] davedev24: has joined #ruby
[18:17:44] BraddPitt: this is really neat: https://stripe.com/blog/distributed-ruby-testing
[18:17:45] qubitz: has joined #ruby
[18:17:55] BraddPitt: not so much about ruby, more about distributed testing
[18:17:57] BraddPitt: but still neat!
[18:18:03] DelDotB: has joined #ruby
[18:18:45] Valeness: has joined #ruby
[18:19:17] Thomas-0725: has joined #ruby
[18:19:20] wldcordeiro: has joined #ruby
[18:19:23] Lovich: has joined #ruby
[18:19:26] Lovich: i need help
[18:20:06] apeiros: what do you need help with?
[18:20:47] shevy: loooovich
[18:20:49] momomomomo: has joined #ruby
[18:21:06] shevy: you caught us red handed here, now we have to know
[18:21:18] baweaver: has joined #ruby
[18:21:58] ruboto: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
[18:22:00] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[18:22:14] yorickpeterse: ?yorickpeterse
[18:22:14] ruboto: I don't know anything about yorickpeterse
[18:22:16] hololeap: has joined #ruby
[18:22:38] jhass: I think we can do something about that, I'm just uncreative
[18:22:54] apeiros: somebody is still available.
[18:23:00] apeiros: someone probably too
[18:23:02] shevy: nobody died
[18:23:11] apeiros: shevy: what? I'm alive and well!
[18:23:23] shevy: I thought you were somebody!
[18:23:31] ruboto: apeiros is nobody. They're one of the four people with founders access in the #ruby channel, owner of ruboto the channel bot and ruby-community.com the companion website for the #ruby channel
[18:23:43] apeiros: mistaaaake! :D
[18:23:44] shevy: then jhass was somebody
[18:23:48] ruboto: jhass is anybody. They're a member of the op staff in #ruby, contributor to ruboto and ruby-community.com
[18:23:48] ruboto: jhass is anybody. They're a member of the op staff in #ruby, contributor to ruboto and ruby-community.com
[18:24:18] ruboto: I don't know anything about shevy
[18:24:24] adaedra: no one does
[18:24:28] mandarinkin: has joined #ruby
[18:24:55] al2o3-cr: shevy's like a dog in the fog
[18:25:29] angrywombat: has joined #ruby
[18:26:04] howdoico1: has joined #ruby
[18:26:09] kirun: has joined #ruby
[18:26:59] shevy: I am the hound of baskerville!
[18:28:25] apeiros: !fact add shevy shevy is the hound of baskerville
[18:28:25] ruboto: apeiros, I will remember that shevy is shevy is the hound of baskerville
[18:28:42] baweaver: I am beaver
[18:28:50] apeiros: I wonder whether anybody is in #ruby & #ruby-lang longer than shevy
[18:29:39] shevy: baweaver I think we had some other coding animal here lately...
[18:29:42] Lovich: so none of you guys want to help?
[18:29:53] Scriptonaut: are there any special chars inside a case statement to refer to the match you pass to case?
[18:29:58] baroquebobcat: has joined #ruby
[18:29:58] jhass: Lovich: you didn't read the facts
[18:29:58] yorickpeterse: Lovich: see above, just ask your question
[18:30:04] shevy: Lovich you'll never say what your problem is right?
[18:30:05] apeiros: 20:20 apeiros: what do you need help with?
[18:30:07] Scriptonaut: like: case x, then $_ returns x or something
[18:30:15] apeiros: Lovich: can't help you if you don't read.
[18:30:19] [spoiler]: yorickpeterse: your way is better, less iterations :)
[18:30:23] Lovich: whoa you guys need to relax man
[18:30:28] apeiros: Scriptonaut: nope
[18:30:30] shevy: Scriptonaut hmm no, $_ is already reserved I think
[18:30:39] Scriptonaut: alright thanks
[18:30:42] [spoiler]: yorickpeterse: but you're right, to_sentence wouldn't capitalise the words
[18:30:43] jhass: Scriptonaut: case x when y calls y === x
[18:30:46] decaff: has joined #ruby
[18:30:49] apeiros: Scriptonaut: case expr; when cond # is evaluated as cond === expr
[18:30:54] avitzurel: has joined #ruby
[18:31:02] Scriptonaut: I was hoping it was bound to some variable
[18:31:03] Scriptonaut: automatically
[18:31:05] Scriptonaut: like in a regex
[18:31:10] jhass: so you can write something for y that responds to === and does whatever with x
[18:31:13] apeiros: if you need an explicit reference, then you'll have to use multiple statements
[18:31:13] baweaver: $LAST_READ_LINE
[18:31:25] shevy: Scriptonaut I'd love for case structures to yield us more information; last evaluated context, main alias key, secondary alias keys e. g. when 'a','b','c' 'a' would be the main one as it would come first
[18:31:39] baweaver: http://idiosyncratic-ruby.com/9-globalization.html
[18:31:47] Lovich: has left #ruby: ()
[18:31:55] shevy: the usual answer when it comes to case/when I get is "use a hash" instead, but I love case way too much to use a hash <3
[18:32:02] shevy: baweaver oh
[18:32:22] alphaatom: has joined #ruby
[18:32:33] shevy: I can't remember those $ short ones :(
[18:32:35] [spoiler]: shevy: what do you mean use hashes? :o
[18:32:43] apeiros: seems lovich didn't need help after all
[18:33:05] baweaver: shevy: me either, I actively avoid memorizing them
[18:33:06] jhass: what a surprise
[18:33:32] baweaver: bad habits from early coding in perl I'd rather leave burried.
[18:33:42] shevy: [spoiler] I dunno, I got told to use a hash several times on the mailing list when I wanted something such as aliased-keys; what I did instead was to try to write a case/when parser instead, but it's not a good implementation since I am lazy
[18:34:16] baweaver: For what type of usecase?
[18:34:21] [spoiler]: shevy: but used where?
[18:34:38] casadei_: has joined #ruby
[18:34:51] shevy: [spoiler] I think I wanted tab-completion in readline
[18:35:32] drbrain: abbrev is great for tab-completion with readline
[18:35:34] lwu: has joined #ruby
[18:37:09] kadoppe: has joined #ruby
[18:37:37] chinmay_dd_: has joined #ruby
[18:38:41] djbkd: has joined #ruby
[18:39:05] dr3w: has joined #ruby
[18:39:09] roolo: has joined #ruby
[18:39:22] ledestin: has joined #ruby
[18:40:05] spleen: has joined #ruby
[18:40:26] jobewan: has joined #ruby
[18:41:42] tkuchiki: has joined #ruby
[18:42:01] bruno-: has joined #ruby
[18:42:15] spleen: has left #ruby: ()
[18:42:36] josh3: has joined #ruby
[18:43:26] snockerton: has left #ruby: ()
[18:44:07] _blizzy_: has joined #ruby
[18:44:57] michael_mbp: has joined #ruby
[18:46:59] khebbie: has joined #ruby
[18:47:13] momomomomo_: has joined #ruby
[18:48:56] freerobby: has joined #ruby
[18:52:26] _blizzy_: has joined #ruby
[18:55:13] icarus: has joined #ruby
[18:59:01] Trynemjoel: has joined #ruby
[19:02:28] khebbie: has joined #ruby
[19:04:00] lannonbr: has joined #ruby
[19:04:16] Tamae: has joined #ruby
[19:04:23] linuxboytoo: has joined #ruby
[19:05:15] jtdoncas: has joined #ruby
[19:06:04] diegoviola: has joined #ruby
[19:06:06] juanpablo__: has joined #ruby
[19:06:37] davedev24: has joined #ruby
[19:07:02] gambl0re: has joined #ruby
[19:07:10] arooni-mobile: has joined #ruby
[19:07:28] centrx: has joined #ruby
[19:08:07] centrx: has joined #ruby
[19:08:44] tomphp: has joined #ruby
[19:09:05] jenrzzz: has joined #ruby
[19:09:32] Trynemjoel: has joined #ruby
[19:09:35] mary5030: has joined #ruby
[19:09:46] ub: has joined #ruby
[19:09:53] ub: has left #ruby: ("Konversation terminated!")
[19:10:25] arooni-mobile__: has joined #ruby
[19:10:26] lannonbr: has joined #ruby
[19:11:03] bronson: has joined #ruby
[19:11:05] mary5030: has joined #ruby
[19:11:43] malconis: has joined #ruby
[19:11:45] swgillespie: has joined #ruby
[19:12:34] shevy: miah, slayer of typos!
[19:13:29] malconis: has joined #ruby
[19:15:31] axl_: has joined #ruby
[19:15:54] yfeldblum: has joined #ruby
[19:16:31] swgillespie: has joined #ruby
[19:16:32] Trynemjoel: has joined #ruby
[19:17:24] amclain: has joined #ruby
[19:17:26] shmilan: has joined #ruby
[19:17:31] Musashi007: has joined #ruby
[19:18:07] [spoiler]: miah: thanks :)
[19:19:08] hashrocket: has joined #ruby
[19:20:06] jerius: has joined #ruby
[19:21:15] gambl0re: has joined #ruby
[19:21:38] Scripore: has joined #ruby
[19:22:08] jschmid: has joined #ruby
[19:22:17] angrywombat: has left #ruby: ("WeeChat 1.2")
[19:22:27] troulouliou_div2: has joined #ruby
[19:22:42] mesamoo: has joined #ruby
[19:22:43] dc: has joined #ruby
[19:23:22] icarus: has joined #ruby
[19:23:44] n_blownapart: has joined #ruby
[19:23:56] zanloy: has joined #ruby
[19:23:59] KramerC: has joined #ruby
[19:24:21] ascarter: has joined #ruby
[19:24:54] pragmati_: has joined #ruby
[19:27:39] Scripore: has joined #ruby
[19:27:49] yardenbar: has joined #ruby
[19:28:24] mkmcdonald: has joined #ruby
[19:28:51] paulcsmith: has joined #ruby
[19:30:07] mkmcdonald: Hi, I am encountering a puzzling problem with RSpec. Running it, when no tests exist, leads to this error:
[19:30:10] mkmcdonald: > /var/lib/gems/2.1.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:644:in `block in expect_with': uninitialized constant RSpec::Expectations::MultipleExpectationsNotMetError (NameError)
[19:30:35] mkmcdonald: Line 644 of configuration.rb is trying to access `::RSpec`
[19:30:47] postmodern: what's the correct way to configure rdoc, via the rake task or .rdoc_options ?
[19:30:59] tomphp: has joined #ruby
[19:31:06] shock_one: has joined #ruby
[19:32:46] tomphp: has joined #ruby
[19:32:51] chabil: has joined #ruby
[19:33:52] hydrozen: has joined #ruby
[19:35:16] NeverDie: has joined #ruby
[19:35:32] waxjar: .rdoc_options, imo. no need for rake, right?
[19:35:33] chichouw: has joined #ruby
[19:36:26] baweaver: has joined #ruby
[19:36:43] postmodern: waxjar, well it would work with the rake task and the rdoc command
[19:37:50] Rubie: has joined #ruby
[19:38:03] postmodern: although .rdoc_options is YAML, which is kind of weird
[19:38:06] postmodern: https://github.com/ghostganz/madeleine/blob/master/.rdoc_options
[19:39:28] hazelux: has joined #ruby
[19:39:58] Guest50: has joined #ruby
[19:42:36] pragmatism: has joined #ruby
[19:43:06] TheNet: has joined #ruby
[19:43:37] C1V0: has joined #ruby
[19:44:49] ascarter: has joined #ruby
[19:45:10] jhack: Hey, im having trouble retrieving my data from YAML file and returning it into my arrays
[19:45:11] jhack: https://gist.github.com/jhack32/f6de20cfd1363d4e241f
[19:47:01] postmodern: jhack, first off, use File.open(...) { |file| YAML.dump(data,file) }
[19:47:09] postmodern: jhack, that will ensure the file gets closed
[19:47:19] veonik: has left #ruby: ()
[19:47:41] postmodern: jhack, also use YAML.load_file()
[19:47:44] droidburgundy: has joined #ruby
[19:47:48] malcolmva: has joined #ruby
[19:47:55] postmodern: jhack, and remember to store or merge the data into a variable, otherwise it will get GCed
[19:48:45] apeiros: um, just File.write(path, data.to_yaml)
[19:49:05] howdoico1: has joined #ruby
[19:49:51] shevy: for a moment I thought jhass was asking a question
[19:50:15] linuxboytoo: has joined #ruby
[19:51:35] DLSteve: has joined #ruby
[19:51:38] jhack: apeiros: so File.write would be for my save_game method right?
[19:52:05] apeiros: playing hearthstone atm, so couldn't look at your gist, sorry. but presumably yes
[19:52:37] kies: has joined #ruby
[19:52:50] [spoiler]: shevy: jhass isn't allowed to ask question
[19:53:09] [spoiler]: jhass: go to your corner!
[19:53:17] Jackneill: has joined #ruby
[19:53:17] jhass: where's that?
[19:54:34] autofsckk: /j archlinux-es
[19:54:48] nertzy: has joined #ruby
[19:55:46] mary5030: has joined #ruby
[19:56:26] s2013: has joined #ruby
[19:56:29] jhack: I still can't seem to retrieve the data and store into my arrays :x
[19:57:21] mary5030_: has joined #ruby
[19:58:10] mary5030_: has joined #ruby
[19:58:48] epistrephein: has joined #ruby
[19:58:49] shmilan: has joined #ruby
[19:59:04] jhack: Should i be using YAML::load(filename) to get the data?
[19:59:11] dfockler: has joined #ruby
[19:59:24] yqt: has joined #ruby
[19:59:43] Scripore: has joined #ruby
[20:00:29] avitzurel: has joined #ruby
[20:01:28] rbowlby: has joined #ruby
[20:01:30] skinofstars: has joined #ruby
[20:02:30] baweaver: has joined #ruby
[20:02:32] apeiros: jhack: I think somebody just told you to use YAML.load_file
[20:02:43] apeiros: YAML.load works with a string containing yaml data, not a path.
[20:02:51] nhhagen: has joined #ruby
[20:04:09] swgillespie: has joined #ruby
[20:04:42] josh3: has joined #ruby
[20:05:52] nertzy: has joined #ruby
[20:08:35] TheNet: has joined #ruby
[20:09:41] kidoz: has joined #ruby
[20:09:46] tonios57: has joined #ruby
[20:09:53] Mon_Ouie: has joined #ruby
[20:10:01] n_blownapart: has joined #ruby
[20:11:11] atomical: has joined #ruby
[20:11:47] clarkenciel: has joined #ruby
[20:12:06] clarkenciel: has joined #ruby
[20:12:08] _clarkenciel: has joined #ruby
[20:12:27] startupality: has joined #ruby
[20:14:45] atomical_: has joined #ruby
[20:15:25] jhack: I'm using YAML.load_file, I'm trying to replace my applications empty array (starting arrays) with the arrays located inside the YAML file. aperios
[20:17:04] rcvalle: has joined #ruby
[20:17:08] coban2k: has joined #ruby
[20:17:53] gard: has joined #ruby
[20:18:36] Scripore: has joined #ruby
[20:19:14] apeiros: ?tabnick jhack
[20:19:14] ruboto: jhack, pro-tip - use tab completion for nicks. avoids typos in nicks.
[20:19:40] _seanc_: has joined #ruby
[20:21:04] apeiros: jhack: is this up to date then? https://gist.github.com/jhack32/f6de20cfd1363d4e241f
[20:21:35] malconis_: has joined #ruby
[20:21:36] apeiros: because line 22 there reads YAML.load(yaml.to_yaml), which is wrong in two ways
[20:21:55] jhack: I just updated it
[20:22:30] bluOxigen: has joined #ruby
[20:23:10] BraddPitt: besides using `nohup` is there a way I can run a ruby script in the background?
[20:23:54] BraddPitt: oh can I just do `nohub ruby ruby_script.rb &` ?
[20:23:58] bruno-: has joined #ruby
[20:24:01] crazydiamond: has joined #ruby
[20:25:08] ccooke: BraddPitt: fork() is your friend
[20:25:28] Guest50: has joined #ruby
[20:25:32] wldcordeiro: has joined #ruby
[20:26:01] ccooke: BraddPitt: http://stackoverflow.com/questions/1740308/create-a-daemon-with-double-fork-in-ruby
[20:26:04] Sirecote: has joined #ruby
[20:26:21] BraddPitt: thanks mate
[20:27:13] Scripore: has joined #ruby
[20:27:15] jhack: apeiros: I ound a solution, YAML.load_file(yaml).guess
[20:27:22] jhass: BraddPitt: you could Process.daemon, but http://www.mikeperham.com/2014/09/22/dont-daemonize-your-daemons/
[20:28:41] sdwrage: has joined #ruby
[20:28:50] [spoiler]: apeiros: I actually read your name as "aperios" sometimes, even though I know it's apeiros
[20:28:55] BraddPitt: rvnm, chrbuh or rbenv?
[20:29:00] [spoiler]: not sure why
[20:29:10] [spoiler]: BraddPitt: rvm, personally because gemsets
[20:29:10] rbennacer: has joined #ruby
[20:29:36] jhass: bundler replaced any need for gemsets for me
[20:29:52] [spoiler]: jhass: hmm, indeed
[20:29:54] rbennacer: has joined #ruby
[20:30:00] [spoiler]: I actually rarely use gemsets
[20:30:00] jhass: so I chruby between system packages
[20:30:25] dr3w: has joined #ruby
[20:31:14] kaps: has joined #ruby
[20:31:24] Torrieri: has joined #ruby
[20:31:25] Torrieri: has joined #ruby
[20:32:10] ndrei: has joined #ruby
[20:32:19] rbennacer: has joined #ruby
[20:32:51] [spoiler]: BraddPitt: best thing would be to use ruby-install + chruby
[20:33:59] Pupeno: has joined #ruby
[20:34:15] BraddPitt: i just installed rben
[20:34:20] havenwood: BraddPitt: chruby!
[20:34:30] jbw: has joined #ruby
[20:34:57] TomyLobo: >> /foo/.to_s # is there a way to get something more resembling "foo" back?
[20:34:58] ruboto: TomyLobo # => "(?-mix:foo)" (https://eval.in/416475)
[20:35:03] jhass: rbenv is the worst :P
[20:35:21] jhass: TomyLobo: seems like a broken usecase
[20:35:42] TomyLobo: maybe i'm superstitious :)
[20:35:53] Scripore: has joined #ruby
[20:36:18] [spoiler]: TomyLobo: erm the problem is, what will to_s return exactly?
[20:36:20] [spoiler]: It's ambiguous
[20:36:24] jhass: TomyLobo: so before we even think about the how, enlighten us on the how
[20:36:26] [spoiler]: You can use Regexp#inspect I guess
[20:36:32] andersh: has joined #ruby
[20:36:46] [spoiler]: &ri Regexp#inspect
[20:36:46] `derpy: http://www.rubydoc.info/stdlib/core/Regexp#inspect-instance_method
[20:36:48] juanpablo__: has joined #ruby
[20:37:20] TomyLobo: >> /foo/.inspect[1..-2] # how about this? :)
[20:37:20] ruboto: TomyLobo # => "foo" (https://eval.in/416476)
[20:37:43] northfurr: has joined #ruby
[20:37:45] mleung: has joined #ruby
[20:37:45] ascarter: has joined #ruby
[20:38:00] jhass: TomyLobo: seriously, why?
[20:39:23] TomyLobo: jhass, i want to interpolate this into a larger regex
[20:39:23] ascarter: has joined #ruby
[20:40:02] diego3: has joined #ruby
[20:40:10] [spoiler]: jhass: there is actually a method for that
[20:40:13] [spoiler]: Regecp#union
[20:40:17] jhass: TomyLobo: you can do that just fine
[20:40:20] [spoiler]: TomyLobo, not jhass sorry
[20:40:29] yqt: has joined #ruby
[20:40:31] jhass: >> /foo #{/bar/}/
[20:40:32] ruboto: jhass # => /foo (?-mix:bar)/ (https://eval.in/416477)
[20:40:35] [spoiler]: &ri Regexp#union
[20:40:35] `derpy: No results
[20:40:41] jhass: >> /foo #{/bar/}/.match "foo bar"
[20:40:42] ruboto: jhass # => #<MatchData "foo bar"> (https://eval.in/416478)
[20:40:59] [spoiler]: &ri Regexp::union
[20:40:59] `derpy: No results
[20:41:00] al2o3-cr: &ri Rexexp.union
[20:41:00] `derpy: No results
[20:41:11] [spoiler]: ACTION googles
[20:41:19] TomyLobo: jhass, yeah i know it, i told you, superstition :)
[20:41:19] [spoiler]: http://ruby-doc.org/core-2.2.2/Regexp.html#method-c-union
[20:41:31] yh: has joined #ruby
[20:41:37] al2o3-cr: `derpy: is having a moment :)
[20:41:52] NeverDie: has joined #ruby
[20:42:01] [spoiler]: >> Regexp::union(/foo/, /bar/, /baz/)
[20:42:02] ruboto: [spoiler] # => /(?-mix:foo)|(?-mix:bar)|(?-mix:baz)/ (https://eval.in/416479)
[20:42:25] millerti: has joined #ruby
[20:42:32] wldcordeiro__: has joined #ruby
[20:42:36] jhass: TomyLobo: get over it then, don't to_s, don't inspect, just interpolate the Regexp object into another one
[20:42:37] [spoiler]: or, if you want it to look nicer...
[20:42:40] [spoiler]: >> Regexp::union(/foo/, /bar/, /baz/).inspect
[20:42:41] ruboto: [spoiler] # => "/(?-mix:foo)|(?-mix:bar)|(?-mix:baz)/" (https://eval.in/416480)
[20:42:51] Scriptonaut: Can you not pass .first a block?
[20:42:55] josh3: has joined #ruby
[20:42:55] Scriptonaut: I swear you used to be able to
[20:43:03] jhass: Scriptonaut: explain with code
[20:43:04] [spoiler]: Scriptonaut: no, what would the block do?
[20:43:07] Scriptonaut: >> [1, 2, 3, 4].first { |s| s == 4 }
[20:43:08] ruboto: Scriptonaut # => 1 (https://eval.in/416481)
[20:43:22] Scriptonaut: return the first instance
[20:43:28] Scriptonaut: but returns just one object
[20:43:46] jhass: Scriptonaut: you're searching for find
[20:43:49] [spoiler]: Scriptonaut: detect
[20:44:02] Scriptonaut: [1, 2, 3, 4].find { |s| s == 4 }
[20:44:06] [spoiler]: &ri Enumerable#detect
[20:44:06] `derpy: http://www.rubydoc.info/stdlib/core/Enumerable#detect-instance_method
[20:44:06] Scriptonaut: >> [1, 2, 3, 4].find { |s| s == 4 }
[20:44:07] ruboto: Scriptonaut # => 4 (https://eval.in/416482)
[20:44:18] Scriptonaut: what's better detect or find
[20:44:22] [spoiler]: they're the same
[20:44:24] baweaver: they're the same
[20:44:25] tmillc: has joined #ruby
[20:44:31] Uuku: hey gaiz, i'm looking for resources to learn ruby without starting from the bottom (like 'hello world' kinda stuff), but more simplified than just the docs
[20:44:32] baweaver: but find is clearer on intention
[20:44:36] tmillc: what is happening with m << n, where m,n are ints?
[20:44:41] baweaver: at least in my opinion
[20:44:51] jhass: Uuku: what's your background?
[20:44:56] DelDotB: has joined #ruby
[20:45:06] [spoiler]: tmillc: left shit
[20:45:07] baweaver: tmillc look at the integer docs to see it
[20:45:32] tmillc: okay thanks
[20:45:46] baweaver: Uuku: http://learnxinyminutes.com/docs/ruby/
[20:45:53] [spoiler]: baweaver: I actually think finder is nicer (most of the time), too. I am never sure if it's #search or #find though
[20:45:55] baweaver: that assumes you have programming knowledge though.
[20:46:02] josh4: has joined #ruby
[20:46:05] jbw: has joined #ruby
[20:46:05] [spoiler]: baweaver: and I know #detect is the same as one of those :P
[20:46:25] [spoiler]: find is nicer*
[20:46:40] baweaver: I know from using Ruby way too much.
[20:47:43] michaeldeol: has joined #ruby
[20:48:04] [spoiler]: baweaver: I wish I used it more :(
[20:48:07] _seanc_: has joined #ruby
[20:48:14] wallerdev: has joined #ruby
[20:48:25] Musashi007: has joined #ruby
[20:48:32] dr3w: has joined #ruby
[20:48:38] bluOxigen: has joined #ruby
[20:48:46] bluOxigen: has joined #ruby
[20:49:13] northfurr: has joined #ruby
[20:49:16] malconis: has joined #ruby
[20:49:51] deol: has joined #ruby
[20:50:06] tvw: has joined #ruby
[20:53:32] kies: has joined #ruby
[20:55:04] sarkyniin: has joined #ruby
[20:55:05] Ox0dea: has joined #ruby
[20:55:57] RickHull: has joined #ruby
[20:56:26] Scripore: has joined #ruby
[20:57:11] RickHull: ljarvis: what do you think about adding my usage method in slop_usage.rb? https://gist.github.com/rickhull/4bcbc7debbcaf7e635ff
[20:58:10] RickHull: https://gist.github.com/rickhull/4bcbc7debbcaf7e635ff#file-slop_usage-rb-L7 i.e. add it to slop
[20:58:45] Scripore: has joined #ruby
[21:00:07] Scripore: has joined #ruby
[21:00:15] jschmid: has joined #ruby
[21:02:14] tercenya: has left #ruby: ()
[21:02:42] TomyLobo: constraint = @hash[:constraints][sym] or /[^\/]*/ # is there a way to account for @hash[:constraints] being nil without writing a whole poem around it?
[21:03:01] hahuang61: has joined #ruby
[21:03:11] jenrzzz_: has joined #ruby
[21:03:31] jhass: .fetch with a block
[21:03:35] LMity: has joined #ruby
[21:03:40] jhass: er, nope nvm that, brainfart
[21:03:44] jhass: AS/Rails?
[21:03:49] gamename: has joined #ruby
[21:04:29] [spoiler]: TomyLobo: not really
[21:04:42] jhass: well, I mean you can .fetch(:constraints, {}) but it's not very efficient
[21:04:49] malconis: has joined #ruby
[21:05:19] BobbyPinfold: has joined #ruby
[21:05:37] Torrieri: has joined #ruby
[21:05:37] Torrieri: has joined #ruby
[21:06:14] andersh: has joined #ruby
[21:06:28] [spoiler]: TomyLobo: what would happen if there was no :constraint key?
[21:06:54] [spoiler]: It's a NPE, pretty much
[21:06:58] [spoiler]: You need to test for it
[21:06:59] TomyLobo: undefined method `[]', wild guess
[21:07:35] ruby-lang653: has joined #ruby
[21:07:39] [spoiler]: TomyLobo: Ok, what would you *like* to when someone calls `@hash[:constraint]` and there's no key?
[21:07:52] howdoico1: has joined #ruby
[21:07:53] [spoiler]: I phrased the question badly before
[21:07:59] northfurr: has joined #ruby
[21:08:00] chichou: has joined #ruby
[21:08:04] wldcordeiro: has joined #ruby
[21:08:12] skinofstars: hi, don't suppose anyone can remember where the original rack introduction blog post is? my google foo fails me
[21:08:37] wldcordeiro: has joined #ruby
[21:08:40] TomyLobo: zip = lottery.drawWinner?().address?.zipcode <-- from the coffeescript examples on coffeescript.org. i guess i'm looking for that
[21:08:50] TomyLobo: existential operator they call it
[21:09:00] leafybasil: has joined #ruby
[21:09:28] shmilan: has joined #ruby
[21:09:32] bricker: TomyLobo: closest thing is try() from ActiveSupport
[21:10:19] bricker: TomyLobo: you could also copy and paste the code from try() into your own app, it's a very simple method
[21:10:20] TomyLobo: ok so as usual, there is that thing i'm looking for, but not without adding a bunch of libraries :)
[21:10:22] BobbyPinfold: Question: any of you guys ever use a cross-platform dev framework?
[21:10:33] NeverDie: has joined #ruby
[21:10:52] chichou: what do you call dev framework?
[21:10:58] TomyLobo: BobbyPinfold, oh i'd love that too. not having autocomplete is killing me
[21:11:01] hahuang61: has joined #ruby
[21:11:04] centrx: a chicken salad?
[21:11:08] BobbyPinfold: "What do I call dev framework"
[21:11:16] chichou: IDE you mean?
[21:11:16] BobbyPinfold: I call a dev framework a dev framework.
[21:11:43] BobbyPinfold: Altova and AppMethod are examples
[21:11:47] saddad: has joined #ruby
[21:12:16] DCameronMauch: has joined #ruby
[21:12:36] momomomomo: has joined #ruby
[21:12:52] [spoiler]: TomyLobo: the quivalent of the existential operator in ruby is this: `constraint = ( tmp = @hash[:constraints]).nil? nil : tmp[sym]` I guess
[21:13:18] [spoiler]: I forgot a ?
[21:13:23] [spoiler]: right after nil?
[21:14:21] Guest50: has joined #ruby
[21:14:52] BraddPitt: has joined #ruby
[21:14:54] chichou: used haxe a bit
[21:15:10] Rubie: has joined #ruby
[21:15:10] gwendall: has joined #ruby
[21:15:34] olistik: has joined #ruby
[21:16:49] ellisTAA: has joined #ruby
[21:18:55] weaksauce: has anyone gotten rubymine to work with chruby?
[21:20:15] michaeldeol: has joined #ruby
[21:21:10] yh: has joined #ruby
[21:21:12] FernandoBasso: has joined #ruby
[21:21:52] jenrzzz: has joined #ruby
[21:22:45] startupality: has joined #ruby
[21:23:08] jbw: has joined #ruby
[21:23:17] zenspider: has joined #ruby
[21:24:10] baweaver: has joined #ruby
[21:24:15] michaeldeol: has joined #ruby
[21:24:37] andersh_: has joined #ruby
[21:25:18] swgillespie: has joined #ruby
[21:25:34] Nieralyte: has joined #ruby
[21:25:35] alfajor: has joined #ruby
[21:28:56] postmodern: weaksauce, easiest way is to start it from the command-line
[21:29:10] ramfjord: has joined #ruby
[21:30:18] mrtg9970: has joined #ruby
[21:31:16] weaksauce: hm I tried that and it didn't work. postmodern
[21:31:55] renderful: has joined #ruby
[21:31:56] baweaver: has joined #ruby
[21:32:10] phutchins: has joined #ruby
[21:32:21] phutchins1: has joined #ruby
[21:33:19] weaksauce: actually it might be working now. i deleted the remnants of the old rvm install and it doesn't complain at least
[21:36:54] zendrix: has joined #ruby
[21:37:20] Musashi007: has joined #ruby
[21:40:33] ellisTAA: has joined #ruby
[21:41:00] [spoiler]: my cat got sick :/
[21:41:12] zenspider: shouldn't feed the cat pigeons
[21:41:40] zenspider: if there were any words I could ban from this channel it'd be all variants of "it didn't work"
[21:41:48] TheNet: has joined #ruby
[21:42:07] dfockler: my pigeons got sick :?
[21:42:31] apeiros: zenspider: that wouldn't work :o)
[21:42:43] shevy: [spoiler] how can you determine this?
[21:43:38] rbennacer: has joined #ruby
[21:43:44] adaedra: This solution didn't have the expected effect.
[21:44:03] dfockler: at least that sounds more refined
[21:44:05] [spoiler]: shevy: determine what? :o
[21:44:22] shevy: [spoiler] that the cat is sick
[21:44:55] [spoiler]: shevy: From his behaviour. He's probably having a reaction to the vaccination
[21:44:59] adaedra: shevy: cat owners know these things.
[21:45:12] [spoiler]: TomyLobo: you can implement something like this quite trivially btw
[21:45:51] tomphp: has joined #ruby
[21:45:52] adaedra: I'm afraid I have to inform you that your appreciated efforts to solve my current problem did not lead to a resolution.
[21:46:03] adaedra: ... I'll stop here.
[21:46:38] [spoiler]: adaedra: huh
[21:47:37] [spoiler]: TomyLobo: this is probably a lame-ish implementation: https://gist.github.com/omninonsense/02a3b6bca599c40f8640
[21:47:56] cornerma1: has joined #ruby
[21:49:21] [spoiler]: use as @hash.chain_keys *%i{dem nested keys}
[21:49:24] baweaver: has joined #ruby
[21:49:40] jenrzzz: has joined #ruby
[21:51:02] mkmcdonald: has left #ruby: ("Leaving")
[21:51:20] arooni-mobile__: has left #ruby: ("Leaving")
[21:51:55] woodruffw: has joined #ruby
[21:52:43] jgpawletko: has joined #ruby
[21:53:03] weaksauce: postmodern do you use the debugging feature of rubymine for rails? it seems impressively slow.
[21:53:15] hashrocket: has joined #ruby
[21:53:30] centrx: Impressive
[21:53:33] [spoiler]: weaksauce: what did you expect? It's ruby, and it's debugging overhead :P
[21:54:26] [spoiler]: centrx: Yeah, I wouldn't use "impressively" to describe something bad either
[21:54:33] weaksauce: well a simple page change takes 15 seconds. i expect a fair bit faster than that
[21:54:39] bruno-: has joined #ruby
[21:54:48] [spoiler]: weaksauce: hmm ok that *does* seem over the top
[21:55:03] [spoiler]: what are your resources and which implementation are you using?
[21:55:09] centrx: [spoiler], oh it can be impressive: http://thedailywtf.com/
[21:55:15] TomyLobo: [spoiler], i went with "constraint = (@hash[:constraints].to_h[sym] or /[^\/]*/)"
[21:55:19] howdoico1: has joined #ruby
[21:56:27] pocketprotector: has joined #ruby
[21:56:37] NeverDie: has joined #ruby
[21:56:48] weaksauce: [spoiler] what do you mean by resources? my computer is a mbp i7 with 16gigs of ram. when just running the server by itself normally it's less than a second to render a page change like these
[21:57:09] [spoiler]: TomyLobo: oh clever! I didn't think of calling NilClass#to_h
[21:57:21] patrick_star: has joined #ruby
[21:57:42] Kallis: has joined #ruby
[21:57:42] [spoiler]: I am not sure then...
[21:58:02] [spoiler]: I am not that familiar with rubymine to be able to help, sorry
[21:58:36] troulouliou_div2: has joined #ruby
[21:58:51] Kallis: has joined #ruby
[21:59:42] [spoiler]: http://thedailywtf.com/images/15/q3/e174/Pic-7.png LOL
[22:03:08] [spoiler]: centrx: lol I love the error'd category
[22:04:02] tomphp: has joined #ruby
[22:04:32] TomyLobo: [spoiler], took me a while to figure out why "constraint = @hash[:constraints].to_h[sym] or /[^\/]*/" didnt work like "constraint = (@hash[:constraints].to_h[sym] or /[^\/]*/)"
[22:05:05] TomyLobo: or let's say, took me a while THAT it doesnt. i still have no idea *why* the order of precedence would be so messed up
[22:06:11] TomyLobo: +to find out
[22:06:25] ekleog_: has joined #ruby
[22:06:47] webhat: has joined #ruby
[22:07:02] rickmasta: has joined #ruby
[22:10:01] Kallis: has joined #ruby
[22:11:34] tubulife-: has joined #ruby
[22:11:53] [spoiler]: TomyLobo: it isn't messed up
[22:12:39] TomyLobo: >> foo = nil or 5; foo
[22:12:41] Azure: has joined #ruby
[22:12:42] ruboto: TomyLobo # => nil (https://eval.in/416489)
[22:12:56] TomyLobo: [spoiler], do you stand by your words? :)
[22:12:57] rbowlby_: has joined #ruby
[22:14:33] Coldblackice: has joined #ruby
[22:14:37] cohiijay: has joined #ruby
[22:14:59] renderful: has joined #ruby
[22:15:21] [spoiler]: TomyLobo: that's because it is interpreted as (foo = nil) or 5
[22:15:25] [spoiler]: which is expected
[22:15:27] wallerdev: has joined #ruby
[22:15:44] TomyLobo: >> foo = true or false; puts foo; foo = false or true; foo
[22:15:45] ruboto: TomyLobo # => true ...check link for more (https://eval.in/416490)
[22:16:05] TomyLobo: [spoiler], who expects that coming to ruby?
[22:16:06] zeroDivisible: has joined #ruby
[22:16:21] riotjones: has joined #ruby
[22:16:23] jhass: TomyLobo: it's the difference between || and or
[22:16:23] baweaver: operator precedence.
[22:16:26] rbowlby__: has joined #ruby
[22:16:34] [spoiler]: TomyLobo: use ||
[22:16:38] baweaver: avoid the english ops like that
[22:16:38] [spoiler]: = has higher precedence
[22:16:39] jhass: (and why many people avoid and/or altogether)
[22:16:44] DoubleMalt: has joined #ruby
[22:16:55] [spoiler]: constraint = @hash[:constraints].to_h[sym] || /[^\/]*/
[22:17:00] TomyLobo: there is a difference between or and || when ruby is generally full of synonyms?
[22:17:05] baweaver: the only real uses of them are for perlish type bits
[22:17:13] [spoiler]: TomyLobo: they're not synonyms
[22:17:14] baweaver: TomyLobo: yes
[22:17:19] baweaver: large difference
[22:17:31] TomyLobo: this makes no sense at all
[22:17:46] baweaver: it does if you know perl
[22:17:50] dopie: has joined #ruby
[22:17:53] TomyLobo: yeah who models on perl
[22:17:57] baweaver: if you know python it's confusing
[22:18:10] [spoiler]: haha, Ruby borrows a lot from perl
[22:18:16] baweaver: Matz wasn't joking when he said he stole all the good parts of perl
[22:18:31] baweaver: some_statement or raise 'error'
[22:18:36] baweaver: is normally how it'd be used
[22:18:36] bougyman: ruby was my perl alternative from very early on.
[22:18:47] bougyman: I held out with awk for most things until ruby came along.
[22:18:55] bougyman: perl always just made me a bit sick to my stomach.
[22:18:57] centrx: Perl is like a maze with golden gems inside, somewhere
[22:19:01] [spoiler]: bougyman: I still use awk; I always used awk
[22:19:07] bougyman: [spoiler]: same
[22:19:08] baweaver: some_statemant and return foo or raise 'error'
[22:19:10] TomyLobo: baweaver, that's a non-use-case in a language with exception-based error handling
[22:19:14] bougyman: but not for full stack applications.
[22:19:20] bougyman: I still use awk for what awk does best.
[22:19:28] [spoiler]: bougyman: oh no, I didn't mean it for that
[22:19:34] TomyLobo: last time i used that was in php
[22:20:15] [spoiler]: TomyLobo: that is why they're not that commonly used
[22:20:22] bougyman: I did write a web server in awk way back when. and an ident server.
[22:20:26] [spoiler]: They have a few usecases where they're extremely useful
[22:20:49] [spoiler]: bougyman: oh my usage of awk is very simple; mostly for file processing
[22:21:28] baweaver: I wrote SQL in AWK
[22:21:31] [spoiler]: but a webserver in awk sounds impressive, to me :-)
[22:21:33] baweaver: then burned it in shame later.
[22:21:38] pietr0_: has joined #ruby
[22:22:36] juanpablo__: has joined #ruby
[22:22:45] [spoiler]: o shit It's past midnight here; I promised I'd pick up someone tomorrow morning!
[22:23:02] [spoiler]: talk to you tomorrow, me hearties! :D goodnight! <3
[22:24:25] mesamoo: has joined #ruby
[22:25:46] wookiehangover: has joined #ruby
[22:26:43] startupality: has joined #ruby
[22:27:28] DoubleMalt: has joined #ruby
[22:28:41] Musashi007: has joined #ruby
[22:30:17] wasamasa: has joined #ruby
[22:30:18] wasamasa: has joined #ruby
[22:31:43] yfeldblum: has joined #ruby
[22:32:24] TomyLobo: $ file mountpoint/projects/JFS/issues/JFS-1/attachments/10000/huuu-180x174.png
[22:32:24] TomyLobo: mountpoint/projects/JFS/issues/JFS-1/attachments/10000/huuu-180x174.png: PNG image data, 180 x 174, 8-bit gray+alpha, non-interlaced
[22:33:09] TomyLobo: jira fuse file system :)
[22:33:15] TomyLobo: made with rfusefs
[22:33:34] baweaver: ACTION stares blankly.
[22:33:35] TomyLobo: now supports attachments in addition to comments
[22:33:47] paulcsmith: has joined #ruby
[22:37:29] malconis: has joined #ruby
[22:37:38] Scriptonaut: has left #ruby: ()
[22:38:02] wldcordeiro: has joined #ruby
[22:38:25] shevy: you got the poor beaver all confused now
[22:38:40] banister: has joined #ruby
[22:38:41] wldcordeiro: has joined #ruby
[22:39:08] TomyLobo: https://github.com/TomyLobo/jirafuse/ here it is
[22:39:18] TomyLobo: going to bed, work tomorrow :)
[22:39:19] wldcordeiro: has joined #ruby
[22:39:21] jpfuentes2: has joined #ruby
[22:39:31] coban2k: has joined #ruby
[22:41:16] Trynemjoel: has joined #ruby
[22:41:31] havenwood: has joined #ruby
[22:41:57] hololeap: has joined #ruby
[22:42:55] imnars: has joined #ruby
[22:43:02] towski_: has joined #ruby
[22:44:06] zendrix: has joined #ruby
[22:44:16] tubulife-: has joined #ruby
[22:44:29] craysiii: has joined #ruby
[22:45:14] Thomas-0725: if I need to create several million instances of a class, is it possible to save memory space by rewriting some would-be instance methods as class methods?
[22:45:16] diegoviola: has joined #ruby
[22:46:13] howdoico1: has joined #ruby
[22:46:24] Nieralyte: has joined #ruby
[22:46:35] dr3w: has joined #ruby
[22:46:40] fibbel: has joined #ruby
[22:47:12] drbrain: Thomas-0725: no, the instance methods are attached to the class
[22:47:24] drbrain: Thomas-0725: unless you're creating singleton methods for each instance
[22:47:27] centrx: Thomas-0725, I doubt it. As I recall instance methods are located in the eigenclass, one, unless they are overridden in a particular variable
[22:47:31] zendrix: has joined #ruby
[22:47:35] Thomas-0725: ah, that makes sense.
[22:47:38] jackjackdripper: has joined #ruby
[22:47:40] baweaver: better question, why are you doing that?
[22:48:13] zendrix_: has joined #ruby
[22:48:20] baweaver: because if memory is starting to become a concern, ruby may not be the best tool depending on what exactly you're doing.
[22:49:00] zendrix: has joined #ruby
[22:49:08] Thomas-0725: it's a curiosity. I botched a search algorithm earlier and accidentally created a large number of extraneous nodes due to poor recursion.
[22:49:36] Thomas-0725: While in reality I didn't need that many nodes, it got me thinking ... what if I did? How could I save space? etc.
[22:49:37] skinofstars: does anyone know why rack's third param must be enumerable? i've only ever seen examples where it has one element
[22:49:37] baweaver: it's a curiosity to your curiosity then :P
[22:49:38] freerobby: has joined #ruby
[22:49:39] decaff: has joined #ruby
[22:50:11] nfk: has joined #ruby
[22:50:25] drbrain: skinofstars: it makes it easy to have a middleware attach new content to the end of another response without reallocating a string
[22:50:26] freerobby: has joined #ruby
[22:51:26] skinofstars: drbrain: ahh, so you can just push more content in?
[22:51:40] drbrain: skinofstars: yes, or wrap
[22:52:07] skinofstars: drbrain: both brilliant, and something i wish i knew yesterday :)
[22:55:27] Oog: has joined #ruby
[22:55:43] benlieb: has joined #ruby
[22:57:02] hahuang65: has joined #ruby
[22:57:29] loc22: has joined #ruby
[22:58:08] michaeldeol: has joined #ruby
[22:59:11] drbrain: you can also use it to avoid assembling a complete string in your application
[22:59:27] drbrain: for examaple, if you have a bunch of templates you could shove the output of each into an Array
[23:00:28] Azure: has joined #ruby
[23:00:47] jcdesimp: has joined #ruby
[23:00:52] zendrix_: has joined #ruby
[23:02:37] zendrix_: has joined #ruby
[23:03:54] charliesome: has joined #ruby
[23:04:25] sepp2k: has joined #ruby
[23:04:33] wldcordeiro: has joined #ruby
[23:09:06] brazenbraden: has joined #ruby
[23:09:44] swgillespie: has joined #ruby
[23:11:47] shock_one: has joined #ruby
[23:12:03] brazenbraden: morning. i have written a simple ruby command line script that includes a file logger. the logger will write to /var/logs/myscript.log. i'm doing File.open('/var/log/my.log', 'w').write but obviously i'm getting a permission denied because i'm running the script as myself and therefore it doesn't have permission to create the file in /var/log (owned by root)
[23:14:35] Valeness: su owner make me a sandwich
[23:14:59] baweaver: sudo touch /var/log/my.log && sudo chown !$ `whoami`
[23:15:29] baweaver: sudo touch /var/log/my.log && sudo chown `whoami` !$
[23:15:33] baweaver: always mix that up....
[23:15:41] mephistophocles: has joined #ruby
[23:15:49] baweaver: !$ is last argument of last command
[23:16:18] mescalito: has joined #ruby
[23:16:35] baweaver: BrazenBraden: ^
[23:16:38] j4cknewt: has joined #ruby
[23:17:02] brazenbraden: baweaver, that would be needed first time around, but if i'm doing this from in the script itself?
[23:17:32] baweaver: then make a folder in log
[23:17:43] baweaver: problem solved, then you can logrotate the thing as well.
[23:17:54] brazenbraden: i would have to $ sudo ruby myscript.rb? actually, maybe this isn't an issue since the the script will be installed as a cron job
[23:18:10] baweaver: I'd make a directory in log
[23:18:17] baweaver: don't run anything as sudo you don't have to.
[23:18:34] baweaver: especially if you have permissions on it to allow anyone to edit
[23:18:42] baweaver: and it's getting run as sudo
[23:19:00] GeissT: has joined #ruby
[23:19:00] brazenbraden: so /var/log/mylog/ would be owned by *me* and the running the script as *me* would write its files into that with no probs, right?
[23:19:15] baweaver: that and now it's easier to find your logs as well.
[23:19:19] jhack: Has anyone checked out portalplatform?
[23:19:23] brazenbraden: baweaver, tyvm!
[23:19:36] Vile`: has joined #ruby
[23:20:07] baweaver: saw too many mentions of enterprise and java in the search results and closed that tab real fast.
[23:21:27] michael_mbp: has joined #ruby
[23:23:07] NeverDie: has joined #ruby
[23:24:05] nofxx: has joined #ruby
[23:25:13] Pupeno_: has joined #ruby
[23:25:40] foureight84: has joined #ruby
[23:32:44] howdoico1: has joined #ruby
[23:33:15] djbkd: has joined #ruby
[23:33:45] Scripore: has joined #ruby
[23:34:09] pyon: has joined #ruby
[23:34:35] northfurr: has joined #ruby
[23:37:30] arta82: has joined #ruby
[23:38:13] Yzguy: has joined #ruby
[23:38:44] cohiijay: has joined #ruby
[23:39:00] shmilan: has joined #ruby
[23:39:14] arta82: has joined #ruby
[23:40:18] TheNet: has joined #ruby
[23:42:48] ruby-lang127: has joined #ruby
[23:43:03] ruby-lang715: has joined #ruby
[23:43:14] bruno-: has joined #ruby
[23:43:53] shortdudey123: anyone know of some good examples of creating encrypted RSA keys w/ the openssl library? when i create the key w/ the openssl command line, the file starts with "ENCRYPTED PRIVATE KEY" but using key.export in Ruby the output starts w/ "BEGIN RSA PRIVATE KEY" and has "Proc-Type: 4,ENCRYPTED..."
[23:44:52] luckyme: has joined #ruby
[23:45:07] jpfuente_: has joined #ruby
[23:45:14] drbrain: shortdudey123: http://docs.ruby-lang.org/en/2.2.0/OpenSSL.html#module-OpenSSL-label-Exporting+a+Key
[23:45:41] drbrain: ??? which creates the second type you mentioned
[23:45:46] shortdudey123: drbrain: thats what i am following
[23:45:57] drbrain: I don't know if there's a difference between the two types, though
[23:46:26] drbrain: for example, my SSH private key starts with BEGIN RSA PRIVATE KEY
[23:46:29] shortdudey123: google foo to see if there is a difference is failing me
[23:46:33] drbrain: (which is encrypted with a passphrase)
[23:46:40] Kalov: has joined #ruby
[23:46:42] shmilan: has joined #ruby
[23:46:46] drbrain: and has the Proc-Type: 4,ENCRYPTED in it
[23:47:05] shortdudey123: gotcha, will try it out that way then
[23:47:15] drbrain: ??? should probably upgrade that example to AES-256
[23:47:42] shortdudey123: i am using AES-256-CBC
[23:52:00] Torrieri: has joined #ruby
[23:52:24] northfurr: has joined #ruby
[23:52:30] olistik: has joined #ruby
[23:53:52] drbrain: ok, I submitted a PR: https://github.com/ruby/openssl/pull/21
[23:53:57] josh4: has joined #ruby
[23:54:47] einarj: has joined #ruby
[23:58:11] kies: has joined #ruby