« Back to channel list

#ruby - 01 May 2018

« Back 1 day Forward 1 day »
[00:04:56] gizmore: you get that No ports are being checked error?
[00:07:12] alfiemax: has joined #ruby
[00:11:07] bmurt: has joined #ruby
[00:12:33] jnollette: has joined #ruby
[00:18:23] jyaworski: has joined #ruby
[00:18:57] x77686d: has joined #ruby
[00:26:08] muffiny: has joined #ruby
[00:39:56] tAn: has joined #ruby
[00:40:02] eckhardt_: has joined #ruby
[00:44:30] random_auroras: has joined #ruby
[00:46:14] random_auroras: In Gemfiles, what does %r!^(stuff1|stuff2)!i do? I presume it's a regex, but can other important details are there? (Is ^ part of Ruby syntax or is it the regex start-of-line?
[00:50:28] alfiemax: has joined #ruby
[00:59:18] mroutis: has joined #ruby
[01:00:33] segy_: has joined #ruby
[01:02:59] raynold: has joined #ruby
[01:05:48] gizmore|2: has joined #ruby
[01:11:25] cagomez: has joined #ruby
[01:11:53] hlmjr: has joined #ruby
[01:19:35] Zarthus: random_auroras: pretty confident that's part of the regex, where ! is the delimiter
[01:26:43] shtirlic: has joined #ruby
[01:26:55] Dimik: has joined #ruby
[01:28:00] jeffreylevesque: has joined #ruby
[01:29:09] havenwood: random_auroras: It's the same delimiter rules as the other % literals.
[01:29:17] havenwood: random_auroras: You'll most often see: %r()
[01:29:52] havenwood: various delimiters - i guess I shouldn't say "most often" without data in this case
[01:30:08] ruby[bot]: havenwood: # => // (https://eval.in/997536)
[01:31:17] random_auroras: For some reason, I'm having trouble getting jekyll 'index.html' to be included from a gem plugin.
[01:31:30] random_auroras: Theme, that is.
[01:31:32] havenwood: I guess %r{} is popular.
[01:32:22] sarmiena_: has joined #ruby
[01:32:25] jaequery: has joined #ruby
[01:34:52] random_auroras: -_- I think I've been struggling with something Jekyll doesn't do by design.
[01:36:38] gix: has joined #ruby
[01:39:02] gix: has joined #ruby
[01:40:29] arescorpio: has joined #ruby
[01:41:56] dinfuehr: has joined #ruby
[01:46:26] jyaworski: has joined #ruby
[01:51:18] random_auroras: Well, thanks people.
[01:53:11] kurko_: has joined #ruby
[01:58:01] jyaworski: has joined #ruby
[02:03:40] Yzguy: has joined #ruby
[02:03:57] random_auroras: has left #ruby: ("WeeChat 1.6")
[02:07:54] kapil___: has joined #ruby
[02:08:01] Yzguy: has joined #ruby
[02:08:07] alfiemax: has joined #ruby
[02:19:23] jyaworski: has joined #ruby
[02:19:25] x77686d: has joined #ruby
[02:21:43] white_lilies: has joined #ruby
[02:25:50] jready: has joined #ruby
[02:27:12] jready: has joined #ruby
[02:29:06] lystra_: has joined #ruby
[02:30:37] alfiemax: has joined #ruby
[02:32:52] alfiemax_: has joined #ruby
[02:33:07] Vashy: hi all, I'm trying to capture the output of airmon-ng, I tried something like: IO.popen(`airmon-ng wlan0`) but that doesn't work (or at least not as I expected)
[02:33:31] Vashy: basically the output of airmon-ng is constantly changing
[02:33:56] Vashy: sorry airodump-ng is what I'm trying to get the output for
[02:34:53] Vashy: here's an example of it running: https://youtu.be/AUPw15m-6uM?t=29s
[02:35:08] Vashy: does anyone know how to capture that kind of output?
[02:35:50] jready: has joined #ruby
[02:37:46] ResidentBiscuit: has joined #ruby
[02:59:07] x77686d: has joined #ruby
[03:02:50] tAn: has joined #ruby
[03:15:36] alfiemax: has joined #ruby
[03:16:43] garyserj: I can't figure out how to get my ruby program to see a file uploaded from a form. I am using sinatra. I have a form with action and method and <input type="file" /> and <input type="submit" /> And when I click submit it goes to that route in sinatra, I wrote "posted#{params}" so I could view the params thinking maybe the file might be there but it isn't. I can't see where the file is sent
[03:16:43] garyserj: or how to access it. I tried adding enctype="multipart/form-data" as an attribute to the opening form tag, but it didn't help.
[03:20:50] weaksauce: garyserj https://stackoverflow.com/questions/2686044/file-upload-with-sinatra#5134590
[03:22:22] govg: has joined #ruby
[03:27:14] konsolebox: has joined #ruby
[03:28:00] jready: has joined #ruby
[03:37:08] orbyt_: has joined #ruby
[03:41:10] jyaworski: has joined #ruby
[03:44:13] tomphp: has joined #ruby
[03:44:58] Matthew1: has joined #ruby
[03:50:27] rikai: has joined #ruby
[03:56:21] jyaworski: has joined #ruby
[03:58:35] gix-: has joined #ruby
[03:59:48] marxarelli: has joined #ruby
[04:05:52] chouhoulis: has joined #ruby
[04:06:06] garyserj: weaksauce: i get an error from that code, but my params is blank as mentioned so that is probably why i get an error. the q is why is my params blank
[04:17:35] jyaworski: has joined #ruby
[04:21:07] vasilakisFiL: has joined #ruby
[04:22:29] devyn: has joined #ruby
[04:26:32] sarmiena_: has joined #ruby
[04:32:22] tAn: has joined #ruby
[04:37:25] jyaworski: has joined #ruby
[04:38:19] nadir: has joined #ruby
[04:55:00] biberu: has joined #ruby
[05:08:31] n008f4g_: has joined #ruby
[05:10:24] x77686d: has joined #ruby
[05:19:48] sauvin: has joined #ruby
[05:21:53] garyserj: weaksauce: turned out to be https://stackoverflow.com/questions/6464205/eoferror-bad-content-body-when-trying-to-upload-file-to-rails?rq=1 the input element was missing a name attribute
[05:31:24] lystra_: has joined #ruby
[05:49:53] jyaworski: has joined #ruby
[05:52:10] conta: has joined #ruby
[05:59:43] rippa: has joined #ruby
[06:04:49] dr3wo: has joined #ruby
[06:09:02] ldepandis: has joined #ruby
[06:11:52] Ryzokuken: has joined #ruby
[06:14:54] amar: has joined #ruby
[06:19:29] jyaworski: has joined #ruby
[06:32:56] amelliaa: has joined #ruby
[06:55:20] phaul: has joined #ruby
[06:56:54] amar: has joined #ruby
[07:00:32] marxarelli: has joined #ruby
[07:01:55] tAn: has joined #ruby
[07:02:31] twe4ked: has joined #ruby
[07:04:25] garyserj: I know in sinatra i can do e.g. haml :blahpage but what if I want to do a symbol with a variable name .. I can't get these to work haml :#{filename} or haml(:#{filename})
[07:05:48] apeiros: garyserj: filename = :yourfile; haml filename
[07:06:21] apeiros: don't overcomplicate symbols. they are values, just like strings or integers. they have no special relation with variables.
[07:06:55] garyserj: in my code I don't know the name of the file
[07:07:02] garyserj: the name of the file is a string stored in filename
[07:07:16] tomphp: has joined #ruby
[07:08:18] phaul: &ri String#to_sym
[07:08:26] apeiros: derpy is off :(
[07:08:36] apeiros: adaedra seems to be off too
[07:09:27] garyserj: i find some results on google that relate to to_sym that i will try, thanks
[07:10:17] apeiros: garyserj: just use the `ri` command in your shell or ruby-doc.org
[07:10:26] apeiros: google is a *terrible* replacement for language docs.
[07:10:50] suukim: has joined #ruby
[07:11:33] dionysus69: has joined #ruby
[07:12:55] jyaworski: has joined #ruby
[07:34:00] tAn: has joined #ruby
[07:35:19] marius: has joined #ruby
[07:37:15] blackmesa: has joined #ruby
[07:38:03] conta: has joined #ruby
[07:41:31] marius: has joined #ruby
[07:42:36] dionysus69: has joined #ruby
[07:47:35] amar: has joined #ruby
[07:50:30] ujjain: has joined #ruby
[08:04:16] tomphp: has joined #ruby
[08:17:10] clemens3_: has joined #ruby
[08:18:56] jyaworski: has joined #ruby
[08:20:53] gustavn64: has joined #ruby
[08:21:29] gustavn64: I haven't used Ruby for a very long time now. What's the canonical way to install it? I'm using Windows 10 so I can use "Ubuntu on Windows"
[08:21:53] gustavn64: Is there any good guide about this kind of stuff? Kind of like that guide for Python (I forgot its name)
[08:23:59] tAn: has joined #ruby
[08:24:56] jokester: if you are familiar with linux, WSL (linux on windows stuff) may be the faster way to go
[08:26:52] gustavn64: jokester: Yeah, I have that installed.
[08:29:09] Matthew1: has joined #ruby
[08:29:19] livcd: gustavn64: rvm? docker?
[08:30:21] gustavn64: livcd: Alright, I'll use RVM. Is it recommended to install that through APT?
[08:30:40] gustavn64: or, I don't even know if it's there
[08:32:09] livcd: I would decide first what's the use case
[08:47:14] amar: has joined #ruby
[08:52:14] amar: has joined #ruby
[08:52:39] amar: has joined #ruby
[09:01:18] dhollin3: has joined #ruby
[09:11:57] ByronJohnson: has joined #ruby
[09:23:53] Mike11: has joined #ruby
[09:38:56] tomphp: has joined #ruby
[09:40:57] saTchymoto: has joined #ruby
[09:42:39] venmx: has joined #ruby
[09:45:37] Radar: did someone say something?
[09:52:09] ur5us: has joined #ruby
[09:54:25] deathwishdave: has joined #ruby
[10:01:41] jyaworski: has joined #ruby
[10:04:19] ipe: has joined #ruby
[10:06:23] alex``: has joined #ruby
[10:08:19] schneider-: has joined #ruby
[10:16:52] karapetyan: has joined #ruby
[10:17:22] ellcs: has joined #ruby
[10:21:27] jyaworski: has joined #ruby
[10:30:01] deathwishdave: has joined #ruby
[10:32:59] leitz: has joined #ruby
[10:32:59] x77686d: has joined #ruby
[10:33:50] schneider-: has joined #ruby
[10:34:54] dr3wo: has joined #ruby
[10:39:53] karapetyan: has joined #ruby
[10:51:19] tvw: has joined #ruby
[10:59:08] AJA4350: has joined #ruby
[11:00:58] darix: has joined #ruby
[11:03:45] leitz: Newb question. If "my_method" takes a file and returns a line from the file, should the exception handling be in the method or in whatever calls it? Method will get called several times in varieous ways.
[11:05:05] GodFather_: has joined #ruby
[11:06:05] apeiros: leitz: if your exception handling is in the method, what will the method do about the exception?
[11:06:32] nickjj: has joined #ruby
[11:07:17] leitz: apeiros, my_method woudl return nil, and let the caller deal with it. That's the theory, anyway.
[11:07:45] leitz: When I did it before the method was failing but I had covered the exception so well I missed the failure.
[11:07:47] apeiros: so the method doesn't really deal with it anyway - but that's the point of exception handling: dealing with it.
[11:08:24] apeiros: in other words: if you can't actually do anything about an exception, then don't handle it. let it propagate up to a point where you *can* do something meaningful about it.
[11:08:28] tomphp: has joined #ruby
[11:09:49] leitz: Ah. So the caller has to decide to put in a different value, raise the exception higher, or whatever?
[11:10:34] apeiros: caller obeys the same rule - if it can't do any meaningful thing about an exception, it shouldn't even rescue and just let it propagate.
[11:11:17] apeiros: so the thing you as a programmer have to think about is: where can you do something meaningful about which exception? and then place the exception handling there.
[11:11:41] ur5us: has joined #ruby
[11:12:33] leitz: Here's the current code: https://github.com/makhidkarun/2d6_ogl_chargen/blob/master/lib/character_tools.rb#L200-L219
[11:14:11] leitz: I'm bouncing between reading "Refactoring (Ruby edition)" and "Growing opbject oriented software guided by tests".
[11:14:35] apeiros: yeah, from a glance I'd say I'd check on program startup whether all expected files exist and are readable and abort there with a user-friendly message
[11:14:43] apeiros: and in get_random_line_from_file I'd just crash hard
[11:15:14] leitz: While my code may be Apprentice level I'd like it to be well documented, clean, and tested Apprentice level. :)
[11:15:35] RougeR: has joined #ruby
[11:15:35] RougeR: has joined #ruby
[11:16:00] kapil___: has joined #ruby
[11:16:01] leitz: Not sure "all exepected files" is the right path as there are several files that don't get called, depending on the options chosen.
[11:16:28] apeiros: File.readlines(fname).grep(/(?!.*#).{4{/).sample.chomp
[11:17:09] leitz: This is the character generation thing I've been working on for a while.
[11:17:09] apeiros: leitz: does that matter? i.e., even if a file is not used in one invocation, is it reasonable to have an installation of your program where one of the files is missing?
[11:17:27] apeiros: yes, I'm aware. travelers iirc
[11:17:41] leitz: Traveller, yup.
[11:17:52] leitz: ACTION is thinking about "does it matter"...
[11:18:57] apeiros: I'm not talking about reading all files. just ensuring they're there and readable. i.e. `all_files = ["array", "with", "all", "paths"]; all_files.all? { |path| File.readable?(path) }`
[11:21:47] leitz: Understood. Your question hits on another big issue that I need to learn; "program building". The code I have has grown bit by bit and pretty much only works on my machine.
[11:22:19] leitz: I understand the idea of Modules as mixins but I'm not really understanding Modules as transportable code.
[11:22:44] jinie: has joined #ruby
[11:22:57] leitz: Building a gem by reading a line from a book is one thing, setting up your gem to work in a totally clean environment is another.
[11:23:16] leitz: Setting up the gem to make sense to a real programmer is something else, too.
[11:24:28] apeiros: the "mixin" aspect is the "transportable" (IMO rather "reusable") code part…
[11:24:39] apeiros: i.e. you can mix it into multiple classes and all use the same methods.
[11:24:50] apeiros: Enumerable being a prominent example of reusing code
[11:28:39] saTchymoto: has joined #ruby
[11:31:35] dr3wo: has joined #ruby
[11:33:33] silviu: has joined #ruby
[11:34:59] leitz: Ah, various dogs and cats fed. Back to Ruby....
[11:35:14] leitz: I've seen Modules and Classes in Modules, which confused me.
[11:35:35] apeiros: are files and folders in folders confusing too?
[11:35:47] leitz: I've also seen the lib directory of a gem just hold a reference to other files elsewhere.
[11:35:50] apeiros: (or directories, if you prefer that term)
[11:37:23] leitz: I don't understand the levels of indirection and encapsulation. Module as mixin, but multimple levels of "mixin", to include classes?
[11:37:35] leitz: Or is there a different use for Module?
[11:37:44] apeiros: you're confusing unrelated things
[11:37:50] apeiros: you can mix in a module.
[11:37:55] leitz: Not surprised.
[11:37:55] apeiros: you can use a module to namespace things.
[11:38:01] apeiros: the two things are not related.
[11:38:11] leitz: Ah, that makes sense.
[11:38:15] apeiros: (or barely related)
[11:39:09] apeiros: namespace things -> nest modules/classes within modules/classes. works almost exactly the same as nesting files/directories in directories. it's mostly organizational.
[11:39:39] apeiros: ::Foo and ::Bar::Foo are two different constants. e.g. you could have YourProject::Array which is not the same as Array.
[11:40:26] leitz: Seeing a second use of Module as "Namespace" explains it. I understand the concept but most of my coding has been pretty small stuff so far.
[11:41:26] silviu: has joined #ruby
[11:49:20] dr3wo: has joined #ruby
[11:50:20] dr3wo: has joined #ruby
[11:50:21] Ryzokuken: has joined #ruby
[11:51:10] silviu: has joined #ruby
[11:51:15] psychicist__: has joined #ruby
[11:57:23] schneider-: has joined #ruby
[11:59:06] nnm: has joined #ruby
[11:59:37] leitz: Cool! My program is 5.25% documented, per rdoc. I see an opportunity here. :)
[12:01:12] amar: has joined #ruby
[12:02:20] dcvetkovic: has joined #ruby
[12:03:26] synthroid: has joined #ruby
[12:04:11] conta: has joined #ruby
[12:05:26] tomphp: has joined #ruby
[12:11:55] _antares_: has joined #ruby
[12:14:16] FunkyChunky: has joined #ruby
[12:14:52] karapetyan: has joined #ruby
[12:17:37] ciscam: has joined #ruby
[12:19:45] jyaworski: has joined #ruby
[12:25:10] ellcs: has joined #ruby
[12:34:50] darix: leitz: too much documentation. you should remove some.
[12:35:31] leitz: Hey darix.
[12:35:55] leitz: Too late! I'm now at an overwhelming 6.50%!
[12:37:35] conta: has joined #ruby
[12:45:52] conta: has joined #ruby
[12:56:45] karapetyan: has joined #ruby
[13:01:30] ogres: has joined #ruby
[13:02:53] jcalla: has joined #ruby
[13:04:49] bmurt: has joined #ruby
[13:10:12] dcvetkovic: hi guys, I have searched the Ruby docs and Googled the matter as well... I am looking for a loop construct that would something along the lines of do...while... but which would have that one more extra iteration
[13:11:40] clemens3: has joined #ruby
[13:15:19] havenwood: dcvetkovic: Technically you can begin/while, but it seems hard to read to me so I'd loop/break.
[13:15:26] havenwood: >> n = 0; begin; n += 1; puts n; end while n < 4 # dcvetkovic
[13:15:27] ruby[bot]: havenwood: # => 1 ...check link for more (https://eval.in/997668)
[13:16:23] c0ncealed1: has joined #ruby
[13:16:25] n0m4d1c: has joined #ruby
[13:16:30] havenwood: >> n = 0; loop do; n += 1; puts n; break unless n < 4; end # dcvetkovic
[13:16:31] ruby[bot]: havenwood: # => 1 ...check link for more (https://eval.in/997673)
[13:18:40] saTchymoto: has joined #ruby
[13:19:13] dcvetkovic: havenwood: yeah, I kinda did similiar, but I dislike the < :) I'd rather have = so its clear to humans
[13:19:53] havenwood: dcvetkovic: Assignment instead of less-than?
[13:20:10] apeiros: dcvetkovic: what problem are you trying to solve with that loop?
[13:20:16] bmurt: has joined #ruby
[13:20:22] apeiros: asking since ruby often has proper methods to do stuff
[13:21:05] dcvetkovic: havenwood, I meant ==... actually I used .zero?
[13:22:57] unshadow: has joined #ruby
[13:23:08] dcvetkovic: apeiros, simply obtain a start date, end date, and iterate through them. I calculate the difference between in days, and loop through number of days decrementing with each loop. Issue is I want both the end and start date to be processed. If I use .zero? it stops short of end date (or start date, depending how you iterate)
[13:23:59] leitz: Any good examples of excluding direcotries in ".rdoc_exclude"? What I'm finding isn't helping.
[13:24:47] apeiros: dcvetkovic: (start_date..end_date).each do |date| process(date)
[13:25:00] leitz: Ah...that might work...
[13:25:33] kurko_: has joined #ruby
[13:25:34] apeiros: dcvetkovic: requires start_ and end_date to be instances of Date, not Time
[13:25:54] dcvetkovic: apeiros, wow, thats deadly :)
[13:26:13] havenwood: and a good example of Ruby having a proper method to do stuff!
[13:26:37] apeiros: actually… I prefer start_date.upto(end_date) do |date| …
[13:26:44] DTZUZO: has joined #ruby
[13:26:48] apeiros: end_date.downto(start_date) do |date| works too
[13:26:54] apeiros: if you want the reverse order
[13:27:05] havenwood: apeiros: I like that too. I always thought it was odd that Ranges can't decrement.
[13:27:52] apeiros: yeah, (bigger..lower).each and (lower..bigger).reverse_each would both be nice.
[13:27:53] havenwood: An aside, but endless Range in Ruby 2.6!: Date.today..
[13:28:00] havenwood: #=> #<Date: 2018-05-01 ((2458240j,0s,0n),+0s,2299161j)>..nil
[13:28:08] havenwood: Oh, look - it's May!
[13:28:30] apeiros: yupp. I'm still not too fond of the syntax, though. it looks like something is amiss :D but maybe that's just a matter of getting used to.
[13:30:10] zod_: has joined #ruby
[13:31:07] dcvetkovic: ACTION grabs a jack and starts jacking his jaw back into place from the ground
[13:31:19] dcvetkovic: I am never using any other language again :)
[13:31:50] bmurt: has joined #ruby
[13:32:24] gnufied: has joined #ruby
[13:32:37] dr3wo: has joined #ruby
[13:33:51] Psybur: has joined #ruby
[13:34:21] dcvetkovic: apeiros, havenwood, thanks for the education
[13:34:44] apeiros: with more information comes more advice ;-)
[13:35:46] leitz: dcvetkovic, Ruby has its warts but it is the most fun language I have ever tried. Lots of differnet things you can do with it too.
[13:35:57] dr3wo: has joined #ruby
[13:36:43] leitz: Now that I figured out rdoc_options exclude to skip my toys directory I'm up to 11.02% documentation. Yay!
[13:38:15] zod_: does anyone have a job using ruby that isn't a rails job?
[13:38:46] drale2k_: has joined #ruby
[13:39:10] emph^: has joined #ruby
[13:39:39] Rapture: has joined #ruby
[13:40:41] leitz: zod_, I don't, but there do seem to be non-Rails Ruby jobs out there.
[13:41:09] leitz: Some places use Ruby in other places besides their Rails "department".
[13:42:31] zod_: I made a terminal application when I studied for my qualifications. But now that I'm seeking employment, all the jobs are only rails... so far
[13:42:40] dr3wo: has joined #ruby
[13:43:50] leitz: Absent Rails I think Ruby has a negative % market shere. There are some jobs, just not a lot.
[13:44:21] apeiros: I'd say after rails/webdev, the biggest ruby job market is in devops, i.e. chef, puppet etc.
[13:44:25] havenwood: zod_: Are you looking remotely or in a particular location or willing to relocate?
[13:44:51] tomphp: has joined #ruby
[13:45:18] leitz: My theory, and I wouldn't put a lot of stock in this, is that I code more in Ruby. Coding is what makes me a better coder, and I work on general coding skills (tests, documents, refactoring). So I'm using Ruby to become a better programmer first, and occasionally look for a job in it.
[13:45:22] havenwood: zod_: It seems a lot of companies here in San Francisco have a bunch of internal tooling in Ruby.
[13:45:28] tomphp: has joined #ruby
[13:45:44] rfoust: has joined #ruby
[13:45:48] jaequery: has joined #ruby
[13:45:53] havenwood: Square included!
[13:45:57] leitz: zod_, you'll soon discover havenwood is one of the people to listen to. :)
[13:46:18] leitz: Listen to apeiros too, but I think he's in Europe. So it depends on where you are.
[13:46:26] tomphp: has joined #ruby
[13:47:16] tomphp: has joined #ruby
[13:47:21] akahn: has joined #ruby
[13:48:04] tomphp: has joined #ruby
[13:49:29] tomphp: has joined #ruby
[13:53:05] zod_: Yes I'm in Berlin. I can't relocate though. I would love to work remotely, but I think I need more experience before that would be realistic.
[13:54:03] zod_: The thing is, if my options are so limited, I'm wondering whether to invest more time learning another language, because even though I love ruby, ...I need a job!
[13:55:28] leitz: Hehe...jobs are nice to have.
[13:55:30] zod_: I wouldn't give up on ruby. But there are only so many hours in the day and I'm deciding how to invest my time
[13:56:59] schneider-: has joined #ruby
[13:57:21] leitz: I don't know the market or culture of Berlin, so can't give you specific advice. What I will say is my usual; figure out what area of programming you prefer (OS, systems, web, database, whatever), and try the languages best for that domain.
[13:57:31] apeiros: zod_: I took a rails job because it allows me to use ruby. I found it an acceptable "price" to pay.
[13:57:32] leitz: Learn the one that encourages you to code more.
[13:57:57] akahn: has left #ruby: ()
[13:58:25] leitz: The more you code the better you'll be and the better you will be able to find "the" job. Doing a language you love makes the improvement cycle faster.
[13:59:08] zod_: thanks guys for the advice ;)
[14:06:05] jrafanie: has joined #ruby
[14:06:11] stairmast0r: has joined #ruby
[14:08:02] coderphive: has joined #ruby
[14:09:38] nowhere_man: has joined #ruby
[14:13:35] chouhoulis: has joined #ruby
[14:15:07] amar: has joined #ruby
[14:22:30] guille-moe: has joined #ruby
[14:24:16] govg: has joined #ruby
[14:25:49] haylon: Has anyone seen/read this book before? https://chriskottom.com/minitestcookbook/
[14:27:19] ciscam: has joined #ruby
[14:28:07] haylon: Looking for a good book, tutorial about doing some testing for things outside of just testing input and output
[14:34:24] troys: has joined #ruby
[14:36:03] leitz: haylon, I just read the first few chapters of "Effective Testing with RSpec3", It uses a simple web app (sinatra, sequel, json) to show the concepts.
[14:37:51] govg: has joined #ruby
[14:42:18] haylon: Ahh, nice Thank you leitz
[14:42:36] haylon: I might pull the trigger and buy it
[14:42:59] amar: has joined #ruby
[14:45:56] chouhoulis: has joined #ruby
[14:46:13] cyberg: has joined #ruby
[14:47:30] alfiemax: has joined #ruby
[14:48:23] n008f4g_: has joined #ruby
[14:48:33] saTchymoto: has joined #ruby
[14:48:45] cschneid_: has joined #ruby
[14:49:00] alt155: has joined #ruby
[14:51:44] chocoelho: has joined #ruby
[14:59:18] govg: has joined #ruby
[15:04:23] tomphp: has joined #ruby
[15:04:24] mattp__: has joined #ruby
[15:09:14] samort7: has joined #ruby
[15:15:57] tomphp: has joined #ruby
[15:24:17] ciscam: has joined #ruby
[15:25:15] ipe: has joined #ruby
[15:30:11] drale2k_: has joined #ruby
[15:30:11] synthroid: has joined #ruby
[15:32:23] Mon_Ouie: has joined #ruby
[15:32:44] Kilo`byte: has joined #ruby
[15:32:53] ruby[bot]: has joined #ruby
[15:32:53] ChanServ: +o ruby[bot]
[15:34:47] balo: has joined #ruby
[15:35:35] drale2k_: has joined #ruby
[15:36:08] tAn: has joined #ruby
[15:36:16] badeball: has joined #ruby
[15:36:17] Phage: has joined #ruby
[15:36:17] Phage: has joined #ruby
[15:37:30] jottr: has joined #ruby
[15:38:10] tAn: has joined #ruby
[15:38:47] Asher: has joined #ruby
[15:39:22] karapetyan: has joined #ruby
[15:45:05] zod_: has left #ruby: ()
[15:47:44] szulak: has joined #ruby
[15:50:06] rubemlrm: has joined #ruby
[15:51:32] cagomez: has joined #ruby
[16:03:40] Ryzokuken: has joined #ruby
[16:03:44] jyaworski: has joined #ruby
[16:06:51] tipyn: has joined #ruby
[16:07:06] jcarl43: has joined #ruby
[16:07:45] samort7: has joined #ruby
[16:08:13] [Butch]: has joined #ruby
[16:11:37] Sembei: has joined #ruby
[16:13:00] Sembei: has joined #ruby
[16:21:15] jyaworski: has joined #ruby
[16:21:48] bmurt: has joined #ruby
[16:23:06] tipyn: has joined #ruby
[16:26:21] havenwood: has joined #ruby
[16:26:21] havenwood: has joined #ruby
[16:26:22] rwb: has joined #ruby
[16:29:11] plexigras: has joined #ruby
[16:30:55] marxarelli: has joined #ruby
[16:31:47] dionysus69: has joined #ruby
[16:33:09] alfiemax: has joined #ruby
[16:36:21] havenwood: has joined #ruby
[16:36:21] havenwood: has joined #ruby
[16:38:46] Sembei: has joined #ruby
[16:40:52] nitric: has joined #ruby
[16:41:10] eckhardt_: has joined #ruby
[16:41:19] Sembei: has joined #ruby
[16:41:30] rubemlrm: has joined #ruby
[16:42:07] amar: has joined #ruby
[16:42:35] clemens3: has joined #ruby
[16:43:28] DoubleMalt: has joined #ruby
[16:43:37] amar: has joined #ruby
[16:46:28] rubemlrm_: has joined #ruby
[16:46:39] jyaworski: has joined #ruby
[16:48:30] synthroid: has joined #ruby
[16:48:33] RougeR: has joined #ruby
[16:50:24] href: has joined #ruby
[16:52:44] rubemlrm: has joined #ruby
[16:53:10] AJA4350: has joined #ruby
[16:58:20] orbyt_: has joined #ruby
[16:58:38] adelyne: has joined #ruby
[17:00:51] eckhardt_: has joined #ruby
[17:07:00] n0m4d1c: has joined #ruby
[17:08:08] fullstack_: has joined #ruby
[17:10:26] amar: has joined #ruby
[17:11:39] jeffreylevesque: has joined #ruby
[17:15:51] alfiemax_: has joined #ruby
[17:16:45] amar: has joined #ruby
[17:18:46] Yzguy: has joined #ruby
[17:18:50] mli: line 20 is giving me an issue https://bpaste.net/show/f9ca25a9d93d
[17:19:21] mli: whats the proper syntax for line 9?
[17:19:58] mli: i literally have this > phx-dash01.hq.phxlabs.net:80 and still spits out that error
[17:21:51] n13z: has joined #ruby
[17:25:59] greveritt: has joined #ruby
[17:26:15] nadir: has joined #ruby
[17:26:25] havenwood: mli: Wouldn't it not be empty if you have it one port?
[17:27:18] havenwood: mli: It seems you have one port, and you're doing the error unless you have no ports.
[17:27:33] greveritt: has joined #ruby
[17:27:45] mli: well i havent shown you yet what it looks like when i have the ports in there
[17:27:52] mli: just a moment
[17:28:31] havenwood: Oh, I read that backwards. Error if zero ports.
[17:29:06] greveritt: Hi everyone. If I specify :TLSv1 when creating an SSLContext, does that force the use of TLS 1.0? I have to integrate with a very old third-party service using Faraday.
[17:29:07] mli: https://bpaste.net/show/d28e0ea64fb9
[17:30:16] mli: https://bpaste.net/show/fb326c19d6d7
[17:30:59] BTRE: has joined #ruby
[17:31:10] havenwood: mli: Can you print what `option(:ports)` is? I'm assuming it's `nil` for whatever reason.
[17:31:42] ghoti: has joined #ruby
[17:34:06] mli: http://help.scoutapp.com/docs/custom-plugins
[17:34:13] mli: nevermind i think ill read this first lol
[17:36:07] Sembei: has joined #ruby
[17:37:09] jenrzzz: has joined #ruby
[17:37:09] jenrzzz: has joined #ruby
[17:49:30] griffindy: has joined #ruby
[17:52:06] jyaworski: has joined #ruby
[17:52:57] ellcs: has joined #ruby
[17:53:18] armyriad: has joined #ruby
[17:53:53] nitric_: has joined #ruby
[17:55:47] ramfjord: has joined #ruby
[17:56:50] mrBen2k2k2k_: has joined #ruby
[17:58:32] sameerynho: has joined #ruby
[17:58:48] lucas: has joined #ruby
[17:59:37] venmx: has joined #ruby
[18:03:08] psychicist__: has joined #ruby
[18:04:18] donofrio: has joined #ruby
[18:06:48] bmurt: has joined #ruby
[18:11:04] chouhoulis: has joined #ruby
[18:13:57] weaksauce: has joined #ruby
[18:15:50] SeepingN: has joined #ruby
[18:17:04] alfiemax: has joined #ruby
[18:17:40] jottr: has joined #ruby
[18:21:49] n13z: has joined #ruby
[18:23:36] alfiemax: has joined #ruby
[18:24:36] jottr: has joined #ruby
[18:24:36] nnm-: has joined #ruby
[18:25:12] x77686d: has joined #ruby
[18:25:36] GodFather_: has joined #ruby
[18:27:49] Morrolan: has joined #ruby
[18:31:15] cthulchu: has joined #ruby
[18:35:20] elcontrastador: has joined #ruby
[18:35:33] r3m: has joined #ruby
[18:36:25] jaequery: has joined #ruby
[18:40:54] jottr: has joined #ruby
[18:41:31] cthulchu_: has joined #ruby
[18:43:46] cthu|: has joined #ruby
[18:46:08] dr3wo: has joined #ruby
[18:48:25] Mike11: has joined #ruby
[18:49:12] warrshrike: has joined #ruby
[18:49:29] warrshrike: how to efficiently rotate a singly linked list by k places in ruby
[18:50:05] warrshrike: most solutions i see are either swapping the values (as opposed to actual nodes) or just making a circle, taking new head, and breaking the circle.
[18:52:58] kenichi: has joined #ruby
[18:53:13] Rapture: has joined #ruby
[18:54:50] havenwood: has joined #ruby
[18:55:00] havenwood: has joined #ruby
[18:56:24] jsrn: has joined #ruby
[18:57:54] jordanm: has joined #ruby
[18:58:36] cagomez: what's the difference between hash['foo'] and hash["foo"]?
[18:59:24] cagomez: I get nil in the former, but can fetch the attribute in the latter
[19:00:27] z64: 'foo' and "foo" are string literals with the same exact value
[19:01:42] z64: cagomez: https://carc.in/#/r/3zez
[19:02:13] conta: has joined #ruby
[19:02:45] z64: there must be something else going on if you're getting different results, i.e. the hash is changing since you accessed it last
[19:05:06] szulak: has joined #ruby
[19:06:46] minimalism: has joined #ruby
[19:07:05] synthroid: has joined #ruby
[19:08:12] c0ncealed1: has joined #ruby
[19:08:12] bmurt: has joined #ruby
[19:09:57] havenwood: https://github.com/ruby/ruby/blob/ruby_2_5/hash.c#L101-L104
[19:10:55] havenwood: You can't even override String#eql?, either - since it's ^ optimized.
[19:13:55] rubemlrm: has joined #ruby
[19:14:35] havenwood: https://github.com/ruby/ruby/blob/ruby_2_5/string.c#L3114-L3124
[19:15:32] jottr_: has joined #ruby
[19:16:41] ogres: has joined #ruby
[19:17:18] jyaworski: has joined #ruby
[19:17:42] havenwood: z64: Check the bytes?
[19:17:49] havenwood: >> 'foo'.bytes
[19:17:50] ruby[bot]: havenwood: # => [102, 111, 111] (https://eval.in/997843)
[19:18:48] naftilos76: has joined #ruby
[19:22:03] marxarelli: has joined #ruby
[19:23:48] z64: havenwood: ...??
[19:24:08] havenwood: z64: Can you check the bytes of the two "foo"s?
[19:24:19] havenwood: z64: Are they both?: [102, 111, 111]
[19:24:46] havenwood: z64: Is it really a Hash?
[19:25:04] z64: i have no idea what you're talking about. you know it was cagomez asking about this right?
[19:25:21] havenwood: z64: Nope, I got confused who asked. >.>
[19:25:39] havenwood: z64: Sorry for the confusion.
[19:25:44] z64: no problem lmao
[19:26:46] havenwood: >> "𝖿𝗈𝗈" == "foo"
[19:26:47] ruby[bot]: havenwood: # => false (https://eval.in/997844)
[19:36:26] orbyt_: has joined #ruby
[19:41:43] karapetyan: has joined #ruby
[19:45:42] troulouliou_dev: has joined #ruby
[19:48:08] drona6: has joined #ruby
[19:54:06] TvL2386_: has joined #ruby
[19:58:07] jenrzzz: has joined #ruby
[19:58:07] jenrzzz: has joined #ruby
[19:58:33] amelliaa: has joined #ruby
[19:59:12] tAn: has joined #ruby
[20:02:01] sanscoeur: has joined #ruby
[20:04:53] chouhoul_: has joined #ruby
[20:05:20] Asher: has joined #ruby
[20:05:40] npgm: has joined #ruby
[20:05:46] jyaworski: has joined #ruby
[20:08:23] drona6: has joined #ruby
[20:08:37] conta: has joined #ruby
[20:11:27] alfiemax: has joined #ruby
[20:22:23] jyaworski: has joined #ruby
[20:27:37] ellcs: has joined #ruby
[20:32:48] Lyubo1: has joined #ruby
[20:36:45] FrostCandy: has joined #ruby
[20:43:09] jottr: has joined #ruby
[20:45:19] rubemlrm: has joined #ruby
[20:45:35] jyaworski: has joined #ruby
[20:46:43] rubemlrm: has joined #ruby
[20:48:09] tAn: has joined #ruby
[20:49:18] rubemlrm: has joined #ruby
[20:57:15] sanscoeur: has joined #ruby
[20:58:33] mroutis: has joined #ruby
[20:59:38] marxarelli: has joined #ruby
[21:01:04] cagomez: has joined #ruby
[21:06:21] UncleCid__: has joined #ruby
[21:06:55] ur5us: has joined #ruby
[21:07:01] orbyt_: has joined #ruby
[21:08:47] dviola: has joined #ruby
[21:09:30] nitric: has joined #ruby
[21:11:37] n13z: has joined #ruby
[21:11:59] ramfjord: has joined #ruby
[21:12:13] amar: has joined #ruby
[21:15:25] Asher: has joined #ruby
[21:17:52] ramfjord: has joined #ruby
[21:23:13] tdy: has joined #ruby
[21:23:57] ramfjord: has joined #ruby
[21:24:07] alfiemax: has joined #ruby
[21:25:17] rwb: has joined #ruby
[21:29:16] tAn: has joined #ruby
[21:29:53] ramfjord: has joined #ruby
[21:30:02] UncleCid__: has joined #ruby
[21:30:43] eckhardt_: has joined #ruby
[21:30:44] camilasan: has joined #ruby
[21:32:41] jeffreylevesque: has joined #ruby
[21:33:37] jenrzzz: has joined #ruby
[21:41:47] banisterfiend: has joined #ruby
[21:42:02] dviola: has joined #ruby
[21:42:53] dviola: has joined #ruby
[21:43:30] ur5us: has joined #ruby
[21:44:00] nhh^: has joined #ruby
[21:44:09] postmodern: has joined #ruby
[21:48:50] ramfjord: has joined #ruby
[21:49:44] schneider-: has joined #ruby
[21:58:23] ced_: has joined #ruby
[22:00:58] n008f4g_: has joined #ruby
[22:08:55] ced_: has joined #ruby
[22:09:25] banisterfiend: has joined #ruby
[22:11:02] jyaworski: has joined #ruby
[22:11:37] n13z: has joined #ruby
[22:14:10] MoskitoHero: has joined #ruby
[22:14:56] chouhoulis: has joined #ruby
[22:18:36] venmx: has joined #ruby
[22:23:35] n0m4d1c: has joined #ruby
[22:31:13] Radar: jhass: hi! Do you know how I can get in contact with the maintainer of https://github.com/assaf/uuid?
[22:34:43] tAn: has joined #ruby
[22:38:00] pilne: has joined #ruby
[22:38:19] Yzguy: has joined #ruby
[22:41:17] cagomez: has joined #ruby
[22:44:58] orbyt_: has joined #ruby
[22:54:49] jenrzzz: has joined #ruby
[22:54:56] jenrzzz: has joined #ruby
[22:57:43] tfitts: has joined #ruby
[23:01:09] cagomez: has joined #ruby
[23:02:14] venmx: has joined #ruby
[23:13:18] cthulchu_: has joined #ruby
[23:13:40] chouhoulis: has joined #ruby
[23:13:42] cagomez: has joined #ruby
[23:14:31] venmx: has joined #ruby
[23:14:31] morenoh149: has joined #ruby
[23:14:35] rfoust: has joined #ruby
[23:17:12] cagomez_: has joined #ruby
[23:18:06] jyaworski: has joined #ruby
[23:18:07] karapetyan: has joined #ruby
[23:18:52] cagomez_: has joined #ruby
[23:19:27] banisterfiend: has joined #ruby
[23:20:11] coderphive: has joined #ruby
[23:22:17] Yzguy: has joined #ruby
[23:28:42] alfiemax: has joined #ruby
[23:29:04] jenrzzz: has joined #ruby
[23:38:33] mroutis: has joined #ruby
[23:42:29] ur5us: has joined #ruby
[23:44:50] ccrow: has joined #ruby
[23:51:29] jready: has joined #ruby