havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
<banisterfiend> well you need a system ruby installed, install via rbenv or whatever and set 'rbenv global' to it
<banisterfiend> then run 'autoreconf -i'
<banisterfiend> and then './configure'
<leitz> banisterfiend, that failed.
mim1k has quit [Ping timeout: 255 seconds]
<banisterfiend> are you sure a 'ruby' is on the path when you do the compile??
<leitz> Reinstalled Ruby (1.8.7), ran /usr/local/bin/autoreconf -i, and then ./configure.
<leitz> PATH, yup.
<banisterfiend> NOT 1.8.7
<banisterfiend> 1.8.7 is ancient
<leitz> That's the system ruby.
<banisterfiend> install something like 2.4.2
<leitz> You haven't read my blog article, have you?
<banisterfiend> what system are you running? heh, that's like 10 years old
<leitz> CentOS 6.
<RickHull> centos -- the cent means 100 years old
<leitz> Can't argue, but it's close to the version that pays the bills.
workmad3 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RickHull> leitz: why not just install the tgz or ruby-install?
<RickHull> this damage seems mostly self-inflicted
<banisterfiend> leitz well, i don't think 1.8.7 is capable of doing what you want in this situation, but good luck
<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.
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> yeah -- despite the initial answer to your initial question -- it does appear that you need a system ruby
<RickHull> but maybe not with the 2.5.0 tgz
<RickHull> worth a shot
<RickHull> and if you do need a system ruby, then get that first, and then try either the tgz or git repo
<leitz> Yeah, there's a --with-baseruby=RUBY option I'm working on.
<banisterfiend> leitz i'm saying you may need a ruby version > 1.8.7 just to compile 2.5.0
alveric has joined #ruby
<RickHull> and you won't find much support sympathy for 1.8.7 problems
<leitz> Ah...odd.
<RickHull> whatever you find, consider updating your ticket and/or closing it
<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.
dstrunk has joined #ruby
<RickHull> they must exist but I couldn't tell you where to find them. the hivemind has moved on, long ago
<eam> leitz: I don't mind helping with 1.8.7
workmad3 has quit [Ping timeout: 268 seconds]
<eam> I have quite a few centos6 machines I have to manage myself
<banisterfiend> 1.8.7 was ok, way better than 1.8.6 iirc (i think there was a big jump between those two)
shazbotmcnasty has joined #ruby
<banisterfiend> but 1.9.3+ is where it's @
<RickHull> practically 2.0 :)
<banisterfiend> 1.9.1 was lel and broke so much compatibility they reverted it in 1.9.2
<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.
alveric4 has quit [Ping timeout: 240 seconds]
<RickHull> ha, let me volunteer to help you with hundreds of servers xD
<eam> yeah it's kinda silly
<leitz> doing ./configure --with-baseruby=/usr/bin/ruby worked for the configure but the make failed.
cschneid_ has joined #ruby
<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?
<eam> what version of ruby are you trying to build, and how? sorry, catch me up?
<leitz> Installing 2.4.2 just compiled seems to work.
<leitz> eam, was trying to build 2.5.0-preview1. The original issue is that the git repo didn't have tool/config.sub.
<eam> ah
<leitz> Worked around that by stealing one from 2.4.2, but the make just failed.
<RickHull> do you have the same problem with the tgz?
<leitz> Compiling 2.4.2 works.
<eam> did you use automake? A lot of the build tools on centos6 are super old too
<leitz> RickHull, good question, gimme a minute to stretch my legs and check.
<eam> though often the issue there can be solved by finding various auto* config files and just manually lowering the required version
<leitz> eam, Had to compile auto* tools as well. :)
harfangk has joined #ruby
<RickHull> leitz: also, what about epel repos or other 3rd party for newer system ruby?
<eam> iirc they by default include a min ver requirement of the autotools used to generate the stubs
<eam> but
<eam> they don't actually
<leitz> RickHull, I'd like to stick as close to Ruby core as possible, if I go with it.
<eam> so you can just edit them and lower the version
<leitz> eam, required a newer autoconf version.
amclain has joined #ruby
<RickHull> leitz: i just mean, if 1.8.7 is insufficient, you can get a newer ruby via rpm/yum
<eam> really required? or the file said it required it?
<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
cschneid_ has quit [Ping timeout: 248 seconds]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
<leitz> eam, choked and quit.
<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
<eam> dumb behavior in autoconf
<leitz> Running make on the 2.5.0 tarfile. ./configure works.
charliesome has joined #ruby
Psybur has joined #ruby
amclain has quit [Client Quit]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
<RickHull> Radar: no idea, but "not working for the number 3" -- is that as hilarious as it sounds?
<eam> who does number three work for?
<Radar> RickHull: yes, yes it is :) test says input "password123", input only gets "password12"
<eam> hahaha
<RickHull> have you tried ******** ?
<eam> how did you know my password
<RickHull> bash.org has it
<eam> hunter2
<baweaver> All I saw was hunter2
<baweaver> dangit
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Psybur has quit [Ping timeout: 248 seconds]
mtkd has quit [Ping timeout: 268 seconds]
<leitz> Building 2.5.0-p1 from tar.gz file compiles and "make test" works.
<leitz> Already annotated in the ticket.
mtkd has joined #ruby
<RickHull> even without ruby 1.8.7 ?
goyox86 has quit [Remote host closed the connection]
<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.
<leitz> I'm leaning OOP, TDD, and all the cool acronyms.
goyox86 has joined #ruby
<RickHull> cool! I love ruby, been doing it for over a decade now
<leitz> Didn't try removing the old ruby, lemme give that a go,
<leitz> Yeah, it's just the issue of paying bills if your're not a RoR person.
<RickHull> but.. in my decade of wisdom, I have leaned away from dogmatic OOP, and I never really did TDD
<RickHull> and probably won't
<leitz> I'm liking TDD; I hate checking things manually.
<RickHull> that said, take it all in, and many people much wiser than me have embraced these things
<RickHull> I write tests, lots of them, just typically not before I write the code
shazbotmcnasty has joined #ruby
<leitz> Guy at work had some awk code with just an "at the end" test. 20,000 lines of code, no tests. *sigh*
<RickHull> I am constant refactoring, and you can't refactor safely without tests
<RickHull> *constantly
ogres has joined #ruby
<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
<Radar> ^^^
joast has joined #ruby
<Radar> This is also my experience.
<Radar> Test helps assert the realities of a codebase. Refactoring without them has caused me to alter the code... incorrectly.
<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.
<leitz> "He coded...wisely..."
<RickHull> TDD is a great exercise
<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.
<RickHull> my approach is to make a code spike, decide if it's working, then write tests, then refactor
<Radar> RickHull: Mine too :D
cschneid_ has joined #ruby
<baweaver> I tend to screw around in a REPL for a while
<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
<leitz> Are there actual non-Rails Ruby jobs?
<RickHull> but I've also learned how to write testable code
<baweaver> Yes.
<Radar> leitz: yeah, lots
<leitz> Cool.
<RickHull> leitz: are you familiar with chef or puppet?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
goyox86 has quit [Ping timeout: 248 seconds]
<leitz> The reason for using 2.5.0 is that it will be ancient by the time I get any good at it.
<baweaver> InfoSec and DevOps primarily.
<Radar> leitz: https://twitter.com/AaronLasseigne/status/931233598753079296 I reckon a few of these companies will be hiring non-Rails Rubyists.
<baweaver> You'd be surprised
<leitz> RickHull, Puppet has moved away from needing to know Ruby, but that was why I started on it.
<baweaver> Square hires non-rails rubyists for sure as well.
<RickHull> writing testable code -- this is where I have leaned away from dogmatic OOP (if you want to call it that)
<leitz> Square also uses go.
<RickHull> my OOP is all about minimizing internal state -- i prefer functions to methods
<baweaver> Ruby, Go, Java, and Kotlin is getting popular as of late
<RickHull> because functions are easier to test than objects
<RickHull> and prefer composition to inheritance
<Nilium> Meanwhile, in #ruby...
<leitz> I'm enjoying Booch's "OO Analysis and Design".
<baweaver> Currently me, eam, eckhardt, and havenwood are over at Square. Then again I do a ton of Javascript too.
<RickHull> generally I write the hard stuff as functions, where return values depend on the function arguments
<leitz> Well, if you need Linux geeks who want to code better...
* Nilium continues to roll around in his Erlang mess.
<RickHull> and then package up the functions into a nice class/object paradigm
shazbotmcnasty has quit [Ping timeout: 258 seconds]
dstrunk has joined #ruby
<baweaver> Problem is you'd end up through an entire engineering hiring bar here which means SE skills
<baweaver> which are a royal pain coming from Ops some times
* baweaver came from ops
<RickHull> functions meaning either class methods / module methods -- minimizing side effects and state that isn't passed in
* Nilium switched to ops
cschneid_ has quit [Ping timeout: 268 seconds]
astronavt has joined #ruby
<RickHull> once your hard-stuff-functions work, and they are trivially testable, then it's trivial to make sure your objects work
<leitz> Which shows how far I have to go...
<baweaver> Well, to be fair.... Design > Web Design > Ops > Rails Dev > Big Data > Ops > Rails / Ember Dev
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ropeney has joined #ruby
<leitz> Well, drat. the new compile was working without the system Ruby but it found the recently compiled and installed 2.4.2
<leitz> Time to restart the test.
<baweaver> Honestly most of the 2.x versions are extremely similar in API
<baweaver> just speed improvements, some bug fixes, and new methods on occasion
<Nilium> baweaver: I'm sort of similar -- went from game dev to backend/APIs dev in Go to ops
<RickHull> can't spell oops without ops
<baweaver> To err is human
<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
<baweaver> To err and deploy to all prod servers is DevOps
<Nilium> So I have the misfortune of knowing terrible things and that put me in ops
<RickHull> ops > oops > devops > noops ;)
<Nilium> Or, if you want continuous oops, use gitlab's auto devoops
<Nilium> A GKE cluster for every mistake
<leitz> GKE?
<Nilium> Google container engine.
<Nilium> GCE was taken, so it's GKE (for Kubernetes, I guess)
astronavt has quit [Ping timeout: 255 seconds]
<leitz> Ah.
<RickHull> pronounced geeky?
<Nilium> I think it's just an alphabetism
astronavt has joined #ruby
astronavt has quit [Client Quit]
cdg has joined #ruby
<leitz> RickHull, only pronouncable by Germans.
m4rCsi has joined #ruby
<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
<RickHull> only very tangentially related -- I've been playing with racing sims, and everyone calls the nurburgring track "Nordschleife"
<RickHull> and now I'm seeing it even in automotive journalism
charliesome has joined #ruby
char_var[buffer] has joined #ruby
<RickHull> where is apeiros to set us straight?
<Nilium> I only play racing games where speed is measured in thousands of km/h
<RickHull> the term is "nordschleisse"
<RickHull> but in german, the double-ess looks like an eff
<Nilium> I don't really like sim-y things
astronavt has joined #ruby
<RickHull> some sims are more like work than play, for sure
<RickHull> but I love physics-based stuff
nginxxx has joined #ruby
<nginxxx> hey
<baweaver> I can set people straight too :P
<nginxxx> can someone pm me i need help with my ruby code its just a 20lines code
<baweaver> !gist
<RickHull> nginxxx: no need for PMs -- just ask your question and paste the code
<nginxxx> okay
<baweaver> hm
<baweaver> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<nginxxx> i want a dns resolver in ruby with ASN
<baweaver> oh hey
<baweaver> there it is
<nginxxx> so
cdg has quit [Ping timeout: 240 seconds]
<nginxxx> i am now so far : moment
<baweaver> Paste >3 lines of text to: https://gist.github.com
<RickHull> ok, now edit that, add another file, and paste the output
<nginxxx> no
<nginxxx> its not a error or so
<nginxxx> moment
<RickHull> and if it's not obvious what the problem is from the output, then let us know what the problem is
<nginxxx> i try to explain better, i will edit now
<nginxxx> just wait
<leitz> RickHull, compile, make, and make test work without Ruby installed.
<RickHull> leitz: cool! I was hoping so
shazbotmcnasty has joined #ruby
<RickHull> so tgz is easy-mode, git clone is hard-mode
milardovich has joined #ruby
<leitz> Will probably run it again on a clean system.
mikecmpbll has quit [Quit: inabit. zz.]
<RickHull> leitz: you can also look at the `ruby-install` project (it's on github)
<leitz> So far trying to stay close to core. Easy to get side-tracked before I know the basics.
<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
<RickHull> nginxxx: you can have multiple files per gist
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> but it's not necessary to reformat, I don't think
<nginxxx> okay thanks but it makes no sense to do now again
<nginxxx> yes
<nginxxx> but you understand my issue?
<RickHull> one thing is that the string returned from #gets has a "\n" newline
<RickHull> I don't understand your issue, at a glance
<RickHull> if it had output, it might be easier
<nginxxx> how it should be : i write test.rb in cmd. Then it askes me for the hostname
<nginxxx> to resolve
<nginxxx> thats how it should be
<nginxxx> not always editing the code
<RickHull> you could get it from a command line argument, a config file, or an environment variable
<nginxxx> theres no output, no error. I just must add something i dont know what
<RickHull> getting it from user input is not easily scriptable
<nginxxx> look
milardovich has quit [Remote host closed the connection]
<nginxxx> i start my script. then it comes: Hostname: www.example.com
<RickHull> My guess is that `gets` is causing your problems
<nginxxx> when compiling
<sylario> I'm trying ruby-install on a server, is there any doc on how to make a full install with it?
<nginxxx> no
<RickHull> again, the string it returns has a trailing newline, which the dns methods may not expect
<RickHull> and your program will block waiting for input every time you call `gets`
<nginxxx> it will make it possible i think to decide the target in the irb not with editing code
<RickHull> sylario: what do you mean 'full install' ?
<sylario> RickHull: make it available
<sylario> handle gems and bundler
<sylario> I only ever used rbenv and RVM so i am a bit lost
<RickHull> sylario: generally it just means updating PATH to find the ruby executables
<RickHull> you can use `chruby` to help manage this
<havenwood> sylario: You typically just put the Ruby bin/ dir and gems bin dir in PATH, and then set GEM_HOME and GEM_PATH.
<nginxxx> -.-
<RickHull> chruby comes from the same place as ruby-install
<havenwood> sylario: Or you can put Ruby in a place that's already in your PATH, like /usr/local/
<nginxxx> i think you guys dont understand :D
<havenwood> sylario: sylario: you can install system-wide with: sudo ruby-install --latest --system
<nginxxx> go run the program from ruby docs
<nginxxx> the code
<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.
<RickHull> nginxxx: you don't want to have hardcoded addresses
<RickHull> nginxxx: gets is the worst way to achieve this
<RickHull> and i don't think it works in irb
cagomez has joined #ruby
plexigras has quit [Ping timeout: 248 seconds]
<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
<nginxxx> to write the target hostname to resolve
<nginxxx> ...
<sylario> havenwood: is there a way to do system without relaunching the compilation?
<sylario> --system
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nginxxx> rick what i should do then
<havenwood> sylario: The default settings don't let you move a Ruby, so no, unless you happened to compile with --enable-shared
<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?
<nginxxx> to get a invitation to write my hostname address which should be resolved
<havenwood> sylario: if you already installed a Ruby, just set PATH yourself
<nginxxx> maybe you are right but what i should do use then
<RickHull> ok, `gets` does work as expected in irb -- I wasn't sure
<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
<RickHull> nginxxx: i suggest going line by line in irb to confirm the behavior you want
<RickHull> nginxxx: try this in irb: str = gets
<RickHull> does it behave as you expect?
<nginxxx> when i write Test.rb
<nginxxx> it just switch to the next line like it is loading
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
<nginxxx> but that shoould not be so... i want it comes a Invitation and i must write then my target
s3nd1v0g1us has joined #ruby
<nginxxx> but i will try now
s3nd1v0g1us has quit [Max SendQ exceeded]
<nginxxx> when making str c
<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
shazbotmcnasty has quit [Ping timeout: 260 seconds]
<nginxxx> moment
apeiros has joined #ruby
cagomez has quit [Ping timeout: 268 seconds]
enterprisey has joined #ruby
<nginxxx> how can i add a file to my gist
<leitz> Okay, be nice. apeiros is here...
<RickHull> nginxxx: you should be able to edit it, and then `Add file` at the bottom
<nginxxx> no i am not signed in
<nginxxx> moment
<RickHull> not sure if it lets you edit anonymously, but it should remember your session
<RickHull> apeiros: I was complaining about "Nordschleife" earlier -- when it's really "Nordschleisse" right?
<RickHull> huh, as I google, it does appear to be, properly, "Nordschleife"
<nginxxx> Rick did you read my pm
<RickHull> yes but it's bad etiquette to PM like that
<RickHull> no worries, we can discuss here :)
<nginxxx> here or pm
<nginxxx> okay
<nginxxx> so i edited my gist
<nginxxx> thats the error when i make ctrl and c
cschneid_ has joined #ruby
<nginxxx> are you german?
<RickHull> right -- your program is blocked, waiting for input, when you call `gets`
<RickHull> (as I've mentioned several times now)
<nginxxx> i dont get it
<RickHull> again, please try in irb: str = gets
<nginxxx> irb or my code
<RickHull> irb please
<nginxxx> ok
<RickHull> let me know what you get for the value of str
<nginxxx> its just loading
<RickHull> try typing: hello world
<RickHull> and press Enter
<nginxxx> ah
<leitz> Hey all, thanks for the assist! It's my nappy time. My main code works under the new Ruby, so life is good.
<nginxxx> yes i forgot that, okay
<nginxxx> but
<nginxxx> moment
<leitz> I'll come back with a lot of questions in the next few days. :)
<nginxxx> theres still a problem, it says : Address: google.com
<RickHull> leitz: have a good'un
<nginxxx> then i write again google.com
<nginxxx> then i get this
shazbotmcnasty has joined #ruby
leitz has quit [Quit: Nappy time]
<nginxxx> edited gist
<sylario> havenwood RickHull , thx, I am using chruby, it seems to work
<RickHull> nginxxx: I suggest running the code in irb
<nginxxx> no theres something wrong in my code
<nginxxx> i am sure
<RickHull> also, you are calling `gets` four times, I think?
<RickHull> i too am sure
<RickHull> running it irb helps you find the error
<nginxxx> i am sure my code is not 100% finished
<nginxxx> and theres something wrong
<RickHull> you can enter it one line at a time
<nginxxx> but i dont know how to fix
<RickHull> and make sure each line is doing what you think it does
<RickHull> (it's probably not)
<nginxxx> i will try to fix it
<nginxxx> afk
<nginxxx> but thanks
<nginxxx> so i can use only one time?
<RickHull> here is how I like to use gets: def prompt; print '> '; gets.chomp; end
<RickHull> the print helps the user know the program is waiting for input
<RickHull> the chomp removes the trailing newline
<nginxxx> wait
<RickHull> copy my prompt method into irb. then: str = prompt
<RickHull> and let me know what you get for str
hfp_work has quit [Quit: bye]
<nginxxx> ah
<nginxxx> prompt
shazbotmcnasty has quit [Ping timeout: 255 seconds]
<nginxxx> moment
<nginxxx> undefined local variable or method 'prompt' for main:Object
<RickHull> you have to copy my method definition first :)
<RickHull> def prompt ...
<nginxxx> okay
<RickHull> (it's not built in to ruby)
<nginxxx> that works
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nginxxx> Thanks
<RickHull> cool -- now you can prompt the user for the address. i would start with one prompt at the top
<RickHull> and then output the result to make sure it works as expected
<RickHull> i.e. just output the string
<RickHull> then you can pass the string to the Resolv methods
<RickHull> and go from there
<nginxxx> ok
<nginxxx> thanks for help
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<RickHull> no problem, good luck! :)
Psybur has joined #ruby
hfp_work has joined #ruby
xlegoman has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sylario> chruby does not really works with capistrano it seems
Psybur has quit [Ping timeout: 240 seconds]
<sylario> There must be a difference between how bashrc is used in a normal session and capistrano
<sylario> I installed ruby by adding 'chruby ruby-2.3.5' at the end of bashrc
<RickHull> sylario: try adding that chruby statement to the capistrano config / startup script / whatever
<RickHull> though capistrano may need to know where to find `chruby`
<RickHull> btw, I am just guessing here. there is probably a better way
<RickHull> it might have an official integration with e.g. rvm, as an alternative to chruby
<sylario> I am using ruby-install because rvm is considered "bad" in prod it seems
<RickHull> I see there is a capistrano-chruby gem
<sylario> though I am starting to seriously doubt it
<RickHull> rvm was the first, and it's also very invasive
<sylario> Yeah but it works
<RickHull> chruby a much simpler tool that does the most important stuff that rvm does
<RickHull> in any case, whatever is downstream of a ruby version manager needs to hook into it
<RickHull> some things have built in rvm hooks -- but they are trivial if you know how the hooks work
<RickHull> (I don't know how the capistrano hooks work)
<RickHull> but maybe look at the capistrano-chruby gem, or investigate capistrano + rvm
shazbotmcnasty has joined #ruby
<RickHull> as a user, you put your version manager hooks into .bashrc
<RickHull> you need to do the analogous thing for capistrano
<RickHull> (presumably)
<RickHull> I see this https://github.com/capistrano/chruby # no dead people
cagomez has joined #ruby
<sylario> yup looking inti it
shazbotmcnasty has quit [Ping timeout: 240 seconds]
<sylario> thx RickHull
cagomez has quit [Ping timeout: 240 seconds]
guardianx has joined #ruby
Technodrome has joined #ruby
shazbotmcnasty has joined #ruby
milardovich has joined #ruby
uneeb has joined #ruby
Guest90 has joined #ruby
JsilverT has quit [Ping timeout: 268 seconds]
uneeb has quit [Remote host closed the connection]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
marr has quit [Ping timeout: 240 seconds]
Dimik has quit [Ping timeout: 268 seconds]
Guest50 has joined #ruby
workmad3 has joined #ruby
mjolnird has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
shazbotmcnasty has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
Psybur has joined #ruby
milardovich has quit [Remote host closed the connection]
jtdoncas has joined #ruby
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
oetjenj has joined #ruby
elphe has joined #ruby
cdg has joined #ruby
shazbotmcnasty has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
bronson has quit [Ping timeout: 260 seconds]
Guest50 has quit [Ping timeout: 248 seconds]
jameser has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nofxx__ has joined #ruby
d^sh has quit [Ping timeout: 260 seconds]
d^sh has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
nofxx_ has quit [Ping timeout: 248 seconds]
Freshnuts has quit [Quit: Leaving]
swills has quit [Ping timeout: 255 seconds]
milardovich has joined #ruby
orbyt_ has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
jtdoncas is now known as [J]
hutch34 has joined #ruby
shazbotmcnasty has joined #ruby
gizmore|2 has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nofxx__ has quit [Remote host closed the connection]
nofxx__ has joined #ruby
gizmore has quit [Ping timeout: 248 seconds]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
[J] is now known as [DO]
aroaminggeek has joined #ruby
hutch34 has quit [Ping timeout: 248 seconds]
swills has joined #ruby
swills has quit [Changing host]
swills has joined #ruby
Hexafox[I] has joined #ruby
bmurt has joined #ruby
cschneid_ has quit [Remote host closed the connection]
nginxxx has quit [Quit: Page closed]
shazbotmcnasty has joined #ruby
aroaminggeek has quit [Quit: Textual IRC Client: www.textualapp.com]
SeepingN has joined #ruby
jeanlinu_ has quit [Ping timeout: 248 seconds]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
xlegoman has joined #ruby
Psybur has joined #ruby
uZiel has joined #ruby
Psybur has quit [Ping timeout: 248 seconds]
pilne has quit [Quit: Quitting!]
hutch34 has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
shazbotmcnasty has joined #ruby
kculpis has quit [Read error: Connection reset by peer]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
Technodrome has joined #ruby
shazbotmcnasty has quit [Ping timeout: 268 seconds]
milardovich has quit [Remote host closed the connection]
wnd has quit [Ping timeout: 240 seconds]
shazbotmcnasty has joined #ruby
cschneid_ has joined #ruby
cschneid_ has quit [Ping timeout: 260 seconds]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zanoni has quit [Ping timeout: 248 seconds]
astronavt has quit [Disconnected by services]
astronavt has joined #ruby
workmad3 has joined #ruby
astronavt has quit [Disconnected by services]
astronav_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest77633 is now known as Cyrus
Cyrus has quit [Changing host]
Cyrus has joined #ruby
mson has joined #ruby
astronav_ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
shazbotmcnasty has joined #ruby
charliesome has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
cschneid_ has quit [Ping timeout: 248 seconds]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
Psybur has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
astronav_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
eckhardt has joined #ruby
cagomez has joined #ruby
aroaminggeek has joined #ruby
[DO] has quit [Changing host]
[DO] has joined #ruby
Psybur has quit [Ping timeout: 255 seconds]
cagomez has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
shazbotmcnasty has joined #ruby
gix has joined #ruby
shazbotmcnasty has quit [Ping timeout: 240 seconds]
gix- has quit [Ping timeout: 260 seconds]
cschneid_ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
shazbotmcnasty has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
evie_hammond has quit [Ping timeout: 240 seconds]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
eroux has quit [Quit: ZZZzzz… ZZZzzz…]
dviola has quit [Quit: WeeChat 1.9.1]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has joined #ruby
mikecmpbll has joined #ruby
Puffball has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
nofxx has joined #ruby
nofxx__ has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Client Quit]
Abhijit has joined #ruby
<Abhijit> hi
jamesaxl has joined #ruby
rawr has joined #ruby
rawr has quit [Client Quit]
evie_hammond has joined #ruby
<Abhijit> i am trying to write a regest which will give me array of words matching regexp. regexp is any word insied starting __ and __
shazbotmcnasty has joined #ruby
<Abhijit> scan(/(_{2}[a-z A-Z])\w+_{2}/) gives mi those words but only with first letter of those words
<Abhijit> how can i get all whole words
Defenestrate has quit [Quit: Leaving]
BTRE has quit [Read error: Connection reset by peer]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
<Abhijit> nvm.
<RickHull> hooray \o/
guardianx has quit []
<RickHull> you can add beginning and ending word anchors
<RickHull> per line or per string
<Abhijit> i wrote this - scan(/_{2}(\w+)_{2}/)
nofxx has quit [Ping timeout: 250 seconds]
Psybur has joined #ruby
<RickHull> you could say __ but I'm guessing 2 is actually a variable
<Abhijit> 2 is not variable. instead of __ i thought i will write {2} just to make it clear that its exactly 2
<RickHull> I like it
JBbanks has quit [Ping timeout: 240 seconds]
Psybur has quit [Ping timeout: 268 seconds]
BTRE has joined #ruby
Hexafox[I] has quit [Remote host closed the connection]
shazbotmcnasty has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
iamarun has joined #ruby
nofxx has joined #ruby
MagicGuitarist has joined #ruby
i8igmac has joined #ruby
<i8igmac> is there any examples for keyboard-interaction when logging into ssh
ur5us has joined #ruby
<ineb> i8igmac: ?
<[DO]> keyboard interaction.... ?
<i8igmac> when my ssh server is keyboard-interactive
* Radar is even more confused now i8igmac has sent a 2nd message
* [DO] contemplates life
<Radar> i8igmac: what do you hope to do with this example?
<i8igmac> automate things
<Radar> i8igmac: Do you have an example of what it is you wish to automate?
oleo has quit [Quit: Leaving]
<i8igmac> simple task's
<i8igmac> get temperature and cpu usage
<Radar> and "ssh user@host <command>" wouldn't work because.... ?
<i8igmac> correct
<i8igmac> keyboard-interactive authentication is the login method
<[DO]> my brain hurts
<[DO]> oh, so you're trying to automatically enter the password?
<[DO]> is it possible you can use public key authentication?
jameser has quit [Remote host closed the connection]
<ineb> i8igmac: and in general, there is Net::SSH which lets you do that
<ineb> if you are using ruby.
shazbotmcnasty has joined #ruby
jameser has joined #ruby
herbmillerjr has quit [Ping timeout: 268 seconds]
astronav_ has quit [Remote host closed the connection]
i8igmac has quit [Quit: Leaving]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
wnd has joined #ruby
apeiros has quit []
dinfuehr has quit [Ping timeout: 248 seconds]
xlegoman has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dinfuehr has joined #ruby
workmad3 has joined #ruby
rabajaj has joined #ruby
shazbotmcnasty has joined #ruby
dn` has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aroaminggeek has quit [Quit: Textual IRC Client: www.textualapp.com]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
Psybur has joined #ruby
Psybur has quit [Ping timeout: 250 seconds]
Abhijit has quit [Quit: Leaving]
shazbotmcnasty has joined #ruby
MagicGuitarist has quit [Quit: leaving]
apeiros_ has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
apeiros_ has quit [Remote host closed the connection]
govg has joined #ruby
eckhardt has joined #ruby
[DO] has quit [Ping timeout: 248 seconds]
AX31_A13X has quit [Quit: AX31_A13X]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
apeiros_ is now known as apeiros
shazbotmcnasty has joined #ruby
shazbotmcnasty has quit [Ping timeout: 260 seconds]
kapil___ has joined #ruby
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
<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
<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.
shazbotmcnasty has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
Psybur has joined #ruby
naiveaiguy has joined #ruby
naiveaiguy has left #ruby ["WeeChat 1.9.1"]
Dimik has joined #ruby
ana_ has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
shazbotmcnasty has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Quentinius has joined #ruby
conta has joined #ruby
Quentinius has quit [Client Quit]
[DO] has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
[DO] has quit [Ping timeout: 240 seconds]
dn` has joined #ruby
andikr has joined #ruby
shazbotmcnasty has quit [Ping timeout: 258 seconds]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
mson has quit [Quit: Connection closed for inactivity]
shazbotmcnasty has joined #ruby
apeiros has quit [Remote host closed the connection]
charliesome has joined #ruby
jameser has quit [Max SendQ exceeded]
jeanlinux has joined #ruby
jameser has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
shazbotmcnasty has quit [Ping timeout: 264 seconds]
Dimik has quit [Ping timeout: 268 seconds]
aloy has joined #ruby
workmad3 has joined #ruby
jameser_ has joined #ruby
<dminuoso> baweaver: But passwords are easy to remember. Long SSH keys are not.
<dminuoso> (Ive actually heard that argument once)
* dminuoso 's response was a blank stare
lele has quit [Ping timeout: 255 seconds]
jameser has quit [Ping timeout: 240 seconds]
shazbotmcnasty has joined #ruby
jeanlinu_ has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
odinsbane has joined #ruby
<odinsbane> I am having trouble compiling ruby-2.3.6 because of openssl
anisha has quit [Quit: This computer has gone to sleep]
jeanlinux has quit [Ping timeout: 240 seconds]
<ineb> baweaver: first time observation of singular they usage for me
<dminuoso> ?gist odinsbane
<ruby[bot]> odinsbane: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<dminuoso> Please gist the entire output, and tell us what command you used to build ruby-2.3.6
<odinsbane> I'm sorry, I mean 2.3.5
<dminuoso> Either way.
<baweaver> ineb: it can be used as both
<ineb> odinsbane: propably because ruby 2.3.x is not compatible with openssl 1.1.x, you need openssl 1.0.x for that
<ineb> *probably
TomyWork has joined #ruby
jaequery has joined #ruby
shazbotmcnasty has quit [Ping timeout: 252 seconds]
michael3 has joined #ruby
<odinsbane> ineb: Yes, I just use the default openssl for my os, which is 1.1
<odinsbane> Do you know how I would point ruby at a different openssl? ie. I am using ./configure --prefix=/path/to/install and make.
<dminuoso> Can we still at least see the error output? It's a bit unwise to just guess what the problem is.
<dminuoso> "Getting an error with openssl" really is not saying much.
Psybur has joined #ruby
mark_66 has joined #ruby
<dminuoso> Or rather "trobule compiling because of openssl"
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ineb> ^^ but my crystal ball is right
<dminuoso> ineb: Assumption is the mother of all debugging fuckups.
<dminuoso> :p
<dminuoso> ineb: Even if its just to make odinsbane supply useful errors, instead of showing him its okay to not give details.
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> ineb's crystal ball is correct. :P
<odinsbane> It seems like this is a pretty common problem. fedora comes with openssl 1.1.
ta_ has joined #ruby
<ineb> you have a couple of options. use newer ruby versions. build ruby without openssl support. or install the require dependencies
<dminuoso> odinsbane: Is 2.4 an option?
Psybur has quit [Ping timeout: 260 seconds]
<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.
<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?
huyderman has joined #ruby
<ineb> istn openssl 1.0.x available in fedora repos?
michael3 has quit [Ping timeout: 255 seconds]
ta_ has quit [Remote host closed the connection]
vondruch has quit [Ping timeout: 268 seconds]
enterprisey has quit [Ping timeout: 248 seconds]
shazbotmcnasty has joined #ruby
claudiuinberlin has joined #ruby
stan has joined #ruby
ledestin has joined #ruby
cryocaustik has quit [Remote host closed the connection]
howdoi has joined #ruby
<odinsbane> There appears to be a compatibility package.
paolo_ has joined #ruby
shazbotmcnasty has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
enterprisey has joined #ruby
srandon111 has joined #ruby
olblak_ is now known as olblak
[DO] has joined #ruby
vondruch has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
[DO] has quit [Ping timeout: 248 seconds]
<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
cdg has joined #ruby
aupadhye has joined #ruby
tomphp has joined #ruby
roshanavand has joined #ruby
hutch34 has joined #ruby
Guest90 has quit [Quit: Textual IRC Client: www.textualapp.com]
cdg has quit [Ping timeout: 255 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
shazbotmcnasty has joined #ruby
Burgestrand has joined #ruby
dionysus69 has joined #ruby
hutch34 has joined #ruby
guille-moe has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
biberu has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
aiguuu has quit [Quit: WeeChat 1.0.1]
mikecmpbll has joined #ruby
JsilverT has joined #ruby
aupadhye_ has joined #ruby
<odinsbane> ok, rebuilt openssl including the -fPIC argument, now I could build and install ruby
shazbotmcnasty has joined #ruby
ur5us has quit [Remote host closed the connection]
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
ur5us has joined #ruby
aupadhye_ has quit [Quit: Leaving]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
ur5us has quit [Ping timeout: 260 seconds]
DoubleMalt has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
Psybur has joined #ruby
gone_haywire has joined #ruby
leitz has joined #ruby
morfin has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
<morfin> not certain how do i check if string not ends with using regex
<morfin> that's required for AR so i use regex )
<tobiasvl> >> "hello".end_with? "o"
<ruby[bot]> tobiasvl: # => true (https://eval.in/903337)
jamesaxl has joined #ruby
lexruee has quit [Ping timeout: 248 seconds]
<morfin> nvm i will just trim trailing slash if present)
dviola has joined #ruby
jeanlinu_ has quit [Remote host closed the connection]
Psybur has quit [Ping timeout: 260 seconds]
jeanlinux has joined #ruby
lexruee has joined #ruby
jeanlinux has quit [Remote host closed the connection]
zautomata has quit [Ping timeout: 268 seconds]
jeanlinux has joined #ruby
mim1k has quit [Ping timeout: 264 seconds]
shazbotmcnasty has joined #ruby
ur5us has joined #ruby
mim1k has joined #ruby
hutch34 has joined #ruby
zautomata has joined #ruby
gregf_ has quit [Quit: Page closed]
marr has joined #ruby
banisterfiend has joined #ruby
[DO] has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shazbotmcnasty has quit [Ping timeout: 268 seconds]
[DO] has quit [Ping timeout: 240 seconds]
yeticry has quit [Ping timeout: 248 seconds]
luminor has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
shazbotmcnasty has joined #ruby
yeticry has joined #ruby
marienz has joined #ruby
yeticry_ has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
luminor has quit [Ping timeout: 240 seconds]
qsx has left #ruby ["WeeChat 1.9"]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
luminor has joined #ruby
dhollinger has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
apeiros has joined #ruby
shazbotmcnasty has joined #ruby
FastJack has quit [Remote host closed the connection]
lxsameer has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
<leitz> Anyone have a simple rakefile that works with travis-ci? New to this and missing something simple, I think.
elphe has quit [Ping timeout: 248 seconds]
elphe has joined #ruby
sekmo has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
Rouge has joined #ruby
hutch34 has joined #ruby
Psybur has joined #ruby
InfinityFye has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
luminor_ has joined #ruby
srandon111 has quit [Ping timeout: 260 seconds]
RedNifre has joined #ruby
banisterfiend has joined #ruby
luminor has quit [Ping timeout: 248 seconds]
<RedNifre> Hi. What's a good dead simple https library that makes it easy to send the headers I want?
Psybur has quit [Ping timeout: 258 seconds]
<dminuoso> RedNifre: Any *http* library.
hutch34 has quit [Ping timeout: 240 seconds]
<dminuoso> (TLS is a transparent layer that most support)
<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.
<dminuoso> ?code
<ruby[bot]> We can't help you without your code, please post it to https://gist.github.com
<RedNifre> Hm, it's a secret project so I can't. Guess I'll try to solve it by myself. Thanks anyway!
<dminuoso> ?nda
<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.
ur5us has quit [Remote host closed the connection]
<dminuoso> RedNifre: Note that extracting a testcase usually either a) isolates the problem
<dminuoso> or b) it reduces code into a shareable portion.
<dminuoso> Either way, it will help fixing the issue.
shazbotmcnasty has joined #ruby
FastJack has joined #ruby
dhollinger has joined #ruby
<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.
luminor_ has quit [Ping timeout: 248 seconds]
ldnunes has joined #ruby
luminor has joined #ruby
gregf_ has joined #ruby
shazbotmcnasty has quit [Ping timeout: 255 seconds]
<ineb> these secret ruby projects keep me up at night
<ineb> cannot imagine what black magic they might spread over http(s)
danguita has quit [Quit: WeeChat 1.9]
<ineb> i hope one of them will reach daylight eventually and give us a next-gen search engine or something like that
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
elphe has quit [Ping timeout: 248 seconds]
shazbotmcnasty has joined #ruby
sekmo has quit [Read error: Connection reset by peer]
Siyfion has joined #ruby
enterprisey has joined #ruby
enterprisey has quit [Remote host closed the connection]
rabajaj has quit [Ping timeout: 240 seconds]
luminor has quit [Ping timeout: 268 seconds]
RedNifre has quit [Ping timeout: 268 seconds]
sentor has joined #ruby
rabajaj has joined #ruby
<sentor> hi
<sentor> i have a csv file with zip numbers starting with 0 ... after using CSV.table ... the zip number is broken ...
luminor has joined #ruby
<sentor> plain csv file zip: 07745
<sentor> after CSV.table ... zip: 4069
<sentor> any hint whats going on here?
<dminuoso> ?code
<ruby[bot]> We can't help you without your code, please post it to https://gist.github.com
hutch34 has joined #ruby
shazbotmcnasty has quit [Ping timeout: 268 seconds]
rhyselsmore has joined #ruby
luminor has quit [Ping timeout: 240 seconds]
<dminuoso> sentor: If you can, make a small isolated and executable testcase that we can just run.
<sentor> i will try ... moment plz ...
elphe has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
luminor has joined #ruby
jaruga has joined #ruby
pppktz has quit [Remote host closed the connection]
shazbotmcnasty has joined #ruby
<sentor> this is my code
Rouge has quit [Ping timeout: 248 seconds]
vondruch has quit [Quit: vondruch]
<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.
vondruch has joined #ruby
<sentor> this is my export_source.csv
<dminuoso> Oh turns out github is smart enough to infer the filetype from the shebang, nice.
<sentor> dminuoso: it's my first time ;)
<dminuoso> sentor: Yeah I assumed as much. Just a friendly tip for the future :)
shazbotmcnasty has quit [Ping timeout: 248 seconds]
<dminuoso> sentor: Ok
gone_haywire has quit [Quit: Leaving]
<dminuoso> >> 07745
<ruby[bot]> dminuoso: # => 4069 (https://eval.in/903460)
pppktz has joined #ruby
<dminuoso> sentor: ^- can you guess what just happened?
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RedNifre has joined #ruby
<sentor> dminuoso: no
RedNifre is now known as Guest65341
<dminuoso> sentor: If a number starts with "0" its considered octal in Ruby and some other languages.
<dminuoso> Just like 0x means hexadecimal
<dminuoso> >> 0x7745
<ruby[bot]> dminuoso: # => 30533 (https://eval.in/903465)
Psybur has joined #ruby
<leitz> New to rake. The rakefile works on my local machine but not on travis-ci.org. https://gist.github.com/LeamHall/6a5ac358dd0893a70d29df9e6e1ca5e8
Macaveli has joined #ruby
<sentor> dminuoso: cool thx ... is there a way to tell ruby handle this as a string ...
<dminuoso> sentor: Check the CSV documentation. It's something about the "converters" that CSV uses.
hutch34 has quit [Ping timeout: 252 seconds]
hutch34 has joined #ruby
<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.
banisterfiend has joined #ruby
JsilverT has quit [Read error: Connection reset by peer]
<dminuoso> sentor: apparently explicitly passing: `converters: nil` seems to do the job
<dminuoso> sentor: If you needed number processing, you could write your own converter for that field, that strips the 0, and then uses Integer.
Psybur has quit [Ping timeout: 268 seconds]
<sentor> dminuoso: you save may day ... converters: nil is perfect fo me ... thx
tvw has joined #ruby
shazbotmcnasty has joined #ruby
rahul_bajaj has joined #ruby
yeticry has joined #ruby
apparition has joined #ruby
rhyselsmore has quit [Read error: No route to host]
iamarun has quit [Remote host closed the connection]
rabajaj has quit [Ping timeout: 240 seconds]
yeticry_ has quit [Read error: Connection reset by peer]
shazbotmcnasty has quit [Ping timeout: 258 seconds]
<morfin> >> 0o666
<ruby[bot]> morfin: # => 438 (https://eval.in/903486)
<morfin> it works even in Ruby :D
luminor has quit [Ping timeout: 240 seconds]
code_zombie has joined #ruby
[DO] has joined #ruby
<morfin> >> 0666
<ruby[bot]> morfin: # => 438 (https://eval.in/903488)
<morfin> ok, same result here
tcopeland has quit [Quit: tcopeland]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
luminor has joined #ruby
[DO] has quit [Ping timeout: 260 seconds]
leitz has quit [Quit: Nappy time]
zanoni has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
shazbotmcnasty has joined #ruby
luminor_ has joined #ruby
<dminuoso> morfin: Interesting, never seen 0o before
<dminuoso> TIL.
luminor has quit [Ping timeout: 268 seconds]
hutch34 has joined #ruby
<morfin> i saw guy wrote 0o in Python code )
shazbotmcnasty has quit [Ping timeout: 260 seconds]
vtx has joined #ruby
<morfin> but there number starting with 0 considered octal as well
shortdudey123 has quit [Ping timeout: 268 seconds]
<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?
bob_f has left #ruby [#ruby]
raynold has quit [Quit: Connection closed for inactivity]
workmad3 has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
shortdudey123 has joined #ruby
<adaedra> vtx: what do you mean by "a list of unkown length"?
shazbotmcnasty has joined #ruby
c0ncealed has quit [Remote host closed the connection]
<adaedra> Can you give examples?
workmad3 has quit [Ping timeout: 240 seconds]
c0ncealed has joined #ruby
<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?
rhyselsmore has joined #ruby
ap4y has quit [Quit: WeeChat 1.9.1]
Guest65341 has quit [Ping timeout: 248 seconds]
<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)
shinnya has joined #ruby
rahul_bajaj has quit [Quit: Leaving]
drowze has joined #ruby
shazbotmcnasty has quit [Ping timeout: 240 seconds]
<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.
<ineb> by directly calling the resources that would normally be called by the javascript part.
Psybur has joined #ruby
<ineb> intelligent content recognition on the other hand is a rabbit hole and science topic in itself.
<ineb> a headless browser would be the base for that i guess.
<morfin> well, i was thinking about using both ways because nokogiri way seems to be more..stable when no JS involved
<morfin> also can you suggest one without needing to use Capybara?
luminor_ has quit []
<ineb> it sure is. and js is usually only then involved when interaction comes into play
<ineb> calculating some fancy cloudflare challenges etc.
plexigras has joined #ruby
<morfin> i tried Phantomjs but it seems to be useful only for tests
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<morfin> also unmaintained(?)
Guest65341 has joined #ruby
webguynow has quit [Ping timeout: 248 seconds]
Psybur has quit [Ping timeout: 240 seconds]
webguynow has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
<adaedra> phantomjs has been deprecated in favor of chrome headless I think
noobineer has joined #ruby
<morfin> hmm
noobineer has quit [Max SendQ exceeded]
<ineb> morfin: i can give you a more narrow direction if you give a concrete problem
<morfin> well, i am going to run this stuff on FreeBSD 11.1 of course without X =)
<adaedra> There's always Xvfb in case of need (=
<morfin> ew
truenito has joined #ruby
<morfin> i remember how i started SRCDS(when there was no implementation of Gmod on Linux) under Wine in Xvfb :D
shazbotmcnasty has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
<morfin> but with Xvfb i'd be able to run browser and use Selenium i guess
<morfin> but i want to minimize software i should install
<ineb> then ask yourself if you need a browser. its usually only required for functional testing of websites
<morfin> i'd need because some sites use bunch of AJAX
<adaedra> take a look at chrome headless, it may work without X at all
<adaedra> (At least without it running)
<morfin> seems like there is no such thing
<morfin> headless chrome is not headless
<adaedra> Still needs a X server?
<ineb> morfin: mimicking the ajax requests not possible?
<ineb> it almost always is
<morfin> ah i see it's poissble to run chrome without head
<dminuoso> adaedra: How does capybara drive headless chrome?
<dminuoso> Does it use selenium?
<adaedra> Probably like it drives standard chrome
<morfin> not sure it would work under Linuxulator for x64 because linuxulator devs are pretty slow
<morfin> and lazy )
<dminuoso> adaedra: This actually sounds so much better than phantom js already.
<dminuoso> Exactly what I always wanted.
<adaedra> well yeah, it's a real chrome
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<morfin> i was using phantom it's pretty bad
<morfin> was painful to use it for my purposes
shazbotmcnasty has quit [Ping timeout: 264 seconds]
<dminuoso> adaedra: Can it also render screenshots?
<dminuoso> Oh wait it can!
<dminuoso> Amazing.
banisterfiend has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
tsglove has quit [Quit: Leaving]
tcopeland has joined #ruby
cdg has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeanlinu_ has joined #ruby
banisterfiend has joined #ruby
jeanlinux has quit [Ping timeout: 258 seconds]
tsglove has joined #ruby
shazbotmcnasty has joined #ruby
Guest65341 is now known as RedNifre
hutch34 has joined #ruby
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
ferr has joined #ruby
ferr has left #ruby [#ruby]
mcr1 has quit [Ping timeout: 240 seconds]
shazbotmcnasty has joined #ruby
danieli has quit [Ping timeout: 240 seconds]
snickers has joined #ruby
shazbotmcnasty has quit [Ping timeout: 240 seconds]
Psybur has joined #ruby
bmurt has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
madhatter has quit [Remote host closed the connection]
gnufied has joined #ruby
JsilverT has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
dinoangelov has joined #ruby
madhatter has joined #ruby
RedNifre has quit [Ping timeout: 268 seconds]
hutch34 has joined #ruby
d10n-work has joined #ruby
kahra has joined #ruby
kahra has quit [Client Quit]
shazbotmcnasty has joined #ruby
InfinityFye has quit [Ping timeout: 258 seconds]
InfinityFye has joined #ruby
Ouchy has joined #ruby
Ouchy has quit [Changing host]
Ouchy has joined #ruby
Ouchy`w has joined #ruby
shazbotmcnasty has quit [Ping timeout: 240 seconds]
dinoangelov has quit [Quit: (null)]
<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”
hutch34 has quit [Ping timeout: 240 seconds]
<adaedra> this is not clear at all
<adaedra> what would the URI look like?
PixeLInc has quit [Ping timeout: 240 seconds]
<vtx> so, say my endpoint looks like /api/v1/search/:query/and/:checkboxes, how can i pass multiple values to “checkboxes”
PixeLInc has joined #ruby
<adaedra> something like /api/v1/search/foo/and/alpha/beta/charlie ?
<vtx> adaedra: but then wouldn’t that mean i’d have to define my search like: /api/v1/search/:query/and/:checkbox1/:checkbox2/:checkbox3?
<vtx> *search endpoint
<adaedra> You can use a splat
<adaedra> however, this goes against common usages, I'd say
Technodrome has joined #ruby
<adaedra> I think something more standard would be /api/v1/search/toto?checkbox1=1&checkbox2=1&checkbox3=1
<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?
<adaedra> parameters (as shown after the ?) are not part of the URL you define, they are accessible through params iirc
<adaedra> so yeah you define your endpoint like this and use `params`
devchild has joined #ruby
aconite33 has joined #ruby
<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?
<aconite33> Is there a way to do this with sprintf?
<vtx> adaedra: thank you so much! this is exactly what i needed!
<adaedra> yw
vtx has quit [Quit: vtx]
shazbotmcnasty has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamarun has joined #ruby
devchild has quit [Remote host closed the connection]
snickers has quit [Ping timeout: 255 seconds]
TinkerTyper has quit [Read error: Connection reset by peer]
shazbotmcnasty has quit [Ping timeout: 260 seconds]
mcr1 has joined #ruby
TinkerTyper has joined #ruby
iamarun has quit [Remote host closed the connection]
mcr1 has quit [Read error: Connection reset by peer]
ahrs has quit [Remote host closed the connection]
nopolitica has quit [Ping timeout: 240 seconds]
hinbody has joined #ruby
ahrs has joined #ruby
Tolnaiz has joined #ruby
workmad3 has joined #ruby
hutch34 has joined #ruby
shazbotmcnasty has joined #ruby
wnd has quit [Excess Flood]
wnd has joined #ruby
soc42 has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
Guest70176 has joined #ruby
jameser has joined #ruby
jameser has quit [Client Quit]
shazbotmcnasty has quit [Ping timeout: 255 seconds]
mcr1 has joined #ruby
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
rabajaj has joined #ruby
Psybur has joined #ruby
jordanm has joined #ruby
ta_ has quit [Remote host closed the connection]
LyndsySimon has left #ruby [#ruby]
shinnya has quit [Ping timeout: 248 seconds]
Guest70176 has quit [Ping timeout: 268 seconds]
n13z has joined #ruby
wnd has quit [Ping timeout: 264 seconds]
Psybur has quit [Ping timeout: 258 seconds]
wnd has joined #ruby
griffindy has joined #ruby
griffindy has quit [Client Quit]
mson has joined #ruby
rabajaj has quit [Quit: Leaving]
shazbotmcnasty has joined #ruby
wnd has quit [Excess Flood]
allcentury has joined #ruby
DLSteve has joined #ruby
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
wnd has joined #ruby
Scorpion has joined #ruby
InfinityFye has quit [Quit: Leaving]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
safetypin has joined #ruby
cdg has quit [Remote host closed the connection]
<aconite33> ['0A00'].pack('H*')
<aconite33> Apaprently will do that.
dviola has quit [Quit: WeeChat 1.9.1]
cdg has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
safetypin has quit [Client Quit]
ledestin has joined #ruby
[DO] has joined #ruby
danieli has joined #ruby
danieli has joined #ruby
cdg has quit [Ping timeout: 250 seconds]
guille-moe has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
saslam has joined #ruby
tlaxkit has joined #ruby
[DO] has quit [Ping timeout: 248 seconds]
danieli has quit [Read error: Connection reset by peer]
danieli has joined #ruby
danieli has joined #ruby
Guest70176 has joined #ruby
oleo has joined #ruby
shazbotmcnasty has joined #ruby
claudiuinberlin has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soc42 has quit [Remote host closed the connection]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
shazbotmcnasty has joined #ruby
mcr1 has quit [Ping timeout: 248 seconds]
apparition has quit [Quit: Bye]
chouhoulis has joined #ruby
Guest70176 has quit [Ping timeout: 252 seconds]
userser has joined #ruby
selim has quit [Ping timeout: 255 seconds]
<ule> aconite33: oh this magic .pack H*. Saved me same time ago as well
odinsbane has left #ruby [#ruby]
Rapture has joined #ruby
<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.
selim has joined #ruby
joast has quit [Quit: Leaving.]
<dminuoso> userser: JavaScript is actually a clean language.
<dminuoso> userser: It's just infested by many bad libraries and developers.
<userser> ruby is so much more logical
<dminuoso> userser: I beg to differ.
<userser> ruby is better. so much better my friend.
<userser> sure you may differ, but let's keep it at that and not argue
<dminuoso> Ruby is great don't get me wrong. But JavaScript is quite clean and logical.
<userser> i just wanted to state that cause i've been angry about it since 2015
<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)
<dminuoso> In many ways I prefer JavaScript actually nowadays. :)
hutch34 has quit [Ping timeout: 255 seconds]
<userser> ruby is a much better language for people who are just starting out
rippa has joined #ruby
<userser> because it's written the way we initially think and learn.
<userser> dminuoso, go love your javascript :)
code_zombie has quit [Quit: Leaving]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
<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.
safetypin has joined #ruby
<dminuoso> userser: Well I found comfort in functional JavaScript.
<dminuoso> As it turns out, JS is quite well suited for that programming paradigm.
<userser> dminuoso, loves the JS mush mush kissing in a tree
* dminuoso goes back doing productive things
Psybur has joined #ruby
<userser> have fun. i'm productive too everyday baking and cleaning.
cschneid_ has quit [Remote host closed the connection]
<userser> i'll treat you a bun and a latte. there there. have a nice day
ana_ has quit [Quit: Leaving]
krawchyk has joined #ruby
Psybur has quit [Ping timeout: 248 seconds]
TomyWork has quit [Ping timeout: 240 seconds]
Rouge has joined #ruby
jackjackdripper1 has joined #ruby
jackjackdripper1 has quit [Client Quit]
sepp2k has joined #ruby
rfoust has joined #ruby
shazbotmcnasty has joined #ruby
frem has joined #ruby
planigan has quit [Ping timeout: 240 seconds]
planigan has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
ta_ has joined #ruby
ectos has quit [Quit: WeeChat 1.9.1]
PrinCe has joined #ruby
PrinCe has quit [Client Quit]
cdg has joined #ruby
cschneid_ has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
jeanlinu_ has quit [Remote host closed the connection]
hutch34 has joined #ruby
[DO] has joined #ruby
fusta has joined #ruby
ta_ has quit [Remote host closed the connection]
michael3 has joined #ruby
roshanavand has quit [Quit: Leaving]
troys has joined #ruby
kculpis has joined #ruby
[DO] has quit [Ping timeout: 240 seconds]
DTZUZU has joined #ruby
shazbotmcnasty has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zautomata has quit [Ping timeout: 258 seconds]
polishdub has joined #ruby
Rouge has quit [Ping timeout: 258 seconds]
saslam_ has joined #ruby
sammi` has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Ping timeout: 268 seconds]
Tolnaiz has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sammi` has joined #ruby
Ouchy`w has quit []
saslam has quit [Ping timeout: 240 seconds]
bexelbie has joined #ruby
<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?
shazbotmcnasty has quit [Ping timeout: 250 seconds]
<dminuoso> bexelbie: it's an assignment.
<dminuoso> bexelbie: let me rewrite with explicit params:
<elomatreb> It's equivalent to foo = (bar == baz)
<dminuoso> foo = (bar == baz)
Burgestrand has quit [Quit: Closing time!]
<bexelbie> ahh, so foo winds up with a boolean from the equality check
<bexelbie> I didn't even consider order of operations ... doh!
<dminuoso> bexelbie: The "construct" is called operator precedence and associativity.
lytol has joined #ruby
<bexelbie> dminuoso, elomatreb thank you both
hutch34 has quit [Ping timeout: 240 seconds]
drowze has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
hutch34 has joined #ruby
claudiuinberlin has joined #ruby
Guest70176 has joined #ruby
joast has joined #ruby
workmad3 has joined #ruby
claudiuinberlin has quit [Client Quit]
claudiuinberlin has joined #ruby
shazbotmcnasty has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
Guest70176 has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
claudiuinberlin has quit [Client Quit]
zautomata has joined #ruby
jeanlinux has joined #ruby
iamarun has joined #ruby
claudiuinberlin has joined #ruby
synthroid has quit [Remote host closed the connection]
Technodrome has joined #ruby
synthroid has joined #ruby
mark_66 has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 260 seconds]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Client Quit]
claudiuinberlin has joined #ruby
jeanlinux has quit [Ping timeout: 240 seconds]
Scorpion has quit [Quit: Leaving]
saslam_ has quit [Quit: Leaving]
Psybur has joined #ruby
drowze has joined #ruby
cognoscente has joined #ruby
apeiros has quit [Remote host closed the connection]
claudiuinberlin has quit [Client Quit]
hightower2 has quit [Ping timeout: 255 seconds]
uZiel has joined #ruby
[Butch] has joined #ruby
fusta has quit [Ping timeout: 248 seconds]
urk187 has joined #ruby
cognoscente has left #ruby [#ruby]
iamarun has quit [Remote host closed the connection]
kanobt61 has joined #ruby
Psybur has quit [Ping timeout: 248 seconds]
Liothen has quit [Ping timeout: 264 seconds]
mcr1 has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
shazbotmcnasty has joined #ruby
iamarun has joined #ruby
synthroid has quit [Remote host closed the connection]
synthroid has joined #ruby
michael3 has quit [Ping timeout: 248 seconds]
jaequery has joined #ruby
synthroi_ has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
thinkpad has quit [Ping timeout: 268 seconds]
mtkd has joined #ruby
allcentury has quit []
synthroid has quit [Ping timeout: 240 seconds]
mson has quit [Quit: Connection closed for inactivity]
paolo_ has quit [Quit: paolo_]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
iamarun has quit [Remote host closed the connection]
ixti has joined #ruby
hutch34 has joined #ruby
mcr1 has quit [Ping timeout: 240 seconds]
iamarun has joined #ruby
cagomez has quit []
uZiel has joined #ruby
[DO] has joined #ruby
cagomez has joined #ruby
MrBusiness has quit [Ping timeout: 258 seconds]
ixti has quit [Quit: WeeChat 1.9.1]
mson has joined #ruby
[DO] has quit [Ping timeout: 260 seconds]
shazbotmcnasty has joined #ruby
govg has quit [Ping timeout: 248 seconds]
kanobt61 has quit [Ping timeout: 250 seconds]
rabajaj has joined #ruby
andikr has quit [Remote host closed the connection]
nadir has quit [Quit: Connection closed for inactivity]
Sammichmaker has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
s778 has joined #ruby
michael3 has joined #ruby
howdoi has joined #ruby
Guest70176 has joined #ruby
faces has quit [Read error: Connection reset by peer]
faces has joined #ruby
<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
<dminuoso> s778: VALUE is basically.. anything.
raynold has joined #ruby
<dminuoso> s778: This is a good read, but it only covers facts relevant to C extensions.
<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.
marxarelli|afk is now known as marxarelli
Guest70176 has quit [Ping timeout: 248 seconds]
<dminuoso> The last resource is grossly outdated, but a lot of concepts still exist: https://ruby-hacking-guide.github.io/
<s778> oh boy, this might take a while
justinweiss has joined #ruby
<dminuoso> Don't expect anything it mentions to line up with existing code.
<dminuoso> Beyond that it's pretty much "Good luck!"
tlaxkit has quit [Quit: ¡Adiós!]
helpa has quit [Remote host closed the connection]
<dminuoso> s778: You might find the #jruby channel of interest. I know there's plenty of developers in there that have to understand MRI in order to implement jruby. If noone can help, they should be able to.
jeanlinux has joined #ruby
helpa has joined #ruby
<dminuoso> Also consider the mailing lists.
<s778> Cool! Thanks for the help
jeanlinux has quit [Remote host closed the connection]
<s778> If it's alright, I might come back if I get absolutely stumped
<dminuoso> Absolutely.
jeanlinux has joined #ruby
rabajaj has quit [Quit: Leaving]
tomphp has joined #ruby
roshanavand has joined #ruby
Psybur has joined #ruby
banisterfiend has joined #ruby
aupadhye has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
SeepingN has joined #ruby
iamarun has quit [Remote host closed the connection]
[DO] has joined #ruby
synthroid has joined #ruby
troys is now known as troys_
Psybur has quit [Ping timeout: 255 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yabbes has joined #ruby
synthroi_ has quit [Ping timeout: 268 seconds]
jaequery has joined #ruby
orbyt_ has joined #ruby
bexelbie has left #ruby ["Leaving"]
ivanskie has joined #ruby
jordanm has quit [Read error: Connection reset by peer]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 258 seconds]
michael3 has quit [Ping timeout: 248 seconds]
bronson has joined #ruby
gone_haywire has joined #ruby
jaequery has joined #ruby
jaequery has quit [Client Quit]
hutch34_ has joined #ruby
userser has quit [Quit: Leaving]
jaequery has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
jaequery has quit [Client Quit]
eckhardt has joined #ruby
aroaminggeek has joined #ruby
jaequery has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
jaequery has quit [Client Quit]
jaequery has joined #ruby
jaequery has quit [Client Quit]
aroaminggeek has quit [Client Quit]
jaequery has joined #ruby
jaequery has quit [Client Quit]
jaequery has joined #ruby
jaequery has quit [Client Quit]
jaequery has joined #ruby
zautomata has quit [Ping timeout: 255 seconds]
jaequery has quit [Client Quit]
yabbes has quit [Ping timeout: 268 seconds]
tomphp has quit [Read error: Connection reset by peer]
jordanm has joined #ruby
oetjenj has joined #ruby
Zamyatin has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.9.1]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
ivanskie has quit [Quit: Leaving]
ShekharReddy has quit [Quit: Connection closed for inactivity]
troys_ is now known as troys
elphe has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #ruby
elphe has joined #ruby
[DO] has quit [Ping timeout: 240 seconds]
shakes has joined #ruby
orbyt_ has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
elphe has quit [Ping timeout: 246 seconds]
guille-moe has quit [Ping timeout: 255 seconds]
shazbotmcnasty has quit [Changing host]
shazbotmcnasty has joined #ruby
ledestin has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
conta has quit [Ping timeout: 268 seconds]
ramfjord has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
troulouliou_dev has joined #ruby
Psybur has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vee__ has quit [Ping timeout: 255 seconds]
uZiel has quit [Remote host closed the connection]
troulouliou_dev has quit [Client Quit]
Technodrome has joined #ruby
troulouliou_dev has joined #ruby
zautomata has joined #ruby
Psybur has quit [Ping timeout: 268 seconds]
vee__ has joined #ruby
uZiel has joined #ruby
shakes has quit [Quit: Leaving]
exhiled has joined #ruby
truenito1 has joined #ruby
truenito has quit [Read error: Connection reset by peer]
lagweezle_away is now known as lagweezle
uZiel has quit [Ping timeout: 248 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dimik has joined #ruby
userser has joined #ruby
vee__ has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
ShalokShalom has joined #ruby
ldnunes has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lagweezle is now known as lagweezle_away
tomphp has joined #ruby
lagweezle_away is now known as lagweezle
Ouchy`w has joined #ruby
vee__ has joined #ruby
<userser> lagweezle, please disable public away msg
Ouchy has quit []
Ouchy`w has quit [Client Quit]
cloaked1 has joined #ruby
devchild has joined #ruby
Ouchy has joined #ruby
Ouchy has quit [Changing host]
Ouchy has joined #ruby
mcr1 has joined #ruby
ldnunes has joined #ruby
Guest70176 has joined #ruby
Rouge has joined #ruby
ur5us has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest70176 has quit [Ping timeout: 240 seconds]
conta has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
Psybur has joined #ruby
devchild has quit [Read error: Network is unreachable]
mr_foto has joined #ruby
devchild has joined #ruby
eckhardt has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
mr_foto has quit []
<tcopeland> s778: there’s also http://patshaughnessy.net/ruby-under-a-microscope
<dminuoso> tcopeland: Which I have mentioned by the way. :P
<tcopeland> ooo shoot yes you did
LocaMocha has quit [Ping timeout: 268 seconds]
<s778> :)
<tcopeland> too much skimming on my part
<dminuoso> Its a brilliant book though, worth mentioning twice.
<tcopeland> pretty much anything he writes is worth a close read
aScottishBoat has joined #ruby
<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
<dminuoso> tcopeland: Though sadly Im hoping there will be a revised version
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> Half the code doesn't line up with trunk anymore.
<tcopeland> hmm nov 2013 has it been that long
bmurt has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
<tcopeland> gosh, metaprogramming 2 came out in aug 2014… I didn’t think it’d been that long on that one either
seggy has quit [Ping timeout: 240 seconds]
troys is now known as troys_
zacts has quit [Quit: WeeChat 1.4]
zacts has joined #ruby
JsilverT has quit [Ping timeout: 268 seconds]
michael3 has joined #ruby
tvw has quit [Remote host closed the connection]
aScottishBoat has quit [Quit: aScottishBoat]
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nadir has joined #ruby
yabbes has joined #ruby
jaruga has quit [Quit: jaruga]
dionysus69 has quit [Ping timeout: 258 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Remote host closed the connection]
truenito1 has quit [Remote host closed the connection]
ur5us has joined #ruby
cognoscente has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
cagomez has quit []
workmad3 has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has quit [Ping timeout: 240 seconds]
Guest70176 has joined #ruby
<dminuoso> >> Module.instance_method(:include).arity
<ruby[bot]> dminuoso: # => -1 (https://eval.in/903827)
<dminuoso> Why is ruby being so annoying here?
<dminuoso> Or more to the point:
ldnunes has quit [Remote host closed the connection]
ur5us has joined #ruby
Guest70176 has quit [Ping timeout: 240 seconds]
michael3 has quit [Ping timeout: 240 seconds]
Psybur has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has joined #ruby
userser has quit [Quit: Leaving]
Psybur has quit [Ping timeout: 255 seconds]
fusta has joined #ruby
orbyt_ has joined #ruby
cognoscente has left #ruby [#ruby]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<elomatreb> wat
banisterfiend has joined #ruby
eckhardt has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
luminor has joined #ruby
luminor has quit [Client Quit]
orbyt_ has joined #ruby
<dminuoso> Yes.
troys_ is now known as troys
Barrt has joined #ruby
mochiyoda has joined #ruby
mochiyoda_ has quit [Ping timeout: 268 seconds]
<havenwood> >> Module.instance_method(:include).parameters
<ruby[bot]> havenwood: # => [[:rest]] (https://eval.in/903874)
darkn1 has joined #ruby
Zamyatin has quit [Ping timeout: 248 seconds]
darkn1 has quit [Client Quit]
rhyselsmore has joined #ruby
tvw has joined #ruby
AnoHito has quit [Ping timeout: 250 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lytol has quit [Remote host closed the connection]
conta has quit [Remote host closed the connection]
dviola has joined #ruby
Guest70176 has joined #ruby
<dminuoso> havenwood: Are you bored right now?
<havenwood> dminuoso: I wish!
<havenwood> dminuoso: I ended up with a really busy, short week.
<havenwood> Thursday *soon*.
<dminuoso> havenwood: I think my way of composing functions was unsound.
<dminuoso> You remember: class Proc; def *(f); ->(*args) { self[f[args]] }; end; end?
<dminuoso> *args in there.
Guest70176 has quit [Ping timeout: 268 seconds]
Psybur has joined #ruby
<dminuoso> There's a fundamental flaw, and that has to do with arity.
<dminuoso> Im basically forced to do ->(*args) { self[f[args[0]]] }.curry[*args[1..-1]]
<havenwood> ahh, hrm
shazbotmcnasty has quit [Ping timeout: 240 seconds]
<dminuoso> (Since I want to allow things like (g * f).(1,2,3), rather than (g * f).(1).(2,3)
shazbotmcnasty has joined #ruby
<dminuoso> Err, that wont quite work
Liothen has joined #ruby
<dminuoso> ->(*args) { self[f[args[0]]].curry[*args[1..-1]] }
<dminuoso> This.
Liothen has quit [Changing host]
Liothen has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
peeja has joined #ruby
Guest88741 has quit [Changing host]
Guest88741 has joined #ruby
peeja has quit [Client Quit]
Guest88741 is now known as Jason
fusta has quit [Quit: Leaving]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
kitsunenokenja has joined #ruby
apeiros has joined #ruby
AnoHito has joined #ruby
Zamyatin has joined #ruby
Technodrome has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
sammi`_ has joined #ruby
shazbotmcnasty has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
sammi` has quit [Quit: Lost terminal]
michael3 has joined #ruby
troys is now known as troys_
jeanlinu_ has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ShalokShalom has quit [Remote host closed the connection]
jeanlinux has quit [Ping timeout: 240 seconds]
tvw has quit [Remote host closed the connection]
ap4y has joined #ruby
cdg has joined #ruby
safetypin has quit [Ping timeout: 248 seconds]
Sammichmaker has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
conta has joined #ruby
wnd has quit [Excess Flood]
wnd has joined #ruby
devchild has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 248 seconds]
conta has quit [Ping timeout: 258 seconds]
troulouliou_dev has quit [Quit: Leaving]
Guest70176 has joined #ruby
Psybur has joined #ruby
vee__ has quit [Ping timeout: 260 seconds]
Guest70176 has quit [Ping timeout: 240 seconds]
divd has joined #ruby
divd has quit [Client Quit]
AxelAlex has joined #ruby
yabbes has quit [Ping timeout: 250 seconds]
centrx has joined #ruby
centrx has quit [Changing host]
centrx has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
lagweezle has left #ruby [#ruby]
Psybur has quit [Ping timeout: 248 seconds]
dennisvennink has joined #ruby
s778 has quit [Quit: leaving]
CBebop has quit [Ping timeout: 252 seconds]
mitchellvanw has quit [Ping timeout: 252 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
mitchellvanw has joined #ruby
CBebop has joined #ruby
vee__ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitz has joined #ruby
orbyt_ has joined #ruby
urk187 has quit [Remote host closed the connection]
c0ncealed has quit [Remote host closed the connection]
snickers has joined #ruby
c0ncealed has joined #ruby
kitsunenokenja has quit [Ping timeout: 246 seconds]
tenderlove has joined #ruby
gone_haywire has quit [Quit: Leaving]
tcopeland has quit [Quit: tcopeland]
synthroid has quit []
hopsoft has joined #ruby
Guest83160 is now known as maxmanders
<baweaver> ohai tenderlove. How'd the talk go for ya?
<tenderlove> it went well, I think. Thank you!
<tenderlove> :)
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> I always look forward to seeing them for the puns :D
Guest70176 has joined #ruby
morfin has quit []
<pragmatism> tenderlove The first talk of yous I saw at RailsConf five or so years back had me in tears
<pragmatism> Always look forward to them
<tenderlove> :D
<tenderlove> thank you!! ❤️ ❤️
hopsoft has quit [Read error: Connection reset by peer]
<pragmatism> <3!
orbyt_ has joined #ruby
elphe has joined #ruby
Guest70176 has quit [Ping timeout: 240 seconds]
shazbotmcnasty has joined #ruby
[Butch] has quit [Ping timeout: 248 seconds]
elphe has quit [Ping timeout: 240 seconds]
shazbotmcnasty has quit [Read error: Connection reset by peer]
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
thinkpad has joined #ruby
divoxx has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
marxarelli is now known as marxarelli|afk
[Butch] has joined #ruby
p0p0pr37 has quit [Remote host closed the connection]
cschneid_ has quit [Ping timeout: 268 seconds]
lytol has joined #ruby
pilne has joined #ruby
n305oul93 has joined #ruby
k3rn31_ has quit [Ping timeout: 255 seconds]
[Butch] has quit [Ping timeout: 248 seconds]
centrx has quit []
thinkpad has quit [Quit: lawl]
krawchyk has quit [Ping timeout: 248 seconds]
dstrunk has joined #ruby
polishdub has quit [Quit: leaving]
xlegoman has joined #ruby
sucks has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
[Butch] has joined #ruby
Psybur has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nachoman has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
elphe has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
Dimik has quit [Ping timeout: 255 seconds]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
tomphp has joined #ruby
gix has quit [Ping timeout: 248 seconds]
tomphp has quit [Client Quit]
sepp2k has quit [Quit: Leaving.]
ensyde has joined #ruby
troys_ is now known as troys
mikecmpbll has joined #ruby
Technodrome has joined #ruby
sucks has quit [Remote host closed the connection]
oetjenj has joined #ruby
hutch34_ has quit [Ping timeout: 240 seconds]
p0p0pr37 has joined #ruby
jaequery has joined #ruby
Zamyatin has quit [Quit: Knocking out. Peace y'all...]
rfoust has joined #ruby
jeanlinu_ has quit [Ping timeout: 248 seconds]
gix has joined #ruby
biberu has quit []
sammi`_ has quit [Quit: Lost terminal]
Guest70176 has joined #ruby