« Back to channel list

#ruby - 20 November 2017

« Back 1 day Forward 1 day »
[00:00:15] banisterfiend: well you need a system ruby installed, install via rbenv or whatever and set 'rbenv global' to it
[00:00:20] banisterfiend: then run 'autoreconf -i'
[00:00:26] banisterfiend: and then './configure'
[00:02:35] leitz: banisterfiend, that failed.
[00:02:54] banisterfiend: are you sure a 'ruby' is on the path when you do the compile??
[00:03:14] leitz: Reinstalled Ruby (1.8.7), ran /usr/local/bin/autoreconf -i, and then ./configure.
[00:03:27] leitz: PATH, yup.
[00:03:51] banisterfiend: 1.8.7 is ancient
[00:03:53] leitz: That's the system ruby.
[00:04:05] banisterfiend: install something like 2.4.2
[00:04:08] leitz: You haven't read my blog article, have you?
[00:04:15] banisterfiend: what system are you running? heh, that's like 10 years old
[00:04:36] leitz: http://blog.reuel.net/2016/08/using-ruby-187-for-fun-and-uh-fun.html
[00:04:41] leitz: CentOS 6.
[00:04:43] RickHull: centos -- the cent means 100 years old
[00:04:59] leitz: Can't argue, but it's close to the version that pays the bills.
[00:05:35] workmad3: has joined #ruby
[00:05:52] RickHull: leitz: why not just install the tgz or ruby-install?
[00:06:00] RickHull: this damage seems mostly self-inflicted
[00:06:05] banisterfiend: leitz well, i don't think 1.8.7 is capable of doing what you want in this situation, but good luck
[00:07:19] leitz: Um, I think you missed the point. I'm trying to install 2.5.0. Removed 1.8.7 to clean things up. Now 2.5.0 won't install.
[00:07:41] RickHull: yeah -- despite the initial answer to your initial question -- it does appear that you need a system ruby
[00:08:03] RickHull: but maybe not with the 2.5.0 tgz
[00:08:05] RickHull: worth a shot
[00:08:29] RickHull: and if you do need a system ruby, then get that first, and then try either the tgz or git repo
[00:08:31] leitz: Yeah, there's a --with-baseruby=RUBY option I'm working on.
[00:08:49] banisterfiend: leitz i'm saying you may need a ruby version > 1.8.7 just to compile 2.5.0
[00:09:01] alveric: has joined #ruby
[00:09:10] leitz: Ah...odd.
[00:09:10] RickHull: and you won't find much support sympathy for 1.8.7 problems
[00:09:43] RickHull: whatever you find, consider updating your ticket and/or closing it
[00:09:43] leitz: Oddly, I've found a few authors who don't mind 1.8.7 questions. Not so much with IRC or the mailing list.
[00:10:17] dstrunk: has joined #ruby
[00:10:22] RickHull: they must exist but I couldn't tell you where to find them. the hivemind has moved on, long ago
[00:10:37] eam: leitz: I don't mind helping with 1.8.7
[00:10:47] eam: I have quite a few centos6 machines I have to manage myself
[00:10:55] banisterfiend: 1.8.7 was ok, way better than 1.8.6 iirc (i think there was a big jump between those two)
[00:11:02] shazbotmcnasty: has joined #ruby
[00:11:14] banisterfiend: but 1.9.3+ is where it's @
[00:11:26] RickHull: practically 2.0 :)
[00:11:28] banisterfiend: 1.9.1 was lel and broke so much compatibility they reverted it in 1.9.2
[00:11:39] leitz: eam, thanks! Ruby is the first language I've wanted to read the reference docs for. It gets tiresome when people tell me to upgrade but don't volunteer to help with hundreds of servers.
[00:11:58] RickHull: ha, let me volunteer to help you with hundreds of servers xD
[00:12:13] eam: yeah it's kinda silly
[00:13:03] leitz: doing ./configure --with-baseruby=/usr/bin/ruby worked for the configure but the make failed.
[00:13:07] cschneid_: has joined #ruby
[00:13:54] Radar: Someone posted in here about a week ago talking about selenium + chromedriver not working for the number 3... anyone remember the result of that conversation or when it happened?
[00:13:59] eam: what version of ruby are you trying to build, and how? sorry, catch me up?
[00:14:00] leitz: Installing 2.4.2 just compiled seems to work.
[00:14:35] leitz: eam, was trying to build 2.5.0-preview1. The original issue is that the git repo didn't have tool/config.sub.
[00:15:01] leitz: Worked around that by stealing one from 2.4.2, but the make just failed.
[00:15:03] RickHull: do you have the same problem with the tgz?
[00:15:10] leitz: Compiling 2.4.2 works.
[00:15:12] eam: did you use automake? A lot of the build tools on centos6 are super old too
[00:15:35] leitz: RickHull, good question, gimme a minute to stretch my legs and check.
[00:15:46] eam: though often the issue there can be solved by finding various auto* config files and just manually lowering the required version
[00:15:48] leitz: eam, Had to compile auto* tools as well. :)
[00:15:50] harfangk: has joined #ruby
[00:15:50] RickHull: leitz: also, what about epel repos or other 3rd party for newer system ruby?
[00:16:16] eam: iirc they by default include a min ver requirement of the autotools used to generate the stubs
[00:16:20] eam: they don't actually
[00:16:25] leitz: RickHull, I'd like to stick as close to Ruby core as possible, if I go with it.
[00:16:29] eam: so you can just edit them and lower the version
[00:16:37] leitz: eam, required a newer autoconf version.
[00:16:45] amclain: has joined #ruby
[00:16:45] RickHull: leitz: i just mean, if 1.8.7 is insufficient, you can get a newer ruby via rpm/yum
[00:16:52] eam: really required? or the file said it required it?
[00:17:33] eam: if you already built it that's cool, but you can probably get away with just editing in a lower version to be required
[00:17:39] leitz: eam, choked and quit.
[00:18:00] eam: yeah, probably could've just grep -r'd for the version, find the relevant text file and edit it down to whatever you have on c6
[00:18:13] eam: dumb behavior in autoconf
[00:18:21] leitz: Running make on the 2.5.0 tarfile. ./configure works.
[00:18:50] charliesome: has joined #ruby
[00:19:52] Psybur: has joined #ruby
[00:20:57] RickHull: Radar: no idea, but "not working for the number 3" -- is that as hilarious as it sounds?
[00:21:23] eam: who does number three work for?
[00:21:24] Radar: RickHull: yes, yes it is :) test says input "password123", input only gets "password12"
[00:21:36] RickHull: have you tried ******** ?
[00:21:49] eam: how did you know my password
[00:21:54] RickHull: bash.org has it
[00:21:58] eam: hunter2
[00:22:00] baweaver: All I saw was hunter2
[00:25:26] Radar: https://howsecureismypassword.net/
[00:26:11] leitz: Building 2.5.0-p1 from tar.gz file compiles and "make test" works.
[00:27:02] leitz: Already annotated in the ticket.
[00:28:01] mtkd: has joined #ruby
[00:28:05] RickHull: even without ruby 1.8.7 ?
[00:28:37] leitz: RickHull, so, the grand plan is that I move from being an old Linux guy to a sprightly but old programmer. Ruby is the most fun of the half-dozen or so I've tried.
[00:28:55] leitz: I'm leaning OOP, TDD, and all the cool acronyms.
[00:29:06] goyox86: has joined #ruby
[00:29:14] RickHull: cool! I love ruby, been doing it for over a decade now
[00:29:19] leitz: Didn't try removing the old ruby, lemme give that a go,
[00:29:46] leitz: Yeah, it's just the issue of paying bills if your're not a RoR person.
[00:30:05] RickHull: but.. in my decade of wisdom, I have leaned away from dogmatic OOP, and I never really did TDD
[00:30:08] RickHull: and probably won't
[00:30:38] leitz: I'm liking TDD; I hate checking things manually.
[00:30:41] RickHull: that said, take it all in, and many people much wiser than me have embraced these things
[00:30:57] RickHull: I write tests, lots of them, just typically not before I write the code
[00:31:07] shazbotmcnasty: has joined #ruby
[00:31:08] leitz: Guy at work had some awk code with just an "at the end" test. 20,000 lines of code, no tests. *sigh*
[00:31:19] RickHull: I am constant refactoring, and you can't refactor safely without tests
[00:31:24] RickHull: *constantly
[00:31:30] ogres: has joined #ruby
[00:31:49] RickHull: I've had more than a few refactors get abandoned at a huge sunk cost when I couldn't make them work due to lacking tests
[00:32:10] joast: has joined #ruby
[00:32:13] Radar: This is also my experience.
[00:32:32] Radar: Test helps assert the realities of a codebase. Refactoring without them has caused me to alter the code... incorrectly.
[00:32:34] leitz: I figure TDD is good to learn now as I'm learning it. On the off chance I get an interview it might help.
[00:32:48] leitz: "He coded...wisely..."
[00:33:03] RickHull: TDD is a great exercise
[00:33:05] Radar: I'm running a training program here at work for junior programmers and the _second_ week is testing & BDD week. First week is Git + GitHub, since that underpins everything we do here.
[00:33:31] RickHull: my approach is to make a code spike, decide if it's working, then write tests, then refactor
[00:33:38] Radar: RickHull: Mine too :D
[00:33:45] cschneid_: has joined #ruby
[00:33:49] baweaver: I tend to screw around in a REPL for a while
[00:33:51] Radar: With TDD: If the tests are hard to write or causing pain, then that's usually indicative that the code for the tests is going to be the same way
[00:34:02] leitz: Are there actual non-Rails Ruby jobs?
[00:34:06] RickHull: but I've also learned how to write testable code
[00:34:14] Radar: leitz: yeah, lots
[00:34:29] RickHull: leitz: are you familiar with chef or puppet?
[00:34:42] leitz: The reason for using 2.5.0 is that it will be ancient by the time I get any good at it.
[00:34:44] baweaver: InfoSec and DevOps primarily.
[00:34:52] Radar: leitz: https://twitter.com/AaronLasseigne/status/931233598753079296 I reckon a few of these companies will be hiring non-Rails Rubyists.
[00:34:58] baweaver: You'd be surprised
[00:35:07] leitz: RickHull, Puppet has moved away from needing to know Ruby, but that was why I started on it.
[00:35:12] baweaver: Square hires non-rails rubyists for sure as well.
[00:35:19] RickHull: writing testable code -- this is where I have leaned away from dogmatic OOP (if you want to call it that)
[00:35:22] leitz: Square also uses go.
[00:35:36] RickHull: my OOP is all about minimizing internal state -- i prefer functions to methods
[00:35:42] baweaver: Ruby, Go, Java, and Kotlin is getting popular as of late
[00:35:48] RickHull: because functions are easier to test than objects
[00:35:59] RickHull: and prefer composition to inheritance
[00:36:13] Nilium: Meanwhile, in #ruby...
[00:36:17] leitz: I'm enjoying Booch's "OO Analysis and Design".
[00:36:44] baweaver: Currently me, eam, eckhardt, and havenwood are over at Square. Then again I do a ton of Javascript too.
[00:37:13] RickHull: generally I write the hard stuff as functions, where return values depend on the function arguments
[00:37:15] leitz: Well, if you need Linux geeks who want to code better...
[00:37:21] Nilium: ACTION continues to roll around in his Erlang mess.
[00:37:27] RickHull: and then package up the functions into a nice class/object paradigm
[00:37:48] dstrunk: has joined #ruby
[00:37:53] baweaver: Problem is you'd end up through an entire engineering hiring bar here which means SE skills
[00:38:00] baweaver: which are a royal pain coming from Ops some times
[00:38:04] baweaver: ACTION came from ops
[00:38:16] RickHull: functions meaning either class methods / module methods -- minimizing side effects and state that isn't passed in
[00:38:19] Nilium: ACTION switched to ops
[00:38:46] astronavt: has joined #ruby
[00:39:16] leitz: My Ruby "resume" https://github.com/LeamHall/CT_Character_Generator
[00:39:17] RickHull: once your hard-stuff-functions work, and they are trivially testable, then it's trivial to make sure your objects work
[00:39:28] leitz: Which shows how far I have to go...
[00:39:40] baweaver: Well, to be fair.... Design > Web Design > Ops > Rails Dev > Big Data > Ops > Rails / Ember Dev
[00:40:04] Ropeney: has joined #ruby
[00:40:34] leitz: Well, drat. the new compile was working without the system Ruby but it found the recently compiled and installed 2.4.2
[00:40:54] leitz: Time to restart the test.
[00:40:59] baweaver: Honestly most of the 2.x versions are extremely similar in API
[00:41:11] baweaver: just speed improvements, some bug fixes, and new methods on occasion
[00:41:34] Nilium: baweaver: I'm sort of similar -- went from game dev to backend/APIs dev in Go to ops
[00:41:54] RickHull: can't spell oops without ops
[00:42:06] baweaver: To err is human
[00:42:14] Nilium: Though I came from a period at $work where the devs were expected to be sysadmins, but the new generation of the dev team hasn't really done that
[00:42:16] baweaver: To err and deploy to all prod servers is DevOps
[00:42:37] Nilium: So I have the misfortune of knowing terrible things and that put me in ops
[00:42:41] RickHull: ops > oops > devops > noops ;)
[00:43:02] Nilium: Or, if you want continuous oops, use gitlab's auto devoops
[00:43:21] Nilium: A GKE cluster for every mistake
[00:43:36] Nilium: Google container engine.
[00:43:47] Nilium: GCE was taken, so it's GKE (for Kubernetes, I guess)
[00:44:09] RickHull: pronounced geeky?
[00:44:17] Nilium: I think it's just an alphabetism
[00:44:24] astronavt: has joined #ruby
[00:44:33] cdg: has joined #ruby
[00:44:44] leitz: RickHull, only pronouncable by Germans.
[00:44:52] m4rCsi: has joined #ruby
[00:45:10] baweaver: leitz: You might look into codewars as well. It'll help. Most kata 5 or above will end up as about the level of interview problems
[00:45:25] RickHull: only very tangentially related -- I've been playing with racing sims, and everyone calls the nurburgring track "Nordschleife"
[00:45:38] RickHull: and now I'm seeing it even in automotive journalism
[00:45:40] charliesome: has joined #ruby
[00:45:43] char_var[buffer]: has joined #ruby
[00:45:54] RickHull: where is apeiros to set us straight?
[00:46:08] Nilium: I only play racing games where speed is measured in thousands of km/h
[00:46:11] RickHull: the term is "nordschleisse"
[00:46:21] RickHull: but in german, the double-ess looks like an eff
[00:46:24] Nilium: I don't really like sim-y things
[00:46:38] astronavt: has joined #ruby
[00:47:21] RickHull: some sims are more like work than play, for sure
[00:47:29] RickHull: but I love physics-based stuff
[00:47:33] nginxxx: has joined #ruby
[00:47:50] baweaver: I can set people straight too :P
[00:48:06] nginxxx: can someone pm me i need help with my ruby code its just a 20lines code
[00:48:35] RickHull: nginxxx: no need for PMs -- just ask your question and paste the code
[00:48:45] ruby[bot]: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[00:48:48] nginxxx: i want a dns resolver in ruby with ASN
[00:48:53] baweaver: there it is
[00:49:03] nginxxx: i am now so far : moment
[00:49:17] baweaver: Paste >3 lines of text to: https://gist.github.com
[00:49:26] nginxxx: https://gist.github.com/anonymous/0bd0972c0cdbcb317d2fd98f97992402
[00:49:49] RickHull: ok, now edit that, add another file, and paste the output
[00:50:07] nginxxx: its not a error or so
[00:50:16] RickHull: and if it's not obvious what the problem is from the output, then let us know what the problem is
[00:50:16] nginxxx: i try to explain better, i will edit now
[00:50:23] leitz: RickHull, compile, make, and make test work without Ruby installed.
[00:50:49] RickHull: leitz: cool! I was hoping so
[00:51:08] shazbotmcnasty: has joined #ruby
[00:51:11] RickHull: so tgz is easy-mode, git clone is hard-mode
[00:51:15] milardovich: has joined #ruby
[00:51:17] leitz: Will probably run it again on a clean system.
[00:51:38] RickHull: leitz: you can also look at the `ruby-install` project (it's on github)
[00:52:14] leitz: So far trying to stay close to core. Easy to get side-tracked before I know the basics.
[00:52:32] nginxxx: https://gist.github.com/anonymous/e7a2c25a815684887831fded9fa1f4ac
[00:54:05] nginxxx: i just want using dns resolver with api from ipinfo.io, i found already on github a sample for this api. Just want to write the hostname in ruby program without editing the code
[00:54:07] RickHull: nginxxx: you can have multiple files per gist
[00:54:25] RickHull: but it's not necessary to reformat, I don't think
[00:54:34] nginxxx: okay thanks but it makes no sense to do now again
[00:54:41] nginxxx: but you understand my issue?
[00:54:45] RickHull: one thing is that the string returned from #gets has a "\n" newline
[00:54:56] RickHull: I don't understand your issue, at a glance
[00:55:03] RickHull: if it had output, it might be easier
[00:55:04] nginxxx: how it should be : i write test.rb in cmd. Then it askes me for the hostname
[00:55:06] nginxxx: to resolve
[00:55:10] nginxxx: thats how it should be
[00:55:16] nginxxx: not always editing the code
[00:55:32] RickHull: you could get it from a command line argument, a config file, or an environment variable
[00:55:41] nginxxx: theres no output, no error. I just must add something i dont know what
[00:55:48] RickHull: getting it from user input is not easily scriptable
[00:56:35] nginxxx: i start my script. then it comes: Hostname: www.example.com
[00:56:42] RickHull: My guess is that `gets` is causing your problems
[00:56:44] nginxxx: when compiling
[00:56:48] Sylario: I'm trying ruby-install on a server, is there any doc on how to make a full install with it?
[00:56:53] RickHull: again, the string it returns has a trailing newline, which the dns methods may not expect
[00:57:09] RickHull: and your program will block waiting for input every time you call `gets`
[00:57:24] nginxxx: it will make it possible i think to decide the target in the irb not with editing code
[00:57:34] RickHull: sylario: what do you mean 'full install' ?
[00:57:46] Sylario: RickHull: make it available
[00:57:51] Sylario: handle gems and bundler
[00:58:08] Sylario: I only ever used rbenv and RVM so i am a bit lost
[00:58:13] RickHull: sylario: generally it just means updating PATH to find the ruby executables
[00:58:21] RickHull: you can use `chruby` to help manage this
[00:58:23] havenwood: sylario: You typically just put the Ruby bin/ dir and gems bin dir in PATH, and then set GEM_HOME and GEM_PATH.
[00:58:31] RickHull: chruby comes from the same place as ruby-install
[00:58:42] havenwood: sylario: Or you can put Ruby in a place that's already in your PATH, like /usr/local/
[00:58:45] nginxxx: i think you guys dont understand :D
[00:58:46] havenwood: sylario: sylario: you can install system-wide with: sudo ruby-install --latest --system
[00:58:54] nginxxx: go run the program from ruby docs
[00:58:57] leitz: baweaver, thanks for the codewars note. Signed up. WIll probably do more in the AM when I'm awake. I have a couple weeks of a MongoDB class to wrap up before I dive into anything though.
[00:59:00] RickHull: nginxxx: you don't want to have hardcoded addresses
[00:59:06] RickHull: nginxxx: gets is the worst way to achieve this
[00:59:11] RickHull: and i don't think it works in irb
[00:59:34] cagomez: has joined #ruby
[01:00:03] nginxxx: you will see it will work. But the problem is you have to edit the code and edit the hostname there... what i am trying to do is to get a invitation when starting my program
[01:00:09] nginxxx: to write the target hostname to resolve
[01:00:20] Sylario: havenwood: is there a way to do system without relaunching the compilation?
[01:00:50] nginxxx: rick what i should do then
[01:00:56] havenwood: sylario: The default settings don't let you move a Ruby, so no, unless you happened to compile with --enable-shared
[01:00:57] RickHull: nginxxx: you can use `gets` for this, but it is tricky. do you understand what I am saying about the trailing newline and what it means for your program to block, waiting for input?
[01:01:01] nginxxx: to get a invitation to write my hostname address which should be resolved
[01:01:10] havenwood: sylario: if you already installed a Ruby, just set PATH yourself
[01:01:24] nginxxx: maybe you are right but what i should do use then
[01:01:38] RickHull: ok, `gets` does work as expected in irb -- I wasn't sure
[01:01:42] havenwood: sylario: add the Ruby bin/ dir and RubyGems bin/ to PATH - or sure, chruby does just that and will detect the default installation location
[01:01:51] RickHull: nginxxx: i suggest going line by line in irb to confirm the behavior you want
[01:02:24] RickHull: nginxxx: try this in irb: str = gets
[01:02:32] RickHull: does it behave as you expect?
[01:02:40] nginxxx: when i write Test.rb
[01:02:51] nginxxx: it just switch to the next line like it is loading
[01:03:17] s3nd1v0g1us: has joined #ruby
[01:03:29] nginxxx: but that shoould not be so... i want it comes a Invitation and i must write then my target
[01:03:32] s3nd1v0g1us: has joined #ruby
[01:03:34] nginxxx: but i will try now
[01:03:44] nginxxx: when making str c
[01:04:09] RickHull: what you desire is clear, I think. you want an interactive program that prompts the user for an address. the program will then resolv the address
[01:04:12] apeiros: has joined #ruby
[01:04:25] enterprisey: has joined #ruby
[01:04:27] nginxxx: how can i add a file to my gist
[01:04:34] leitz: Okay, be nice. apeiros is here...
[01:04:52] RickHull: nginxxx: you should be able to edit it, and then `Add file` at the bottom
[01:05:00] nginxxx: no i am not signed in
[01:05:02] RickHull: not sure if it lets you edit anonymously, but it should remember your session
[01:05:44] RickHull: apeiros: I was complaining about "Nordschleife" earlier -- when it's really "Nordschleisse" right?
[01:07:18] RickHull: huh, as I google, it does appear to be, properly, "Nordschleife"
[01:07:22] nginxxx: Rick did you read my pm
[01:07:46] RickHull: yes but it's bad etiquette to PM like that
[01:07:55] RickHull: no worries, we can discuss here :)
[01:08:00] nginxxx: here or pm
[01:08:08] nginxxx: so i edited my gist
[01:08:16] nginxxx: thats the error when i make ctrl and c
[01:08:23] cschneid_: has joined #ruby
[01:08:31] nginxxx: are you german?
[01:08:37] RickHull: right -- your program is blocked, waiting for input, when you call `gets`
[01:08:46] RickHull: (as I've mentioned several times now)
[01:08:51] nginxxx: i dont get it
[01:08:57] RickHull: again, please try in irb: str = gets
[01:09:04] nginxxx: irb or my code
[01:09:26] RickHull: let me know what you get for the value of str
[01:09:41] nginxxx: its just loading
[01:09:52] RickHull: try typing: hello world
[01:09:54] RickHull: and press Enter
[01:10:16] leitz: Hey all, thanks for the assist! It's my nappy time. My main code works under the new Ruby, so life is good.
[01:10:19] nginxxx: yes i forgot that, okay
[01:10:32] leitz: I'll come back with a lot of questions in the next few days. :)
[01:10:35] nginxxx: theres still a problem, it says : Address: google.com
[01:10:44] RickHull: leitz: have a good'un
[01:10:47] nginxxx: then i write again google.com
[01:10:52] nginxxx: then i get this
[01:11:09] shazbotmcnasty: has joined #ruby
[01:11:24] nginxxx: edited gist
[01:11:25] Sylario: havenwood RickHull , thx, I am using chruby, it seems to work
[01:11:58] RickHull: nginxxx: I suggest running the code in irb
[01:12:14] nginxxx: no theres something wrong in my code
[01:12:16] RickHull: also, you are calling `gets` four times, I think?
[01:12:22] RickHull: i too am sure
[01:12:28] RickHull: running it irb helps you find the error
[01:12:30] nginxxx: i am sure my code is not 100% finished
[01:12:36] nginxxx: and theres something wrong
[01:12:38] RickHull: you can enter it one line at a time
[01:12:40] nginxxx: but i dont know how to fix
[01:12:45] RickHull: and make sure each line is doing what you think it does
[01:12:49] RickHull: (it's probably not)
[01:13:34] nginxxx: i will try to fix it
[01:13:41] nginxxx: but thanks
[01:13:54] nginxxx: so i can use only one time?
[01:14:04] RickHull: here is how I like to use gets: def prompt; print '> '; gets.chomp; end
[01:14:39] RickHull: the print helps the user know the program is waiting for input
[01:14:46] RickHull: the chomp removes the trailing newline
[01:15:34] RickHull: copy my prompt method into irb. then: str = prompt
[01:15:40] RickHull: and let me know what you get for str
[01:16:22] nginxxx: https://hastebin.com/fikojatuvo.rb
[01:17:12] nginxxx: undefined local variable or method 'prompt' for main:Object
[01:17:22] RickHull: you have to copy my method definition first :)
[01:17:28] RickHull: def prompt ...
[01:18:04] RickHull: (it's not built in to ruby)
[01:18:05] nginxxx: that works
[01:18:42] RickHull: cool -- now you can prompt the user for the address. i would start with one prompt at the top
[01:18:58] RickHull: and then output the result to make sure it works as expected
[01:19:05] RickHull: i.e. just output the string
[01:19:15] RickHull: then you can pass the string to the Resolv methods
[01:19:20] RickHull: and go from there
[01:19:30] nginxxx: thanks for help
[01:19:51] RickHull: no problem, good luck! :)
[01:19:55] Psybur: has joined #ruby
[01:21:16] hfp_work: has joined #ruby
[01:25:42] Sylario: chruby does not really works with capistrano it seems
[01:26:07] Sylario: There must be a difference between how bashrc is used in a normal session and capistrano
[01:26:41] Sylario: I installed ruby by adding 'chruby ruby-2.3.5' at the end of bashrc
[01:27:04] RickHull: sylario: try adding that chruby statement to the capistrano config / startup script / whatever
[01:27:19] RickHull: though capistrano may need to know where to find `chruby`
[01:27:31] RickHull: btw, I am just guessing here. there is probably a better way
[01:28:00] RickHull: it might have an official integration with e.g. rvm, as an alternative to chruby
[01:28:42] Sylario: I am using ruby-install because rvm is considered "bad" in prod it seems
[01:28:44] RickHull: I see there is a capistrano-chruby gem
[01:28:58] Sylario: though I am starting to seriously doubt it
[01:29:07] RickHull: rvm was the first, and it's also very invasive
[01:29:23] Sylario: Yeah but it works
[01:29:26] RickHull: chruby a much simpler tool that does the most important stuff that rvm does
[01:30:07] RickHull: in any case, whatever is downstream of a ruby version manager needs to hook into it
[01:30:27] RickHull: some things have built in rvm hooks -- but they are trivial if you know how the hooks work
[01:30:36] RickHull: (I don't know how the capistrano hooks work)
[01:30:55] RickHull: but maybe look at the capistrano-chruby gem, or investigate capistrano + rvm
[01:31:01] shazbotmcnasty: has joined #ruby
[01:31:22] RickHull: as a user, you put your version manager hooks into .bashrc
[01:31:29] RickHull: you need to do the analogous thing for capistrano
[01:31:52] RickHull: (presumably)
[01:33:03] RickHull: I see this https://github.com/capistrano/chruby # no dead people
[01:35:48] cagomez: has joined #ruby
[01:37:01] Sylario: yup looking inti it
[01:37:08] Sylario: thx RickHull
[01:40:46] guardianx: has joined #ruby
[01:46:54] Technodrome: has joined #ruby
[01:51:02] shazbotmcnasty: has joined #ruby
[01:52:45] milardovich: has joined #ruby
[01:55:59] uneeb: has joined #ruby
[01:56:40] Guest90: has joined #ruby
[02:05:26] Guest50: has joined #ruby
[02:05:53] workmad3: has joined #ruby
[02:06:22] mjolnird: has joined #ruby
[02:09:05] milardovich: has joined #ruby
[02:11:03] shazbotmcnasty: has joined #ruby
[02:18:49] bmurt: has joined #ruby
[02:19:52] Psybur: has joined #ruby
[02:23:30] jtdoncas: has joined #ruby
[02:25:47] Defenestrate: has joined #ruby
[02:25:47] Defenestrate: has joined #ruby
[02:27:27] oetjenj: has joined #ruby
[02:28:38] elphe: has joined #ruby
[02:29:23] cdg: has joined #ruby
[02:31:02] shazbotmcnasty: has joined #ruby
[02:34:45] Jameser: has joined #ruby
[02:35:08] nofxx__: has joined #ruby
[02:37:20] d^sh: has joined #ruby
[02:43:10] milardovich: has joined #ruby
[02:46:18] orbyt_: has joined #ruby
[02:48:03] hutch34: has joined #ruby
[02:51:03] shazbotmcnasty: has joined #ruby
[02:52:34] gizmore|2: has joined #ruby
[02:53:53] nofxx__: has joined #ruby
[03:01:13] aroaminggeek: has joined #ruby
[03:01:51] swills: has joined #ruby
[03:01:52] swills: has joined #ruby
[03:01:53] Hexafox[I]: has joined #ruby
[03:02:59] bmurt: has joined #ruby
[03:11:03] shazbotmcnasty: has joined #ruby
[03:11:33] SeepingN: has joined #ruby
[03:18:42] xlegoman: has joined #ruby
[03:19:55] Psybur: has joined #ruby
[03:22:19] uZiel: has joined #ruby
[03:29:01] hutch34: has joined #ruby
[03:31:03] shazbotmcnasty: has joined #ruby
[03:34:20] milardovich: has joined #ruby
[03:37:23] Technodrome: has joined #ruby
[03:51:08] shazbotmcnasty: has joined #ruby
[03:51:32] cschneid_: has joined #ruby
[04:05:37] astronavt: has joined #ruby
[04:06:15] workmad3: has joined #ruby
[04:07:56] astronavt: has joined #ruby
[04:08:20] Cyrus: has joined #ruby
[04:10:13] mson: has joined #ruby
[04:11:05] shazbotmcnasty: has joined #ruby
[04:11:35] charliesome: has joined #ruby
[04:12:09] cschneid_: has joined #ruby
[04:19:29] Technodrome: has joined #ruby
[04:19:51] Psybur: has joined #ruby
[04:21:21] astronavt: has joined #ruby
[04:22:28] jenrzzz: has joined #ruby
[04:22:28] jenrzzz: has joined #ruby
[04:22:58] eckhardt: has joined #ruby
[04:24:10] cagomez: has joined #ruby
[04:25:20] aroaminggeek: has joined #ruby
[04:27:21] [DO]: has joined #ruby
[04:31:07] shazbotmcnasty: has joined #ruby
[04:35:14] gix: has joined #ruby
[04:46:48] cschneid_: has joined #ruby
[04:50:18] cschneid_: has joined #ruby
[04:51:02] shazbotmcnasty: has joined #ruby
[05:03:46] charliesome: has joined #ruby
[05:03:54] mikecmpbll: has joined #ruby
[05:03:54] Puffball: has joined #ruby
[05:04:29] duderonomy: has joined #ruby
[05:06:40] nofxx: has joined #ruby
[05:09:47] Abhijit: has joined #ruby
[05:09:50] jamesaxl: has joined #ruby
[05:10:04] rawr: has joined #ruby
[05:10:30] evie_hammond: has joined #ruby
[05:10:50] Abhijit: i am trying to write a regest which will give me array of words matching regexp. regexp is any word insied starting __ and __
[05:11:02] shazbotmcnasty: has joined #ruby
[05:11:06] Abhijit: scan(/(_{2}[a-z A-Z])\w+_{2}/) gives mi those words but only with first letter of those words
[05:11:13] Abhijit: how can i get all whole words
[05:18:50] RickHull: you can add beginning and ending word anchors
[05:18:57] RickHull: per line or per string
[05:19:41] Abhijit: i wrote this - scan(/_{2}(\w+)_{2}/)
[05:19:54] Psybur: has joined #ruby
[05:19:57] RickHull: you could say __ but I'm guessing 2 is actually a variable
[05:20:23] Abhijit: 2 is not variable. instead of __ i thought i will write {2} just to make it clear that its exactly 2
[05:27:36] BTRE: has joined #ruby
[05:31:08] shazbotmcnasty: has joined #ruby
[05:32:32] ur5us: has joined #ruby
[05:38:17] iamarun: has joined #ruby
[05:39:59] nofxx: has joined #ruby
[05:42:41] MagicGuitarist: has joined #ruby
[05:42:59] i8igmac: has joined #ruby
[05:43:22] i8igmac: is there any examples for keyboard-interaction when logging into ssh
[05:43:32] ur5us: has joined #ruby
[05:43:43] ineb: i8igmac: ?
[05:44:14] [DO]: keyboard interaction.... ?
[05:44:16] i8igmac: when my ssh server is keyboard-interactive
[05:44:36] Radar: ACTION is even more confused now i8igmac has sent a 2nd message
[05:45:25] [DO]: ACTION contemplates life
[05:46:03] Radar: i8igmac: what do you hope to do with this example?
[05:46:31] i8igmac: automate things
[05:46:56] Radar: i8igmac: Do you have an example of what it is you wish to automate?
[05:47:14] i8igmac: simple task's
[05:47:36] i8igmac: get temperature and cpu usage
[05:48:10] Radar: and "ssh user@host <command>" wouldn't work because.... ?
[05:48:26] i8igmac: keyboard-interactive authentication is the login method
[05:48:27] [DO]: my brain hurts
[05:49:08] [DO]: oh, so you're trying to automatically enter the password?
[05:49:16] [DO]: is it possible you can use public key authentication?
[05:50:34] ineb: i8igmac: and in general, there is Net::SSH which lets you do that
[05:50:50] ineb: if you are using ruby.
[05:51:03] shazbotmcnasty: has joined #ruby
[05:51:03] Jameser: has joined #ruby
[05:57:51] wnd: has joined #ruby
[06:02:04] dinfuehr: has joined #ruby
[06:06:31] workmad3: has joined #ruby
[06:08:11] rabajaj: has joined #ruby
[06:11:05] shazbotmcnasty: has joined #ruby
[06:19:50] Psybur: has joined #ruby
[06:31:05] shazbotmcnasty: has joined #ruby
[06:36:11] apeiros_: has joined #ruby
[06:39:51] govg: has joined #ruby
[06:40:33] eckhardt: has joined #ruby
[06:50:16] apeiros_: has joined #ruby
[06:51:04] shazbotmcnasty: has joined #ruby
[07:01:58] kapil___: has joined #ruby
[07:07:29] nicesignal: has joined #ruby
[07:07:38] baweaver: They probably meant that they wanted to use a password to log in. Failing that they wanted an interactive session which isn't easy in Ruby, so I'd almost consider shelling out to expect or TCL for it as they have better tools for interactive sessioning
[07:08:20] baweaver: That said one _really_ should not make something like that as it's way too vulnerable. Solid commands are better, and password logins are a bad idea.
[07:11:03] shazbotmcnasty: has joined #ruby
[07:19:54] Psybur: has joined #ruby
[07:20:48] naiveaiguy: has joined #ruby
[07:21:13] naiveaiguy: has left #ruby: ("WeeChat 1.9.1")
[07:24:07] Dimik: has joined #ruby
[07:25:11] anas: has joined #ruby
[07:31:06] shazbotmcnasty: has joined #ruby
[07:31:24] Quentinius: has joined #ruby
[07:35:15] conta: has joined #ruby
[07:37:11] [DO]: has joined #ruby
[07:43:42] dn`: has joined #ruby
[07:43:42] andikr: has joined #ruby
[07:51:11] shazbotmcnasty: has joined #ruby
[07:55:07] charliesome: has joined #ruby
[08:02:09] jeanlinux: has joined #ruby
[08:02:43] Jameser: has joined #ruby
[08:04:11] anisha: has joined #ruby
[08:06:10] Aloy: has joined #ruby
[08:06:43] workmad3: has joined #ruby
[08:09:18] Jameser`: has joined #ruby
[08:09:43] dminuoso: baweaver: But passwords are easy to remember. Long SSH keys are not.
[08:09:52] dminuoso: (Ive actually heard that argument once)
[08:10:11] dminuoso: ACTION 's response was a blank stare
[08:11:11] shazbotmcnasty: has joined #ruby
[08:11:17] jeanlinux: has joined #ruby
[08:12:24] odinsbane: has joined #ruby
[08:12:37] odinsbane: I am having trouble compiling ruby-2.3.6 because of openssl
[08:13:33] ineb: baweaver: first time observation of singular they usage for me
[08:13:53] dminuoso: ?gist odinsbane
[08:13:53] ruby[bot]: odinsbane: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[08:14:11] dminuoso: Please gist the entire output, and tell us what command you used to build ruby-2.3.6
[08:14:22] odinsbane: I'm sorry, I mean 2.3.5
[08:15:04] dminuoso: Either way.
[08:15:07] baweaver: ineb: it can be used as both
[08:16:34] ineb: odinsbane: propably because ruby 2.3.x is not compatible with openssl 1.1.x, you need openssl 1.0.x for that
[08:16:50] ineb: *probably
[08:16:57] TomyWork: has joined #ruby
[08:17:19] jaequery: has joined #ruby
[08:18:02] michael3: has joined #ruby
[08:18:41] odinsbane: ineb: Yes, I just use the default openssl for my os, which is 1.1
[08:19:34] odinsbane: Do you know how I would point ruby at a different openssl? ie. I am using ./configure --prefix=/path/to/install and make.
[08:19:40] dminuoso: Can we still at least see the error output? It's a bit unwise to just guess what the problem is.
[08:19:53] dminuoso: "Getting an error with openssl" really is not saying much.
[08:19:55] Psybur: has joined #ruby
[08:20:00] mark_66: has joined #ruby
[08:20:04] dminuoso: Or rather "trobule compiling because of openssl"
[08:20:30] ineb: ^^ but my crystal ball is right
[08:21:25] dminuoso: ineb: Assumption is the mother of all debugging fuckups.
[08:22:08] dminuoso: ineb: Even if its just to make odinsbane supply useful errors, instead of showing him its okay to not give details.
[08:22:35] odinsbane: dminuoso: https://gist.github.com/anonymous/40d96107ded0583a6127cbc4a6d1264c
[08:23:43] dminuoso: ineb's crystal ball is correct. :P
[08:24:54] odinsbane: It seems like this is a pretty common problem. fedora comes with openssl 1.1.
[08:25:17] tAn: has joined #ruby
[08:25:52] ineb: you have a couple of options. use newer ruby versions. build ruby without openssl support. or install the require dependencies
[08:26:01] dminuoso: odinsbane: Is 2.4 an option?
[08:27:02] odinsbane: 2.4 could work, I would prefer 2.3 because the destination is using 2.3 and that cannot be upgraded at the moment.
[08:27:51] odinsbane: I think the best case would be to point the ruby build at a local openssl build. Is there an option to supply to config?
[08:27:52] huyderman: has joined #ruby
[08:28:26] ineb: istn openssl 1.0.x available in fedora repos?
[08:31:05] shazbotmcnasty: has joined #ruby
[08:31:13] claudiuinberlin: has joined #ruby
[08:32:47] Stan: has joined #ruby
[08:34:00] ledestin: has joined #ruby
[08:35:31] howdoi: has joined #ruby
[08:36:09] odinsbane: There appears to be a compatibility package.
[08:37:02] paolog: has joined #ruby
[08:38:04] tAn: has joined #ruby
[08:38:35] enterprisey: has joined #ruby
[08:39:05] srandon111: has joined #ruby
[08:39:22] [DO]: has joined #ruby
[08:41:02] vondruch: has joined #ruby
[08:43:49] odinsbane: Okay, I built and installed a version of open ssl, then I started fresh. Now I get a new error during linking. https://gist.github.com/anonymous/d6c2b9a206ab6273f705a69032fab565
[08:45:19] cdg: has joined #ruby
[08:45:26] aupadhye: has joined #ruby
[08:45:49] tomphp: has joined #ruby
[08:45:58] roshanavand: has joined #ruby
[08:46:04] hutch34: has joined #ruby
[08:51:05] shazbotmcnasty: has joined #ruby
[08:52:55] burgestrand: has joined #ruby
[08:53:57] dionysus69: has joined #ruby
[08:55:18] hutch34: has joined #ruby
[08:57:17] guille-moe: has joined #ruby
[08:58:20] biberu: has joined #ruby
[09:05:30] mikecmpbll: has joined #ruby
[09:05:34] JsilverT: has joined #ruby
[09:06:16] aupadhye_: has joined #ruby
[09:09:26] odinsbane: ok, rebuilt openssl including the -fPIC argument, now I could build and install ruby
[09:11:05] shazbotmcnasty: has joined #ruby
[09:12:40] mtkd: has joined #ruby
[09:12:45] ur5us: has joined #ruby
[09:15:13] mim1k: has joined #ruby
[09:19:29] DoubleMalt: has joined #ruby
[09:19:51] Psybur: has joined #ruby
[09:19:58] gone_haywire: has joined #ruby
[09:20:56] leitz: has joined #ruby
[09:20:56] morfin: has joined #ruby
[09:21:26] morfin: not certain how do i check if string not ends with using regex
[09:21:40] morfin: that's required for AR so i use regex )
[09:21:56] tobiasvl: >> "hello".end_with? "o"
[09:21:57] ruby[bot]: tobiasvl: # => true (https://eval.in/903337)
[09:22:25] jamesaxl: has joined #ruby
[09:25:21] morfin: nvm i will just trim trailing slash if present)
[09:25:48] dviola: has joined #ruby
[09:26:45] jeanlinux: has joined #ruby
[09:27:14] lexruee: has joined #ruby
[09:30:17] jeanlinux: has joined #ruby
[09:31:05] shazbotmcnasty: has joined #ruby
[09:31:23] ur5us: has joined #ruby
[09:32:06] mim1k: has joined #ruby
[09:32:11] hutch34: has joined #ruby
[09:32:29] zautomata: has joined #ruby
[09:38:52] marr: has joined #ruby
[09:40:03] banisterfiend: has joined #ruby
[09:40:21] [DO]: has joined #ruby
[09:45:49] luminor: has joined #ruby
[09:51:11] shazbotmcnasty: has joined #ruby
[09:53:38] yeticry: has joined #ruby
[09:55:30] marienz: has joined #ruby
[09:59:31] yeticry_: has joined #ruby
[10:03:07] qsx: has left #ruby: ("WeeChat 1.9")
[10:04:16] luminor: has joined #ruby
[10:07:03] workmad3: has joined #ruby
[10:10:50] apeiros: has joined #ruby
[10:11:12] shazbotmcnasty: has joined #ruby
[10:11:44] lxsameer: has joined #ruby
[10:12:22] leitz: Anyone have a simple rakefile that works with travis-ci? New to this and missing something simple, I think.
[10:15:28] elphe: has joined #ruby
[10:16:50] sekmo: has joined #ruby
[10:17:59] rouge: has joined #ruby
[10:18:14] hutch34: has joined #ruby
[10:20:01] Psybur: has joined #ruby
[10:21:21] InfinityFye: has joined #ruby
[10:24:57] luminor_: has joined #ruby
[10:26:06] RedNifre: has joined #ruby
[10:26:08] banisterfiend: has joined #ruby
[10:26:23] RedNifre: Hi. What's a good dead simple https library that makes it easy to send the headers I want?
[10:26:34] dminuoso: RedNifre: Any *http* library.
[10:27:10] dminuoso: (TLS is a transparent layer that most support)
[10:27:20] RedNifre: Or maybe I can solve it with the built in one: It seems that the build in one sends duplicate headers because I defined some but it re-adds them with the default values.
[10:27:27] ruby[bot]: We can't help you without your code, please post it to https://gist.github.com
[10:28:38] RedNifre: Hm, it's a secret project so I can't. Guess I'll try to solve it by myself. Thanks anyway!
[10:28:54] ruby[bot]: If you cannot share your code, we cannot help you. Create a complete, executable example that you can share and that reproduces your issue, or hire a consultant.
[10:29:25] dminuoso: RedNifre: Note that extracting a testcase usually either a) isolates the problem
[10:29:35] dminuoso: or b) it reduces code into a shareable portion.
[10:29:50] dminuoso: Either way, it will help fixing the issue.
[10:31:06] shazbotmcnasty: has joined #ruby
[10:31:30] FastJack: has joined #ruby
[10:31:55] dhollinger: has joined #ruby
[10:32:17] dminuoso: RedNifre: Personally I avoid Net::HTTP because it has a very unergonomic API. Stuff like httprb/http or other libraries are more intuitive to use.
[10:38:35] ldnunes: has joined #ruby
[10:41:33] luminor: has joined #ruby
[10:42:27] gregf_: has joined #ruby
[10:45:47] ineb: these secret ruby projects keep me up at night
[10:46:03] ineb: cannot imagine what black magic they might spread over http(s)
[10:47:40] ineb: i hope one of them will reach daylight eventually and give us a next-gen search engine or something like that
[10:49:21] nicesignal: has joined #ruby
[10:51:10] shazbotmcnasty: has joined #ruby
[10:52:17] Siyfion: has joined #ruby
[10:52:58] enterprisey: has joined #ruby
[10:57:14] sentor: has joined #ruby
[10:57:18] rabajaj: has joined #ruby
[10:59:26] sentor: i have a csv file with zip numbers starting with 0 ... after using CSV.table ... the zip number is broken ...
[10:59:35] luminor: has joined #ruby
[11:00:37] sentor: plain csv file zip: 07745
[11:01:06] sentor: after CSV.table ... zip: 4069
[11:01:16] sentor: any hint whats going on here?
[11:03:08] ruby[bot]: We can't help you without your code, please post it to https://gist.github.com
[11:04:24] hutch34: has joined #ruby
[11:04:35] rhyselsmore: has joined #ruby
[11:05:24] dminuoso: sentor: If you can, make a small isolated and executable testcase that we can just run.
[11:05:48] sentor: i will try ... moment plz ...
[11:06:48] elphe: has joined #ruby
[11:10:08] luminor: has joined #ruby
[11:10:35] jaruga: has joined #ruby
[11:11:10] shazbotmcnasty: has joined #ruby
[11:13:04] sentor: https://gist.github.com/anonymous/0ada92d7af3b32b08c8f967d5c844bed
[11:13:15] sentor: this is my code
[11:14:10] sentor: https://gist.github.com/anonymous/c7bb2cb39a739b27dc738307933199e1
[11:14:33] dminuoso: sentor: For future references, you can add multiple files to a single gist. Also if you use a file extension on the file name, you enable syntax highlighting.
[11:14:44] vondruch: has joined #ruby
[11:14:48] sentor: this is my export_source.csv
[11:14:52] dminuoso: Oh turns out github is smart enough to infer the filetype from the shebang, nice.
[11:15:11] sentor: dminuoso: it's my first time ;)
[11:15:31] dminuoso: sentor: Yeah I assumed as much. Just a friendly tip for the future :)
[11:18:32] ruby[bot]: dminuoso: # => 4069 (https://eval.in/903460)
[11:18:36] pppktz: has joined #ruby
[11:18:39] dminuoso: sentor: ^- can you guess what just happened?
[11:18:42] RedNifre: has joined #ruby
[11:19:01] sentor: dminuoso: no
[11:19:19] dminuoso: sentor: If a number starts with "0" its considered octal in Ruby and some other languages.
[11:19:30] dminuoso: Just like 0x means hexadecimal
[11:19:39] ruby[bot]: dminuoso: # => 30533 (https://eval.in/903465)
[11:19:50] Psybur: has joined #ruby
[11:19:57] leitz: New to rake. The rakefile works on my local machine but not on travis-ci.org. https://gist.github.com/LeamHall/6a5ac358dd0893a70d29df9e6e1ca5e8
[11:21:18] Macaveli: has joined #ruby
[11:21:51] sentor: dminuoso: cool thx ... is there a way to tell ruby handle this as a string ...
[11:22:12] dminuoso: sentor: Check the CSV documentation. It's something about the "converters" that CSV uses.
[11:22:56] hutch34: has joined #ruby
[11:23:02] dminuoso: sentor: It seems like Ruby automatically tries to infer the data type, converting them to some rubyism. It might even consider something like "2017-01-01" as a Date/Time/DateTime object.
[11:23:51] banisterfiend: has joined #ruby
[11:25:09] dminuoso: sentor: apparently explicitly passing: `converters: nil` seems to do the job
[11:25:56] dminuoso: sentor: If you needed number processing, you could write your own converter for that field, that strips the 0, and then uses Integer.
[11:28:07] sentor: dminuoso: you save may day ... converters: nil is perfect fo me ... thx
[11:30:54] tvw: has joined #ruby
[11:31:07] shazbotmcnasty: has joined #ruby
[11:31:43] rahul_bajaj: has joined #ruby
[11:33:12] yeticry: has joined #ruby
[11:33:19] apparition: has joined #ruby
[11:38:33] ruby[bot]: morfin: # => 438 (https://eval.in/903486)
[11:38:54] morfin: it works even in Ruby :D
[11:40:52] code_zombie: has joined #ruby
[11:41:33] [DO]: has joined #ruby
[11:41:37] ruby[bot]: morfin: # => 438 (https://eval.in/903488)
[11:41:47] morfin: ok, same result here
[11:44:48] luminor: has joined #ruby
[11:48:58] zanoni: has joined #ruby
[11:51:07] shazbotmcnasty: has joined #ruby
[11:51:30] luminor_: has joined #ruby
[11:52:20] dminuoso: morfin: Interesting, never seen 0o before
[11:55:07] hutch34: has joined #ruby
[11:57:01] morfin: i saw guy wrote 0o in Python code )
[11:58:32] vtx: has joined #ruby
[12:00:17] morfin: but there number starting with 0 considered octal as well
[12:04:20] vtx: guys has anyone here worked with sinatra before? i’m struggling to understand what my urls should look like if i want to pass in a list of unknown length to my endpoint?
[12:04:27] bob_f: has left #ruby: ()
[12:07:12] workmad3: has joined #ruby
[12:09:47] shortdudey123: has joined #ruby
[12:10:48] adaedra: vtx: what do you mean by "a list of unkown length"?
[12:11:08] shazbotmcnasty: has joined #ruby
[12:11:11] adaedra: Can you give examples?
[12:12:11] c0ncealed: has joined #ruby
[12:12:31] morfin: how do you think is that good idea to start writing parser(s) for different sites(i gonna build one system) using headless browser in first place?
[12:12:46] rhyselsmore: has joined #ruby
[12:14:08] morfin: or maybe just implement some parsers where it's possible using nokogiri, faraday + httpclient and write only some parsers using headless browser(as example ones who need AJAX, or just SPA etc)
[12:14:30] shinnya: has joined #ruby
[12:15:00] drowze: has joined #ruby
[12:18:11] ineb: morfin: i dont know. if you just need to scrape some content, you can stick to nokogiri and friends. its likely that you never need to eval js and get the desired content one way or another.
[12:18:51] ineb: by directly calling the resources that would normally be called by the javascript part.
[12:19:51] Psybur: has joined #ruby
[12:20:52] ineb: intelligent content recognition on the other hand is a rabbit hole and science topic in itself.
[12:21:24] ineb: a headless browser would be the base for that i guess.
[12:23:00] morfin: well, i was thinking about using both ways because nokogiri way seems to be more..stable when no JS involved
[12:23:39] morfin: also can you suggest one without needing to use Capybara?
[12:23:45] ineb: it sure is. and js is usually only then involved when interaction comes into play
[12:24:04] ineb: calculating some fancy cloudflare challenges etc.
[12:24:14] plexigras: has joined #ruby
[12:24:35] morfin: i tried Phantomjs but it seems to be useful only for tests
[12:24:57] morfin: also unmaintained(?)
[12:25:25] Guest65341: has joined #ruby
[12:26:46] webguynow: has joined #ruby
[12:28:49] adaedra: phantomjs has been deprecated in favor of chrome headless I think
[12:28:55] noobineer: has joined #ruby
[12:29:01] ineb: morfin: i can give you a more narrow direction if you give a concrete problem
[12:29:24] morfin: well, i am going to run this stuff on FreeBSD 11.1 of course without X =)
[12:30:16] adaedra: There's always Xvfb in case of need (=
[12:30:30] truenito: has joined #ruby
[12:31:03] morfin: i remember how i started SRCDS(when there was no implementation of Gmod on Linux) under Wine in Xvfb :D
[12:31:07] shazbotmcnasty: has joined #ruby
[12:31:50] morfin: but with Xvfb i'd be able to run browser and use Selenium i guess
[12:32:06] morfin: but i want to minimize software i should install
[12:32:57] ineb: then ask yourself if you need a browser. its usually only required for functional testing of websites
[12:33:26] morfin: i'd need because some sites use bunch of AJAX
[12:33:32] adaedra: take a look at chrome headless, it may work without X at all
[12:33:41] adaedra: (At least without it running)
[12:33:42] morfin: seems like there is no such thing
[12:33:59] morfin: headless chrome is not headless
[12:34:12] adaedra: Still needs a X server?
[12:34:38] ineb: morfin: mimicking the ajax requests not possible?
[12:35:04] ineb: it almost always is
[12:35:33] morfin: ah i see it's poissble to run chrome without head
[12:36:12] dminuoso: adaedra: How does capybara drive headless chrome?
[12:36:15] dminuoso: Does it use selenium?
[12:36:30] adaedra: Probably like it drives standard chrome
[12:36:34] morfin: not sure it would work under Linuxulator for x64 because linuxulator devs are pretty slow
[12:36:40] adaedra: https://developers.google.com/web/updates/2017/04/headless-chrome
[12:36:43] morfin: and lazy )
[12:36:50] dminuoso: adaedra: This actually sounds so much better than phantom js already.
[12:36:55] dminuoso: Exactly what I always wanted.
[12:37:03] adaedra: well yeah, it's a real chrome
[12:37:07] morfin: i was using phantom it's pretty bad
[12:37:20] morfin: was painful to use it for my purposes
[12:37:42] dminuoso: adaedra: Can it also render screenshots?
[12:37:53] dminuoso: Oh wait it can!
[12:40:31] banisterfiend: has joined #ruby
[12:43:09] tcopeland: has joined #ruby
[12:45:38] cdg: has joined #ruby
[12:46:47] jeanlinux: has joined #ruby
[12:47:07] banisterfiend: has joined #ruby
[12:49:50] tsglove: has joined #ruby
[12:51:06] shazbotmcnasty: has joined #ruby
[12:55:08] hutch34: has joined #ruby
[12:59:15] synthroid: has joined #ruby
[13:05:53] ferr: has joined #ruby
[13:07:06] ferr: has left #ruby: ()
[13:11:07] shazbotmcnasty: has joined #ruby
[13:15:01] snickers: has joined #ruby
[13:19:53] bmurt: has joined #ruby
[13:19:53] Psybur: has joined #ruby
[13:24:22] gnufied: has joined #ruby
[13:25:01] JsilverT: has joined #ruby
[13:26:04] dinoangelov: has joined #ruby
[13:26:09] madhatter: has joined #ruby
[13:27:23] hutch34: has joined #ruby
[13:28:29] d10n-work: has joined #ruby
[13:29:11] kahra: has joined #ruby
[13:31:10] shazbotmcnasty: has joined #ruby
[13:34:24] InfinityFye: has joined #ruby
[13:36:06] Ouchy: has joined #ruby
[13:36:07] Ouchy: has joined #ruby
[13:36:12] Ouchy`w: has joined #ruby
[13:40:34] vtx: adaedra: so if i have a search form, allowing users to filter on a result set, what would my endpoint look like if i wanted to filter on a string and on some check boxes being checked or not? e.g. if a user searches for “failure”, and of three checboxes, “active”, “closed”, or “deleted”, they check “active” and “closed”, i would want my endpoint to be able to search based on the “failure” string, and also for “active” and “closed”
[13:41:06] adaedra: this is not clear at all
[13:41:11] adaedra: what would the URI look like?
[13:41:13] vtx: so, say my endpoint looks like /api/v1/search/:query/and/:checkboxes, how can i pass multiple values to “checkboxes”
[13:41:25] PixeLInc: has joined #ruby
[13:41:56] adaedra: something like /api/v1/search/foo/and/alpha/beta/charlie ?
[13:42:38] vtx: adaedra: but then wouldn’t that mean i’d have to define my search like: /api/v1/search/:query/and/:checkbox1/:checkbox2/:checkbox3?
[13:42:52] vtx: *search endpoint
[13:42:55] adaedra: You can use a splat
[13:43:09] adaedra: however, this goes against common usages, I'd say
[13:43:26] Technodrome: has joined #ruby
[13:43:34] adaedra: I think something more standard would be /api/v1/search/toto?checkbox1=1&checkbox2=1&checkbox3=1
[13:44:14] vtx: adaedra: how can i define a url like that in sinatra? is it like /api/v1/search/:query, and then i have to manually extract the params from :query?
[13:44:49] adaedra: parameters (as shown after the ?) are not part of the URL you define, they are accessible through params iirc
[13:45:36] adaedra: so yeah you define your endpoint like this and use `params`
[13:46:11] devchild: has joined #ruby
[13:46:30] aconite33: has joined #ruby
[13:47:01] aconite33: If I have a string "0A00" and I want to convert it into a hex format e.g., ("\x0A\x00") how can I do that?
[13:47:09] aconite33: Is there a way to do this with sprintf?
[13:48:07] vtx: adaedra: thank you so much! this is exactly what i needed!
[13:51:08] shazbotmcnasty: has joined #ruby
[13:54:34] iamarun: has joined #ruby
[13:58:47] mcr1: has joined #ruby
[13:58:51] TinkerTyper: has joined #ruby
[14:04:07] hinbody: has joined #ruby
[14:04:51] ahrs: has joined #ruby
[14:05:22] Tolnaiz: has joined #ruby
[14:07:34] workmad3: has joined #ruby
[14:07:48] hutch34: has joined #ruby
[14:11:07] shazbotmcnasty: has joined #ruby
[14:11:47] wnd: has joined #ruby
[14:12:12] soc42: has joined #ruby
[14:14:01] Guest70176: has joined #ruby
[14:14:51] Jameser: has joined #ruby
[14:19:06] mcr1: has joined #ruby
[14:19:22] banisterfiend: has joined #ruby
[14:20:00] rabajaj: has joined #ruby
[14:20:00] Psybur: has joined #ruby
[14:20:21] jordanm: has joined #ruby
[14:20:45] LyndsySimon: has left #ruby: ()
[14:25:46] n13z: has joined #ruby
[14:26:38] wnd: has joined #ruby
[14:27:13] griffindy: has joined #ruby
[14:27:29] mson: has joined #ruby
[14:31:07] shazbotmcnasty: has joined #ruby
[14:32:25] allcentury: has joined #ruby
[14:33:10] DLSteve: has joined #ruby
[14:33:52] nowhere_man: has joined #ruby
[14:33:57] wnd: has joined #ruby
[14:36:10] Scorpion: has joined #ruby
[14:37:43] safetypin: has joined #ruby
[14:38:50] aconite33: ['0A00'].pack('H*')
[14:38:53] aconite33: Apaprently will do that.
[14:40:05] cdg: has joined #ruby
[14:42:11] ledestin: has joined #ruby
[14:43:47] [DO]: has joined #ruby
[14:44:13] DanielI: has joined #ruby
[14:44:14] DanielI: has joined #ruby
[14:46:04] guille-moe: has joined #ruby
[14:47:40] saslam: has joined #ruby
[14:48:25] tlaxkit: has joined #ruby
[14:49:00] DanielI: has joined #ruby
[14:49:00] DanielI: has joined #ruby
[14:49:03] Guest70176: has joined #ruby
[14:49:25] oleo: has joined #ruby
[14:51:08] shazbotmcnasty: has joined #ruby
[14:53:42] claudiuinberlin: has joined #ruby
[15:02:52] shazbotmcnasty: has joined #ruby
[15:08:56] chouhoulis: has joined #ruby
[15:12:10] userser: has joined #ruby
[15:12:46] ule: aconite33: oh this magic .pack H*. Saved me same time ago as well
[15:12:55] odinsbane: has left #ruby: ()
[15:13:40] Rapture: has joined #ruby
[15:13:43] userser: i asked that we'd learn ruby in class. instead they put javascript in. now i don't know how to code. thanks for ruining everything about that education.
[15:13:46] selim: has joined #ruby
[15:14:00] dminuoso: userser: JavaScript is actually a clean language.
[15:14:07] dminuoso: userser: It's just infested by many bad libraries and developers.
[15:14:19] userser: ruby is so much more logical
[15:14:27] dminuoso: userser: I beg to differ.
[15:14:37] userser: ruby is better. so much better my friend.
[15:14:50] userser: sure you may differ, but let's keep it at that and not argue
[15:14:59] dminuoso: Ruby is great don't get me wrong. But JavaScript is quite clean and logical.
[15:15:08] userser: i just wanted to state that cause i've been angry about it since 2015
[15:15:29] dminuoso: Both are fine languages really. JS just has a bad reputation (much of which is based on language deficiencies that were addressed by ES6 or the intruction of eslint)
[15:15:53] dminuoso: In many ways I prefer JavaScript actually nowadays. :)
[15:16:13] userser: ruby is a much better language for people who are just starting out
[15:16:18] rippa: has joined #ruby
[15:16:57] userser: because it's written the way we initially think and learn.
[15:17:12] userser: dminuoso, go love your javascript :)
[15:18:27] userser: it was a top notch education though. would have been easy to learn had i not been harassed constantly in my home during it. just saying.
[15:18:39] safetypin: has joined #ruby
[15:18:43] dminuoso: userser: Well I found comfort in functional JavaScript.
[15:18:59] dminuoso: As it turns out, JS is quite well suited for that programming paradigm.
[15:19:10] userser: dminuoso, loves the JS mush mush kissing in a tree
[15:19:40] dminuoso: ACTION goes back doing productive things
[15:19:52] Psybur: has joined #ruby
[15:20:39] userser: have fun. i'm productive too everyday baking and cleaning.
[15:21:42] userser: i'll treat you a bun and a latte. there there. have a nice day
[15:24:26] krawchyk: has joined #ruby
[15:27:31] rouge: has joined #ruby
[15:27:54] jackjackdripper1: has joined #ruby
[15:30:28] sepp2k: has joined #ruby
[15:30:28] rfoust: has joined #ruby
[15:31:07] shazbotmcnasty: has joined #ruby
[15:33:17] Frem: has joined #ruby
[15:35:34] planigan: has joined #ruby
[15:39:12] tAn: has joined #ruby
[15:41:03] PrinCe: has joined #ruby
[15:41:27] cdg: has joined #ruby
[15:43:38] cschneid_: has joined #ruby
[15:43:48] cdg: has joined #ruby
[15:44:04] hutch34: has joined #ruby
[15:44:33] [DO]: has joined #ruby
[15:44:40] fusta: has joined #ruby
[15:46:48] michael3: has joined #ruby
[15:48:51] troys: has joined #ruby
[15:49:12] kculpis: has joined #ruby
[15:50:49] dtzuzu: has joined #ruby
[15:51:07] shazbotmcnasty: has joined #ruby
[15:52:04] polishdub: has joined #ruby
[15:53:39] saslam_: has joined #ruby
[15:56:00] sammi`: has joined #ruby
[15:56:59] bexelbie: has joined #ruby
[15:57:23] bexelbie: I am looking at an erb template and see a line like "foo = bar == baz" - can someone tell me the name of this construct so I can look it up?
[15:58:03] dminuoso: bexelbie: it's an assignment.
[15:58:09] dminuoso: bexelbie: let me rewrite with explicit params:
[15:58:10] elomatreb: It's equivalent to foo = (bar == baz)
[15:58:13] dminuoso: foo = (bar == baz)
[15:58:26] bexelbie: ahh, so foo winds up with a boolean from the equality check
[15:58:39] bexelbie: I didn't even consider order of operations ... doh!
[15:58:41] dminuoso: bexelbie: The "construct" is called operator precedence and associativity.
[15:59:21] Lytol: has joined #ruby
[15:59:50] bexelbie: dminuoso, elomatreb thank you both
[16:04:31] tAn: has joined #ruby
[16:05:37] hutch34: has joined #ruby
[16:05:55] claudiuinberlin: has joined #ruby
[16:07:07] Guest70176: has joined #ruby
[16:07:10] joast: has joined #ruby
[16:07:52] workmad3: has joined #ruby
[16:10:22] claudiuinberlin: has joined #ruby
[16:11:09] shazbotmcnasty: has joined #ruby
[16:12:17] tAn: has joined #ruby
[16:14:16] zautomata: has joined #ruby
[16:14:18] jeanlinux: has joined #ruby
[16:14:39] iamarun: has joined #ruby
[16:15:12] claudiuinberlin: has joined #ruby
[16:15:58] Technodrome: has joined #ruby
[16:16:01] synthroid: has joined #ruby
[16:18:10] claudiuinberlin: has joined #ruby
[16:19:53] Psybur: has joined #ruby
[16:20:00] drowze: has joined #ruby
[16:20:03] cognoscente: has joined #ruby
[16:21:57] uZiel: has joined #ruby
[16:22:59] [Butch]: has joined #ruby
[16:24:47] urk187: has joined #ruby
[16:24:49] cognoscente: has left #ruby: ()
[16:25:54] kanobt61: has joined #ruby
[16:27:01] mcr1: has joined #ruby
[16:31:09] shazbotmcnasty: has joined #ruby
[16:31:13] iamarun: has joined #ruby
[16:31:25] synthroid: has joined #ruby
[16:32:54] jaequery: has joined #ruby
[16:33:20] synthroid: has joined #ruby
[16:35:06] mtkd: has joined #ruby
[16:37:53] cagomez: has joined #ruby
[16:41:55] ixti: has joined #ruby
[16:43:56] hutch34: has joined #ruby
[16:45:58] iamarun: has joined #ruby
[16:46:25] uZiel: has joined #ruby
[16:46:36] [DO]: has joined #ruby
[16:47:54] cagomez: has joined #ruby
[16:50:22] mson: has joined #ruby
[16:51:08] shazbotmcnasty: has joined #ruby
[16:55:44] rabajaj: has joined #ruby
[17:02:25] Sammichmaker: has joined #ruby
[17:06:14] bmurt: has joined #ruby
[17:07:25] s778: has joined #ruby
[17:08:29] michael3: has joined #ruby
[17:09:10] howdoi: has joined #ruby
[17:09:23] Guest70176: has joined #ruby
[17:10:26] s778: I'm trying to wrap my head around the ruby source code, but am having a lot of trouble figuring out what the heck is going on. Does anybody happen to know of any resources that might help me get started? For example, what is this mysterious VALUE type that keeps popping up
[17:10:53] faces: has joined #ruby
[17:12:49] dminuoso: s778: VALUE is basically.. anything.
[17:13:03] raynold: has joined #ruby
[17:13:09] dminuoso: s778: https://silverhammermba.github.io/emberb/c/
[17:13:19] dminuoso: s778: This is a good read, but it only covers facts relevant to C extensions.
[17:13:44] dminuoso: s778: Also in a somewhat unrelated matter be sure to also give Ruby under a Microscope a read. It covers some of the slightly higher level aspects, such as the ruby objectm odel.
[17:14:24] dminuoso: The last resource is grossly outdated, but a lot of concepts still exist: https://ruby-hacking-guide.github.io/
[17:14:28] s778: oh boy, this might take a while
[17:14:29] justinweiss: has joined #ruby
[17:14:30] dminuoso: Don't expect anything it mentions to line up with existing code.
[17:14:57] dminuoso: Beyond that it's pretty much "Good luck!"
[17:15:44] helpa: has joined #ruby
[17:15:46] dminuoso: Also consider the mailing lists.
[17:16:00] s778: Cool! Thanks for the help
[17:16:10] s778: If it's alright, I might come back if I get absolutely stumped
[17:16:16] dminuoso: Absolutely.
[17:16:18] jeanlinux: has joined #ruby
[17:18:35] tomphp: has joined #ruby
[17:19:22] roshanavand: has joined #ruby
[17:19:53] Psybur: has joined #ruby
[17:20:31] banisterfiend: has joined #ruby
[17:21:03] dionysus69: has joined #ruby
[17:21:09] SeepingN: has joined #ruby
[17:23:13] [DO]: has joined #ruby
[17:25:16] synthroid: has joined #ruby
[17:27:48] yabbes: has joined #ruby
[17:28:41] jaequery: has joined #ruby
[17:29:43] orbyt_: has joined #ruby
[17:30:06] bexelbie: has left #ruby: ("Leaving")
[17:33:35] ivanskie: has joined #ruby
[17:38:26] bronson: has joined #ruby
[17:38:37] gone_haywire: has joined #ruby
[17:38:41] jaequery: has joined #ruby
[17:38:58] hutch34_: has joined #ruby
[17:39:21] jaequery: has joined #ruby
[17:39:43] eckhardt: has joined #ruby
[17:40:04] aroaminggeek: has joined #ruby
[17:40:08] jaequery: has joined #ruby
[17:41:01] jaequery: has joined #ruby
[17:41:49] jaequery: has joined #ruby
[17:42:34] jaequery: has joined #ruby
[17:43:22] jaequery: has joined #ruby
[17:45:21] jordanm: has joined #ruby
[17:48:13] oetjenj: has joined #ruby
[17:48:45] Zamyatin: has joined #ruby
[18:04:12] claudiuinberlin: has joined #ruby
[18:04:15] elphe: has joined #ruby
[18:05:48] shakes: has joined #ruby
[18:08:13] workmad3: has joined #ruby
[18:09:28] shazbotmcnasty: has joined #ruby
[18:12:25] hahuang65: has joined #ruby
[18:13:22] orbyt_: has joined #ruby
[18:14:44] ramfjord: has joined #ruby
[18:15:59] oetjenj: has joined #ruby
[18:16:44] oetjenj: has joined #ruby
[18:17:31] oetjenj: has joined #ruby
[18:18:29] troulouliou_dev: has joined #ruby
[18:19:50] Psybur: has joined #ruby
[18:24:28] Technodrome: has joined #ruby
[18:24:29] troulouliou_dev: has joined #ruby
[18:26:27] zautomata: has joined #ruby
[18:27:03] veeti: has joined #ruby
[18:27:07] uZiel: has joined #ruby
[18:31:50] Exhiled: has joined #ruby
[18:33:09] truenito1: has joined #ruby
[18:38:37] Dimik: has joined #ruby
[18:43:52] userser: has joined #ruby
[18:47:15] Technodrome: has joined #ruby
[18:48:23] ShalokShalom: has joined #ruby
[18:58:58] tomphp: has joined #ruby
[19:00:01] Ouchy`w: has joined #ruby
[19:00:45] veeti: has joined #ruby
[19:01:32] userser: lagweezle, please disable public away msg
[19:02:12] cloaked1: has joined #ruby
[19:03:10] devchild: has joined #ruby
[19:03:33] Ouchy: has joined #ruby
[19:03:34] Ouchy: has joined #ruby
[19:06:02] mcr1: has joined #ruby
[19:06:48] ldnunes: has joined #ruby
[19:11:56] Guest70176: has joined #ruby
[19:13:30] rouge: has joined #ruby
[19:14:33] ur5us: has joined #ruby
[19:18:01] conta: has joined #ruby
[19:19:53] Psybur: has joined #ruby
[19:20:16] mr_foto: has joined #ruby
[19:20:38] devchild: has joined #ruby
[19:22:27] eckhardt: has joined #ruby
[19:27:18] tcopeland: s778: there’s also http://patshaughnessy.net/ruby-under-a-microscope
[19:27:51] dminuoso: tcopeland: Which I have mentioned by the way. :P
[19:28:44] tcopeland: ooo shoot yes you did
[19:29:00] tcopeland: too much skimming on my part
[19:29:28] dminuoso: Its a brilliant book though, worth mentioning twice.
[19:30:09] tcopeland: pretty much anything he writes is worth a close read
[19:30:38] aScottishBoat: has joined #ruby
[19:30:40] tcopeland: I had some weird thing with Tracepoints and Arrays once and asked him about it on the twitters, bam, he nailed it right away
[19:31:02] dminuoso: tcopeland: Though sadly Im hoping there will be a revised version
[19:31:09] dminuoso: Half the code doesn't line up with trunk anymore.
[19:31:39] tcopeland: hmm nov 2013 has it been that long
[19:32:44] orbyt_: has joined #ruby
[19:33:00] tcopeland: gosh, metaprogramming 2 came out in aug 2014… I didn’t think it’d been that long on that one either
[19:44:33] zacts: has joined #ruby
[19:48:15] michael3: has joined #ruby
[19:53:12] nadir: has joined #ruby
[19:54:11] yabbes: has joined #ruby
[20:02:08] ur5us: has joined #ruby
[20:02:49] cognoscente: has joined #ruby
[20:08:26] workmad3: has joined #ruby
[20:13:39] Guest70176: has joined #ruby
[20:13:56] dminuoso: >> Module.instance_method(:include).arity
[20:13:57] ruby[bot]: dminuoso: # => -1 (https://eval.in/903827)
[20:14:02] dminuoso: Why is ruby being so annoying here?
[20:14:40] dminuoso: Or more to the point:
[20:16:30] ur5us: has joined #ruby
[20:19:53] Psybur: has joined #ruby
[20:21:46] GodFather: has joined #ruby
[20:28:33] fusta: has joined #ruby
[20:30:41] orbyt_: has joined #ruby
[20:33:59] cognoscente: has left #ruby: ()
[20:40:34] banisterfiend: has joined #ruby
[20:42:19] eckhardt: has joined #ruby
[20:44:04] luminor: has joined #ruby
[20:50:23] orbyt_: has joined #ruby
[20:53:41] Barrt: has joined #ruby
[20:57:52] mochiyoda: has joined #ruby
[21:00:17] havenwood: >> Module.instance_method(:include).parameters
[21:00:18] ruby[bot]: havenwood: # => [[:rest]] (https://eval.in/903874)
[21:00:41] darkn1: has joined #ruby
[21:03:10] rhyselsmore: has joined #ruby
[21:04:21] tvw: has joined #ruby
[21:12:09] dviola: has joined #ruby
[21:15:15] Guest70176: has joined #ruby
[21:16:24] dminuoso: havenwood: Are you bored right now?
[21:16:40] havenwood: dminuoso: I wish!
[21:18:04] havenwood: dminuoso: I ended up with a really busy, short week.
[21:18:23] havenwood: Thursday *soon*.
[21:18:53] dminuoso: havenwood: I think my way of composing functions was unsound.
[21:19:45] dminuoso: You remember: class Proc; def *(f); ->(*args) { self[f[args]] }; end; end?
[21:19:51] dminuoso: *args in there.
[21:19:53] Psybur: has joined #ruby
[21:19:58] dminuoso: There's a fundamental flaw, and that has to do with arity.
[21:20:29] dminuoso: Im basically forced to do ->(*args) { self[f[args[0]]] }.curry[*args[1..-1]]
[21:21:42] dminuoso: (Since I want to allow things like (g * f).(1,2,3), rather than (g * f).(1).(2,3)
[21:24:02] shazbotmcnasty: has joined #ruby
[21:24:08] dminuoso: Err, that wont quite work
[21:24:23] Liothen: has joined #ruby
[21:24:36] dminuoso: ->(*args) { self[f[args[0]]].curry[*args[1..-1]] }
[21:25:13] Liothen: has joined #ruby
[21:26:10] peeja: has joined #ruby
[21:26:27] Guest88741: has joined #ruby
[21:29:15] kitsunenokenja: has joined #ruby
[21:30:38] apeiros: has joined #ruby
[21:33:50] AnoHito: has joined #ruby
[21:34:39] Zamyatin: has joined #ruby
[21:34:50] Technodrome: has joined #ruby
[21:38:00] sammi`_: has joined #ruby
[21:40:24] shazbotmcnasty: has joined #ruby
[21:41:47] tAn: has joined #ruby
[21:50:55] michael3: has joined #ruby
[21:52:34] jeanlinux: has joined #ruby
[22:01:44] ap4y: has joined #ruby
[22:01:51] cdg: has joined #ruby
[22:04:31] orbyt_: has joined #ruby
[22:08:45] workmad3: has joined #ruby
[22:10:18] conta: has joined #ruby
[22:11:10] wnd: has joined #ruby
[22:16:53] Guest70176: has joined #ruby
[22:19:51] Psybur: has joined #ruby
[22:21:33] divd: has joined #ruby
[22:21:45] AxelAlex: has joined #ruby
[22:22:21] centrx: has joined #ruby
[22:22:21] centrx: has joined #ruby
[22:23:23] lagweezle: has left #ruby: ()
[22:27:09] dennisvennink: has joined #ruby
[22:32:29] mitchellvanw: has joined #ruby
[22:33:45] CBebop: has joined #ruby
[22:36:55] veeti: has joined #ruby
[22:38:26] leitz: has joined #ruby
[22:40:14] orbyt_: has joined #ruby
[22:43:01] snickers: has joined #ruby
[22:43:16] c0ncealed: has joined #ruby
[22:49:51] tenderlove: has joined #ruby
[22:52:27] hopsoft: has joined #ruby
[22:53:41] baweaver: ohai tenderlove. How'd the talk go for ya?
[22:54:01] tenderlove: it went well, I think. Thank you!
[22:54:19] baweaver: I always look forward to seeing them for the puns :D
[22:54:59] Guest70176: has joined #ruby
[22:58:13] pragmatism: tenderlove The first talk of yous I saw at RailsConf five or so years back had me in tears
[22:58:22] pragmatism: Always look forward to them
[22:58:29] tenderlove: thank you!! ❤️ ❤️
[22:58:43] orbyt_: has joined #ruby
[22:58:44] elphe: has joined #ruby
[22:59:26] shazbotmcnasty: has joined #ruby
[23:04:35] cschneid_: has joined #ruby
[23:05:29] thinkpad: has joined #ruby
[23:05:55] divoxx: has joined #ruby
[23:09:24] [Butch]: has joined #ruby
[23:10:48] Lytol: has joined #ruby
[23:11:23] pilne: has joined #ruby
[23:11:24] n305oul93: has joined #ruby
[23:14:54] dstrunk: has joined #ruby
[23:15:28] xlegoman: has joined #ruby
[23:17:49] sucks: has joined #ruby
[23:17:57] ramfjord: has joined #ruby
[23:18:22] [Butch]: has joined #ruby
[23:19:53] Psybur: has joined #ruby
[23:23:18] nachoman: has joined #ruby
[23:25:33] elphe: has joined #ruby
[23:30:04] tomphp: has joined #ruby
[23:33:28] ensyde: has joined #ruby
[23:34:13] mikecmpbll: has joined #ruby
[23:34:51] Technodrome: has joined #ruby
[23:37:54] oetjenj: has joined #ruby
[23:44:18] p0p0pr37: has joined #ruby
[23:45:51] jaequery: has joined #ruby
[23:48:30] rfoust: has joined #ruby
[23:52:07] gix: has joined #ruby
[23:56:00] Guest70176: has joined #ruby