havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.3; 2.2.6; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
<zenspider> the health dept shut that down here because they declared they needed to fully change the water between each treatment... but that'd kill the fish
nelsonsar has joined #ruby
Guest69 has quit [Read error: Connection reset by peer]
<zenspider> that'd be an interesting way to maintain your feet tho
guacamole has quit [Quit: leaving]
Madplatypus has joined #ruby
<oddmunds> zenspider: myiasis -> "Myiasis (/ˈmaɪ.əsᵻs/ or /maɪˈaɪ.əsᵻs/) is the parasitic infestation of the body of a live mammal by fly larvae (maggots) that grow inside the host while feeding on its tissue."
<oddmunds> could be considered more or less offensive than maggot
<oddmunds> (harder to remember, though)
<oddmunds> i'd go with maggot
<havenwood> you could name it Leonid after the Russian doc who removed his own appendix in the Antarctic
<havenwood> autolysis
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
thbar has joined #ruby
<zenspider> yeah ... if I can't spell it...
ramfjord has quit [Ping timeout: 250 seconds]
whathappens has joined #ruby
thbar has quit [Client Quit]
agent_white has quit [Quit: brb]
ramfjord has joined #ruby
fmcgeough has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
bayed has quit [Quit: Connection closed for inactivity]
whathappens has quit [Ping timeout: 256 seconds]
stamina has quit [Ping timeout: 265 seconds]
whathappens has joined #ruby
beanHolez has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
l33n has joined #ruby
<l33n> hi, could use some feedback, I am unable to generate the json and have it render at localhost:2345, heres the server script: https://gist.github.com/anonymous/1f228e9604783369d6d4d432a580b7e2 , and heres the output: https://gist.github.com/anonymous/49c38cffc89f056574d951fccde461d9
SCHAAP137 has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 268 seconds]
Xentil has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
montanonic has joined #ruby
<zenspider> l33n: that is some seriously unreadable shit.
<zenspider> nope. Not gonna read it. that code is crazymaking
dnicole has joined #ruby
<l33n> randy newman over here
augcesar has quit [Quit: Connection closed for inactivity]
<baweaver> He's right
ghr has joined #ruby
<zenspider> time is valuable over here. I don't waste it on crap like this. Format it like a normal ruby program and you'll get more help
<baweaver> Not likely you're going to have anyone take time to read through it with that wild indentation.
<blackbombay> l33n: i don't think you're handling the case when there is no query string, but try reformat the gist in your editor and repost. it's v hard to read with that indentation.
<l33n> ok, but there is a query string, and it can access it and do the calculations,
<l33n> ill format it better
<blackbombay> what if there isn't a query string? you'll choke on JSON.parse.
<zenspider> >> require "json"; JSON.parse ""
<ruby[bot]> zenspider: # => A JSON text must at least contain two octets! (JSON::ParserError) ...check link for more (https://eval.in/688888)
<baweaver> Also why are you using numbered indexes?
<zenspider> seems simple enough
<baweaver> just use an array
antoniobeyah has quit [Quit: antoniobeyah]
Asher has quit [Quit: Leaving.]
ramfjord has joined #ruby
dnicole has quit [Ping timeout: 258 seconds]
Asher has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
<l33n> i can get to that, but i just want to figure out why the json is not generating for now
Devalo has joined #ruby
smlocal has quit [Ping timeout: 260 seconds]
<blackbombay> btw use Kernel#p instead of puts, because "puts nil" just prints an empty line.
<zenspider> that's the least of the problems
<l33n> so how about just this one problem: why is the json not generating
<baweaver> See above
<zenspider> no clue. you're showing the server, not the client
<baweaver> >> require 'json'; JSON.parse('')
<ruby[bot]> baweaver: # => A JSON text must at least contain two octets! (JSON::ParserError) ...check link for more (https://eval.in/688889)
<blackbombay> based on your second gist, i see two requests. the first one looks like it goes through fine, the second looks like you have nil values (due to the blank lines).
<blackbombay> the second request has no query string.
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
smlocal has joined #ruby
chrisco has joined #ruby
danst has quit [Ping timeout: 256 seconds]
Devalo has quit [Ping timeout: 246 seconds]
<l33n> the second request is just me visiting the url localhost:2345
<l33n> oh
danst has joined #ruby
<l33n> thats what you mean by handling a blank query
patientj has quit [Ping timeout: 260 seconds]
<baweaver> get rid of the :"1" stuff and this is a lot easier.
workmad3 has quit [Ping timeout: 256 seconds]
<baweaver> not good to treat a Hash like an Array in any case.
ur5us has quit [Remote host closed the connection]
enterprisey has joined #ruby
ur5us has joined #ruby
<l33n> ty
<l33n> im working on formatting better, i just wanted to see if I could get this to wokr
<l33n> work
<baweaver> What editor are you using?
<l33n> vim
<baweaver> Why?
<l33n> idk
<baweaver> If you're just learning Ruby and you're not a Vim user from before don't
<baweaver> Pick up Sublime Text, Atom, or Brackets.
<baweaver> You only need one major learning curve at a time.
<l33n> yeah
<l33n> ty
<baweaver> and if you don't have indentation and language settings in Vim, I'm venturing a guess you're new to it as well.
tuxaddicted has joined #ruby
<blackbombay> my guess is vim is being used from a terminal and copy&paste screws up horribly when copying from there to a browser.
<baweaver> :set paste
<zenspider> I had a student using sublime and I couldn't for the life of me find "indent region/buffer" or equivalent. might have changed since then...
ur5us has quit [Ping timeout: 260 seconds]
<blackbombay> emacs4life
<baweaver> CMD + Shift + V matches indent on paste
<baweaver> but I hesitate to ever tell a newbie to use Vim or Emacs. Learn a language first, then bikeshed over editors
<baweaver> unless said newbie was a SysAdmin that's already good with Vim
<blackbombay> i think emacs is easier to learn than vim but maybe not.
<baweaver> *shrugs* I just vote for simplest out of the box editor I can find when teaching
<baweaver> because really the editor matters substantially less than the content
<blackbombay> yeah def true
<zenspider> blackbombay: agreed
Derperperd has quit [Quit: Derperperd]
f4 has joined #ruby
chrisja has quit [Quit: leaving]
bturker has joined #ruby
BreakThings has quit [Quit: Lost terminal]
<l33n> so i should add an if statement thats like if there is a json, then go ahead with json parse, else print response
agent_white has joined #ruby
<l33n> i guess print hydrant data if there is no json, else print final hydrant data
bturker has quit [Ping timeout: 256 seconds]
<cluckmaster> zenspider: was your student slow
<zenspider> cluckmaster: excuse me?
antoniobeyah has joined #ruby
<cluckmaster> I believe my statement was clear.
<cluckmaster> friend
<zenspider> cluckmaster: just for the public record... based on the above and your PMs you're rapidly walking into a temporary ban... ok done
cluckmaster was banned on #ruby by zenspider [*!~kushboi@199.195.254.230]
ruid has quit [Ping timeout: 265 seconds]
jmignault has joined #ruby
<zenspider> we don't tolerate jackassery here
tyang has joined #ruby
tyang_ has joined #ruby
nankyokusei has joined #ruby
OTORelic has joined #ruby
nikivi has joined #ruby
jaguarmagenta has joined #ruby
jmignault has quit [Ping timeout: 245 seconds]
nahra has quit [Ping timeout: 246 seconds]
tyang has quit [Ping timeout: 246 seconds]
nankyokusei has quit [Ping timeout: 258 seconds]
OTORelic has quit [Client Quit]
<zenspider> !unban cluckmaster
<zenspider> !rude cluckmaster
<zenspider> there... now it is set to an hour
platzhirsch has joined #ruby
tdy has quit [Ping timeout: 265 seconds]
jaguarmagenta has quit [Ping timeout: 260 seconds]
<l33n> if request.xhr?
<l33n> end
<l33n> print hydrant_data
<l33n> else
<l33n> print final_hydrant_data
Fuzai has joined #ruby
<l33n> can i do something like that?
bmurt has joined #ruby
dnicole has joined #ruby
cdg has quit [Remote host closed the connection]
<blackbombay> what is request for you? so far you've implemented a http server on your own.
<l33n> or how to write that? psuedo being if its an ajax request, parse the json and print the hydrant data with calculation, else just print hydrant data on server
dnicole has quit [Remote host closed the connection]
dnicole has joined #ruby
Derperperd has joined #ruby
<zenspider> NIH at its best.
<zenspider> just use two endpoints and have them only do one thing each
reverberations has joined #ruby
<l33n> like two servers?
chrisco has quit []
<l33n> what does NIH mean
Anonymoose2 has quit [Ping timeout: 268 seconds]
jhack has joined #ruby
<zenspider> Not Invented Here
<zenspider> not two servers. two urls
ur5us has joined #ruby
platzhirsch has quit [Quit: WeeChat 1.4]
<l33n> blackbombay, I want to send the json to the server, but for now I just want to see the updated final_hydrant_data
jgnagy has joined #ruby
<l33n> how would i do that senspider?
<l33n> zenspider*
<zenspider> iirc you were already "parsing" out the request
chouhoulis has joined #ruby
skweek has joined #ruby
dnicole has quit [Ping timeout: 260 seconds]
<l33n> yeah but i think i was getting that original problem because when I tried to visit the site, not sending an ajax request, it choked on the JSON.parse, like blackbombay said, because there was nothing being sent to it
jgnagy has quit [Ping timeout: 248 seconds]
whathappens has quit [Quit: Leaving...]
<jhack> same issue l33n ?
<l33n> well no
<l33n> i made progress
<l33n> amazingly
<l33n> lol
<l33n> but now i think its time to incorporate what you were saying
<l33n> because the issue now is that I can't really visit the server with the code as is, i can't see the json because the code requires input to parse in order to output the modified json data
cibs has quit [Ping timeout: 268 seconds]
jphase has quit []
<l33n> but i think i can just have the ajax call send the gps coordinates, the server parses and then outputs a new json with the calculations all done, and the ajax call does the .done() thing you were saying and uses the data
cibs has joined #ruby
nikivi has quit [Quit: irc]
ruby-lang541 has joined #ruby
jbeeze has quit [Remote host closed the connection]
Azure has quit [Remote host closed the connection]
guacamole has joined #ruby
Azure has joined #ruby
jphase has joined #ruby
matp has quit [Quit: ZZzzzZz...]
Ebok has joined #ruby
<zenspider> Released: minitest v5.10.0, debride v1.7.0, oedipus_lex v2.5.0
ramfjord_ has joined #ruby
jhack has quit [Quit: jhack]
<zenspider> ruby2ruby 2.3.2
_sfiguser has quit [Quit: Leaving]
jphase has quit [Ping timeout: 260 seconds]
jphase has joined #ruby
railssmi_ has joined #ruby
jhack has joined #ruby
railssmith has quit [Ping timeout: 260 seconds]
jhack has quit [Client Quit]
jaguarmagenta has joined #ruby
Synthead has joined #ruby
jhack has joined #ruby
<zenspider> path_expander 1.0.1
<jhack> Any ideas on how I’d be able to create a method to sort a object’s attribute?
<jhack> Probably gonna use sort_by
<jhack> but.. can i take the arguments from the method and use that in the sort by?
<jhack> if that makes sense
<jhack> ex: I want to sort by age and then first name
ruby-lang541 has left #ruby [#ruby]
finisherr has quit [Quit: finisherr]
creat has quit [Max SendQ exceeded]
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
creat has joined #ruby
enterprisey has quit [Ping timeout: 258 seconds]
<jhack> nvm
<jhack> got it
Ropeney has joined #ruby
<zenspider> sort_by is definitely the cleanest way to go about that
jhack has quit [Quit: jhack]
<l33n> thank you everyone
<l33n> it fing works
enterprisey has joined #ruby
jswe has quit [Quit: ZNC 1.6.3+deb1+trusty0 - http://znc.in]
l33n has quit [Quit: This computer has gone to sleep]
jhack has joined #ruby
jmignault has joined #ruby
croberts has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jmignault has quit [Ping timeout: 240 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
riskish has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<jhack> zenspider: is there a way i can use a single string to sort?
<jhack> ex: person.sort_by { |x| [sort_rules] }
nettoweb has joined #ruby
<jhack> sort_rules is an argument passed in, ex: ‘x.first_name, x.age’
<elomatreb> A lambda?
<jhack> ??
<elomatreb> Pass in a lambda that returns the attribute you want to sort by
<elomatreb> 1sec, I'll make an example
jaguarmagenta has quit [Remote host closed the connection]
<jhack> thanks
davidt has quit []
blackbom1 has joined #ruby
chouhoulis has quit [Ping timeout: 268 seconds]
Kero has quit [Ping timeout: 246 seconds]
tyang_ has quit [Read error: Connection reset by peer]
blackbombay has quit [Ping timeout: 256 seconds]
<zenspider> jhack: people.sort_by { |p| [p.last_name, p.first_name, -p.hire_date] }
Kero has joined #ruby
bhaak has quit [Ping timeout: 240 seconds]
<zenspider> as a simple example
<zenspider> elomatreb: why??
bhaak has joined #ruby
<jhack> elomatreb: nice
<jhack> that works
<jhack> lambdas
<elomatreb> zenspider: I got the impression this should be part of some API, but yeah it's not great
<zenspider> you're already passing a block. why pass two?
<jhack> zenspider: what if we were trying to pass in different arguments everytime?
<jhack> having a different sort every time
<elomatreb> jhack: Are you always sorting by one attribute only?
<jhack> elomatreb: no, multiple
<zenspider> jhack: then pass different blocks... assuming they're of sufficiently complex logic. if not, then you can use a single field and toproc
<jhack> I added [] to it
<zenspider> people.sort_by(&:last_name)
<zenspider> either way... you're still stuck with blocks. so there's no reason I can see to do what elomatreb is suggesting
<zenspider> it's just indirection
<elomatreb> Yes, ignore my example. Idk what I was thinking
<jhack> ah okay, so i should just pass in a block, rather than passing in two blocks
<zenspider> s/sorted = //; s/return sorted//
<zenspider> yeah. that code makes no sense / serves no added purpose
<jhack> okay
<zenspider> adds extra method calls and block invocations to do the exact same thing
<jhack> so, it should be the bottom one?
aryaching has quit [Ping timeout: 260 seconds]
<elomatreb> Maybe make a method that accepts an array of symbols and just calls public_send with them on the array you're sorting?
<zenspider> I'm really not getting through to you...
<jhack> I dont understand your people.sort_by(&:last_name)
<elomatreb> That is equivalent to people.sort_by { |i| i.last_name }
<jhack> right, but I am trying to use sort_records on different attributes
<zenspider> and I answered that too
<jhack> and it can be different any time
<zenspider> but it fell on deaf eyes
<jhack> zenspider: the example you provided, sorts different attributes, but not when it’s different every time the function is called
<zenspider> jhack: yours is NO different... it's just slower
<jhack> the one i put up is an example
<jhack> yeah, your right, its no different
brent__ has joined #ruby
<zenspider> I've tried to explain that 3 different ways. I give up
<jhack> I guess i’m not explaining my question correctly
<zenspider> no, you're explaining it fine.
<jhack> do u mind reiterating what im trying to ask?
aryaching has joined #ruby
<jhack> I am trying to create a method that will take an array that consists of objects and another argument that will be the rules that it will be sorted by.
nelsonsar has quit [Remote host closed the connection]
jswe has joined #ruby
nelsonsar has joined #ruby
ramfjord1 has joined #ruby
rfoust has joined #ruby
<montanonic> jhack: what's your code?
<montanonic> link and I'll take a look
<jhack> with the lambda implementation elomatreb showed
<elomatreb> Ignore lambdas, they were a bad idea. At that point you could just pass in the rules array directly
<jhack> oh
<jhack> really
<jhack> hmm
maryo has left #ruby ["Leaving"]
<montanonic> jhack: yeah, what you have can literally just be
ramfjord_ has quit [Ping timeout: 244 seconds]
<montanonic> obj_array = whatever your object array is
nelsonsar has quit [Ping timeout: 250 seconds]
rfoust has quit [Client Quit]
<montanonic> obj_array.sort_by { |obj| obj.code_to_tell_what_to_sort_your_objects_by }
<montanonic> you appear to be adding a layer of indirection that doesn't actually do anything
jackjackdripper has quit [Quit: Leaving.]
<montanonic> obj_array.sort_by { |person| person.first_name }
agent_white has quit [Ping timeout: 258 seconds]
<baweaver> jhack: you don't need return there
marxarelli is now known as marxarelli|afk
jshjsh has joined #ruby
<jhack> thanks baweaver
nettoweb has quit [Ping timeout: 260 seconds]
<montanonic> jhack: are you hacking on a Rails project? you might want to go through a short book on Ruby. It will help a lot
enterprisey has quit [Ping timeout: 268 seconds]
<montanonic> anyways, hope that helps jhack
<baweaver> array.sort_by { |person| [person.first_name, person.last_name] }
<jhack> right, i understand that person.first_name, person.last_name works
<baweaver> or just: array.sort_by { |person| "#{person.first_name} #{person.last_name}" }
<jhack> let me add some more examples
<montanonic> baweaver: that code confuses me; what is happening in the closure?
enterprisey has joined #ruby
<baweaver> which code?
<montanonic> err, rather: what is the effect of that closure on the sort_by method?
<baweaver> and it's a block
<montanonic> what you pasted; yes, block*
<jhack> Something like this
<baweaver> sort_by takes a block
* montanonic nods
<baweaver> and I'm either returning an array or a string
<baweaver> depending on which one you mean
<baweaver> so it sorts using <=> between those values
<montanonic> oooh
<montanonic> I get it,
d^sh has quit [Ping timeout: 250 seconds]
<montanonic> it sorts by first name first, then last name
<montanonic> it does two levels of sorting at once
<baweaver> Wait wait wait - is this on Rails?
<jhack> It’s just ruby
<baweaver> because if so sort_by is not what you should use
<jhack> No, this isn’t rails
<baweaver> Making sure
<baweaver> by the way, that'll crash on you
<jhack> i’d be using something like order, right?
<jhack> if it was rails
<baweaver> yeah
<baweaver> &Enumerable#sort_by
<baweaver> &ri Enumerable#sort_by
d^sh has joined #ruby
preyalone has joined #ruby
<baweaver> Hrm. Lodash spoiled me then.
<baweaver> In any case, that code will crash
<jhack> yeah
<jhack> because person is not defined
<baweaver> Also, you don't need that sorted = ... return sorted
<baweaver> just put array.sort_by ... in there
<baweaver> sorted isn't necessary
<jhack> okay
<baweaver> Though why you're even putting this method on user for an external array is odd to me
<baweaver> why not just directly call sort_by on the array?
<jhack> good point
<jhack> lol
<jhack> yeah
<jhack> might as well just do that
<jhack> but
<jhack> if i were to just put it as a method
<baweaver> stop
<baweaver> using
<baweaver> the
<jhack> How would i go about it
<baweaver> enter
<baweaver> key
<baweaver> one message is fine, complete your thought first.
<baweaver> The method is not necessary.
arescorpio has joined #ruby
<jhack> alright, thanks
chouhoulis has joined #ruby
<jhack> :)
jshjsh is now known as JoshS
ramfjord1 has quit [Ping timeout: 260 seconds]
webguynow has quit [Ping timeout: 250 seconds]
smlocal has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 258 seconds]
webguynow has joined #ruby
mim1k|work has quit [Ping timeout: 265 seconds]
smlocal has joined #ruby
mim1k|work has joined #ruby
bturker has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
jswe has quit [Quit: ZNC 1.6.3+deb1+trusty0 - http://znc.in]
smlocal has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
ramfjord_ has joined #ruby
jswe has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
jphase has quit [Ping timeout: 240 seconds]
brunofp has joined #ruby
brunofp has left #ruby [#ruby]
jphase has joined #ruby
tmtwd has joined #ruby
antoniobeyah has joined #ruby
jmignault has joined #ruby
nankyokusei has joined #ruby
<al2o3-cr> Can you use Symbol#to_proc with unary methods?
jahrichie has joined #ruby
saneax-_-|AFK is now known as saneax
<jahrichie> anyone point me in the right direction
jaguarmagenta has joined #ruby
<jahrichie> upgraded a legacy app to ruby 2
<jahrichie> and broke my fb login
<jahrichie> using omniauth omniauth-facebook ouath2
<jahrichie> my api running the same ruby upgrade is working
jmignault has quit [Ping timeout: 250 seconds]
<antoniobeyah> jahrichie: any error or exception you are getting?
nankyokusei has quit [Ping timeout: 250 seconds]
<jahrichie> I get a few different to be honest, it bounces around.
<jahrichie> that's the one im dealing with now
<jahrichie> antoniobeyah: sometimes no error but the damn oauth hash is empty
<jahrichie> switch back to ruby 193 and boom works like a charm
enterprisey has quit [Ping timeout: 248 seconds]
jcao219 has joined #ruby
<antoniobeyah> so it at least looks like it is attempting oauth, where in the flow is it getting hung up?
<jahrichie> hits fb, they post back (maybe its a get)
<jahrichie> with the token
<jahrichie> the different errors im getting is driving me crazy tough to debug
libastral has quit [Ping timeout: 244 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
<jahrichie> for instance
<jahrichie> second attempt to login no error
<jahrichie> but the hash is empty
<jahrichie> uid is blank the endpoint for the picture is actually missing the uid : http://graph.facebook.com//picture?type=square
<jahrichie> so weird because im running identical gem versions on my api, with the same ruby version
<jahrichie> (ruby-2.0.0-p648)
enterprisey has joined #ruby
libastral has joined #ruby
<antoniobeyah> honestly this will be help to provide assistance with, but the version of omniauth you are using wasn't tested with ruby 2
<antoniobeyah> can you upgrade to a newer version?
<antoniobeyah> (i get its working with your api, i'm concerned it is conflicting with one of the other gems for the api)
jhack has quit [Quit: jhack]
bocaneri has joined #ruby
igniting has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
<jahrichie> antoniobeyah: my thought was there are conflicting dependences from other gems
<jahrichie> I don't have omniauth locked in either app — any idea what version i should bump or downgrade to?
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Channel6 has joined #ruby
libastral has quit [Ping timeout: 245 seconds]
<antoniobeyah> try latest
gusrub has quit []
charliesome has joined #ruby
railssmi_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
<jahrichie> antoniobeyah: trying to see what that is
<jahrichie> will bundle update oauth do that ?
GodFather has quit [Remote host closed the connection]
eb0t has joined #ruby
<antoniobeyah> bundle update omniauth-oauth2
<antoniobeyah> assuming you are using bundle exec when running
<jahrichie> gem 'omniauth' gem 'omniauth-facebook'#, '1.4.0' gem 'oauth2'
<jahrichie> im using those
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
pilne has quit [Quit: Quitting!]
<antoniobeyah> ah, the backtrace was misleading
<antoniobeyah> are you executing your app using bundle exec?
jmignault has joined #ruby
<jahrichie> antoniobeyah: yeah
<jahrichie> rvm
<jahrichie> i updated to omniauth 1.3.1
<jahrichie> i think that's most recent stable
<jahrichie> still having the issues
splud has quit [Quit: splud]
solocshaw has joined #ruby
tvsutton has joined #ruby
<antoniobeyah> can you post your Gemfile.lock?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<antoniobeyah> your stacktrace is saying one thing but your gemfile is saying another
charliesome has joined #ruby
jmignault has quit [Ping timeout: 250 seconds]
tmtwd has quit [Ping timeout: 245 seconds]
<antoniobeyah> and can you post a new backtrace using the new versions?
<jahrichie> antoniobeyah: http://prnt.sc/ddw53n
baweaver is now known as baweaver_away
<jahrichie> peep that encoding
<jahrichie> so weird man
<antoniobeyah> Gemfile.lock?
<antoniobeyah> can you post it
<antoniobeyah> and that seems to be missing the actual exception
<antoniobeyah> does full trace show anything additional?
<jahrichie> antoniobeyah: thanks dude your help is very appreciated
<jahrichie> last gist was full trace
<jahrichie> antoniobeyah: mind if dm you a link you can see at?
<antoniobeyah> sure
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arescorpio has quit [Quit: Leaving.]
montanonic has quit [Ping timeout: 256 seconds]
harai_ has quit [Ping timeout: 260 seconds]
enterprisey has quit [Ping timeout: 245 seconds]
ramfjord_ has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
enterprisey has joined #ruby
frontrowalex has quit [Ping timeout: 260 seconds]
bturker has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
jphase has quit [Remote host closed the connection]
astrobunny has joined #ruby
enterprisey has joined #ruby
tmtwd has joined #ruby
benlieb has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
hahuang65 has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
astrobun_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
montanonic has joined #ruby
astrobun_ has joined #ruby
brunofp has joined #ruby
<brunofp> which hair style is best for an interview?
hanmac has quit [Ping timeout: 240 seconds]
astrobunny has quit [Ping timeout: 256 seconds]
Immune has joined #ruby
astrobun_ has quit [Ping timeout: 258 seconds]
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
jmignault has joined #ruby
jahrichie has quit [Excess Flood]
jahrichie has joined #ruby
jahrichie has quit [Client Quit]
jenrzzz has joined #ruby
jahrichie has joined #ruby
enterprisey has quit [Ping timeout: 258 seconds]
jmignault has quit [Ping timeout: 260 seconds]
benlieb has quit [Quit: benlieb]
jenrzzz has quit [Ping timeout: 256 seconds]
jackjackdripper has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
AlexRussia has quit [Ping timeout: 245 seconds]
Trynemjoel has quit [Quit: Quitting]
cdg has joined #ruby
hanmac has joined #ruby
cdg has quit [Read error: Connection reset by peer]
cdg has joined #ruby
Trynemjoel has joined #ruby
gix has quit [Ping timeout: 246 seconds]
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
PsionTheory has joined #ruby
benlieb has joined #ruby
railssmith has joined #ruby
gix has joined #ruby
Ropeney has joined #ruby
ace_33 has joined #ruby
jshjsh has joined #ruby
igniting has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
jackjackdripper1 has joined #ruby
JoshS has quit [Ping timeout: 260 seconds]
jackjackdripper has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
jshjsh is now known as JoshS
<raul782> Hi guys, I have a spec like the following: site = FactoryGirl.build :site, name: nil
<raul782> get :new
<raul782> expect(assigns(:site)).to eql(site)
<raul782> however I get an error
Madper|AFK is now known as iMadper
<raul782> however, the expected and got objects are equivalent
<raul782> what might be wrong?
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
P_R_Deltoid has joined #ruby
<P_R_Deltoid> The << operator actually operates on the array itself, right?
iMadper is now known as iMadper|Cooking
<P_R_Deltoid> Instead of just returning a value and leaving the array as-is
etehtsea has joined #ruby
johnny56 has quit [Ping timeout: 246 seconds]
hahuang65 has joined #ruby
saneax is now known as saneax-_-|AFK
<P_R_Deltoid> https://gist.github.com/PRDeltoid/acd2b835538f6d11e362979d01d1dcb8 I'm having an issue where the "hints" array is being populated correctly, but right after it leaves the main loop the entire array is filled with only the final entry in place of every other previous entry
<P_R_Deltoid> but printing the array every itteration returns the correct information (the hints are different and slowly building up letters)
volix has quit [Ping timeout: 265 seconds]
jphase has joined #ruby
<P_R_Deltoid> Actually, after checking my output again, it seems the entire array is replace with the most recent hint for every entry every time it goes through the loop
johnny56 has joined #ruby
<P_R_Deltoid> But I don't want that functionality
<P_R_Deltoid> I want to simply push a new, more filled in hint every iteration
<antoniobeyah> oh, i get it now
<P_R_Deltoid> into my hints array, without changing the original values
<P_R_Deltoid> and it worked before when I had the hints injected with string interpolation around them
<P_R_Deltoid> ie. hints << "#{last_hint}"
<antoniobeyah> try adding a to_s, you must be adding an object reference
<antoniobeyah> or a .clone, either way
matp has joined #ruby
<P_R_Deltoid> Naw, same result
<antoniobeyah> what does replace_letters return?
<P_R_Deltoid> The answr with 3 more dashes replaced with letters
<P_R_Deltoid> oh wait
<P_R_Deltoid> wait wait
<antoniobeyah> no I mean what type of object
<P_R_Deltoid> Right, I thought it returned a string but I think it might be an array
preyalone has quit [Quit: Connection closed for inactivity]
Fuzai has quit [Quit: Fuzai]
jphase_ has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
<P_R_Deltoid> Oh, naw. It is a String.
<P_R_Deltoid> It has the same reaction when using #push as well
<antoniobeyah> only thing that explains it is that you are pushing in an object reference, can you post the replace_letters function?
PsionTheory has quit [Remote host closed the connection]
<P_R_Deltoid> https://gist.github.com/PRDeltoid/19137baae7fb38157f17b34edcf06214 This is the entire file. I've printed the last_hint's class inside of replace letters and generate_hints and it always say String
<P_R_Deltoid> It is fixed when I replace both areas with string interpolation though. That is reproducable
etehtsea has quit [Ping timeout: 250 seconds]
etehtsea has joined #ruby
Fuzai has joined #ruby
Fuzai has quit [Client Quit]
astrobunny has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
astrobunny has quit [Ping timeout: 248 seconds]
jaguarmagenta has joined #ruby
biox has quit [Quit: brb servers are ded]
biox has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
jmignault has joined #ruby
<antoniobeyah> so the issue is that you are pushing and manipulating the same object reference to the same string object
twistedpixels has quit [Quit: ZNC - http://znc.in]
twistedpixels has joined #ruby
twistedpixels has joined #ruby
twistedpixels has quit [Changing host]
<P_R_Deltoid> so when I push last_hint, it doesn't push by value, but it's literally pushing a reference to last_hint?
<P_R_Deltoid> and as I update last_hint, all references in the array are also updated?
<antoniobeyah> yeah
<P_R_Deltoid> That makes sense, but why wouldn't to_s work?
<antoniobeyah> add a .clone
<P_R_Deltoid> so hints << last_hint.clone ?
<antoniobeyah> yeah
<P_R_Deltoid> Do you think that is better practice than simply leaving the string interpolation in?
szu has quit [Quit: Leaving]
iMadper|Cooking is now known as iMadper|Full
jmignault has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
<antoniobeyah> or wrap it in new
HammyJammy has joined #ruby
<antoniobeyah> it will get flagged by linters if you use interpolation in that way
<antoniobeyah> probably safer to either use .clone or String.new(last_hint)
jgnagy has joined #ruby
danman has joined #ruby
<P_R_Deltoid> Your .clone solution worked. Thanks so much for your help.
<antoniobeyah> as far as to_s, i'm guessing that to_s in the string object just returns this
tmtwd has quit [Ping timeout: 250 seconds]
<antoniobeyah> yep, looks like thats the case
<antoniobeyah> static VALUE
<antoniobeyah> rb_str_to_s(VALUE str)
<antoniobeyah> {
<antoniobeyah> if (rb_obj_class(str) != rb_cString) {
<antoniobeyah> return str_duplicate(rb_cString, str);
<antoniobeyah> }
<antoniobeyah> return str;
<antoniobeyah> }
mistym has quit [Remote host closed the connection]
<antoniobeyah> probably should have pasted that in a gist
<P_R_Deltoid> It kept most of it's formatting. I get what you mean
Jammyham has quit [Ping timeout: 240 seconds]
danman has quit [Client Quit]
jgnagy has quit [Ping timeout: 260 seconds]
jphase_ has quit [Remote host closed the connection]
william3 has joined #ruby
jmignault has joined #ruby
Jammyham has joined #ruby
jswe has left #ruby [#ruby]
baweaver_away is now known as baweaver
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
william3 has quit [Ping timeout: 250 seconds]
jmignault has quit [Ping timeout: 258 seconds]
sdothum has joined #ruby
HammyJammy has quit [Ping timeout: 258 seconds]
User458764 has joined #ruby
Devalo has joined #ruby
ace_33 has quit [Remote host closed the connection]
etehtsea has quit [Ping timeout: 260 seconds]
Channel6 has quit [Quit: Leaving]
sdothum has quit [Client Quit]
Devalo has quit [Ping timeout: 246 seconds]
sdothum has joined #ruby
sdothum has quit [Remote host closed the connection]
sdothum has joined #ruby
Derperperd has quit [Quit: Derperperd]
etehtsea has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
triangles has quit [Quit: Leaving]
triangles2 has quit [Quit: Leaving]
haraoka has joined #ruby
qwertyco has joined #ruby
qwertyco has quit [Client Quit]
qwertyco has joined #ruby
astrobunny has joined #ruby
User458764 has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jenrzzz has quit [Ping timeout: 248 seconds]
yardenbar has joined #ruby
tdy has joined #ruby
sdothum has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
bturker has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
yardenbar has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
chouhoulis has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
jshjsh has joined #ruby
jahrichie has quit [Quit: Leaving.]
JoshS has quit [Disconnected by services]
jshjsh is now known as JoshS
cdg has quit [Remote host closed the connection]
tau has quit [Remote host closed the connection]
xberg has joined #ruby
bihi has quit [Quit: Bye!]
bihi has joined #ruby
somiaj has left #ruby [#ruby]
chouhoulis has quit [Remote host closed the connection]
cibs has quit [Ping timeout: 268 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
cibs has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ur5us has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
charliesome has joined #ruby
ramfjord_ has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
jphase has joined #ruby
AnoHito has quit [Read error: Connection reset by peer]
Ebok has quit [Quit: This computer has gone to sleep]
domgetter has joined #ruby
jphase_ has joined #ruby
ace_33 has joined #ruby
jphase has quit [Disconnected by services]
jphase_ is now known as jphase
jmignault has joined #ruby
AnoHito has joined #ruby
howdoi has joined #ruby
maattdd has joined #ruby
amclain has quit [Quit: Leaving]
bihi has quit [Quit: Bye!]
bihi has joined #ruby
jmignault has quit [Ping timeout: 260 seconds]
buglessdr has quit [Read error: Connection reset by peer]
maattdd has quit [Ping timeout: 265 seconds]
eggshke has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
antoniobeyah has joined #ruby
tmtwd has joined #ruby
kares_ has joined #ruby
<kares_> hello, anyone around to consult openssl 2.0 ?
xall has joined #ruby
<antoniobeyah> kares_: whats the question?
<kares_> DH got p,q,g params ... just like DSA
<kares_> I'm confused
<kares_> on 2.3: {"p"=>#<OpenSSL::BN:0x0000000274f138>, "g"=>#<OpenSSL::BN:0x0000000274f020>, "pub_key"=>#<OpenSSL::BN:0x0000000274eda0>, "priv_key"=>#<OpenSSL::BN:0x0000000274ed00>}
<kares_> what's q for in DH ?
AnoHito has quit [Read error: Connection reset by peer]
AnoHito has joined #ruby
<kares_> (I'm trying to implement a compatibility layer for JRuby)
<antoniobeyah> see if I can find it in the docs, that is certainly new
<antoniobeyah> i dont see a q, where are you seeing q?
aidalgol has joined #ruby
<kares_> antoniobeyah: seeing it on master
aidalgol is now known as Guest50974
Guest50974 is now known as aidalgol
<kares_> PKey::DH#set_pqg is added
<kares_> seems to me like a copy-pasta typo from PKey::DSA#set_pqg
<kares_> ... but since it's in the API I wanted to rather double check - maybe I got DH wrong :)
dnicole has joined #ruby
<antoniobeyah> maybe a mistake
<antoniobeyah> i'm trying to check the upstream openssl sources to see if that would be the rationale
<kares_> antoniobeyah: what should we do? report on GH or wait for someone to confirm?
solocshaw has quit [Ping timeout: 260 seconds]
aganov has joined #ruby
<kares_> ok - thanks ... I checked the OpenSSL docs and there's no q around diffie-helman as far as I see
saneax-_-|AFK is now known as saneax
mtkd has quit [Ping timeout: 245 seconds]
dionysus69 has quit [Ping timeout: 258 seconds]
xall has quit [Ping timeout: 268 seconds]
<kares_> so I must be wrong - it is working/doing smt
<kares_> still, quite confusing ;(
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nahra has joined #ruby
montanonic has quit [Ping timeout: 260 seconds]
govg has joined #ruby
hahuang65 has joined #ruby
tuxaddicted has quit [Ping timeout: 244 seconds]
codfection has joined #ruby
tuxaddicted has joined #ruby
lacour has quit [Quit: Leaving]
mtkd has joined #ruby
<antoniobeyah> maybe its there for duck-typing, not sure
ponga has quit []
brunofp has quit [Quit: Page closed]
nankyokusei has joined #ruby
tuxaddicted_back has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
<dminuoso> kares_: q is the prime order
<dminuoso> i.e. subgroup order
djbkd has joined #ruby
tjbiddle has joined #ruby
tuxaddicted has quit [Ping timeout: 258 seconds]
User458764 has joined #ruby
tjbiddle has quit [Client Quit]
nankyokusei has quit [Ping timeout: 246 seconds]
<dminuoso> kares_: Refer to https://tools.ietf.org/html/rfc5114 or any other book you like
<dminuoso> as a random exmaple
montanonic has joined #ruby
<kares_> dminuoso: aah, thanks - so it is a thing in the end
<dminuoso> Yeah.
<kares_> maybe it's just a bit under documented in the docs
<dminuoso> kares_: I don't know, the "PQG" triplet is a common thing in DH
<dminuoso> If you don't know what it is, you really should not be touching it.
<kares_> sounds like it's redundant when p/g are known
domgetter has quit [Ping timeout: 260 seconds]
xall has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
<kares_> dminuoso: thanks - managed to support JRuby-OpenSSL for a while ... this is encouraging :)
pawnbox has quit [Remote host closed the connection]
ramfjord_ has quit [Ping timeout: 240 seconds]
<dminuoso> No, thank you for supporting useful libraries. :)
ramfjord has quit [Ping timeout: 265 seconds]
<antoniobeyah> dminuoso: u have any references for pqg being used for DH when DSA/RSA signing isn't involved?
yardenbar has joined #ruby
<kares_> still, theory aside, wonder why there wasn't a set_pg in the first place + whether q is actually returned with DH#params
pawnbox has joined #ruby
<kares_> it actually is: {"p"=>#<OpenSSL::BN:0x00000001f59230>, "q"=>#<OpenSSL::BN:0x00000001f591b8>, "g"=>#<OpenSSL::BN:0x00000001f59140>, "pub_key"=>#<OpenSSL::BN:0x00000001f59078>, "priv_key"=>#<OpenSSL::BN:0x00000001f59000>}
tuxaddicted_back has quit [Ping timeout: 258 seconds]
<kares_> did not realize 2.0.0 was released and I can gem install - day is saved!
<kares_> thanks you both for help and guidance
shashin has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
last_staff has joined #ruby
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
sneakerhax has joined #ruby
alxgsv has quit [Quit: https://fnordserver.eu]
Satyajit has quit [Quit: https://fnordserver.eu]
conta has joined #ruby
gizmore has joined #ruby
jmignault has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
raul782 has quit [Remote host closed the connection]
ace_33 has quit [Remote host closed the connection]
naprimer_3 has joined #ruby
troulouliou_div2 has joined #ruby
jmignault has quit [Ping timeout: 248 seconds]
xall has quit [Ping timeout: 260 seconds]
SuperLag has joined #ruby
brendan- has joined #ruby
naprimer_2 has quit [Ping timeout: 248 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jhooker has quit [Ping timeout: 250 seconds]
volix has joined #ruby
jhooker has joined #ruby
nowhere_man has quit [Ping timeout: 250 seconds]
libastral has joined #ruby
etehtsea has quit [Ping timeout: 268 seconds]
troulouliou_div2 has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
fenre has joined #ruby
minimalism has quit [Ping timeout: 250 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
xberg has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 250 seconds]
jmignault has joined #ruby
pragmaticus has joined #ruby
benlieb has quit [Quit: benlieb]
jmignault has quit [Ping timeout: 258 seconds]
lxsameer has joined #ruby
etehtsea has joined #ruby
bturker has joined #ruby
etehtsea has quit [Client Quit]
govg has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
ace_33 has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
tmtwd has joined #ruby
TomyWork has joined #ruby
ARCADIVS has joined #ruby
neanderslob has joined #ruby
naprimer_2 has joined #ruby
djbkd has quit [Quit: My people need me...]
riotjones has quit [Ping timeout: 268 seconds]
yeticry has quit [Read error: Connection reset by peer]
naprimer_3 has quit [Ping timeout: 246 seconds]
jmignault has joined #ruby
blaxter has joined #ruby
JeroenDL has joined #ruby
pawnbox has quit [Remote host closed the connection]
yeticry has joined #ruby
eggshke has quit [Read error: Connection reset by peer]
alxgsv has joined #ruby
jshjsh has joined #ruby
jackjackdripper1 has quit [Ping timeout: 250 seconds]
jmignault has quit [Ping timeout: 260 seconds]
JoshS has quit [Disconnected by services]
jshjsh is now known as JoshS
eggshke has joined #ruby
xberg has joined #ruby
AlexRussia has joined #ruby
_main_ has joined #ruby
railssmith has quit [Ping timeout: 260 seconds]
JeroenDL has quit [Ping timeout: 245 seconds]
firstdayonthejob has joined #ruby
muelleme has joined #ruby
__main__ has quit [Ping timeout: 260 seconds]
JeroenDL has joined #ruby
_main_ is now known as __main__
bayed has joined #ruby
armando has quit [Ping timeout: 240 seconds]
xall has joined #ruby
SesMan has joined #ruby
AlexRussia has quit [Ping timeout: 256 seconds]
LoneHerm_ has quit [Read error: Connection reset by peer]
LoneHermit has joined #ruby
dn` has quit [Read error: Connection reset by peer]
ace_33 has quit [Remote host closed the connection]
dn` has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
troulouliou_div2 has joined #ruby
muelleme has quit [Ping timeout: 258 seconds]
haxrbyte_ has joined #ruby
nebg has quit [Ping timeout: 260 seconds]
haxrbyte has quit [Ping timeout: 244 seconds]
jmignault has joined #ruby
lightstalker has quit [Ping timeout: 260 seconds]
astrobun_ has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
RazorX has quit [Ping timeout: 244 seconds]
muelleme has joined #ruby
x0f_ has quit [Ping timeout: 260 seconds]
andikr has joined #ruby
krandi has joined #ruby
x0f has joined #ruby
nofxx has quit [Ping timeout: 244 seconds]
andikr has quit [Remote host closed the connection]
Takumo has quit [Ping timeout: 260 seconds]
nebg has joined #ruby
the_drow has joined #ruby
jmignault has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
weaksauce has quit [Ping timeout: 244 seconds]
tmtwd has quit [Ping timeout: 245 seconds]
RazorX has joined #ruby
lightstalker has joined #ruby
lel has quit [Ping timeout: 260 seconds]
apeiros has joined #ruby
lel has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
rhinosic has quit [Ping timeout: 260 seconds]
pskosinski has joined #ruby
zzak has quit [Ping timeout: 244 seconds]
lxsameer has quit [Quit: WeeChat 1.6]
muelleme has quit [Ping timeout: 256 seconds]
rhinosic has joined #ruby
zzak has joined #ruby
lightstalker has quit [Ping timeout: 260 seconds]
audibleblink has quit [Ping timeout: 260 seconds]
bigkevmcd has quit [Ping timeout: 246 seconds]
ytti has quit [Ping timeout: 260 seconds]
kies has quit [Ping timeout: 260 seconds]
z3uS has quit [Ping timeout: 260 seconds]
piotrj has quit [Ping timeout: 260 seconds]
ytti has joined #ruby
lightstalker has joined #ruby
audibleblink has joined #ruby
z3uS has joined #ruby
piotrj has joined #ruby
bigkevmcd has joined #ruby
kies has joined #ruby
conta has quit [Quit: conta]
Takumo has joined #ruby
Takumo has quit [Changing host]
Takumo has joined #ruby
xall has quit [Ping timeout: 258 seconds]
muelleme has joined #ruby
lxsameer has joined #ruby
User458764 has joined #ruby
llaine has joined #ruby
haxrbyte has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
xall has joined #ruby
jshjsh has joined #ruby
claudiuinberlin has joined #ruby
govg has joined #ruby
conta has joined #ruby
JeroenDL has quit [Ping timeout: 258 seconds]
JoshS has quit [Disconnected by services]
jshjsh is now known as JoshS
JeroenDL has joined #ruby
muelleme has quit [Ping timeout: 245 seconds]
hahuang65 has joined #ruby
codfection has quit [Remote host closed the connection]
flying has joined #ruby
haxrbyte has quit [Ping timeout: 245 seconds]
riotjones has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
eggshke_ has joined #ruby
Couch has joined #ruby
hahuang65 has quit [Ping timeout: 246 seconds]
nankyokusei has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
omphe has joined #ruby
eggshke has quit [Ping timeout: 260 seconds]
haxrbyte has joined #ruby
montanonic has quit [Ping timeout: 265 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby
llaine has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maattdd has joined #ruby
SCHAAP137 has joined #ruby
Humdai has joined #ruby
jgnagy has joined #ruby
jcao219 has quit [Ping timeout: 250 seconds]
haxrbyte_ has joined #ruby
User458764 has joined #ruby
haxrbyte has quit [Ping timeout: 245 seconds]
Coldblackice has quit [Ping timeout: 268 seconds]
jgnagy has quit [Ping timeout: 260 seconds]
bturker has joined #ruby
blaxter has quit [Quit: foo]
koooge has quit [Quit: Leaving...]
www-bukolay-net has joined #ruby
conta has quit [Ping timeout: 260 seconds]
conta has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
scorphus has quit [Ping timeout: 260 seconds]
jtperreault has quit [Ping timeout: 260 seconds]
jtperreault has joined #ruby
jcao219 has joined #ruby
BUTTMUFFLER has joined #ruby
tomphp has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
brent__ has quit [Quit: Connection closed for inactivity]
byte512 has joined #ruby
JeroenDL has quit [Ping timeout: 268 seconds]
ddffg has joined #ruby
tpendragon has quit [Ping timeout: 245 seconds]
Devalo has joined #ruby
jshjsh has joined #ruby
jmignault has joined #ruby
vasilakisfil has joined #ruby
<vasilakisfil> hello! does it make sense to .freeze constants ?
<adaedra> yes
<adaedra> >> CONSTANT = {}; CONSTANT[:a] = :b; CONSTANT
<ruby[bot]> adaedra: # => {:a=>:b} (https://eval.in/689060)
<adaedra> It's not because they're in a CONSTANT that they're constant – freeze ensures that
<adaedra> note that for strings, there's also the frozen_string_literal pragma
JoshS has quit [Ping timeout: 265 seconds]
aries_liuxueyang has quit [Ping timeout: 245 seconds]
AlexRussia has joined #ruby
aries_liuxueyang has joined #ruby
<apeiros> constant in ruby means "constantly references the same object" (though sadly even that doesn't hold true - ruby only warns if you reassign)
troulouliou_div2 has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 246 seconds]
<apeiros> the thing freeze does is make an object immutable
DrCode has quit [Ping timeout: 256 seconds]
<vasilakisfil> I see! Thanks :D
jmignault has quit [Ping timeout: 260 seconds]
railssmith has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
JeroenDL has joined #ruby
tuxaddicted has joined #ruby
__main__ has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
armando has joined #ruby
dasher00 has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
william3 has joined #ruby
tuxaddicted has quit [Ping timeout: 256 seconds]
giraffe has quit [Quit: ZNC - http://znc.in]
manjaro-kde5-- has joined #ruby
blackbom1 has quit [Ping timeout: 250 seconds]
JeroenDL has quit [Ping timeout: 248 seconds]
toretore has joined #ruby
pandaant has joined #ruby
tomchapin has quit [Read error: Connection reset by peer]
tomchapin has joined #ruby
<xall> is there a more shorthand way to write this: @observers.each { |observer| observer.update(self) }
<apeiros> no
jmignault has joined #ruby
giraffe has joined #ruby
<xall> @observers.each(&:update) only works without arg, yeah?
tpendragon has joined #ruby
<adaedra> yes
dasher00 has joined #ruby
<adaedra> I think @observers.each(&observer.method(:update)) would work, but it's meh
<adaedra> ah no wait
<adaedra> nvm
ledestin has joined #ruby
johnmccabe has joined #ruby
<apeiros> never truly tested
<apeiros> i.e. it was just an experiment
jmignault has quit [Ping timeout: 246 seconds]
Fernando-Basso has joined #ruby
<xall> apeiros: cool. doesn't seem practical in my situation but neat
aryaching has quit [Ping timeout: 240 seconds]
tomchapi_ has joined #ruby
ace_33 has joined #ruby
<apeiros> xall: not practical because you'd have more code in the end?
ignarps has quit [Ping timeout: 245 seconds]
Antiarc has quit [Ping timeout: 240 seconds]
tomchapin has quit [Ping timeout: 245 seconds]
last_staff1 has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37_ has quit [Changing host]
p0p0pr37_ has joined #ruby
Immune_ has joined #ruby
omphe has quit [Ping timeout: 260 seconds]
jshjsh has quit [Read error: Connection reset by peer]
last_staff has quit [Read error: Connection reset by peer]
last_staff1 is now known as last_staff
p0p0pr37 has quit [Read error: Connection reset by peer]
ignarps has joined #ruby
p0p0pr37_ is now known as p0p0pr37
JoshS has joined #ruby
Antiarc has joined #ruby
bronson has quit [Read error: Connection reset by peer]
tristanp has quit [Read error: Connection reset by peer]
bronson has joined #ruby
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
tristanp has joined #ruby
kith_ has joined #ruby
sneakerhax has quit [Ping timeout: 256 seconds]
tubbo` has joined #ruby
abort_ has joined #ruby
kith has quit [Disconnected by services]
haraoka has quit [Ping timeout: 258 seconds]
kith_ is now known as kith
Immune has quit [Ping timeout: 260 seconds]
tubbo` is now known as tubbo
tubbo has quit [Ping timeout: 260 seconds]
abort has quit [Ping timeout: 260 seconds]
duracrisis has quit [Ping timeout: 260 seconds]
duracrisis has joined #ruby
uxp_ has joined #ruby
uxp has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
iNs has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jmignault has joined #ruby
<ddffg> i think map is preferable
hkvn has joined #ruby
<apeiros> non-sequitur?
jmignault has quit [Ping timeout: 265 seconds]
rodfersou has joined #ruby
<Bish> anyone experienced with net-ssh? i want to write a ssh automation class
<Bish> and tunnel database connections etc
<Bish> problem is: doing ssh_session.loop { true } blocks, and if i don't do that, forwarded data will not be transmitted
<Bish> i thought that's were what channels are for, but that doesn't seem to be the case
jcao219 has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<shadeslayer> Bish: moment
ur5us has joined #ruby
jmignault has joined #ruby
<shadeslayer> Bish: has extensive net-ssh usage
bodgix has joined #ruby
<Bish> looks like it uses net/ssh/gateway not net/ssh
ta_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 248 seconds]
psychicist__ has joined #ruby
jmignault has quit [Ping timeout: 258 seconds]
astrobun_ has quit [Remote host closed the connection]
jcao219 has joined #ruby
<Bish> >THIS REPOSITORY IS NO LONGER MAINTAINED
andrzeju_ has quit [Remote host closed the connection]
llaine has joined #ruby
ur5us has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 260 seconds]
<Bish> but kinda looks what i want, thanks
duper` has joined #ruby
shortdudey123 has quit [Ping timeout: 244 seconds]
perry has quit [Ping timeout: 244 seconds]
jpterry has quit [Ping timeout: 244 seconds]
teclator_ has joined #ruby
Guest2753 has quit [Ping timeout: 244 seconds]
SuperLag has quit [Ping timeout: 244 seconds]
cloaked1 has quit [Ping timeout: 244 seconds]
b0g has quit [Ping timeout: 244 seconds]
aidalgol has quit [Quit: zZzZZzz]
b0g has joined #ruby
LiquidInsect has quit [Ping timeout: 244 seconds]
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
jpterry has joined #ruby
SuperLag has joined #ruby
LiquidInsect has joined #ruby
Snowy has joined #ruby
Guest64702 has joined #ruby
blackbom1 has joined #ruby
tvw has joined #ruby
johnzorn- has joined #ruby
macay has joined #ruby
macay has quit [Max SendQ exceeded]
workmad3 has joined #ruby
joast has quit [Ping timeout: 250 seconds]
majuscul1 has joined #ruby
KnownSyntax_ has joined #ruby
diego_k has joined #ruby
d0nn1e_ has joined #ruby
maokomioko has joined #ruby
macay has joined #ruby
macay has quit [Max SendQ exceeded]
pawnbox_ has joined #ruby
shortdudey123 has joined #ruby
ur5us_ has joined #ruby
ur5us_ has quit [*.net *.split]
ignarps has quit [*.net *.split]
d0nn1e has quit [*.net *.split]
teclator has quit [*.net *.split]
johnzorn has quit [*.net *.split]
herbmillerjr has quit [*.net *.split]
Keltia has quit [*.net *.split]
KnownSyntax has quit [*.net *.split]
existensil has quit [*.net *.split]
eclm has quit [*.net *.split]
Log1x has quit [*.net *.split]
Koshian____ has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
duper has quit [*.net *.split]
peteretep has quit [*.net *.split]
ryotarai has quit [*.net *.split]
epitron has quit [*.net *.split]
yorickpeterse has quit [*.net *.split]
brainslug has quit [*.net *.split]
aarwine has quit [*.net *.split]
alnewkirk has quit [*.net *.split]
ianconnolly has quit [*.net *.split]
chridal has quit [*.net *.split]
isomorphismes has quit [*.net *.split]
diegok has quit [*.net *.split]
jericon_ has quit [*.net *.split]
Freijo has quit [*.net *.split]
majuscule has quit [*.net *.split]
<xall> apeiros: yeah, because more code. i'm newish to ruby and was just curious if there was a shorter way write what i had
<Bish> but does work aswell as my implementation
<Bish> not :)
Log1x has joined #ruby
Log1x has quit [Changing host]
Log1x has joined #ruby
perry has joined #ruby
perry has quit [Changing host]
perry has joined #ruby
yardenbar has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
blackbom1 has quit [Ping timeout: 256 seconds]
tristanp_ has joined #ruby
maokomioko has quit [Client Quit]
tristanp has quit [Ping timeout: 265 seconds]
ghostlight has quit [Ping timeout: 258 seconds]
teclator_ is now known as teclator
llaine has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ltd has quit [Ping timeout: 252 seconds]
ltd has joined #ruby
jcao219 has quit [Ping timeout: 240 seconds]
existensil has joined #ruby
herbmillerjr has joined #ruby
eclm has joined #ruby
Keltia has joined #ruby
aarwine has joined #ruby
epitron has joined #ruby
ignarps has joined #ruby
Koshian____ has joined #ruby
ryotarai has joined #ruby
peteretep has joined #ruby
brainslug has joined #ruby
yorickpeterse has joined #ruby
jericon_ has joined #ruby
ianconnolly has joined #ruby
alnewkirk has joined #ruby
isomorphismes has joined #ruby
chridal has joined #ruby
Freijo has joined #ruby
hkvn has quit [Ping timeout: 250 seconds]
www-bukolay-net has quit [Excess Flood]
andygmb has joined #ruby
ldnunes has joined #ruby
ghostlight has joined #ruby
andygmb has left #ruby ["Leaving"]
llaine has joined #ruby
Mission-Critical has joined #ruby
tomchapi_ has quit [Ping timeout: 265 seconds]
stamina has joined #ruby
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
nankyokusei has joined #ruby
yardenbar has quit [Ping timeout: 256 seconds]
nelsonsar has joined #ruby
rodfersou has quit [Ping timeout: 245 seconds]
P_R_Deltoid has quit [Quit: Leaving]
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
rodfersou has joined #ruby
psycho_one has quit [Quit: Textual IRC Client: www.textualapp.com]
psycho_one has joined #ruby
psycho_one has quit [Client Quit]
psycho_one has joined #ruby
pawnbox_ has quit [Ping timeout: 265 seconds]
lee-jon has joined #ruby
nelsonsar has quit [Ping timeout: 258 seconds]
pawnbox has joined #ruby
jgnagy has joined #ruby
yardenbar has joined #ruby
tau has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
jgnagy has quit [Ping timeout: 268 seconds]
jcao219 has joined #ruby
jmignault has joined #ruby
User458764 has joined #ruby
GodFather has joined #ruby
macay has joined #ruby
CloCkWeRX has joined #ruby
jmignault has quit [Ping timeout: 250 seconds]
beanHolez has quit [Remote host closed the connection]
catphish_ has joined #ruby
beanHolez has joined #ruby
macay has quit [Remote host closed the connection]
pawnbox has quit [Read error: No route to host]
matp_ has joined #ruby
jcao219 has quit [Ping timeout: 258 seconds]
matp has quit [Ping timeout: 250 seconds]
beanHolez has quit [Ping timeout: 260 seconds]
kn330 has joined #ruby
psychicist__ has quit [Ping timeout: 260 seconds]
<zenspider> needing to decide if reworked code is actually worth it: https://gist.github.com/zenspider/9818c7e3cc220c3b7e05b9132e0d17d1
<zenspider> 10 lines longer in order to have (essentially) no logic in it
<zenspider> but this one is just a 2x2... there are 2x2x2's too which get really gross
jaruga___ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
frozengeek____ has joined #ruby
<zenspider> added example of 2x2x2
<dminuoso> zenspider: Why doesn't git have a grid layout for files. Would love to see those next to each other.
<dminuoso> *github
<zenspider> it does for regular PRs
User458764 has joined #ruby
jmignault has joined #ruby
<dminuoso> zenspider: Will you be reusing this pattern elsewhere? If not I don't think it's worth it.
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> zenspider: IMO the issue is that you have these separate functions wrap_sge_FilledRect, wrap_sge_Rect, sge_RectAlpha and sge_FilledRectAlpha - instead of a single one that takes a struct or some opts and then dispatches accordingly.
tomchapin has joined #ruby
<zenspider> which is why I've written 1
nelsonsar has joined #ruby
<dminuoso> zenspider: Are these functions under your control, or is that what your SDL library offers?
sepp2k has joined #ruby
marxarelli|afk has quit [Read error: Connection reset by peer]
<zenspider> they're part of a library I'm using that sits on top of SDL called sge
<dminuoso> zenspider: Woah. Whoever wrote this deserves to be bitchslapped: http://openmortal.sourceforge.net/doxygen/sge__primitives_8cpp.html
<dminuoso> zenspider: Can't just write a simple wrapper instead?
llaine has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider> remember, whenever a nerd says "just", they're MASSIVELY underestimating whatever they're talking about
<mikecmpbll> i'm just about the coolest dude in #ruby
nelsonsar has quit [Ping timeout: 256 seconds]
<dminuoso> zenspider: :)
hahuang65 has joined #ruby
nelsonsar has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
<dminuoso> zenspider: I'm wondering, are the overloaded variants with three separate RGB arguments exported somehow too?
<zenspider> they're in C++ land... I'm not using them tho as I've precalculated my colors
cibs has joined #ruby
<zenspider> ok... I did ellipse in both styles: https://gist.github.com/zenspider/9818c7e3cc220c3b7e05b9132e0d17d1
jaruga___ has quit [Quit: jaruga___]
<zenspider> thank you gist... for sorting by filename. :(
conta has quit [Quit: conta]
hahuang65 has quit [Ping timeout: 260 seconds]
<zenspider> renamed...
conta has joined #ruby
floraxation has joined #ruby
<dminuoso> zenspider: Let me provide an example of what I meant.
lxsameer has quit [Read error: Connection reset by peer]
<floraxation> Can I request support here or is there a channel for help with Ruby?
bigkevmcd has quit [Quit: Outta here...]
<zenspider> floraxation: go for it
<floraxation> I try running this Ruby script and I get
<floraxation> [ERROR] libreadline.so.6: cannot open shared object file: No such file or directory - /usr/local/lib/ruby/2.3.0/x86_64-linux/readline.so
bigkevmcd has joined #ruby
<dminuoso> floraxation: Sadly your problem is not Ruby related! :-P
<floraxation> Oh, really?
<zenspider> that's probably linux packaging dogma you're running up against
<dminuoso> Jokes aside, are you using a Ruby version manager?
* dminuoso smells RVM
aryaching has joined #ruby
haxrbyte_ has quit [Ping timeout: 268 seconds]
haxrbyte has joined #ruby
<floraxation> I don't even know to be honest
<zenspider> make sure that readline-dev is installed
<dminuoso> zenspider: Oh. Funny - I just realized that my proposal is exactly what you're doing..
<zenspider> then try again on the ruby side... if it doesn't see the headers, it won't compile the extension
<dminuoso> zenspider: Use your initial optimized variant. There can't be a good generic solution because the bezier functions don't have a Filled.
claudiuinberlin has quit [Remote host closed the connection]
<dminuoso> (bezier and lines have AA insteaD)
<zenspider> right. I'm having to craft this for each one
claudiuinberlin has joined #ruby
<floraxation> sudo pacman -S readline warning: readline-7.0-1 is up to date -- reinstalling
manjaro-kde5-- has quit [Ping timeout: 246 seconds]
ta_ has joined #ruby
<dminuoso> zenspider: If you are wrapping it already, wrap the params into a common struct too.
sparch has joined #ruby
<zenspider> floraxation: ... go read my suggestion again
<zenspider> why?
blackbom1 has joined #ruby
psychicist__ has joined #ruby
<zenspider> dminuoso: ^^
<floraxation> readline-dev isn't available for me
<dminuoso> zenspider: Because the parameters belong together. Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2 << these describe a plane.
<floraxation> Using yaourt to get it
<zenspider> meh. that's just gonna make a lot of extra stuff that's just getting packed and unpacked over and over
claudiuinberlin has quit [Ping timeout: 240 seconds]
william3 has quit [Remote host closed the connection]
<dminuoso> zenspider: Fair enough. It was only meant as a suggestion anyway. :)
ace_33_ has joined #ruby
jaruga___ has joined #ruby
<zenspider> I've got some stuff over on the ruby side to represent objects in the simulation and to track x/y/a/dx/dy and the like... but once it hits c there's no point
ace_33 has quit [Disconnected by services]
ace_33 has joined #ruby
william3 has joined #ruby
xall has quit [Ping timeout: 246 seconds]
<dminuoso> zenspider: Im curious, what exactly are you working on?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<zenspider> graphics and simulation library for ruby that uses real maths (ie, not game coordinates and the like)
Sammichmaker has quit [Ping timeout: 240 seconds]
* dminuoso already smells quaternions left and right
<zenspider> nope... made for the people. not game nerds
<dminuoso> Heh.
<floraxation> I installed readline-dev with yaourt since I couldn't pull it from my repo and the script works, thanks zenspider
<dminuoso> zenspider: Never done any game work. We worked on a VR engine for crash analysis of helicopters and airplanes, so I know some things.
<zenspider> floraxation: cool
<dminuoso> Was pretty fancy. Feed visual model, weather data and flight data, put on a VR helmet - and then "enjoy the show" ..
iMadper|Full has quit [Remote host closed the connection]
<zenspider> yup. they're definitely necessary when you get into 3d physics maths... but so far I've not needed to hit that
floraxation has quit [Quit: Page closed]
<dminuoso> Most tracking systems report orientations as quaternions because they are a lot more flexible than the alternatives like euler angles. :)
<dminuoso> The decent ones we used at least.
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
<zenspider> yup. the maths work out better on them. avoids problems. just much more complex than I want to handle atm
<zenspider> shit. I should sleep
ace_33_ has quit [Remote host closed the connection]
ace_33 has quit [Remote host closed the connection]
william3 has quit [Remote host closed the connection]
ace_33 has joined #ruby
konsolebox has joined #ruby
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
wugy has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
claudiuinberlin has joined #ruby
nelsonsar has quit [Ping timeout: 260 seconds]
<dminuoso> zenspider: You got me curious about another thing. What approach are you taking for automated tests?
<dminuoso> In our application we had pre-rendered image of expected results, and then required the testcase rendered images to match within 99% of the pixels (floating point is great)
workmad3 has quit [Ping timeout: 260 seconds]
manjaro-kde5-- has joined #ruby
patientj has joined #ruby
workmad3 has joined #ruby
aspiers has joined #ruby
pandaant has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 246 seconds]
nelsonsar has joined #ruby
haxrbyte has joined #ruby
patientj has left #ruby [#ruby]
blackbom1 has quit [Read error: Connection reset by peer]
blackbom1 has joined #ruby
senayar has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
lee-jon has quit [Quit: lee-jon]
iMadper has joined #ruby
xall has joined #ruby
llaine has joined #ruby
stamina has quit [Quit: WeeChat 1.6]
TvL2386 has joined #ruby
ace_33 has quit [Remote host closed the connection]
xall has quit [Ping timeout: 246 seconds]
igniting has quit [Ping timeout: 245 seconds]
psychicist__ has quit [Ping timeout: 246 seconds]
shinnya has joined #ruby
dionysus69 has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
tvw has quit [Ping timeout: 268 seconds]
yardenbar has quit [Ping timeout: 246 seconds]
ace_33 has joined #ruby
haxrbyte_ has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
nankyokusei has joined #ruby
ace_33 has quit [Remote host closed the connection]
psychicist__ has joined #ruby
johnmilton has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
blackbom1 has quit [Read error: Connection reset by peer]
<Bish> can anyone tell me how i would read a gzipped stream?
<Bish> i found the class that reads gzipped files, but what if i get it from let's say stdin
<Bish> and i want to unpack it, while it can read data
blackbom1 has joined #ruby
<catphish_> you can initialize it with any IO
pawnbox has joined #ruby
<Bish> well, i am reading from net-ssh which is not IO-like :(
<catphish_> well how does it behave?
<dminuoso> Bish: StringIO
<Bish> and even if it was ARGF, wouldn't it reach the end of the stream and bug out?
<catphish_> "At least, io must have a read method that behaves same as the read method in IO class."
<Bish> dminuoso: that would be possible, if the stream was finished yet
<dminuoso> Bish: Mmmm
<catphish_> you just need to pass it something that responds to read
fenre has quit []
<catphish_> will will have specific return values when there's no more data to read
<Bish> net-ssh has something like event.on_read { |data| p data.class == String }
yardenbar has joined #ruby
<catphish_> seems like you need a fifo
<Bish> How would i do that, stringio?
<matthewd> IO.pipe
<catphish_> IO.pipe is a much better choice
jaguarmagenta has quit [Remote host closed the connection]
<catphish_> that will give you two IOs, you can write data to one and read it from the other
<Bish> great, thank you i just saw that, didn't think about that one
<Bish> man ruby really does it all
<Bish> except for being fast
fenre has joined #ruby
william3 has joined #ruby
<catphish_> its fairly fast
<Bish> (and concurrent :3)
<catphish_> well yes concurrency sucks :)
<catphish_> (in ruby)
<catphish_> unless you fork, then its fine
haxrbyte has quit [Read error: Connection reset by peer]
careta has joined #ruby
haxrbyte has joined #ruby
ziarkaen has joined #ruby
yardenbar has quit [Ping timeout: 245 seconds]
workmad3 has quit [Quit: Reconnecting]
workmad3 has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.6]
tvw has joined #ruby
kareelee has joined #ruby
<Bish> catphish_: yea well guess, if the project gets big enough you will always do something container-ish
<Bish> so it doesn't matter much and the programmer happiness benefits much more than any speed you can ahve
biberu has joined #ruby
<Bish> (for example: i just added the gzip pipe, and it just works, which language can do that)
firstdayonthejob has joined #ruby
dcluna has joined #ruby
<catphish_> in defence of other languages, it's as simple in C as pipe()
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
<catphish_> but ruby is cool for making things work automagically!
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
User458764 has joined #ruby
Fuzai has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
xall has joined #ruby
<Bish> well but create a ssh tunnel forward a port, start mysqldump on the rmeot side gzip it & unpack it client side
<Bish> in c :D
<Bish> you have 10 minutes
careta has quit [Ping timeout: 260 seconds]
<Bish> nevser used c pipe() though, i think once
<herwin> why would you gzip it, ssh can do compression
<Bish> 1. i don't know if net-ssh does 2. it is faster ( download speed )
<Bish> well, net-ssh does
pawnbox_ has joined #ruby
<Bish> so maybe i could skip it, yes
nelsonsar has quit [Remote host closed the connection]
yardenbar has joined #ruby
platzhirsch has joined #ruby
SesMan has joined #ruby
nelsonsar has joined #ruby
tyang has joined #ruby
pawnbox has quit [Ping timeout: 245 seconds]
icey has joined #ruby
icey has joined #ruby
icey has quit [Changing host]
haxrbyte_ has joined #ruby
<Bish> ould not settle on compression_client algorithm (Net::SSH::Exception)
<Bish> :(
<Bish> ah, fixed it
<Bish> let's see
haxrbyte has quit [Ping timeout: 250 seconds]
ziarkaen has quit [Remote host closed the connection]
haxrbyte has joined #ruby
nelsonsar has quit [Ping timeout: 250 seconds]
ziarkaen has joined #ruby
xberg has quit [Remote host closed the connection]
nowhere_man has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
haxrbyte_ has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
SesMan has quit [Ping timeout: 258 seconds]
pawnbox_ has quit [Ping timeout: 258 seconds]
psychicist__ has quit [Ping timeout: 246 seconds]
webguynow has quit [Ping timeout: 265 seconds]
aryaching has quit [Ping timeout: 246 seconds]
webguynow has joined #ruby
SesMan has joined #ruby
tomphp_ has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
tomphp has quit [Ping timeout: 256 seconds]
nelsonsar has joined #ruby
GodFather has quit [Ping timeout: 244 seconds]
elaptics has joined #ruby
psychicist__ has joined #ruby
qwertyco has quit [Quit: Leaving]
b_penguin has joined #ruby
TvL2386 has quit [Read error: Connection reset by peer]
Satyajit has joined #ruby
Ebok has joined #ruby
kareelee has quit [Read error: Connection reset by peer]
kareelee has joined #ruby
tvw has quit [Ping timeout: 265 seconds]
jhack has joined #ruby
tvw has joined #ruby
joast has joined #ruby
lee-jon has joined #ruby
GodFather has joined #ruby
jaruga___ has quit [Remote host closed the connection]
jaruga___ has joined #ruby
hahuang65 has joined #ruby
<Bish> well and how can i have a pipe that can be read while not being closed :o
aryaching has joined #ruby
<Bish> >> r,w = IO.pipe;w.write "l";w.close;r.read;
troulouliou_div2 has joined #ruby
<Bish> >> r,w = IO.pipe;w.write "l";w.close;r.read;
<ruby[bot]> Bish: # => (https://eval.in/689267)
<Bish> >> r,w = IO.pipe;w.write "l";w.close;r.read
<ruby[bot]> Bish: # => (https://eval.in/689268)
<Bish> hm
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
bodgix has quit [Quit: Leaving.]
hahuang65 has quit [Ping timeout: 240 seconds]
aries_liuxueyang has joined #ruby
sdothum has joined #ruby
<apeiros> Bish: IO#read reads until the end
<apeiros> and closing means sending "this stream ends now"
<Bish> yeah, but how would i read while it's open?
<apeiros> so: don't use read if you want to get data before closing
<apeiros> or: don't use read without a length argument if ^
rodfersou is now known as rodfersou|lunch
<Bish> well, i tried with length argument, but didn't quite work out
b_penguin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> r,w = IO.pipe;w.write "hi "*100;r.read(11) # => "hi hi hi hi"
<apeiros> works out quite well for me.
<Bish> hm okay, maybe i didn't wait long enough
<apeiros> or your data got buffered and read didn't yet see it…
bodgix has joined #ruby
b_penguin has joined #ruby
Ebok has quit [Quit: This computer has gone to sleep]
Snowy has quit [Remote host closed the connection]
<Bish> guessing the gzipreader breaks it a bit
Snowy has joined #ruby
lenwood has joined #ruby
<Bish> but ssh compression may be sufficient
manjaro-kde5-- has quit [Ping timeout: 249 seconds]
cdg has joined #ruby
b_penguin has quit [Remote host closed the connection]
b_penguin has joined #ruby
eggshke_ has quit []
lee-jon has quit [Quit: lee-jon]
Salih has joined #ruby
b_penguin has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 258 seconds]
b_penguin has joined #ruby
Snowy has quit [Ping timeout: 260 seconds]
domgetter has joined #ruby
jaruga___ has quit [Quit: jaruga___]
jaruga___ has joined #ruby
b_penguin has quit [Remote host closed the connection]
b_penguin has joined #ruby
ramortegui has joined #ruby
xall has quit [Ping timeout: 245 seconds]
jaguarmagenta has joined #ruby
mja has joined #ruby
igniting has joined #ruby
<mja> Hi, guys! Does anybody knows how to deep copy an array with hashes? The hashes could have also arrays or hashes.
fenre has quit [Remote host closed the connection]
xberg has joined #ruby
<rob_> mja: deep_merge, have a look at hashie
<Bish> JSON.parse {}.to_json
<Bish> obvious troll answer :p
Macaveli has joined #ruby
<mja> rob_: thanks, mate
<mja> it seems that it does what I need
Silox| has joined #ruby
haxrbyte has quit [Remote host closed the connection]
Madplatypus has quit [Quit: Connection closed for inactivity]
haxrbyte has joined #ruby
jschoolcraft has quit [Quit: peace]
kworker has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dionysus69 has quit [Quit: dionysus69]
bmurt has joined #ruby
Ropeney has joined #ruby
psychicist__ has quit [Ping timeout: 260 seconds]
axl_ has joined #ruby
blackwind_123 has quit [Ping timeout: 246 seconds]
b_pengui_ has joined #ruby
Ewelina_ has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
kareelee has quit []
b_penguin has quit [Ping timeout: 248 seconds]
beawesomeinstead has quit [Ping timeout: 265 seconds]
jmignault has quit [Ping timeout: 260 seconds]
blackwind_123 has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
poikon has quit [Ping timeout: 260 seconds]
beawesomeinstead has joined #ruby
rfoust has joined #ruby
poikon has joined #ruby
DLSteve has joined #ruby
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
User458764 has joined #ruby
mja has quit [Quit: Lost terminal]
centrx has joined #ruby
Ropeney has joined #ruby
Guest7627 is now known as sts
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
kn330 has quit [Ping timeout: 244 seconds]
Guest1011 has quit [Ping timeout: 248 seconds]
adavia has joined #ruby
nelsonsar has quit [Ping timeout: 258 seconds]
Snowy has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
troulouliou_div2 has quit [Remote host closed the connection]
nelsonsar has joined #ruby
rippa has joined #ruby
Guest86877 has joined #ruby
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
aegis3121 has joined #ruby
centrx has quit []
saneax is now known as saneax-_-|AFK
yardenbar has quit [Ping timeout: 250 seconds]
nelsonsar has quit [Ping timeout: 260 seconds]
Immune_ has quit [Ping timeout: 245 seconds]
hahuang65 has joined #ruby
nankyokusei has joined #ruby
<apeiros> adavia: I have absolutely no idea by what logic that transformation happens
<adavia> Theres no way to do that so
jhack has quit [Quit: jhack]
User458764 has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 258 seconds]
antoniobeyah has quit [Quit: antoniobeyah]
boombox_ has joined #ruby
polishdub has joined #ruby
<catphish_> i can't figure out any logic to combine those :)
<catphish_> unless the hash only ever contains one question, in which case it's quite easy
sandroqz has joined #ruby
workmad3 has joined #ruby
jahrichie has joined #ruby
terens has joined #ruby
llaine has quit [Ping timeout: 250 seconds]
yardenbar has joined #ruby
<adavia> catphish_: it only contains one question
jgnagy has joined #ruby
ResidentBiscuit has joined #ruby
jaruga____ has joined #ruby
sandroqz has quit [Client Quit]
c355e3b has joined #ruby
sandroqz has joined #ruby
tvw has quit [Read error: Connection reset by peer]
kworker has quit [Ping timeout: 250 seconds]
tvw has joined #ruby
synthroid has joined #ruby
xall has joined #ruby
jmignault has joined #ruby
zukin has joined #ruby
boombox_ has quit [Remote host closed the connection]
kworker has joined #ruby
jaruga___ has quit [Ping timeout: 250 seconds]
jgnagy has quit [Ping timeout: 260 seconds]
sandroqz has quit [Client Quit]
xall has quit [Ping timeout: 268 seconds]
<apeiros> adavia: that means you should explain the logic behind your example
skweek has quit [Remote host closed the connection]
<apeiros> adavia: so your hash always only ever contains a single subhash with a "question_id" key, and all others are answers?
sandroqz has joined #ruby
jhack has joined #ruby
<adavia> apeiros: that hash can only contain a question_id and an array of answers
<herwin> in other words: we should completely ignore the keys of the original hash? (the "0", "06" etc, not the "question_id")
<apeiros> adavia: ok. what have you tried so far then?
<adavia> thats right
<herwin> in that case I would start by complaining to the person who provided me this data structure
skweek has joined #ruby
* dminuoso thinks too many people treat Ruby as SQL.
<domgetter> dminuoso I don't think that behavior is restricted to Ruby users
terens has quit [Ping timeout: 248 seconds]
kworker has quit [Ping timeout: 260 seconds]
Ewelina_ has quit [Remote host closed the connection]
Ewelina_ has joined #ruby
antoniobeyah has joined #ruby
symm- has joined #ruby
kworker has joined #ruby
Ewelina_ has quit [Ping timeout: 256 seconds]
iMadper is now known as Madper|AFK
Jonah11_ has joined #ruby
skweek has quit [Ping timeout: 245 seconds]
krandi has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 260 seconds]
kworker has quit [Client Quit]
Ewelina_ has joined #ruby
patarr has joined #ruby
zcreative_ has joined #ruby
jaruga____ has quit [Remote host closed the connection]
jaruga____ has joined #ruby
william3 has quit [Remote host closed the connection]
nelsonsar has joined #ruby
ta_ has quit [Remote host closed the connection]
fnux has quit [Quit: Grumpf.]
millerti has joined #ruby
william3 has joined #ruby
xberg_ has joined #ruby
sandroqz has quit [Quit: Leaving]
fnux has joined #ruby
xberg has quit [Ping timeout: 256 seconds]
Salih has quit [Quit: Leaving]
ziarkaen has quit [Ping timeout: 248 seconds]
platzhirsch has quit [Quit: WeeChat 1.4]
hotpancakes has joined #ruby
Madper|AFK has quit [Quit: ERC (IRC client for Emacs 25.1.50.1)]
jahrichie has quit [Quit: Leaving.]
maddmaxx has joined #ruby
ziarkaen has joined #ruby
beawesomeinstead has quit [Ping timeout: 260 seconds]
baweaver is now known as baweaver_away
shashin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jahrichie has joined #ruby
beawesomeinstead has joined #ruby
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
xberg_ has quit [Remote host closed the connection]
hahuang65 has joined #ruby
mtkd has quit []
xberg has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aganov has quit [Remote host closed the connection]
brendan- has joined #ruby
vondruch has quit [Ping timeout: 244 seconds]
<b_pengui_> adavia: I put a quick stab at what you might have been looking for. It's dependent on that structure only ever having one key value pair in the question and answer id field
firstdayonthejob has quit [Ping timeout: 265 seconds]
nelsonsar has quit [Ping timeout: 260 seconds]
hahuang65 has quit [Ping timeout: 245 seconds]
<adavia> b_pengui_: Yes. Like i said before the hash only might contain a question and an array of answers
rodfersou|lunch is now known as rodfersou
ta_ has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
Ewelina_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Devalo has joined #ruby
dviola has joined #ruby
Ewelina_ has joined #ruby
<b_pengui_> what are the other options?
<b_pengui_> Just an empty hash? Or will it have a key pointing to an empty hash?
jaruga____ has quit [Quit: jaruga____]
<adavia> b_pengui_: key pointing to an empty hash
<catphish_> hacky one-line solution: ik=nil;q=nil;a=[]; h.each {|kk,hh| hh.each { |k,v| k=='question_id' ? (q=v;ik=kk) : a+=v } }; {ik=>{"question_id" => q, "answer_ids" => a}}
<toretore> adavia: you have to explain the context better
<catphish_> feed in the input as "h" and the
Derperperd has joined #ruby
<catphish_> answer will come out
Ewelina_ has quit [Ping timeout: 260 seconds]
xberg has quit [Remote host closed the connection]
<b_pengui_> if it's a key pointing to an empty hash I think it should still work out fine (i commented on your gist) you should only have to check that the values aren't empty
marr has joined #ruby
Ewelina_ has joined #ruby
<adavia> b_pengui_: i'll give it a shot. Just a sec
conta has quit [Ping timeout: 258 seconds]
nunchuck has quit [Read error: Connection reset by peer]
ta_ has quit [Remote host closed the connection]
nelsonsar has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<catphish_> its probably far inferior to brimatteng's though
<adavia> catphish_: thanks! ill try it out
firstdayonthejob has joined #ruby
xberg has joined #ruby
tvw has quit [Ping timeout: 260 seconds]
zukin has quit [Quit: leaving]
xberg_ has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
nowhere_man has quit [Ping timeout: 240 seconds]
skweek has joined #ruby
vasilakisfil has quit [Remote host closed the connection]
xberg has quit [Ping timeout: 240 seconds]
xberg__ has joined #ruby
Ewelina_ has quit [Remote host closed the connection]
<adavia> b_pengui_: that worked fine! thanks
Ewelina_ has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tax has joined #ruby
last_staff has quit [Quit: last_staff]
xberg_ has quit [Ping timeout: 240 seconds]
<KrzaQ> I have an array of arrays of size n of integers, say arr = [[1,2,3], [4,5,6]]. I'd like to sum them by columns (that is, magic_sum(arr) == [5,7,9]). How can I do this/ what should I google for?
mic_e has quit [Ping timeout: 265 seconds]
Ewelina_ has quit [Ping timeout: 244 seconds]
mic_e has joined #ruby
xberg__ has quit [Remote host closed the connection]
BUTTMUFFLER is now known as ||||||
<domgetter> >> [[1,2,3], [4,5,6]].reduce(&:zip).map {|a| a.reduce(:+)}
<ruby[bot]> domgetter: # => [5, 7, 9] (https://eval.in/689332)
<KrzaQ> thanks
benlieb has joined #ruby
|||||| is now known as ButtMuffler
<KrzaQ> oh
<domgetter> KrzaQ that doesn't work for more than two arrays
<KrzaQ> yeah
<KrzaQ> hmm
<KrzaQ> but that's a good start
User458764 has joined #ruby
<KrzaQ> I can flatten before summing them
Ewelina_ has joined #ruby
<KrzaQ> arr.reduce(&:zip).map{|a| a.flatten.inject(:+) }
<KrzaQ> thanks a lot!
lee-jon has joined #ruby
brent__ has joined #ruby
<domgetter> >> a = [[1,2,3], [4,5,6],[7,8,9]]; a.first.zip(*a[1..-1]).map {|l| l.reduce(:+)}
<ruby[bot]> domgetter: # => [12, 15, 18] (https://eval.in/689342)
kworker has joined #ruby
<domgetter> There we go, zip takes the other arrays as arguments
<KrzaQ> okay, but this one is like magic to me
<toretore> KrzaQ: 1) determine size `sub_size` of sub arrays; 2) create array `ary_res` of results of size `sub_size`; 3) for each `sub_ary`: for index in 0 to `sub_size-1`: `ary_res[index] += sub_ary[index]`
<domgetter> KrzaQ zip takes to lists and makes pairs
<domgetter> >> [1,2,3,4,5,6].zip([1,2,3,4,5,6])
<ruby[bot]> domgetter: # => [[1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]] (https://eval.in/689343)
SCHAAP137 has quit [Quit: Leaving]
the_drow has quit [Quit: This computer has gone to sleep]
<domgetter> if you give multiple lists, it will keep taking one from each list
bturker has quit [Ping timeout: 256 seconds]
<domgetter> >> [1,2,3,4,5,6].zip([1,2,3,4,5,6], ["a", "b", "c", "d", "e", "f"])
<ruby[bot]> domgetter: # => [[1, 1, "a"], [2, 2, "b"], [3, 3, "c"], [4, 4, "d"], [5, 5, "e"], [6, 6, "f"]] (https://eval.in/689347)
<KrzaQ> oh, that's what * does
<KrzaQ> it explodes the list into multiple arguments?
<domgetter> Yes
<KrzaQ> okay, I get it now
<domgetter> then the map reduce part just converts each new list to the sum of its elements
<KrzaQ> I actually googled for this today, but I wasnt able to ask the right question, apparently
william3 has quit [Remote host closed the connection]
<domgetter> KrzaQ the * is called "splat"
<domgetter> to make for easier googling
<KrzaQ> :)
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gregf_> >> [[1,2,3], [4,5,6],[7,8,9]].reduce { |a1,a2| a1.zip(a2).map { |a| a.reduce(:+) } }
yardenbar has joined #ruby
<ruby[bot]> gregf_: # => [12, 15, 18] (https://eval.in/689349)
hotpancakes has quit [Remote host closed the connection]
<domgetter> ah, zip with the running totals. I like it
<KrzaQ> mhm
william3 has joined #ruby
Jonah11_ has quit [Remote host closed the connection]
Hyuk has joined #ruby
<KrzaQ> well
<KrzaQ> >> [[1,2,3], [4,5,6],[7,8,9]].transpose.map{|a| a.inject(:+) }
<ruby[bot]> KrzaQ: # => [12, 15, 18] (https://eval.in/689351)
william3 has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
kent\n has quit [Ping timeout: 260 seconds]
b_pengui_ has quit [Remote host closed the connection]
b_penguin has joined #ruby
jahrichie1 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jahrichie has quit [Read error: Connection reset by peer]
kent\n has joined #ruby
Macaveli has joined #ruby
ramblinpeck has left #ruby [#ruby]
lee-jon has quit [Quit: lee-jon]
preyalone has joined #ruby
hotpancakes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
sami has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 248 seconds]
harsh has joined #ruby
Derperperd has quit [Quit: Derperperd]
harsh has quit [Client Quit]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alan_w has quit [Ping timeout: 240 seconds]
jaguarmagenta has quit [Remote host closed the connection]
Irex has joined #ruby
b_penguin has quit [Quit: Textual IRC Client: www.textualapp.com]
jaguarmagenta has joined #ruby
amclain has joined #ruby
Derperperd has joined #ruby
Derperperd has quit [Client Quit]
baweaver_away is now known as baweaver
jaguarmagenta has quit [Remote host closed the connection]
nankyokusei has joined #ruby
davidt has joined #ruby
[Butch] has joined #ruby
saslam has joined #ruby
Derperperd has joined #ruby
rodferso1 has joined #ruby
jahrichie1 has quit [Quit: Leaving.]
nankyokusei has quit [Ping timeout: 265 seconds]
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
Xentil has joined #ruby
rodfersou has quit [Ping timeout: 240 seconds]
sarbs has quit [Disconnected by services]
sarbs_ has joined #ruby
aries_liuxueyang has joined #ruby
alan_w has joined #ruby
lee-jon has joined #ruby
banisterfiend has joined #ruby
psychicist__ has joined #ruby
troulouliou_div2 has joined #ruby
xberg has joined #ruby
jgnagy has joined #ruby
Couch has quit [Ping timeout: 252 seconds]
Jonah11_ has joined #ruby
xall has joined #ruby
ramfjord_ has joined #ruby
ramfjord has joined #ruby
benlieb has quit [Quit: benlieb]
jgnagy has quit [Ping timeout: 256 seconds]
claudiuinberlin has quit []
kn330 has joined #ruby
xall has quit [Ping timeout: 265 seconds]
lenwood has quit [Ping timeout: 244 seconds]
govg has quit [Ping timeout: 260 seconds]
lee-jon has quit [Quit: lee-jon]
majuscul1 is now known as majuscule
troulouliou_div2 has quit [Read error: Connection reset by peer]
Irex has quit [Ping timeout: 260 seconds]
Devalo has quit [Ping timeout: 246 seconds]
skweek has quit [Ping timeout: 260 seconds]
skweek has joined #ruby
jmignault has quit [Ping timeout: 265 seconds]
benlieb has joined #ruby
yardenbar has joined #ruby
Ewelina_ has quit [Ping timeout: 248 seconds]
jahrichie has joined #ruby
SCHAAP137 has joined #ruby
jshjsh has joined #ruby
conta has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
govg has joined #ruby
flying has quit []
lee-jon has joined #ruby
JoshS has quit [Ping timeout: 260 seconds]
xberg has quit [Remote host closed the connection]
bturker has joined #ruby
gnufied has quit [Quit: Leaving]
catphish_ has quit [Quit: Leaving]
TomyWork has quit [Ping timeout: 256 seconds]
bodgix has quit [Quit: Leaving.]
gnufied has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
symm- has joined #ruby
cibs has joined #ruby
senayar has quit []
bodgix has joined #ruby
Devalo has joined #ruby
lenwood has joined #ruby
Jonah11_ has quit [Remote host closed the connection]
Jonah11_ has joined #ruby
jaguarmagenta has joined #ruby
holyleg500625 has joined #ruby
jaruga___ has joined #ruby
jaruga___ is now known as jaruga____
armin has quit [Remote host closed the connection]
<holyleg500625> puts "hello world!"
armin has joined #ruby
nelsonsar has quit [Remote host closed the connection]
holyleg500625 has left #ruby [#ruby]
* baweaver is tempted not to answer because puts returns nil
nelsonsar has joined #ruby
<baweaver> oops, too late
terens has joined #ruby
bodgix has quit [Quit: Leaving.]
frozengeek____ has quit [Quit: frozengeek____]
lenwood has quit [Ping timeout: 246 seconds]
ruby-lang415 has joined #ruby
terens has quit [Ping timeout: 268 seconds]
Guest86877 has quit [Ping timeout: 256 seconds]
Humdai has quit [Quit: Leaving]
pilne has joined #ruby
the_drow has joined #ruby
nelsonsa_ has joined #ruby
marcdel has joined #ruby
claudiuinberlin has joined #ruby
tomphp_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
nelsonsar has quit [Ping timeout: 265 seconds]
tinti has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
tinti is now known as Guest23673
marcdel has quit [Client Quit]
libastral has quit [Ping timeout: 256 seconds]
ruby-lang415 has quit [Ping timeout: 260 seconds]
millerti has joined #ruby
aarwine has quit [Ping timeout: 260 seconds]
symm- has quit [Ping timeout: 245 seconds]
libastral has joined #ruby
rodferso1 is now known as rodfersou|coffee
salut has quit [Quit: salut]
mikecmpbll has joined #ruby
xall_ has joined #ruby
symm- has joined #ruby
User458764 has joined #ruby
TomyLobo has joined #ruby
pragmaticus has quit [Ping timeout: 250 seconds]
sami has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
ruby-lang889 has joined #ruby
nunchuck has joined #ruby
xall_ has quit [Ping timeout: 258 seconds]
ramfjord_ has quit [Ping timeout: 265 seconds]
ramfjord has quit [Ping timeout: 265 seconds]
bodgix has joined #ruby
<antoniobeyah> KrzaQ: neat trick, something I'll have to remember
railssmith has quit [Ping timeout: 250 seconds]
Ishido has joined #ruby
dasher00 has quit [Ping timeout: 250 seconds]
Jonah11_ has quit [Remote host closed the connection]
splud has joined #ruby
ziarkaen has quit [Ping timeout: 244 seconds]
roychri has joined #ruby
<raldu> hey, I am not grizzled!
saneax-_-|AFK is now known as saneax
Guest23673 has quit [Remote host closed the connection]
rodfersou|coffee is now known as rodfersou
lee-jon has quit [Quit: lee-jon]
dasher00 has joined #ruby
kn330 has quit [Read error: Connection reset by peer]
<havenwood> KrzaQ: In Ruby 2.4 It'll just be: arr.transpose.map(&:sum)
<havenwood> reads nicely
<havenwood> err
<b0nn> morning, I have a 'test' to pass. And I'm looking for a bit of help interpreting some of the requirements. The instructions state "no external libraries are allowed." but I cannot work out if the means, no rails/sinatra, or .. no requires in my code that refer to libs not part of the default ruby install
yardenbar has quit [Ping timeout: 250 seconds]
<havenwood> b0nn: No gems maybe?
<toretore> b0nn: what is the test?
<toretore> if it includes network io then you are surely allowed to use the stdlib
<havenwood> b0nn: No external libraries sounds like no gems unless they ship with Ruby.
<antoniobeyah> b0nn: i would interpret that as no gems
<havenwood> b0nn: The stdlib is internal at least. :-)
xberg has joined #ruby
whathappens has joined #ruby
<b0nn> ok, that's my gut feel too (no gems)
<havenwood> b0nn: What are they having you make?
kn330 has joined #ruby
<b0nn> best not say, in case I need to ask for help later :)
symm-_ has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
jhack has quit [Ping timeout: 256 seconds]
Jonah11_ has joined #ruby
xberg has quit [Remote host closed the connection]
SCHAAP137 has quit [Read error: Connection reset by peer]
kn330 has quit [Ping timeout: 244 seconds]
marxarelli has joined #ruby
SCHAAP137 has joined #ruby
Snowy has quit [Remote host closed the connection]
lee-jon has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 256 seconds]
kn330 has joined #ruby
jhack has joined #ruby
lee-jon has quit [Ping timeout: 260 seconds]
Immune has joined #ruby
railssmith has joined #ruby
tyang_ has joined #ruby
tyang_ has quit [Client Quit]
tyang_ has joined #ruby
ramfjord has joined #ruby
tyang_ has quit [Client Quit]
tyang_ has joined #ruby
tyang has quit [Ping timeout: 244 seconds]
minimalism has joined #ruby
ramfjord_ has joined #ruby
jcao219 has joined #ruby
Lord_of_Life has quit [Excess Flood]
kn330 has quit [Ping timeout: 268 seconds]
Xentil has quit [Ping timeout: 265 seconds]
Lord_of_Life has joined #ruby
Rodya_ has joined #ruby
Xentil has joined #ruby
adavia has quit [Ping timeout: 250 seconds]
Xentil has quit [Client Quit]
elaptics has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mic_e has quit [Read error: Connection reset by peer]
SeepingN has joined #ruby
mic_e has joined #ruby
skweek has quit [Ping timeout: 256 seconds]
vasilakisfil has joined #ruby
vasilakisfil_ has quit [Ping timeout: 244 seconds]
symm-_ has quit [Ping timeout: 258 seconds]
zcreative_ has quit [Quit: (null)]
nankyokusei has joined #ruby
skweek has joined #ruby
yardenbar has joined #ruby
tpendragon has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
smlocal has joined #ruby
nofxx has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
howdoi has quit [Quit: Connection closed for inactivity]
Madplatypus has joined #ruby
bocaneri has quit [Read error: Connection reset by peer]
donkey_h0tei has joined #ruby
jgnagy has joined #ruby
<donkey_h0tei> Does anyone here know if it's possible to use constants (like numbers 1, 2, or 3) as keys in hash as accepted strong parameters?
webguynow has quit [Ping timeout: 256 seconds]
giraffe has quit [Quit: ZNC - http://znc.in]
yardenbar has quit [Ping timeout: 260 seconds]
<eam> donkey_h0tei: what do you mean "accepted strong parameters"?
<eam> it is possible to use them as keys, yes
sepp2k has quit [Quit: Leaving.]
jgnagy has quit [Ping timeout: 265 seconds]
raul782 has joined #ruby
elementaru has quit [Quit: EliteBNC free bnc service - http://elitebnc.org - be a part of the Elite!]
Rodya_ has quit [Remote host closed the connection]
jcao219 has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
tomphp has joined #ruby
frozengeek____ has joined #ruby
Rodya__ has joined #ruby
blackbom1 has quit [Ping timeout: 248 seconds]
giraffe has joined #ruby
kriskropd has quit [Quit: WeeChat 0.4.2]
Rodya_ has quit [Ping timeout: 258 seconds]
tpendragon has joined #ruby
cschneid_ has joined #ruby
wugy has quit [Read error: Connection reset by peer]
blackbom1 has joined #ruby
jgnagy has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
axl_ has quit [Quit: axl_]
sdhf073f has joined #ruby
<cschneid_> Is there a way to ask bundler: "What are all the gems you know of in this gemfile, and which groups are they in"
fmcgeough has quit [Quit: fmcgeough]
solocshaw has joined #ruby
Silox| has quit [Quit: Connection closed for inactivity]
cdg has quit [Remote host closed the connection]
rwb has joined #ruby
ruby-lang889 has quit [Ping timeout: 260 seconds]
conta has quit [Ping timeout: 256 seconds]
solocshaw has quit [Ping timeout: 245 seconds]
Fernando-Basso has quit [Ping timeout: 268 seconds]
smlocal has quit []
frozengeek____ has quit [Remote host closed the connection]
Fernando-Basso has joined #ruby
Jonah11_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
solocshaw has joined #ruby
Jonah11_ has joined #ruby
saneax is now known as saneax-_-|AFK
eatingthenight has joined #ruby
skweek has quit [Ping timeout: 268 seconds]
<eatingthenight> hello, what can i search for to find out the difference between a string made like "this" and like /this/ in ruby.
ur5us has joined #ruby
<eatingthenight> searching string forward slash any combination returns be a bunch of stuff around escaping it
ur5us has quit [Remote host closed the connection]
kn330 has joined #ruby
ur5us has joined #ruby
<djellemah> >> /this/.class #eatingthenight
<ruby[bot]> djellemah: # => Regexp (https://eval.in/689418)
jaguarmagenta has quit [Remote host closed the connection]
blackwind_123 has quit [Ping timeout: 265 seconds]
<eatingthenight> djelleman, thank you!
armin has quit [Remote host closed the connection]
SteenJobs has joined #ruby
blackwind_123 has joined #ruby
jaguarmagenta has joined #ruby
armin has joined #ruby
symm- has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
solocshaw has quit [Ping timeout: 258 seconds]
rodfersou has quit [Ping timeout: 260 seconds]
nelsonsa_ has quit [Remote host closed the connection]
rodfersou has joined #ruby
dnicole has quit [Remote host closed the connection]
nelsonsar has joined #ruby
izaac has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
harai_ has joined #ruby
lenwood has joined #ruby
skweek has joined #ruby
snguyen has joined #ruby
nelsonsa_ has joined #ruby
Fuzai has quit [Quit: Fuzai]
nelsonsa_ has quit [Remote host closed the connection]
nelsonsa_ has joined #ruby
lxsameer has joined #ruby
nelsonsar has quit [Ping timeout: 246 seconds]
jaguarmagenta has quit [Remote host closed the connection]
b_penguin has joined #ruby
johnmilton has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sparch has quit [Quit: peão quit]
snguyen has quit [Quit: Textual IRC Client: www.textualapp.com]
nelsonsa_ has quit [Ping timeout: 244 seconds]
GodFather has quit [Ping timeout: 244 seconds]
lenwood has quit [Ping timeout: 260 seconds]
snguyen has joined #ruby
Jonah11_ has quit [Remote host closed the connection]
<chris2> did irb use to write out history immediately?
<chris2> i had to abort irb due to infinite loops a few times, and it lost the commands
kobain has joined #ruby
Jonah11_ has joined #ruby
bturker has joined #ruby
Emmanuel_Chanel has joined #ruby
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
nelsonsar has joined #ruby
marsjaninzmarsa has quit [Ping timeout: 258 seconds]
marsjaninzmarsa has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
rodfersou has quit [Ping timeout: 248 seconds]
ButtMuffler has quit [Quit: Connection closed for inactivity]
<al2o3-cr> wasn't there a way to unfreeze a string temporarily?
bturker has quit [Ping timeout: 256 seconds]
ldnunes has quit [Quit: Leaving]
johnmilton has joined #ruby
conta has joined #ruby
ziarkaen has joined #ruby
futilegames has joined #ruby
Jardayn has joined #ruby
tomphp has joined #ruby
adavia has joined #ruby
jgnagy has quit [Remote host closed the connection]
mic_e has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
mic_e has joined #ruby
ziarkaen has quit [Ping timeout: 244 seconds]
troulouliou_div2 has joined #ruby
riotjones has quit [Ping timeout: 244 seconds]
kn330 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davidt has quit [Ping timeout: 240 seconds]
davidt has joined #ruby
johnmccabe has joined #ruby
johnmccabe has quit [Client Quit]
johnmilton has quit [Remote host closed the connection]
armin has quit [Remote host closed the connection]
enterprisey has joined #ruby
centrx has joined #ruby
conta has quit [Ping timeout: 256 seconds]
armin has joined #ruby
dn` has quit [Ping timeout: 248 seconds]
dn` has joined #ruby
ta_ has joined #ruby
Immune_ has joined #ruby
Immune has quit [Read error: Connection reset by peer]
troulouliou_div2 has quit [Remote host closed the connection]
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xentil has joined #ruby
<Zarthus> al2o3-cr: That would kind of defeat the point, surely?
tomphp has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
<al2o3-cr> it was String#+@ but it just duplicates the string
<chris2> (til)
armin has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
Fernando-Basso has quit [Quit: Leaving]
jahrichie has quit [Read error: Connection reset by peer]
armin has joined #ruby
tdy has quit [Ping timeout: 260 seconds]
jahrichie has joined #ruby
bronson has quit []
tomphp has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
UserJosh has joined #ruby
synaps3 has joined #ruby
Jackneill has joined #ruby
futilegames has quit [Quit: futilegames]
SHyx0rmZ has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
yardenbar has joined #ruby
jshjsh has quit [Ping timeout: 260 seconds]
dn` has quit [Ping timeout: 258 seconds]
millerti has joined #ruby
marxarelli is now known as marxarelli|afk
dn` has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
nankyokusei has joined #ruby
tdy has joined #ruby
Snowy has joined #ruby
Jonah11_ has quit [Remote host closed the connection]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shashin has joined #ruby
Derperperd has quit [Quit: Derperperd]
skweek has quit [Ping timeout: 256 seconds]
skweek has joined #ruby
haxrbyte has quit [Remote host closed the connection]
millerti has joined #ruby
haxrbyte has joined #ruby
millerti has quit [Client Quit]
_2easy_ has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
xall_ has joined #ruby
Sammitch has joined #ruby
jahrichie has quit [Quit: Leaving.]
chopin has joined #ruby
<Sammitch> when using `erb` from the command line how do I specify the trim mode? the help text says: `-T trim_mode specify trim_mode (0..2, -)` which is confusing
<Sammitch> I'm using `<% expr -%>`
riotjones has joined #ruby
Jonah11_ has joined #ruby
workmad3 has joined #ruby
xall_ has quit [Ping timeout: 244 seconds]
tax has quit [Disconnected by services]
bovis has joined #ruby
djbkd has joined #ruby
millerti has joined #ruby
<al2o3-cr> Sammitch: man erb, gives you a bit more understanding
bodgix has quit [Quit: Leaving.]
chris2 has quit [Ping timeout: 246 seconds]
last_staff has joined #ruby
gnufied has quit [Quit: Leaving]
gnufied has joined #ruby
blackjid has joined #ruby
blackwind_123 has quit [Ping timeout: 268 seconds]
skweek has quit [Ping timeout: 265 seconds]
ddffg has quit [Quit: Leaving]
claudiuinberlin has quit []
blackwind_123 has joined #ruby
benlieb has quit [Quit: benlieb]
montanonic has joined #ruby
Jonah11_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 246 seconds]
tyang_ has quit [Ping timeout: 260 seconds]
jhack has quit [Ping timeout: 246 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
enterprisey has quit [Quit: Leaving]
preyalone has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
d5sx43 has joined #ruby
d5sx43 has quit [Client Quit]
benlieb has joined #ruby
Jonah11_ has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
b0g has quit [Changing host]
b0g has joined #ruby
vuoto has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
synthroid has quit []
Rodya__ has quit [Remote host closed the connection]
whathappens has quit [Read error: Connection reset by peer]
_2easy_ has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
whathappens has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
Rodya_ has quit [Ping timeout: 258 seconds]
last_staff has quit [Quit: *poof*]
tdy has quit [Ping timeout: 260 seconds]
davidt has quit [Ping timeout: 260 seconds]
haxrbyte has quit [Remote host closed the connection]
davidt has joined #ruby
snguyen has quit [Remote host closed the connection]
haxrbyte has joined #ruby
snguyen has joined #ruby
ruby-lang454 has joined #ruby
<ruby-lang454> sup
Iarfen has joined #ruby
<Iarfen> Hi!
<Iarfen> Is there a way to execute ruby on browsers client-side?
<ruby-lang454> Who uses Hanami for web dev?
the_drow has quit [Quit: This computer has gone to sleep]
<blackbom1> Iarfen: as javascript?
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<centrx> Iarfen: Opal is one way
synaps3 has quit [Remote host closed the connection]
<centrx> Iarfen: Translates Ruby into Javascript
<Iarfen> centrx: There's no way to do it in a raw way?
<centrx> Iarfen: The browser would need some way to run it
<Iarfen> centrx: It would be easy or hard to implement ruby to firefox?
<centrx> Iarfen: That's either in JavaScript or in some kind of special applet that would require a special application the client would need to install
<blackbom1> it depends what you're trying to do. there is some support for ruby & native client: https://developer.chrome.com/native-client
<Iarfen> supposing a DOM standard to access the HTML elements
<ruby-lang454> Is there any auth gems, for Hanami?
<centrx> Iarfen: JavaScript is the standard for that
<centrx> Iarfen: I'm sure it's theoretically doable, but there's not really an advantage to doing that
<Iarfen> centrx: It'll be easier with Ruby there, if it's used also server-sire
<Iarfen> *server-side
<centrx> Iarfen: That's where something that "compiles" Ruby to JavaScript comes in. You can write the code in Ruby, then it doesn't matter how it runs underneath
<Iarfen> centrx: New programmers would enjoy it I think, that's why I'm researching how to implement it
<bougyman> there's alredy something like that.
<Iarfen> centrx: No, I dislike those kinds of software. It's dreamweaver for html
yardenbar has quit [Ping timeout: 246 seconds]
haxrbyte has quit [Remote host closed the connection]
marxarelli|afk is now known as marxarelli
<centrx> It's nothing like Dreamweaver...
haxrbyte has joined #ruby
_ZerGabriel_ has joined #ruby
Guest53077 has joined #ruby
jhack has joined #ruby
Guest53077 has left #ruby [#ruby]
<Iarfen> centrx: It's the same: It creates a lot of boilerplate, after that there are compatibility and legibility issues
b_penguin has quit [Quit: Textual IRC Client: www.textualapp.com]
<blackbom1> that's the standard way to use a language that isn't JS in the browser, and it works across all browsers.
<centrx> Iarfen: that's assuming someone needs to read and edit the JS
<Iarfen> centrx: It usually happens if Opal has any kind of bug
<centrx> Iarfen: Dreamweaver boilerplate is an issue because someone has the goal of moving off of Dreamweaver, or lookinga t the source
<Iarfen> centrx: You're adding dependencies then it's more probable to have a bug
ramfjord1 has joined #ruby
<blackbom1> x_x
<centrx> Iarfen: Compilers to ASM/binary have bugs too
ramfjord2 has joined #ruby
blackbom1 is now known as blackbombay
<Iarfen> centrx: But if you're trusting Opal and JS interpreter you have two softwares and then more probabilities of having a bug
<Iarfen> Rather than if we just have one Ruby interpreter. It's less buggy-like
nemermel has joined #ruby
neanderslob has quit [Read error: Connection reset by peer]
<nemermel> Sup guys!
<centrx> Iarfen: You have to trust the C compiler you use to compile the Ruby interpreter
masta`` has joined #ruby
<centrx> Iarfen: You also have to trust the whole toolchain and libraries on the machine you're compiling with
<centrx> Plus the hardware, Intel has released CPUs with bugs in them before
<blackbombay> hey-o nemermel
ramfjord has quit [Ping timeout: 250 seconds]
bodgix has joined #ruby
<Iarfen> centrx: With Opal and JS you have then more libraries and toolchains, because there are 2 softwares
<blackbombay> Iarfen: good luck getting an implementation of ruby into any browser.
<Iarfen> blackbombay: why?
<blackbombay> because it won't happen. :)
<Iarfen> blackbombay: why?
<centrx> Because JS is Good Enough
ramfjord_ has quit [Ping timeout: 265 seconds]
<nemermel> Does anyone knows some solutions, for Hanami framework, to implement User authentication?
bturker has joined #ruby
<centrx> Iarfen: Other efforts like Active X and Flash have millions or billions of dollars behind them, and they are being phased out
codfection has joined #ruby
ndrst has quit [Ping timeout: 250 seconds]
jaruga____ has quit [Quit: jaruga____]
<blackbombay> the most portable way to have something like ruby in the browser is to transpile to JS, because every browser supports JS and will continue to. a new language is unlikely to be adopted, even MS used the transpile route for typescript.
ruby-lang454 has quit [Ping timeout: 260 seconds]
<centrx> nemermel: Does Hanami use Rack?
<Iarfen> But it is easier equally. Browsers should adapt to the more flexible way allways, that's what "creating a better internet" means in part
<blackbombay> you're in the land of idealistic delusions.
haxrbyte has quit [Remote host closed the connection]
<centrx> "Better Internet" also means not having dozens of conflicting standards and languages that browsers have to develop half-ass
<havenwood> if you want to play with Ruby in the browser try Decaf: https://github.com/timahoney/decaf
haxrbyte has joined #ruby
<Iarfen> centrx: "Better internet" means not obligate new programmers learning two languages to create a simple website
<blackbombay> you should learn as many languages as possible.
bturker has quit [Ping timeout: 256 seconds]
<nemermel> yeap /msg centrx
<nemermel> wow
<Iarfen> havenwood: Thanks!! The problem is that it isn't implemented in all browsers, it doesn't come with them T__T
<nemermel> Centx -> Yes, it does
<nemermel> Thank you
<havenwood> Maybe WebAssembly will get a GC one of these days and Ruby can target it
<centrx> You don't need to know that much JavaScript to create a solid website anyway
<blackbombay> i highly doubt it havenwood
nemermel has quit [Quit: WeeChat 1.6]
faces has quit [Read error: Connection reset by peer]
<havenwood> blackbombay: One of these decades*
<Iarfen> I know JavaScript already. Even more, I have read JavaScript: The definitive guide entirely :D
faces has joined #ruby
jcao219 has joined #ruby
davidt has quit []
crankhar1er is now known as crankharder
<centrx> Well I guess you win then
ziarkaen has joined #ruby
tercenya has quit [Remote host closed the connection]
UserJosh has quit [Ping timeout: 268 seconds]
tercenya has joined #ruby
ramfjord2 has quit [Ping timeout: 246 seconds]
<baweaver> Well I have a bigger stick than all of you, and that's that.
ramfjord1 has quit [Ping timeout: 248 seconds]
jgnagy has joined #ruby
<baweaver> http://adventofcode.com/2016 - Looks like fun
workmad3 has quit [Ping timeout: 260 seconds]
Sammitch has left #ruby [#ruby]
ziarkaen has quit [Ping timeout: 244 seconds]
montanonic has quit [Ping timeout: 250 seconds]
<zenspider> dminuoso: I don't have automated tests for the graphics primitives yet. not really my job outside of making sure I'm calling the right thing.
workmad3 has joined #ruby
_ZerGabriel_ has quit []
jgnagy has quit [Ping timeout: 248 seconds]
vuoto has quit [Remote host closed the connection]
matp has joined #ruby
ramfjord has joined #ruby
ramfjord_ has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
matp_ has quit [Ping timeout: 250 seconds]
Coldblackice has joined #ruby
<eatingthenight> exit
eatingthenight has quit [Quit: leaving]
<baweaver> there ya go
Coldblackice has quit [Max SendQ exceeded]
ramortegui has quit [Quit: Ex-Chat]
<adam12> lol
Coldblackice has joined #ruby
ndrst has joined #ruby
eljimmy has quit [Quit: Leaving]
ndrst is now known as Guest70452
ramfjord has quit [Ping timeout: 260 seconds]
ramfjord_ has quit [Ping timeout: 260 seconds]
toretore has quit [Ping timeout: 244 seconds]
sdhf073f has quit [Quit: leaving]
william3 has joined #ruby
nelsonsar has quit [Remote host closed the connection]
aries_liuxueyang has quit [Ping timeout: 260 seconds]
nelsonsar has joined #ruby
ramfjord has joined #ruby
Rodya_ has joined #ruby
ramfjord_ has joined #ruby
jcao219 has quit [Ping timeout: 268 seconds]
TomyLobo has quit [Ping timeout: 260 seconds]
blackbombay has quit [Ping timeout: 260 seconds]
nelsonsar has quit [Ping timeout: 260 seconds]
aegis3121 has quit [Ping timeout: 260 seconds]
blackbombay has joined #ruby
codfection has quit [Ping timeout: 256 seconds]
polishdub has quit [Quit: Leaving]
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
Rodya_ has quit [Ping timeout: 245 seconds]
shashin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has quit [Remote host closed the connection]
millerti has joined #ruby
jcao219 has joined #ruby
psychicist__ has quit [Ping timeout: 246 seconds]
Puffball_ has quit [Ping timeout: 260 seconds]
Puffball has joined #ruby
jhack has quit [Quit: jhack]
charliesome has joined #ruby
blackwind_123 has quit [Ping timeout: 248 seconds]
symm- has quit [Ping timeout: 246 seconds]
saslam has quit [Ping timeout: 265 seconds]
jcao219 has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
blackwind_123 has joined #ruby
fnux has quit [Ping timeout: 250 seconds]
symm- has joined #ruby
maddmaxx has quit [Quit: Going offline, see ya! (www.adiirc.com)]
fnux has joined #ruby
XV8 has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
ramfjord_ has quit [Ping timeout: 250 seconds]
xall_ has joined #ruby
biberu has quit []
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
millerti has joined #ruby
ramfjord_ has joined #ruby
marxarelli has joined #ruby
patarr has quit [Ping timeout: 256 seconds]
ResidentBiscuit has quit [Ping timeout: 250 seconds]
Elemenn has joined #ruby
xall_ has quit [Ping timeout: 246 seconds]
tenderlove has quit []
nelsonsar has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nemermel has joined #ruby
tdy has joined #ruby
Jackneill has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
Ebok has joined #ruby
fnux has quit [Quit: Grumpf.]
fnux has joined #ruby
postmodern has joined #ruby
mikeiniowa has quit [Remote host closed the connection]
Immune_ is now known as Immune
benlieb has quit [Quit: benlieb]
dcluna has quit [Remote host closed the connection]
mikeiniowa has joined #ruby
Guest43_ has joined #ruby
Guest43_ has quit [Changing host]
Guest43_ has joined #ruby
<zenspider> ugh. there's an incompatibility with minitest 5.10.0 and minitest-reporters. :(
chouhoulis has quit [Ping timeout: 250 seconds]
<zenspider> because they don't subclass the right things
konsolebox has quit [Quit: Leaving]
JoshS has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<nemermel> Make bug report
c355e3b has quit [Quit: Connection closed for inactivity]
SteenJobs has quit [Read error: Connection reset by peer]
antoniobeyah has quit [Ping timeout: 244 seconds]
SteenJobs has joined #ruby
prestorium has quit [Quit: Leaving]
AlphaAtom has joined #ruby
antoniobeyah has joined #ruby
GodFather has joined #ruby
firstdayonthejob has quit [Ping timeout: 258 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackbom1 has joined #ruby
bodgix has quit [Quit: Leaving.]
Ishido has quit [Remote host closed the connection]
blackbombay has quit [Ping timeout: 248 seconds]
<zenspider> nemermel: gosh. thanks for the tip
adavia has quit [Ping timeout: 250 seconds]
postmodern has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
Ebok has quit [Quit: This computer has gone to sleep]
<blackbom1> zenspider: but your code changed and not theirs? that kinda puts the ball in your court, no?
tvw has joined #ruby
beanHolez has joined #ruby
<zenspider> bit of both. they're not subclassing the right thing. would have worked if they did... I have a fix but I'm trying to formulate a test for it first
Devalo has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
<blackbom1> cool
agent_white has joined #ruby
Rodya_ has joined #ruby
tvw has quit [Client Quit]
koooge has joined #ruby
Devalo has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
bodgix has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]