« Back to channel list

#ruby - 29 June 2015

« Back 1 day Forward 1 day »
[00:00:08] j4cknewt: has joined #ruby
[00:00:47] renderful: has joined #ruby
[00:02:47] Rollabunna: has joined #ruby
[00:02:55] sevenseacat: has joined #ruby
[00:06:11] pgatt: has joined #ruby
[00:06:26] workmad3: has joined #ruby
[00:10:20] hotpancakes: has joined #ruby
[00:11:17] yfeldblum: has joined #ruby
[00:12:08] vasilakisfil_: has joined #ruby
[00:12:59] ashleyis: has joined #ruby
[00:16:08] bradgriffin: has joined #ruby
[00:17:08] platosha: has joined #ruby
[00:17:23] rickmasta: has joined #ruby
[00:18:16] Yiota: has joined #ruby
[00:19:02] havenn: has joined #ruby
[00:21:21] nateberkopec: has joined #ruby
[00:26:47] zenguy_pc: has joined #ruby
[00:28:07] urbanmonk: has joined #ruby
[00:34:53] j4cknewt: has joined #ruby
[00:38:19] vdamewood: has joined #ruby
[00:39:17] TinkerTyper: has joined #ruby
[00:41:23] charliesome: has joined #ruby
[00:41:41] matp: has joined #ruby
[00:44:35] Frem: has joined #ruby
[00:45:14] knite: has joined #ruby
[00:45:23] Jeff_D: has joined #ruby
[00:45:58] Rodya_: has joined #ruby
[00:46:42] Jeff_D: has left #ruby: ()
[00:52:04] bf4: has joined #ruby
[00:52:49] dgutierrez1287: has joined #ruby
[00:53:06] jpfuentes2: has joined #ruby
[00:55:00] toretore: has joined #ruby
[00:55:16] nofxx: has joined #ruby
[00:55:32] Blizzy: has joined #ruby
[00:57:01] Rollabunna: has joined #ruby
[01:01:19] nofxx: There was a terminal one liner to render a .md and open the html on the browser... anyone knows? Tought is was redcarpet but there's no bins
[01:04:11] Oka: has joined #ruby
[01:06:52] casadei: has joined #ruby
[01:07:29] ledestin: has joined #ruby
[01:10:44] lkba: has joined #ruby
[01:13:54] freerobby: has joined #ruby
[01:16:39] havenn: nofxx: https://github.com/vmg/redcarpet/tree/master/bin
[01:17:12] havenn: nofxx: Looks like there is indeed a `redcarpet` executable.
[01:20:08] aotg: has joined #ruby
[01:22:48] Scroff: has joined #ruby
[01:26:35] zenguy_pc: has joined #ruby
[01:27:45] Fezzler: has joined #ruby
[01:29:54] s2013: has joined #ruby
[01:32:39] tubuliferous_: has joined #ruby
[01:33:32] balazs: has joined #ruby
[01:34:26] okay: has joined #ruby
[01:34:36] swgillespie: has joined #ruby
[01:36:23] konsolebox: has joined #ruby
[01:37:54] vikaton: has joined #ruby
[01:39:17] rbennacer: has joined #ruby
[01:40:33] JStoker: has joined #ruby
[01:41:10] aotg: has joined #ruby
[01:41:58] f3lp: has joined #ruby
[01:43:11] haraoka: has joined #ruby
[01:44:16] bf4: has joined #ruby
[01:44:38] zenguy_pc: has joined #ruby
[01:45:26] s2013: has joined #ruby
[01:45:55] chipotle: has joined #ruby
[01:47:26] CloCkWeRX: has left #ruby: ()
[01:50:36] rickmasta: has joined #ruby
[01:51:22] Rollabunna: has joined #ruby
[01:55:28] workmad3: has joined #ruby
[01:55:45] baweaver: has joined #ruby
[01:56:45] bklane: has joined #ruby
[01:58:08] yfeldblum: has joined #ruby
[01:58:15] dstarh: has joined #ruby
[01:58:28] NeverDie: has joined #ruby
[01:58:55] tkuchiki: has joined #ruby
[01:59:38] j4cknewt: has joined #ruby
[02:01:54] iamjarvo_: has joined #ruby
[02:04:53] zenguy_pc: has joined #ruby
[02:06:55] PlasmaStar: has joined #ruby
[02:09:13] urbanmonk: has joined #ruby
[02:12:22] eggoez: has joined #ruby
[02:14:56] inetd: has joined #ruby
[02:15:41] allomov: has joined #ruby
[02:16:42] lala_: has joined #ruby
[02:17:49] Cache_Money: has joined #ruby
[02:19:16] hfp_: has joined #ruby
[02:20:18] Oka: has joined #ruby
[02:21:44] hfp_work: has joined #ruby
[02:21:46] rhg135: has joined #ruby
[02:23:00] revoohc: has joined #ruby
[02:23:18] RegulationD: has joined #ruby
[02:23:48] zenguy_pc: has joined #ruby
[02:24:04] athos_di_: has joined #ruby
[02:24:09] jud: has joined #ruby
[02:29:07] svf: has joined #ruby
[02:30:09] PatrickHoward: has joined #ruby
[02:34:47] DynamicMetaFlow: has joined #ruby
[02:38:02] RazorX_: has joined #ruby
[02:38:43] balazs: has joined #ruby
[02:39:55] bklane: has joined #ruby
[02:40:47] pwnz0r: has joined #ruby
[02:41:57] mcclurmc: has joined #ruby
[02:43:25] Atomic_Work: has joined #ruby
[02:43:50] pwnz0r: has joined #ruby
[02:45:37] Rollabunna: has joined #ruby
[02:45:41] astrobunny: has joined #ruby
[02:47:33] houhoulis: has joined #ruby
[02:49:06] findaway: has joined #ruby
[02:52:00] sp4rrow_: has joined #ruby
[02:53:17] bruno-: has joined #ruby
[02:54:23] darkf: has joined #ruby
[02:54:40] snsei: has joined #ruby
[02:55:11] bf4: has joined #ruby
[02:56:06] ooesili: has joined #ruby
[02:56:13] MEATCHICKEN: How does binding in ruby work?
[02:56:21] MEATCHICKEN: Why doesn't it implement a new method?
[02:56:29] MEATCHICKEN: Binding -> constant, binding -> Binding.new?
[03:00:35] scx_: has joined #ruby
[03:01:25] kies: has joined #ruby
[03:02:32] tkuchiki_: has joined #ruby
[03:02:32] tkuchiki: has joined #ruby
[03:04:00] charliesome: has joined #ruby
[03:04:23] findaway: has joined #ruby
[03:04:59] swgillespie: has joined #ruby
[03:06:39] rickmasta: has joined #ruby
[03:07:17] auzty: has joined #ruby
[03:07:31] kobain: has joined #ruby
[03:10:42] creakybones: has joined #ruby
[03:10:43] mesamoo: has joined #ruby
[03:14:28] braincrash: has joined #ruby
[03:15:32] j4cknewt: has joined #ruby
[03:16:22] foureight84: has joined #ruby
[03:16:52] Pupeno: has joined #ruby
[03:17:06] lessless: has joined #ruby
[03:20:30] bklane: has joined #ruby
[03:20:47] tubuliferous_: has joined #ruby
[03:22:46] michael_mbp: has joined #ruby
[03:26:31] cajone: has joined #ruby
[03:26:46] cajone: has left #ruby: ()
[03:26:47] Musashi007: has joined #ruby
[03:31:53] gix: has joined #ruby
[03:33:17] bkxd: has joined #ruby
[03:33:27] j4cknewt: has joined #ruby
[03:34:17] jfarmer: meatchicken What do you mean?
[03:34:26] jfarmer: Oh, you asked almost an hour ago.
[03:35:24] jfarmer: meatchicken Kernel#binding is an instance method that returns a new Binding instance (see http://ruby-doc.org/core-2.2.2/Kernel.html#method-i-binding). You can look at the source; literally just a call to rb_binding_new().
[03:36:35] jfarmer: meatchicken Instance methods defined in the Kernel module are available everywhere because the Kernel module is included in Object.
[03:37:19] jfarmer: In fact, if you look at the source code for MRI, when you define a "global" method what really happens is that a new method gets defined on the Kernel module.
[03:37:29] jfarmer: Not sure if that answers your question; not 100% sure what your question was :)
[03:37:39] MEATCHICKEN: jfarmer, thanks
[03:37:45] MEATCHICKEN: so a binding will have all context yeah?
[03:37:50] MEATCHICKEN: is that "safe" to pass around?
[03:37:54] peter_paule: has joined #ruby
[03:38:45] jfarmer: It won't have all context; it will have the context where it was initialized.
[03:38:47] jfarmer: And yes it's safe
[03:39:39] MEATCHICKEN: jfarmer, Got it
[03:40:05] Rollabunna: has joined #ruby
[03:42:50] mcclurmc: has joined #ruby
[03:43:56] workmad3: has joined #ruby
[03:47:48] mcclurmc: has joined #ruby
[03:49:13] lxsameer: has joined #ruby
[03:49:13] lxsameer: has joined #ruby
[03:50:28] jfarmer: has joined #ruby
[03:51:45] MrJiks_: has joined #ruby
[03:53:43] casadei: has joined #ruby
[03:53:52] mcclurmc_: has joined #ruby
[03:54:07] atomical: has joined #ruby
[03:54:14] yfeldblum: has joined #ruby
[03:55:03] MrJiks: has joined #ruby
[03:55:55] bf4: has joined #ruby
[03:56:37] jud: has joined #ruby
[03:57:36] poguez_: has joined #ruby
[03:58:54] kahunaio: has joined #ruby
[03:58:58] JoshGlzBrk: has joined #ruby
[04:01:51] stoodfarback: has joined #ruby
[04:02:15] clarkkampfe: has joined #ruby
[04:02:20] clarkkampfe: has left #ruby: ()
[04:03:46] allomov: has joined #ruby
[04:06:10] yeticry: has joined #ruby
[04:07:49] j4cknewt: has joined #ruby
[04:09:43] bklane: has joined #ruby
[04:10:15] rbennacer: has joined #ruby
[04:11:40] dgutierrez1287: has joined #ruby
[04:12:41] RegulationD: has joined #ruby
[04:13:37] postmodern: has joined #ruby
[04:14:02] ruby-lang696: has joined #ruby
[04:15:39] martin290: has joined #ruby
[04:15:44] martin290: hey everyone
[04:16:12] martin290: quick question
[04:16:26] martin290: is ruby on rails a good language to make web apps in?
[04:16:39] Aeyrix: There are over 900 people in here that are probably biased.
[04:16:42] greenbagels: has joined #ruby
[04:16:46] sevenseacat: ruby is the language. ruby on rails is a web framework written in that language.
[04:16:47] martin290: what i want to make is pretty simple, i just don't have any experience in ruby
[04:16:54] martin290: ah, yes, sorry
[04:17:01] martin290: i come from a c# background
[04:17:09] Aeyrix: martin290: Depending on how simple, it may be better to roll with Sinatra.
[04:17:16] Aeyrix: It's also in Ruby, but is a much smaller framework.
[04:17:38] martin290: i currently have a web host for linux and i don't want to change to a windows server to program in c#
[04:17:45] martin290: Sinatra, got it
[04:18:00] Aeyrix: If you want to use a DB, that's generally the mark where I'd start using Rails instead of Sinatra.
[04:18:13] martin290: yeah, the app will use a db
[04:18:26] Aeyrix: Alright, probably better to run on rails then, in my opinion.
[04:18:28] martin290: in a nutshell, it's going to be an app for landscapers to track/maintain their equipment
[04:18:54] martin290: it's pretty simple, but i can see it being tweaked a lot
[04:19:05] martin290: and have things added to it, etc.
[04:19:59] martin290: i noticed there's always like 2x more people on there than in the c# channel
[04:20:50] bkxd: has joined #ruby
[04:20:54] SubjectiveBias: has joined #ruby
[04:21:12] kahunaio: has joined #ruby
[04:21:49] Aeyrix: The C# people are busy debugging their ASP.NET.
[04:21:55] Aeyrix: No time for chats.
[04:22:16] martin290: is ruby generally easier than c#?
[04:22:22] Aeyrix: I think so, yeah.
[04:22:27] Aeyrix: As in, in my opinion yes.
[04:22:30] Aeyrix: Easier to write, easier to read.
[04:22:44] rickmasta: has joined #ruby
[04:22:50] martin290: ruby can't create GUI desktop apps, right?
[04:23:05] Aeyrix: It can, but it's better to create compiled binaries in languages like C#.
[04:23:10] Aeyrix: It's just easier for the end-user
[04:23:20] astrobunny: has joined #ruby
[04:23:28] martin290: got it, perfectly understand
[04:26:38] allomov: has joined #ruby
[04:27:12] nofxx: martin290, that been said, nowdays html5 apps are on the rise on the desktop... cordova and the github atom thing I forgot the name
[04:27:38] nofxx: hehe, anyone remember mozilla prism?
[04:28:19] martin290: what do you mean, nofxx?
[04:28:27] martin290: on the rise on the desktop?
[04:28:38] nofxx: martin290, it's most JS but you can of course use coffee that makes js more sane... and rake tasks heh
[04:29:15] MrJiks: nofxx: Did you mean http://electron.atom.io/
[04:29:24] nofxx: martin290, yeah, check out cordova... you write once and run in: osx, ios, android, windows....
[04:29:40] nofxx: MrJiks, yeah, thank you
[04:30:08] MrJiks: nofxx: Rubymotion can also do something similar with Ruby. But not in Windows/Linus yet. Everyother platform is covered.
[04:30:12] nofxx: ubuntu ... what a shame name linux 'ubuntu' .... but it's the offial name heh
[04:30:15] MrJiks: And you never have to leave Ruby.
[04:30:20] sevenseacat: 'every other platform, except windows and linux'
[04:30:26] sevenseacat: that leaves how many platforms?
[04:30:38] MrJiks: iOS/Android/OSX
[04:30:41] martin290: im confused...
[04:31:08] sevenseacat: you're making this situation worse, you know
[04:31:14] MrJiks: martin290: Check this video: https://www.youtube.com/watch?v=kBjNwEBhQnw
[04:31:30] MrJiks: sevenseacat: how so?
[04:31:36] sevenseacat: why do people want to mislead the newbies
[04:31:42] nofxx: is rubymotion related to ruboto?
[04:31:50] MrJiks: nofxx: No
[04:31:50] nofxx: it was nice, but android only
[04:31:53] martin290: wait i think i get it
[04:31:56] MrJiks: Its a commercial tool chain.
[04:32:07] MrJiks: Its the same guy who did macruby.
[04:32:22] martin290: it's programmed like a web app but runs locally on the machine
[04:32:40] nofxx: martin290, yup
[04:32:44] MrJiks: Apple decided to stop supporting macruby and he went & built a company for providing macruby for iOS
[04:32:51] martin290: that is AMAZING
[04:33:03] martin290: that reminds me of WPF (XAML)
[04:33:18] martin290: and this is done using ruby??!!!
[04:33:47] sevenseacat: like i said, misleading the newbies.
[04:33:51] MrJiks: martin290: Its possible that if you learn this language you can reuse the knowledge elsewhere probably better than any other language out there.
[04:34:05] MrJiks: sevenseacat: what you mean?
[04:34:13] nofxx: MrJiks, when I was a teenager I dreamed a day apple would release darwin, and everybody would use some nice linux friendly and beautiful distro, and we'll get rid of windows
[04:34:16] Rollabunna: has joined #ruby
[04:34:20] sevenseacat: electron and the ilk aren't ruby projects.
[04:34:24] nofxx: now android is the problem.. and apple is a bitch
[04:34:37] MrJiks: sevenseacat: I never mentioned electron as Ruby
[04:34:43] sevenseacat: this is a ruby channel.
[04:35:09] MrJiks: sevenseacat: I just mentioned it as someone was asking about it but couldn't remember its name.
[04:35:33] nofxx: sevenseacat, I mentioned it's JS, but you could write coffee and rake tasks... or OPAL hehe
[04:35:44] sevenseacat: rake *is* a ruby project
[04:36:01] MrJiks: Yes, Opal is the next one I wanted to mention to martin290
[04:36:04] sevenseacat: so is opal, but the rest arent
[04:36:16] MrJiks: check opalrb.org
[04:36:18] sevenseacat: but in all honesty, you're introducing an incredibly complex toolchain here
[04:36:24] sevenseacat: for a very simple question
[04:36:29] martin290: looks really cool
[04:36:36] martin290: i'm pretty new to the web world
[04:36:51] martin290: but the ability to use "web languages" for a desktop app is awesome
[04:37:08] MrJiks: sevenseacat: well if you are very happy with Ruby; I think Rubymotion is the best way to build iOS/Android apps
[04:37:28] sevenseacat: i don't, but okay.
[04:37:49] sevenseacat: has nothing to do with any question asked :P
[04:37:53] nofxx: what we all agree is that more ruby the better =D
[04:38:13] MrJiks: martin290: Yes! You should try the new Atom editor to see how good the app can be; its now touted as the flagship product with the technology.
[04:38:26] MrJiks: nofxx: :):)
[04:38:28] sevenseacat: it works most of the time
[04:38:38] sevenseacat: just hope you have a beefy computer :)
[04:38:42] MrJiks: Frankly, totally in love with you it.
[04:38:55] martin290: laptop, not so beefy
[04:39:02] martin290: desktop.... pretty beefy lol
[04:39:07] martin290: on laptop now
[04:39:12] MrJiks: sevenseacat: Its not that performance hog; unless you want to run a huge rails app.
[04:39:32] martin290: is it as big of a bog as visual studio?
[04:39:44] MrJiks: martin290: not at all.
[04:40:19] Aeyrix: DID SOMEONE SAY VISUAL STUDIO
[04:40:25] Aeyrix: http://www.commitstrip.com/en/2014/03/13/the-unexpected-default-program/
[04:40:28] ruby-lang696: so i've been teaching myself ruby as a first language for about 9 months and ive gotten a $5/hr raise at work *thumbs up*
[04:40:29] MrJiks: martin290: can't compare them properly as one is an IDE and one is an interpreter.
[04:40:44] MrJiks: ruby-lang696: Thats cool.
[04:40:49] sevenseacat: I am so confused by this conversation. "atom isnt a performance hog unless you want to use it for its intended purpose"?
[04:41:00] MrJiks: ruby-lang696: do you work as a freelancer?
[04:41:51] MrJiks: sevenseacat: sorry my bad. I was referring to Ruby.
[04:41:53] martin290: how does ruby compare to python?
[04:42:17] MrJiks: martin290: very similar; you can pick any. Its just that some people one of the two.
[04:42:32] MrJiks: Play around with both a bit and decide.
[04:42:41] bruno-: has joined #ruby
[04:42:50] martin290: i've tried python.... not for the web, but trying to make a GUI, it was pretty painful
[04:42:56] MrJiks: The 20 minute tutorial in ruby-lang.org will help you start.
[04:42:56] nofxx: MrJiks, totally disagree!! they are not
[04:43:18] Aeyrix: ACTION is an Atom fan, especially with the 1.0 release.
[04:43:53] MrJiks: nofxx: why? Both are similar in performance; interpretted/dynamic languages; with similar use cases.
[04:44:08] martin290: wow, i just noticed ruby looks a lot like python
[04:44:12] nofxx: where the similarities end
[04:44:13] martin290: similar syntax
[04:44:17] MrJiks: For a newbie thats what it matters.
[04:44:30] MrJiks: martin290: Later you may find the differences.
[04:44:35] nofxx: martin290, you've seen nothing ;)
[04:44:52] MrJiks: martin290: true, you have seen nothin :)
[04:44:57] sevenseacat: I've toyed with Atom. it's decent, but it's not perfect.
[04:45:14] martin290: i'm trying to find that 20 minute tutorial
[04:45:18] martin290: can i get a link for it?
[04:45:46] lokulin: has joined #ruby
[04:46:12] Ox0dea: martin290: Are you just starting your journey?
[04:46:16] intyl: has joined #ruby
[04:46:23] martin290: i have experience in c#
[04:46:33] martin290: i want to learn ruby for a web app i want to make
[04:46:39] martin290: so yes, just starting my journey in ruby
[04:46:57] Ox0dea: You are strongly advised to try your hand at the Ruby Koans: https://github.com/neo/ruby_koans
[04:47:04] towski_: has joined #ruby
[04:47:58] Aeyrix: http://koans.herokuapp.com/
[04:48:07] martin290: so how do i get koans
[04:48:11] martin290: it looks cool
[04:48:19] Ox0dea: martin290: Just press the "get koans" button, I think.
[04:48:33] Aeyrix: get cones
[04:49:28] martin290: i don't see that
[04:49:41] martin290: i see: clone in desktop
[04:49:51] Tempesta: has joined #ruby
[04:50:40] bakednotfried: too much monky stuff in the koans thing though
[04:51:11] Ox0dea: This will be a fruitful discussion, surely.
[04:52:33] Cache_Money: has joined #ruby
[04:52:41] rhg135: has joined #ruby
[04:52:45] martin290: i'm downloading ruby right now
[04:52:50] balazs: has joined #ruby
[04:54:12] bakednotfried: don't know about all this enlightenment business, folks just wanna learn ruby
[04:55:06] Ox0dea: bakednotfried: How did you come to know Ruby?
[04:55:11] iamninja: has joined #ruby
[04:55:28] Hanmac: has joined #ruby
[04:55:38] noethics: i learn languages on the fly
[04:55:43] keen___________5: has joined #ruby
[04:55:47] noethics: i'm immutable
[04:55:49] bakednotfried: read tutorials and browsed the docs then read a lot of code on github
[04:55:56] Marisa: has joined #ruby
[04:56:07] eggoez: has joined #ruby
[04:56:28] tkuchiki_: has joined #ruby
[04:56:35] martin290: so how do i run a .rb file
[04:56:38] martin290: i downloaded koans
[04:56:55] weemsledeux: has joined #ruby
[04:57:31] bakednotfried: martin290 try this http://zetcode.com/lang/rubytutorial/
[04:58:47] MyMind: has joined #ruby
[04:59:55] martin290: cool thanks
[05:00:10] martin290: so for a ruby web app, i can't just run it like an html page, right?
[05:00:21] martin290: open the html page in a browser and it magically work
[05:00:38] Shoutsid: has joined #ruby
[05:00:47] sevenseacat: no. you need to run it via a web server.
[05:00:55] bakednotfried: martin290 your web server will call it using the gateway interface
[05:01:14] martin290: would xampp work?
[05:01:50] Aeyrix: Well, the P's are "PHP" and "Perl", so, no.
[05:02:15] martin290: what would i need to download to use ruby?
[05:02:23] martin290: i installed ruby using the rubyInstaller
[05:02:39] Aeyrix: So you're developing on Windows, deploying to Linux?
[05:03:03] Aeyrix: Deploying to Windows too?
[05:03:13] bakednotfried: to make web apps you should look for a framework, like rails
[05:03:19] martin290: deploying to linux
[05:04:18] bakednotfried: forget about apps for now, just learn ruby, after a couple weeks you can try making apps
[05:05:01] mistermocha: has joined #ruby
[05:08:23] mistermocha: has joined #ruby
[05:08:57] tubuliferous_: has joined #ruby
[05:11:01] MrJiks: Is there a way to restrict a Ruby process to have the file system access to its own directory alone?
[05:11:36] mistermocha: has joined #ruby
[05:12:08] Aeyrix: Restrict the user.
[05:12:12] baweaver: Look into chjail / chroot as well
[05:12:23] baweaver: or the infamous docker
[05:12:42] baweaver: ACTION isn't entirely sure if it's relevant here, but saying docker loudly enough normally works out somehow.
[05:14:22] MrJiks: infamous something
[05:14:22] sevenseacat: containerize all of the things!
[05:14:40] jmhmccr: has joined #ruby
[05:14:50] MrJiks: sevenseacat: I don't understand whats the harm in it?
[05:15:21] rickmasta: has joined #ruby
[05:15:55] shevy: in putting a cat into a container
[05:17:38] Shoutsid: has joined #ruby
[05:18:19] nofxx: shevy, you won't know if it's alive or dead
[05:18:20] MrJiks: sevenseacat: in containerize everything methodology
[05:18:40] sevenseacat: MrJiks: i didnt say anything about it
[05:19:23] shevy: let's put MrJiks into a container
[05:20:38] solars: has joined #ruby
[05:21:57] mistermo_: has joined #ruby
[05:23:13] arup_r: has joined #ruby
[05:25:56] jas02: has joined #ruby
[05:26:43] casadei_: has joined #ruby
[05:28:09] lkba: has joined #ruby
[05:28:36] Rollabunna: has joined #ruby
[05:29:47] cina: >> 'a' == ?a # how is this different from 'a' == 'a' ?
[05:29:48] ruboto: cina # => true (https://eval.in/388949)
[05:30:26] wildroman2: has joined #ruby
[05:30:41] Pupeno: has joined #ruby
[05:30:41] Pupeno: has joined #ruby
[05:30:52] sandstrom: has joined #ruby
[05:32:43] workmad3: has joined #ruby
[05:32:45] stoodfarback: cina: Same. `?a` creates String "a"
[05:33:49] Tempesta: has joined #ruby
[05:34:48] stoodfarback: cina: It was slightly useful in 1.8. Can't think of any reason to use it now.
[05:35:31] jas02_: has joined #ruby
[05:37:26] cina: stoodfarback: thank you! why was it useful in 1.8? or, why is it not useful anymore?
[05:38:12] rbennacer: has joined #ruby
[05:38:19] User458764: has joined #ruby
[05:39:34] stoodfarback: cina: In 1.8, `"aoeu"[0]` would return the ascii code as an integer, instead of "a". `?a` would do the same, so you could do `"aoeu"[0] == ?a`
[05:40:43] RobertBirnie: has joined #ruby
[05:43:39] rht: has joined #ruby
[05:43:56] ruboto: Ox0dea # => 97 (https://eval.in/388968)
[05:44:12] Polysics: has joined #ruby
[05:44:16] cina: stoodfarback: interesting, thank you! I found it in ruby's REXML::Parsers, in a conditions like the one you described: `@source.buffer[0] == ?<`
[05:44:19] RobertBirnie: has joined #ruby
[05:45:35] Ox0dea: cina: I suppose you could think of it as a "character literal", but it's really just a single-character string.
[05:46:46] ta: has joined #ruby
[05:47:20] jfarmer: has joined #ruby
[05:47:23] Shoutsid: has joined #ruby
[05:49:35] cina: Ox0dea: thanks! it's one less character to type compared to 'a' ;)
[05:51:22] knite: has joined #ruby
[05:51:33] Ox0dea: cina: Indeed. It's considered "bad" by some, but I happen to like it; it's a useful visual distinction even if the underlying semantics are the same.
[05:52:19] tkuchiki_: has joined #ruby
[05:54:00] ruboto: stoodfarback # => true (https://eval.in/388983)
[05:54:04] Akagi201: has joined #ruby
[05:54:49] cina: Ox0dea: it is probably considered bad because not everyone knows about it, but maybe it could also be useful because it only works with a single character and raises a SyntaxError if you mistype more characters
[05:54:51] knite: has joined #ruby
[05:55:04] cina: stoodfarback: nice! :D
[05:55:21] Ox0dea: >> $__=$$/$$;_=$__+$__;__=$__+_;$_=_+_;@_=$__+$_;$-_=_**@_;$___=_*$-_;@__=$-_+$___;''<<@__+($-_-__*__)<<@__+_*_*@_<<@__+_*__
[05:55:22] ruboto: Ox0dea # => "wtf" (https://eval.in/388984)
[05:55:42] baweaver: I don't even have to look at the name to know that's you Ox0dea
[05:56:18] last_staff: has joined #ruby
[05:56:44] krz: has joined #ruby
[05:57:19] shevy: there is some strange appeal to certain syntax elements
[06:01:24] RegulationD: has joined #ruby
[06:01:51] hmsimha: has joined #ruby
[06:01:52] hmsimha_: has joined #ruby
[06:01:53] cina: it's like a cool puzzle/game to read and decode it!
[06:02:39] yardenbar: has joined #ruby
[06:03:54] idiocrash: has joined #ruby
[06:04:13] Ox0dea: cina: Huh. I should write an incremental decoder for those things.
[06:04:39] Ox0dea: It's just building up numbers and shoveling them into an empty string.
[06:04:46] Ox0dea: >> '' << 97 << 98 << 99
[06:04:47] ruboto: Ox0dea # => "abc" (https://eval.in/389013)
[06:05:30] Ox0dea: You can actually write any program in Ruby without using any alphanumerics, thanks in large part to the ->{}[] lambda syntax.
[06:05:33] roolo: has joined #ruby
[06:06:54] chinmay_dd: has joined #ruby
[06:07:36] Senjai: I came into this channel to see what was up on a sunday (cause I am never actually here on sundays)
[06:07:43] Senjai: And then I saw Ox0dea's stuff
[06:07:49] Senjai: And then I left and said goodnight
[06:07:57] Senjai: sundays, should have known
[06:08:02] baweaver: par for course
[06:08:49] Xeago: has joined #ruby
[06:10:15] acke: has joined #ruby
[06:10:59] sinkensabe: has joined #ruby
[06:12:16] eGGsha: has joined #ruby
[06:12:41] lavros: has joined #ruby
[06:15:50] Oka: has joined #ruby
[06:16:57] Ox0dea: Here goes!
[06:16:59] Ox0dea: >> _=$$/$$;__=_-_;@_=_+_;$_=@_+_;$__=@_+$_;$-_=$__*$_;@__=''<<$-_*($__+$_)+@_;$___=''<<$-_*$__-$__<<$-_*($__+@_)<<@__<<@__;@___=''<<$-_*$__-$_*$_<<$-_*($__+$_)-$_<<@__<<@__;(___=->____{$.+=_;____<<($.%$-_==__ ?$___+@___:$.%$_==__ ?$___:$.%$__==__ ?@___:$.);$.<($__*@_)**@_?___[____]:____})[[]]
[06:17:00] ruboto: Ox0dea # => [1, 2, "Fizz", 4, "Buzz", "Fizz", 7, 8, "Fizz", "Buzz", 11, "Fizz", 13, 14, "FizzBuzz", 16, 17, "Fiz ...check link for more (https://eval.in/389023)
[06:17:10] baweaver: even for you
[06:17:15] baweaver: ACTION saves for later.
[06:17:32] Nilium: Since when did ruboto understand brainfuck
[06:17:33] sevenseacat: thats amazing.
[06:17:34] Aeyrix: go outside
[06:17:37] Aeyrix: Nilium: That's Ruby.
[06:17:40] Aeyrix: That's actually valid Ruby code.
[06:18:03] Oka: the hell is going on in here
[06:18:03] sevenseacat: lol @ go outside
[06:18:05] Nilium: You either missed the joke or are intentionally ruining it
[06:18:26] Aeyrix: Nilium: Just clarifying for anyone who isn't aware that Ox0dea forgot what the sky looks like.
[06:18:27] Nilium: All my hard work for that moment
[06:18:38] Nilium: AND YOU JUST HAD TO GO AND SAY THAT.
[06:18:48] Aeyrix: Also Ox0dea wtf
[06:18:50] Aeyrix: how did you
[06:18:51] Nilium: That aside, christ.
[06:18:52] Aeyrix: WHY did you
[06:19:00] Ox0dea: For the midkeks?
[06:19:05] Nilium: This is reminding me of the code golf crap I did a while back
[06:19:40] baweaver: Ox0dea: how does one even begin to grok the shenanigans necessary to do something like this?
[06:20:01] Ox0dea: I blame Tom Stuart for getting me more deeply interested in the lambda calculus.
[06:20:32] Nilium: >> [1,!1].map{|u|(?2..'998').step(2).select{|i|v=731;i.chars.all?{|k|k=1<<k.to_i;v&k!=0&&(!u||v&=~k)}}}
[06:20:33] ruboto: Nilium # => [["4", "6", "10", "14", "16", "30", "34", "36", "40", "46", "60", "64", "70", "74", "76", "90", "94" ...check link for more (https://eval.in/389029)
[06:20:37] msgodf: has joined #ruby
[06:20:38] Nilium: Hey, it still works
[06:20:52] sfarley: has joined #ruby
[06:21:03] sevenseacat: my brain hurts
[06:21:19] Aeyrix: You fucks pick a language designed to be used to write code for humans
[06:21:22] Aeyrix: and you pull this filthy garbage
[06:21:38] Nilium: https://gist.github.com/nilium/ab2f75ab6da6f9cce360 ??? For reference. I have no idea what the actual goal of the code was anymore.
[06:21:56] sevenseacat: though to be fair, Ruby was optimized for programmer happiness, and Ox0dea appears to be pretty happy.
[06:21:56] Aeyrix: def numbers_containing_digits
[06:22:01] Aeyrix: All numbers contain digits.
[06:22:06] snsei: has joined #ruby
[06:22:08] Ox0dea: sevenseacat: I certainly get a kick out of it.
[06:22:22] Nilium: Not all numbers contain digits
[06:22:26] Ox0dea: Aeyrix: That Ruby comfortably occupies both extremes of the spectrum is part of what makes it the best language, in my opinion.
[06:22:50] sevenseacat: i doesn't contain digits.
[06:23:07] Nilium: This makes it very hard to express you as a number.
[06:23:49] Nilium: So, this weekend was kind of a wash as far as productivity goes.
[06:23:54] Ox0dea: Wow, I'm only just realizing I could be using all sorts of wacky Unicode symbols as variable names instead of just underscores.
[06:24:09] Nilium: The only thing I've managed to do is create a portable dev environment on an encrypted SD card
[06:24:32] Aeyrix: Ox0dea: Use emoji.
[06:24:40] Nilium: So, like, I put in the SD card, mount it, source a profile on it in my shell, and good to go.
[06:24:56] Ox0dea: Aeyrix: Emoji are on their way to being considered "words", so the non-alphanumeric contract has the potential to break.
[06:24:58] sevenseacat: Nilium: more than I managed to accomplish.
[06:25:30] sevenseacat: I wrote like, one test for my Elixir app.
[06:25:38] Nilium: I still need to play with Elixir.
[06:25:44] Nilium: I haven't touched it since it was really, really new
[06:25:45] ta: has joined #ruby
[06:26:28] baweaver: ACTION is disecting the code
[06:26:56] Nilium: Honestly would never have had a use for anything like that before I got my job. Now I'm the backend server guy and I'm just going "oh boy look at all the tools I have reasons to play with now."
[06:27:26] sevenseacat: I don't really have a real use for it, apart from 'hey they made a web framework. let's build web shit'
[06:27:30] Nilium: And then I have to stop myself because convincing people to learn to use Scala and Akka or Erlang or something else is just hard.
[06:27:43] Nilium: But I managed to wedge Go into our codebase, so now it's a permanent fixture.
[06:28:17] Nilium: Helped that Go drastically outperformed all the backend code written in PHP, which isn't all that surprising.
[06:28:35] Aeyrix: more like
[06:28:45] Nilium: Go hate is very popular lately. It's kind of weird.
[06:29:02] Ox0dea: $ go fuck /proc/self
[06:29:13] Nilium: Like, there are two popular forms of blog post: one is where people complain about the same thing as everyone else in Go, and the other is where people praise the same thing as everyone else in Go
[06:29:28] Aeyrix: $ go fuck
[06:29:28] Aeyrix: go: unknown subcommand "fuck"
[06:29:37] Aeyrix: Makes sense that go devs have no idea how to fornicate. :^)
[06:29:39] Ox0dea: Aeyrix: "Be the change you wish to see in the world."
[06:29:40] Nilium: And they're both equally uninteresting, and yet they frequently make it to the top of hacker news and reddit as though they were somehow insightful
[06:29:47] Aeyrix: Okay banter aside, I dislike Go because I find some of its syntax a little weird.
[06:30:03] baweaver: Aeyrix: fsck?
[06:30:04] ndrei: has joined #ruby
[06:30:07] Nilium: I like Go because I find its syntax to be completely boring
[06:30:22] Nilium: To the point that you can't even have code style arguments about Go code
[06:30:34] Nilium: Everything's just kind of settled and chill and I can go about my day writing code
[06:30:37] arturaz: has joined #ruby
[06:30:56] Ox0dea: `go fmt` deserves the praise there, though, not the syntax itself.
[06:30:58] Nilium: Which is a far cry from what I have to do when I'm maintaining node.js stuff or PHP stuff
[06:31:10] memph1s: has joined #ruby
[06:31:18] Nilium: Ox0dea: A bit of both, really. gofmt benefits a lot from the syntax being really dumb and simple.
[06:32:04] Nilium: To the point that tools to parse Go come with Go, so if you want to mechanically modify Go code for some reason, it's pretty easy
[06:32:34] Nilium: It's not Lisp, but it beats trying to find tools to parse code for just about anything else
[06:32:35] Xeago: has joined #ruby
[06:32:35] tvw: has joined #ruby
[06:33:05] Nilium: But yeah, anyway, just wins on dumb simplicity for me.
[06:33:43] baweaver: down to it pushing z to an empty string
[06:33:58] Ox0dea: baweaver: That's at least halfway there.
[06:33:58] Nilium: Thinking is hard, I could stand to do less of it.
[06:34:16] baweaver: PID / PID to get one, well played
[06:34:24] baweaver: at least you didn't have to church numeral it
[06:34:25] Nilium: I'd try drinking more but it doesn't really stop me from thinking. ???_???
[06:35:00] Ox0dea: Nilium: Alcohol is like regular expressions.
[06:35:21] Nilium: That might explain the over-abundance of both from some of the web devs I work with
[06:35:29] baweaver: the longer you use them the more confusing it becomes, and the worse it is the next morning
[06:35:29] cina: Ox0dea: how/where do I learn to write code like you did, or the ->{}[] lambda syntax you mentioned?
[06:35:40] Nilium: No, never ask how to do that
[06:35:59] tkuchiki_: has joined #ruby
[06:36:44] Oka: Now it's a tree!
[06:36:53] Nilium: Oh no, it's happening again
[06:37:01] Ox0dea: Y'all're good people.
[06:37:17] Ox0dea: We can count higher than /b/, at any rate.
[06:37:24] Nilium: I have drank just enough tonight that everything is hilarious.
[06:37:29] Nilium: So that helps.
[06:39:17] cina: lol I don't the joke, but your responses were funny
[06:40:02] cina: I don't get* the...
[06:40:11] pwnz0r: has joined #ruby
[06:40:18] Aeyrix: cina: Seriously, you don't want to learn how to do that.
[06:40:22] Aeyrix: Primarily because it's useless. :P
[06:40:22] kahunaio: has joined #ruby
[06:40:24] andikr: has joined #ruby
[06:41:19] cina: Aeyrix: okay, I wouldn't want to do that in real projects, but I was hoping I would learn a couple of new things along the way
[06:41:26] Aeyrix: *shrugs* fair enough
[06:41:31] Aeyrix: no idea though, i don't do that sort of thing
[06:41:50] j4cknewt: has joined #ruby
[06:42:54] ryba: has joined #ruby
[06:43:07] Nilium: All of it comes down to iterating over the code while asking "how can I make this run using one line and look funky?"
[06:43:45] karols: has joined #ruby
[06:44:45] revath: has joined #ruby
[06:45:06] Bertg: has joined #ruby
[06:45:06] danielpclark: has joined #ruby
[06:46:09] baweaver: I'll gist the translation later
[06:46:13] allomov: has joined #ruby
[06:47:53] robbyoconnor: has joined #ruby
[06:48:05] idiocrash: has joined #ruby
[06:51:25] Polysics: has joined #ruby
[06:55:16] Rubie: has joined #ruby
[06:55:33] baweaver: Ox0dea: how does $. work?
[06:56:11] intyl_: has joined #ruby
[06:56:17] baweaver: has left #ruby: ()
[06:56:18] baweaver: has joined #ruby
[06:57:05] tubuliferous_: has joined #ruby
[06:58:19] Eiam: has joined #ruby
[06:58:24] baweaver: https://gist.github.com/baweaver/88bbbc1a3e3b5dee2610 - anyways, translated
[06:58:40] karols: has joined #ruby
[06:58:44] vasilakisfil_: has joined #ruby
[06:58:48] Nilium: I question your definition of translated
[07:00:40] hotpancakes: has joined #ruby
[07:00:40] Ox0dea: baweaver: Line 50's comment is misleading.
[07:00:52] fabrice31: has joined #ruby
[07:00:57] gauke: has joined #ruby
[07:01:04] baweaver: yeah, figured that and 36 would be vague
[07:01:45] baweaver: couldn't figure out where or how $. got defined
[07:02:05] Ox0dea: 36 is correct; $. is essentially ARGF.lineno.
[07:02:12] wildroman2: has joined #ruby
[07:02:38] Ox0dea: No input means it starts out conveniently at 0, and can thus be used as the value to increment.
[07:02:52] wildroman2: has joined #ruby
[07:02:57] baweaver: or just steal your PID - PID
[07:03:15] Ox0dea: baweaver: Can't increment that since it's used elsewhere.
[07:03:25] baweaver: could make more than one
[07:03:33] Ox0dea: But $. is nice and terse. :)
[07:03:34] jfarmer: code nightmares courtesy of #ruby
[07:04:11] skade: has joined #ruby
[07:04:13] baweaver: ah, 50 returns the collection
[07:04:27] doodleha_: has joined #ruby
[07:04:40] sandstrom: has joined #ruby
[07:04:48] konsolebox: has joined #ruby
[07:04:55] baweaver: well time for me to call it a night then
[07:05:20] Ox0dea: Beware the code nightmares.
[07:05:42] Ox0dea: Also, kudos for so quickly deciphering that monstrosity.
[07:05:58] baweaver: I was curious, and let it get the better of me
[07:06:09] baweaver: I knew it was something to do with ASCII values at least.
[07:06:10] cina: baweaver: thanks for the gist!
[07:06:11] ytti: has joined #ruby
[07:06:11] Ox0dea: A rabbit hole I know only too well.
[07:06:28] baweaver: cina: just never do that for anything other than shenanigans
[07:06:56] baweaver: Ox0dea: I might have made a grave error in posting that.
[07:06:57] Ox0dea: Or as an alternative to PGP.
[07:07:14] emhs: well... proves you can write anything in any language
[07:07:32] Aeyrix: Ox0dea: _ = $$ / $$ # PID / PID or 1
[07:07:33] cina: lol no worries, just for educational purpose
[07:07:40] Ox0dea: Aeyrix: Hm?
[07:07:41] Aeyrix: That is fuckin clever.
[07:07:50] Ox0dea: It's the bedrock on which the whole thing stands.
[07:08:06] Aeyrix: That's why it's so clever.
[07:08:30] Ox0dea: I'm reasonably certain that's the only way to get a 1 non-alphanumerically, but I would be delighted to be proved wrong in that regard.
[07:08:49] baweaver: >> [[]].size
[07:08:50] ruboto: baweaver # => 1 (https://eval.in/389062)
[07:09:03] sevenseacat: but that has alphanumerics
[07:09:04] Ox0dea: So alpha.
[07:09:05] Aeyrix: baweaver: You used .size
[07:09:06] vdmgolub: has joined #ruby
[07:09:12] ruboto: Aeyrix # => 1 (https://eval.in/389063)
[07:09:21] Ox0dea: Aeyrix: It's robust!
[07:10:08] Ox0dea: It only fails if you manage to use this program as PID 0.
[07:10:16] Ox0dea: Which I suspect is impossible.
[07:10:20] Aeyrix: If someone manage that
[07:10:23] Aeyrix: they have deeper issues
[07:10:54] baweaver: ACTION quits top before he does damage
[07:10:59] ruboto: sevenseacat # => 0 (https://eval.in/389064)
[07:11:07] ruboto: Aeyrix # => 0 (https://eval.in/389065)
[07:11:12] Aeyrix: Why do I get 1?
[07:11:28] matp: has joined #ruby
[07:11:53] emhs: Aeyrix: ruby -e "puts $."
[07:11:54] dgutierrez1287: has joined #ruby
[07:12:05] Aeyrix: but y tho
[07:12:14] Aeyrix: $. is a fixnum, why
[07:12:18] Ox0dea: Well, irb is obviously mucking about with ARGF.
[07:12:20] sevenseacat: foiled again.
[07:12:37] Aeyrix: makes sense now
[07:12:38] mike___1234: has joined #ruby
[07:12:46] sandelius: has joined #ruby
[07:13:17] alex88: has joined #ruby
[07:13:17] djellemah: has joined #ruby
[07:13:18] Ox0dea: It's to do with irb's history management.
[07:13:35] fabrice31: has joined #ruby
[07:14:06] doodleha_: has joined #ruby
[07:14:42] Ox0dea: $. is `wc -l .irb_history` when you start irb.
[07:14:47] krz: has joined #ruby
[07:15:11] Hounddog: has joined #ruby
[07:15:13] nofxx: would like to make a rake tasks gem... will be just a require ? Write as if I was in the Rakefile ?
[07:15:41] nofxx: A gem with some rake tasks* ... actually only those tasks, but now that's it's a gem I might remove somethng to a module or class
[07:16:41] gagrio: has joined #ruby
[07:16:41] Ox0dea: Hm... do you reckon it's possible to obtain the value of self without explicitly saying "self"?
[07:16:55] Aeyrix: Probably yes.
[07:17:05] Ox0dea: Yes, probably. Ideas?
[07:17:06] baweaver: binding maybe
[07:17:53] Polysics_: has joined #ruby
[07:18:54] Ox0dea: >> binding.receiver # Nice!
[07:18:55] ruboto: Ox0dea # => main (https://eval.in/389068)
[07:19:10] sevenseacat: now to get that in non-alpha form? :P
[07:19:45] Ox0dea: sevenseacat: You know me too well.
[07:19:54] doodleha_: has joined #ruby
[07:20:33] vyorkin: has joined #ruby
[07:20:35] User458764: has joined #ruby
[07:21:16] apeiros: binding.receiver returns self in the binding? i.e. we can stop using binding.eval("self") now?
[07:21:30] workmad3: has joined #ruby
[07:21:54] Ox0dea: That does seem to be the case.
[07:22:11] apeiros: good, good
[07:22:34] jimms: has joined #ruby
[07:22:59] baweaver: well, bed for me. 'night
[07:23:12] Ox0dea: Au revoir.
[07:23:21] Aeyrix: Ciao mate. :)
[07:23:43] doodleha_: has joined #ruby
[07:24:38] que__: has joined #ruby
[07:24:54] atom3: has joined #ruby
[07:25:30] codecodecode123: has joined #ruby
[07:25:48] jimms: has joined #ruby
[07:26:16] lsmola: has joined #ruby
[07:27:13] Oog: has joined #ruby
[07:27:36] doodleha_: has joined #ruby
[07:27:43] que__: guys need a bit help with ruby. http://paste.ofcode.org/386sDdfnbU3N3Mfh3PjzVxg -- this is a part of code of software i am using. and Problem is it should refresh the file and load it . as i test it nothing is refreshed. my question is there is first if statment IF something does it work ? it gives true false return ? can You look at the code and say something about it might be i am missing it
[07:28:56] emilkarl: has joined #ruby
[07:28:56] codecodecode123: Hi, I have a module with a method in it, but when I run that method, it raises NoMethodError. Can someone help me? https://gist.github.com/anonymous/165490d915772b902f64
[07:29:00] abuzze: has joined #ruby
[07:29:29] terlar: has joined #ruby
[07:29:56] sevenseacat: and whats the error?
[07:30:08] jfarmer: codecodecode123 Do you understand the difference between class methods and instance methods?
[07:30:14] terlar: has joined #ruby
[07:30:46] sevenseacat: heh I didn't even get that far
[07:30:57] jfarmer: I'm a line-cutter, I am
[07:31:01] codecodecode123: jfarmer, it is a module, are there class methods and innstance methods
[07:31:16] apeiros: codecodecode123: yes
[07:31:36] apeiros: "class methods" is a convenience term for "instance methods on the singleton_class"
[07:31:37] abuzze: has joined #ruby
[07:31:42] codecodecode123: can you make an instance of a module?
[07:31:58] apeiros: indirectly. include it into a class. instantiate that class.
[07:32:15] codecodecode123: why would i need to do that
[07:32:18] apeiros: no idea since when. but since before 1.8. i.e. >12y
[07:32:19] bruno-: has joined #ruby
[07:32:21] jfarmer: codecodecode123 Stop
[07:32:34] apeiros: codecodecode123: I don't know why you'd need to do anything.
[07:32:39] jfarmer: We're trying to help you, don't be combative.
[07:33:10] fluchtreflex: has joined #ruby
[07:33:10] fluchtreflex: has joined #ruby
[07:33:22] jfarmer: codecodecode123 You're defining an instance method which will only be defined on objects whose classes include your module.
[07:33:23] doodleha_: has joined #ruby
[07:33:33] havenwood: codecodecode123: Try `def self.array_add(arr)` or with `module_function`: http://ruby-doc.org/core/Module.html#method-i-module_function
[07:33:45] codecodecode123: thank you havenwood
[07:33:46] apeiros: module_function +1
[07:34:03] apeiros: no use of self/ivars, classic case for it.
[07:34:12] jfarmer: codecodecode123 The more fundamental thing is that you think "def foo; ...;end" is doing something it isn't.
[07:34:16] sevenseacat: we're not here just to spew out answers to questions. we're here to educate.
[07:34:37] sevenseacat: and more importantly, to learn.
[07:34:41] codecodecode123: i thought the former applied
[07:34:45] knite: has joined #ruby
[07:34:54] jfarmer: If you want your code to work as-is, replace "def array_add ..." with "def self.array_add ..."
[07:35:02] jfarmer: (or use module_function)
[07:35:30] jfarmer: codecodecode123 The code as you've written it doesn't make much sense; it's a bad use of a module.
[07:36:05] codecodecode123: so what can i do to make it better (without the use of classes)
[07:36:22] jfarmer: codecodecode123 Why do you want it to be in a module? What do you think the module is doing for you?
[07:36:32] jfarmer: Not a rhetorical question.
[07:37:04] jfarmer: You're using a module for some good-but-ultimately-misguided reason, so have to know the reason.
[07:37:11] codecodecode123: I think a module is a set of class methods.
[07:37:15] doodleha_: has joined #ruby
[07:37:44] User458764: has joined #ruby
[07:37:45] jfarmer: codecodecode123 I'm asking: what prompted you to put array_add in a module?
[07:37:55] jfarmer: What made you go, "Oh, a module! That's what I need!"
[07:38:08] codecodecode123: i just wanted to make a random project
[07:38:09] havenwood: que__: :ok if false #=> nil
[07:38:26] que__: havenwood: ok so its not this part of code. thx
[07:38:28] Ox0dea: jfarmer: I'm sure it's to do with having seen something like `Math.sqrt`.
[07:38:35] jfarmer: Ox0dea That's what I'm guessing.
[07:38:48] codecodecode123: im going to add more and more math methods
[07:38:59] havenwood: que__: Maybe sanity check that `@next_refresh` and `Time.now` are what you expect, but I don't see an issue with what you've shown.
[07:39:00] codecodecode123: even if they're useless
[07:39:12] Ox0dea: Using a module as a pseudo-namespace is pretty standard.
[07:39:20] jfarmer: codecodecode123 Not challenging the validity of what you've chosen to write, only asking why you're putting them in a module.
[07:39:48] jfarmer: Yeah, so it seems like you're using a module as a way to implement what we'd call a "namespace" (https://en.wikipedia.org/wiki/Namespace)
[07:39:49] codecodecode123: because i think a module is a set of class methods
[07:39:55] jfarmer: codecodecode123 No.
[07:40:00] Ox0dea: codecodecode123: It is considerably more than that.
[07:40:14] jfarmer: It's good your idea is clear, but it's not quite right.
[07:40:18] Ox0dea: Modules let us favor composition over inheritance.
[07:40:21] havenwood: connor_goodwolf: unless arr.is_a? # <- is a what?
[07:40:28] havenwood: connor_goodwolf: sorry misstell
[07:40:33] workmad3: has joined #ruby
[07:40:47] codecodecode123: so in my case, what do i do
[07:40:52] que__: havenwood: can You help me with this -> return unless filter?(event) what does it mean ? return unless filter got new event ?
[07:41:09] havenwood: que__: Hem? Maybe show the code?
[07:41:17] Ox0dea: codecodecode123: Put "module_function" on a line by itself right beneath "module MathTalk".
[07:41:22] que__: https://github.com/elastic/logstash-contrib/blob/master/lib/logstash/filters/translate.rb#L150
[07:41:41] havenwood: codecodecode123: And #is_a? takes an argument.
[07:41:57] jfarmer: codecodecode123 Here are two modules you interact with every day with Ruby but don't surface in the same way Math does:
[07:41:58] que__: line 149 150
[07:42:05] jfarmer: Enumerable - http://ruby-doc.org/core-2.2.2/Enumerable.html
[07:42:08] jfarmer: Comparable - http://ruby-doc.org/core-2.2.2/Comparable.html
[07:42:13] havenwood: codecodecode123: http://ruby-doc.org/core/Object.html#method-i-is_a-3F
[07:42:53] codecodecode123: havenwood: i didn't ask that, but thanks for correcting my code :)
[07:43:38] Ox0dea: codecodecode123: You can "mix in" Enumerable into any class that defines a suitable #each method and automagically add all sorts of additionally functionality.
[07:43:39] jfarmer: codecodecode123 If you post code, be prepared to get feedback on all of it.
[07:44:10] Ox0dea: codecodecode123: The same goes for Comparable and #<=>.
[07:44:10] havenwood: que__: `return` returns early from the method *if* the return value of the #filter? method with `event` as an argument is anything but `false` or `nil`.
[07:44:22] codecodecode123: jfarmer thanks for the protip XD
[07:44:39] Xzanron: has joined #ruby
[07:45:15] que__: havenwood: ok thx.
[07:45:21] codecodecode123: 0x0dea so i add more code when i do that?
[07:45:31] Ox0dea: codecodecode123: You *receive* code.
[07:45:36] Ox0dea: Think on that.
[07:45:38] Marisa: has joined #ruby
[07:45:53] havenwood: que__: oh, it's `unless` not `if` so if it is `false` or `nil` - i said it backwards
[07:46:26] jfarmer: codecodecode123 I don't know how familiar you are with the various Enumerable methods like map, reduce, select, find, etc.
[07:46:36] que__: so as i said at beggining. if it is empty it wont go futher ?
[07:46:49] codecodecode123: 0x0dea oh, but that disagrees my slogan, "That code doesn't write itself!"
[07:46:53] Scroff: has joined #ruby
[07:47:02] Ox0dea: codecodecode123: Welcome to metaprogramming.
[07:47:26] Ox0dea: Only the term isn't strictly applicable in this case.
[07:47:35] codecodecode123: thanks for the soft welcome
[07:48:03] havenwood: que__: Is it making it to line 151 or returning early on live 150 because `filter?(event)` is `nil` or `false`?
[07:48:03] codecodecode123: jfarmer: i only see them as useful methods, nothing else.
[07:48:21] jfarmer: codecodecode123 Sure. They're all implemented in the Enumerable module.
[07:48:31] que__: havenwood: as You see it is plugin. i have no idea what is going on inside
[07:48:44] jfarmer: And if you have a class that implements its own "each" method, you can include the Enumerable module and get map, reduce, select, find, etc. automatically
[07:48:58] Scrofff: has joined #ruby
[07:49:24] jfarmer: All Enumerable requires is that the including class implement each; everything in the module is implemented in terms of each.
[07:49:29] jfarmer: That's more the "power" of modules.
[07:49:59] apeiros: jfarmer: I think .size has been added too
[07:50:09] havenwood: que__: I don't know the context of how you're using this or what the problem is. It could be returning early, sure. Or skipping because the @refresh_interval hasn't been exceeded.
[07:50:09] codecodecode123: most coders are software bot programmers then, they write code that auto-completes itself, AT RUNTIME (well before that).
[07:50:18] RegulationD: has joined #ruby
[07:50:30] User458764: has joined #ruby
[07:50:37] Ox0dea: >> Enumerable.instance_methods.size
[07:50:38] ruboto: Ox0dea # => 51 (https://eval.in/389088)
[07:50:43] Ox0dea: That is a lot of free functionality.
[07:51:06] sandstrom: has joined #ruby
[07:51:10] codecodecode123: *jaw drops onto the floor
[07:52:01] codecodecode123: wasnt ruboto ruby on android
[07:52:03] Indian: has joined #ruby
[07:52:21] adaedra: Greetings rubyists
[07:52:35] sevenseacat: different ruboto.
[07:52:40] ruboto: I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
[07:52:53] Ox0dea: ruboto, the second of his name.
[07:53:15] maloik: psh, only one title?
[07:53:23] apeiros: Ox0dea: ruboto doesn't like to be called "he", it's an it ;-p
[07:53:24] sevenseacat: titles, titles
[07:53:50] que__: ruboto beer
[07:54:03] Ox0dea: apeiros: I do apologize. I based my presumption on Spanish's gendered suffixes.
[07:54:14] codecodecode123: IM TALKING TO YOU APEIROS
[07:54:37] doodleha_: has joined #ruby
[07:54:53] apeiros: codecodecode123: and you shout why?
[07:54:54] codecodecode123: see for yourself
[07:55:13] apeiros: codecodecode123: if you talk to me, just prefix your message with my nick
[07:55:28] Ox0dea: apeiros: Erm... he's accusing(?) you of owning ruboto.
[07:55:33] sevenseacat: with a bit less shouting.
[07:55:39] codecodecode123: apeiros: i hit capslock while drinking cola
[07:55:46] adaedra: Between tab and shift.
[07:55:58] apeiros: ah, yeah, ruboto uses the same login as I
[07:56:02] adaedra: Ah, ninja'd
[07:56:02] apeiros: should still change that
[07:56:13] Ox0dea: codecodecode123: Sick detective work, mate.
[07:56:18] havenwood: I change my caplocks to be another ctrl key.
[07:56:27] jfarmer: My in alt/option
[07:56:29] adaedra: havenwood: you got the control man
[07:56:31] havenwood: Which then is a *ton* of fun on other people's computer.
[07:56:43] ruboto: codecodecode123: no, I'm not apeiros. I'm autonomous. Thank you very much.
[07:56:43] codecodecode123: havenwood: why would you do that
[07:56:46] havenwood: When my case rapidly switched UP AND donwn.
[07:56:54] Raboo: has joined #ruby
[07:56:57] codecodecode123: thank you ruboto
[07:57:01] adaedra: I should do that, too
[07:57:09] hotpancakes: has joined #ruby
[07:57:11] havenwood: codecodecode123: The caplocks key is easy to hit and I don't actually ever want it.
[07:57:20] havenwood: codecodecode123: So I repurpose it.
[07:57:22] ruboto: My owner is apeiros, I have many rulers though
[07:57:33] apeiros: it's quite a public fact that I own ruboto ;-)
[07:57:38] senayar: has joined #ruby
[07:57:38] senayar: has joined #ruby
[07:57:46] sevenseacat: my caps lock makes a beeping noise so i know when i've hit it
[07:57:46] Ox0dea: codecodecode123: You're still a 1337 hax0r, though.
[07:57:57] micmus: has joined #ruby
[07:58:11] codecodecode123: a noob one actually
[07:58:19] bigkevmcd: has joined #ruby
[07:58:44] anisha: has joined #ruby
[07:58:54] sandelius: has joined #ruby
[07:59:02] white_bear: has joined #ruby
[07:59:43] codecodecode123: so, do you change your nickname?
[08:00:29] doodleha_: has joined #ruby
[08:01:05] apeiros: we usually don't change our nicknames, hax0r1337
[08:01:10] tkuchiki_: has joined #ruby
[08:01:23] OrbitalKitten: has joined #ruby
[08:01:40] Ox0dea: >> 0xc0dec0dec0de123
[08:01:41] ruboto: Ox0dea # => 868609847691436323 (https://eval.in/389089)
[08:01:49] codecodecode123: I have been reborn!
[08:02:42] timonv: has joined #ruby
[08:04:20] doodleha_: has joined #ruby
[08:04:59] blackmes1: has joined #ruby
[08:05:14] joonty: has joined #ruby
[08:05:18] Macaveli: has joined #ruby
[08:05:49] hotpancakes: has joined #ruby
[08:07:10] TheHodge: has joined #ruby
[08:08:30] ahmetkapikiran: has joined #ruby
[08:10:26] iamninja: has joined #ruby
[08:11:11] krz: has joined #ruby
[08:11:51] michael_mbp: has joined #ruby
[08:11:54] axl_: has joined #ruby
[08:13:23] doerteDev: has joined #ruby
[08:13:24] ta: has joined #ruby
[08:14:42] k3asd`: has joined #ruby
[08:16:03] doodleha_: has joined #ruby
[08:21:45] doodleha_: has joined #ruby
[08:22:33] konsolebox: hi. anyone knows what could cause a child process you try to terminatee to defunct? I'm out of energy to examine the cause of this, so I'd be grateful if someone could give some ideas or tips
[08:22:53] konsolebox: i'm using the methods in Process btw
[08:22:54] codecop: has joined #ruby
[08:22:59] codecop_: has joined #ruby
[08:24:11] konsolebox: Ox0dea: btw, i was able to apply a good workaround to Readline. tell me if you're interested to see the code :) thanks again for the help yesterday btw
[08:24:29] dumdedum: has joined #ruby
[08:24:37] sinkensabe: has joined #ruby
[08:25:18] marr: has joined #ruby
[08:25:35] doodleha_: has joined #ruby
[08:25:39] Ox0dea: konsolebox: You should be able to invoke Process.wait in the parent to kill the zombie.
[08:25:45] Ox0dea: And yes, I'd love to see how you managed it.
[08:26:48] rdark: has joined #ruby
[08:26:49] emhs: konsolebox: defunct means your parent failed to collect it once it's terminated (usually wait/waitpid missing in the parent)
[08:26:52] konsolebox: Ox0dea: https://bpaste.net/show/1836b658fa39
[08:27:40] konsolebox: i see i actually only used Process.waitpid2 and never invoked Process.wait
[08:28:13] Ox0dea: konsolebox: Just about as gnarly as might've been expected, but well done.
[08:29:26] doodleha_: has joined #ruby
[08:29:49] konsolebox: or to be exact, i only do `while (pid, status = Process.waitpid2(@pid, Process::WNOHANG)).nil?` to check if a process still exists. but Process.wait was actually needed for it
[08:30:02] konsolebox: Ox0dea: yeah, it would get better time to time :)
[08:30:41] Xeago: has joined #ruby
[08:31:19] Ox0dea: konsolebox: I'm only half-joking in suggesting line = `read -ep '> ' f; echo $f`.
[08:31:23] doodleha_: has joined #ruby
[08:32:11] Ox0dea: Okay, 90% jest; shelling out for each line of input is bad.
[08:32:23] konsolebox: Ox0dea: actually my original code works with Bash :) and it does use read.
[08:32:46] roshanavand: has joined #ruby
[08:35:10] Ox0dea: I've never seen a clean way to convert escaped literals to their actual values.
[08:35:14] doodleha_: has joined #ruby
[08:35:49] apeiros: literal_parser gem!
[08:36:01] apeiros: (no idea whether it applies, didn't read backlog - and now break time, brb)
[08:36:18] withnale_: has joined #ruby
[08:37:17] Ox0dea: apeiros: How to go from '\n\r\t' to "\n\r\t"?
[08:38:06] Ox0dea: I've never seen it done "dynamically"; that is, without resorting to handling it on a case-by-case basis in order to just use the actual literal.
[08:39:12] Ox0dea: >> '\n\r\t'.gsub(/\\([nrt])/) { eval "\\#$1" }
[08:39:13] ruboto: Ox0dea # => (eval):1: syntax error, unexpected $undefined (SyntaxError) ...check link for more (https://eval.in/389096)
[08:40:01] konsolebox: Ox0dea: that's one i'm trying to simplify as well
[08:40:43] Ox0dea: konsolebox: #gsub with a Hash is arguably a bit nicer.
[08:41:00] doodleha_: has joined #ruby
[08:41:07] Ox0dea: bnagy: Did I not do that right?
[08:41:34] bnagy: no, it doesn't work :/
[08:42:05] konsolebox: Ox0dea: i actually tend to avoid eval unless necessary.. it significantly slows things down, most of the time... at least i don't want to use it on a char-by-char parser
[08:42:19] Ox0dea: konsolebox: No, I would never suggest such a thing.
[08:42:23] Ox0dea: I just want to see if it's feasible.
[08:42:54] bnagy: >>eval("'\n'") # wrong :(
[08:42:55] Ox0dea: >> '\n\r\t'.gsub(/\\([nrt])/) { eval "\"\\#$1\"" } # derp
[08:42:55] ruboto: bnagy # => "\n" (https://eval.in/389105)
[08:42:56] ruboto: Ox0dea # => "\n\r\t" (https://eval.in/389105)
[08:43:05] Ox0dea: I was missing the quotes.
[08:43:11] platzhirsch: has joined #ruby
[08:44:02] Igorshp: has joined #ruby
[08:44:29] que__: guys is this saying anything for anyone ? i debbuged program and i got this http://paste.ofcode.org/bRm6JSRmEKnjALnukNxTAQ
[08:44:33] _blizzy_: has joined #ruby
[08:45:14] tubuliferous_: has joined #ruby
[08:45:15] Oog: has joined #ruby
[08:45:58] Stan: has joined #ruby
[08:46:39] Ox0dea: que__: You have a nil where the code is expecting something it can call + on.
[08:47:20] que__: ;/ damn how can i now find it. ehhhh
[08:49:00] fella5s: has joined #ruby
[08:49:04] IanV0rn: has joined #ruby
[08:50:32] IanV0rn: has joined #ruby
[08:50:40] Ox0dea: You should use a debugger, but if you're feeling silly, you could define nil.+(foo), and maybe the value of foo will point you in the right direction.
[08:50:42] que__: Ox0dea: so it is only error from there ?
[08:50:47] que__: it is from debugging mode
[08:50:52] corpsicle: has joined #ruby
[08:51:13] Ox0dea: Then you should be able to inspect your variables and determine which one is nil when it oughtn't be.
[08:51:39] que__: Ox0dea: that would be great if the program had only one rb file.
[08:51:40] senayar: has joined #ruby
[08:51:40] senayar: has joined #ruby
[08:51:50] lavros: has joined #ruby
[08:51:53] que__: and it is not mine. i am just a simple sys adm.
[08:52:16] fella6s: has joined #ruby
[08:54:02] Oog: has joined #ruby
[08:54:36] Jackneill: has joined #ruby
[08:55:36] blackmes1: has joined #ruby
[08:55:56] pontiki: que__: you'll probably have to direct your question to the program's authors :((
[08:56:11] Ox0dea: que__: https://github.com/jordansissel/ruby-filewatch/blob/master/lib/filewatch/tail.rb#L185
[08:56:23] Ox0dea: That's where the error is occurring, but I don't know the gem to say much more than that.
[08:56:52] Zai00: has joined #ruby
[08:56:54] que__: moro pontiki yeah i did . just wanted to ask here to maybe masters of ruby can help me fix it. Ox0dea yeah i looked it up also.
[08:57:11] apeiros: Ox0dea: https://github.com/apeiros/literal_parser/blob/master/lib/literal_parser.rb#L331
[08:57:27] apeiros: it's incomplete, though. there's escape sequences it doesn't handle.
[08:58:00] Karpah: has joined #ruby
[08:58:07] ahmetkapikiran: has joined #ruby
[08:58:47] hotpancakes: has joined #ruby
[09:00:16] lkba: has joined #ruby
[09:01:01] Ox0dea: que__: Are you able to say which is more likely the offending Hash, @sincedb or @statcache?
[09:01:13] Ox0dea: apeiros: Ah, literal_parser lives up to its name.
[09:01:29] Ox0dea: It does seem #gsub's Hash form is the best approach, then.
[09:02:01] apeiros: Ox0dea: I explicitly didn't want to use eval. it uses it to resolve constants, but that can be disabled and the pattern is verified :)
[09:02:26] que__: the only thing i figure out is this - > when change in the file to longer text for expample aaa:bbb to aaaa:bbb all is ok when aa:bbb it crashes.
[09:02:35] ryba: has joined #ruby
[09:02:57] Ox0dea: apeiros: Would const_get not suffice?
[09:03:27] apeiros: before 2.1 (or 2.2?) const_get could not handle nested constants. using each/inject to get "deep" constants was slower than eval.
[09:03:47] apeiros: with 2.1/2.2 I might do a polyfill
[09:03:47] ghostpl: has joined #ruby
[09:05:07] Ox0dea: Yep, makes sense. I ran into the same when trying to dynamically test my named unicode literals thing.
[09:05:21] KetaPan: has joined #ruby
[09:05:26] renderful: has joined #ruby
[09:05:40] apeiros: a version using inject might even be burried in the git history :)
[09:06:36] hotpancakes: has joined #ruby
[09:08:29] ghostpl: has joined #ruby
[09:08:32] apeiros: Ox0dea: oh wow, just actually read the code. it's obviously older than hash form of gsub :D
[09:08:39] vdamewood: has joined #ruby
[09:09:02] lessless: has joined #ruby
[09:09:06] apeiros: (I doubt I wanted to be backwards compatible - I'd certainly have branched the code based on capability)
[09:11:34] skade: has joined #ruby
[09:13:20] platzhirsch: has joined #ruby
[09:14:47] knite: has joined #ruby
[09:14:47] Igorshp: has joined #ruby
[09:17:05] CloCkWeRX: has joined #ruby
[09:17:47] doodleha_: has joined #ruby
[09:18:44] Ox0dea: >> "\C-#{}"
[09:18:45] ruboto: Ox0dea # => "\u0003{}" (https://eval.in/389129)
[09:19:01] Ox0dea: I feel like interpolation should probably take precedence over this wonky \C guy.
[09:19:01] Xeago: has joined #ruby
[09:19:52] xrlabs: has joined #ruby
[09:20:59] KetaPan: has joined #ruby
[09:21:36] bruno-: has joined #ruby
[09:21:47] apeiros: I disagree :)
[09:21:57] apeiros: it'd complicate matters quite a bit
[09:22:09] Ox0dea: Yes, it would.
[09:22:38] mister_solo: has joined #ruby
[09:22:55] einarj: has joined #ruby
[09:23:33] doodleha_: has joined #ruby
[09:23:49] Scroff: has joined #ruby
[09:24:08] Ox0dea: Mind, I'm not suggesting that the interpolation should attach to the \C.
[09:24:47] apeiros: I understood that
[09:25:03] apeiros: I understand that you want "\C-#{1+1}" to return "\\C-2"
[09:25:10] apeiros: or maybe without the \\
[09:25:13] apeiros: not sure about that part
[09:25:32] apeiros: but "\C-" starts a \C sequence. sequences are ltr.
[09:25:40] apeiros: it shouldn't suddenly change direction of interpretation
[09:25:54] Ox0dea: How Anglocentric of you.
[09:25:59] Ox0dea: I jest, of course.
[09:27:06] apeiros: please, I'm not anglocentric. Clearly it should be obvious to everybody that I'm alemannicentric.
[09:27:26] workmad3: has joined #ruby
[09:27:27] apeiros: alemannocentric?
[09:27:28] doodleha_: has joined #ruby
[09:28:08] Ox0dea: $ ruby49 -e 'print("\C-A")' | xxd
[09:28:10] Ox0dea: 00000000: 01
[09:28:14] Ox0dea: These guys have been in since the beginning.
[09:28:25] apeiros: I'm happy ruby doesn't have trigraphs
[09:28:25] Ox0dea: Sign of the times, I suppose.
[09:29:07] sfarley: has joined #ruby
[09:33:20] Melite: has joined #ruby
[09:33:21] BrianBoyko: Hey guys, especially apeiros - the site's up. And mostly running.
[09:34:05] apeiros: BrianBoyko: cool! I hope you forgive me for not knowing which site you're talking about, though :-S
[09:34:28] BrianBoyko: The site you were helping me work on. https://sendthisguytocodecamp.com/
[09:34:40] fabrice31: has joined #ruby
[09:34:54] apeiros: heh, I *somewhat* suspected I might have helped you ;-)
[09:34:55] ghostpl: has joined #ruby
[09:35:06] apeiros: just didn't remember with what
[09:35:44] BrianBoyko: I have a sneaking suspicion the site'll be on BoingBoing tomorrow. Maybe.
[09:36:12] allomov: has joined #ruby
[09:36:13] apeiros: ACTION doesn't read boingboing :-/
[09:36:23] BrianBoyko: It's a fairly popular blog.
[09:36:56] lavros: has joined #ruby
[09:37:12] yaw: has joined #ruby
[09:38:12] BrianBoyko: Anyway, things are great. Just promoted to family and friends, now we just have to wait for the morning pres.
[09:39:04] dgutierrez1287: has joined #ruby
[09:39:15] bf4: has joined #ruby
[09:39:20] RegulationD: has joined #ruby
[09:39:22] txdv: has joined #ruby
[09:39:23] mikecmpbll: has joined #ruby
[09:39:33] txdv: >> "Hello World"
[09:39:34] ruboto: txdv # => "Hello World" (https://eval.in/389141)
[09:39:51] sevenseacat: I find these kinds of fundraisers uncomfortable.
[09:39:52] vyorkin: has joined #ruby
[09:40:50] sevenseacat: why do people need to give you money for you to do good works?
[09:41:04] nhhagen: has joined #ruby
[09:41:31] BrianBoyko: Because I don't have money.
[09:41:47] BrianBoyko: ...and I can't do the good works without the education, and I can't get the education without money.
[09:42:20] BrianBoyko: I mean, that 100 hour pledge - I'd probably volunteer that much anyway, but the difference between volunteering with specialized knowledge and volunteering without it.
[09:42:47] sevenseacat: so borrow some?
[09:43:02] apeiros: ACTION now wonders how many hours he spent helping people
[09:43:10] ddv: BrianBoyko: there are tons of resources you can for free
[09:43:18] canton7: wouldn't it be a safer investment for us to fund someone who already has proven knowledge and experience?
[09:43:19] sevenseacat: apeiros: and to think, you could have been getting paid for it this whole time.
[09:43:32] apeiros: I suspect 100h doesn't even hit close to home :D
[09:44:18] bnagy: haha broken https _b
[09:45:20] bnagy: wow, that is beyond a trainwreck in chrome o_0
[09:45:23] lavros_: has joined #ruby
[09:45:24] apeiros: if you'd assume an average of 1h per week (which is probably very conservative), I'd be around 500h now. but I guesstimate it's more in the ballpark of 1000-2000h (mind you, I'm much less active nowadays than what I've been)
[09:45:34] BrianBoyko: Canton7: Well, someone with proven knowledge and experience doesn't need the education. On the other hand, I've had proven talent. (Okay, my Ruby sucks, but still.)
[09:45:51] BrianBoyko: Borrowing isn't an option.
[09:46:19] BrianBoyko: bnagy: What do you mean broken https?
[09:46:26] apeiros: BrianBoyko: I don't judge you. if people think it's a great idea to donate to you and you keep your promise - awesome.
[09:47:11] BrianBoyko: I mean, this isn't my first crowdfunding project. Just the first one where I'm asking for money for my education rather than for another person's cause. I raised $11M once. Didn't get to keep any of it, but still..
[09:47:15] sevenseacat: I don't judge *you*, but I find the idea distasteful. You'll probably get your goal, and good on you for it.
[09:47:34] lkba_: has joined #ruby
[09:48:07] bruno-: has joined #ruby
[09:48:26] apeiros: I'm actually a fan of something which does that in an institutionalized manner: http://www.vittana.org
[09:48:38] apeiros: it's part of my reserved yearly donation budget
[09:48:57] bnagy: BrianBoyko: my chrome doesn't trust your root cert
[09:49:27] tno: has joined #ruby
[09:49:36] BrianBoyko: Can you give me a log of what it's saying?
[09:49:57] sevenseacat: apeiros: I like that.
[09:50:17] bnagy: oh, it's comodo. haha :<
[09:50:20] BrianBoyko: I'm using Cloudflare's SSL, I know it's not perfect...
[09:50:58] BrianBoyko: has left #ruby: ("Leaving")
[09:51:05] BrianBoyko: has joined #ruby
[09:51:18] maloik: you're putting in 100 hours for like 12k, rails girls summer of code raised 10x that for 15000 hours (rough estimate)
[09:51:59] sevenseacat: 100 hours is like two, three weeks of work
[09:52:12] sevenseacat: I doubt anyone here makes 12k for three weeks of work
[09:52:14] maloik: 16 teams of 2, 3 months, 30 hours per week... 11520
[09:52:19] MrJiks_: has joined #ruby
[09:52:25] BrianBoyko: maloik: I think you're missing the point. I'm probably going to be putting in more than 100 hours. The point is that it sets a precident - anyone who wants to recieve a scholarship *after* me has to do *at least* that.
[09:52:25] maloik: and they're probably putting in more time in a week
[09:52:26] bnagy: BrianBoyko: welp, some portion of users will not be able to visit your site
[09:52:29] yorickpeterse: That money is used for much more than just paying students
[09:52:50] maloik: yorickpeterse: I know, but that just works in my favor
[09:52:53] sevenseacat: meh, I've said my piece.
[09:52:57] maloik: or well in favor of the point I'm trying to make
[09:53:06] yorickpeterse: didn't really follow, what's the tl;dr?
[09:53:14] blackmes1: has joined #ruby
[09:53:15] yorickpeterse: besides "lol scroll up"
[09:53:32] adaedra: lol scroll down
[09:53:34] maloik: BrianBoyko is raising money to send him to bootcamp (12k USD?) and promises to work 100 hours pro bono for a non profit
[09:53:46] maloik: so I responded, RGSoC is imo a much better investment
[09:53:56] maloik: if you look at it purely logically like that
[09:54:06] BrianBoyko: Well, I'm also promising to pay the money forward for at least 12k * 105% to someone else.
[09:54:20] yorickpeterse: I'd rather donate to some well established organization than an individual
[09:54:32] yorickpeterse: RGSoC is less likely to blow it on crack, cars and hookers
[09:54:45] ljarvis: it's not inconceivable
[09:54:51] yorickpeterse: It's possible yes, but unlikely
[09:54:54] BrianBoyko: If I blew it on crack, cars, and hookers, I'd be prosecuted for fraud.
[09:54:59] yorickpeterse: No you wouldn't
[09:55:03] yorickpeterse: Because nobody would sue you
[09:55:03] stardiviner: has joined #ruby
[09:55:12] yorickpeterse: Plus donations don't come with any warranty/requirements IIRC
[09:55:14] sevenseacat: given you're not on one of the crowdfunding sites, likely not.
[09:55:21] sevenseacat: you're asking for donations, not backers.
[09:55:31] IanV0rn: has joined #ruby
[09:55:56] BrianBoyko: This probably isn't helping the point, but if I wanted to scam people out of money, there are much easier and less risky ways of doing it.
[09:56:07] yorickpeterse: tell that to 80% of all kickstarter projects
[09:56:09] ljarvis: im convinced
[09:56:11] maloik: BrianBoyko: I think if money is the only problem, you may as well find an unpaid internship to learn
[09:56:21] yorickpeterse: Either way, it will be very hard as an individual to get the money, no matter how honest
[09:56:29] ljarvis: hey i just realised i have today off work
[09:56:33] yorickpeterse: e.g. you might really want to achieve something, but unless you're well known you're sadly not going to get far
[09:56:34] sevenseacat: ljarvis: party!
[09:56:40] maloik: lol ljarvis :D
[09:56:43] BrianBoyko: I'm kinda well known.
[09:56:52] yorickpeterse: local playground doesn't count
[09:56:54] maloik: ljarvis: how do you forget that?
[09:57:01] ljarvis: maloik: right?
[09:57:03] yorickpeterse: ljarvis: because he's working
[09:57:35] BrianBoyko: http://lessig.tumblr.com/post/84419344732/the-launch-of-the-mayday-citizens-superpac
[09:58:08] sevenseacat: it's all greek to me
[09:58:09] yorickpeterse: Also as an individual the question I'd ask: why me instead of the millions of others?
[09:58:44] bkxd: has joined #ruby
[09:59:04] bkxd: has joined #ruby
[09:59:32] eGGsha: has joined #ruby
[09:59:33] BrianBoyko: Because I have a track record of being trusted and living up to that trust with large sums of money before, because I have a track record of working for reform, and because I'm asking politely. Don't get me wrong, there are TONS of individuals in need of help. That's why I'm not taking the money and keeping it, I'm paying it forward.
[10:00:37] yorickpeterse: Not trying to be an ass, but most will counter that with
[10:00:43] yorickpeterse: with "Yeah everybody else says that too"
[10:01:00] yorickpeterse: e.g. I could say "Pay me 100k and I'll do something cool and totally not spend in on cat hats"
[10:01:09] yorickpeterse: "because I know how to handle money you can trust me"
[10:01:25] yorickpeterse: fuck, I wouldn't mind blowing 100k on funny cat hats
[10:01:27] BrianBoyko: No, not everyone else says that. When I say I have a track record with being responsible with large sums of "not-mine" money, I mean it.
[10:01:49] BrianBoyko: Think about it.
[10:01:51] yorickpeterse: The point is still, why you? Why not some kid from a poor country?
[10:02:01] yorickpeterse: "I know how to handle money" is like the worst argument
[10:02:13] BrianBoyko: No, not "I know how to handle money."
[10:02:32] BrianBoyko: It's "I have been shown to have been trustworthy with a far greater sum when the oppertunity presented itself to be dishonest."
[10:02:45] txdv: what the fuck is a cat hat
[10:02:49] mister_s_: has joined #ruby
[10:02:56] yorickpeterse: txdv: a hat for a cat
[10:02:59] white_bear: has joined #ruby
[10:03:02] yorickpeterse: let me get an example
[10:03:04] BrianBoyko: It's a cat shaped like a hat, or a hat shaped like a cat, or a hat for a cat, or a cat for a hat.
[10:03:20] txdv: why would you put hats on food
[10:03:26] Ox0dea: This guy.
[10:03:34] senayar: has joined #ruby
[10:03:38] yorickpeterse: txdv: to make it look better
[10:03:44] senayar: has joined #ruby
[10:04:17] yorickpeterse: http://i.imgur.com/dkOI4Dl.jpg <- hat for a cat
[10:04:25] yorickpeterse: (my cat to be exact)
[10:04:32] Ox0dea: Looks delicious.
[10:04:37] chipotle: has joined #ruby
[10:05:08] BrianBoyko: anyway, I'm going to try to get some sleep. big day tomorrow.
[10:05:29] Ox0dea: yorickpeterse: Your cat is adorbs; is he an ex-Googler?
[10:06:03] hotpancakes: has joined #ruby
[10:06:35] yorickpeterse: He hasn't started and sold any startups (catups?) just yet
[10:07:02] Ox0dea: Does he speak LOLCODE?
[10:07:12] yorickpeterse: No, he only meows all day
[10:07:25] yorickpeterse: when he's not asleep
[10:07:27] yorickpeterse: or chasing birds
[10:07:34] yorickpeterse: (which doesn't work because he has a bell around his neck)
[10:07:45] yorickpeterse: so he gets in this cool tiger pose while the birds already noticed him minutes ago
[10:07:55] bnagy: that cat is unimpressed with his hat
[10:07:58] yorickpeterse: must be super frustrating
[10:07:58] borkdude: has joined #ruby
[10:08:06] yorickpeterse: "WHY DO THESE BIRDS FLY AWAY ALL THE TIME"
[10:08:13] bnagy: actually I've known cats that hunt fine with bells
[10:08:19] sandelius: has joined #ruby
[10:08:25] adaedra: "MEOW MEOW MEOWMOEW MEEEEOW"
[10:09:00] sevenseacat: one of my cats is deaf, which makes it even more hilarious when he goes hunting birds with a bell on
[10:09:08] sevenseacat: "HOW DID THEY KNOW???"
[10:09:11] Ox0dea: >> 0xdeaf
[10:09:12] ruboto: Ox0dea # => 57007 (https://eval.in/389144)
[10:09:18] Ox0dea: That is a good number.
[10:09:27] yorickpeterse: I just imagine the birds having some sort of walky-talky system
[10:09:36] OrbitalKitten: has joined #ruby
[10:09:38] sevenseacat: he also makes the most stupid noises, given he cant hear himself
[10:09:45] eGGsha: has joined #ruby
[10:09:47] yorickpeterse: "Red baron come in, red baron?" "This is red baron, the cat is out of the box, I repeat the cat is out of the box"
[10:10:07] Ox0dea: I was under the impression most birds had taken to communicating via tweets.
[10:10:08] yorickpeterse: god, that reminds me of Dogfort :<
[10:10:20] yorickpeterse: http://wac.450f.edgecastcdn.net/80450F/comicsalliance.com/files/2011/01/dogfort.jpg
[10:10:20] choke: has joined #ruby
[10:10:44] yorickpeterse: I wonder if different bird species can understand each other
[10:10:49] yorickpeterse: or if it just sounds like a bunch of drunks
[10:12:02] sevenseacat: I want to write something articulate about how distasteful I find that crowdsourcing stuff, but given how prevalent it is these days, would probably get myself in trouble
[10:12:10] sevenseacat: crowdfunding, rather
[10:12:32] connor_goodwolf: curious, what happened to #ruby-lang? :)
[10:12:55] sevenseacat: it merged in with us here in #ruby
[10:13:07] yorickpeterse: jhass brutally forced us to merge
[10:14:34] connor_goodwolf: A good thing I suppose, though just be careful of the old ops, some of them hold grudges.
[10:15:11] jhass: meh, and already another week we didn't survive without the question
[10:15:44] connor_goodwolf: jhass: I didn't pay attention to it until someone lazy tabbed my name
[10:15:54] connor_goodwolf: then I seen the /title
[10:16:19] sdothum: has joined #ruby
[10:17:20] apeiros: sevenseacat: I actually once made 10k for 2h of work :D (contractor wanted 40k for it, we couldn't do it internally so I offered to do it in my spare time for 1/4th the price??? and we had much less overhead too - no custom server setup for the stuff, full integration in our existing apps)
[10:17:54] sepp2k: has joined #ruby
[10:17:58] apeiros: granted, I added 6h more of work to add unspecified stuff because I felt a little guilty :D
[10:18:25] connor_goodwolf: apeiros: business is business, never feel guilty
[10:18:46] apeiros: connor_goodwolf: honestly, I found the contractor should feel guilty asking 40k for something which took me 2h???
[10:18:47] yorickpeterse: businesses would be so much better if you'd get money without customers
[10:18:59] denver: has joined #ruby
[10:19:10] yorickpeterse: our business basically revolves around "WHERE ARE MY GOSH DARN REVIEWS????1111"
[10:19:25] yorickpeterse: "THIS OTHER COMPETITOR HAS THEM!!!"
[10:20:23] rickmasta: has joined #ruby
[10:20:26] connor_goodwolf: apeiros: when Summly sold there were quite a few people, even those who I thought were peers but in reality they were far below me, say things like: "They're just bolt-on engineers", "you don't deserve the money after only 18 months work, I spent 5 years on my startup and it went nowhere." etc etc
[10:20:37] connor_goodwolf: apeiros: so pretty much, consider t business is buiness
[10:20:38] yorickpeterse: "THIS OTHER COMPETITOR HAS DATA FIELD X" "but it doesn't exist in that service" "BUT THEY HAVE ITT!!!"
[10:20:46] alotofnoodles: has joined #ruby
[10:20:59] gix: has joined #ruby
[10:21:30] Akagi201: has joined #ruby
[10:22:21] Xeago: has joined #ruby
[10:23:42] connor_goodwolf: apeiros: when you keep on doing what you did, you'll feel more accomplished, there's a word for it what you experienced
[10:24:32] connor_goodwolf: https://en.wikipedia.org/wiki/Impostor_syndrome
[10:24:35] connor_goodwolf: Imposter Syndrome
[10:26:49] gix: has joined #ruby
[10:28:02] ooesili: has joined #ruby
[10:30:38] Indian: has joined #ruby
[10:33:23] tubuliferous_: has joined #ruby
[10:33:40] Rubie: has joined #ruby
[10:35:05] fabrice31: has joined #ruby
[10:35:24] yorickpeterse: wtf, my mouse cursor vanished
[10:35:47] adaedra: keep calm and use your keyboard
[10:36:45] frg133: has joined #ruby
[10:37:21] yorickpeterse: well it still works, the cursor is just invisible
[10:38:11] yorickpeterse: this is the weirdest bug
[10:38:18] i8igmac: has joined #ruby
[10:41:42] blackmes1: has joined #ruby
[10:42:38] Asher: has joined #ruby
[10:43:00] Mia: has joined #ruby
[10:47:09] nhhagen: has joined #ruby
[10:48:04] nhhagen: has joined #ruby
[10:49:33] vondruch_: has joined #ruby
[10:49:40] jzigmund_: has joined #ruby
[10:49:56] gagrio_: has joined #ruby
[10:50:59] sfarley: has joined #ruby
[10:51:12] ruby-lang510: has joined #ruby
[10:52:04] workmad3: yorickpeterse: shake your mouse furiously until it reappears
[10:52:19] workmad3: (that's my normal solution for that type of problem)
[10:52:48] adaedra: burn the whole machine
[10:53:00] workmad3: adaedra: that's plan B
[10:53:03] sevenseacat: its the only way to be sure.
[10:54:56] tomaz_b: has joined #ruby
[10:55:34] Bertg: has joined #ruby
[10:55:57] jzigmund: has joined #ruby
[10:57:24] iamninja: has joined #ruby
[10:57:27] rodfersou: has joined #ruby
[10:57:33] shevy: yorickpeterse hire a cat to discover the mouse
[10:57:42] phutchins: has joined #ruby
[10:58:00] blackmes1: has joined #ruby
[10:59:24] TinkerTyper: has joined #ruby
[10:59:45] bonehead: has joined #ruby
[11:02:19] Xzanron_: has joined #ruby
[11:02:44] matp: has joined #ruby
[11:02:50] araujo: has joined #ruby
[11:02:50] araujo: has joined #ruby
[11:03:51] ahmetkapikiran: has joined #ruby
[11:04:35] Oka: has joined #ruby
[11:04:51] arup_r: has joined #ruby
[11:05:25] vondruch_: has joined #ruby
[11:05:51] towski_: has joined #ruby
[11:06:17] Xeago: has joined #ruby
[11:06:47] gagrio_: has joined #ruby
[11:07:33] astrobunny: has joined #ruby
[11:08:42] skade: has joined #ruby
[11:09:52] railsraider: has joined #ruby
[11:10:43] eGGsha: has joined #ruby
[11:10:49] emilkarl: has joined #ruby
[11:12:09] adaedra: but don't forget the hat!
[11:12:46] shevy: what is with those hats
[11:15:29] apeiros: workmad3: what happened to "did you try to turn it off and on again?"?
[11:15:50] adaedra: it never turned on again. ever.
[11:16:06] _blizzy_: has joined #ruby
[11:17:09] IanV0rn_: has joined #ruby
[11:17:35] gix: has joined #ruby
[11:18:31] fantazo: has joined #ruby
[11:21:09] fabrice31: has joined #ruby
[11:22:36] shevy: I suppose default ruby does not have a hash or another means to convert
[11:22:45] shevy: the integer 1 into the word 'one' ?
[11:22:48] shevy: and so forth
[11:22:58] symbol: has joined #ruby
[11:23:14] eGGsha: has joined #ruby
[11:23:28] diegoviola: has joined #ruby
[11:23:48] canton7: a hash of infinite length?
[11:23:53] astrobunny: has joined #ruby
[11:24:13] Aeyrix: >> Array.new(10)
[11:24:14] ruboto: Aeyrix # => [nil, nil, nil, nil, nil, nil, nil, nil, nil, nil] (https://eval.in/389234)
[11:24:25] yorickpeterse: well, at least rebooting got me my cursor back
[11:24:49] yorickpeterse: stupid computers
[11:25:56] shevy: canton7 can be generic or up to some length
[11:26:09] adaedra: >> {1: 'one'}[1]
[11:26:10] ruboto: adaedra # => /tmp/execpad-21a8126b9db9/source-21a8126b9db9:2: syntax error, unexpected ':', expecting => ...check link for more (https://eval.in/389236)
[11:26:13] canton7: and one hash for each language?
[11:26:14] shevy: I seem to keep finding myself in need of that
[11:26:21] adaedra: >> {1 => 'one'}[1]
[11:26:22] ruboto: adaedra # => "one" (https://eval.in/389237)
[11:26:40] symbol: has joined #ruby
[11:27:16] adaedra: but no, I don't think there is a list of number names in stdlib
[11:27:25] apeiros: shevy: there's a gem
[11:27:37] mbhnvs: has joined #ruby
[11:28:04] RegulationD: has joined #ruby
[11:28:37] xrlabs: has joined #ruby
[11:28:51] Marisa: has joined #ruby
[11:30:44] lapide_viridi: has joined #ruby
[11:31:23] nofxx: has joined #ruby
[11:33:47] quazimodo: has joined #ruby
[11:35:57] kirun: has joined #ruby
[11:36:17] Xeago: has joined #ruby
[11:36:17] roshanavand: has joined #ruby
[11:36:40] Bertg: has joined #ruby
[11:38:18] tomaz_b: has joined #ruby
[11:39:58] sfarley: has joined #ruby
[11:41:06] mister_solo: has joined #ruby
[11:41:52] startupality: has joined #ruby
[11:43:10] valkyrka: has joined #ruby
[11:43:26] revath: has joined #ruby
[11:43:28] valkyrka: hi guys, I???m having an issue with migrating a redmine instance - I???m getting the following error trying to access it
[11:43:29] valkyrka: https://gist.github.com/anonymous/a1103d06fa7975e98463
[11:43:40] valkyrka: but the psych module is installed
[11:44:43] valkyrka: does anyone have any idea what might be wrong with it?
[11:44:55] CloCkWeRX: has joined #ruby
[11:45:25] aotg: has joined #ruby
[11:45:34] sgambino: has joined #ruby
[11:46:28] senayar: has joined #ruby
[11:47:34] Zai00: has joined #ruby
[11:51:24] hotpancakes: has joined #ruby
[11:54:25] pengin: has joined #ruby
[11:55:15] fabrice31: has joined #ruby
[11:56:37] sandelius: has joined #ruby
[11:56:52] dgutierrez1287: has joined #ruby
[11:56:56] Igorshp: has joined #ruby
[11:57:13] AugustoCesar: has joined #ruby
[11:58:21] sbhatore1: has joined #ruby
[11:59:04] arup_r: has joined #ruby
[11:59:13] but3k4: has joined #ruby
[11:59:45] pabloh: has joined #ruby
[12:00:19] Xzanron: has joined #ruby
[12:00:20] ryba: has joined #ruby
[12:00:40] astrobunny: has joined #ruby
[12:02:40] sbhatore: has joined #ruby
[12:03:40] abuzze_: has joined #ruby
[12:04:23] Papierkorb: has joined #ruby
[12:06:08] hotpancakes: has joined #ruby
[12:06:52] AugustoCesar: has left #ruby: ("PONG :asimov.freenode.net")
[12:07:16] revath: has left #ruby: ()
[12:07:36] IanV0rn2341: has joined #ruby
[12:08:49] rbennacer: has joined #ruby
[12:10:03] rht: has joined #ruby
[12:11:57] atomical: has joined #ruby
[12:14:45] sfarley: has joined #ruby
[12:15:35] Yiota: has joined #ruby
[12:17:06] CloCkWeRX: has joined #ruby
[12:19:11] mattarse: has joined #ruby
[12:19:34] krz: has joined #ruby
[12:19:44] gagrio_: has joined #ruby
[12:20:03] Gadgetoid: has joined #ruby
[12:20:54] User458764: has joined #ruby
[12:21:15] yorickpeterse: ergh, I hate hunting down memory leaks in Ruby
[12:21:28] yorickpeterse: especially when the only tools available just flat out disable the GC
[12:21:32] tubuliferous_: has joined #ruby
[12:21:42] Axy: has joined #ruby
[12:23:10] skade: has joined #ruby
[12:23:27] chinmay_dd: has joined #ruby
[12:23:36] nateberkopec: has joined #ruby
[12:23:53] emilkarl: has joined #ruby
[12:25:23] atomical_: has joined #ruby
[12:27:07] camonz: has joined #ruby
[12:28:15] sankaber: has joined #ruby
[12:28:30] jschoolcraft: has joined #ruby
[12:32:21] CloCkWeRX: has joined #ruby
[12:32:23] bruno-: has joined #ruby
[12:34:34] IanV0rn2341: has joined #ruby
[12:36:20] IanV0rn2_: has joined #ruby
[12:37:16] startupality: has joined #ruby
[12:37:26] bruno-: has joined #ruby
[12:37:38] roolo_: has joined #ruby
[12:39:36] dstarh: has joined #ruby
[12:40:00] bf4: has joined #ruby
[12:40:32] zotherstupidguy: has joined #ruby
[12:40:50] IanV0rn2341: has joined #ruby
[12:41:01] Igorshp: has joined #ruby
[12:41:57] sfarley: has joined #ruby
[12:42:56] revoohc: has joined #ruby
[12:43:27] Scrofff: has joined #ruby
[12:43:57] RegulationD: has joined #ruby
[12:44:43] Scroff: has joined #ruby
[12:46:33] bhorn1: has joined #ruby
[12:46:49] Scrofff: has joined #ruby
[12:46:55] ldnunes: has joined #ruby
[12:46:59] sinkensabe: has joined #ruby
[12:47:51] yorickpeterse: hm, I like the part where Nokogiri just allocates 541 XML::SyntaxError classes
[12:47:55] [k-: has joined #ruby
[12:48:21] shevy: <my_poor_good_man>yorickpeterse</my_poor_good_man>
[12:48:30] [k-: eww xml
[12:48:32] thelastinuit: has joined #ruby
[12:48:55] emilkarl: has joined #ruby
[12:48:56] fabrice31_: has joined #ruby
[12:49:41] jhass: maybe it's sgml still
[12:49:52] ringarin: has joined #ruby
[12:50:12] Ropeney: has joined #ruby
[12:53:05] yorickpeterse: "LL::ParserError: Unexpected T_STRING_SQUOTE, expected element closing tag instead on line 3280" welp, so much for trying to use Oga
[12:53:07] fabrice31: has joined #ruby
[12:54:04] [k-: is it that Ook! type of language?
[12:54:23] sfarley: has joined #ruby
[12:54:34] [k-: im pretty suspicious of those 3 letter languages...
[12:54:46] [k-: oh look, yorickpeterse, you're on the 4th result
[12:55:06] [k-: the search term "oga"
[12:55:41] yorickpeterse: I get golf courses
[12:55:50] yorickpeterse: "Oregon Golf Association" and stuff like that
[12:55:51] acrux09: has joined #ruby
[12:55:59] yorickpeterse: well unless I search for "ruby oga"
[12:56:09] acrux09: has left #ruby: ()
[12:56:15] [k-: i think i search for ruby fairly often
[12:56:23] [k-: google probably knows what i want
[12:56:38] symm-: has joined #ruby
[12:57:43] xrlabs: has joined #ruby
[12:59:05] millerti: has joined #ruby
[12:59:18] [k-: yorickpeterse: there is errata on the readme
[12:59:47] bf4: has joined #ruby
[13:00:24] yorickpeterse: [k-: https://github.com/YorickPeterse/oga/issues/new
[13:01:39] sbhatore: has joined #ruby
[13:04:26] charliesome: has joined #ruby
[13:04:33] dorei: has joined #ruby
[13:04:40] kfpratt: has joined #ruby
[13:05:05] [k-: https://github.com/YorickPeterse/oga/issues/120
[13:05:41] yorickpeterse: Ah thanks, I'll fix it later today
[13:06:19] sfarley: has joined #ruby
[13:06:19] fabrice31_: has joined #ruby
[13:07:54] fabrice31_: has joined #ruby
[13:08:12] albatross1: has joined #ruby
[13:08:29] mike___1234: has joined #ruby
[13:08:51] shellie_: has joined #ruby
[13:08:52] consmans: has joined #ruby
[13:09:24] mbeasley: has joined #ruby
[13:09:29] mister_solo: has joined #ruby
[13:09:46] mbeasley: has left #ruby: ()
[13:10:12] p1k: has joined #ruby
[13:10:26] consmans: Heya all, I am making a study on the governance of ruby and it would be nice if there would be someone to fill the gaps of what I have found out
[13:10:42] senayar: has joined #ruby
[13:10:42] senayar: has joined #ruby
[13:10:50] nfk: has joined #ruby
[13:11:12] Zai00: has joined #ruby
[13:11:39] shellie_: has left #ruby: ()
[13:11:42] malconis: has joined #ruby
[13:11:50] bruno-: has joined #ruby
[13:11:57] Igorshp: has joined #ruby
[13:12:38] malconis: has joined #ruby
[13:13:13] [k-: I <3 the cmdline
[13:13:27] [k-: it allows me to do things mac gui doesnt allow me to
[13:14:34] rbennacer: has joined #ruby
[13:14:45] eGGsha: has joined #ruby
[13:15:19] sinkensabe: has joined #ruby
[13:16:22] dblessing: has joined #ruby
[13:16:32] jlast: has joined #ruby
[13:17:06] Scroff: has joined #ruby
[13:17:27] droidburgundy: has joined #ruby
[13:17:36] jimms: has joined #ruby
[13:17:42] j4cknewt: has joined #ruby
[13:18:43] CloCkWeRX: has left #ruby: ()
[13:19:55] Akagi201: has joined #ruby
[13:21:52] [k-: yorickpeterse: did you mean `Corrected "explici" typo`?
[13:21:59] blackmes1: has joined #ruby
[13:22:07] Akagi201_: has joined #ruby
[13:22:17] [k-: huehuehue
[13:22:36] Rubie: has joined #ruby
[13:23:05] consmans: Is it correctly understood that anyone can join the Ruby core and that in order for my branch to be merged, I have to "just" create a ticket?
[13:23:22] nhhagen: has joined #ruby
[13:23:51] Scroff: has joined #ruby
[13:23:51] intyl: has joined #ruby
[13:24:06] d10n-work: has joined #ruby
[13:24:13] coderhs: has joined #ruby
[13:24:45] IanV0rn2_: has joined #ruby
[13:24:58] [k-: consmans: did you see this yet? https://www.ruby-lang.org/en/community/ruby-core/
[13:25:17] dyoung_: has joined #ruby
[13:25:18] albatross1: has left #ruby: ()
[13:25:19] jerius: has joined #ruby
[13:26:40] IanV0rn2_: has joined #ruby
[13:27:03] consmans: Yes thanks. It is still not unclear to me how changes are approved. More how one bacomes commiter, contributor, and maintainer?
[13:28:19] IanV0rn2341: has joined #ruby
[13:28:40] [k-: i'm not very clear on it too
[13:28:52] [k-: if you don't get any answers here, you can try the mailing list
[13:28:58] sevenseacat: its got steps for doing it, right there
[13:29:05] sevenseacat: for putting a patch in
[13:29:13] whippythellama: has joined #ruby
[13:29:17] consmans: I guess contributor is anyone who has changes approved
[13:29:17] consmans: https://bugs.ruby-lang.org/projects/ruby/wiki/Contributors
[13:29:25] yorickpeterse: that wasn't even intended
[13:29:26] hotpancakes: has joined #ruby
[13:29:51] mister_solo: has joined #ruby
[13:30:01] [k-: so you made a typo when correcting a typo XD
[13:30:03] IanV0rn2341: has joined #ruby
[13:30:15] yorickpeterse: Yeah lets not even go there
[13:30:23] yorickpeterse: it was totally planned
[13:30:42] thiagovsk: has joined #ruby
[13:30:49] ahmetkapikiran: has joined #ruby
[13:30:52] shevy: consmans no idea how to become part of the inner circle; if you know the japanese language and look like a ninja then the chances are surely great
[13:31:16] sevenseacat: contribute a lot, and you'll probably be given commit access.
[13:31:26] consmans: lol I am far from then :(
[13:31:35] IanV0rn2341: has joined #ruby
[13:31:47] commondream: has joined #ruby
[13:31:47] bougyman: good luck learning japanese.
[13:31:48] sevenseacat: if you're asking these questions, yeah.
[13:31:51] alotofnoodles: has joined #ruby
[13:31:59] bougyman: when I started learning ruby there was almost no english documentation.
[13:32:22] bougyman: manveru: did you ever learn to read/write it?
[13:32:56] manveru: ??????????????????
[13:33:01] yorickpeterse: on nice, this one website has <a .... onmouseover=lump-of-javascript-without-quotes>
[13:33:06] bougyman: I assume that's a yes :)
[13:33:27] shevy: yorickpeterse would you like HTML more without javascript?
[13:33:36] yorickpeterse: the world would be much easier
[13:33:50] yorickpeterse: Well, HTML without inline Javascript
[13:34:52] NiVanc: has joined #ruby
[13:34:58] djstorm: has joined #ruby
[13:35:20] [k-: if you write a patch, you are a contributor
[13:35:41] [k-: if you maintain/improve the stdlib, you are a commiter
[13:36:10] yorickpeterse: maintaining stdlib requires you to deal with the mess that is stdlib
[13:36:24] [k-: huehuehue
[13:36:42] jhass: can I adopt some stdlib maintenance by removing it?
[13:36:57] [k-: you can look through the page you linked and you can see trends
[13:37:15] yorickpeterse: jhass: no code is the best code
[13:37:19] consmans: can anyone maintain the stdlib or do you have to be given "access"
[13:37:23] commondream: has left #ruby: ()
[13:37:25] [k-: jhass: then you are not maintaining
[13:37:30] yorickpeterse: hm, that doesn't sound right
[13:37:33] yorickpeterse: The best code is no code
[13:37:39] yorickpeterse: consmans: you can request it
[13:37:43] [k-: once you remove it, you dont have anything to maintain
[13:38:07] [k-: the best code is code that is not there
[13:38:21] [k-: so you dont have any chance to do anything wrong!
[13:38:56] consmans: so hierarchically from bottom to top it would be: contributor - commiter - maintainer
[13:39:12] [k-: i think commiter & maintainers are the same
[13:39:30] consmans: is there anything more than that?
[13:39:38] [k-: you should look through the list again for more trends :S
[13:39:50] yorickpeterse: there's also "deckhand" and "landlubber"
[13:39:50] [k-: there is also a small team that leads Ruby
[13:40:08] yorickpeterse: But in all seriousness, usually it's just "maintainers" and "contributors"
[13:40:45] Scrofff: has joined #ruby
[13:41:03] consmans: yorickpeterse what are those? also roles?
[13:41:21] atomical: has joined #ruby
[13:41:35] shevy: well community maintenance would be nice
[13:42:01] shevy: if take-over of a project would actually work
[13:42:12] shevy: most of _why projects have found a new maintainer, no idea how active these are
[13:42:39] consmans: [k- any more info on the small team that leads Ruby? What are they called e.g.
[13:42:46] maloik: I'm not up to speed on his projects, I just know shoes is still pretty popular
[13:42:57] maloik: we always get a couple proposals for talks about Shoes every year
[13:42:58] yorickpeterse: They're usually referred to as "The Ruby core team"
[13:43:00] atom3: has joined #ruby
[13:43:07] [k-: well, there are 3 people hired by heroku to work on ruby
[13:43:10] yorickpeterse: maloik: ask if they instead can do talks about sneakers
[13:43:28] yorickpeterse: I would be the worst conference organization because I'd make bad puns like that all the time
[13:43:30] hinbody: has joined #ruby
[13:43:32] [k-: shoes (havent tried 4 yet) is terrible
[13:43:32] maloik: http://github.com/openminds/sneakers
[13:43:39] maloik: spoiler: nothing like shoes
[13:43:40] yorickpeterse: it actually exists?
[13:44:00] maloik: I doubt my colleagues knew about sneakers when they created that
[13:44:13] yorickpeterse: You mean Shoes?
[13:44:20] maloik: for some reason, we used to name everything after a piece of clothing :/
[13:44:31] consmans: I thought the Ruby core was also contributers and maintainers - is that wrong?
[13:44:37] maloik: gl figuring out which is the FAQ app, which is the control panel etc when everything is called "hat", "underpants", "sock", "sneakers
[13:44:51] RegulationD: has joined #ruby
[13:45:25] Guest85: has joined #ruby
[13:45:38] maloik: [k-: not all of them are actual employees though, right?
[13:45:39] Guest85: has left #ruby: ()
[13:45:42] [k-: the Ruby core team is different, they are like the board of directors
[13:45:46] [k-: no, only 3
[13:45:55] maloik: I meant of those 3
[13:46:00] [k-: https://blog.heroku.com/archives/2011/7/12/matz_joins_heroku
[13:46:07] maloik: e.g. I think zakk isn't? could be wrong
[13:46:10] maloik: not that it matters :-)
[13:46:16] yorickpeterse: [k-: we use weird train related names and Japanese mythology
[13:46:20] [k-: i meant those 3 are hired by heroku, but there are others
[13:46:22] CloCkWeRX: has joined #ruby
[13:46:22] yorickpeterse: and a few boring ones such as "review-collector"
[13:46:47] Scroff: has joined #ruby
[13:47:16] shevy: consmans they sometimes maintain things or contribute new stuff, so yeah that is true. but I guess it depends on how much they want to maintain things in the first place; usually bug-fixes and such are quick, but other than that, many things don't change for quite a while
[13:47:41] shevy: consmans have a look at who made the most recent changes to the main ruby:
[13:47:43] shevy: https://github.com/ruby/ruby/blob/trunk/ChangeLog
[13:49:06] yorickpeterse: https://github.com/ruby/ruby/graphs/contributors?from=2013-11-09&to=2015-06-29&type=c probably easier
[13:49:11] [k-: http://www.rubyinside.com/rubys-creator-matz-joins-heroku-5101.html
[13:49:47] yorickpeterse: although I think that only includes those with a Github account
[13:50:13] Scroff: has joined #ruby
[13:50:43] shevy: [k- the matz logo is cool http://www.rubyinside.com/wp-content/uploads/2011/07/matz-card.jpg
[13:51:12] NeverDie: has joined #ruby
[13:51:17] alex88: has joined #ruby
[13:51:23] consmans: Thanks for the info you guys this really helps.
[13:52:04] emilkarl: has joined #ruby
[13:52:30] consmans: Is something in the following lines then true: one becomes contributor by contribution, commiter by more contribution, and core?
[13:53:23] yorickpeterse: I wouldn't distinguish between contributor and commiter
[13:53:33] Scrofff: has joined #ruby
[13:53:35] [k-: i would
[13:53:40] sevenseacat: this seems pretty standard, no?
[13:53:50] yorickpeterse: You contribute by comitting something, either code, documentation, support, etc
[13:53:53] [k-: i think the core team is made up of a small group of people
[13:54:01] [k-: they have to meet up to discuss about ruby
[13:54:07] yorickpeterse: Those are maintainers
[13:54:13] [k-: [citation in one of matz conference videos)
[13:55:19] [k-: you contribute something by opening an issue, and someone with commit access commits it
[13:55:35] consmans: Interesting. The groups are established according to level of contribution then?
[13:55:47] [k-: there are only 2 groups
[13:55:53] [k-: the core is special
[13:56:22] [k-: i think we need the mailing list's expertise here
[13:56:53] consmans: the two groups you refer to is the contributor & commiter?
[13:56:54] shevy: consmans core team is like matz right hand
[13:57:04] Leef_: has joined #ruby
[13:57:19] consmans: shevy so the core team is "hand picked"?
[13:57:31] centrx: has joined #ruby
[13:57:44] shevy: they did not pick me because they know I do not know C :(
[13:57:59] consmans: sorry for that :(
[13:58:27] consmans: is there any information on how many or who is the core team?
[13:59:05] msnyon: has joined #ruby
[13:59:26] [k-: hurr hurr hurr, shevy in core
[13:59:35] [k-: you still dont know some things yet!
[14:00:00] centrx: shevy, PHP core will take you
[14:00:10] [k-: eww php
[14:00:42] ddv: fake it till you make it
[14:01:14] acke: has joined #ruby
[14:01:27] startupality: has joined #ruby
[14:01:51] yorickpeterse: They've been trying to do that for 20 years
[14:01:57] yorickpeterse: results are....mixed
[14:02:01] davedev24_: has joined #ruby
[14:02:11] silas: has joined #ruby
[14:02:31] axl__: has joined #ruby
[14:03:16] aredridel: has joined #ruby
[14:03:19] Xeago: has joined #ruby
[14:03:42] ItSANgo: has joined #ruby
[14:03:58] aryaching: has joined #ruby
[14:04:01] consmans: [k- shevy do you mind if I acklowledge you in the study? You can get to review the text written before published
[14:04:38] [k-: you dont have to, dont forget yorickpeterse :D
[14:04:48] [k-: and sevenseacat
[14:05:03] consmans: oops also yorikpeterse and sevenseacat
[14:06:07] [k-: you should really get an answer from the mailing list
[14:06:14] [k-: i'm sure they know more than we do
[14:06:24] lavros: has joined #ruby
[14:06:51] consmans: what is the mailing list? (sory for the lazy question)
[14:06:52] roshanavand: has joined #ruby
[14:07:57] hotpancakes: has joined #ruby
[14:07:59] consmans: btw if you want to review the paper when ready please pm a mail address
[14:08:00] ddv: consmans: come one you can google this
[14:08:06] rjno: has joined #ruby
[14:08:09] yorickpeterse: You can attribute me if you want, I don't mind
[14:08:10] consmans: yes did that already sory
[14:08:19] [k-: the mailing list consists of people who are very active in ruby matters
[14:08:30] [k-: https://www.ruby-lang.org/en/community/mailing-lists/
[14:09:40] tubuliferous_: has joined #ruby
[14:09:53] chouhoulis: has joined #ruby
[14:10:47] ItSANgo: has joined #ruby
[14:11:03] chouhoulis: has joined #ruby
[14:12:22] gagrio_: has joined #ruby
[14:12:49] ItSANgo__: has joined #ruby
[14:12:58] kobain: has joined #ruby
[14:14:05] sandelius: has joined #ruby
[14:14:21] ashleyis: has joined #ruby
[14:14:38] User458764: has joined #ruby
[14:14:55] nveselinov: has joined #ruby
[14:16:06] jhooker: has joined #ruby
[14:16:31] eggoez: has joined #ruby
[14:16:32] jhooker: has joined #ruby
[14:16:53] RegulationD: has joined #ruby
[14:18:29] Narzew: has joined #ruby
[14:18:35] Ox0dea: has left #ruby: ("WeeChat 1.3-dev")
[14:18:56] ahmetkapikiran: has joined #ruby
[14:21:05] ixti: has joined #ruby
[14:21:10] atomical: has joined #ruby
[14:21:15] atom3: has joined #ruby
[14:21:23] CHVNX: has joined #ruby
[14:22:33] blackmes1: has joined #ruby
[14:22:40] mister_solo: has joined #ruby
[14:23:16] werelivinginthef: has joined #ruby
[14:25:45] kies: has joined #ruby
[14:26:24] atomical: has joined #ruby
[14:26:34] davorb_: has joined #ruby
[14:27:31] atomical: has joined #ruby
[14:28:54] Muhannad: has joined #ruby
[14:29:33] jpfuentes2: has joined #ruby
[14:30:12] wildroman2: has joined #ruby
[14:30:21] mister_solo: has joined #ruby
[14:30:23] consmans: I have one more question....
[14:30:28] DaniG2k: has joined #ruby
[14:30:53] consmans: I can see in the mailing lists that I can joint the ruby core mailing list myself. Does that then give me the right to vote for changes and so on?
[14:31:55] centrx: Since when are changes decided by vote?
[14:31:59] [k-: i think you would have your opinion heard, and be considered, which somewhats, but not really, counts as a vote
[14:32:04] renderful: has joined #ruby
[14:32:14] [k-: chages arent decided by votes
[14:32:22] Scroff: has joined #ruby
[14:32:24] [k-: it might wreck havock
[14:32:29] [k-: changes*
[14:33:56] DLSteve: has joined #ruby
[14:34:03] consmans: hmm i guess you are right there are not votes i can read this:
[14:34:06] consmans: Create a ticket in the issue tracker or email your patch to the Ruby-Core mailing list with a ChangeLog entry describing the patch.
[14:34:06] consmans: If there are no issues raised about the patch, committers will be given the approval to apply it.
[14:34:35] shevy: well as long as you don't have a patch
[14:34:43] shevy: this is a fairly meta discussion :)
[14:34:56] shevy: "if I'd have a fast car, I could travel to South Dakota by myself!"
[14:35:03] [k-: #ruby on ruby!
[14:35:09] ahmetkapikiran: has joined #ruby
[14:35:12] shevy: #everyone on [k-!
[14:35:24] adaedra: shevy: even if I had a car, I couldn't :(
[14:35:42] JohnBat26: has joined #ruby
[14:36:16] consmans: shevy nope me neither, unless the car dirves over sea
[14:36:50] prestorium: has joined #ruby
[14:37:45] enebo: has joined #ruby
[14:38:13] Scrofff: has joined #ruby
[14:38:45] alol: has joined #ruby
[14:39:10] chinmay_dd: has joined #ruby
[14:40:50] freerobby: has joined #ruby
[14:41:08] lavros: has joined #ruby
[14:41:09] depesz: has joined #ruby
[14:41:16] depesz: hi. how can I resolve hostname to ip?
[14:41:40] jhass: depesz: stdlib has the resolv library
[14:41:41] depesz: I seem to be getting some data from Socket.gethostbyname, but the fourth field doesn't look like ip
[14:41:56] depesz: jhass: thanks, checking
[14:43:30] njs126: has joined #ruby
[14:44:04] mister_solo: has joined #ruby
[14:45:04] s2013: has joined #ruby
[14:46:33] _blizzy_: has joined #ruby
[14:51:46] casadei: has joined #ruby
[14:51:54] blackmes1: has joined #ruby
[14:53:24] atom3: has joined #ruby
[14:53:34] erts: has joined #ruby
[14:53:36] mary5030: has joined #ruby
[14:54:45] mary5030: has joined #ruby
[14:55:20] senayar: has joined #ruby
[14:57:34] rippa: has joined #ruby
[14:58:47] symbole: has joined #ruby
[14:59:17] rindolf: has joined #ruby
[14:59:35] bruno-: has joined #ruby
[14:59:53] n008f4g_: has joined #ruby
[14:59:54] snophey: has joined #ruby
[14:59:56] The_Phoenix: has joined #ruby
[15:00:11] jlast: has joined #ruby
[15:00:19] gambl0re: has joined #ruby
[15:01:05] Scroff: has joined #ruby
[15:02:11] ashleyis_: has joined #ruby
[15:06:18] DroidBur_: has joined #ruby
[15:07:12] zotherstupidguy: has joined #ruby
[15:09:51] mike___1234: has joined #ruby
[15:09:55] renderful: has joined #ruby
[15:10:00] Bertg: has joined #ruby
[15:10:11] depesz: has left #ruby: ("WeeChat 1.2-dev")
[15:11:32] werelivinginthef: has joined #ruby
[15:12:29] bnobu: has joined #ruby
[15:13:00] jpfuentes2: has joined #ruby
[15:14:35] [H]unt3r: has joined #ruby
[15:15:05] umgrosscol: has joined #ruby
[15:15:39] ashleyis: has joined #ruby
[15:20:25] jamesaxl: has joined #ruby
[15:21:35] c0ncealed: has joined #ruby
[15:21:44] havenwood: has joined #ruby
[15:22:30] rcvalle: has joined #ruby
[15:23:26] shevy: are you people all dutifully writing more ruby code right now
[15:23:38] adaedra: I wish I were
[15:23:39] havenwood: shevy: Boop. Bop. Beep.
[15:24:17] [k-: I am a bot bleep bloop. I do not know anything about ruby
[15:24:19] ruboto: I don't know anything about ruby
[15:24:38] Cache_Money: has joined #ruby
[15:24:55] acke: has joined #ruby
[15:25:03] lavros: has joined #ruby
[15:25:52] bf4: has joined #ruby
[15:26:08] iooner: has joined #ruby
[15:26:26] Bertg: has joined #ruby
[15:27:36] peter_paule: has joined #ruby
[15:27:49] arturmartins: has joined #ruby
[15:27:55] teotwaki: has joined #ruby
[15:29:30] jlast: has joined #ruby
[15:29:52] jlast: has joined #ruby
[15:31:54] senayar: has joined #ruby
[15:31:57] chouhoul_: has joined #ruby
[15:32:09] startupality: has joined #ruby
[15:32:25] sandstrom: has joined #ruby
[15:32:39] iooner: has joined #ruby
[15:33:02] roryhughes: has joined #ruby
[15:33:51] darix: has joined #ruby
[15:33:59] Soda: has joined #ruby
[15:34:46] The_Phoenix1: has joined #ruby
[15:35:30] consmans: I am off you guys
[15:35:44] consmans: Thanks again for the info and discussion
[15:36:07] consmans: I will add somthing in the following lines in the paper
[15:36:13] consmans: "The authors would like to the thank the members of the Ruby community and more specifically the members [k-, shevy, sevenseacat, and yorickpeterse of the Ruby IRC channel for their insightful comments.
[15:36:32] consmans: if that is something that you disagree now is the time to speak
[15:36:38] consmans: or silence forever
[15:36:57] shevy: I do not feel worthy to appear in the same sentence with the great sevenseacat cat
[15:37:22] blackmes1: has joined #ruby
[15:37:39] consmans: do you want me to remove you from the text?
[15:37:49] [k-: me too again
[15:38:01] consmans: for me this is more an acknowledgement of your time and effort
[15:38:08] consmans: nothing more nothing less
[15:38:45] yorickpeterse: consmans: fine by me
[15:38:49] ertse: has joined #ruby
[15:39:01] shevy: consmans yeah I feel not worthy to appear with the others, I'd prefer if you cite others than me :D
[15:39:04] [k-: yorickpeterse likes having his name painted :D
[15:39:18] shevy: that's good
[15:39:23] consmans: * I am probably listing the names alphabetically
[15:39:25] shevy: he had to do XML today so he needs time off
[15:39:50] consmans: ok so shevy, i remove you from the text right?
[15:39:59] consmans: others stay
[15:40:34] louism2: has joined #ruby
[15:41:35] Yiota: has joined #ruby
[15:41:52] consmans: shevy pls confirm
[15:42:05] louism2: Hi, people. Someone here experient in Rspec?
[15:42:16] [k-: ?anyone
[15:42:16] ruboto: Just ask your question, if anyone has or can, they will respond.
[15:43:16] lapide_viridi: has joined #ruby
[15:43:39] Bertg: has joined #ruby
[15:43:42] yorickpeterse: I do XML every day
[15:43:59] [k-: oh, you poor thing
[15:44:11] [k-: do you do xslt too?
[15:44:37] eGGsha: has joined #ruby
[15:45:07] yorickpeterse: I'm not touching that
[15:45:36] shevy: consmans yeah
[15:46:19] consmans: shevy copy that :)
[15:47:25] consmans: Cheers and keep up the good work!
[15:48:24] tubuliferous_: has joined #ruby
[15:49:15] startupality: has joined #ruby
[15:49:41] bking39116: has joined #ruby
[15:49:50] bking39116: has left #ruby: ()
[15:50:03] sarkyniin: has joined #ruby
[15:50:12] chinmay_dd: has joined #ruby
[15:50:17] ivanskie: has joined #ruby
[15:50:27] Scrofff: has joined #ruby
[15:50:28] snockerton: has joined #ruby
[15:51:05] ivanskie: uhm.. my brain is drawing a blank here.. whats that ruby server that ppl use with plain ruby? S....
[15:51:17] ivanskie: sha... something..?
[15:51:21] havenwood: ivanskie: WEBrick?
[15:51:35] shevy: ricky rich!
[15:51:39] diegoviola: has joined #ruby
[15:51:45] ivanskie: no not the rails stuff.. but if i want a simple html page with a single ruby file pretty much
[15:51:49] diegoviola: has joined #ruby
[15:51:59] [k-: webrick
[15:52:02] ivanskie: its at tip of my toung almost but i can't remember lol. when i don't need it i see it everywhere
[15:52:04] havenwood: ivanskie: WEBrick isn't Rails stuff. It ships with Ruby.
[15:52:18] [k-: Sinatra???
[15:52:33] ivanskie: sinatra yess
[15:52:54] jlast: has joined #ruby
[15:53:02] jhass: ivanskie: don't call it "ruby server" though, that's wrong
[15:53:12] jhass: it's a webframework
[15:53:20] pullphinger: has joined #ruby
[15:53:41] luckyno7: has joined #ruby
[15:53:49] ivanskie: oh.. oops didn't mean to be ignorant there.... will have to go read more about it then
[15:54:13] jhass: not ignorant, just confusing ;P
[15:54:17] Rubie: has joined #ruby
[15:54:20] ivanskie: k maybe sintra is not what i need
[15:54:33] havenwood: ivanskie: You could serve your Sinatra app up with WEBrick. Sinatra like Rails is a Rack adapter. WEBrick is one of the Rack webservers that you could serve your Sinatra or Rails app up with, but folk typically use a gem like Puma, Rainbows!, Unicorn, Thin, etc instead of WEBrick.
[15:54:35] bruno-: has joined #ruby
[15:54:39] baweaver: has joined #ruby
[15:54:42] jlast_: has joined #ruby
[15:54:45] p1k: has joined #ruby
[15:55:00] shevy: ohhh he meant sinatra
[15:55:02] havenwood: ivanskie: Take a look at the Sinatra docs and see if you're on the right track.
[15:55:12] shevy: ivanskie there is also padrino
[15:55:24] [k-: WEBrick is generally avoided as it is only single threaded
[15:55:28] ivanskie: ah i see.. well what i need actually is something that would run locally. read local csv / exel file (in same directory) and output something in a formatted way that can be printed.
[15:55:35] ivanskie: will have to run on windows too.
[15:55:46] ivanskie: right now i just have a console app that i deployed to customer's machine..
[15:56:05] jhass: does it need to refresh on each request?
[15:56:25] ivanskie: but they need to be able to print stuff. so my options right now is to continue to try to get it to do an html file.. like with Opal, try to serve it, or output a pdf.
[15:56:34] ivanskie: hmm maybe.. maybe not
[15:56:53] jhass: well, vague requirements, then no recommendations
[15:56:57] ivanskie: it just reads csv file, and collects totals for product lables printed for the day..
[15:57:25] ivanskie: https://gist.github.com/i5okie/227f313ce78ea589dc74
[15:57:54] ivanskie: old code.. have the updated one with your last suggestion by the way
[15:58:55] ivanskie: https://gist.github.com/i5okie/227f313ce78ea589dc74
[15:59:04] Indian: has joined #ruby
[15:59:08] [k-: you should use a table library...
[15:59:37] ivanskie: so yah. now im thinking to either output to plain text, excel file, pdf, or my original thought was to have this work from html file somehow.. or to serve it locally anyway
[15:59:43] ivanskie: oh? haven't thought of that
[16:00:23] chouhoulis: has joined #ruby
[16:00:30] [k-: it will let you focus less on formatting and help you concentrate on your code
[16:00:45] ivanskie: trying to find documentation for table...
[16:01:22] [k-: this perhaps? https://rubygems.org/gems/terminal-table/versions/1.4.5
[16:01:49] [k-: we have a report a few days ago that there is some issues with the gemspec tho
[16:01:57] [k-: so you have to do a bit of hacking
[16:02:15] ivanskie: yeah and then i have to ship the gem with the app too... rightnow using traveling ruby..
[16:02:51] [k-: ah, they updated the gem file
[16:03:16] [k-: no issue with it then
[16:04:28] rickmasta: has joined #ruby
[16:05:01] hotpancakes: has joined #ruby
[16:05:19] ivanskie: if it was up to me.. i think it'd just do a quick rails app to collect all the data, and present it nicely.. but then customer would have to upload each csv file so its like meh..
[16:05:36] ivanskie: or do it in ember/angular on single html page.. except i suck at JS
[16:05:44] DynamicMetaFlow: has joined #ruby
[16:05:54] ivanskie: aand I tried using Opal.. but seems like it doesn't let you access local files?
[16:07:57] Deele: has joined #ruby
[16:09:31] tacit7: has joined #ruby
[16:10:14] railsraider: has joined #ruby
[16:11:02] chinmay_dd: has joined #ruby
[16:11:08] ddarkpassenger: has joined #ruby
[16:11:22] Bertg: has joined #ruby
[16:11:57] dfockler: has joined #ruby
[16:12:26] ringarin: has joined #ruby
[16:12:29] hotpancakes: has joined #ruby
[16:12:35] Eiam: has joined #ruby
[16:13:54] hsps_: has joined #ruby
[16:14:42] bronson: has joined #ruby
[16:14:49] zendrix: has joined #ruby
[16:15:13] allomov: has joined #ruby
[16:15:20] allomov: has joined #ruby
[16:17:16] hotpancakes: has joined #ruby
[16:19:48] spider-mario: has joined #ruby
[16:20:05] allomov: has joined #ruby
[16:20:20] Alayde: has joined #ruby
[16:20:44] izzol: Anyone is using Route53?
[16:20:53] apeiros: ?anyone izzol
[16:20:54] ruboto: izzol, Just ask your question, if anyone has or can, they will respond.
[16:21:01] Senjai: Morning Ruby
[16:21:09] izzol: I'm looking some gem to manage it from the console. I found route53 gem, but now sure if it's ok yet ;-)
[16:21:38] apeiros: moin Senjai
[16:21:48] mister_solo: has joined #ruby
[16:22:11] hahuang65: has joined #ruby
[16:22:15] [k-: apeiros???
[16:22:16] s2013: has joined #ruby
[16:23:04] mdarby: has joined #ruby
[16:23:08] [k-: hello ??????
[16:23:53] yardenbar: has joined #ruby
[16:24:09] kobain: has joined #ruby
[16:24:20] mdarby: has joined #ruby
[16:25:00] sfarley: has joined #ruby
[16:25:33] benlieb_: has joined #ruby
[16:25:50] valhallasw: has joined #ruby
[16:26:01] jlast: has joined #ruby
[16:26:40] ldnunes: has joined #ruby
[16:26:58] Agoldfish: has joined #ruby
[16:27:26] shevy: izzol don't think many people know that gem
[16:28:26] Rollabunna: has joined #ruby
[16:29:28] Channel6: has joined #ruby
[16:29:48] tubuliferous_: has joined #ruby
[16:30:43] Xeago: has joined #ruby
[16:30:50] poguez_: has joined #ruby
[16:31:08] gambl0re: has joined #ruby
[16:31:27] blackmes1: has joined #ruby
[16:34:41] alex88: has joined #ruby
[16:36:10] fantazo: has joined #ruby
[16:39:15] adaedra: how would you do to put a timeout around a job?
[16:39:18] shinnya: has joined #ruby
[16:40:06] adaedra: Derp, there's a timeout module
[16:42:40] jhass: adaedra: it would be much much much better for the job to check for the timeout though and quit
[16:43:18] adaedra: I'll consider that
[16:43:46] [k-: many people have expressed dissatisfaction with timeout
[16:43:46] [k-: especially with matters to threading
[16:44:27] memph1s: has joined #ruby
[16:45:08] pengin: has joined #ruby
[16:45:50] idafyaid: has joined #ruby
[16:47:05] sfarley: has joined #ruby
[16:47:26] gkra_: has joined #ruby
[16:48:07] Muhannad: has joined #ruby
[16:48:53] ddarkpassenger: has joined #ruby
[16:49:05] Indian: has joined #ruby
[16:50:12] dented42: has joined #ruby
[16:50:31] rehat: has joined #ruby
[16:55:30] framling: has joined #ruby
[16:57:20] SCHAAP137: has joined #ruby
[16:57:25] GnuYawk: has joined #ruby
[16:58:15] gamename: has joined #ruby
[16:58:47] jlast: has joined #ruby
[16:58:48] Igorshp: has joined #ruby
[16:58:51] zendrix: has joined #ruby
[16:59:02] peter_paule: has joined #ruby
[17:03:52] momomomomo: has joined #ruby
[17:05:15] vivekananda: has joined #ruby
[17:05:33] MatthewsFace: has joined #ruby
[17:06:31] Diabolik: how can i add muliple options to a search form using simple forms
[17:06:36] Diabolik: for example to search the spotify API
[17:06:49] Diabolik: I want to offer searching for albums, bio, songs, playlists
[17:07:00] Diabolik: from a dropdown bit on the form
[17:07:05] RazorX: has joined #ruby
[17:07:37] zendrix: has joined #ruby
[17:07:52] fabrice31: has joined #ruby
[17:08:54] ivanskie: so I'm trying to write to CSV file.. but i'm getting a weird error that makes no sense ot me
[17:08:56] ivanskie: ACTION https://gist.github.com/i5okie/6b67afbe37fdb917fd05
[17:09:54] ivanskie: i know i put CSV.open after i modify counts hash.. but it doesn't matter where I put it. still gives me this error
[17:10:12] blaines: has joined #ruby
[17:10:52] krz: has joined #ruby
[17:11:18] ellisTAA: has joined #ruby
[17:11:31] ellisTAA: what is the ruby off topic channel?
[17:12:08] blaines_: has joined #ruby
[17:12:16] j4cknewt: has joined #ruby
[17:12:19] MatthewsFace: has joined #ruby
[17:12:34] havenwood: ?ot EllisTAA
[17:12:34] ruboto: EllisTAA, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[17:13:37] Diabolik: can anyone help with the simple forms problem?
[17:14:12] ivanskie: nevermind looks like i got it
[17:16:17] centrx: Diabolik, Is that not a drop-down list (DDL) ?
[17:16:34] Paradox: has joined #ruby
[17:16:48] nfk: has joined #ruby
[17:17:16] Diabolik: centrx kind of
[17:17:19] Diabolik: you know the search bar on firefox
[17:17:32] Diabolik: how you can select which search engine you want to use
[17:19:57] Paradox: has joined #ruby
[17:20:02] peterhu: has joined #ruby
[17:20:15] shadoi: has joined #ruby
[17:21:52] bronson: has joined #ruby
[17:22:15] jlast: has joined #ruby
[17:22:44] wallerdev: has joined #ruby
[17:23:51] blackmes1: has joined #ruby
[17:24:15] momomomomo_: has joined #ruby
[17:26:58] blackmesa: has joined #ruby
[17:27:11] casadei: has joined #ruby
[17:28:41] jlast: has joined #ruby
[17:30:25] duderonomy: has joined #ruby
[17:31:56] towski_: has joined #ruby
[17:32:10] stoodfarback: has joined #ruby
[17:32:19] hahuang65: has joined #ruby
[17:33:18] hotpancakes: has joined #ruby
[17:33:47] tvw: has joined #ruby
[17:35:26] anjen: has joined #ruby
[17:35:54] IanV0rn2341: has joined #ruby
[17:36:33] dmmoody: has joined #ruby
[17:36:40] finisherr: has joined #ruby
[17:36:48] ta: has joined #ruby
[17:38:50] NeverDie: has joined #ruby
[17:38:52] Eiam: has joined #ruby
[17:39:48] jimms: has joined #ruby
[17:42:08] Narzew: has joined #ruby
[17:42:13] troulouliou_dev: has joined #ruby
[17:43:26] ellisTAA: has joined #ruby
[17:43:30] JoshGlzBrk: has joined #ruby
[17:44:51] krz: has joined #ruby
[17:45:51] ItSANgo_: has joined #ruby
[17:46:24] alex88: has joined #ruby
[17:46:44] solars: has joined #ruby
[17:46:46] lolmaus: has joined #ruby
[17:47:43] pengin: has joined #ruby
[17:49:47] ruv: has joined #ruby
[17:53:16] nofxx: has joined #ruby
[17:54:34] momomomomo_: has joined #ruby
[17:55:06] User458764: has joined #ruby
[17:55:45] User458764: has joined #ruby
[17:56:39] Indian: has joined #ruby
[17:57:53] cmisenas: has joined #ruby
[17:59:33] blackmesa: has joined #ruby
[17:59:55] baweaver: has joined #ruby
[17:59:58] loveablelobster: has joined #ruby
[18:01:18] s2013: has joined #ruby
[18:02:06] startupality: has joined #ruby
[18:02:37] Igorshp: has joined #ruby
[18:03:29] lkba: has joined #ruby
[18:04:38] baweaver: has joined #ruby
[18:04:52] shevy: is there a way to define a meta-gem? I suppose no but I wanted to ask..
[18:04:53] casadei: has joined #ruby
[18:04:58] shevy: I have like several small gems, all part of ruby-gtk
[18:05:02] shevy: same namespace too
[18:05:25] shevy: I want to keep them separate though, but also allow an install-all action. I guess I could just add a meta-gem that just will include the dependencies of the others?
[18:07:18] last_staff: has joined #ruby
[18:07:50] malconis: has joined #ruby
[18:08:57] atom3: has joined #ruby
[18:09:38] momomomomo: has joined #ruby
[18:09:53] Senjai: shevy: Yes
[18:09:59] Senjai: shevy: Rails is a meta gem
[18:10:07] Senjai: shevy: So is Spree
[18:10:10] timonv: has joined #ruby
[18:10:10] tcrypt: has joined #ruby
[18:10:37] Senjai: shevy: https://github.com/solidusio/solidus/blob/master/solidus.gemspec
[18:11:16] michael_mbp: has joined #ruby
[18:11:29] fantazo: has joined #ruby
[18:11:37] pengin: has joined #ruby
[18:11:54] Igorshp: has joined #ruby
[18:12:56] Xoro: has joined #ruby
[18:13:39] baweaver: So just to share the fun from last night
[18:14:01] baweaver: >> _=$$/$$;__=_-_;@_=_+_;$_=@_+_;$__=@_+$_;$-_=$__*$_;@__=''<<$-_*($__+$_)+@_;$___=''<<$-_*$__-$__<<$-_*($__+@_)<<@__<<@__;@___=''<<$-_*$__-$_*$_<<$-_*($__+$_)-$_<<@__<<@__;(___=->____{$.+=_;____<<($.%$-_==__ ?$___+@___:$.%$_==__ ?$___:$.%$__==__ ?@___:$.);$.<($__*@_)**@_?___[____]:____})[[]]
[18:14:02] ruboto: baweaver # => [1, 2, "Fizz", 4, "Buzz", "Fizz", 7, 8, "Fizz", "Buzz", 11, "Fizz", 13, 14, "FizzBuzz", 16, 17, "Fiz ...check link for more (https://eval.in/389416)
[18:14:30] Renich: has joined #ruby
[18:14:32] baweaver: https://gist.github.com/baweaver/88bbbc1a3e3b5dee2610
[18:14:41] Senjai: baweaver: You totally waited for me to be here :P
[18:15:02] baweaver: Guess who wrote that gem?
[18:15:13] plexing: has joined #ruby
[18:15:27] dfockler: Give that fizzbuzz to an employer
[18:15:41] baweaver: actually brilliant
[18:15:43] baweaver: and terrifying
[18:15:44] phoo1234567: has joined #ruby
[18:15:50] ivanskie: anyone using axlsx gem?
[18:16:08] ivanskie: i'm having an issue.. it's not adding text to cells.. https://gist.github.com/i5okie/7aa839926c3f16cd9620
[18:16:19] yorickpeterse: baweaver: what the fuck
[18:16:39] baweaver: I know right? :D
[18:17:13] yorickpeterse: how the fuck did you even get to that point?
[18:18:31] symm-: has joined #ruby
[18:18:38] dkphenom: has joined #ruby
[18:18:44] dfockler: that's awesome
[18:19:07] dfockler: start with 1 and work your way up
[18:19:08] yorickpeterse: I wonder how much alcohol was involved
[18:19:43] RegulationD: has joined #ruby
[18:20:02] dfockler: dividing the pid by itself to get 1 is pretty brilliant
[18:20:20] Senjai: baweaver: For some reason this is only giving me fizzbuz
[18:20:27] blaines: has joined #ruby
[18:20:33] yorickpeterse: yeah 2/10 wouldn't hire
[18:20:34] User458764: has joined #ruby
[18:20:49] yorickpeterse: The real question is, can they invert a binary tree?
[18:21:30] hotpancakes: has joined #ruby
[18:21:39] alex88: has joined #ruby
[18:21:41] baweaver: does anyone actually do that?
[18:21:49] yorickpeterse: Google apparently
[18:21:52] baweaver: I know that's the latest google joke
[18:21:54] shevy: The real question is
[18:21:56] shevy: will it blend?
[18:22:06] AlexAltea: has joined #ruby
[18:22:20] phoo1234567: has joined #ruby
[18:22:43] benanne: has joined #ruby
[18:23:00] sfarley: has joined #ruby
[18:24:49] ivanskie: k I dont understand what the f is going on...
[18:25:20] ivanskie: https://gist.github.com/i5okie/7aa839926c3f16cd9620
[18:25:27] ivanskie: it won't add any text into cells at all.
[18:25:46] ivanskie: i don't understand why. I tried overwriting cell type.. no result.
[18:26:38] User458764: has joined #ruby
[18:26:41] ivanskie: more specifically... when im adding a row to xslx file.. it builds the worksheets with correct name, adds all the cells, and styles properly..
[18:26:43] momomomomo: has joined #ruby
[18:27:05] ivanskie: and populates rows with my numbers.. but it doesnt add text like for my header, or title...
[18:27:35] ivanskie: i've included the output xlsx file, and sample csv file.
[18:27:48] jpfuentes2: has joined #ruby
[18:27:49] Muhannad: has joined #ruby
[18:29:04] Senjai: baweaver: You get that output with 2.1.6 ?
[18:29:22] Senjai: baweaver: I only get an array with a single element
[18:29:30] baweaver: and pry will not take it
[18:29:37] baweaver: remember it plays with underscores
[18:29:43] mikecmpbll: has joined #ruby
[18:29:49] shevy: b_e_a_v_e_r
[18:29:57] shevy: it makes you appear all bigger with underscores!
[18:30:23] punkerplunk: has joined #ruby
[18:31:10] Senjai: Yeah I cant get that output on 2.1.6
[18:31:26] hotpancakes: has joined #ruby
[18:32:02] l0pher: has joined #ruby
[18:32:31] ta: has joined #ruby
[18:32:35] MatthewsFace: has joined #ruby
[18:32:55] peter_paule: has joined #ruby
[18:33:40] ivanskie: well this is retarded.
[18:33:54] ivanskie: axlsx is indeed outputting text into cells.
[18:34:03] ivanskie: but Numbers app on osx doesn't read it.
[18:34:09] codecop: has joined #ruby
[18:34:12] ivanskie: excel reads it fine
[18:34:41] Senjai: baweaver: Congrats dude, that is mega impressive
[18:34:47] Scroff: has joined #ruby
[18:34:57] atom3: has joined #ruby
[18:35:00] baweaver: Ox0dea wrote it originally
[18:35:04] baweaver: just sharing the madness
[18:35:13] baweaver: and translating for the non-perl ninjas
[18:35:30] NeverDie_: has joined #ruby
[18:35:46] Scroff: has joined #ruby
[18:35:53] shevy: oh perl ninjas
[18:35:58] l0pher: has joined #ruby
[18:36:01] shevy: they are past age 50+ these days now aren't they
[18:36:17] baweaver: ACTION knows perl
[18:37:55] shevy: beavers are immortal, like cats
[18:38:05] blackmesa: has joined #ruby
[18:39:28] greenbagels: has joined #ruby
[18:39:47] zendrix: has joined #ruby
[18:40:42] Scroff: has joined #ruby
[18:41:44] multi_io: has joined #ruby
[18:42:11] sadik0x10: has joined #ruby
[18:42:28] MatthewsFace: has joined #ruby
[18:42:28] workmad3: has joined #ruby
[18:43:39] baweaver: has joined #ruby
[18:43:47] sfarley: has joined #ruby
[18:43:53] phat4life: ACTION inappropriate joke
[18:44:04] phat4life: about beavers
[18:44:59] craysiii: has joined #ruby
[18:45:28] einarj: has joined #ruby
[18:46:05] Scroff: has joined #ruby
[18:46:35] memph1s: has joined #ruby
[18:46:53] Marisa_: has joined #ruby
[18:46:54] pengin: has joined #ruby
[18:47:26] _blizzy_: has joined #ruby
[18:48:55] ellisTAA: has joined #ruby
[18:50:59] victortyau: has joined #ruby
[18:52:00] vdamewood: has joined #ruby
[18:53:49] pdoherty: has joined #ruby
[18:53:59] framling: has joined #ruby
[18:54:24] dmmoody: has joined #ruby
[18:54:38] Guest3348: hey how do you guys represent time duration in ruby?
[18:54:55] Senjai: Guest3348: wat
[18:55:26] mozzarella: usually, by a number of seconds
[18:55:40] graft: well, there is the Time class, which represents a specific time
[18:55:49] graft: i.e., a given moment
[18:55:51] NeverDie: has joined #ruby
[18:56:11] graft: i want a Time duration (e.g. how long it took to run a race)
[18:56:19] graft: but there doesn't seem to be any base class for this concept
[18:56:20] endash: has joined #ruby
[18:56:39] graft: so i was wondering what people do (with an eye to sticking this in a database column)
[18:56:50] valhallasw: has left #ruby: ()
[18:57:02] blackmesa: has joined #ruby
[18:57:02] fabrice31: has joined #ruby
[18:57:09] mozzarella: I store the number of seconds elapsed
[18:57:15] phat4life: odl = Time.now(); //some code Time.now - old or something similar
[18:57:17] mozzarella: because Time works with that
[18:57:38] mozzarella: Time.now + 30 = 30 seconds from now
[18:57:44] marr: has joined #ruby
[18:57:45] mozzarella: >> Time.now + 30
[18:57:46] ruboto: mozzarella # => 2015-06-29 18:58:16 +0000 (https://eval.in/389437)
[18:58:03] mordocai: has joined #ruby
[18:58:05] ellisTAA: has joined #ruby
[18:58:13] mozzarella: there's no duration class in the standard library AFAIK
[18:58:22] graft: yeah... guess i just need to write one
[18:59:06] Zai00: has joined #ruby
[18:59:08] mozzarella: there's probably a gem for that, but it's pointless IMO
[18:59:20] graft: well it would be nice to have some operations available, like turning seconds into days/hours/minutes/seconds
[18:59:27] miah: https://github.com/peleteiro/ruby-duration
[18:59:46] graft: probably best to just leave it an integer
[19:00:12] mozzarella: I'm not sure but I??think rails has some methods for that
[19:00:18] miah: also https://github.com/hpoydar/chronic_duration
[19:00:24] graft: i think activesupport has a duration maybe
[19:00:47] graft: well there i go
[19:00:50] eam: interval classes are very useful
[19:00:56] GitGud: has joined #ruby
[19:01:06] graft: i think postgres has an interval column type
[19:01:13] eam: it does
[19:01:29] graft: i thought about that, seemed like it might be overkill
[19:01:41] graft: i'm probably not doing complex interval operations on this
[19:01:58] graft: i just care about the magnitude, so an int seems fine
[19:02:21] langlands: has joined #ruby
[19:02:28] shortdudey123: has joined #ruby
[19:02:34] eam: interestingly, you will have off by one errors if your interval is for more than 48 hours from today
[19:02:37] nertzy: has joined #ruby
[19:02:48] bf4: has joined #ruby
[19:02:50] eam: more than 24, even
[19:02:54] Aria: \o/ Leap second!
[19:04:39] Polysics: has joined #ruby
[19:04:46] Diabolik: when i run this gem
[19:04:47] Diabolik: https://github.com/putpat/rockstar
[19:04:47] shevy: Leap Aria!
[19:04:54] Diabolik: even having add the initializer
[19:05:02] Diabolik: i get uninitialized constant
[19:05:15] Diabolik: i thought that's what initializers were for
[19:05:20] ta: has joined #ruby
[19:05:28] lkba_: has joined #ruby
[19:05:37] fmcgeough: has joined #ruby
[19:05:47] eam: Diabolik: if you actually include the text of the error someone might be able to answer your question
[19:06:03] Diabolik: <Diabolik> i get uninitialized constant
[19:06:03] eam: it will have a line number, and the actual constant involved
[19:06:21] eam: leaving out the most important part of the error isn't helpful :)
[19:06:30] Diabolik: even in pry
[19:06:33] Diabolik: [1] pry(main)> user = Rockstar::User.new('askl56')
[19:06:33] Diabolik: NameError: uninitialized constant Rockstar
[19:06:33] Diabolik: from (pry):1:in `__pry__'
[19:06:49] eam: looks like you didn't require the gem
[19:07:02] yardenbar: has joined #ruby
[19:07:21] eam: require 'rockstar'
[19:07:44] shevy: oh that is a cool gem
[19:07:48] weaksauce: just use a double
[19:08:02] Jon__: has joined #ruby
[19:08:22] weaksauce: the time class stores the value as the number of seconds from some date in history with ms as the fractional component of that number.
[19:08:28] atomical: has joined #ruby
[19:08:30] Diabolik: https://github.com/askl56/MusicDrop/blob/master/app/controllers/artists_controller.rb
[19:08:36] Diabolik: when i run this class
[19:08:58] weaksauce: graft what's if for?
[19:09:01] Diabolik: i get errors suggesting the Rockstar gem isn't instantiated
[19:09:04] NeverDie_: has joined #ruby
[19:10:44] emptyflask: has joined #ruby
[19:11:38] Diabolik: eam any ideas?
[19:11:57] kraljev11: has joined #ruby
[19:12:00] eam: what is the exact error text?
[19:12:26] Diabolik: https://gist.github.com/askl56/0897445d5028c1f4a554
[19:12:30] Diabolik: from the spec file
[19:12:32] workmad3: has joined #ruby
[19:12:45] Diabolik: https://github.com/askl56/MusicDrop/blob/master/spec/controllers/artists_controller_spec.rb
[19:14:37] zendrix: has joined #ruby
[19:14:43] MatthewsFace: has joined #ruby
[19:14:54] krz: has joined #ruby
[19:15:49] weaksauce: Diabolik http://railscasts.com/episodes/24-the-stack-trace?view=asciicast
[19:15:56] eam: Diabolik: so looking at line 6, do you understand why it's raising? Why params[:artist_name] is nil?
[19:15:59] jackjackdripper: has joined #ruby
[19:16:05] Polysics: has joined #ruby
[19:16:25] weaksauce: Diabolik if you watch that short video it will help you immensely
[19:17:57] bronson: has joined #ruby
[19:18:20] graft: weaksauce: storing processing times for patient samples... needs to be accurate to the quarter-hour probably
[19:19:01] weaksauce: graft ah yeah. sounds like an int is good enough??.
[19:20:04] zendrix: has joined #ruby
[19:20:16] jenrzzz: has joined #ruby
[19:21:21] fantazo: has joined #ruby
[19:21:50] Bertg: has joined #ruby
[19:21:56] gusrub: has joined #ruby
[19:23:19] toretore: has joined #ruby
[19:23:35] memph1s: has joined #ruby
[19:23:47] davedev24_: has joined #ruby
[19:25:52] Rollabunna: has joined #ruby
[19:26:06] _blizzy_: you know you're doing something wrong when you're scattering print statements.
[19:26:28] nobitanobi: has joined #ruby
[19:26:51] bronson: has joined #ruby
[19:27:30] punkerplunk: printing from a thread?
[19:28:37] punkerplunk: well, you're not shooting them out of a shotgun
[19:29:38] zendrix: has joined #ruby
[19:30:58] ItSANgo_: has joined #ruby
[19:31:58] hotpancakes: has joined #ruby
[19:32:40] Bertg: has joined #ruby
[19:33:43] renderful: has joined #ruby
[19:33:58] Diabolik: eam because artist_info isn't a param for rockstar?
[19:34:29] arturmartins: has joined #ruby
[19:34:33] speakingcode: has joined #ruby
[19:35:49] Diabolik: or because artists hasn't been instantiated
[19:36:01] ivanskie: how can I install 2.1.5 without rbenv or rvm?
[19:36:12] ivanskie: ruby-install doesn't list 2.1.5 for some reason
[19:37:04] eam: Diabolik: yes, likely because that param hasn't been set
[19:37:21] havenwood: ivanskie: Update ruby-install but 2.1.6 is actually out which you can get without updating: ruby-install ruby 2.1.6 --sha2 1e1362ae7427c91fa53dc9c05aee4ee200e2d7d8970a891c5bd76bee28d28be4
[19:37:57] rickmasta: has joined #ruby
[19:38:02] ivanskie: yeah im working with travelling ruby, they want 2.1.5
[19:38:12] ivanskie: *shrug* looks like its working now that i updated it. thanks
[19:38:21] havenwood: ivanskie: They ship their own binary.
[19:38:40] ivanskie: ah good point
[19:38:52] Diabolik: eam so a private artist_params method would solve it?
[19:39:12] jcromartie: has joined #ruby
[19:39:33] eam: Diabolik: params[:artist_name] is what's giving you trouble -- do you know what the params hash is?
[19:39:43] eam: Diabolik: you should probably take this question over to the ruby on rails channel
[19:39:59] yfeldblum: has joined #ruby
[19:40:06] eam: but, the parameter is nil, so the expression is nil, so #empty? doesn't work
[19:40:17] kadoppe: has joined #ruby
[19:41:03] alphaatom: has joined #ruby
[19:44:26] woodruffw: has joined #ruby
[19:45:12] Muhannad: has joined #ruby
[19:45:22] freerobby: has joined #ruby
[19:47:57] scottschecter: has joined #ruby
[19:48:03] craysiii: has joined #ruby
[19:48:17] mdarby: has joined #ruby
[19:49:03] doctorly: has joined #ruby
[19:49:33] n008f4g_: has joined #ruby
[19:49:45] scottschecter: has joined #ruby
[19:49:54] MEATCHICKEN: How come this gives true? (DateTime.now.to_i - 9.days.ago.to_i) < 1.week.ago.to_i
[19:50:18] MEATCHICKEN: I want to check if a "last_opened_at" is less than a week
[19:50:50] MEATCHICKEN: shouldn't my equation check if the difference between now and 9 days ago is less than a week?
[19:50:57] casadei_: has joined #ruby
[19:51:09] eam: meatchicken: why don't you print out each integer value
[19:51:10] vasilakisfil_: has joined #ruby
[19:51:11] graft: haha... 1.week.ago is a Time, nto a duration
[19:51:53] graft: i.e., 1.week.ago.to_i is the number of seconds betwee the epoch and 1 week ago, not the number of seconds in 1 week
[19:51:54] apeiros: meatchicken: why do you .to_i?
[19:52:01] jhass: meatchicken: 9.days.ago -> DateTime, DateTime#-(DateTime) -> Fixnum (difference in seconds). 1.week.ago -> DateTime, DateTime#to_i -> UNIX epoch timestamp
[19:52:03] codecop: has joined #ruby
[19:52:15] apeiros: ah, too many helpers.
[19:52:20] apeiros: ACTION retreats
[19:52:28] MEATCHICKEN: graft, Oh..if I do 1.week.to_i -> it should work
[19:53:09] apeiros: meatchicken: don't use to_i
[19:53:14] MEATCHICKEN: jhass, thanks fr that
[19:53:33] MEATCHICKEN: apeiros, I'm interfacing with an api that doesn't understand dates..comparisons must be made in integers
[19:53:57] apeiros: no. not worth it.
[19:54:08] MEATCHICKEN: apeiros, what do you suggest? is there a flaw in my logic?
[19:54:47] Kero: 9.days.ago < 1.week.ago
[19:54:55] apeiros: the provided information is insufficient. and I'm not willing to go down that rabbit hole. so if it works for you, enjoy :)
[19:55:07] shevy: you have his blessing meatchicken \o/
[19:55:10] shevy: time to cook you :)
[19:55:33] Rollabunna: has joined #ruby
[19:57:04] alphaatom: has joined #ruby
[19:57:10] graft: to_i seems to be necessary because - appears to expect a Numeric for DateTime
[19:57:46] baweaver: has joined #ruby
[19:57:50] apeiros: it accepts either Numeric or DateTime
[19:57:55] platzhirsch: has left #ruby: ()
[19:58:01] apeiros: and the two types do different things.
[19:58:05] apeiros: Date - Date = diff
[19:58:09] apeiros: Date - Numeric = date
[19:58:18] apeiros: or rather: Date - diff = Date
[19:58:21] jhass: graft: don't worry too much about the example, the result is constant and we can only hope it's relevant to their real problem
[19:58:23] apeiros: where diff is Numeric.
[19:58:39] wildroman2: has joined #ruby
[19:58:44] nfk: has joined #ruby
[19:58:49] AmBienCeD: has joined #ruby
[19:58:49] AmBienCeD: has joined #ruby
[19:59:17] Scroff: has joined #ruby
[20:00:13] voker57: has joined #ruby
[20:00:14] sandstrom: has joined #ruby
[20:01:03] roolo: has joined #ruby
[20:02:31] gizmore: has joined #ruby
[20:02:38] shevy: time is relative!
[20:02:58] arcanez: for this code (to_bool), why does the author check 'self == true', 'self == false' for String?
[20:03:04] arcanez: I don't know where those would ever be ==
[20:03:05] adaedra: calm down, einstein
[20:03:19] snockerton: has joined #ruby
[20:03:20] emilkarl: has joined #ruby
[20:04:24] jhass: arcanez: forgot link?
[20:05:15] kraljev11: has joined #ruby
[20:05:20] arcanez: jhass: you need the link? :)
[20:05:23] peter_paule: has joined #ruby
[20:05:23] arcanez: http://drawingablank.me/blog/ruby-boolean-typecasting.html
[20:06:17] jhass: you're right, unless String#== is overridden this is completely useless
[20:06:25] diegok: has joined #ruby
[20:06:36] arcanez: you can write 'class String; def ==; ... '?
[20:06:46] jhass: you can, it's not wise but you can
[20:06:53] jcdesimp: has joined #ruby
[20:07:23] arup_r: has joined #ruby
[20:07:43] arcanez: when have programmers erred on the side of wise?
[20:07:49] sfarley: has joined #ruby
[20:07:54] dstarh: has joined #ruby
[20:08:16] adaedra: when they wanted feedback and external contributions.
[20:08:50] arup_r: why http://ruby-doc.org/core-2.2.0/Module.html#method-i-extend_object not working for me ? https://gist.github.com/aruprakshit/0bbfcde357235d1ea932
[20:09:31] DLSteve: has joined #ruby
[20:10:00] __butch__: has joined #ruby
[20:10:17] Earthnail: has joined #ruby
[20:10:23] ixti: has joined #ruby
[20:10:32] yqt: has joined #ruby
[20:11:07] arup_r: super call has to be done first
[20:11:10] Earthnail: does anyone know a web frontend for godrb?
[20:12:14] kraljev11: has joined #ruby
[20:12:31] kraljev11: has joined #ruby
[20:12:36] ringarin: has joined #ruby
[20:12:45] shevy: adaedra are you a wise ruby programmer?
[20:12:53] arup_r: yes he is
[20:13:01] arup_r: and you shevy ?
[20:13:11] shevy: nope I am not
[20:13:20] adaedra: It would be unwise to consider myself wise, I can always be wiser.
[20:13:44] shevy: I make up for my lack of ingenuity with masses of lines of code
[20:14:24] arup_r: I am not good.. in English
[20:14:58] adaedra: English, do you speak it?
[20:15:50] highbass: has joined #ruby
[20:15:59] craysiii: wat is engels
[20:16:13] highbass: hey guys... how can i set a default ruby version for root that is different for one of my other users on a server?
[20:16:14] highbass: i am using rvm
[20:16:43] arturmartins: has joined #ruby
[20:16:44] ellisTAA: has joined #ruby
[20:16:50] havenwood: highbass: A system install of RVM in /usr/local then?
[20:17:03] hotpancakes: has joined #ruby
[20:17:07] highbass: havenwood: could you elaborate for me please?
[20:17:54] havenwood: highbass: Are you using a recommended single-user install of RVM in your user's home directory ~/.rvm/ or a system install of RVM in the /usr/local directory?
[20:18:17] Zai00: has joined #ruby
[20:18:22] dfockler: has joined #ruby
[20:18:40] havenwood: ~/.rvm/ vs /usr/local/rvm
[20:18:45] diegok: has joined #ruby
[20:18:46] highbass: looks like which reports /usr/local/rvm/bin/rvm
[20:18:59] highbass: so i have to reinstall it the other way i guess
[20:19:05] havenwood: highbass: So likely you installed RVM with sudo or as root.
[20:19:13] snapcase: has joined #ruby
[20:19:27] highbass: yes i think it was done as root
[20:19:34] highbass: so would i have to uninstall
[20:19:37] highbass: and then install it as a user?
[20:19:39] havenwood: highbass: There's a bit of explanation here regarding how RVM does it: https://rvm.io/rvm/install#installation-explained
[20:19:51] havenwood: highbass: Yeah, the recommended way is to install as non-root users.
[20:19:53] ellisTAA: has joined #ruby
[20:20:26] havenwood: highbass: There's an #rvm channel by the way if you want to ask RVM folk about best practices. :)
[20:22:11] havenwood: highbass: See the `rvmsudo` command for when you do actually need to escalate privileges without dropping your env like with `sudo`.
[20:22:14] highbass: havenwood: ok great thank you for your help
[20:22:21] havenwood: highbass: you're welcome
[20:22:50] bf4: has joined #ruby
[20:23:05] mansel: has joined #ruby
[20:24:31] uxp: has joined #ruby
[20:25:25] wallerdev: has joined #ruby
[20:25:59] atom3: has joined #ruby
[20:29:34] sfarley: has joined #ruby
[20:31:07] delianides: has joined #ruby
[20:32:57] arturmartins: has joined #ruby
[20:33:04] Rakunh0: has joined #ruby
[20:33:40] alex88: has joined #ruby
[20:33:45] alex88: has joined #ruby
[20:34:27] j4cknewt: has joined #ruby
[20:34:30] zendrix: has joined #ruby
[20:34:46] allomov: has joined #ruby
[20:35:41] pengin: has joined #ruby
[20:35:58] solars: has joined #ruby
[20:36:12] NightMonkey: has joined #ruby
[20:36:15] dmmoody: has joined #ruby
[20:37:13] Wolland: has joined #ruby
[20:37:32] baweaver: has joined #ruby
[20:38:12] pollywog: has joined #ruby
[20:39:26] polly_wog: has joined #ruby
[20:39:32] jaycee: has joined #ruby
[20:40:10] rbennacer: has joined #ruby
[20:41:17] Frem: has joined #ruby
[20:42:05] jhooker: has joined #ruby
[20:43:08] ellisTAA: has joined #ruby
[20:44:17] Hanmac: has joined #ruby
[20:46:09] momomomomo: has joined #ruby
[20:46:19] swgillespie: has joined #ruby
[20:47:21] jimms: has joined #ruby
[20:47:56] NeverDie_: has joined #ruby
[20:49:42] Rollabunna: has joined #ruby
[20:49:46] alphaatom: has joined #ruby
[20:51:27] freerobby: has joined #ruby
[20:51:54] sarkyniin: has joined #ruby
[20:52:27] Al3ks: has joined #ruby
[20:54:12] ellisTAA: has joined #ruby
[20:56:00] freerobby: has joined #ruby
[20:58:30] Al3ks: has joined #ruby
[21:00:08] zendrix: has joined #ruby
[21:01:26] nfk: has joined #ruby
[21:01:27] workmad3: has joined #ruby
[21:02:59] baweaver: has joined #ruby
[21:03:42] A205B064: has joined #ruby
[21:04:16] snockerton: has joined #ruby
[21:05:19] mcclurmc: has joined #ruby
[21:05:55] ivanskie: has joined #ruby
[21:06:25] yfeldblum: has joined #ruby
[21:07:47] aef: has joined #ruby
[21:08:32] baweaver: has joined #ruby
[21:09:43] enebo: has joined #ruby
[21:12:48] phutchins: has joined #ruby
[21:12:55] Soda: has joined #ruby
[21:14:31] woodruffw: has joined #ruby
[21:15:34] bruno-: has joined #ruby
[21:19:25] Musashi007: has joined #ruby
[21:19:27] tacit7: has joined #ruby
[21:21:23] shevy: hmm an array, we can grab 5 random elements, or just do [0..5]; is there something similar for a hash? I want to display just 5 key->value pairs, does not matter which one (or, the "first" 5, if that would exist)
[21:21:35] shevy: oh, actually 0..4 (0,1,2,3,4)
[21:22:57] danman: has joined #ruby
[21:23:17] mdw: has joined #ruby
[21:23:44] weaksauce: shevy keys.sample(5)
[21:25:33] freerobby: has joined #ruby
[21:25:38] chouhoulis: has joined #ruby
[21:27:41] cj: hey folks
[21:27:42] cj: http://paste.scsys.co.uk/491272
[21:27:55] cj: What is the fully qualified name of twdc_nexus_file after that is run?
[21:28:02] baweaver: has joined #ruby
[21:28:33] Igorshp: has joined #ruby
[21:29:43] cj: and can I call that from within a ruby_block ?
[21:31:26] loocash_: has joined #ruby
[21:32:03] blaines: has joined #ruby
[21:32:47] havenwood: shevy: Or if you want a Hash back with both keys and values: to_a.sample(n).to_h
[21:34:13] shevy: I was using Hash[*]
[21:34:27] alex88: has joined #ruby
[21:36:07] adaedra: ACTION uses Hash[] more than .to_h
[21:36:24] shevy: well to_h seems shorter!
[21:37:56] bf4: has joined #ruby
[21:40:23] alphaatom: has joined #ruby
[21:40:29] _blizzy_: does ruby have a process.uptime() like in node?
[21:41:09] workmad3: has joined #ruby
[21:42:06] sarkyniin: has joined #ruby
[21:43:51] blackmesa: has joined #ruby
[21:43:58] Rollabunna: has joined #ruby
[21:44:45] baweaver: shevy: and also looks less like a generic from java
[21:45:58] jaequery: has joined #ruby
[21:52:11] eggoez: has joined #ruby
[21:52:12] doctorly: has joined #ruby
[21:52:22] bf4: has joined #ruby
[21:53:24] webguynow: has joined #ruby
[21:54:39] dgutierrez1287: has joined #ruby
[21:55:03] momomomomo: has joined #ruby
[21:56:19] shevy: I am sure it's 100x as long in java :D
[21:56:32] Pupeno_: has joined #ruby
[21:56:58] adaedra: HashFactory?
[21:57:34] havenwood: _blizzy_: require 'time'; Time.now - Time.parse(`ps -p #{Process.pid} -o lstart`.lines.last.strip)
[21:57:54] havenwood: _blizzy_: ^ only as portable as ps >.>
[21:57:59] _blizzy_: havenwood, thanks.
[21:58:04] dgutierrez1287: has joined #ruby
[21:58:53] havenwood: _blizzy_: you're welcome
[21:59:55] workmad3: has joined #ruby
[22:01:08] danman: has joined #ruby
[22:01:34] dmmoody: has joined #ruby
[22:02:32] seansith: has joined #ruby
[22:07:10] bf4: has joined #ruby
[22:07:20] shadoi: has joined #ruby
[22:08:08] werelivinginthef: has joined #ruby
[22:09:03] Zai00: has joined #ruby
[22:09:12] Spami: has joined #ruby
[22:09:27] ivanskie: hit quite a roadblock dang it.. have a nice output into an excel file... but i can't transfer the app to windows. cuz nokogiri doesnt like it as is.. argh
[22:10:11] sfarley: has joined #ruby
[22:11:06] ta: has joined #ruby
[22:12:04] jhooker: has joined #ruby
[22:12:09] alphaatom: has joined #ruby
[22:14:04] Igorshp: has joined #ruby
[22:15:30] yfeldblum: has joined #ruby
[22:17:15] malconis: has joined #ruby
[22:17:32] hotpancakes: has joined #ruby
[22:18:13] dgutierrez1287: has joined #ruby
[22:18:14] micmus: has joined #ruby
[22:19:40] Igorshp: has joined #ruby
[22:22:07] ellisTAA: has joined #ruby
[22:24:13] ausec: has joined #ruby
[22:24:53] Senjai: ivanskie: Of course, nokogiri builds native extensions
[22:25:02] blaines: has joined #ruby
[22:25:03] Senjai: ivanskie: Meaning it has to be compiled on each machine
[22:25:17] Senjai: ivanskie: But seriously, don't use windows. All your problems will dissapear ;)
[22:25:22] ivanskie: yeah. and it doesn't support 2.2.2 on windows
[22:25:34] ivanskie: yes thats usually my strategy.
[22:25:35] Senjai: If I had it my way, nothing would support windows :P
[22:25:36] ausec: how do i read only the first 100 lines of a file in ruby
[22:25:39] Narzew: has joined #ruby
[22:26:10] Senjai: ausec: 100.times do File.readline
[22:26:13] ivanskie: but in this case.. I can't avoid it. im thinking of maybe doing a rails app with a background task running ruby code connecting to windows share to read my csv files..
[22:26:16] Senjai: ausec: Make sure you rescue EOF
[22:26:22] ivanskie: and sticking it into a vm.
[22:26:40] Senjai: ivanskie: Why not just have it running on a server. Instead of a VM
[22:26:55] ivanskie: there's no linux server there
[22:26:59] ivanskie: and their internet is spotty
[22:27:00] Senjai: Can there be?
[22:27:13] ausec: Senjai, thanks im pretty new to ruby
[22:27:19] Senjai: Why not ask them to spend $500 and get a linux server
[22:27:29] Senjai: Or you know
[22:27:32] Senjai: go digital ocean
[22:27:39] ivanskie: they've already spent a few dozen grand on our machine that comes with a box with a PC in it.
[22:27:40] Senjai: for $10 a month
[22:28:28] ausec: what im actually trying to do is read the first 100, run a block against them, then read the next 100 and so on
[22:28:31] umgrosscol: ivanskie: You're selling a box with a pc inside and it's not running linux?
[22:28:41] ivanskie: im not the engineer
[22:29:03] umgrosscol: ausec: 100.times do File.readline
[22:29:10] ivanskie: its controlling our print applicator machine
[22:29:14] umgrosscol: ausec: Throw that in a function
[22:29:18] ivanskie: printing labels and applying to boxes
[22:29:35] ivanskie: and this app was an afterthought
[22:30:16] umgrosscol: ivanskie: That's rough. A rails app to read a csv sounds like a sledgehammer to tap in some finishing nails.
[22:30:49] dgutierrez1287: has joined #ruby
[22:31:02] stoodfarback: has joined #ruby
[22:31:51] Oufoi: has joined #ruby
[22:32:12] ddarkpassenger: has joined #ruby
[22:32:20] Oufoi: Hi, quick question guys: can I call a method without instancing an object ? such as Class.mymethod instead of Class.new().mymethod() ?
[22:32:20] bluOxigen: has joined #ruby
[22:32:24] umgrosscol: ausec: File.readline(100) handle the EOFError for the end of file.
[22:33:44] umgrosscol: Oufoi: You can for a class method, but not for an instance method.
[22:34:00] umgrosscol: Oufoi: For an instance method, you need an instance of the class.
[22:34:38] umgrosscol: Oufoi: So something that is stateless would be perfect for a class method. class Foo; def self.mymethod
[22:34:41] fabrice31: has joined #ruby
[22:34:48] baweaver: >> class Foo; def self.bar; 1 end end; Foo.bar
[22:34:49] ruboto: baweaver # => 1 (https://eval.in/389510)
[22:34:54] vasilakisfil_: has joined #ruby
[22:35:14] ellisTAA: has joined #ruby
[22:35:33] Oufoi: umgrosscol: okay so if I have something like this: http://pastebin.com/H0EUKFZU
[22:35:34] ruboto: Oufoi, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/9acafebfce3ffd97348e
[22:35:34] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[22:35:39] umgrosscol: Oufoi: You'll also see the idiom class << self to define a block of class methods
[22:35:40] __butch__: has joined #ruby
[22:36:15] umgrosscol: Oufoi: google "ruby class methods"
[22:36:18] Oufoi: umgrosscol: what would be the syntax for this ? MyItem.Mymethod ?
[22:36:48] Oufoi: umgrosscol: I could not find otherwise I would have not come on irc
[22:36:52] umgrosscol: Oufoi: self.mymethod, but you wouldn't be able to use @name
[22:36:56] baweaver: you're referring to something that needs an instance
[22:37:06] baweaver: you're going to have a bad time there
[22:37:15] baweaver: all methods are public unless you explicitly say otherwise.
[22:37:16] umgrosscol: http://www.railstips.org/blog/archives/2009/05/11/class-and-instance-methods-in-ruby/
[22:37:24] baweaver: that, and use lower case for method names
[22:37:27] umgrosscol: really, the top google results for me look fine.
[22:37:47] leslie: I can use send(:method_name) to dynamically call a method. is there an equivalent for calling super ?
[22:38:10] baweaver: put super inside :method_name?
[22:38:11] umgrosscol: Might be more appropriate https://rubymonk.com/learning/books/4-ruby-primer-ascent/chapters/45-more-classes/lessons/113-class-variables
[22:38:15] Rollabunna: has joined #ruby
[22:38:34] baweaver: also, be nice on the google results bit
[22:38:39] umgrosscol: leslie: You could see what method super would call with class.method(:method_name).super_method
[22:38:49] baweaver: though be forewarned, people can tell when you don't Oufoi
[22:38:59] baweaver: and it does not bode well for help
[22:39:12] momomomomo_: has joined #ruby
[22:39:18] Senjai: testing abilities is meh
[22:39:32] Senjai: https://gist.github.com/Senjai/e562ddb90ccff8066ef4
[22:39:40] Senjai: Not sure if I want to make that more dynamic
[22:39:49] umgrosscol: Oufoi: the @var_name is for instance variables. Those aren't going to work for a Class method.
[22:40:05] kstuart: has joined #ruby
[22:40:21] jcdesimp: has joined #ruby
[22:40:39] Oufoi: umgrosscol: okay I understand for the variable yes. thanks. Actually I am just a little confused due to the Chef syntax
[22:40:47] ivanskie: umgrosscol yep, rough indeed
[22:40:56] a346: has joined #ruby
[22:41:09] ivanskie: if only I could read local files from javascript from within html file. but noooo. thats security violation lol
[22:41:33] baweaver: Oufoi: you would be better suited to read into ruby itself as a language
[22:41:38] ivanskie: they don't have Access. so can't do it in access.. they don't have office at all so no excel either. argh
[22:41:41] baweaver: using chef without it is at your own peril
[22:41:43] leslie: ivanskie, you can, with certain constraints
[22:41:56] ivanskie: i've googled and haven't found a way.
[22:42:07] ivanskie: i don't want them to click Browse, or drag and drop files on there.
[22:42:08] Senjai: ivanskie: Dont use nokogiri
[22:42:28] Oufoi: baweaver: yes I guess but the behavior is the same. I am using :Chef::Resource::MyClass.mymethod() and mymethod is undefined
[22:42:29] ivanskie: I'm going to just output to a text file.
[22:42:43] Senjai: ivanskie: Or you can use one of the pure ruby solutions
[22:42:59] baweaver: that's because mymethod is only defined on ::Chef::Resource::MyClass.new
[22:43:02] ivanskie: Senjay like what
[22:43:06] umgrosscol: ivanskie: You're using nokogiri to parse csv?!
[22:43:19] ivanskie: im using CSV library for csv.
[22:43:20] baweaver: you could say self.my_method, but then you can't get at instance variables
[22:43:34] baweaver: or just pass in name as a string
[22:43:52] ivanskie: i worked on outputting it to excel file. and worked nicely. until nokogiri and windows..
[22:44:06] ivanskie: so now im just thinking of outputting it to plain text file.
[22:44:13] jhooker: has joined #ruby
[22:44:18] blazes816: has joined #ruby
[22:44:39] Senjai: Using nokogiri to output to excel
[22:44:45] Senjai: Just use the CSV library..
[22:45:09] Senjai: I have never even considered using nokogiri for that purpose. Seems hella farfetched
[22:45:13] ivanskie: well i was trying the AXLSX gem. which is dependant on Nokogiri
[22:45:24] Senjai: CSV's for days
[22:45:36] Senjai: excel formats can go sodomize themselves
[22:45:59] ivanskie: if I output csv.. next time customer runs the app (as is), it'll read this csv too. so i'd have to filter out for certain filename..
[22:46:20] Senjai: I dont even want to know dude :P
[22:46:53] avahey: has joined #ruby
[22:49:23] ivanskie: was just thinking outloud
[22:50:17] Rubie: has joined #ruby
[22:50:41] Exuma: has joined #ruby
[22:52:46] renderful: has joined #ruby
[22:53:51] jhooker: has joined #ruby
[22:54:13] startupality: has joined #ruby
[22:54:38] pgatt: has joined #ruby
[22:57:20] astrobunny: has joined #ruby
[22:57:52] doctorly: has joined #ruby
[22:58:13] ellisTAA: has joined #ruby
[22:59:32] alex88: has joined #ruby
[23:00:20] drocsid: has joined #ruby
[23:00:25] finisherr: I have a strange issue. I???m trying to print the stdout and stderr of a shelled out command as the command is exeucting
[23:00:29] finisherr: I have this so far: https://gist.github.com/miroswan/8c995bc761c89af9bf86
[23:00:54] finisherr: I???m trying to run the command ???kitchen converge???
[23:01:01] finisherr: it does not prompt the user
[23:01:12] finisherr: but for some reason, nothing prints after the first 3 lines of output
[23:01:32] finisherr: normally thing command will print many many lines updating the user on the status of the things happening in vagrant and with the tests
[23:01:59] reset: has joined #ruby
[23:02:32] blaines: has joined #ruby
[23:02:56] finisherr: if i just do puts `kitchen converge` i have a feeling the user would have to wait for a very long time to collect the string printed to standard out before printing
[23:04:54] hotpancakes: has joined #ruby
[23:07:07] baweaver: has joined #ruby
[23:08:38] dgutierrez1287: has joined #ruby
[23:09:13] towski_: has joined #ruby
[23:09:38] bf4: has joined #ruby
[23:10:45] bronson: has joined #ruby
[23:10:57] mister_solo: has joined #ruby
[23:12:57] icarus: has joined #ruby
[23:15:18] startupality: has joined #ruby
[23:16:24] finisherr: has joined #ruby
[23:16:40] platzhirsch: has joined #ruby
[23:17:03] mary5030: has joined #ruby
[23:17:17] Muhannad: has joined #ruby
[23:19:26] jhooker: has joined #ruby
[23:21:02] enebo: has joined #ruby
[23:21:43] arescorpio: has joined #ruby
[23:21:58] psye: has joined #ruby
[23:24:22] pengin: has joined #ruby
[23:24:34] benlieb_: has joined #ruby
[23:25:48] mesamoo: has joined #ruby
[23:30:41] Ropeney: has joined #ruby
[23:31:04] blaines: has joined #ruby
[23:32:41] Rollabunna: has joined #ruby
[23:33:52] danman: has joined #ruby
[23:35:41] enebo: has joined #ruby
[23:36:14] hgl: has joined #ruby
[23:36:59] blaines: has joined #ruby
[23:37:25] casadei_: has joined #ruby
[23:39:07] ledestin: has joined #ruby
[23:39:42] hgl: has joined #ruby
[23:40:48] emptyflask: has joined #ruby
[23:40:57] hgl: has joined #ruby
[23:41:24] bronson: has joined #ruby
[23:42:58] hgl: has joined #ruby
[23:44:08] hgl: has joined #ruby
[23:44:14] bf4: has joined #ruby
[23:45:20] Pupeno: has joined #ruby
[23:45:20] Pupeno: has joined #ruby
[23:45:43] hgl: has left #ruby: ()
[23:45:49] Marisa_: has joined #ruby
[23:46:33] speaking1ode: has joined #ruby
[23:48:00] mikecmpbll: has joined #ruby
[23:48:14] idafyaid: has joined #ruby
[23:48:14] idafyaid: has joined #ruby
[23:50:32] swgillespie: has joined #ruby
[23:51:14] hotpancakes: has joined #ruby
[23:51:25] jpfuentes2: has joined #ruby
[23:52:06] weaksauce: ivanskie rubyXL is pretty ok for excel stuff.
[23:52:14] weaksauce: have you tried it?
[23:52:52] ivanskie: & windows... no go
[23:53:02] ellisTAA: has joined #ruby
[23:53:07] MasterPiece: has joined #ruby
[23:53:27] havenwood: ivanskie: Have you tried Oga?: https://github.com/YorickPeterse/oga#readme
[23:53:29] ivanskie: I just ended up outputting to plain text. will work fine. Don't really have much paid time left on this project.
[23:54:08] weaksauce: ah there you go first requirement is nokogiri
[23:54:13] ivanskie: havenwood nope haven't looks like its a lot of work.
[23:54:18] emptyflask: has joined #ruby
[23:54:40] tcrypt: has joined #ruby
[23:54:44] weaksauce: I can't imagine any libraries using anything other than that for excel xml files
[23:54:52] Scripore: has joined #ruby
[23:54:55] havenwood: ivanskie: ah, scrolling back and reading history now
[23:55:06] ivanskie: its alright.
[23:55:34] ivanskie: alright time to pack up and go home
[23:55:36] ivanskie: thanks guys
[23:55:47] weaksauce: can you make the app dockerized and run it on windows?
[23:55:56] athos_diddy: has joined #ruby
[23:55:58] swgillespie: has joined #ruby
[23:56:03] snapcase: has joined #ruby
[23:57:13] Azure: has joined #ruby
[23:57:26] Miesco: has joined #ruby
[23:57:36] Miesco: Hi, I am getting this error when I run 'rails new':
[23:57:38] Miesco: /usr/bin/ruby2.1: No such file or directory -- /usr/share/rubygems-integration/all/gems/bundler-1.7.4/bin/bundle (LoadError)
[23:58:33] athos_diddy: for rails question ask in #RubyOnRails
[23:58:58] Miesco: has left #ruby: ()
[23:59:01] eggoez: has joined #ruby
[23:59:43] ruboto: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP