« Back to channel list

#ruby - 30 June 2017

« Back 1 day Forward 1 day »
[00:00:22] railswebdev: has joined #ruby
[00:00:39] Patadas: has joined #ruby
[00:02:48] dcluna: has joined #ruby
[00:02:53] benlieb: has joined #ruby
[00:07:52] AnoHito: has joined #ruby
[00:10:24] _main_: has joined #ruby
[00:20:23] romain_t: has joined #ruby
[00:24:12] _whitelogger: has joined #ruby
[00:28:54] ascarter: has joined #ruby
[00:31:50] railswebdev: has joined #ruby
[00:39:24] mikeiniowa: has joined #ruby
[00:43:28] jakk: has joined #ruby
[00:46:07] umaaji: has joined #ruby
[00:52:05] nirix: has joined #ruby
[00:59:30] nicesignal: has joined #ruby
[01:01:04] ResidentBiscuit: has joined #ruby
[01:01:06] cdg: has joined #ruby
[01:03:30] ule: has joined #ruby
[01:03:52] comet23: has joined #ruby
[01:04:10] comet23: is there a list that has all the methods senior devs should have memorized in 2017?
[01:06:37] brent__: has joined #ruby
[01:07:04] mitki: has joined #ruby
[01:09:17] railswebdev: has joined #ruby
[01:13:09] Cohedrin_: has joined #ruby
[01:15:06] mitki: is there any way to ensure the second loop only runs one time for each? https://pastebin.com/raw/NkqLV0aB
[01:15:07] ruby[bot]: mitki: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[01:15:21] mitki: I mean I'm expecting ==> 1 a 2 b 3 c 4 d ....
[01:15:59] GodFather: has joined #ruby
[01:16:35] elomatreb: mitki: Not like that, but you can construct an array of pairs that does what you need using Array#zip
[01:19:19] Jameser: has joined #ruby
[01:21:16] jphase: has joined #ruby
[01:22:08] jak: has joined #ruby
[01:25:31] mitki: it works thank you
[01:26:04] ecuanaso: has joined #ruby
[01:26:13] GinoMan2440: has joined #ruby
[01:29:15] Coldblackice: has joined #ruby
[01:31:47] jakk: has joined #ruby
[01:31:58] Fenhl: hello, I recently updated my server to Debian jessie and now one of the web apps I'm running on it won't work anymore. It's the only one that uses Ruby and I'm a bit lost since I don't really work with the language at all
[01:32:13] Fenhl: this is the error message I get when I follow the instructions: rack-2.0.3 requires ruby version >= 2.2.2, which is incompatible with the current version, ruby 2.1.5p273
[01:32:35] Fenhl: the code in question is at https://github.com/taw/magic-search-engine
[01:33:22] Fenhl: both `ruby --version` and `sudo ruby --version` output ruby 2.3.3p222 (2016-11-21) [x86_64-linux-gnu]
[01:33:34] zacts|pi: has joined #ruby
[01:35:22] mim1k: has joined #ruby
[01:35:34] astrobunny: has joined #ruby
[01:35:48] jottr: has joined #ruby
[01:37:14] ascarter: has joined #ruby
[01:38:41] jenrzzz: has joined #ruby
[01:38:41] jenrzzz: has joined #ruby
[01:40:27] uZiel: has joined #ruby
[01:42:50] tgragnato: has left #ruby: ("Sto andando via")
[01:43:00] d^sh: has joined #ruby
[01:45:13] Pepu: has joined #ruby
[01:48:37] graft: has joined #ruby
[01:48:37] graft: has joined #ruby
[01:52:10] railswebdev: has joined #ruby
[01:57:05] Jakub: has joined #ruby
[02:03:41] astrobun_: has joined #ruby
[02:10:45] xall: has joined #ruby
[02:11:59] sunrunner20: ... is ruby space sensitive?
[02:12:08] Radar: sunrunner20: depends
[02:12:16] Radar: got some code we can talk about?
[02:12:25] sunrunner20: let me pull up the screenshot
[02:12:53] comet23: what are the methods every senior developer should have memorized?
[02:13:39] sunrunner20: https://www.dropbox.com/s/aa1u7s590b7n9l5/Untitled.png?dl=0
[02:13:41] Radar: Worth noting that a/m/n has different behaviour to a<space>/m/n
[02:13:45] dcluna: has joined #ruby
[02:13:49] Radar: comet23: Enumerable
[02:13:58] Radar: sunrunner20: yunogst
[02:14:23] sunrunner20: a sr developer is not measured in the shit they have memorized
[02:14:34] Radar: sunrunner20: shhhh comet23 doesn't know that yet
[02:15:23] sunrunner20: https://gist.github.com/sunrunner20/b0839104f03727804b75ea4090b1c92c
[02:15:50] sunrunner20: I'm always stunned by some of the mistakes our sr developers make
[02:15:56] comet23: so it's a total of 55 methods right?
[02:16:18] elomatreb: It's not space sensitive like Python if that's what you mean, indentation is purely visual
[02:16:23] comet23: when you memorize things you can start actually being creative and not trip up on the docs every 12 seconds
[02:16:46] comet23: and memorization is good for your brain
[02:17:13] bmurt_: has joined #ruby
[02:17:16] sunrunner20: uselessly memorizing every function is time wasted where you could be doing better stuff
[02:17:35] comet23: it's not useless, think of it as knowing what tools to use when you need to get the job done
[02:17:35] elomatreb: Enumerable is really useful in Ruby, but just going in and memorizing the methods is not going to be very helpful
[02:17:44] Radar: comet23: hi I've been doing this for 11 years almost and I still look up stuff in the docs
[02:17:50] Radar: No one person can remember all the useful methods
[02:17:58] Radar: AND I also get flatten + compact mixed up near weekly
[02:18:03] comet23: you don't just memorize every method, you just memorize all the useful methods by using them
[02:18:11] Radar: sunrunner20: your code seems fine
[02:18:14] sunrunner20: I've been doing various languages for 17yrs
[02:18:35] __Yiota: has joined #ruby
[02:18:36] sunrunner20: Radar, and yet it didn't work :|
[02:18:39] matthewd: comet23: Being able to recall more things is useful, but there isn't a "now you're senior" checklist
[02:18:40] Radar: ?didntwork
[02:18:40] ruby[bot]: What "didn't work"? Did your server not start? Did your computer explode? Did your webpage turn bright pink? Did your client not pay your bill on time? You may have to be more specific. A Gist (http://gist.github.com) of the code that doesn't work (and the error you are getting) will be helpful.
[02:18:56] Radar: comet23: yes, you get good at recalling things the more times you recall it. NEXT TIME ON PSYCHOLOGY 101.
[02:19:07] jak: has joined #ruby
[02:19:30] sunrunner20: Radar, chef didn't see it and so the rspec tests failed
[02:19:39] charliesome: has joined #ruby
[02:19:41] Radar: sunrunner20: "didn't see it"
[02:19:44] Radar: :thinking_face:
[02:19:50] comet23: like detect and find are the same method, so you use the one that reads more like american
[02:20:02] Radar: comet23: everyone knows detect is the right method to use
[02:20:05] Radar: especially seniors
[02:20:18] Radar: after the Great Detect / Find War of '08
[02:20:25] genpaku: has joined #ruby
[02:20:34] sunrunner20: as in string.find()?
[02:20:43] Radar: and "collection.each do |thing|" is preferred over "for thing in collection"
[02:20:43] sunrunner20: returns -1 if it doesn't find it?
[02:20:54] Radar: sunrunner20: there is no String#find
[02:21:08] Radar: sunrunner20: Waiting for you to provide something useful wrt to debugging your problem.
[02:21:14] Radar: just fyi ps btw
[02:21:16] comet23: i'll be a junior dev with senior dev skills i should be able to get a promotion quickly or leave and go to a company that will pay me more eventually and let me grow
[02:21:32] Radar: comet23: sigh
[02:21:37] Radar: This long term thinking is doing nobody good.
[02:21:53] Radar: "OMG I WANT TO KNOW WHAT I NEED TO KNOW 10 YEARS FROM NOW"
[02:21:57] Radar: Yeah, so does everyone.
[02:22:06] Radar: how about you just focus on things that you want to learn now? as you need them?
[02:22:09] comet23: long term thinking is important
[02:22:23] comet23: that's a paradox
[02:22:37] comet23: you don't know what you need until you need it and you won't know what you need unless you know what is available
[02:22:39] sunrunner20: long term goals are important
[02:22:47] comet23: so off to memorizing every method i go
[02:22:57] Radar: great glhf]
[02:23:02] sunrunner20: you need to evaluate yearly what will get you to that 10yr goal
[02:23:31] nobitanobi: has joined #ruby
[02:23:38] sunrunner20: if your early in your career
[02:23:40] matthewd: comet23: Noone is measured by which methods they have memorized. If you do that, you will not have "senior dev skills", any more than memorizing a dictionary gives you "published author skills".
[02:23:42] elomatreb: Learn to predict the future, that's a great long term goal
[02:23:48] graft: has joined #ruby
[02:23:48] graft: has joined #ruby
[02:23:49] Rodya_: has joined #ruby
[02:24:01] comet23: matthewd you're missing the point about memorizing every method
[02:24:11] Radar: comet23: what exactly is the point, pray tell?
[02:24:29] JoshS: has joined #ruby
[02:24:30] comet23: so you can be creative and not trip up on the docs every 10 seconds
[02:24:45] sunrunner20: are you brand new to programming?
[02:24:49] Radar: Hey so I've got this app open in my dash and it's _fixed_ there, it's called Dash
[02:24:54] Radar: It contains the documentation for every programming language I use
[02:25:00] Radar: if there is a day where I do not open that app, I will let you know
[02:25:12] sunrunner20: you sound like it tbh
[02:25:12] wilbert: has joined #ruby
[02:25:18] elomatreb: I never sat down to memorize the Enumerable docs yet I use them without looking them up daily
[02:25:22] elomatreb: It's a matter of practice
[02:25:34] Radar: If you're opening the docs every couple of seconds then at least you're reading the docs. That'll get less frequent the more you practice coding.
[02:25:38] __Yiota: has joined #ruby
[02:25:42] Radar: comet23: asl btw
[02:25:48] Radar: out of curiosity more than anything
[02:25:51] jnollette: has joined #ruby
[02:26:18] comet23: or you could have spent an hour memorizing 55 methods, that's a little over a minute on each method twice a day for 5 days and keep practicing them on a daily basis and you would have gotten to where you are now faster
[02:26:22] Arahael: elomatreb: I always check the api, frequently.
[02:26:22] sunrunner20: your time is much better spent finding a $languageofchoice project on github that has more open issues that developers
[02:26:24] matthewd: I still open the Enumerable docs frequently
[02:26:34] Arahael: ACTION is a polyglot dev, and the number of times languages are subtly different is infuriating.
[02:26:49] elomatreb: I'm thinking of the simpler things, but of course
[02:26:50] sunrunner20: find an easy issue and fix it
[02:26:50] Radar: arahael: tell me about it ;) I keep putting "do" after method defs in Ruby.
[02:27:06] comet23: i'm not saying memorize all the methods of a language, jus the most important ones that won't change and the ones that are idiomatic
[02:27:14] sunrunner20: I keep typing do{
[02:27:24] Arahael: Radar: I wasted hours on a .NET project, because stupid sockets were auto-closing. I miss RAII. :(
[02:27:42] sunrunner20: idk if it'll work
[02:27:53] Radar: comet23: how is Delray Beach this time of year?
[02:28:20] elomatreb: select/map/inject, maybe some others like group_by and zip and you're good to go most of the time. Most of these also transfer readily into other languages
[02:28:33] sunrunner20: arahael, I wasted 50hrs trying to get PHP to set a cookie on my local dev box
[02:28:47] sunrunner20: gave up and uploaded the page to prod and it worked
[02:29:01] Radar: map vs collect was explained elegantly to me: collect when you want to _collect_ a value from all elements of an array, map when you want to perform an operation on each element.
[02:29:05] sunrunner20: I stopped programming at all for about a year
[02:29:07] Radar: (I still use map for both tbh)
[02:29:25] railswebdev: has joined #ruby
[02:29:29] elomatreb: sunrunner20: secure cookies can behave weirdly with some softwares for local domains
[02:29:42] sunrunner20: was a plain old regular cookie
[02:29:49] sunrunner20: before secure cookies existed iirc
[02:30:03] sunrunner20: this was like 2003
[02:30:49] sunrunner20: started programming as a literal kid
[02:30:52] sunrunner20: like 10yrs old
[02:31:23] Arahael: Those were the days.
[02:31:28] Arahael: I wrote a drawing app, in QBasic.
[02:31:34] sunrunner20: restarting college for a formal SE degree this fall
[02:31:41] andrevan: has joined #ruby
[02:32:29] sunrunner20: I should have had a CS degree from a prestegious college and was like "I don't want computers to stop being fun so I'll do something else as a job"
[02:32:52] sunrunner20: lost a full ride to that decision
[02:33:00] Arahael: It's really no big deal.
[02:33:14] Arahael: Most of your learnings are on the job/hobby, anyway.
[02:33:23] Arahael: (On the hobby, really - so to speak)
[02:33:48] sunrunner20: the SE degree should be a breeze
[02:33:54] sunrunner20: except for calculus
[02:34:02] elomatreb: Software Engineering or "actual" computer science?
[02:34:10] sunrunner20: software engineering
[02:34:35] elomatreb: Good, because CS is mostly maths, certainly not what you want if you have fun programming. Still interesting though
[02:34:41] sunrunner20: I'm doing it for the paper
[02:34:42] snowcrshd: has joined #ruby
[02:34:46] Arahael: I hate the title "software engineering", particularly when said degree isn't an engineering degree. :(
[02:34:58] jak: has joined #ruby
[02:35:28] sunrunner20: my 6mo goal in 5yr plan is new job
[02:35:35] comet23: Radar why do you care
[02:35:50] Radar: comet23: just making conversation
[02:35:55] sunrunner20: just told a recruiter i'd take a 5k/yr hit to be on an established team
[02:36:12] elomatreb: People actively asking for things to memorize certainly is not the usual
[02:36:29] comet23: oh usually people say that when they're upset at something or trolling or about to dox or something but not to make conversation lol
[02:36:39] comet23: it's humid
[02:36:48] zacts: has joined #ruby
[02:36:56] sunrunner20: I don't think I've ever memorized something intentionally for programming in my life
[02:37:01] Radar: yeah of course it's florida
[02:37:17] Radar: and p.s. the only place where you're expected to be able to recall any method / api / algo is a really shitty interview.
[02:37:22] sunrunner20: and my AC unit is oversized :(
[02:37:29] comet23: what is dfw?
[02:37:38] Radar: One of the first things I tell anyone we interview here is that they can look up things in the docs if they want.
[02:37:38] sunrunner20: dallas fort worth metroplex
[02:38:18] sunrunner20: I read through some programmer review questions once
[02:38:31] Arahael: Radar: To be fair, it's a good proxy to for familiarity, particularly if you want someone for a specific language and project.
[02:38:37] sunrunner20: only ones I failed were math heavy
[02:38:50] gil_: has joined #ruby
[02:38:50] gil_: has joined #ruby
[02:39:00] Radar: arahael: Sure, I can quiz you on things but I'm not going to prevent you from looking it up in docs or trying it on a console
[02:39:11] Radar: arahael: If you spend all your time going back to the console / docs then I'll probably judge based on that.
[02:39:13] Radar: bbl, lunch
[02:39:13] Arahael: Radar: That's fair.
[02:39:27] sunrunner20: I pickup a book or two on any new language I need to know and throughly skim it
[02:39:39] Arahael: Well, I spend all my time going to the docs...
[02:39:44] Arahael: Which is why I have dual screens!!!
[02:40:07] sunrunner20: I won't remember exactly the answer, but I'll remember what to google.
[02:40:15] Arahael: Good enough.
[02:40:17] bazzy: Docs are everything <3
[02:40:51] Arahael: I also have an O'Reilly "cookbook" on my left.
[02:41:07] Arahael: Today I had to figure out how to wait for 2 seconds, in .NET :(
[02:41:16] comet23: what you need to do is get a subscription to safari books
[02:41:20] ascarter: has joined #ruby
[02:41:21] comet23: it's amazing
[02:41:37] sunrunner20: Archrover, threading.thread.sleep(2000) iirc
[02:41:44] Arahael: comet23: Irrelevant... Whatever book I want, I ask my boss. He passes it to the team assistant, and she gets it.
[02:41:48] jottr: has joined #ruby
[02:41:52] Arahael: sunrunner20: Incorrect, that'd deadlock the program.
[02:42:03] Arahael: (For 2 seconds)
[02:42:14] comet23: i thought you were talking to me
[02:42:24] comet23: safari books is my favorite learning site
[02:42:29] astrobunny: has joined #ruby
[02:42:40] comet23: they have every technical book
[02:42:46] sunrunner20: how do you do it without a deadlock then?
[02:42:47] comet23: from every publisher
[02:42:53] Arahael: sunrunner20: "It depends". :(
[02:43:12] Arahael: sunrunner20: Hence why I use a cookbook in this case - turned out to be Task.Delay(2000)
[02:43:28] sunrunner20: sleep for 10ms then compare to an elapsed time lol
[02:43:58] Arahael: sunrunner20: If you use sleep directly, nothing else can run on that thread.
[02:44:24] sunrunner20: work has a hilariously optimized application.
[02:44:35] sunrunner20: but its literally on the bottom of my todo list
[02:45:01] astrobunny: has joined #ruby
[02:45:44] sunrunner20: it queries a table one row at a time for 260k rows... then selects on another table based on that result
[02:46:12] sunrunner20: might be even worse
[02:46:25] Arahael: It's only 260k rows. Not a problem.
[02:46:36] sunrunner20: iirc the thing makes 7 or 8 queries for one record
[02:46:56] sunrunner20: takes 2hrs to run
[02:47:06] astrobunny: has joined #ruby
[02:47:49] sunrunner20: has to be run weekly. SO come in monday morning, login, start the program, and get my ice
[02:48:14] Arahael: sunrunner20: Setup a cronjob. Done.
[02:48:32] sunrunner20: arahael, WCF application
[02:48:47] Arahael: Well, schedule it for auto-run, then.
[02:49:10] dcluna: has joined #ruby
[02:49:28] sunrunner20: can't without additional programming, which that department has no funds for development.
[02:49:48] sunrunner20: I tried to get 4hours last week and got shot down
[02:50:05] Arahael: https://superuser.com/questions/513676/is-it-possible-to-schedule-a-task-only-on-working-days/513679
[02:50:32] Arahael: sunrunner20: First rule of programming: Someone else has very likely already done it.
[02:50:34] dcunit3d: has joined #ruby
[02:51:00] sunrunner20: thats not the issue
[02:51:17] sunrunner20: its a GUI app not a CLI that has like 6 options
[02:51:23] sunrunner20: I'd have to add in a CLI
[02:51:41] Arahael: https://www.autoitscript.com/site/autoit/
[02:52:25] sunrunner20: it'd be less time to expose a CLI
[02:53:07] sunrunner20: https://stackoverflow.com/questions/9343381/wpf-command-line-arguments-a-smart-way
[02:53:34] rohitpaulk: has joined #ruby
[02:55:08] ecuanaso: has joined #ruby
[03:03:50] ruby635: has joined #ruby
[03:03:57] ruby635: hey hey all
[03:04:20] govg: has joined #ruby
[03:04:56] brent__: has joined #ruby
[03:05:03] ruby635: anyone around?
[03:06:13] ruby635: I have a rails question is this the right place to ask those question?
[03:06:25] ruby[bot]: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[03:06:32] ruby635: ruby on rails
[03:06:46] ruby635: has left #ruby: ()
[03:06:59] __Yiota: has joined #ruby
[03:07:15] mrconfused: has joined #ruby
[03:07:17] railswebdev: has joined #ruby
[03:07:24] arescorpio: has joined #ruby
[03:11:44] Jameser: has joined #ruby
[03:13:17] comet23: what is it called when you want to assign a new copy of a variable?
[03:13:31] comet23: instead of pointing
[03:14:37] elomatreb: ... copying? Or maybe cloning, or after the method duping?
[03:15:14] comet23: i wasn't sure
[03:15:24] comet23: i found an answer on stackoverflow
[03:15:43] comet23: i'm making a cli tic tac toe game
[03:15:49] comet23: it's pretty hard =/
[03:16:15] enterprisey: has joined #ruby
[03:18:33] snowcrshd: has joined #ruby
[03:19:58] jak: has joined #ruby
[03:20:08] ecuanaso: has joined #ruby
[03:32:58] grymmjack: has joined #ruby
[03:35:55] mim1k: has joined #ruby
[03:39:20] uZiel: has joined #ruby
[03:40:41] segy: has joined #ruby
[03:40:55] mogaj: has joined #ruby
[03:41:44] hndk: has joined #ruby
[03:42:50] jottr: has joined #ruby
[03:43:26] ascarter: has joined #ruby
[03:47:37] Dreamer3: has joined #ruby
[03:52:59] gix: has joined #ruby
[03:55:39] planigan: has joined #ruby
[04:01:12] Rodya_: has joined #ruby
[04:02:35] railswebdev: has joined #ruby
[04:06:40] uZiel: has joined #ruby
[04:07:40] texasmynsted: has joined #ruby
[04:08:18] ozcanesen: has joined #ruby
[04:19:04] Rodya_: has joined #ruby
[04:20:48] herbmillerjr: has joined #ruby
[04:23:25] Cohedrin_: has joined #ruby
[04:27:48] ur5us: has joined #ruby
[04:28:24] comet23: i'm trying to make a winning condition
[04:28:53] comet23: i want to use all, but i am getting a no implicit conversion to string error
[04:29:40] elomatreb: Can't help you without code
[04:30:10] comet23: what's a good paste site?
[04:30:18] elomatreb: gist.github.com
[04:30:41] comet23: is there anything else?
[04:31:11] elomatreb: Is there a problem with gist? It has revisions, multiple files, syntax highlighting, comments, everyhint you'd ever need
[04:32:16] comet23: i don't like it because it's not temporary and you can't delete it
[04:32:17] comet23: https://gist.github.com/anonymous/34b08adbd07ff62e94d5a07ce7d78c99
[04:32:40] comet23: i'm stuck on the full method
[04:32:54] elomatreb: If you log into github you can delete them
[04:33:11] nirix: Was about to say that, it's what I usually do
[04:33:48] comet23: what i want to do is if every element's position is taken return true for the full method, my head can't do that... =(
[04:34:19] comet23: i tried using the all method and pass a block but it's giving me the no impicit conversion to string error
[04:34:43] elomatreb: all? is a good way. Update your code with that attempt and give full error
[04:34:44] matthewd: comet23: There's Enumerable#all?, but you're probably better off solving it with each at this stage IMO
[04:34:51] mim1k: has joined #ruby
[04:35:15] comet23: how do i update?
[04:35:18] matthewd: comet23: You know how to return early if you find the answer while looping, as you did in won?
[04:35:41] matthewd: So, I'd find a way to do that here too
[04:37:58] comet23: here's the updated method
[04:37:59] comet23: https://gist.github.com/anonymous/ece38f6fc09154008855442cb53b7fd3
[04:38:38] matthewd: all? doesn't yield the index
[04:38:40] comet23: and i forgot a parenthesis
[04:39:15] comet23: all yields the item
[04:39:20] comet23: that makes sense
[04:39:49] comet23: how can i make it yield the index?
[04:40:00] matthewd: .with_index
[04:40:32] comet23: all?.with_index{|index| position_taken?(board, board[index]) ???
[04:40:54] matthewd: Close, but that's not what with_index yields either
[04:40:55] agent_white: has joined #ruby
[04:41:26] xall: has joined #ruby
[04:41:42] comet23: there is no all with index listed on the docs
[04:41:53] Doc_: has joined #ruby
[04:42:08] matthewd: `all?.with_index` is right
[04:42:27] comet23: how can i know what all yields?
[04:43:13] matthewd: The documentation for all? should tell you what it yields, and the documentation for with_index should tell you what it yields
[04:43:33] jottr: has joined #ruby
[04:44:09] comet23: i don't really understand the documentation
[04:44:13] comet23: it's way too short
[04:45:16] matthewd: There's an example of map.with_index at the top of the Enumerator documentation that might help
[04:45:29] snowcrshd: has joined #ruby
[04:47:04] Doc_: What benefits may Ruby have over Perl for CGI uses?
[04:47:05] comet23: what is *args?
[04:47:31] comet23: with_index(offset = 0) {|(*args), idx| ... }
[04:47:45] comet23: i see that but no code example like for the other methods
[04:47:46] ascarter: has joined #ruby
[04:47:58] matthewd: comet23: The arguments the enumerator receives (from all?, in this case)
[04:48:16] comet23: is that optional?
[04:48:43] matthewd: No, it's going to yield whatever it got
[04:49:08] matthewd: So your block will get two arguments: the element value from all?, and the index from with_index
[04:49:17] comet23: so after .with_index{|item, index| position_taken?(board, board[index]) ?
[04:49:27] cadillac_: has joined #ruby
[04:49:39] sarbs: has joined #ruby
[04:50:44] comet23: what an awful method
[04:50:49] comet23: i mean the one i wrote
[04:51:28] dasher00: has joined #ruby
[04:51:48] matthewd: I'd suggest the problem is in the position_taken? method
[04:52:16] comet23: https://gist.github.com/anonymous/ce3ce3d40c5adb99ae67ecac2ed2b763
[04:52:22] matthewd: This would've been trivial if you had a method that just checked a given 'position value', instead of needing the index, for example
[04:52:22] comet23: it's too long
[04:52:38] jak: has joined #ruby
[04:53:02] comet23: the other problem is that i am following a course from flatiron school and i feel like a lot of this stuff is easy and straightforward, it also helps that their tutorial is well-written
[04:53:32] matthewd: e.g. board.all? { |pos| occupied?(pos) }
[04:53:45] comet23: it's at a very easy level for me usually and when it's hard or something new comes up i have to think about it for a moment because the answer is in the page, they give you pseudocode, but it's still up to me to figure out the implementation which i like
[04:54:27] matthewd: In time this would be much better with a class to represent the board etc, but I assume you're not up to that yet
[04:54:50] comet23: classes are in the next part
[04:55:25] comet23: right after this
[04:55:28] comet23: intro to OO
[04:55:40] comet23: Classes and Methods
[04:55:49] comet23: Instance Methods
[04:56:03] matthewd: Cool, so I wouldn't get too hung up on less-than-ideal looking code at this stage
[04:56:13] comet23: it's also not workign
[04:56:38] matthewd: Recognising things that don't feel good is useful, but your toolkit to improve it will expand a lot soon
[04:57:06] matthewd: Your last gist contained any? instead of all?
[04:57:30] comet23: thank you so much
[04:57:40] comet23: it's 12:57 and i was supposed to be in bed at 10
[04:58:09] nofxxxx: has joined #ruby
[04:58:28] comet23: i'm still getting the same error though
[04:58:52] comet23: https://gist.github.com/anonymous/1434f9a8f2fdfebde025cef4290f245e
[04:59:40] comet23: it's saying that .with_index can't be used on .all?
[04:59:48] elomatreb: Well, what's in line 36 of game_status.rb?
[04:59:59] matthewd: Oh, right, oops :|
[05:00:08] comet23: board.all?.with_index {|item, index| position_taken?(board, board[index])}
[05:00:17] matthewd: So, there are two possible solutions
[05:00:38] astrobun_: has joined #ruby
[05:01:05] matthewd: `board.size.times.all? {|index| .. }`, or `board.enum_for(:all?).with_index {|item, index| .. }`
[05:01:12] anisha_: has joined #ruby
[05:01:33] matthewd: I mean, there are plenty of other solutions, because computers.. but they're the ones I'd consider to be adjacent to where we are now
[05:01:42] elomatreb: Now it's getting ugly
[05:01:46] comet23: but you said that all doesn't yield an index
[05:02:36] matthewd: I'm not calling all? on the board, though -- I'm calling it on .times, which will yield 0 to n-1, which matches the indexes of the array
[05:02:39] perniciouscaffei: has joined #ruby
[05:03:21] comet23: i see how that works
[05:03:25] comet23: how does the second one work?
[05:03:27] matthewd: Extracting the "is this cell blank?" check from position_taken? does look increasingly appealing, though
[05:03:38] matthewd: That one just forces an Enumerator of all?
[05:04:01] comet23: that one is way too advanced for me
[05:04:06] matthewd: Some methods, like map and each, automatically return an Enumerator when called without a block; all? doesn't, but we can explicitly ask for one
[05:04:47] matthewd: Yeah.. I mentioned it because it's the closest to what we were already trying to do, but I'd hesitate to actually write it that way
[05:05:05] comet23: but you'd write the first one?
[05:05:44] matthewd: No, I'd create a method that takes a cell value and returns whether it's occupied
[05:06:11] comet23: okay great, you probably won't believe me, but that was my instinct
[05:06:45] comet23: wait a minute
[05:07:10] comet23: i already have a method that takes a cell value and returns whether it's occupied
[05:07:24] matthewd: No, you have a method that takes a cell *index* (and a board)
[05:07:36] matthewd: def cell_occupied?(cell); ['X', 'O'].include?(cell); end; def position_taken?(board, index); cell_occupied?(board[index]); end
[05:08:20] comet23: https://gist.github.com/anonymous/10eb5885992daad11854c54d1cd949e1
[05:08:24] Xiti`: has joined #ruby
[05:08:59] armyriad: has joined #ruby
[05:09:07] elomatreb: Maybe write a class to represent the board, that'll be a whole lot cleaner than having to pass it with every method call
[05:09:28] matthewd: elomatreb: Apparently classes are in the next chapter
[05:10:08] comet23: what is the position taken method?
[05:10:33] comet23: it's not taking a cell value and returning whether or not it's occupied?
[05:10:44] comet23: https://gist.github.com/anonymous/10eb5885992daad11854c54d1cd949e1
[05:10:45] matthewd: comet23: It's not taking a cell value
[05:10:57] comet23: what is it doing with the index then?
[05:11:06] matthewd: comet23: It's taking a board and a cell index, then going and finding the value for itself
[05:11:30] comet23: what is the difference between that and what you're talking about
[05:11:45] matthewd: comet23: And our whole problem is that it's much easier to get the value directly. We're having to work harder to get the index, just to pass it to that method.
[05:12:24] Hobbyboy: has joined #ruby
[05:15:56] comet23: i'm still getting the same error even after calling all? on board.size.times
[05:16:12] comet23: def full?(board)
[05:21:31] domgetter: has joined #ruby
[05:25:21] Hobbyboy: has joined #ruby
[05:28:46] FastJack: has joined #ruby
[05:29:22] jakk: has joined #ruby
[05:30:14] enterprisey: has joined #ruby
[05:31:57] conta: has joined #ruby
[05:44:19] jottr: has joined #ruby
[05:49:39] ascarter: has joined #ruby
[05:52:38] cschneid_: has joined #ruby
[05:54:04] aupadhye: has joined #ruby
[05:55:53] jakk: has joined #ruby
[05:58:17] andikr: has joined #ruby
[06:04:16] Silthias: has joined #ruby
[06:05:28] jakk: has joined #ruby
[06:09:19] bdevel: has joined #ruby
[06:11:32] Ishido: has joined #ruby
[06:14:54] johnny56_: has joined #ruby
[06:18:20] V1s1ble: has joined #ruby
[06:18:20] V1s1ble: has joined #ruby
[06:19:27] Nahra: has joined #ruby
[06:19:32] Nahra: has joined #ruby
[06:20:11] piotrj: has joined #ruby
[06:20:40] cbrad: has joined #ruby
[06:21:58] Dfoolz: has joined #ruby
[06:24:02] timmow: has joined #ruby
[06:25:01] nobitanobi: has joined #ruby
[06:25:20] jak: has joined #ruby
[06:25:48] Rodya__: has joined #ruby
[06:27:50] conta: has joined #ruby
[06:31:43] de9nie: has joined #ruby
[06:34:47] birdyondrugs: has joined #ruby
[06:38:03] rgr: has joined #ruby
[06:39:13] marr: has joined #ruby
[06:45:04] jottr: has joined #ruby
[06:47:04] djbkd: has joined #ruby
[06:47:17] Ishido: has joined #ruby
[06:51:06] dionysus69: has joined #ruby
[06:51:28] xall: has joined #ruby
[06:52:49] ascarter: has joined #ruby
[06:54:38] bdevel: has joined #ruby
[06:58:22] bkxd: has joined #ruby
[06:58:24] bkxd_: has joined #ruby
[07:01:12] Vingador: has joined #ruby
[07:01:52] Vingador: has joined #ruby
[07:03:44] hs366: has joined #ruby
[07:05:06] kies: has joined #ruby
[07:06:10] vondruch: has joined #ruby
[07:07:54] joevandyk: has joined #ruby
[07:08:15] aufi: has joined #ruby
[07:13:18] Mia: has joined #ruby
[07:15:55] yaewa: has joined #ruby
[07:17:39] tAn: has joined #ruby
[07:17:44] snowcrshd: has joined #ruby
[07:18:05] anisha: has joined #ruby
[07:18:22] DoubleMalt: has joined #ruby
[07:18:25] biberu: has joined #ruby
[07:21:24] agent_white: has joined #ruby
[07:26:39] nobitanobi: has joined #ruby
[07:27:19] Rodya_: has joined #ruby
[07:27:23] ddddddd: has joined #ruby
[07:28:45] fugue: has joined #ruby
[07:28:50] moei: has joined #ruby
[07:33:40] patarr: has joined #ruby
[07:36:51] djbkd: has joined #ruby
[07:38:19] jenrzzz: has joined #ruby
[07:40:22] mathys: has joined #ruby
[07:43:26] jak: has joined #ruby
[07:43:52] nanoz: has joined #ruby
[07:45:50] jottr: has joined #ruby
[07:46:57] uZiel: has joined #ruby
[07:47:07] montanonic: has joined #ruby
[07:47:22] morfin: has joined #ruby
[07:47:42] morfin: this is not fine: /tmp/ruby-build.20170630122900.3163/ruby-2.3.0/lib/fileutils.rb:1747: [BUG] Segmentation fault at 0xfffffffffffffff9
[07:49:02] morfin: http://paste.ubuntu.com/24987376/
[07:49:19] morfin: this is full paste - i do not know why could such thing happen
[07:55:53] mozzarella: you need to sacrifice a goat
[07:56:01] ascarter: has joined #ruby
[07:57:08] herwin: morfin: are you sure you want to compile 2.3.0, instead of 2.3.4 (the latest 2.3)?
[07:57:20] herwin: the problem might magically disappear
[07:58:06] djbkd: has joined #ruby
[07:59:02] jaruga________: has joined #ruby
[07:59:44] elsevero: has joined #ruby
[08:00:28] jaruga________: has joined #ruby
[08:01:38] jaruga________: has joined #ruby
[08:02:28] morfin: some projects contain it in .ruby-version
[08:03:16] cseder: has joined #ruby
[08:03:25] morfin: at least i managed to force it call proper pkgconfig for openssl
[08:04:49] alnewkirk: has joined #ruby
[08:05:18] vondruch: has joined #ruby
[08:07:17] mikecmpbll: has joined #ruby
[08:07:33] hurricanehrndz: has joined #ruby
[08:09:59] im0nde: has joined #ruby
[08:13:58] bdevel: has joined #ruby
[08:14:00] yeticry_: has joined #ruby
[08:18:43] MarkBilk__: has joined #ruby
[08:19:12] Hanmac: has joined #ruby
[08:29:25] Rodya_: has joined #ruby
[08:30:48] romank: has joined #ruby
[08:30:49] dcunit3d: has joined #ruby
[08:32:23] morfin: same result with 2.3.4
[08:32:35] mim1k: has joined #ruby
[08:32:57] morfin: trying to build 2.4.0
[08:33:19] im0nde: has joined #ruby
[08:33:42] piyush: has joined #ruby
[08:35:31] gothicsouth: has joined #ruby
[08:38:45] pwnd_nsfw`: has joined #ruby
[08:40:04] KillerFox: has joined #ruby
[08:40:55] Ilie[]: has joined #ruby
[08:41:02] ferr: has joined #ruby
[08:41:05] mim1k: has joined #ruby
[08:45:07] riceandbeans: has left #ruby: ()
[08:46:57] jottr: has joined #ruby
[08:47:31] lxsameer: has joined #ruby
[08:54:19] xall_: has joined #ruby
[08:59:51] lxsameer: has joined #ruby
[09:00:38] riceandbeans: has joined #ruby
[09:00:49] riceandbeans: how would you go about finding a memory leak in a ruby script?
[09:01:46] riceandbeans: I'm using mechanize, pg, and not much else and the memory use has gone from 5MB to 175MB and it's still going
[09:03:50] ascarter: has joined #ruby
[09:03:57] brent__: has joined #ruby
[09:05:55] snowcrshd: has joined #ruby
[09:15:21] bkxd: has joined #ruby
[09:15:26] Beams: has joined #ruby
[09:19:40] Serpent7776: has joined #ruby
[09:20:24] bkxd_: has joined #ruby
[09:22:35] umaaji: has joined #ruby
[09:25:55] nanoz]: has joined #ruby
[09:26:34] pandaant: has joined #ruby
[09:27:01] tvw: has joined #ruby
[09:30:09] Rodya_: has joined #ruby
[09:31:34] ur5us: has joined #ruby
[09:34:44] patarr: has joined #ruby
[09:40:52] snowcrshd: has joined #ruby
[09:43:17] dminuoso: riceandbeans: ruby-prof
[09:43:27] jak: has joined #ruby
[09:44:09] bdevel: has joined #ruby
[09:47:42] jottr: has joined #ruby
[09:51:32] jak: has joined #ruby
[09:54:06] Fernando-Basso: has joined #ruby
[09:56:35] marr: has joined #ruby
[10:05:07] ascarter: has joined #ruby
[10:07:50] cseder: has joined #ruby
[10:11:49] uZiel: has joined #ruby
[10:20:10] zenspider: riceandbeans: chances are you don't have a leak.
[10:20:56] zenspider: where "leak" means memory you've allocated and can't get back
[10:21:09] zenspider: mechanize and pg are solid, and ruby doesn't leak. 175 isn't that much in the grand scheme of things. really depends on what you're doing.
[10:24:12] uZiel: has joined #ruby
[10:24:59] sysvalve: has joined #ruby
[10:30:39] riceandbeans: zenspider: looping thousands of times, parsing data with mechanize, some database interactions, repeat
[10:30:50] Rodya_: has joined #ruby
[10:31:12] bkxd: has joined #ruby
[10:31:20] riceandbeans: zenspider: but you're probably right, it's down to 150Mb
[10:32:16] bkxd_: has joined #ruby
[10:33:25] Ryzokuken: has joined #ruby
[10:34:45] uZiel: has joined #ruby
[10:40:59] lel: has joined #ruby
[10:41:34] Fernando-Basso: has joined #ruby
[10:46:22] zenspider: riceandbeans: maybe you have a closure holding onto a collection of something preventing it from being GC'd... but that's not a leak.
[10:47:02] zenspider: but just let it go... as long as you're not on a tiny VPS it'll do its job and finish fine. check your swap. if it is OK, then you're OK
[10:47:21] riceandbeans: I am on a tiny VPS lol
[10:47:27] patarr: has joined #ruby
[10:48:27] jottr: has joined #ruby
[10:56:16] jaruga________: has joined #ruby
[10:57:43] dcunit3d: has joined #ruby
[10:58:34] sepp2k: has joined #ruby
[11:07:11] clemens3: has joined #ruby
[11:08:21] roshanavand: has joined #ruby
[11:09:58] ascarter: has joined #ruby
[11:13:01] psychicist__: has joined #ruby
[11:14:38] bdevel: has joined #ruby
[11:15:40] DoubleMalt: has joined #ruby
[11:16:26] jakk: has joined #ruby
[11:16:51] mim1k: has joined #ruby
[11:19:31] jaruga________: has joined #ruby
[11:22:27] shinnya: has joined #ruby
[11:29:18] bkxd: has joined #ruby
[11:31:37] Rodya_: has joined #ruby
[11:35:23] bkxd: has joined #ruby
[11:35:51] ule: has joined #ruby
[11:40:47] ldnunes: has joined #ruby
[11:44:30] dcunit3d: has joined #ruby
[11:49:12] jottr: has joined #ruby
[11:51:45] CustosLimen: "a,b,c,,,".split(",") -> ["a", "b", "c"]
[11:51:53] CustosLimen: how can I keep empty's ?
[11:54:12] leah2: >> "a,b,c,,,".split(",", -1)
[11:54:13] ruby[bot]: leah2: # => ["a", "b", "c", "", "", ""] (https://eval.in/825174)
[11:57:46] marahin: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[11:58:29] CustosLimen: leah2, thanks a bunch
[12:00:30] darix: zzak: any plans to push sdoc 1.0.0?
[12:02:33] jottr: has joined #ruby
[12:05:17] bkxd: has joined #ruby
[12:08:22] bkxd_: has joined #ruby
[12:11:43] millerti: has joined #ruby
[12:11:54] GinoMan2440: has joined #ruby
[12:13:11] simmaniac: has joined #ruby
[12:14:28] ascarter: has joined #ruby
[12:14:34] cats: has joined #ruby
[12:15:23] bdevel: has joined #ruby
[12:16:58] Ishido: has joined #ruby
[12:18:10] SenpaiSilver: has joined #ruby
[12:21:34] conta: has joined #ruby
[12:23:18] Tempesta: has joined #ruby
[12:26:12] brent__: has joined #ruby
[12:28:43] Ishido: has joined #ruby
[12:30:28] herbmillerjr: has joined #ruby
[12:35:24] splitshot: has joined #ruby
[12:42:58] kruppm: has joined #ruby
[12:43:25] jakk: has joined #ruby
[12:47:28] vondruch: has joined #ruby
[12:47:36] conta: has joined #ruby
[12:48:01] oleo: has joined #ruby
[12:49:38] cseder: has joined #ruby
[12:51:13] vondruch: has joined #ruby
[12:53:45] Ishido: has joined #ruby
[12:56:14] coderhut: has joined #ruby
[12:56:51] alveric: has joined #ruby
[12:58:34] brent__: has joined #ruby
[12:59:21] dcunit3d: has joined #ruby
[13:00:47] mathys: has joined #ruby
[13:04:12] runescape07rsps: has joined #ruby
[13:04:17] my123_: has joined #ruby
[13:04:33] my123_: has joined #ruby
[13:05:13] jottr: has joined #ruby
[13:05:30] agimenez: has joined #ruby
[13:05:36] ekinmur: has joined #ruby
[13:07:12] haylon: has joined #ruby
[13:12:37] monzie: has joined #ruby
[13:15:56] ascarter: has joined #ruby
[13:16:37] bdevel: has joined #ruby
[13:22:33] Gasher: has joined #ruby
[13:22:45] Gasher: hello, I'm getting the following error when trying to install the gtk3 gem: https://gist.github.com/anonymous/f99128834c4d0c2564e35fc2a8595d82
[13:22:57] Guest73958: I mean, I'm getting an error, and that's the log
[13:23:48] __Yiota: has joined #ruby
[13:24:58] alveric: has joined #ruby
[13:25:23] ineb: it might be better to post the error :)
[13:25:32] gnufied: has joined #ruby
[13:25:37] chouhoulis: has joined #ruby
[13:25:42] PatrikasZvaigzde: has joined #ruby
[13:25:43] Ishido: has joined #ruby
[13:26:56] Guest73958: it's the standard "failed to build gem native extension"
[13:27:45] ineb: yes and most likely you are missing something on your system and therefore it fails
[13:27:50] ineb: for example this line: ave_package: checking for cairo version (>= 1.2.0)... -------------------- no
[13:28:28] ineb: afaik gtk3 hardly depends on cairo, so if you dont have it, it wont build
[13:29:08] Guest73958: without the devel though
[13:30:07] Guest73958: yeah, builds cairo now, thanks
[13:30:27] haylon: has joined #ruby
[13:33:16] chouhoulis: has joined #ruby
[13:35:34] im0nde: has joined #ruby
[13:35:54] __Yiota: has joined #ruby
[13:40:07] splitshot: has joined #ruby
[13:46:12] tvon: has joined #ruby
[13:46:14] ddddddd: has joined #ruby
[13:51:55] mrconfused: has joined #ruby
[13:52:06] DLSteve_: has joined #ruby
[13:54:48] mrconfused_: has joined #ruby
[13:54:53] truenito: has joined #ruby
[13:57:57] DoubleMalt: has joined #ruby
[13:59:27] tvon: has joined #ruby
[14:01:43] griffindy: has joined #ruby
[14:01:48] tvon: has joined #ruby
[14:02:43] tvon: has joined #ruby
[14:06:17] jottr: has joined #ruby
[14:07:06] Danny: has joined #ruby
[14:07:55] jakk: has joined #ruby
[14:10:20] mim1k: has joined #ruby
[14:10:37] miah_: has joined #ruby
[14:16:58] gaurav: has joined #ruby
[14:18:27] Rodya_: has joined #ruby
[14:19:53] ascarter: has joined #ruby
[14:21:41] theunraveler: has joined #ruby
[14:21:49] jottr: has joined #ruby
[14:22:07] Triskelion5: has joined #ruby
[14:22:58] ekinmur: has joined #ruby
[14:24:07] piotrj: has joined #ruby
[14:25:13] ResidentBiscuit: has joined #ruby
[14:25:49] uZiel: has joined #ruby
[14:28:40] __Yiota: has joined #ruby
[14:32:26] cpruitt: has joined #ruby
[14:32:42] alex``: has joined #ruby
[14:34:24] bahamas: has joined #ruby
[14:35:55] Tau: has joined #ruby
[14:41:43] endemic: has joined #ruby
[14:42:47] cseder: has joined #ruby
[14:44:14] Nahra: has joined #ruby
[14:45:01] cpruitt: has joined #ruby
[14:49:33] Ishido: has joined #ruby
[14:49:55] gizmore: has joined #ruby
[14:54:12] comet23: has joined #ruby
[14:54:16] comet23: how is my code?
[14:54:17] comet23: https://gist.github.com/anonymous/fbb9796d62917120a6ebd05e57b1be4c
[14:54:31] comet23: i did not code the helper method that's on the first line so please disregard
[14:56:40] __Yiota: has joined #ruby
[14:57:05] AnoHito_: has joined #ruby
[14:58:55] mrconfused: has joined #ruby
[15:00:46] imperator: has joined #ruby
[15:01:07] imperator: good morning
[15:02:25] cseder: good evening
[15:03:20] imperator: does mime-types just check the extension when determing a file type?
[15:03:40] patarr: has joined #ruby
[15:08:00] Nahra: has joined #ruby
[15:10:19] morfin: there is also magic bytes
[15:12:11] mrconfused_: has joined #ruby
[15:13:20] anjen: has joined #ruby
[15:13:28] jakk: has joined #ruby
[15:13:34] mwlang: has joined #ruby
[15:13:39] snowcrshd: has joined #ruby
[15:16:17] Nahra: has joined #ruby
[15:16:34] anjen: Hi, I might be in the wrong group here, but I'll ask anyway. I'm in rails 3.2, debuggin using Aptana Studio. When I hit a respond_to block, instead of stopping on the specified line, mime_respons.rb pops up, so I have no diea what's gong on inside the block. Is there a way around this behavior?
[15:16:46] mwlang: hmmm….I’m a little bit shocked Ruby’s Float leads to rounding errors on even simple numbers. 1045.85 * 100 => 104584.99999999999 I can understand rounding errors when you have, say 4 or 5 digits, but 2? :-o
[15:16:59] anjen: *mime_responds.rb
[15:18:02] bdevel: has joined #ruby
[15:18:10] urux: has joined #ruby
[15:18:44] comet23: umm.... i disagree with this:
[15:18:45] comet23: If you've been following along with the progression of Tic Tac Toe labs you've probably already built lots of the methods required to solve this lab. As you solve this lab, when you encounter a requirement you have previously solved, like defining the WIN_COMBINATIONS constant, or the #display_board method, you should take a second and find your old code. The ability to recognize previously solved problems and integrate a known soluti
[15:18:45] urux: has joined #ruby
[15:18:52] AnoHito_: has joined #ruby
[15:20:51] anjen: mwlang: that is pretty bad. Even 1045.85 *100.0 produces the same result.
[15:20:52] mwlang: So, experimenting with combinations of math operations…is this the best way to convert dollars and cents to just cents? (1045.85 * 100.0).round.to_i => 104585
[15:22:05] mwlang: anjen: yeah. I thought Ruby must be horribly broken, but even python 2.7 produces same answer!
[15:22:53] anjen: mwlang: (1045.85*100.0).round produces the correct result
[15:23:32] ascarter: has joined #ruby
[15:23:45] patarr: has joined #ruby
[15:24:35] jottr: has joined #ruby
[15:24:36] synthroid: has joined #ruby
[15:25:34] joelwallis: has joined #ruby
[15:25:44] mwlang: anjen: right you are! I thought the additional #to_i was needed, but rounding gives a Fixnum. (1045.85 * 100).round.class.to_s => Fixnum
[15:26:03] mrconfused: has joined #ruby
[15:26:21] anjen: mwlang, as a workaround, we operate in pennies and convert later. fwiw...
[15:26:41] anjen: (using the money gem)
[15:26:48] mwlang: that’s essentially what I’m moving this solution towards.
[15:26:57] mwlang: I just need the correct pennies from the Float
[15:27:09] mwlang: ACTION goes to find money gem...
[15:27:23] anjen: lol, I hear ya. I'm struggling with a version update m'self.
[15:28:20] anjen: fwiw, we're using collectiveidea-money. Notr sur eif it'll work with your verison but ...
[15:28:55] anjen: cripes..typing skills are down today ...*Not sure if it'll...*
[15:29:08] tvon: has joined #ruby
[15:30:22] mwlang: Ah, I was looking at https://github.com/RubyMoney/money which seems very solid on the surface.
[15:30:54] mwlang: It has all the facilities I need at least…representing amounts in specific currencies and converting them.
[15:30:54] anjen: whichever works for you...good luck!
[15:35:08] cdg_: has joined #ruby
[15:38:59] enterprisey: has joined #ruby
[15:39:09] antgel: has joined #ruby
[15:39:41] _2easy: Has anyone read blue or red book for DDD?
[15:40:16] _2easy: I wonder which of them to read first.
[15:44:01] patarr: has joined #ruby
[15:47:44] brent__: has joined #ruby
[15:48:34] brent__: has joined #ruby
[15:51:11] __Yiota: has joined #ruby
[15:53:29] imperator: has left #ruby: ("Leaving")
[15:53:45] conta: has joined #ruby
[15:56:24] Dimik: has joined #ruby
[15:57:22] mim1k: has joined #ruby
[15:59:56] enterprisey: has joined #ruby
[16:00:48] mwlang: _2easy: "You take the blue pill, the story ends. You wake up in your bed and believe whatever you want to believe. You take the red pill, you stay in Wonderland, and I show you how deep the rabbit hole goes." :-D
[16:01:36] uZiel: has joined #ruby
[16:01:37] mwlang: but seriously, no idea what the blue and red book for DDD is. got a link for them?
[16:06:13] patarr: has joined #ruby
[16:08:27] snowcrshd: has joined #ruby
[16:08:45] Ishido: has joined #ruby
[16:10:24] snowcrshd: has joined #ruby
[16:12:06] Tau: has left #ruby: ()
[16:12:16] planigan: has joined #ruby
[16:14:47] alex``: has joined #ruby
[16:15:16] im0nde: has joined #ruby
[16:16:25] amclain: has joined #ruby
[16:17:08] zacts: has joined #ruby
[16:18:49] Renich: has joined #ruby
[16:19:44] svara: has joined #ruby
[16:23:51] weaksauce: has joined #ruby
[16:25:41] ascarter: has joined #ruby
[16:26:38] patarr: has joined #ruby
[16:27:27] Renich_: has joined #ruby
[16:29:17] gusrub: has joined #ruby
[16:29:48] mrconfused: has joined #ruby
[16:33:18] _2easy: mwlang: nice one :D
[16:33:39] _2easy: blue: https://www.amazon.com/Domain-Driven-Design-Tackling-Complexity-Software/dp/0321125215
[16:33:40] brent__: has joined #ruby
[16:33:51] snowdt: has joined #ruby
[16:34:18] _2easy: red https://www.amazon.com/Implementing-Domain-Driven-Design-Vaughn-Vernon/dp/03218345: https://www.amazon.com/Implementing-Domain-Driven-Design-Vaughn-Vernon/dp/0321834577
[16:35:05] snowdt: hello, is there any "idiomatic" way to get the array with smaller number? e.g. [ [ "Book 1", 10 ], [ "Book 2", 11 ], [ "Book 3", 3 ] ]
[16:35:07] _2easy: (sorry for double linke)
[16:36:20] _2easy: snowdt: arr.min {|x| x[1]}
[16:36:48] mwlang: _2easy: they both look good to me. Red one looks more introductory. Blue one looks like it gets more advanced quicker.
[16:37:50] apeiros: _2easy: that'd need min_by, not min.
[16:38:34] _2easy: apeiros: ruby 2.3.0 in irb works for me
[16:38:38] mwlang: snowdt: [ [ "Book 1", 10 ], [ "Book 2", 11 ], [ "Book 3", 3 ] ].min_by(&:last)
[16:38:47] apeiros: _2easy: "works" != "does what you want"
[16:38:57] apeiros: or rather "seems to work" != …
[16:39:44] comet23: so the general rule for programming is that if your code works it's good right?
[16:39:49] __Yiota: has joined #ruby
[16:40:24] apeiros: comet23: I'd not subscribe to that, no
[16:40:31] Papierkorb: not sure if troll
[16:40:54] comet23: how is my code?
[16:40:57] snowdt: yeah the first one doesn't work, actually it just prints the first one
[16:41:08] gothicsouth: has joined #ruby
[16:41:09] snowdt: thank you mwlang, _2easy
[16:41:26] snowdt: ust prints the first array*
[16:41:41] comet23: https://gist.github.com/anonymous/fbb9796d62917120a6ebd05e57b1be4c
[16:41:42] xfbs: has joined #ruby
[16:41:44] _2easy: apeiros: i don't understand what you mean. Could you elaborate more on this?
[16:42:24] apeiros: _2easy: your code produced a result which for *one specific* case was correct. you concluded from that, that your code "works". you were mistaken.
[16:47:00] xco: has joined #ruby
[16:47:11] patarr: has joined #ruby
[16:47:16] xco: is this even possible? i need help? https://gist.github.com/siaw23/2421f3a42bb04968ebab4a94cecee515
[16:47:27] _2easy: apeiros: ok, I see my mistake. thank you!
[16:47:47] apeiros: xco: not possible like that, no
[16:48:00] apeiros: meth(1,2,{params: …}, 3, 4) # this is possible, though
[16:48:23] SeepingN: has joined #ruby
[16:48:28] apeiros: the argument order in ruby is required to be: positional args, keyword args, block arg. you can't mix any of those.
[16:48:57] apeiros: by using {} we make the keyword argument a regular hash.
[16:49:18] Renich: has joined #ruby
[16:49:29] xco: let me edit and ask another question :D
[16:50:34] HoierM: has joined #ruby
[16:51:58] xco: apeiros: how about this? https://gist.github.com/siaw23/2421f3a42bb04968ebab4a94cecee515
[16:52:28] [Butch]: has joined #ruby
[16:52:28] apeiros: not possible either. optional positional arguments must come after required positional arguments.
[16:53:34] apeiros: you can fake it using something like `RequiredArg=Object.new; def foo(a,b=1,c=RequiredArg); raise ArgumentError, "…" if c.equal?(::RequiredArg); … end
[16:54:24] xco: apeiros: i wouldn’t want to go that path
[16:54:28] xco: how about this? https://gist.github.com/siaw23/2421f3a42bb04968ebab4a94cecee515
[16:55:01] apeiros: did you try it? :)
[16:55:19] xco: not yet
[16:55:25] apeiros: you know about irb and/or pry, yes?
[16:55:57] apeiros: for "does X work" type of questions, I suggest you use those.
[16:56:22] apeiros: and then when you need help in either interpreting what you see or finding a way to make it possible, ask here.
[16:56:22] xco: this is more like “how do i do it?”
[16:56:33] apeiros: that's not reflected by your questions atm.
[16:57:32] apeiros: anyway, refinement of what I said above re arg order: required positional args, optional positional args, keyword args (required/optional can be in any order here), block arg
[17:00:27] zacts: has joined #ruby
[17:01:11] cdg: has joined #ruby
[17:02:31] cdg: has joined #ruby
[17:03:12] cdg_: has joined #ruby
[17:04:35] Eiam: has joined #ruby
[17:07:36] patarr: has joined #ruby
[17:11:00] electrostat: has joined #ruby
[17:11:23] skweek: has joined #ruby
[17:12:21] xco: what’ll be the simplest way to get “params: {money: "dollar”}” out of a variable like a = {params: {money: "dollar"}}?
[17:12:44] apeiros: a[:params]
[17:12:53] apeiros: oh, wait…
[17:13:14] apeiros: `params: {money: "dollar”}` as a standalone is not valid. so elaborate on what exactly you mean.
[17:13:24] jakk: has joined #ruby
[17:13:37] xco: a is a hash
[17:13:52] xco: i want it to return its’ first value
[17:13:59] xco: i mean item
[17:14:31] xco: which happens to be a hash too
[17:14:42] Zarthus: a[a.keys.first]
[17:15:10] apeiros: so you want `{money: "dollar"}`, not `params: {money: "dollar"}`=
[17:15:30] xco: `params: {money: "dollar"}`
[17:15:35] apeiros: again, that makes no sense.
[17:16:16] apeiros: you can either have :params plus {money: "dollar"}, or {params: {money: "dollar"}}, but not params: {money: "dollar"},
[17:16:43] xco: ok i thought it made sense and there was a way to do it
[17:16:43] apeiros: so again, what do you want? you can't have something that's not valid.
[17:17:12] Zarthus: you could have `params = a[:params]` at best
[17:17:39] apeiros: that's mean they'd have {money: "dollar"} (in params), which they refuted…
[17:17:52] apeiros: but I think they don't really understand what they want anyway… so…
[17:18:18] Zarthus: maybe he wants a string
[17:18:18] apeiros: xco: maybe provide us the full picture? your questions make little sense and seem out of context. context might help overcome your weakness to specify what you want.
[17:18:21] Zarthus: that would be painful
[17:18:28] apeiros: who knows!
[17:19:17] xco: ok let me write it in a gist ;)
[17:19:34] bdevel: has joined #ruby
[17:22:06] jottr: has joined #ruby
[17:22:37] __Yiota: has joined #ruby
[17:23:01] Bock: has joined #ruby
[17:24:11] millerti: has joined #ruby
[17:25:17] catphish: has joined #ruby
[17:26:10] xco: does this make sense? https://gist.github.com/siaw23/e2e0d2ccd7d98725f78e69e4c6643c84
[17:26:33] catphish: i want to implement "cp --reflink" in ruby, this requires calling an ioctl BTRFS_IOC_CLONE, what would be the correct way to get this linux system constant into ruby?
[17:27:10] apeiros: xco: just invoke it as `meth(country, capital, currency, one: 1, two: 2)`
[17:27:23] catphish: i actually don't know what it's value is, it's established by a macro in C: #define BTRFS_IOC_CLONE _IOW(BTRFS_IOCTL_MAGIC, 9, int)
[17:27:32] apeiros: or `meth(country, capital, currency, {one: 1, two: 2})` if you prefer the explicit braces
[17:28:02] xco: not that easy
[17:28:04] patarr: has joined #ruby
[17:28:07] xco: params:
[17:28:11] xco: HAS to be in the invocation
[17:28:32] apeiros: you seem to still leave away lots of required context.
[17:28:39] apeiros: *why* does it have to be the invocation?
[17:28:55] xco: because the frameworks (Rails) i’m using wants it present
[17:29:02] Cyrus: has joined #ruby
[17:29:18] seggy: has joined #ruby
[17:30:59] ascarter: has joined #ruby
[17:31:46] minimalism: has joined #ruby
[17:32:28] apeiros: xco: ok, who implements what in your scenario?
[17:32:33] apeiros: do you implement meth or rails?
[17:32:41] apeiros: do you implement the invocation of meth or rails?
[17:34:42] apeiros: then where does rails come into play? how can it be that rails has a requirement on a method which you both implement and call?
[17:35:45] catphish: so, is there a way to get the value of a constant from /usr/include, or do i need a C extension here?
[17:36:37] FastJack: has joined #ruby
[17:36:44] apeiros: catphish: I'm not proficient in the matter, but I'd bet it means you need an extension one way or the other (fiddle, ffi or native ext)
[17:37:02] montanonic: has joined #ruby
[17:37:32] Triskelion5: has joined #ruby
[17:37:41] perniciouscaffei: has joined #ruby
[17:38:18] enterprisey: has joined #ruby
[17:38:49] ddddddd: has joined #ruby
[17:39:13] cdg: has joined #ruby
[17:39:52] hogetaro: has joined #ruby
[17:42:36] __Yiota: has joined #ruby
[17:46:27] catphish: i think FFI:ConstGenerator is what i want, just trying to work out how to use it :)
[17:46:41] apeiros: good luck :)
[17:47:12] kies: has joined #ruby
[17:48:32] patarr: has joined #ruby
[17:50:07] al2o3-cr: has joined #ruby
[17:51:08] eam: https://gist.github.com/eam/e9bbb9b767a1a98baa81ac8e3759794d
[17:55:22] catphish: this works: https://paste.ubuntu.com/24990600/
[17:56:32] vondruch_: has joined #ruby
[17:57:39] electrostat: has joined #ruby
[18:01:07] chouhoul_: has joined #ruby
[18:02:55] apeiros: xco: no answer? magic requirement then?
[18:03:43] minimalism: has joined #ruby
[18:03:45] xco: apeiros: i’m trying to work it out
[18:04:31] Ishido: has joined #ruby
[18:05:20] gusrub: has joined #ruby
[18:06:11] vondruch: has joined #ruby
[18:06:52] tAn: has joined #ruby
[18:08:58] patarr: has joined #ruby
[18:09:37] dcunit3d: has joined #ruby
[18:12:26] JoshS: has joined #ruby
[18:12:39] bed7: has joined #ruby
[18:14:38] tvon: has joined #ruby
[18:16:49] vondruch: has joined #ruby
[18:25:23] enterprisey: has joined #ruby
[18:25:42] haylon: has anyone worked with Ruby's OpenSSL Gem? I'm tryign to add an extension_factory item to a CSR, but I'm getting unexpected type, but the example shows nil, and the csr object.
[18:25:50] haylon: https://ruby.github.io/openssl/OpenSSL.html#module-OpenSSL-label-X509+Certificates
[18:27:14] haylon: You know what, I'm probably doing this wrong.
[18:29:07] vondruch: has joined #ruby
[18:29:25] patarr: has joined #ruby
[18:29:57] stryek: has joined #ruby
[18:34:26] ascarter: has joined #ruby
[18:34:55] vondruch: has joined #ruby
[18:38:34] ltem: has joined #ruby
[18:41:53] Cohedrin_: has joined #ruby
[18:43:06] vondruch: has joined #ruby
[18:43:46] jakk: has joined #ruby
[18:44:35] tycoon177: has left #ruby: ()
[18:45:42] patarr: has joined #ruby
[18:46:53] Mudstart: has joined #ruby
[18:48:37] Meeh: has left #ruby: ("Screw u guys, I'm going home!")
[18:50:21] muelleme_: has joined #ruby
[18:51:30] electrostat: has joined #ruby
[18:51:34] mikecmpbll: has joined #ruby
[18:51:36] justizin: has joined #ruby
[18:53:12] vondruch_: has joined #ruby
[18:53:55] cschneid_: has joined #ruby
[18:56:13] elsevero: has joined #ruby
[18:56:23] Gasher: has joined #ruby
[18:56:52] haylon: maybe. Looking at how to generate a key/csr using the openssl command line tool, I can generate a key and csr using a config file, but I'm not sure how that would translate into using the OpenSSL gem to set the different attributes such as Extended Key Usage
[18:57:18] bdevel: has joined #ruby
[18:57:35] cseder: anybody else having trouble installing the pg gem on the latest os x?
[18:57:55] apeiros: cseder: worked fine for me
[18:57:59] apeiros: installed pg from brew
[18:58:14] apeiros: that's the server, not the gem.
[18:58:26] cseder: apeiros yes, I had to install postgres via brew first to get it working
[18:58:33] Ishido: has joined #ruby
[18:59:07] cseder: But I usually just install Postgres.app and never had any trouble installing pg gem until now
[19:00:14] skweek: has joined #ruby
[19:00:35] patarr: has joined #ruby
[19:01:00] vondruch_: has joined #ruby
[19:02:52] knight33: has joined #ruby
[19:04:50] Rodya_: has joined #ruby
[19:05:42] workmad3: has joined #ruby
[19:06:51] haylon: This is close to what I'm doing, but I'm not sure hwo to set the ExtensionFactory settigns at CSR creation instead of signing
[19:06:53] haylon: http://users.nccs.gov/~fwang2/ruby/ruby_ssl.html
[19:07:19] vondruch_: has joined #ruby
[19:09:28] Ishido: has joined #ruby
[19:14:59] choke: has joined #ruby
[19:15:58] d10n-work: has joined #ruby
[19:18:42] jottr_: has joined #ruby
[19:19:08] vondruch_: has joined #ruby
[19:20:45] wnd_: has joined #ruby
[19:21:20] m4rCsi: has joined #ruby
[19:22:14] caw_: has joined #ruby
[19:23:57] helpa: has joined #ruby
[19:24:50] ur5us: has joined #ruby
[19:25:16] tvon: has joined #ruby
[19:26:56] ChickeNES: has joined #ruby
[19:27:06] Dark_Arc: has joined #ruby
[19:27:16] sarbs: has joined #ruby
[19:27:25] bokayio: has joined #ruby
[19:27:37] mgorbach: has joined #ruby
[19:27:47] csaunders: has joined #ruby
[19:29:07] ujjain: has joined #ruby
[19:29:07] ujjain: has joined #ruby
[19:30:01] gothicsouth: has joined #ruby
[19:30:04] mikecmpb_: has joined #ruby
[19:31:13] jnollette: has joined #ruby
[19:31:15] aglorei: has joined #ruby
[19:34:47] jenrzzz: has joined #ruby
[19:34:48] jenrzzz: has joined #ruby
[19:40:27] ascarter: has joined #ruby
[19:41:26] ModusPwnens: has joined #ruby
[19:41:55] ModusPwnens: Is it bad practice to refactor a large class by extending some related behaviour into a module that you just include back into that class?
[19:42:05] ModusPwnens: i'm having trouble finding best practices for modules to answer this question.
[19:42:20] bougyman: what do you mean by related behavior?
[19:42:26] bougyman: Will it be used by any other class?
[19:42:32] ModusPwnens: No, it won't be used by any other class.
[19:42:40] bougyman: if it's solely to make a class smaller, seems like just complicating things for religious reasons.
[19:42:46] soLucien: has joined #ruby
[19:43:06] ModusPwnens: it's also because the methods I'm encapsulating out are often changed but the rest of the code is not.
[19:43:15] bougyman: you should certainly look at if all of the behavior belongs on one class.
[19:43:17] bougyman: sometimes it does.
[19:43:33] ModusPwnens: so the idea was to extract all the commonly changed code that are all related so that engineers can just use that class for changes instead of peppering methods all over the other class.
[19:43:36] choke: has joined #ruby
[19:43:57] ModusPwnens: but i'm not sure if that's bad ruby as I'm not that experienced with ruby guidelines and best practices.
[19:44:01] patarr: has joined #ruby
[19:44:10] ModusPwnens: in java, it would certainly be wierd, but in java you can't really do mixins like you can in ruby
[19:44:50] konsolebox: has joined #ruby
[19:44:56] vondruch_: has joined #ruby
[19:45:42] marr: has joined #ruby
[19:46:40] meshsmith: has joined #ruby
[19:48:20] yxhuvud: ModusPwnens: In general, I'd say 'Favor composition over inheritance' (and using modules is in this case more or less a variant of inheritance.
[19:50:54] oleo: has joined #ruby
[19:50:57] tvon: has joined #ruby
[19:52:35] ixti: has joined #ruby
[19:52:53] ixti: Hi all! Is it normal practice to manually call `GC.start`?
[19:53:36] ixti: I'm processing a lot of CSV files (around 11K files). Each contains different amount of rows, 10 rows smallest one, 300-500K big ones...
[19:53:57] jakk: has joined #ruby
[19:54:16] ixti: Seems like without calling GC.start after each 10K rows - RSS jsut keeps growing until process OOM killed ;((
[19:56:51] yaewa: has joined #ruby
[19:57:50] tgragnato: has joined #ruby
[19:57:57] joelwallis: has joined #ruby
[19:59:25] shinnya: has joined #ruby
[20:01:08] Ishido: has joined #ruby
[20:01:37] soLucien: hi guys ! Is it possible to store credentials in the gemrc file ?
[20:02:00] Brent___: has joined #ruby
[20:02:07] soLucien: i have my own rubygems repo , and i'm trying to connect to it and install stuff from it
[20:02:49] soLucien: (it's actually a Vagrant plugin, but I expect it to be very similar to the Ruby way of installing plugins)
[20:03:32] learningruby: has joined #ruby
[20:04:39] patarr: has joined #ruby
[20:05:05] vondruch_: has joined #ruby
[20:05:28] learningruby: QUESTION: This is from The Ruby Programming Language (Matz and others) → “Every object has a well-defined class in Ruby, and that class never changes during the lifetime of the object. An object's type, on the other hand, is more fluid. The type of an object is related to its class, but the class is only part of an object's type. When we talk about
[20:05:28] learningruby: the type of an object, we mean the set of behaviors that characterize the object.” My question is: why is the type of an object more fluid? Can we change the type of an object?
[20:06:52] Rodya_: has joined #ruby
[20:08:13] Papierkorb: learningRuby: In fact you can change the behaviour of a specific object through Object#singleton_class
[20:08:40] yxhuvud: ixti: what version of ruby do you use? If you use a horribly old version then you might have reason to call GC.start manually in some regressive cases, but that should not be the case for modern Rubys.
[20:09:00] ixti: Yxhuvud: not horribly old. 2.3.0
[20:09:16] vondruch_: has joined #ruby
[20:09:26] yxhuvud: Then there shouldn't be an issue..
[20:11:40] ixti: Yeah. But, by some reason withou GC.start RSS grows like crazy :((
[20:13:59] __Yiota: has joined #ruby
[20:14:16] KeyJoo: has joined #ruby
[20:15:10] havenwood: ixti: Can you try to reproduce on 2.3.4 or better yet 2.4.1?
[20:16:12] ixti: havenwood: trying to find the way of doing that now ;D
[20:16:22] havenwood: ixti: what os/distro?
[20:16:31] soLucien: guys ? Is there a way to store credentials in gemrc files ?
[20:16:56] vondruch_: has joined #ruby
[20:16:58] domgetter: has joined #ruby
[20:17:14] lxsameer: has joined #ruby
[20:17:19] ixti: havenwood: the problem is not installing new ruby (i'm on gentoo linux with chruby - and have all latest rubies) - it's just data is on production server ;))
[20:17:27] havenwood: soLucien: Why don't you want to use?: ~/.gem/credentials
[20:17:39] havenwood: ixti: ah, gotcha
[20:18:20] learningruby: Papierkorb: oh, so I could for example take a String object and change its behaviors (override) so it would behave exactly like a Numeric object? Is that what the text mean?
[20:18:38] soLucien: heavenwood i had no idea it existed. I'm looking into it right away
[20:18:39] havenwood: ixti: It makes me wonder if you could tune the GC to be more aggressive so you don't need the manual GC.start.
[20:19:13] learningruby: Papierkorb: (but it would still be a String object, although it wouldn't behave anymore like one)
[20:19:18] havenwood: soLucien: http://guides.rubygems.org/make-your-own-gem/
[20:19:26] Brent___: has joined #ruby
[20:19:51] ixti: Hm. Good point. I guess, if I'll figure out that latest ruby behaves the same for me as 2.3.0 - then I'll think on tuning default behavior.
[20:20:23] Papierkorb: learningRuby: "behave like" is the key. Ruby does 'duck typing': if it walks like a duck, and quacks like a duck, it's a duck. Exactly like a Numeric? Nah, but Numeric is kinda special. But you could totally create a Object (Yes, you can do `Object.new`), and then through its singleton_class, modify its behaviour to mimic an object of a specific class. This is actually done in tests ("mocking").
[20:21:31] Papierkorb: learningRuby: E.g., you could teach your Object #[] and #[]= and pass it to something expecting a Hash or Array, as long that something only uses #[] and #[]= ;)
[20:22:11] bdevel: has joined #ruby
[20:23:02] jak: has joined #ruby
[20:23:09] plujon: has joined #ruby
[20:23:13] vondruch_: has joined #ruby
[20:23:35] jottr_: has joined #ruby
[20:24:56] patarr: has joined #ruby
[20:25:39] Rodya_: has joined #ruby
[20:26:43] learningruby: Papierkorb: mmm alright, I think now I get well why a “type is fluid”, but not a class. It means you can freely modify an object's behaviors, so class and type are not 100% tied to one another. But since Numeric for example is “special” as you say, than I would say that in Ruby type is fluid, yet not 100% fluid because there are certain classes wit
[20:26:43] learningruby: h special behaviors.
[20:26:53] vondruch_: has joined #ruby
[20:33:02] bdevel: has joined #ruby
[20:33:48] bdevel: has joined #ruby
[20:33:55] xco: so i’m wondering, we can find find the parent of a child object by doing child.class, can we find which class a method comes from?
[20:34:37] bdevel: has joined #ruby
[20:35:21] Papierkorb: xco: A class is an object itself. If you know how to find where an instance method comes from, you can find where a class method was defined too
[20:35:23] bdevel: has joined #ruby
[20:35:24] apeiros: xco: the class of an object is not its parent
[20:35:50] mwlang_: has joined #ruby
[20:35:51] apeiros: classes have parents, but not all objects are classes (but all classes are objects)
[20:35:58] xco: apeiros: i know it’s not its parent but you get the picture
[20:36:20] apeiros: xco: no I don't. that's the point. learn to express yourself. stop relying on others to figure out what you might mean.
[20:36:47] xco: Papierkorb understood me
[20:37:13] apeiros: maybe. he might have understood something you didn't mean, though.
[20:37:32] apeiros: &ri Method#owner xco
[20:37:33] `derpy: xco: http://ruby-doc.org/core-2.4.1/Method.html#method-i-owner
[20:37:42] apeiros: &ri Object#method xco
[20:37:42] `derpy: xco: http://ruby-doc.org/core-2.4.1/Object.html#method-i-method
[20:37:53] apeiros: also see those to figure the source of a method
[20:38:52] montanonic: has joined #ruby
[20:40:59] xco: apeiros: thanks, looking
[20:43:04] ascarter: has joined #ruby
[20:44:02] havenwood: git push tblp-staging
[20:44:11] havenwood: well, that's not going to work >.>
[20:44:26] havenwood: sorry for the noise
[20:44:56] patarr: has joined #ruby
[20:45:01] vondruch_: has joined #ruby
[20:47:25] Rodya_: has joined #ruby
[20:48:07] wilbert: has joined #ruby
[20:48:15] ljarvis: should have tried with -f havenwood
[20:53:18] vondruch_: has joined #ruby
[20:54:11] __Yiota: has joined #ruby
[20:54:23] brent__: has joined #ruby
[20:54:41] jenrzzz: has joined #ruby
[20:54:41] jenrzzz: has joined #ruby
[20:56:58] vondruch_: has joined #ruby
[21:00:38] __Yiota: has joined #ruby
[21:02:21] patarr: has joined #ruby
[21:04:14] eckhardt: has joined #ruby
[21:05:05] vondruch_: has joined #ruby
[21:06:01] knight33: has joined #ruby
[21:11:42] havenwood: ljarvis: error: You are not allowed to push code to protected branches on this project.
[21:12:00] havenwood: Friday ¯\_(ツ)_/¯ ;-P
[21:14:02] havenwood: Heh, and of course I paste the wrong error message for force pushing to protected branches.
[21:17:23] vondruch_: has joined #ruby
[21:17:55] dviola: has joined #ruby
[21:18:35] Rodya_: has joined #ruby
[21:18:42] __Yiota: has joined #ruby
[21:21:00] vondruch_: has joined #ruby
[21:22:14] jphase: has joined #ruby
[21:22:30] nowhere_man: has joined #ruby
[21:26:38] NightMonkey: has joined #ruby
[21:26:53] knight33: has joined #ruby
[21:29:11] vondruch_: has joined #ruby
[21:29:41] max_at_work: has joined #ruby
[21:30:02] max_at_work: I found Ruby's printf function, but does Ruby have an equivalent to fprintf?
[21:30:15] max_at_work: other than sprintf and then write?
[21:30:32] ixti: havenwood: 2.3.4 behaves same as 2.3.0 for m :((
[21:31:51] apeiros: max_at_work: printf is on IO
[21:31:56] apeiros: i.e. any_io.printf
[21:32:16] apeiros: I assume you looked at Kernel#printf, which is a shorthand for $stdout.printf
[21:32:49] vondruch_: has joined #ruby
[21:32:49] max_at_work: oh, great, thanks
[21:34:05] Cohedrin_: has joined #ruby
[21:35:50] PatrikasZvaigzde: has joined #ruby
[21:36:04] moei: has joined #ruby
[21:38:45] jaruga________: has joined #ruby
[21:41:09] vondruch_: has joined #ruby
[21:41:10] bed7: has joined #ruby
[21:43:26] jak: has joined #ruby
[21:45:20] postmodern: has joined #ruby
[21:46:33] ascarter: has joined #ruby
[21:46:49] vondruch_: has joined #ruby
[21:49:59] gothicsouth: has joined #ruby
[21:50:39] knight33: has joined #ruby
[21:51:52] splitshot: has left #ruby: ("Leaving")
[21:53:25] HoierM: has joined #ruby
[21:54:13] GinoMan: has joined #ruby
[21:56:56] vondruch_: has joined #ruby
[21:57:03] HoierM_: has joined #ruby
[22:00:40] patarr: has joined #ruby
[22:05:56] quobo: has joined #ruby
[22:06:47] muelleme_: has joined #ruby
[22:09:06] gothicsouth: has joined #ruby
[22:10:00] jenrzzz: has joined #ruby
[22:10:00] jenrzzz: has joined #ruby
[22:10:35] ur5us: has joined #ruby
[22:11:53] cats: has joined #ruby
[22:13:05] vondruch_: has joined #ruby
[22:14:12] bjpenn: has joined #ruby
[22:17:14] vondruch_: has joined #ruby
[22:21:06] patarr: has joined #ruby
[22:31:02] vondruch_: has joined #ruby
[22:35:11] vondruch_: has joined #ruby
[22:38:01] gizmore|2: has joined #ruby
[22:40:59] jnollette: has joined #ruby
[22:44:47] vondruch_: has joined #ruby
[22:47:09] VladGh: has joined #ruby
[22:48:55] vondruch_: has joined #ruby
[22:50:31] ascarter: has joined #ruby
[22:51:15] ekinmur: has joined #ruby
[22:53:43] dviola: has joined #ruby
[22:56:11] bkxd: has joined #ruby
[22:56:13] bkxd_: has joined #ruby
[22:58:06] montanonic: has joined #ruby
[23:00:22] FastJack: has joined #ruby
[23:01:04] vondruch_: has joined #ruby
[23:02:02] patarr: has joined #ruby
[23:03:28] Puffball: has joined #ruby
[23:05:12] vondruch_: has joined #ruby
[23:10:54] Cohedrin_: has joined #ruby
[23:12:00] jottr_: has joined #ruby
[23:12:57] moei: has joined #ruby
[23:13:09] Rodya_: has joined #ruby
[23:15:20] bdevel_: has joined #ruby
[23:15:58] mostlybadfly: has joined #ruby
[23:21:42] Rodya_: has joined #ruby
[23:23:46] uranellus: has joined #ruby
[23:23:46] uranellus: has joined #ruby
[23:25:46] jenrzzz: has joined #ruby
[23:25:46] jenrzzz: has joined #ruby
[23:27:42] alveric1: has joined #ruby
[23:27:49] Bock: has joined #ruby
[23:29:51] Puffball: has joined #ruby
[23:31:02] kobain: has joined #ruby
[23:34:52] vondruch_: has joined #ruby
[23:43:02] texasmynsted: has joined #ruby
[23:43:15] choke: has joined #ruby
[23:46:06] d^sh: has joined #ruby
[23:49:02] vondruch_: has joined #ruby
[23:51:34] s2013: has joined #ruby
[23:55:54] ascarter: has joined #ruby
[23:58:34] comet23: has joined #ruby
[23:58:37] comet23: check it out!
[23:58:40] comet23: i did it all by myself
[23:58:55] comet23: wow i feel like i'm 5 years old again and proud of accomplishing something lol
[23:59:30] comet23: https://repl.it/JJ5F/0