apeiros changed the topic of #ruby to: Please register to talk, see /msg NickServ help || Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
dfockler has quit [Remote host closed the connection]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
einarj has quit [Remote host closed the connection]
Gnomethrower has joined #ruby
Gnomethrower has quit [Max SendQ exceeded]
northfurr has joined #ruby
mary5030 has joined #ruby
solocshaw has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hmnhf__ has joined #ruby
tfranco has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
bronson has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
michael_mbp has joined #ruby
chichou_ has quit []
mary5030 has quit [Remote host closed the connection]
dstarh has joined #ruby
messysaurus has quit []
mleung has joined #ruby
mleung has quit [Client Quit]
swgillespie has joined #ruby
mleung has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
dawkirst has joined #ruby
rushed has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
davejlong has left #ruby [#ruby]
baweaver has quit [Remote host closed the connection]
dawkirst has quit [Ping timeout: 252 seconds]
blackmesa has quit [Ping timeout: 255 seconds]
jeff_laplante has quit [Ping timeout: 250 seconds]
jeadre has quit [Read error: Connection reset by peer]
jeadre has joined #ruby
mleung has quit [Quit: mleung]
baweaver has joined #ruby
newmanships has quit [Quit: Textual IRC Client: www.textualapp.com]
rushed has quit [Quit: rushed]
michael_mbp has quit [Excess Flood]
kidmillions has quit [Ping timeout: 265 seconds]
michael_mbp has joined #ruby
nux443 has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 268 seconds]
quazimodo has joined #ruby
ivanf has quit [Ping timeout: 272 seconds]
mary5030 has joined #ruby
pragmatism has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ivanf has joined #ruby
v4n has quit []
iamninja has joined #ruby
badfish129 has quit [Quit: badfish129]
_axx_ has joined #ruby
truenito has quit [Quit: truenito]
mic_e_ has joined #ruby
iwaffles has quit [Quit: iwaffles]
poli has quit [Ping timeout: 260 seconds]
iamninja has quit [Ping timeout: 246 seconds]
keen__________10 has joined #ruby
poli has joined #ruby
FIGO_ has joined #ruby
michael_mbp has quit [Excess Flood]
klaas_ has joined #ruby
keen___________9 has quit [Ping timeout: 260 seconds]
<pontiki> hi o/
klaas has quit [Read error: Connection reset by peer]
michael_imac has joined #ruby
michael_imac is now known as michael_mbp
Raboo has quit [Ping timeout: 246 seconds]
_axx has quit [Ping timeout: 246 seconds]
mic_e has quit [Ping timeout: 246 seconds]
Platini has quit [Ping timeout: 246 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
oo_ has joined #ruby
theery has joined #ruby
casadei has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 244 seconds]
<shevy> hey pontiki
FIGO_ is now known as Platini
<pontiki> hi shevy
<shevy> ready for mischief again?
Porfa has quit [Quit: Porfa]
<pontiki> always!
<ianchentw> What would you guys recommend for a first time user of a testing framework
<ianchentw> Minitest or RSpec
<shevy> ianchentw with minitest you could ask zenspider here lots of questions :D
<shevy> I myself have no idea... testing always was so much less fun than creating things
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SenpaiSilver has joined #ruby
<pontiki> either is okay. minitest is probably better to start with.
<Coraline> minitest is less DSL and more Ruby
<Coraline> I only use Rspec because I have already used it for so many years
<pontiki> tho it also has dsl
<ianchentw> shevy: thanks
<ianchentw> I see thanks guys
<pontiki> i used rspec because it was more readable and descriptive, and i liked it better than Test::Unit. now it's so far down the line it's hard to switch
<pontiki> plus all the work projects i've been on for the past several years used rspec
lampshades has quit [Remote host closed the connection]
tfranco has joined #ruby
theery has quit [Remote host closed the connection]
s00pcan has quit [Ping timeout: 255 seconds]
<renodice> Hello. I have a question.
<Coraline> Go ahead caller.
<shevy> hmm I also have a question
<pontiki> lol
<pontiki> you're next, next caller
s00pcan has joined #ruby
<shevy> lol
<shevy> via $stdin.gets we get user input... and via hitting enter, this is normally ended
<renodice> I'm new to ruby(3 months of coding) and i was wondering if there is a way to develope a browser based desktop app
tfranco has quit [Ping timeout: 252 seconds]
jordanloky has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
michael_mbp has quit [Excess Flood]
<renodice> Using browser and a sqlite to do things
<shevy> is there a way to somehow send an enter event, when pressing certain other keys, or key combinations? the reason, I want to react on ctrl + arrow keys pressed, and in only these (4) cases, the user interrupt should be ended, without the user required to hit enter
<renodice> instead of a gui
<renodice> With a minimal server running localy
<renodice> locally
northfurr has quit [Quit: northfurr]
<pontiki> renodice: i've used rails and sinatra to that a few times
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> shevy: You can't intermix raw and buffered input, no.
<shevy> :(
<Ox0dea> Are you sure it's what you'd want?
<shevy> now I am depressed
shadoi has joined #ruby
northfurr has joined #ruby
jordanloky has joined #ruby
cnngimenez has joined #ruby
charliesome has joined #ruby
northfurr has quit [Client Quit]
michael_mbp has joined #ruby
<Ox0dea> shevy: The ANSI escape codes for handling mouse events work by writing to stdin.
<Ox0dea> Maybe look into how that magic happens.
northfurr has joined #ruby
<shevy> nono not mouse, just arrow keys
sevenseacat has joined #ruby
Pumukel has quit [Remote host closed the connection]
<shevy> I assume you mean that I have to dig into the C
InternetFriend has joined #ruby
<Ox0dea> shevy: You asked about simulating the user pressing Enter?
shadoi has quit [Quit: Leaving.]
<shevy> well, yeah, if like shift + arrow key is hit, it would automatically assume that enter was pressed afterwards, but only for those 4 events specified
<renodice> <pontiki> I'm intrested in sinatra. Can i deploy sinatra locally and define a folder for static pages?
<pontiki> of course you can, you're essentially doing it when you're developing
<shevy> Ox0dea I think I will make this my first real C project
<renodice> <pontiki> Thanks
Lucky__ has joined #ruby
<Ox0dea> renodice: The :public_folder option defaults to "public".
wildlander has joined #ruby
<Ox0dea> shevy: Yay!
<renodice> sorry
<Ox0dea> Even though I'm writing directly to the current process's stdin, it doesn't get picked up by the call to #gets. :/
<shevy> what's that do
devoldmx has joined #ruby
<Ox0dea> It creates one Thread that waits for input on stdin, and another Thread that "should" provide that input, but it does not.
<Ox0dea> And then there's those ANSI escape sequences which *do* write directly to the current process's stdin for being picked up in a read loop to determine where the user used their mouse in the terminal.
chouhoulis has quit [Remote host closed the connection]
<shevy> hmm
hydrozen has joined #ruby
dgutierrez1287 has joined #ruby
northfurr has quit [Quit: northfurr]
podman has quit [Quit: Connection closed for inactivity]
michael_mbp has quit [Excess Flood]
maletor has quit []
<Ox0dea> Writing to stdin is just about the weirdest thing ever, but it kind of makes sense that it's the only sensible way to provide that information.
renodice has quit [Quit: Going offline, see ya! (www.adiirc.com)]
devoldmx has quit [Ping timeout: 250 seconds]
nerium has quit [Quit: nerium]
pfg has joined #ruby
meatherly has joined #ruby
Billias has quit [Ping timeout: 244 seconds]
mary5030 has quit [Remote host closed the connection]
renodice has joined #ruby
dgutierrez1287 has quit [Ping timeout: 268 seconds]
michael_mbp has joined #ruby
quazimodo has quit [Ping timeout: 244 seconds]
lampshad_ has joined #ruby
RobertBirnie has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yashinbasement has quit [Quit: Leaving]
Alayde has quit [Ping timeout: 260 seconds]
InternetFriend has joined #ruby
atomical has joined #ruby
riotjones has joined #ruby
lampshad_ has quit [Remote host closed the connection]
lampshades has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBirnie has quit [Ping timeout: 240 seconds]
renodice has quit []
renodice has joined #ruby
krz has joined #ruby
riotjones has quit [Ping timeout: 264 seconds]
renodice has joined #ruby
tkuchiki has joined #ruby
cschneid_ has joined #ruby
renodice has quit [Client Quit]
bricker has quit [Ping timeout: 246 seconds]
northfurr has joined #ruby
michael_mbp has quit [Excess Flood]
<shevy> computers are strange
Billias has joined #ruby
jeadre has quit [Remote host closed the connection]
michael_mbp has joined #ruby
benlovell has joined #ruby
jeadre has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
pyon is now known as IceFireXD
IceFireXD has quit [Disconnected by services]
ssd7_ has joined #ruby
pyon has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
ssd7 has quit [Ping timeout: 244 seconds]
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
[H]unt3r has joined #ruby
pietr0 has quit [Quit: pietr0]
an0ma1y has joined #ruby
workmad3 has joined #ruby
ddrmanxbxfr has joined #ruby
s00pcan has quit [Ping timeout: 250 seconds]
<dravine> Ox0dea: is this command line or some gui lib?
<Ox0dea> dravine: What's "this"?
<dravine> oh sorry I think I meant to ask shevy
<dravine> the hotkey questions
renodice has joined #ruby
unreal_ has quit [Read error: Connection reset by peer]
renodice has quit [Read error: Connection reset by peer]
michael_mbp has quit [Excess Flood]
[H]unt3r has quit [Client Quit]
<Ox0dea> shevy is writing a TUI of some kind.
northfurr has quit [Quit: northfurr]
quazimodo has joined #ruby
<Ox0dea> The middle ground between CLI and GUI, more or less.
unreal has joined #ruby
jeadre has quit [Remote host closed the connection]
michael_mbp has joined #ruby
<dravine> like curses?
<dravine> shevy: why not curses?
<Ox0dea> Might be overkill?
Respek has joined #ruby
charliesome has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
<dravine> would suspect the curses C interface would have better control over keyboard events
<dravine> idk, bit of a left field question :)
<dravine> those always seem to be the most fun
jeadre has joined #ruby
renodice has joined #ruby
Yzguy has joined #ruby
rodfersou has quit [Ping timeout: 240 seconds]
tfranco has joined #ruby
rodfersou has joined #ruby
alejandrok5 has joined #ruby
mleung has joined #ruby
<Ox0dea> dravine: curses still heavily relies on terminfo, which is little more than a convenient "database" of which escape sequences do what for a given terminal emulator.
brunops has quit [Ping timeout: 252 seconds]
sepp2k has quit [Read error: Connection reset by peer]
tfranco has quit [Ping timeout: 244 seconds]
renodice has quit [Quit: Leaving]
Mon_Ouie has quit [Ping timeout: 240 seconds]
tfranco has joined #ruby
renodice has joined #ruby
towski_ has quit [Remote host closed the connection]
roxtrongo has quit [Ping timeout: 244 seconds]
<dravine> well good luck, sounds like it’s gonna be tricky
symm- has quit [Ping timeout: 265 seconds]
majjoha has joined #ruby
blue_deref has quit [Quit: Taking myself out of hear.]
renodice has quit [Client Quit]
badfish129 has joined #ruby
rodfersou has quit [Ping timeout: 260 seconds]
renodice has joined #ruby
tfranco has quit [Ping timeout: 252 seconds]
tmtwd has joined #ruby
mleung has quit [Quit: mleung]
tubuliferous has quit [Ping timeout: 272 seconds]
michael_mbp has quit [Excess Flood]
majjoha has quit [Ping timeout: 246 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
meatherly has quit []
ssd7_ has quit [Ping timeout: 250 seconds]
jackjackdripper has quit [Quit: Leaving.]
brunops has joined #ruby
michael_mbp has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
renodice has quit [Quit: Leaving]
rnodc has joined #ruby
amystephen has quit [Quit: amystephen]
jenrzzz has quit [Ping timeout: 268 seconds]
meph has quit [Quit: Leaving.]
alejandrok5 has quit [Quit: Leaving.]
ruby-lang244 has joined #ruby
alejandrok5 has joined #ruby
rnodc has quit [Client Quit]
renodice has joined #ruby
mjuszczak has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ruby-lang244> hi everybody. can someone tell me that should i pass a method as the default value of another method or not?
<ruby-lang244> default value of the parameters of another method to be exact
badfish129 has quit [Read error: Connection reset by peer]
badfish129 has joined #ruby
solocshaw has quit [Read error: Connection reset by peer]
michael_mbp has quit [Excess Flood]
solocshaw1 has joined #ruby
solocshaw1 has quit [Remote host closed the connection]
solocshaw has joined #ruby
michael_mbp has joined #ruby
chipotle has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby-lang244 has quit [Quit: Page closed]
eminter has joined #ruby
InternetFriend has joined #ruby
c_nick has joined #ruby
eminter has quit [Client Quit]
<c_nick> How to distinguish an array of array from an array
<Ox0dea> c_nick: foo.any? { |f| f.is_a? Array }
<renodice> <ruby-lang244> As long the first metod returns a value, you could. If the value of first method will change, the second method will change too.
northfurr has joined #ruby
krz has quit [Ping timeout: 264 seconds]
<Ox0dea> c_nick: Alternatively, Array#flatten! will return nil if the Array was already "flat"; that is, did not contain any Arrays.
Yzguy has quit [Quit: Zzz...]
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leafybasil has quit [Remote host closed the connection]
<shevy> dravine I dunno, curses always was very unfun :(
Raboo has joined #ruby
<shevy> there are some cool things one can built with it, htop is one of my favourites
<shevy> *build
<dravine> <3 htop
babyarm has joined #ruby
marjory has joined #ruby
<dravine> I haven’t done any curses stuff in Ruby
<dravine> fairly new to it actually
<dravine> ~6 months
<c_nick> Ox0dea, ok
bigredboots has joined #ruby
meatherly has joined #ruby
badfish129 has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
renodice has quit [Quit: Leaving]
beefcakeba has quit [Ping timeout: 264 seconds]
meatherly has quit [Client Quit]
<c_nick> Ox0dea, flatten wont return nil
bayed has quit [Quit: Connection closed for inactivity]
renodice has joined #ruby
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
<Ox0dea> c_nick: No, only #flatten!
badfish129 has joined #ruby
<Ox0dea> Which will also modify the Array in-place, mind.
dorei has quit []
shmilan has joined #ruby
<Ox0dea> c_nick: If you know that your Array of Arrays will only contain Arrays and not singletons, you can just check that the first element is an Array.
Gribo has quit [Read error: Connection reset by peer]
badfish129 has quit [Client Quit]
<c_nick> Ox0dea, yes i can run a look for any? and check if there is an array in the array if not i can do the exception stuff
leat has quit [Remote host closed the connection]
<Ox0dea> c_nick: What "exception stuff"?
meatherly has joined #ruby
leat has joined #ruby
Karpah has joined #ruby
code1o6 has joined #ruby
ERIK_ has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
<c_nick> viz. ['PL35785','ZLN'] now i will check if this comprises an array which is false so in that case i will print the elements of the array for the user
badfish129 has joined #ruby
baweaver has joined #ruby
<c_nick> Ox0dea, the code works for array of arrays only.. they did not handle the case when the input is just an array
cschneid_ has quit [Remote host closed the connection]
sevenseacat has quit [Ping timeout: 252 seconds]
renodice has quit [Quit: Leaving]
renodice has joined #ruby
renodice has quit [Client Quit]
renodice has joined #ruby
badfish129 has quit [Client Quit]
Karpah is now known as sevenseacat
meatherly has quit []
iamninja has joined #ruby
jesterfraud has joined #ruby
meatherly has joined #ruby
leat has quit [Remote host closed the connection]
renodice has quit [Client Quit]
leat has joined #ruby
northfurr has quit [Quit: northfurr]
renodice has joined #ruby
northfurr has joined #ruby
iamninja has quit [Ping timeout: 244 seconds]
tfranco has joined #ruby
maletor has joined #ruby
hmnhf__ has quit [Read error: Connection reset by peer]
hmnhf__ has joined #ruby
maletor has quit [Client Quit]
tfranco has quit [Ping timeout: 246 seconds]
arescorpio has joined #ruby
<c_nick> This is what i cooked up, arr.each { |element| str += "%25s %s\n" % element if element.is_a? Array }
<c_nick> str = "%25s %s" % arr unless str.length != 0
hmnhf has joined #ruby
hmnhf__ has quit [Ping timeout: 256 seconds]
Xiti has quit [Read error: Connection reset by peer]
tubuliferous has joined #ruby
alejandrok5 has left #ruby [#ruby]
moeabdol has joined #ruby
allcentury has joined #ruby
majjoha has joined #ruby
erts has quit [Quit: erts]
allcentury has quit [Ping timeout: 264 seconds]
majjoha has quit [Ping timeout: 264 seconds]
<Ox0dea> c_nick: if/== > unless/!=, in my opinion.
moeabdol has quit [Quit: WeeChat 1.3]
renodice has left #ruby ["Leaving"]
renodice has joined #ruby
uri_ has joined #ruby
<c_nick> Ox0dea, ?
<c_nick> you mean use unless over if
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yqt has quit [Ping timeout: 268 seconds]
moeabdol has joined #ruby
jcutrell has joined #ruby
<jcutrell> j472602
<jcutrell> 6913lmF
<jcutrell> 9bNCfK
<jcutrell> Very sorry folks.
<nofxx> hm, there's a yml translate tool here that changes yaml: "foo: baz" to ""foo": >-\n baz" any reason for this '>-' (operator?) in yaml?
<nofxx> and new line.... files get lines doubled
<jcutrell> Question for anyone who is versed in the subject — is there much of a difference between attr_reader and putting attr_accessor after the `private` keyword in ruby?
gener1c_ has joined #ruby
scottschecter has quit [Quit: Leaving]
<c_nick> jcutrell, if u only need variables accessible within your class methods
theery has joined #ruby
<c_nick> More like an Oops Questions
newnia has joined #ruby
<Ox0dea> c_nick: I used '>' there to indicate "is better than" or "should be preferred over".
xcesariox has joined #ruby
<Ox0dea> That is, `if str.length == 0` is clearer than `unless str.length != 0`, in my opinion.
<jcutrell> c_nick in other words, @foo.something wouldn’t be accessible if the attr_accessor is private, even as a reader.
<Ox0dea> Even better would be `if str.empty?`, though.
<jcutrell> c_nick that’s a decent distinction to be made. If the attribute is intended only to be used by internal methods.
gener1c has quit [Ping timeout: 246 seconds]
AlexAltea has quit [Ping timeout: 244 seconds]
devoldmx has joined #ruby
leat has quit [Remote host closed the connection]
abbe_ has joined #ruby
abbe has quit [Read error: Connection reset by peer]
<c_nick> Ox0dea, makes sense i will update that to if .. besides if over if ! is one operation (negation) less
Queeniebee has joined #ruby
<c_nick> jcutrell, indeed
braincrash has quit [Quit: bye bye]
chipotle has quit [Quit: cheerio]
auzty has joined #ruby
jcutrell has quit [Quit: jcutrell]
uri_ has quit [Ping timeout: 252 seconds]
abbe_ is now known as abbe
northfurr has quit [Quit: northfurr]
northfurr has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
braincrash has joined #ruby
braincrash is now known as braincras
havenwood has joined #ruby
minimuff1ns has joined #ruby
sdothum has quit [Read error: Connection reset by peer]
benlovell has joined #ruby
minimuffins has quit [Ping timeout: 255 seconds]
renodice has quit [Quit: Leaving]
towski_ has joined #ruby
sdothum has joined #ruby
renodice has joined #ruby
renodice has quit [Client Quit]
uri_ has joined #ruby
renodice has joined #ruby
benlovell has quit [Ping timeout: 250 seconds]
riotjones has joined #ruby
bigredboots has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
darkf has joined #ruby
codecop has joined #ruby
codecop_ has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
<Ox0dea> c_nick: == and != are both one instruction at the assembly level, for what that's worth.
ngscheurich has joined #ruby
<Ox0dea> But yeah, `if str.empty?` is definitely to be preferred over `unless str.length != 0`.
workmad3 has joined #ruby
<cscheib> ok, I'm scratching my head over this... trying to do some basic exercises, in this case decimal to binary... I'm trying to figure out how this example worked (it's someone else's): https://gist.github.com/cscheib/1d066a51e0baa42141f6
<cscheib> a) what is the "2" doing to the result after the to_s in line 2
<Ox0dea> cscheib: Integer#to_s takes a base.
<cscheib> ahh
<Ox0dea> >> 255.to_s(16)
<ruboto> Ox0dea # => "ff" (https://eval.in/426507)
meatherly has quit []
<cscheib> so, basically it's a cheat
<Ox0dea> Yes.
mallu has joined #ruby
<c_nick> cool thanks Ox0dea
<cscheib> the no parens things f's with me sometimes
c_nick has quit [Quit: Ex-Chat]
leat has joined #ruby
allcentury has joined #ruby
<mallu> I'm using ruby aws-sdk and getting this error > anyone know what I am doing wrong? https://dpaste.de/meqO
workmad3 has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_djbkd has quit [Read error: Connection reset by peer]
_djbkd has joined #ruby
<Radar> mallu: For some reason your computer can't connect to... I'm not sure what.
charliesome has joined #ruby
bigredboots has joined #ruby
mleung has joined #ruby
chipotle has joined #ruby
tfranco has joined #ruby
<mallu> Radar: Thats what I thought too ... but I can connect to ELB api
<Radar> mallu: what version of aws-sdk?
Eiam_ has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
<baweaver> If it's 2, they have a gitter channel for issues.
<baweaver> Normally fairly responsive.
<mallu> baweaver: ok
<baweaver> you probably used a placeholder id in there as well
<sevenseacat> more communication channels, just what we need
<baweaver> is it that way in the actual code?
<baweaver> I don't need the actual, just making sure
northfurr has quit [Quit: northfurr]
dgutierrez1287 has joined #ruby
tfranco has quit [Ping timeout: 250 seconds]
towski_ has joined #ruby
PlasmaStar has quit [Ping timeout: 246 seconds]
michael_mbp has quit [Excess Flood]
gix has quit [Ping timeout: 246 seconds]
lampd1 has quit [Ping timeout: 244 seconds]
c1v0 has joined #ruby
exceion has quit [Ping timeout: 244 seconds]
exceion has joined #ruby
<baweaver> you do know you have to configure a client with your sdk access info right?
meatherly has joined #ruby
<mallu> baweaver: yes I can access ELB
<baweaver> See the top, you need a credentials object
dgutierrez1287 has quit [Ping timeout: 244 seconds]
PlasmaStar has joined #ruby
<baweaver> but past that I would ask in their gitter channel.
codecop_ has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
<baweaver> because they have some truly obscure stuff that's not well documented
<mallu> thanks.. Just asked the same question there
<baweaver> granted it seems like trevorrowe is backlogged to hell and back
Respek has quit [Quit: gone to sleep. ZZZzzz…]
michael_mbp has joined #ruby
RobertBirnie has joined #ruby
gix has joined #ruby
northfurr has joined #ruby
northfurr has quit [Client Quit]
tubbo has quit [Ping timeout: 256 seconds]
Nawn has joined #ruby
freerobby has joined #ruby
RobertBirnie has quit [Client Quit]
Nawn has quit [Client Quit]
yfeldblum has quit [Ping timeout: 244 seconds]
ERIK_ has quit [Read error: Connection reset by peer]
code1o6 has quit [Read error: Connection reset by peer]
demophoon has quit [Quit: :wqall!]
tubbo has joined #ruby
lampd1 has joined #ruby
dopie has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
InternetFriend has joined #ruby
jordanloky has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
towski_ has quit [Remote host closed the connection]
mleung has quit [Quit: mleung]
choke has joined #ruby
jordanloky has joined #ruby
jesmith has joined #ruby
<Radar> mallu: What version of the aws-sdk gem do you have installed?
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> it's 2.x
<pontiki> gnite folx
<Radar> Is it though?
<Radar> byebye pontiki
<jesmith> forgive the noob question, but anyone got a good example of reading in json content from body of post with rails-api?
<baweaver> the docs he linked proved it
<jesmith> I can't seem to find a complete one to help show what I am missing
<baweaver> that and Seahorse was from 2.x api
<Radar> ah
<Radar> jesmith: ?rails
hydrozen has joined #ruby
<Radar> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
kdman has quit [Quit: Leaving]
<jesmith> Thanks ruboto
hydrozen has quit [Client Quit]
mjuszczak has quit []
* baweaver tends to review docs / contribute to the aws-sdk
demophoon has joined #ruby
ta has quit [Remote host closed the connection]
jesmith has quit [Client Quit]
<mallu> Radar: yes it ia ver 2
exadeci has quit [Quit: Connection closed for inactivity]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_djbkd has quit [Quit: My people need me...]
Rickmasta has joined #ruby
ascarter has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
Rickmasta has joined #ruby
linc01n has quit [Ping timeout: 240 seconds]
ascarter has quit [Client Quit]
ascarter has joined #ruby
linc01n has joined #ruby
Mia has quit [Read error: Connection reset by peer]
arescorpio has quit [Quit: Leaving.]
claw has quit [Remote host closed the connection]
jordanloky has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
havenwood has quit [Ping timeout: 252 seconds]
braincrash has joined #ruby
dawkirst has joined #ruby
havenwood has joined #ruby
theery has quit [Remote host closed the connection]
braincras has quit [Ping timeout: 260 seconds]
shmilan has quit [Ping timeout: 246 seconds]
newnia has quit [Remote host closed the connection]
dopie has quit [Ping timeout: 250 seconds]
majjoha has joined #ruby
dawkirst has quit [Ping timeout: 246 seconds]
<brunops> Anyway to define an object that behaves like this? obj.foo => { :a => 1 }; obj.foo.a => 1; obj.bar => nil; obj.bar.sup => nil
towski_ has joined #ruby
<Ox0dea> brunops: You want OpenStruct.
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
majjoha has quit [Ping timeout: 265 seconds]
tfranco has joined #ruby
yfeldblum has joined #ruby
dopie has joined #ruby
hmnhf has quit [Ping timeout: 252 seconds]
meatherly has quit []
<brunops> Ox0dea: the problem is the last case.. obj.foo => nil .. obj.foo.bar is NoMethodError
<baweaver> which you didn't mention
ta has joined #ruby
uri_ has quit [Ping timeout: 246 seconds]
<baweaver> and you're also not going to get auto-vivification on openstructs without some hackery
davedev24 has quit []
<Ox0dea> baweaver: Hackin' time!
<brunops> baweaver: I did..
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<brunops> can I define method_missing for nil? lol
<Ox0dea> brunops: Stop that.
<baweaver> ?xy
<ruboto> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
tfranco has quit [Ping timeout: 250 seconds]
astrobun_ has joined #ruby
craysiii has joined #ruby
<Ox0dea> >> require 'ostruct'; OpenStruct.instance_method(:table)
<ruboto> Ox0dea # => #<UnboundMethod: OpenStruct#table> (https://eval.in/426513)
<Ox0dea> What is that?
Gnomethrower has joined #ruby
<brunops> I was joking :p
towski_ has quit [Remote host closed the connection]
Gnomethrower has quit [Max SendQ exceeded]
leafybasil has joined #ruby
ta has quit [Remote host closed the connection]
iamninja has joined #ruby
<Ox0dea> Hmm, I think passing an auto-vivifying Hash into OpenStruct.new should Do the Right Thing.
<baweaver> Would it?
<Ox0dea> No, the Hash's default value is completely ignored. :/
<Ox0dea> >> require 'ostruct'; OpenStruct.new(Hash.new(1)).foo
<ruboto> Ox0dea # => nil (https://eval.in/426514)
<baweaver> wishfull thinking
<Ox0dea> Aye.
tubuliferous has quit [Ping timeout: 264 seconds]
hawkface has quit [Quit: Leaving]
hawkface has joined #ruby
InternetFriend has quit [Read error: Connection reset by peer]
<brunops> I thought monads would be the answer, but the last `.value` is kind of a deal breaker
leafybasil has quit [Ping timeout: 250 seconds]
mkosaki has joined #ruby
iamninja has quit [Ping timeout: 252 seconds]
swgillespie has joined #ruby
RobertBirnie has joined #ruby
iateadonut has joined #ruby
allcentury has joined #ruby
qiukun has joined #ruby
khebbie has joined #ruby
ngscheurich has quit [Ping timeout: 252 seconds]
theery has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
bronson has joined #ruby
skade has joined #ruby
tmtwd has quit [Ping timeout: 246 seconds]
khebbie_ has joined #ruby
sdwrage has quit [Quit: Leaving]
stardiviner has joined #ruby
choke has joined #ruby
majjoha has joined #ruby
khebbie has quit [Ping timeout: 250 seconds]
allcentury has quit [Ping timeout: 268 seconds]
khebbie_ has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 252 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bigredboots has quit [Remote host closed the connection]
Spami has joined #ruby
choke has quit [Client Quit]
Spami has quit [Remote host closed the connection]
mary5030 has joined #ruby
rubie has joined #ruby
choke has joined #ruby
freerobby has quit [Quit: Leaving.]
choke has quit [Client Quit]
Spami has joined #ruby
devoldmx has joined #ruby
Rickmasta has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
sdothum has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<ElSif> people have been typing elsif a lot today
<ElSif> i wonder why?
benlovell has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cgfbee has quit [Ping timeout: 252 seconds]
agent_white has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<agent_white> Evenin'
<ElSif> hello :)
SolarSailor has joined #ruby
cgfbee has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
khebbie has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
renodice has quit [Ping timeout: 268 seconds]
rakm has joined #ruby
<Ox0dea> ElSif: That's precisely why you chose this nick, though, no?
<Ox0dea> Random pings are best pings.
<ElSif> kinda yea :)
<Ox0dea> forgot and suffice are crazy.
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<ElSif> i can only imagine
<sevenseacat> g probably gets a lot too.
moeabdol has quit [Quit: WeeChat 1.3]
sdfgsdfg has joined #ruby
scripore has joined #ruby
workmad3 has joined #ruby
ta has joined #ruby
rakm has quit [Ping timeout: 260 seconds]
moeabdol has joined #ruby
nanoz has joined #ruby
krz has joined #ruby
<ElSif> if you did letter highlighting i suppose 'e' would be the most spammed... so long as this stays in western characters
<ElSif> but who does letter highlighting??
<sevenseacat> well if you type e.g. you hit the user g
workmad3 has quit [Ping timeout: 244 seconds]
riotjones has joined #ruby
ap4y has quit [Remote host closed the connection]
tfranco has joined #ruby
sevenseacat has quit [Read error: Connection reset by peer]
c1v0 has quit [Ping timeout: 265 seconds]
<nofxx> ~> x.y.z will enforce x.y right?
khebbie has quit [Remote host closed the connection]
c1v0 has joined #ruby
ta has quit [Remote host closed the connection]
sevenseacat has joined #ruby
bluOxigen has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
ta has joined #ruby
blueOxigen has quit [Ping timeout: 240 seconds]
hmnhf has joined #ruby
tfranco has quit [Ping timeout: 265 seconds]
claw has joined #ruby
rehat has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
Xiti has joined #ruby
<shevy> yeah
<ElSif> so many ways to spam yourself :D
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
minimuff1ns has quit [Ping timeout: 255 seconds]
leafybasil has joined #ruby
choke has joined #ruby
NightMonkey has quit [Ping timeout: 244 seconds]
NightMonkey has joined #ruby
leafybasil has quit [Ping timeout: 260 seconds]
scripore has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
ta has quit [Remote host closed the connection]
allcentury has joined #ruby
eightfold has joined #ruby
riotjones has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
aganov has joined #ruby
ta has joined #ruby
jordanloky has joined #ruby
grenierm has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
ta has quit [Remote host closed the connection]
weemsledeux has joined #ruby
eightfold has quit [Client Quit]
NightMonkey has quit [Ping timeout: 244 seconds]
theery has quit [Remote host closed the connection]
scampbell has quit [Quit: Leaving]
rubie has quit [Remote host closed the connection]
khebbie has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
SCHAAP137 has joined #ruby
duncannz has joined #ruby
ta has joined #ruby
eightfold has joined #ruby
ferhaty has joined #ruby
codenapper has joined #ruby
yfeldblum has joined #ruby
pietr0 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NightMonkey has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yeticry has quit [Ping timeout: 244 seconds]
Queeniebee has quit [Ping timeout: 240 seconds]
KnownSyntax has quit [Read error: Connection reset by peer]
eGGsha has joined #ruby
yeticry has joined #ruby
jenrzzz has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
sirhcjw has joined #ruby
<sirhcjw> can someone please tell me what I should use instead of mod_ruby to use ruby with apache?
charliesome has joined #ruby
<sirhcjw> it seems mod_ruby is no more
thomas has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
hmnhf has quit [Ping timeout: 260 seconds]
klaas_ is now known as klaas
<sevenseacat> passenger.
tfranco has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
<sirhcjw> ok I saw that popping up but was not really sure if that was a drop in replacement
DeweyD has joined #ruby
DeweyD has quit [Client Quit]
choke has joined #ruby
claw has quit [Ping timeout: 268 seconds]
tfranco has quit [Ping timeout: 246 seconds]
choke has quit [Client Quit]
claw has joined #ruby
<[spoiler]> sirhcjw: it's not really a drop in replacement, it's better
<[spoiler]> You *don't* want a a drop in replacement, because then you get a lot of the problems PHP has
rubie has joined #ruby
tagrudev has joined #ruby
<sirhcjw> ok cool
ksteck has quit [Ping timeout: 250 seconds]
KnownSyntax has joined #ruby
cnngimenez has quit [Ping timeout: 250 seconds]
<sirhcjw> things have changed a bit since i did my last reby web dev 6 years ago :)
pawnbox has joined #ruby
amclain has quit [Quit: Leaving]
<baweaver> could always look into others like Unicorn and Puma as well, though Passenger plays nicer with Apache.
<baweaver> Then again people are tending towards NginX now.
ferhaty has quit []
hmnhf_ has joined #ruby
nhhagen has joined #ruby
khebbie has quit [Remote host closed the connection]
Majost__ has quit [Read error: Connection reset by peer]
howdoi has joined #ruby
<brunops> Can I define method_missing for a Hash instance (instead of extending the Hash class or defining a new class that inherits it?)
SCHAAP137 has quit [Quit: Leaving]
dionysus69 has joined #ruby
dualbus has quit [Quit: WeeChat 1.2]
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has joined #ruby
<shevy> you can define that method for every object
prestorium has quit [Ping timeout: 246 seconds]
rubie has quit [Remote host closed the connection]
<shevy> if it operates on a per-object basis, it is usually called a Singleton
<[spoiler]> brunops: easiest is probably `def object_reference.method_name ...`
tmtwd has joined #ruby
* baweaver grabs popcorn
<shevy> hungry hungry beaver
jas02 has joined #ruby
<baweaver> So what exactly are you trying to do anyways?
iamninja has joined #ruby
<baweaver> because whenever method_missing comes up, chances are high it's a bad idea.
lxsameer has joined #ruby
majjoha has quit [Ping timeout: 244 seconds]
lxsameer has quit [Changing host]
lxsameer has joined #ruby
<[spoiler]> baweaver: meta programming madness!
<brunops> baweaver: I want to parse a config file and create an object with two levels of configs. But I want it to be able to answer: obj.foo => { :a => 1 }; obj.foo.a => 1; obj.bar => nil; obj.bar.sup => nil
dualbus has joined #ruby
<brunops> last use case seems impossible, so I'm punting on that
benlovell has joined #ruby
<brunops> but besides this, I want to be able to access it like obj.foo['a'] or obj[:foo][:a], or any permutations
<baweaver> parse it as json, just use hash accessors
<baweaver> won't happen in ruby without horrendous hacks
<brunops> I already have it parsed and in the format of { :a => 1, :b => { :aa => 2, :bb => 3 } } etc
<brunops> A symbolized hash
<[spoiler]> the best you could do is create your own class and pass the hash as a constructir
<[spoiler]> erm
<[spoiler]> to the constructor/initialize
<brunops> yes, that's pretty much what I'm ending up doing, let me go a gist
iamninja has quit [Ping timeout: 244 seconds]
rushed has joined #ruby
<[spoiler]> but what's wrong with [] srsly
* baweaver sighs
techsethi has joined #ruby
<[spoiler]> [] > independent method
<[spoiler]> why did i say independent
<[spoiler]> hmm what would independent even mean
<baweaver> Fine, let's make a point then
<baweaver> >> $_=$$/$$;@_=->_{_==''?_:[*?`..?{]['. !#% & , :;<= >@_ `'=~/#{_[$.]}/]+@_[_[$_..-$_]]};_=->&_{_}[&:"#{@_['@%<#']}"];_[_[_[_['',@_['!: @@']],@_[' <!%@_=>@']][-$_-$_],@_['!=<@_']+?_+@_['&%_'],(''<<(_=$_+$_)**_**(_+$_)/(_+$_)-$_)+@_[',;%']],@_['<%`']]
<ruboto> baweaver # => 2015-09-02 06:39:29 +0000 (https://eval.in/426520)
khebbie has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
<baweaver> Just because you _can_ do something in Ruby does _not_ make it a good idea
<baweaver> (snarfed from Ox0dea)
<baweaver> chances are high you don't need 3 different ways to access the same value
benlovell has quit [Ping timeout: 250 seconds]
<baweaver> question is why you're so fixated on that idea.
khebbie has joined #ruby
craysiii has quit [Quit: Page closed]
<baweaver> Chef made the Mash, and that's already a monstrosity.
<ruboto> brunops, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/14f37c1d28ed933d6ddd
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
JoshGlzB_ has joined #ruby
<brunops> sorry ruboto :s
<baweaver> ?ruboto
<ruboto> I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
sevenseacat has joined #ruby
craysiii has joined #ruby
<brunops> I know it's a bot lol
tubuliferous has joined #ruby
JoshGlzB_ has quit [Max SendQ exceeded]
<baweaver> you'd be surprised
<brunops> Want me to create a gist or is the pastebin ok?
<[spoiler]> brunops: gist please
<baweaver> gist, pastebin is kinda junk
jenrzzz has quit [Ping timeout: 256 seconds]
<shevy> but ruboto made it a gist already
<[spoiler]> I'm one of those who can't even load bastepin
<craysiii> what about openpaste 8)
akemrir has joined #ruby
JoshGlzBrk has quit [Ping timeout: 240 seconds]
<brunops> It's pretty messy right now, just trying to make it work, but anyway https://gist.github.com/brunops/14ee309d3fa2f61477a8
Macaveli has joined #ruby
JoshGlzBrk has joined #ruby
<brunops> kinda works though
dhjondoh has joined #ruby
<Ox0dea> brunops: Why are you putting the magic on a new class instead of just adding it on CONF's singleton class?
<brunops> Probably because it's been two years since I used ruby :(
<Ox0dea> I'm not sure I follow?
relix has joined #ruby
<brunops> Can I define method_missing diferectly in CONF ?
<brunops> directly*
<Ox0dea> On its singleton class? Yes.
devoldmx has joined #ruby
allcentury has joined #ruby
sfr^ has quit [Changing host]
sfr^ has joined #ruby
skade has joined #ruby
<brunops> Ox0dea: CONF.group1.aa didn't work though
<Ox0dea> > didn't work
<brunops> probably because `CONF.group1` doesn't have [] or method_missing, only CONF
chipotle has quit [Quit: cheerio]
greenarrow has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
allcentury has quit [Ping timeout: 260 seconds]
codecop has joined #ruby
majjoha has joined #ruby
eightfold has quit [Quit: eightfold]
<brunops> Ox0dea, baweaver any comments?
<baweaver> I've already said my piece.
<[spoiler]> brunops: you'll have to extend each Hash object recursively referenced inside of the CONF
workmad3 has joined #ruby
* baweaver shudders
<[spoiler]> but don't do it
<[spoiler]> yes ^
* baweaver has been shuddering this entire time
<[spoiler]> brunops: what is your beef with Hash#[]?
dionysus69 has quit [Ping timeout: 244 seconds]
nofxx has quit [Ping timeout: 264 seconds]
solars has joined #ruby
eightfold has joined #ruby
eightfold has quit [Client Quit]
<brunops> [spoiler]: what do you mean by "beef"?
<[spoiler]> Lmao, what do you not like about it, sorry for my thuggish talk
Cust0sLim3n has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 265 seconds]
zlogan has joined #ruby
<shevy> he is a vegetarian
<Ox0dea> brunops: Do you deem the target audience of your thing to be tech-unsavvy?
<brunops> [spoiler]: I just want to define obj = { :a => 1 }, and have it reply to obj[:a], obj.a and obj['a'], without making it a Struct
<Ox0dea> WHY?!
<shevy> brunops yes, simple. you only need one accessor method, the other two can be aliases
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
solars has quit [Ping timeout: 240 seconds]
<[spoiler]> brunops: is it an exercise you want to accomplish? If then, we can help, but if it's "real code" then please don't do it
<[spoiler]> s/If then/if so
opensource_ninja has quit [Ping timeout: 246 seconds]
<brunops> It's just an exercise, definitely not production code
<baweaver> Chef's Mash
<Ox0dea> baweaver: Not Hashie's?
<baweaver> just happened to be the one that came to mind
<miah> i just read scrollback and same thought =)
sideshowcoder has joined #ruby
<baweaver> makes for some nasty obscure error messages though in Chef
NightMonkey has quit [Ping timeout: 244 seconds]
<[spoiler]> bruno, basically the best solution is to make your own hash-alike object which has indifferent access
<[spoiler]> brunops: missed the tab key lol
NightMonkey has joined #ruby
<shevy> lol
<Ox0dea> brunops: https://archive.is/iHyR8#selection-2189.0-2189.139
<[spoiler]> Ox0dea: won't loaf
<[spoiler]> load*
* [spoiler] sighs
<Radar> Works for me.
<Ox0dea> brunops: It's no less potentially painful than Chef's implementation, mind, which even comes with a warning against its use from the authors.
<Ox0dea> All told, you're just doing The Wrong Thing.
* Radar scrolls up and sees that brunops is committing a cardinal sin.
* Radar prepares the holy water and salt
<agent_white> Radar: -- Heard through the grapevine about the final R4iA release. Thank you, sevenseacat, and other folks for the work to help me learn. Looking forward to having the parchment in hand :)
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stan has joined #ruby
<sevenseacat> agent_white: youre welcome :) and I am also looking forward to receiving a hard copy!
<Ox0dea> R4iA is being released on parchment paper?! Isn't that a lot more expensive?
<Radar> agent_white: It is true that it happened :D
<Radar> Ox0dea: Yes and yes.
<sevenseacat> that would explain the cost
Salehi has joined #ruby
<Radar> Ox0dea: It's also *much* harder to update those copies than their electronic counterparts.
<Radar> Believe me, I've tried!
* sevenseacat opens Trello board and moves R4IA from "Doing" to "Done"
<agent_white> sevenseacat / Radar: Thank you guys for your hard work! Me, or _we_, appreciate it :)
<Radar> agent_white: Tell your friends!
<agent_white> s/guys/both -- or... I dunno who else have worked on it!
no0bRus has joined #ruby
<sevenseacat> appreciate the clarification there :)
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TvL2386 has joined #ruby
<brunops> Ox0dea: sure, I'm not saying it's a good idea to have objects behaving like this, it's just what the exercise is about...
<agent_white> :)
<Radar> agent_white: sevenseacat, Steve Klabnik and myself did the work.
<Radar> Yehuda did.. um... provided moral support from afar?
<sevenseacat> dammit I put it in the "Done" pile in April. ffffuuu.
swgillespie has joined #ruby
<sevenseacat> Radar: he was our spiritual leader, or something.
<Radar> yeah, taht
solars has joined #ruby
<agent_white> Radar: Ahhh! I was wondering about that... I wasn't sure about Klab and Yehuda since I never spoke to them here (or did not know if I did). But you both have been phenominal. Thank you!
eGGsha is now known as eGGshke
quazimodo has quit [Ping timeout: 250 seconds]
* agent_white pops champagne for Radar and sevenseacat
swgillespie has quit [Client Quit]
<Radar> they have ascended to higher channels :P
<baweaver> You mean the one where they point at less senior people and say "have that sucker write it." ?
<baweaver> :P
<Radar> baweaver: You have just explained my ideal job :P
<baweaver> Venture Capitalist or CEO?
<sevenseacat> well they went on to create their own languages and frameworks, so
<baweaver> Oh I know I know.
<sevenseacat> Radar: what're we gonna build
<shevy> they left #ruby :(
<Radar> sevenseacat: oh nothing that impressive, just an army of coders who have learned from our books.
<Radar> Pretty paltry in comparison
<sevenseacat> a veritable ARMY.
<Radar> Supplying the jerbs to the economies
jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<Radar> (arguably katz and klabnik do that too, just in different ways)
<sevenseacat> jhass: what changed?
<jhass> dropped the "Please register"
<jhass> since you -q'ed ;)
Iskarlar has joined #ruby
<sevenseacat> ah hah
livathinos has joined #ruby
eGGshke is now known as eGGsha
baweaver has quit [Remote host closed the connection]
<[spoiler]> weird the link works now
weaksauce has quit [Ping timeout: 264 seconds]
tmtwd has quit [Ping timeout: 240 seconds]
absolutejam has quit [Ping timeout: 265 seconds]
pietr0 has quit [Quit: pietr0]
absolutejam has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
JackNapier has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
Hounddog has joined #ruby
krz has quit [Ping timeout: 250 seconds]
Tempesta has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
[k- has joined #ruby
oo_ has quit [Remote host closed the connection]
zlogan85 has joined #ruby
JackNapier has quit []
zlogan has quit [Ping timeout: 246 seconds]
ssd7 has joined #ruby
pawnbox has quit [Remote host closed the connection]
arup_r has joined #ruby
tfranco has joined #ruby
_lazarevsky_ has quit [Ping timeout: 246 seconds]
iamninja has joined #ruby
rdark has joined #ruby
rdark has quit [Client Quit]
rdark has joined #ruby
gagrio has quit [Remote host closed the connection]
gagrio has joined #ruby
pawnbox has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<agent_white> Radar: Weird... as in, why not 'halp wit teh jerbs' of the ruby community, whilst doing rust/js, too.
ghr has joined #ruby
<agent_white> If you cared, why suddenly stawhp? :(
oo_ has joined #ruby
krisquigley has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
PenguinMan98 has quit [Quit: Page closed]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
terlar has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
Iskarlar has joined #ruby
whiteline has joined #ruby
darkf_ has joined #ruby
Lycanii has joined #ruby
joostliketoast has joined #ruby
JohnBat26 has joined #ruby
darkf has quit [Ping timeout: 244 seconds]
Mendenhall has quit [Ping timeout: 260 seconds]
juanpau__ has joined #ruby
leafybasil has joined #ruby
juanpau__ has quit [Read error: Connection reset by peer]
xet7_ has quit [Remote host closed the connection]
xet7_ has joined #ruby
mhib has joined #ruby
leafybasil has quit [Ping timeout: 256 seconds]
_axx_ is now known as _axx
chipotle has joined #ruby
Synthead has joined #ruby
c1v0 has quit []
joostliketoast has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
arup_r has quit [Remote host closed the connection]
senayar has joined #ruby
AlexAltea has joined #ruby
wpp has joined #ruby
joostliketoast84 has joined #ruby
<yorickpeterse> morning
busterarm has joined #ruby
choke has joined #ruby
pawnbox has joined #ruby
darkf_ is now known as darkf
babyarm has quit [Ping timeout: 246 seconds]
choke has quit [Client Quit]
lkba has quit [Ping timeout: 252 seconds]
chthon has joined #ruby
Mendenhall has joined #ruby
tfranco has quit [Ping timeout: 268 seconds]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
einarj has joined #ruby
jgt3 has joined #ruby
<wpp> hello, I'm trying to replicate `curl -X GET https://user:passw@https://example.org:5000/rails` (basic auth) with net/http but keep getting HTTPUnauthorized response. Here is a gist of my script: https://gist.github.com/wpp/c35eb222c1720ba10d6d, any pointers would be appreciated.
tfranco has joined #ruby
Oka has quit [Quit: さようなら]
Senjai has quit [Ping timeout: 246 seconds]
Senjai has joined #ruby
eGGsha is now known as eGGshke
<canton7> "https://user:passw@https://example.org:5000/rails"? are you sure? there are two logs of 'http' in there...
<canton7> *lots of
jenrzzz has joined #ruby
<shevy> it's extra secure
hawkface has quit [Ping timeout: 246 seconds]
<wpp> canton7 Oh sorry about that, had replaced the url. But I figured my problem I had copied the '@' from the url version to password...Still early in the morning :)
<wpp> canton7 but thanks for having a look!
<wpp> canton7 and I just did right now, was just about to post in here.
<[spoiler]> yorickpeterse: hi <3></3>
* [spoiler] waits to get slapped with parse.y
eGGshke is now known as eGGsha
radgeRayden_ has quit [Ping timeout: 265 seconds]
<atmosx> morning
Voker57 has joined #ruby
* yorickpeterse slaps [spoiler] around with a crushing student debt
benlovell has joined #ruby
<[spoiler]> That works too
* [spoiler] silently sobs
workmad3 has joined #ruby
krz has joined #ruby
chipotle has quit [Quit: cheerio]
jenrzzz has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
symm- has joined #ruby
dc_ has joined #ruby
Squarepy has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrityunjay has joined #ruby
charliesome has joined #ruby
quazimodo has joined #ruby
TheHodge has joined #ruby
mrityunjay has quit [Client Quit]
jenrzzz has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
mrityunjay has joined #ruby
pawnbox has quit [Remote host closed the connection]
Kallis has joined #ruby
pawnbox has joined #ruby
gamename has joined #ruby
<yorickpeterse> :D
unsymbol has quit [Ping timeout: 244 seconds]
devoldmx has joined #ruby
gregf has quit [Quit: WeeChat 1.1.1]
krz has quit [Ping timeout: 250 seconds]
devoldmx has quit [Ping timeout: 244 seconds]
ndrei has quit [Ping timeout: 244 seconds]
eGGsha is now known as eGGshke
bweston92 has joined #ruby
gregf has joined #ruby
leafybasil has joined #ruby
tfranco has quit [Ping timeout: 272 seconds]
darkhex has joined #ruby
kurtec has joined #ruby
ndrei has joined #ruby
marr has joined #ruby
Pupeno has joined #ruby
anisha has joined #ruby
terlar has quit [Read error: Connection reset by peer]
unsymbol has joined #ruby
OrbitalKitten has joined #ruby
user1138 has quit [Quit: Leaving]
<zenspider> RAWR! yay yay yay... finally conquered a nasty c-extension monster
<agent_white> \o/
arturaz has joined #ruby
kurtec has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> did you kill it? freed the world from some C code?
<zenspider> meanwhile the rocker on my left control key is dying... maybe I'll finally transition to using capslock as control. :P
poli_ has joined #ruby
<zenspider> jhass: quite the opposite. got Hoe working better with rake-compiler and transitioned a dependency I was using to a complete C rewrite locally
astrobun_ has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 256 seconds]
<jhass> :(
<zenspider> went from 4300 lines of C to 471
<zenspider> with almost the same amount of functionality (working on the rest)
<agent_white> zenspider: I'm still waiting for when I want to do that... I've heard good things about doing so :)
<agent_white> Holy moley.
<zenspider> exact: 20 files -> 1, 4500 loc -> 471
<zenspider> time to compile is way down
<zenspider> it's a win across the board
<agent_white> Nice :)
tvw has joined #ruby
poli has quit [Ping timeout: 264 seconds]
<jhass> a win for C
<zenspider> I don't have all the functionality back, but I've mainly been focusing on bootstrapping into a cleanroom impl against a basic demo script
<jhass> is it a win for humanity?
eGGshke is now known as eGGsha
<zenspider> and I've dropped an LGPL dependency
<zenspider> well... the hope is that I wind up with an easy to install gem that newbs can use to quickly visualize easy-to-write simulations
<zenspider> not quite there yet, but I'm zeroing in on it
leat has quit [Remote host closed the connection]
<zenspider> and now that I control the C, I can actually wrap all the drawing primitives that the old dependency didn't bother to
<zenspider> AND!!! real math for all drawing routines
<zenspider> eg: regular trig works
<zenspider> so newbs don't need to learn a whole new way of thinking about it. just use gradeschool coordinate system and it'll wrok
<zenspider> work
krz has joined #ruby
codecop has quit [Remote host closed the connection]
allcentury has joined #ruby
quazimodo has quit [Ping timeout: 246 seconds]
tfranco has joined #ruby
leat has joined #ruby
AlexAltea has quit [Read error: Connection reset by peer]
solocshaw has quit [Ping timeout: 246 seconds]
<Takumo> Hi all, any suggestions for tracking down performance issues in a Rack API?
al2o3-cr has quit [Ping timeout: 255 seconds]
<yorickpeterse> Profile it
<Takumo> (REST API built on Rack)
<Takumo> Well yes, but most of the profiling tools seem to interfere with the output of the app, ideally I want to be able to profile an app while its being used
<Takumo> as its only under certain use cases where the problems happen
<yorickpeterse> You'd have to use some sort of service like New Relic, or whatever FOSS equivalents there might be (if any)
<zenspider> I thought there was a rack middleware for profiling ... I've not used it tho
AlexAltea has joined #ruby
<yorickpeterse> Most other solutions that use ruby-prof, perftools, Ruby's built-in profiler, etc, are not suitable for production
workmad3 has joined #ruby
<zenspider> iirc, tenderlove mentioned it
<yorickpeterse> since they tend to slow things down to a crawl
<yorickpeterse> zenspider: there are a few
<yorickpeterse> e.g. one uses perftools.rb, one uses ruby-prof
arup_r has joined #ruby
<Takumo> yorickpeterse: indeed, I have newrelic on it atm but its not giving me much info
<Takumo> just showing me that I have a problem
<zenspider> perftools is sampling, so it shouldn't affect performance too badly
<zenspider> Takumo: perftools (and prolly others) also provide the ability to wrap a block of code for profiling, so you can push it down to specific areas you want to measure
<zenspider> I need to go to bed tho... good luck
<Takumo> zenspider: that's pretty much what I need I think
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Takumo> this API's response time grows quite quickly with input size
<yorickpeterse> Takumo: if you already use New Relic I'd start with that
<zenspider> Takumo: look at https://github.com/tmm1/perftools.rb/blob/master/README.md at the Usage section
<Takumo> yorickpeterse: indeed, just gotta work out how to tell it to profile this specific code
DoubleMalt has joined #ruby
* zenspider goes to bed
wildlander has quit [Quit: Saliendo]
hawkface has joined #ruby
Iskarlar has joined #ruby
SolarSailor has joined #ruby
SolarSailor has quit [Client Quit]
darkhex has quit [Quit: Textual IRC Client: www.textualapp.com]
mrityunjay has quit [Ping timeout: 246 seconds]
dumdedum has joined #ruby
mrityunjay has joined #ruby
blackmesa has joined #ruby
Mon_Ouie has joined #ruby
joonty has joined #ruby
pawnbox_ has joined #ruby
jgt3 has quit [Ping timeout: 265 seconds]
jgt3 has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
UtkarshRay has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
sevenseacat has quit [Ping timeout: 268 seconds]
ayonkhan has joined #ruby
Averna has joined #ruby
blackmesa has joined #ruby
joonty has quit [Quit: joonty]
blackmes1 has joined #ruby
techsethi has quit [Quit: techsethi]
joonty has joined #ruby
OrbitalKitten has joined #ruby
BTRE has quit [Quit: Leaving]
ssd7 has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
jordanloky has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tfranco_ has joined #ruby
khebbie has quit [Remote host closed the connection]
jordanloky has joined #ruby
tfranco has quit [Ping timeout: 260 seconds]
suchness has joined #ruby
CpuID has quit [Ping timeout: 246 seconds]
lkba_ has joined #ruby
kaps has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Rickmasta has joined #ruby
kurtec has joined #ruby
rubie has joined #ruby
mhib has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
eGGsha is now known as eGGshke
lkba has quit [Ping timeout: 264 seconds]
tfranco_ has quit [Ping timeout: 240 seconds]
rubie has quit [Remote host closed the connection]
krz has quit [Ping timeout: 250 seconds]
tlarevo has joined #ruby
ssd7_ has joined #ruby
bruno- has joined #ruby
twistedpixels has quit [Quit: ZNC - http://znc.in]
twistedpixels has joined #ruby
psy_ has quit [Ping timeout: 252 seconds]
Kallis has quit [Read error: Connection reset by peer]
jordanloky has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has quit [Remote host closed the connection]
kurtec has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rushed has quit [Quit: rushed]
webhat has quit [Quit: No Ping reply in 180 seconds.]
rushed has joined #ruby
r0x0rZ has joined #ruby
webhat has joined #ruby
krz has joined #ruby
phutchins2 has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
eGGshke is now known as eGGsha
arup_r has joined #ruby
tfranco has joined #ruby
techsethi has joined #ruby
havenwood has quit [Ping timeout: 244 seconds]
hawkface has quit [Read error: Connection reset by peer]
AlexRussia has quit [Read error: Connection reset by peer]
Mendenhall has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
allomov has joined #ruby
techsethi has quit [Quit: techsethi]
rodfersou has joined #ruby
rushed has quit [Quit: rushed]
bruno- has quit [Ping timeout: 240 seconds]
anisha has quit [Ping timeout: 265 seconds]
gamename has quit [Remote host closed the connection]
Tempesta has joined #ruby
rushed has joined #ruby
anisha has joined #ruby
khebbie has joined #ruby
techsethi has joined #ruby
ych_ has joined #ruby
rubie has joined #ruby
duncan_bayne has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<duncan_bayne> Hi, can anyone recommend a library for parsing Excel files that doesn't barf on large spreadsheets (~ 30MiB or so)? I've just filed https://github.com/weshatheleopard/rubyXL/issues/199 and https://github.com/woahdae/simple_xlsx_reader because both those libraries burn 6.0GiB+ to open a 30MiB spreadsheet, then my system falls over :(
Alina-malina has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
krz has quit [Ping timeout: 272 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kurtec has joined #ruby
oo_ has quit [Remote host closed the connection]
hmnhf_ has quit [Remote host closed the connection]
hmnhf_ has joined #ruby
dhjondoh has quit [Ping timeout: 250 seconds]
blackmes1 has quit [Ping timeout: 272 seconds]
sdothum has joined #ruby
dionysus69 has quit [Remote host closed the connection]
grenierm has quit [Quit: grenierm]
allcentu1 has joined #ruby
sevenseacat has joined #ruby
Iskarlar_ has joined #ruby
scripore has joined #ruby
sigurding has joined #ruby
pawnbox has joined #ruby
pawnbox_ has quit [Ping timeout: 272 seconds]
allcentury has quit [Read error: Connection reset by peer]
Iskarlar has quit [Read error: Connection reset by peer]
Shidash has quit [Ping timeout: 244 seconds]
nitrix has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
kadoppe has quit [Ping timeout: 244 seconds]
gf3 has quit [Ping timeout: 244 seconds]
Schmidt has quit [Ping timeout: 244 seconds]
scripore has quit [Client Quit]
lampshades has quit [Ping timeout: 260 seconds]
ndrei has joined #ruby
gf3 has joined #ruby
kadoppe has joined #ruby
Shidash has joined #ruby
darkhex has joined #ruby
duncan_bayne has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
hmnhf_ has quit [Ping timeout: 240 seconds]
Iskarlar_ has quit [Ping timeout: 246 seconds]
hmnhf_ has joined #ruby
jgt3 has quit [Ping timeout: 244 seconds]
moeabdol has quit [Ping timeout: 250 seconds]
startupality has joined #ruby
Salehi has quit [Quit: Leaving]
Guest16883 has joined #ruby
Guest13897 has joined #ruby
Guest13897 is now known as xrlabs
[k- has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
[k- has joined #ruby
devoldmx has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
hashrocket has quit [Quit: Connection closed for inactivity]
kurtec has quit [Quit: Textual IRC Client: www.textualapp.com]
devoldmx has quit [Ping timeout: 272 seconds]
stamina has joined #ruby
Rollabunna has joined #ruby
dorei has joined #ruby
ayonkhan has quit [Read error: Connection reset by peer]
ayonkhan has joined #ruby
user1138 has joined #ruby
rubie has quit [Remote host closed the connection]
wjlroe has joined #ruby
tkuchiki has quit [Remote host closed the connection]
duncannz has quit [Ping timeout: 256 seconds]
[k-_ has joined #ruby
dhjondoh has joined #ruby
zlogan85 has quit [Ping timeout: 240 seconds]
jgt3 has joined #ruby
tlarevo has quit []
zlogan85 has joined #ruby
but3k4 has joined #ruby
dhjondoh has quit [Ping timeout: 272 seconds]
dhjondoh has joined #ruby
skade has joined #ruby
maasha has joined #ruby
no0bRus has quit [Quit: leaving]
exadeci has joined #ruby
<maasha> what is the better way of doing: str[10..20] = str[10..20].upcase! ?
<maasha> (I forgot)
dhjondoh has quit [Remote host closed the connection]
greenarrow has quit [Quit: 500]
<Ox0dea> maasha: There isn't one, really, and the bang is of no use there.
syath has joined #ruby
codenapper has quit [Read error: Connection reset by peer]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
codenapper has joined #ruby
<maasha> Ox0dea: oh, year never mind the bang. So how many str copies will be made this way?
<maasha> I strikes me as terribly inefficient
<maasha> *it
<apeiros> the bang isn't just of no use, it's wrong
<apeiros> >> "HI".upcase!
<ruboto> apeiros # => nil (https://eval.in/426734)
<Ox0dea> Worse than useless. :P
<apeiros> it can return nil, deleting your substring
<maasha> apeiros: sure
tfranco has quit [Ping timeout: 265 seconds]
dhjondoh has joined #ruby
<Ox0dea> apeiros: It actually raises a TypeError.
<apeiros> ah, good
<apeiros> then at least you'd notice the bug a bit earlier
* apeiros also prefers str[10,11] over str[10..20]
_blizzy_ has quit [Ping timeout: 246 seconds]
shredding has joined #ruby
<apeiros> but that's personal preference, I guess. and it also somewhat depends on the situation. sometimes I do feel that offset..offset is better suited than offset, length
<apeiros> other than that, same answer as Ox0dea :)
wjlroe has quit [Quit: Textual IRC Client: www.textualapp.com]
moeabdol has joined #ruby
<maasha> right, so using [] this way how many temporary arrays are created behind the scene?
<Ox0dea> Why would any Arrays get created?
<Ox0dea> You're slicing a String.
segy has quit [Ping timeout: 244 seconds]
<apeiros> maasha: none?
<apeiros> at least no ruby array
<maasha> so c arrays
<apeiros> maybe one for the argument passing
segy has joined #ruby
<apeiros> not sure how ruby does that :D
<apeiros> but: almost certainly *entirely* irrelevant to whatever you're doing
<maasha> sure
<Ox0dea> maasha: Ruby tries to share the memory if it can.
<Ox0dea> The SHARABLE_SUBSTRING_P() macro seems some use in string.c, at any rate.
<Ox0dea> So, in the best case, Ruby just pushes the pointer forward as appropriate.
dhjondoh has quit [Quit: dhjondoh]
<Ox0dea> *sees some use
<maasha> ok, so the slice creates a temporary String object?
greenarrow has joined #ruby
<apeiros> s/temporary/
<apeiros> it returns a string, doesn't it? so of course it creates a String object
<Ox0dea> It creates a new String object whose backing memory may simply be that of the original String.
prestorium has joined #ruby
chipotle has joined #ruby
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
joonty has quit [Quit: joonty]
<maasha> Ox0dea: so I can safely assume that this is quite efficient.
<Ox0dea> Sure, why not? :P
<apeiros> IMO if you look for efficiency at that level, you might be using the wrong language
ayonkhan has quit []
<maasha> Ox0dea: always suspicious :o)
<maasha> apeiros: ruby is actually quite ok with a bit of inline C here and there.
<Ox0dea> maasha: For what it's worth, you can use String#replace to modify the original in-place however you'd like.
<Ox0dea> Almost certainly overkill, though.
dgutierrez1287 has joined #ruby
<apeiros> maasha: it's mostly ok even without inline C. but mostly because most problems don't care whether your program is 2-10x slower than an impl. in C could be.
ssd7_ has quit [Quit: leaving]
Azure|dc has joined #ruby
<Ox0dea> That 10 was generous. :P
<apeiros> Ox0dea: if your algorithm isn't linear or less complex, it can quickly go way beyond 10 ;-)
<maasha> right, thanks, back to hacking ...
<[spoiler]> apeiros, Ox0dea: oh yes, yes it can :(
<apeiros> O(n^3) algorithm? ruby only needs to be 3x slower on the baseline to be 27x slower overall…
ldnunes has joined #ruby
ruby[bot] has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
<apeiros> a=x # works
<apeiros> a,*=x # no works :(
<apeiros> must be `a,* = x`
<apeiros> (makes sense, of course, due to *= being a thing)
Azure has quit [Ping timeout: 255 seconds]
<jhass> so we can claim to be a whitespace significant language after all!
startupality has quit [Quit: startupality]
<workmad3> jhass: pretty much every language can claim to be whitespace significant at that sort of level ;)
<Ox0dea> Whitespace is, by definition, the most whitespace-significant language of them all.
DefV has quit [Ping timeout: 246 seconds]
dzejms has joined #ruby
<jhass> workmad3: don't destroy the pun :(
DefV has joined #ruby
blackmes1 has joined #ruby
JoshuaPaling has joined #ruby
Meow-J has joined #ruby
dionysus69 has joined #ruby
CHVNX has quit [Ping timeout: 252 seconds]
sarkyniin has joined #ruby
<Ox0dea> >> 'abcdefghijklmnopqrstuvwxyz'.sub(/(?<=.{10}).{10}/, &:upcase) # maasha
<ruboto> Ox0dea # => "abcdefghijKLMNOPQRSTuvwxyz" (https://eval.in/426743)
<Ox0dea> Something to think on.
<Ox0dea> But not for very long. ;)
<jhass> I hope it's over already
<Ox0dea> How else do we upcase a portion of a string in-place?
<apeiros> Ox0dea: creates a substring too, though
<apeiros> won't get around that :)
<Ox0dea> Does it?
blackmes1 has quit [Ping timeout: 256 seconds]
<apeiros> sure. or on what do you suppose it calls the .upcase method?
<Ox0dea> Maybe there's some Onigmo magic?
startupality has joined #ruby
centrx has joined #ruby
eGGsha is now known as eGGshke
iamninja has quit [Read error: Connection reset by peer]
<livcd> what is the difference when i do this $foo = <<-EOF and $foo = <<EOF ?
iamninja has joined #ruby
joonty has joined #ruby
sigurding has quit [Quit: sigurding]
<TheBrayn> it allows you to indent the EOF at the end
leat has quit [Remote host closed the connection]
<TheBrayn> and <<-'EOF' disables variable interpolation
<livcd> oh can you somehow show me an example ?
Gribo has joined #ruby
<TheBrayn> there should be examples in the documentation, the feature is called 'heredoc'
leat has joined #ruby
<livcd> thx i found it
dhjondoh has joined #ruby
darkhex has quit [Read error: Connection reset by peer]
eGGshke is now known as eGGsha
ych_ has quit [Quit: Textual IRC Client: www.textualapp.com]
zlogan85 has quit [Ping timeout: 264 seconds]
mprelude has joined #ruby
devoldmx has joined #ruby
zlogan85 has joined #ruby
DLSteve has joined #ruby
e3454346456 has joined #ruby
<Ox0dea> What does the `<<=<<` operator do?
symm- has quit [Ping timeout: 250 seconds]
Quandl has joined #ruby
<e3454346456> Anybody knows why this first example code (https://github.com/jarib/browsermob-proxy-rb) works good in IRB but when I run it just like load2.rb on Windows I get the following error message: http://pastebin.com/FvB6Br1X
<ruboto> e3454346456, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/b66a22ae745c772f1949
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<e3454346456> Anybody knows why this first example code (https://github.com/jarib/browsermob-proxy-rb) works good in IRB but when I run it just like load2.rb on Windows I get the following error message: https://gist.github.com/anonymous/b66a22ae745c772f1949
devoldmx has quit [Ping timeout: 265 seconds]
<tobiasvl> Ox0dea: do you have an example? I've never seen it before, would think it's a syntax error
khebbie has quit [Remote host closed the connection]
<Ox0dea> tobiasvl: It was sort of a riddle. :)
<Ox0dea> It's not a syntax error.
<TheBrayn> what does the <º))))>< operator do?
<Ox0dea> TheBrayn: `><` is a syntax error.
pawnbox_ has joined #ruby
<TheBrayn> Ox0dea: something seems fishy
<Ox0dea> Aye, but only the tail.
<Ox0dea> Everything else is kosher.
<sp_> I could do with some A5 wagyu.
<[k-_> )))) is not a syntax error?
Azure has joined #ruby
<Ox0dea> [k-_: No? That's just how you close four method calls.
<e3454346456> Noone has any ideas why that code only works in IRB? What am I missing?
CHVNX has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
Macaveli has joined #ruby
NeverDie has joined #ruby
pawnbox has quit [Ping timeout: 272 seconds]
<Ox0dea> tobiasvl: https://eval.in/426769
Azure|dc has quit [Ping timeout: 265 seconds]
<Ox0dea> There's the <<=<< "operator".
<jhass> >> (((())))
<ruboto> jhass # => nil (https://eval.in/426770)
<jhass> don't even need to call methods
sigurding has joined #ruby
mrityunjay has quit [Remote host closed the connection]
<tobiasvl> Ox0dea: haha. "operator" is a vague term, I see ;)
sepp2k has joined #ruby
<Ox0dea> tobiasvl: For reference: http://stackoverflow.com/q/1642028
<jhass> can we call this ==() the lollipop operator?
khebbie has joined #ruby
<Ox0dea> >> ['==()', '.nil?'].map(&:size)
<ruboto> Ox0dea # => [4, 5] (https://eval.in/426779)
<Ox0dea> We have a winner.
<tobiasvl> Ox0dea: nice!
bloo has quit [Quit: Connection closed for inactivity]
cats has quit [Ping timeout: 265 seconds]
M-prosodyContext has quit [Ping timeout: 250 seconds]
Killerkeksdose has quit [Ping timeout: 250 seconds]
Guest16883 has quit [Ping timeout: 250 seconds]
zacts has quit [Ping timeout: 250 seconds]
Encapsulation has quit [Ping timeout: 250 seconds]
joast has quit [Ping timeout: 250 seconds]
Killerkeksdose has joined #ruby
zacts has joined #ruby
krisquigley has quit [Remote host closed the connection]
lulzmachine has joined #ruby
davidt has joined #ruby
unholycrab has quit [Ping timeout: 244 seconds]
victortyau has joined #ruby
cats has joined #ruby
M-prosodyContext has joined #ruby
chipotle has quit [Quit: cheerio]
<apeiros> in irc, are there any other ways you've seen people address other people than: "NICK, …", "NICK: ", "@NICK …", "<NICK> …"?
krisquig_ has joined #ruby
melter has joined #ruby
<livcd> apeiros: hm just "?"
<Zarthus> apeiros: nick without separator
<apeiros> livcd, Zarthus: can you make an example please?
<wnd> back in the 90s I also observed "-> <nick> ..."
<[k-_> "..." as well
unholycrab has joined #ruby
<Zarthus> apeiros: "apeiros what's up"
<tobiasvl> apeiros – there are many other separators people could use to address people
<jhass> apeiros: I've been hastagged a couple of times
<[k-_> "NiC ..." as well
<jhass> *hash
<apeiros> Zarthus: ah, just a space as separator. ok.
<apeiros> yeah, have that. forgot to list it :D
<jhass> do this, apeiros
<Zarthus> apeiros: Also the ones that address the people at the end
<jhass> (also without ,
<Zarthus> example shown above
<apeiros> hashtagged… people… srsly… :-S
krisquigley has joined #ruby
<Zarthus> apeiros: also addressing multiple people at once
<apeiros> -> <wnd> like this?
<apeiros> <wnd> or like this?
emilkarl has joined #ruby
<[k-_> the quotes are there for a reason
<Ox0dea> Don't forget about the birds, @apeiros.
<apeiros> Ox0dea: that one was in my list ;-)
krisquig_ has quit [Read error: Connection reset by peer]
<Zarthus> apeiros: Also some bots address responses with '(nick) result'
<Ox0dea> apeiros: Use \b and damned be the symbol-havers.
auzty has quit [Quit: Leaving]
<jhass> you'll probably be unable to distinguish "you should ask apeiros" from "please help me apeiros", so not sure it's worth distinguishing mentions from addressing at all
Guest13567 has joined #ruby
livathinos has quit [Read error: Connection reset by peer]
jcutrell has joined #ruby
livathinos has joined #ruby
<apeiros> I only consider nicks at the beginning of a message
Voker57 has quit [Read error: Connection reset by peer]
<Zarthus> you're considering it wrong
<apeiros> I'm not worried about missing a couple of addressed messages because they have the nick in the middle or at the end
<apeiros> Zarthus: feel free to improve it once it's done ;-)
<Zarthus> nicks at the end are quite common and shouldn't be hard to do :P
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> Zarthus: they're hard to do *right*
dfinninger has joined #ruby
Encapsulation has joined #ruby
<apeiros> because "do" is a valid nickname, you see
<apeiros> as is "see"
<Zarthus> if you have a list of nicknames in the channel you can see if they're in there
dopamean_ has joined #ruby
<Ox0dea> apeiros: Wouldn't it be easiest to just ask a TLA for universal IRC logs so that you could query the nicklist at any given time to determine that somebody has been addressed?
howdoi has quit [Quit: Connection closed for inactivity]
<apeiros> o0
<apeiros> no
<Ox0dea> No?
<sevenseacat> lol
<wnd> -> <apeiros> like this
renodice has joined #ruby
<apeiros> wnd: oh wow, never seen that. that's a lot of typing… (the "-> ")
joast has joined #ruby
<apeiros> people really typed that? OO
maasha has quit [Quit: Page closed]
<Ox0dea> wnd: That's precariously close to something members of a certain unpleasant sector of the hidden Web use to covertly identify each other.
bronson has joined #ruby
<Zarthus> back in ye ole days without tabcompletion
gamename has joined #ruby
Guest50 has joined #ruby
zlogan85 has quit [Ping timeout: 250 seconds]
jcutrell has left #ruby [#ruby]
bronson has quit [Ping timeout: 264 seconds]
ruby[bot] has quit [Quit: leaving]
zlogan85 has joined #ruby
gamename has quit [Remote host closed the connection]
dopamean_ has quit [Ping timeout: 272 seconds]
blackmes1 has joined #ruby
blackjid has quit [Max SendQ exceeded]
benlovell has quit [Ping timeout: 244 seconds]
blackjid has joined #ruby
vyorkin has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
bubuntu has joined #ruby
dgutierrez1287 has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
<Ox0dea> Found gzip's fixpoint.
rushed has quit [Quit: rushed]
suchness has quit [Remote host closed the connection]
<jhass> heh
scripore has joined #ruby
dgutierrez1287 has quit [Ping timeout: 240 seconds]
<apeiros> Ox0dea: nice
Schmidt has joined #ruby
<apeiros> now I wonder how much time you spent on this :D
ruby-lang846 has joined #ruby
ruby-lang846 has quit [Client Quit]
<Ox0dea> apeiros: It's not mine.
<Ox0dea> Much more insightful and relevant: http://research.swtch.com/zip
livathinos is now known as livathinos|away
<Ox0dea> His gzip result is 250 bytes, though.
livathinos|away has quit []
Rollabunna has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
livathinos has joined #ruby
Rollabunna has joined #ruby
charliesome has joined #ruby
atomical has joined #ruby
rushed has joined #ruby
cornerma1 has joined #ruby
emilkarl has quit [Quit: emilkarl]
shmilan has joined #ruby
JDiPierro has joined #ruby
hinbody has joined #ruby
enebo has joined #ruby
user1138 has quit [Quit: Leaving]
araujo_ has joined #ruby
araujo_ has quit [Max SendQ exceeded]
cornerman has quit [Ping timeout: 264 seconds]
cornerma1 is now known as cornerman
hmnhf_ has quit [Ping timeout: 240 seconds]
araujo has quit [Ping timeout: 264 seconds]
gambl0re has quit [Ping timeout: 244 seconds]
blackmes1 has joined #ruby
wpp has quit [Ping timeout: 260 seconds]
ta has quit [Remote host closed the connection]
nzst has joined #ruby
platzhirsch has joined #ruby
Averna has quit [Quit: Ex-Chat]
umgrosscol has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
havenwood has joined #ruby
dfinninger has quit [Remote host closed the connection]
Pumukel has joined #ruby
hmnhf_ has joined #ruby
allcentu1 has quit [Ping timeout: 265 seconds]
kaps has left #ruby [#ruby]
symm- has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
dblessing has joined #ruby
gamename has joined #ruby
gamename has quit [Remote host closed the connection]
devoldmx has joined #ruby
wpp has joined #ruby
gamename has joined #ruby
skade has joined #ruby
A_ron has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
mary5030 has joined #ruby
crankharder has joined #ruby
dc_ has quit [Remote host closed the connection]
casadei has joined #ruby
khebbie has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 250 seconds]
devoldmx has quit [Ping timeout: 250 seconds]
khebbie has joined #ruby
rbennacer has joined #ruby
dopamean_ has joined #ruby
Rollabun_ has joined #ruby
arup_r has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 264 seconds]
gamename has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
gamename has joined #ruby
DLSteve has quit [Read error: Connection reset by peer]
gamename has quit [Remote host closed the connection]
lokulin has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
araujo has joined #ruby
gamename has joined #ruby
araujo has quit [Max SendQ exceeded]
Rollabunna has quit [Ping timeout: 240 seconds]
banister has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
joonty has quit [Quit: joonty]
scripore has joined #ruby
benlovell has joined #ruby
northfurr has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
dopamean_ has quit [Ping timeout: 250 seconds]
dgutierrez1287 has joined #ruby
allcentu1 has joined #ruby
banister is now known as banisterfiend
whippythellama has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
emilkarl has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
michael_mbp has joined #ruby
rbennacer has quit [Read error: Connection reset by peer]
xrlabs has quit [Quit: This computer has gone to sleep]
rbennacer has joined #ruby
mary5030 has quit [Remote host closed the connection]
joonty has joined #ruby
benlovell has quit [Ping timeout: 256 seconds]
tkuchiki has joined #ruby
yeticry has joined #ruby
casadei has quit [Remote host closed the connection]
lokulin has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
weemsledeux has joined #ruby
banisterfiend has joined #ruby
benlovell has joined #ruby
Guest50 has joined #ruby
northfurr has quit [Quit: northfurr]
skade has quit [Quit: Computer has gone to sleep.]
blackmes1 has joined #ruby
griffindy has joined #ruby
zlogan85 has quit [Ping timeout: 260 seconds]
vyorkin has quit [Ping timeout: 265 seconds]
skade has joined #ruby
ksteck has joined #ruby
Kruppe has joined #ruby
failshell has joined #ruby
allcentu1 has quit [Quit: WeeChat 1.2]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
gamename has quit [Remote host closed the connection]
gamename has joined #ruby
dopamean_ has joined #ruby
Jardayn has joined #ruby
duggiefresh has joined #ruby
zlogan85 has joined #ruby
Gribo has quit [Read error: Connection reset by peer]
Alayde has joined #ruby
gamename has quit [Client Quit]
<Sou|cutter> >> foo = Proc.new { |x, y| }; [foo.arity, foo.public_method(:call).arity]
<ruboto> Sou|cutter # => [2, -1] (https://eval.in/426891)
haylon has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cnngimenez has joined #ruby
<haylon> If I'm composing an email using Net-Smtp, can I do this kind of substitution in the message body? #{array.each{|name| "name"}}
techsethi has quit [Quit: techsethi]
northfurr has joined #ruby
<Ox0dea> haylon: Please clarify.
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<haylon> I have an array of host names I'm trying to send an email, but instead of them being all in one line, I'd like htem to have a carriage return after each host name. I thought of doing a substitution like that in the message body of my email
quazimodo has joined #ruby
<Ox0dea> >> lambda { |x, y| }.method(:call).arity # Sou|cutter, this is slightly more interesting, and indeed might be a bug.
tfranco has joined #ruby
<ruboto> Ox0dea # => -1 (https://eval.in/426892)
suchness has joined #ruby
rbennace_ has joined #ruby
<Sou|cutter> I suppose it's foolish to check arity on callables since a method, a lambda, and a proc can return different things
xrlabs has joined #ruby
amystephen has joined #ruby
<Ox0dea> Sou|cutter: Why's that relevant? Method, UnboundMethod, Proc, and Proc (lambda) are indeed different things.
<Ox0dea> haylon: array.join("\r"), no?
rbennacer has quit [Ping timeout: 250 seconds]
<haylon> Genius! I'll give that a whack
AlxAltea has joined #ruby
<Sou|cutter> Ox0dea: if your interface accepts callables, you can't verify arity of the callables and fail fast with an ArgumentError - you just have to wait to call it and see if it blows up
bnizzle has joined #ruby
<Ox0dea> Sou|cutter: Granted.
<Ox0dea> I still think it's weird that lambdae lie about their arity.
<Ox0dea> I vaguely recall this having come up on the issue tracker a few weeks ago.
<Sou|cutter> yeah, that is totally weird
<banisterfiend> Ox0dea it's probably cos they just have one standard call method, otherwise they'd have to redefine the call method for each lambda, or put some hack in there
<banisterfiend> and anyway shouldn't you be checking arity on the callable rather than the #call method itself?
<banisterfiend> >> lambda { |x, y| }.arity
<ruboto> banisterfiend # => 2 (https://eval.in/426895)
<Ox0dea> Makes heaps o' sense.
AlexAltea has quit [Ping timeout: 246 seconds]
blackmes1 has quit [Ping timeout: 256 seconds]
<nzst> >> lambda { |x| }.arity
<ruboto> nzst # => 1 (https://eval.in/426900)
<nzst> seems right
g3funk has quit [Quit: ZNC - http://znc.in]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
axl_ has joined #ruby
<Sou|cutter> banisterfiend: I guess if you implement your own callable object (not a proc/lambda), it should also implement arity
<Ox0dea> >> lambda { |*| }.arity # It's right.
<ruboto> Ox0dea # => -1 (https://eval.in/426901)
dgutierrez1287 has quit [Remote host closed the connection]
rushed has left #ruby [#ruby]
cnngimenez has quit [Ping timeout: 265 seconds]
<Sou|cutter> >> class Foo; def call(x, y); end; end; Foo.new.arity # obvious fail, although method(:call).arity works
<ruboto> Sou|cutter # => undefined method `arity' for #<Foo:0x4211fea8> (NoMethodError) ...check link for more (https://eval.in/426902)
<banisterfiend> yeah, you could argue that #arity and #call and so on (and maybe a few other methods) are just part of the callable interface
darthsidious__ has joined #ruby
<banisterfiend> lol TIL about Proc#yield
dopamean_ has quit [Ping timeout: 246 seconds]
<banisterfiend> >> proc { |x| x * 2 }.yield(4)
<ruboto> banisterfiend # => 8 (https://eval.in/426903)
silkfox has joined #ruby
<banisterfiend> weird
go|dfish has quit [Ping timeout: 252 seconds]
blackmes1 has joined #ruby
<Sou|cutter> so it's just another call alias?
<Ox0dea> Sou|cutter: Yep.
<Sou|cutter> how many aliases do you need!?!
<Sou|cutter> hehe
<Ox0dea> There are ~10 ways to invoke a Proc.
<Ox0dea> >> ->{}::()
<ruboto> Ox0dea # => nil (https://eval.in/426904)
techsethi has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
shmilan has quit [Ping timeout: 246 seconds]
northfurr has quit [Quit: northfurr]
sigurding has quit [Quit: sigurding]
Voker57 has joined #ruby
sarkyniin has quit [Read error: No route to host]
gizmore has joined #ruby
blackmes1 has quit [Ping timeout: 250 seconds]
minimuffins has joined #ruby
sarkyniin has joined #ruby
axl_ has joined #ruby
juanpablo____ has joined #ruby
nerium has joined #ruby
<nerium> How do I make it NOT to remove the AAA?
<nerium> "AAABBBCCC".gsub(/(?=AAA)(.+?)(?=CCC)/, "EEE")
go|dfish has joined #ruby
tkuchiki has quit [Remote host closed the connection]
arturaz has quit [Remote host closed the connection]
tjohnson has joined #ruby
shmilan has joined #ruby
<Ox0dea> nerium: ?<= instead of ?=
tkuchiki has joined #ruby
<nerium> Ox0dea: yay, thanks!
<Ox0dea> Sure thing.
Meow-J has quit [Quit: Connection closed for inactivity]
<Ox0dea> That's called a positive lookbehind, for future reference.
<Ox0dea> It checks that it's there but doesn't include it in the match.
dman777_alter has joined #ruby
<dman777_alter> does a case when have to have a else condition?
platzhirsch has quit [Ping timeout: 260 seconds]
<Ox0dea> ?try dman777_alter
<ruboto> dman777_alter, Why don't you try it and see for yourself?
startupality has quit [Read error: Connection reset by peer]
cek has joined #ruby
<dman777_alter> ruboto: because as a general rule in life...never assume. even if it did work, it could be working off of a side effect
<cek> How do i generate json? json.dump gives "{" instead of plain {
haylon has left #ruby [#ruby]
<dman777_alter> cek: JSON.parse() I think
tagrudev has quit [Remote host closed the connection]
startupality has joined #ruby
<cek> JSON.dump(parms['search_data'], open('xx.json', 'w+')) just doesn't produce what i expect
<nerium> Ox0dea: Why dosn’t this work? (?<=(\w+))
<nerium> ”invalid pattern in look-behind”
jas02 has quit [Quit: jas02]
<cek> probably because pattern should be fixed
dman777_alter has left #ruby [#ruby]
<nerium> cek: What do you mean? Cant I used an arbitrary pattern?
sigurding has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<cek> oops, it seems i was trying to dump already dumped json
<cek> nerium: i think not
freerobby has joined #ruby
cek has left #ruby [#ruby]
ruby[bot] has joined #ruby
mallu has joined #ruby
renodice has quit [Ping timeout: 246 seconds]
<apeiros> nerium: (?<=) are called look-behind. their length must be fixed.
Queeniebee has joined #ruby
<apeiros> you can't have quantifiers like +, *, ? or {n,m}
<nerium> apeiros: Aha, so if the length is fixed, it’s okay
<nerium> Good!
<nerium> thanks
<apeiros> (though, ? and {n,m} can be emulated by unrolling by hand)
riotjones has quit [Remote host closed the connection]
<apeiros> i.e., (?<=a{1,3}) is invalid, (?<=a|aa|aaa) is valid
psycho_one has quit [Ping timeout: 255 seconds]
platzhirsch has joined #ruby
codemonkey010101 has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
naftilos76 has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
nanoz has quit [Ping timeout: 240 seconds]
The_Phoenix has joined #ruby
Rickmasta has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
hashrocket has joined #ruby
codemonkey010101 has quit [Quit: Leaving...]
The_Phoenix has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
emooo has joined #ruby
jgpawletko has joined #ruby
Exuma has joined #ruby
tfranco has quit [Ping timeout: 260 seconds]
psycho_one has joined #ruby
mary5030 has joined #ruby
northfurr has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
aganov has quit [Remote host closed the connection]
RegulationD has joined #ruby
northfurr has quit [Client Quit]
shmilan has quit [Ping timeout: 244 seconds]
northfurr has joined #ruby
skade has joined #ruby
Guest50 has joined #ruby
PaulCapestany has quit [Ping timeout: 244 seconds]
kies has joined #ruby
zlogan85 has quit [Quit: Verlassend]
Exuma has quit []
tfranco has joined #ruby
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
techsethi has quit [Quit: techsethi]
_whitelogger has joined #ruby
pawnbox has joined #ruby
northfurr has quit [Quit: northfurr]
towski_ has joined #ruby
nhhagen has quit [Remote host closed the connection]
shmilan has joined #ruby
<akemrir> quit
akemrir has quit [Quit: WeeChat 1.3]
jokke- is now known as jokke
dman777_alter has joined #ruby
emilkarl has quit [Quit: emilkarl]
<dman777_alter> I have a foo variable which contains a string. how come the method singularize is not available on it?
<[k-> because singularize is not a default string method
ruby[bot] has quit [Quit: leaving]
<dman777_alter> [k-: oh...lame. ok. I saw it in api doc
<sevenseacat> for rails, maybe.
<jhass> dman777_alter: it's from the activesupport gem http://api.rubyonrails.org/classes/String.html#method-i-singularize
allcentury has joined #ruby
code1o6 has joined #ruby
<jhass> &ri String#singularize
<`derpy> No results
<jhass> nothing in official docs
<dman777_alter> thanks
<Ox0dea> dman777_alter: You only need to require 'active_support/inflector', mind.
<Ox0dea> In case you don't want or need all the other goodies.
<dman777_alter> cool
<dman777_alter> got it
agent_white has quit [Quit: bai]
<dman777_alter> nice method
[Butch] has joined #ruby
<Ox0dea> ~ $ ruby -r active_support/inflector -e "p 'octopodes'.singularize"
<Ox0dea> "octopode"
towski_ has quit [Remote host closed the connection]
<Ox0dea> Terrible method.
<[k-_> octopi*
benlovell has quit [Ping timeout: 255 seconds]
s00pcan has joined #ruby
<Ox0dea> Pardon?
blackjid has quit [Max SendQ exceeded]
naftilos76 has quit [Ping timeout: 264 seconds]
Limix has joined #ruby
blackjid has joined #ruby
<[k-_> i searched "octopodes", google returned "octopi vs octopuses"
<Ox0dea> > noting that "octopi" derives from the misapprehension that octōpus comes from Latin
rubie has joined #ruby
<[k-_> your face is derived
<[k-_> *misapprehensionly
bigredboots has joined #ruby
tfranco_ has joined #ruby
<Ox0dea> [ facetiously misappropriated derivation intensifies ]
<nerium> How do I get all three occurences of <a> in the block?
<nerium> "<a><a><a>".gsub(/(<a>)+/) { puts $1; "" }
<nerium> Currently I’m only getting one
shmilan has quit [Ping timeout: 246 seconds]
<[k-_> /<a>/
slawrence00 has joined #ruby
slawrence00 has quit [Read error: Connection reset by peer]
khebbie has quit [Remote host closed the connection]
<Ox0dea> nerium: Are you sure you're clear on what #gsub does?
<[k-_> $1 $2 $3
tfranco has quit [Ping timeout: 246 seconds]
<nerium> Ox0dea: Yes, I need to remove all <a>, but I also need it’s value
<nerium> [k-: I don’t know the number of <a>
cschneid_ has joined #ruby
<Ox0dea> nerium: /((<a>)+)/
<nerium> Ox0dea: Aha, thanks
<Ox0dea> Parentheses are like violence.
<[k-_> if it doesnt work, you need more of them
<Ox0dea> This guy groks.
tubuliferous has quit [Ping timeout: 252 seconds]
startupality has quit [Read error: Connection reset by peer]
Pupeno has quit [Quit: Leaving...]
bruno- has joined #ruby
startupality has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
startupality has quit [Client Quit]
dfinninger has joined #ruby
freerobby has quit [Quit: Leaving.]
rihbyne has joined #ruby
rihbyne has left #ruby [#ruby]
snockerton has joined #ruby
nofxx has joined #ruby
<tfranco_> 5
<[k-_> 7
dfinninger has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Ping timeout: 244 seconds]
bruno- has quit [Ping timeout: 240 seconds]
<tfranco_> 11
leat has quit [Remote host closed the connection]
freerobby has joined #ruby
krz has joined #ruby
jacksonmills has joined #ruby
krz is now known as Guest39097
leat has joined #ruby
<Ox0dea> 13
<tfranco_> \o/
<tfranco_> 17
<Ox0dea> 19
<jacksonmills> \0/
ngscheurich has joined #ruby
<tfranco_> 23
<Ox0dea> 29
<pontiki> ?o?
<ruboto> I don't know anything about o
<tfranco_> hm
<tfranco_> 31?
<[k-_> you broke the sequence!
<pontiki> V_o_V
<[k-_> do you even pattern
<Ox0dea> Sequence is kill.
<jacksonmills> 32
<jacksonmills> heh
<Ox0dea> Prepare the pyre.
<jacksonmills> you could design an enum that would yield successive lines of this irc chat room. it could just..go on forever.
kies has quit [Ping timeout: 260 seconds]
<tfranco_> imagine the possibilities
<jacksonmills> i wonder what that would look like
<Ox0dea> Pi is probably normal.
<tfranco_> hm
<[k-_> it would look like this: http://thedailywtf.com/articles/Oh%2c-XML
tfranco_ is now known as tfranco
emooo has left #ruby ["Leaving"]
<jacksonmills> lol
dopamean_ has quit [Ping timeout: 246 seconds]
Zai00 has joined #ruby
khebbie has joined #ruby
dfinninger has joined #ruby
d10n-work has joined #ruby
dumdedum has quit [Read error: Connection reset by peer]
livathinos has quit [Ping timeout: 265 seconds]
<Ox0dea> It sort of looks like one of Bob Ross's mountains turned on its side.
rubie has quit [Remote host closed the connection]
rikkipitt has joined #ruby
<Ox0dea> If Bob Ross painted from the deepest confines of Hell, mind.
Squarepy has quit [Quit: Leaving]
dionysus69 has quit [Ping timeout: 240 seconds]
araujo has joined #ruby
theery has joined #ruby
PaulCapestany has joined #ruby
araujo has quit [Max SendQ exceeded]
<pontiki> no happy little trees
theery has quit [Remote host closed the connection]
wpp has quit [Quit: ZZZzzz…]
devoldmx has joined #ruby
sigurding has quit [Quit: sigurding]
<Ox0dea> pontiki: The whole thing is one big happy tree. :P
chouhoulis has joined #ruby
<pontiki> not so happy
<Ox0dea> No, more of a weeping willow, really.
sigurding has joined #ruby
Helheim has joined #ruby
shakes has joined #ruby
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
e3454346456 has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
vyorkin has joined #ruby
Coldblackice has quit [Ping timeout: 272 seconds]
<failshell> im using sinatra in my app. when i try to turn on thin, i get the following stacktrace: https://gist.github.com/failshell/c05c4a6a1654d75bfda6. disable thin resolves the issue. but i need thin for streaming support
<failshell> any idea what's wrong?
gregf has quit [Quit: WeeChat 1.1.1]
<sevenseacat> how did you 'turn on thin'?
rbennace_ has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Quit: .]
armyriad has quit [Quit: Leaving]
rubie has joined #ruby
rbennacer has joined #ruby
khebbie has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
armyriad has joined #ruby
np0 has joined #ruby
<failshell> sevenseacat: by using set :server. 'thin'
<failshell> in my code
armyriad has quit [Max SendQ exceeded]
<sevenseacat> right, so you're not actually including thin in your app
<sevenseacat> add it to your Gemfile
<sevenseacat> try again
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has quit [Ping timeout: 244 seconds]
<failshell> sevenseacat: ah man. that solved it. thanks!
<failshell> i knew it had to be something stupid
armyriad has joined #ruby
<sevenseacat> np :)
gregf has joined #ruby
RobertBirnie has quit [Client Quit]
snockerton1 has joined #ruby
joonty has quit [Quit: joonty]
PaulCapestany has joined #ruby
kies has joined #ruby
freerobby has quit [Quit: Leaving.]
chouhoulis has quit []
snockerton has quit [Ping timeout: 265 seconds]
ivanskie has joined #ruby
Guest39097 has quit [Ping timeout: 244 seconds]
rehat has joined #ruby
chouhoulis has joined #ruby
thang has quit [Remote host closed the connection]
rcvalle has joined #ruby
lkba_ has quit [Ping timeout: 265 seconds]
Limix has quit [Quit: Limix]
suchness has quit [Ping timeout: 246 seconds]
ruby-lang621 has joined #ruby
sarkyniin has quit [Ping timeout: 240 seconds]
ruby[bot] has joined #ruby
k3asd` has joined #ruby
codecop has joined #ruby
majjoha has quit [Ping timeout: 260 seconds]
codecop_ has joined #ruby
Lucky__ has joined #ruby
sigurding has quit [Quit: sigurding]
sigurding has joined #ruby
sarkyniin has joined #ruby
dopamean_ has joined #ruby
einarj has quit [Remote host closed the connection]
youngbaks has joined #ruby
Soda has joined #ruby
sevenseacat has quit [Quit: .]
khebbie has joined #ruby
ruby-lang621 has quit [Ping timeout: 246 seconds]
sanguisdex has joined #ruby
Guest39097 has joined #ruby
choke has joined #ruby
DLSteve has joined #ruby
blackmes1 has joined #ruby
kies has quit [Ping timeout: 244 seconds]
Hounddog has quit [Remote host closed the connection]
khebbie has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
hololeap has joined #ruby
AlxAltea has quit [Ping timeout: 246 seconds]
towski_ has joined #ruby
hololeap has quit [Client Quit]
Quandl has quit [Ping timeout: 252 seconds]
rubie has quit [Remote host closed the connection]
dfockler has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amclain has joined #ruby
greenarrow has quit [Quit: 500]
blackmes1 has quit [Ping timeout: 256 seconds]
OrbitalKitten has joined #ruby
sideshowcoder has quit [Quit: Connection closed for inactivity]
gix has quit [Ping timeout: 246 seconds]
blackmes1 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
rubie has joined #ruby
meatherly has joined #ruby
joonty has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
OrbitalKitten has quit [Client Quit]
stan has quit [Ping timeout: 255 seconds]
joonty has quit [Client Quit]
RobertBirnie has joined #ruby
OrbitalKitten has joined #ruby
joostliketoast84 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gix has joined #ruby
leat has quit [Remote host closed the connection]
IrishGringo has joined #ruby
leat has joined #ruby
youngbaks has quit [Ping timeout: 265 seconds]
k3asd` has quit [Ping timeout: 250 seconds]
A_ron has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030_ has joined #ruby
platzhirsch has left #ruby [#ruby]
mary5030_ has quit [Remote host closed the connection]
theery has joined #ruby
mary5030_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
mary5030 has quit [Read error: Connection reset by peer]
kies has joined #ruby
Macaveli has joined #ruby
rikkipitt has quit [Quit: Leaving...]
senayar has quit []
fmcgeough has joined #ruby
rippa has joined #ruby
pietr0 has joined #ruby
dopie has joined #ruby
livathinos has joined #ruby
nerium has quit [Quit: nerium]
livathinos has quit [Client Quit]
dgutierrez1287 has joined #ruby
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
reprazent_ has quit [Quit: Bye]
Zai00 has joined #ruby
davedev24 has joined #ruby
dopie has quit [Ping timeout: 246 seconds]
wpp has joined #ruby
Limix has joined #ruby
dgutierrez1287 has quit [Ping timeout: 244 seconds]
krisquigley has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
duggiefresh has quit [Remote host closed the connection]
OrbitalKitten has quit [Read error: Connection reset by peer]
bricker has joined #ruby
OrbitalKitten has joined #ruby
meatherly has quit []
nertzy has joined #ruby
OrbitalKitten has quit [Client Quit]
ofdtrinity has joined #ruby
shmilan has joined #ruby
pyoor has joined #ruby
pyoor has left #ruby [#ruby]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Remote host closed the connection]
meatherly has joined #ruby
danman has joined #ruby
OrbitalKitten has joined #ruby
OrbitalKitten has quit [Client Quit]
Blaguvest has quit []
sigurding has quit [Quit: sigurding]
minimuff1ns has joined #ruby
pabs has quit [Ping timeout: 260 seconds]
minimuffins has quit [Ping timeout: 255 seconds]
finisherr has joined #ruby
techsethi has joined #ruby
dopamean1 has joined #ruby
mleung has joined #ruby
leksster has joined #ruby
ascarter has joined #ruby
pocketprotector has quit [Read error: Connection reset by peer]
khebbie has joined #ruby
pabs has joined #ruby
nhhagen has joined #ruby
pyoor has joined #ruby
dopamean_ has quit [Ping timeout: 264 seconds]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lkba has joined #ruby
<pyoor> is there any better way in webrick to return a mime type given a filename rather than WEBrick::HTTPUtils::mime_type
A_ron has joined #ruby
scottschecter has joined #ruby
rdark has quit [Quit: leaving]
khebbie has quit [Ping timeout: 240 seconds]
ivanskie has joined #ruby
pocketprotector has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wldcordeiro__ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zai00 has quit [Quit: Zai00]
ivanskie has quit [Client Quit]
duggiefresh has joined #ruby
grenierm has joined #ruby
Meow-J has joined #ruby
reprazent has joined #ruby
tfranco_ has joined #ruby
<radens> Silly question: I have access to a module called YARD::Templates::Helpers::HtmlHelper and I want to call the htmlify method in that module. This doesn't work: YARD::Templates::Helpers::HtmlHelper.htmlify
<radens> What's the right way to do this?
<Ox0dea> radens: You need an instance of HtmlHelper on which to call that instance method.
petricore has joined #ruby
<radens> Ox0dea: HtmlHelper is a module not a class
sdfgsdfg has quit [Remote host closed the connection]
enebo has quit [Ping timeout: 264 seconds]
bigredboots has quit [Remote host closed the connection]
<radens> Can you make an instance of a module?
enebo has joined #ruby
dopie has joined #ruby
bootstrappm has joined #ruby
mleung has quit [Quit: mleung]
tfranco has quit [Ping timeout: 244 seconds]
Jackneill has joined #ruby
<Ox0dea> Indeed not.
minimuffins has joined #ruby
<Ox0dea> radens: You'll want to `include` HtmlHelper.
<Ox0dea> You could do so on an anonymous Module if you're only interested in being able to invoke that particular method.
<radens> I only want that method
<Ox0dea> Module.new.include(HtmlHelper).htmlify(...)
<radens> interesting. thanks
bigredboots has joined #ruby
minimuff1ns has quit [Ping timeout: 255 seconds]
failshell has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
FastJack has joined #ruby
<cscheib> is there a way to use each_char and modify the char that you're iterating, or am I approaching this problem wrong?
Spami has quit [Quit: Leaving]
<cscheib> (sorry, gist keeps eating my formatting)
dzejms has quit [Quit: Leaving]
startupality has joined #ruby
A_ron has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Soda has quit [Remote host closed the connection]
<Ox0dea> cscheib: Stop using hard tabs! :(
_djbkd has joined #ruby
A_ron has joined #ruby
<Ox0dea> cscheib: String#tr is your friend here.
<cscheib> Ox0dea: yea, that's github.
jackjackdripper has joined #ruby
<Ox0dea> cscheib: Nope.
<Ox0dea> GitHub stores what you tell it to.
bigredboots has quit [Read error: Connection reset by peer]
<cscheib> them atom or something's hard inserting them with its auto-indent
<cscheib> never had an issue before
bigredboots has joined #ruby
autrilla has joined #ruby
<cscheib> this is code that's been copied back and forth between an "exercise" site a number of times
<cscheib> (codewars)
UtkarshRay has quit [Quit: Leaving]
sigurding has joined #ruby
<Ox0dea> Are you being instructed to approach this problem in some particular way?
chthon has quit [Ping timeout: 244 seconds]
<cscheib> nah
krisquigley has joined #ruby
<cscheib> looking intio string#tr
mhib has joined #ruby
dfinninger has quit [Remote host closed the connection]
jacksonmills has quit [Read error: Connection reset by peer]
hmnhf_ has quit [Ping timeout: 240 seconds]
hmnhf__ has joined #ruby
<cscheib> that particular method of doing things mostly just comes from having done similar things in a similar way in the past
stamina has quit [Quit: WeeChat 1.3]
<cscheib> I know I could always create a new string and append the translation on the end as I go
Spami has joined #ruby
<Ox0dea> Well, that you're aware of that mistake is as decent a starting point as any. Give yourself a light rap on the wrist and become greater than your former self. :)
quazimodo has quit [Ping timeout: 264 seconds]
dgutierrez1287 has joined #ruby
jacksonmills has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
IrishGringo has quit [Ping timeout: 246 seconds]
rbennacer has joined #ruby
yeticry has quit [Ping timeout: 255 seconds]
mleung has joined #ruby
skade has joined #ruby
yeticry has joined #ruby
<cscheib> Ox0dea: believe me, most of the time I know there's a better way, I just don't know the particular methods that'll help me accomplish it another way :P but, eventually, they'll be beaten into my mind eventually
<cscheib> s/eventually$//
Eiam_ has joined #ruby
AndChat|164736 has joined #ruby
_djbkd has quit [Remote host closed the connection]
araujo has joined #ruby
shakes has quit [Quit: Leaving]
araujo has quit [Changing host]
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
barhum2013 has joined #ruby
leat has quit [Remote host closed the connection]
tubuliferous has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
<Ox0dea> cscheib: "Familiarity breeds contempt" doesn't apply to the standard library. :)
wpp has quit [Ping timeout: 246 seconds]
blueOxigen has joined #ruby
<cscheib> heh
leat has joined #ruby
araujo has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
araujo has quit [Client Quit]
IrishGringo has joined #ruby
vyorkin has quit [Ping timeout: 264 seconds]
jcp has joined #ruby
Eiam_ has quit [Ping timeout: 250 seconds]
whiteline has quit [Ping timeout: 260 seconds]
mleung has quit [Quit: mleung]
ByronJohnson has quit [Remote host closed the connection]
northfurr has joined #ruby
michaeldeol has joined #ruby
rbennacer has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amystephen has quit [Ping timeout: 265 seconds]
darkxploit has joined #ruby
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
_djbkd has joined #ruby
shmilan has quit [Ping timeout: 246 seconds]
AndChat|164736 has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
irc_dev has joined #ruby
grenierm has quit [Quit: grenierm]
leat has quit [Remote host closed the connection]
<Ox0dea> cscheib: /eventually$/d
devoldmx has joined #ruby
inty has joined #ruby
leat has joined #ruby
<inty> Hello. What's wrong in "Given /^the input "([^"]*)"$/ do |arg1|" ?
last_staff has joined #ruby
kies has quit [Ping timeout: 240 seconds]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pontiki> what leads you to suspect it's wrong?
<cscheib> Ox0dea: I grok PCRE
<cscheib> :P
<inty> pontiki: Sublime shows that the of " makes it open string
<pontiki> ah
<pontiki> it's sublime's misunderstanding of the " in the middle
psy_ has joined #ruby
mleung has joined #ruby
<pontiki> if you want, change it to "(.*?)"
bigredboots has quit [Remote host closed the connection]
shmilan has joined #ruby
yfeldblum has joined #ruby
ht__ has joined #ruby
<inty> pontiki: Thanks
riotjones has joined #ruby
<Ox0dea> cscheib: Sure, but `s///` is `ed`, technically.
devoldmx has quit [Ping timeout: 255 seconds]
<Ox0dea> Using the `s` command with a blank replacement is the same as just using the `d` command.
darkf has quit [Ping timeout: 246 seconds]
<Ox0dea> Excessive pedantry given that you used `s` "conversationally", but maybe still worth knowing.
lulzmachine has quit [Quit: Connection closed for inactivity]
blackjid has quit [Max SendQ exceeded]
blackjid has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shmilan has quit [Ping timeout: 244 seconds]
syath has quit [Quit: WeeChat 1.2]
syath has joined #ruby
riotjones has quit [Ping timeout: 255 seconds]
meatherly has quit []
inty has quit [Quit: Leaving]
nertzy has joined #ruby
hinbody_ has joined #ruby
bigmac has quit [Ping timeout: 246 seconds]
leat has quit [Ping timeout: 246 seconds]
blackmes1 has quit [Quit: WeeChat 1.3]
<cscheib> Ox0dea: indeed. I have been learned. I guess it's been a while since I've PERLed, and only used regexes in vim (primarily)
leat has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
postmodern has joined #ruby
hinbody has quit [Ping timeout: 246 seconds]
krisquigley has quit [Remote host closed the connection]
borkdude has quit [Quit: ZNC - http://znc.sourceforge.net]
choke has joined #ruby
bootstrappm has quit [Quit: Leaving.]
joostliketoast84 has joined #ruby
joostliketoast84 has quit [Client Quit]
<cscheib> hrmph, don't think .tr is exactly what I wanted, but I found a solution using a gsub block that seems to do what I want... just need to figure out exactly what's occurring
mleung has quit [Quit: mleung]
rakm has joined #ruby
hmnhf__ has quit [Ping timeout: 240 seconds]
bootstrappm has joined #ruby
kies has joined #ruby
casadei has joined #ruby
failshell has joined #ruby
leat has quit [Remote host closed the connection]
shredding has quit [Ping timeout: 252 seconds]
hinbody has joined #ruby
leat has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
<Ox0dea> >> 'GATTACA'.gsub(/[ACGT]/, {'A'=>'T', 'C'=>'G', 'G'=>'C', 'T'=>'A'})
<ruboto> Ox0dea # => "CTAATGT" (https://eval.in/426982)
solars has quit [Ping timeout: 264 seconds]
<Ox0dea> cscheib: Like that, you mean?
arup_r has joined #ruby
hinbody_ has quit [Ping timeout: 240 seconds]
<bootstrappm> you trying to do some DNA mutations Ox0dea? hah
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
solars has joined #ruby
<Ox0dea> bootstrappm: Just pairing bases.
<cscheib> bootstrappm: it's an exercise on a coding site... print the complementary DNA strand
<Ox0dea> cscheib: #gsub's Hash form is occasionally very convenient, but it's overkill for this.
<Ox0dea> >> 'GATTACA'.tr('ACGT', 'TGCA')
<ruboto> Ox0dea # => "CTAATGT" (https://eval.in/426983)
whiteline has joined #ruby
<Ox0dea> All done! :P
JoshL has joined #ruby
casadei has quit [Ping timeout: 244 seconds]
Exuma has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<cscheib> oh, tr actually matches with the char in the saem position on the other side?
<Ox0dea> Right.
Dreamer3 has joined #ruby
<cscheib> cool.
<cscheib> the solution I was looking at did this: dna.gsub(/[ATCG]/) { |base| complement[base] }
jdawgaz has joined #ruby
<tubbo> Ox0dea: gattacaaaaaaaaaaaaaaaaaaa
<cscheib> with complement obviously being the hash of complements
<Ox0dea> cscheib: That could just be `dna.gsub(/[ATCG]/, complement)`.
davedev2_ has joined #ruby
<Ox0dea> Also worth nothing that String#tr won't cycle the replacement characters if there are insufficiently many.
<Ox0dea> >> 'facetious'.tr('aeiou', 'xyz')
<ruboto> Ox0dea # => "fxcytzzzs" (https://eval.in/426984)
<Ox0dea> *worth noting
<cscheib> basically it matches position, or assumes last position
shmilan has joined #ruby
<radens> /join #osuosl-dev
<radens> oops, sorry
TeresaP has quit [Ping timeout: 246 seconds]
chrisja has joined #ruby
Asher has quit [Quit: Leaving.]
dgutierrez1287 has quit [Remote host closed the connection]
borkdude has joined #ruby
baweaver has joined #ruby
dgutierrez1287 has joined #ruby
leat has quit [Remote host closed the connection]
<Ox0dea> /set weechat.prevent_mishaps auto
davedev24 has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
reprazent_ has joined #ruby
leat has joined #ruby
meatherly has joined #ruby
Asher has joined #ruby
vyorkin has joined #ruby
phutchins has joined #ruby
<apeiros> Ox0dea: does that also auto /part when you accidentally /join #php ?
<Ox0dea> apeiros: It auto /exits.
<Ox0dea> Negative reinforcement and all that.
<apeiros> ooooh, clever
reprazent has quit [Ping timeout: 256 seconds]
phutchins2 has quit [Ping timeout: 246 seconds]
bootstrappm has quit [Quit: Leaving.]
Porfa has joined #ruby
diegoaguilar has joined #ruby
<Porfa> hello guys! :)
dgutierrez1287 has quit [Ping timeout: 265 seconds]
<apeiros> hi lady
tfranco_ has quit [Ping timeout: 240 seconds]
<Porfa> I'm need to cross help, I'm gonna ask something in selenium, even though I'm using ruby + selenium gem, I'm not sure if i should ask here, but here there's HEY THOUSAND users, and in selele there's _a-hundred_
<bricker> I'm on the edge of my seat!
<eam> bricker: you're gonna injure your back without proper posture
craysiii has quit [Remote host closed the connection]
Soda has joined #ruby
reprazent_ has quit [Quit: Bye]
<Porfa> please don't do that, i've grown up from 13 to 19 attached with to a chair and stupid pentiums 133mhz.. that was 13 years ago, and I pay the bill every single say when i need to get out of bed
<Porfa> I need click this link "f?p=220:530:14604995767411::NO::IDCAMPANHA_DEL:7218" the link changes every time, the only thing that stays put is the fisrt part.. "f?p=220:530:" the rest changes every single time.. so i thogh i could just "driver.find_element(:partial_link_text, "f?p=220:530:").click but it fails :( any other things i can try?
<Porfa> (cross help in #selenium)
reprazent has joined #ruby
sigurding has quit [Quit: sigurding]
davedev2_ has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
tfranco has joined #ruby
Exuma has quit []
irc_dev has quit [Quit: Bye]
irc_dev has joined #ruby
Porfa has quit [Quit: i need a bnc]
irc_dev has quit [Client Quit]
baweaver has joined #ruby
dfinninger has joined #ruby
mleung has joined #ruby
scripore has joined #ruby
Rickmasta has joined #ruby
sigurding has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
eightfold has joined #ruby
havenwood has joined #ruby
allcentury has joined #ruby
DLSteve has quit [Ping timeout: 255 seconds]
araujo has joined #ruby
araujo has joined #ruby
agni_dev has joined #ruby
dfinninger has quit [Ping timeout: 256 seconds]
_djbkd has quit [Remote host closed the connection]
<agni_dev> Hi
fluchtreflex_ has quit [Remote host closed the connection]
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
angar1 has joined #ruby
<apeiros> hi agni_dev
fluchtreflex has joined #ruby
fluchtreflex has quit [Changing host]
fluchtreflex has joined #ruby
MissionCritical has quit [Ping timeout: 250 seconds]
hololeap has joined #ruby
bnagy has quit [Ping timeout: 260 seconds]
dfinninger has joined #ruby
bnagy has joined #ruby
JohnBat26 has joined #ruby
havenn has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
jordanloky has joined #ruby
eightfold has quit [Quit: eightfold]
scripore has quit [Quit: This computer has gone to sleep]
<agni_dev> apeiros: hello
_djbkd has joined #ruby
hal_9000__ has joined #ruby
baweaver has quit [Remote host closed the connection]
hal_9000 has quit [Ping timeout: 244 seconds]
havenn has quit [Ping timeout: 244 seconds]
davidt has quit [Quit: Leaving]
MissionCritical has joined #ruby
mhib has quit [Quit: Leaving]
sigurding has quit [Quit: sigurding]
scripore has joined #ruby
danman has quit [Quit: danman]
jgpawletko has quit [Ping timeout: 252 seconds]
nhhagen has quit []
vyorkin has quit [Ping timeout: 240 seconds]
GnuYawk has quit [Remote host closed the connection]
jgpawletko has joined #ruby
jgpawletko has quit [Client Quit]
havenwood has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
<havenwood> JRuby OVER 9000!
skade has quit [Quit: Computer has gone to sleep.]
hal_9000_ has joined #ruby
kirun has joined #ruby
<havenwood> Oh, that's not the right Tweet...
* havenwood fails
jgt3 has quit [Ping timeout: 264 seconds]
techsethi has quit [Quit: techsethi]
northfurr has quit [Quit: northfurr]
techsethi has joined #ruby
marjory has quit [Ping timeout: 246 seconds]
The_Phoenix has quit [Read error: Connection reset by peer]
bigredboots has joined #ruby
yqt has joined #ruby
angar1 has quit [Quit: Page closed]
_lexjm has joined #ruby
leat has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
<jhass> so who want's to put 9k bots into #jruby?
leat has joined #ruby
tfranco has quit [Ping timeout: 244 seconds]
<havenwood> celebration style!
<havenwood> maybe 9010 bots
tfranco has joined #ruby
<dfockler> at least 9001
skade has joined #ruby
fluchtreflex has quit [Quit: ZNC - http://znc.in]
nanoz has joined #ruby
fluchtreflex has joined #ruby
fluchtreflex has quit [Changing host]
fluchtreflex has joined #ruby
techsethi has quit [Quit: techsethi]
vmatiyko has joined #ruby
Synthbread has joined #ruby
Synthbread has quit [Read error: Connection reset by peer]
casadei has joined #ruby
Synthbread has joined #ruby
kgirthofer has quit [Remote host closed the connection]
bronson has joined #ruby
Synthead has quit [Disconnected by services]
Synthbread is now known as Synthead
mistermocha has joined #ruby
Synthbread has joined #ruby
codecop_ has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
xrlabs has quit [Quit: This computer has gone to sleep]
kadoppe has quit [Ping timeout: 246 seconds]
symm- has quit [Quit: Leaving...]
timonv has joined #ruby
krisquigley has joined #ruby
bronson has quit [Remote host closed the connection]
kadoppe has joined #ruby
hololeap has quit [Ping timeout: 252 seconds]
r0x0rZ has quit []
pragmatism has joined #ruby
juanpablo____ has quit [Quit: (null)]
shadoi has joined #ruby
<atmosx> reach and touch faith!
juanpablo____ has joined #ruby
Obfuscate has quit [Ping timeout: 246 seconds]
krisquigley has quit [Ping timeout: 265 seconds]
<tfranco> exit
tfranco has quit [Quit: leaving]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kgirthofer has joined #ruby
IrishGringo has quit [Ping timeout: 244 seconds]
juanpablo____ has quit [Ping timeout: 250 seconds]
<radens> So a while ago I cam in here with a question about removing all elements of an array of hashes which satisfy a condition and then putting them at the front of the array. I got a good answer which works for the first element which satisfies the condition, but today I learned that potentially many elements can.
jobewan has joined #ruby
<radens> That is, if I have [{...}, {...}, {:name=>'a',...}, {:name=>'a',...},] I want [ {:name=>'a',...}, {:name=>'a',...},{...},{...}]
beerich has joined #ruby
sigurding has joined #ruby
<Ox0dea> radens: You want to bring those to the front and leave the others as they were?
<radens> yes
beerich has quit [Client Quit]
<Ox0dea> Well, it'd be trivial if Ruby's sort were stable. :/
<Papierkorb> radens: I'd use: the_array.partition{|a| a[:name] == 'a'}.flatten
<Papierkorb> Wouldn't that be stable as well ^ ? Or am I missing something?
mistermocha has quit [Remote host closed the connection]
<Ox0dea> Not "as well", but yeah, should be.
AlxAltea has joined #ruby
northfurr has joined #ruby
<radens> that looks like it will work. I don't see partition in the ruby array docs though.
<Papierkorb> radens: Enumerable#partition
<Ox0dea> Papierkorb: Sorry, I misinterpreted "as well" there.
<Ox0dea> radens: We got into whether or not it'd be wisest to do it in-place last time, right?
<radens> don't think so
<Ox0dea> Hm, I recall suggesting a combination of #rotate and #index for a very similar problem.
<Papierkorb> radens: Oh, #flatten works recursive, well, then .inject(&:+) should work
Obfuscate has joined #ruby
al2o3-cr has joined #ruby
shmilan has quit [Ping timeout: 244 seconds]
pyoor has left #ruby [#ruby]
<Mon_Ouie> You can pass an argument to flatten to limit how many times it recurses
mleung has quit [Quit: mleung]
davedev2_ has joined #ruby
<radens> thanks, it works like a charm Papierkorb
<Papierkorb> cheers
<Papierkorb> Mon_Ouie: oh interesting
<Ox0dea> Papierkorb: inject(&:+) != inject(:+), mind.
<Ox0dea> The latter is slightly more optimized at the bytecode level.
rbennacer has quit [Remote host closed the connection]
<Mon_Ouie> And inject([], :+) if you don't want to get nil for empty arrays
davedev24 has quit [Ping timeout: 246 seconds]
<Papierkorb> Ox0dea: thanks, I'll abuse that when time comes :P
<Ox0dea> You were meant to use it, though?
axl_ has quit [Quit: axl_]
phutchins has quit [Ping timeout: 255 seconds]
<Papierkorb> Yeah ..
<Ox0dea> "Optimize the common case" and all that.
weaksauce has joined #ruby
_djbkd has quit [Remote host closed the connection]
baweaver has joined #ruby
unholycrab has quit [Changing host]
unholycrab has joined #ruby
mleung has joined #ruby
mleung has quit [Client Quit]
jhack has joined #ruby
whiteline has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
Mendenhall has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
mleung has joined #ruby
jefus is now known as jefus_
leat has quit [Remote host closed the connection]
<shevy> hmm
<shevy> Ox0dea, do you omit () in method definitions?
baweaver has quit [Remote host closed the connection]
<shevy> I see that is becoming quite frequent... first havenwood, now tenderlove ...
leat has joined #ruby
dc_ has joined #ruby
<Ox0dea> shevy: I've always done so, and if it feels wrong then I know the signature is too complicated.
tvw has quit [Remote host closed the connection]
dfockler has quit [Remote host closed the connection]
podman has joined #ruby
bnagy has quit [Ping timeout: 260 seconds]
solocshaw has joined #ruby
bnagy has joined #ruby
solocshaw has quit [Remote host closed the connection]
rbennacer has joined #ruby
solocshaw has joined #ruby
baweaver has joined #ruby
axl_ has joined #ruby
<shevy> flughafen I got a new flughafen joke as of late thanks to fefe :D
<Ox0dea> shevy: I almost suggested that it "feels right" because of the uniformity of method definition.
<Ox0dea> Then I considered singleton classes.
<Ox0dea> And then this:
<Ox0dea> >> foo = []; def ({a: foo}[:a]).bar; :omg end; foo.bar
PlasmaStar has quit [Ping timeout: 260 seconds]
<ruboto> Ox0dea # => :omg (https://eval.in/426994)
<shevy> Ox0dea I shall call you "Mr. 3 params methods" henceforthwith
<Ox0dea> Huh?
<shevy> not more than that!
<shevy> is there a maximum amount of number for arguments?
<Ox0dea> Was it 17?
<shevy> hmm
<baweaver> ask Java people, they're particularly keen on finding it.
<shevy> I think the highest I reached was... about 8 or so and that was too high for my head to remember
<Ox0dea> > The `argc' represents the number of the arguments to the C function, which must be less than 17. But I doubt you'll need that many.
<shevy> haha
<Ox0dea> But that's for methods defined in C extensions.
<shevy> oh
cubicool has joined #ruby
<shevy> void rb_define_method(VALUE klass, const char *name, VALUE (*func)(), int argc)
devoldmx has joined #ruby
<Ox0dea> >> sig = 9001.times.map { |i| "a#{i}" } * ?,; eval "def foo #{sig}; end; method(:foo).arity"
<ruboto> Ox0dea # => 9001 (https://eval.in/426995)
<shevy> that's a lot
<cubicool> Hello everyone! I have a module whose intention is to be 'extended' in a Class definition. This should give the extending Class access to a number of module_methods named 'def_foo, def_bar, def_...'. These methods do something specific to my application, but what I'm missing is the ability to get a Binding instance to the DERVIED class from within a method in the module that defines 'def_foo."
<cubicool> The binding that is acquired in 'def_foo' is always a Binding object belonging to the module that is being extended, not the extending Class.
<cubicool> I will try to put a paste up demonstrating.
Guest50 has joined #ruby
<jhass> cubicool: well, the question what do you need from the binding
arian0n has quit [Ping timeout: 264 seconds]
baweaver has quit [Remote host closed the connection]
riotjones has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
arian0n has joined #ruby
Cust0sLim3n has joined #ruby
dfockler has joined #ruby
eightfold has joined #ruby
jhack has quit [Quit: jhack]
workmad3 has quit [Ping timeout: 244 seconds]
jhack has joined #ruby
<cubicool> jhass: It's just necessary for this; at this point, I have a workaround, but its academic. :) I'm curious how I COULD achieve it...
freerobby has quit [Quit: Leaving.]
dc_ has quit []
Lucky__ has joined #ruby
iateadonut has left #ruby [#ruby]
agni_dev has quit [Quit: Bye]
agni_dev has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
k3asd` has joined #ruby
arian0n has quit [Ping timeout: 265 seconds]
<cubicool> ExtraMethods::def_foo, I'd like to be able access a Binding instance of SomeClass implicity, without having to make SomeClass pass it explicitly.
iateadonut has joined #ruby
hololeap has joined #ruby
hololeap has quit [Client Quit]
iateadonut has quit [Client Quit]
Limix has quit [Quit: Limix]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackjid has quit [Max SendQ exceeded]
workmad3 has joined #ruby
<Ox0dea> cubicool: If you're sure it's a Binding you want, you'll almost certainly need to use something like binding_of_caller.
blackjid has joined #ruby
<Ox0dea> If it turns out you just need access to the class being extended, you can define self.extended on ExtraMethods.
<cubicool> I was thinking about extended(cls) myself. How would I use that, though...
<jhass> I don't get what you want from the binding
baweaver has joined #ruby
<Ox0dea> I think he wants users of ExtraMethods to be able to define local variables in the base class...
<cubicool> If possible I'd like to not get hung up on that. I know I do, there's no magic workaround in this case. :)
agni_dev has quit [Ping timeout: 264 seconds]
<Ox0dea> You "want" binding_of_caller.
<cubicool> (In truth, I'm dynamically binding instance methods to an underlying network protocol, similar to how DBUS works, or the old windows COM, etc.)
vyorkin has joined #ruby
<jhass> sorry but the ?xy smell is too strong here. Binding has only 6 methods, which do you need?
<baweaver> ?xy
<ruboto> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<Ox0dea> cubicool: Then you can use Module#extended and Class#define_method?
cantaberry has quit [Ping timeout: 240 seconds]
<jhass> I bet on #eval and ^ too
cantaberry has joined #ruby
jhack has quit [Quit: jhack]
<cubicool> Lets just please call it academic.This always happens in IRC. Everyone wants to show you a different way, and I respect that (and have some workarounds), but I really want to know this because its bugging me. :)
<jhass> Okay: you can't. Period.
<cubicool> Cool, good to kon.
<cubicool> Er, know. It means I can't easily access other elements of the calling class in that manner.
arian0n has joined #ruby
<Ox0dea> cubicool: We're just trying to give you something more than a faster horse.
eightfold has quit [Quit: eightfold]
chussenot has joined #ruby
<cubicool> Ox0dea: Is binding_of_caller something I need to create during extended(), or something already I Ruby (which I doubt)?
<jhass> and it's not about giving you a "different" way
JoshL has quit [Read error: Connection reset by peer]
<jhass> it's to solve your actual problem
casadei has quit [Remote host closed the connection]
<Ox0dea> cubicool: binding_of_caller is a magical gem.
<arup_r> Enumerable#find is O(n) ?
baroquebobcat has quit [Quit: baroquebobcat]
<jhass> binding_of_caller is a hack in a gem useful for debugging but do not use it for production code
<apeiros> arup_r: yes
<arup_r> and Hash#[] ?
<apeiros> O(1)
baroquebobcat has joined #ruby
<arup_r> ok
<apeiros> amortized
havenn has joined #ruby
JoshL has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<Ox0dea> cubicool: Of what "elements of the calling class" do you speak?
leat has quit [Remote host closed the connection]
solocshaw has quit [Remote host closed the connection]
<Ox0dea> Precious few things are truly inaccessible in Ruby.
bigredboots has quit [Remote host closed the connection]
solocshaw has joined #ruby
dagda1 has joined #ruby
leat has joined #ruby
<jhass> give up, they don't want help
<Ox0dea> They want bad advice. ^_^
arian0n has quit [Ping timeout: 240 seconds]
ruby[bot] has quit [Quit: leaving]
jefus_ is now known as jefus
<Ox0dea> "Give a man a poisoned fish..."
jhack has joined #ruby
<baweaver> and they'll stop bugging you
<Ox0dea> ^
<baweaver> welcome do enterprise
havenwood has quit [Ping timeout: 256 seconds]
<jhack> im having some trouble with rspec, seems to not be giving me pass/fails? https://gist.github.com/jhack32/e75b8fd6bc840f9ad830
<baweaver> so what nonsense is happening?
bronson has joined #ruby
bazbing80 has quit [Ping timeout: 244 seconds]
<baweaver> 24 doesn't have an expectation
<baweaver> the other two are pending a gets
bazbing80 has joined #ruby
<Sou|cutter> you want `eq` instead of `==`
<Ox0dea> He also wants to stop testing IO.
<Sou|cutter> also you should initialize @game in a before block
<Sou|cutter> yeah, there's all sorts of issues in there
<baweaver> like most of the init code missing as well
jokke has quit [Disconnected by services]
jokke- has joined #ruby
arian0n has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
bigredboots has joined #ruby
<shevy> this is a puzzle!
_djbkd has joined #ruby
<shevy> like the magic switch
<baweaver> jhack: read up on RSPEC more.
<jhack> yeah going to do that
<jhack> any suggestions?
benlovell has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
<Ox0dea> jhack: You should foremost aim to understand the various meanings of "input" and "output".
haylon has joined #ruby
<haylon> Are there 32bit installations of Ruby for Windows that are >2 ?
leafybasil has quit [Remote host closed the connection]
<havenn> haylon: Ruby 2.0 is in maintenance mode and 1.9 is past end-of-life.
jgt3 has joined #ruby
<havenn> haylon: But yes, there are.
<haylon> I know, but I have a windows 2003 server I'm trying to limp along with some ideas of mine, but so far, Ruby 2.0.0 32bit doesn't work, and the only thing that does work is the 1.9.3. However, I need a few certain gems, that are only compatible with Ruby 2.*.* or higher
<dman777_alter> if response.method === "POST" what am I getting wrong number of args for this?
mleung has quit [Quit: mleung]
<havenn> Oh, >2 not <2, I misread.
jhack has quit [Quit: jhack]
rbennacer has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 250 seconds]
<haylon> I keep getting the error "The procedure entry point _gmtime64 could not be located in the dynamic link lybrary msvcrt.dll"
<unholycrab> compiling ruby 2.2.0 is failing: https://gist.github.com/anonymous/f18f8aeca266b32b9a90
<havenn> dman777_alter: RubyInstaller recommends Ruby 2.1.X 32-bit.
<haylon> for Windows Ruby 2.1.6 and 2.0.0
<jhass> dman777_alter: provide more context, what's response?
<Ox0dea> dman777_alter: You want ==, not ===.
vyorkin has quit [Quit: WeeChat 1.2]
northfurr has quit [Quit: northfurr]
<Ox0dea> Coming from JavaScript?
vyorkin has joined #ruby
meatherly has quit []
mleung has joined #ruby
mleung has quit [Client Quit]
<baweaver> === does very odd things to people from Javascript
<dman777_alter> ah....lol
<baweaver> best to avoid explicitly using it
<dman777_alter> ya
jhack has joined #ruby
<havenn> We want fourquals, we want fourquals!
<havenn> fivequals is excessive
<dman777_alter> jhass: it's treating method as a method call... 'in `method'' response.method === "POST"
<dman777_alter> like response.method()
Guest39097 has quit [Ping timeout: 252 seconds]
<jhass> well, why wouldn't it
<jhass> I asked what response is
<dman777_alter> jhass: error 500 ArgumentError (wrong number of arguments (0 for 1))
IrishGringo has joined #ruby
jhack has quit [Client Quit]
<jhass> I can just repeat the question if you like: provide more context, what's response?
ta has joined #ruby
vyorkin has quit [Client Quit]
vyorkin has joined #ruby
dc_ has joined #ruby
<dman777_alter> jhass: sorry...it's the rails object
<jhass> ?rails dman777_alter
<ruboto> dman777_alter, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<dman777_alter> thanks
dc_ has quit [Remote host closed the connection]
<haylon> So, as I'm reading on GitHub, it seems that the 32bit versions of Rubyinstaller will not work on Windows Server 2003, because of some issue wiht MinGW64 compilation?
bigredboots has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 264 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> This smells like a bad idea
<havenn> haylon: 2003
<haylon> its what I'm stuck with
<havenn> Time travelers!
dc_ has joined #ruby
<Papierkorb> wow, such security
<jhass> hah, that's worse than CentOS
<Ox0dea> dman777_alter: The #method method is defined on "request types", not responses.
<haylon> yeah, I don't like to dwell on it because if it were up to me, this wouldn't be here
<baweaver> haylon: define stuck with
<jhass> I'd say get a $10 VPS somewhere and install a proxy on the windows server :P
<haylon> It was supposed to be retired 8yrs ago, but is still here, and the software running on it, won't run on anything newer
<baweaver> for the sake of your sanity I would seriously consider booting a Debian server instead
<dman777_alter> Ox0dea: thanks!
<haylon> I cannot
Guest96201 has joined #ruby
<haylon> not my call on that
<jhass> we won't tell anybody!
<Papierkorb> baweaver: defined as "oh just keep it it runs fine" until the HDDs die and then the IT is at fault
<jhass> just install a proxy
<haylon> basically
dc_ has quit [Client Quit]
<Ox0dea> >> require 'net/http'; Net::HTTP::Post.new('/').method # dman777_alter
<ruboto> Ox0dea # => "POST" (https://eval.in/427065)
<baweaver> Apache rewrite / redirect rules
<baweaver> there's a certain point when people need to say no and fix things
<baweaver> this is one such case
<Ox0dea> Also September-December.
<baweaver> either that or leave
<haylon> If I had tha tpower, SecureLink would not be in use.
<jhass> Ox0dea: wrong context, it's rails ;)
<haylon> because its anything but secure.
yasha0x80 has joined #ruby
<Guest96201> can someone help me with my Gemfile? "ruby '2.1.7'" works, i want it to be 2.1, period - "Your Ruby version is 2.1.7, but your Gemfile specified 2.1" and i can't seem to get a proper syntax to work
snockerton1 has quit [Quit: Leaving.]
<jhass> yes, that sadly doesn't work, rbenv's disease spreading there
<Ox0dea> Guest96201: Do you need some twiddle-wakka?
<baweaver> ...or maybe a .0
Guest96201 is now known as mshadle
<mshadle> tried 2.1.0: "Your Ruby version is 2.1.7, but your Gemfile specified 2.1.0"
northfurr has joined #ruby
<Ox0dea> mshadle: You need some twiddle-wakka.
<baweaver> ~> 2.1 was it?
<mshadle> what is twiddle-wakka? :p
<Ox0dea> Oui.
<Ox0dea> mshadle: The most Google-able phrase ever.
<mshadle> okay, yes
snockerton has joined #ruby
<mshadle> "Your Ruby version is 2.1.7, but your Gemfile specified ~> 2.1"
<jhass> Guest11091: workaround is to parse RUBY_VERSION manually and raise or something
<baweaver> honestly you want to lock that down
PlasmaStar has joined #ruby
<baweaver> keep devs consistent
<mshadle> that's what i am trying to do with Gemfile
<jhass> I guess ruby RUBY_VERSION.start_with?("2.1") ? RUBY_VERSION : "0" could be an interesting one :P
<shevy> how lame is that
<mshadle> but why can't i say 2.1.x is fine
<Ox0dea> mshadle: That's what ~> 2.1 should've done...
<jhass> well, ~> 2.1.0
<Ox0dea> Oh, right. :x
<baweaver> I'd have to look it up, but lock it down to 2.1.7
<mshadle> i locked it down to 2.1.6, and then the repo bumped up to 2.1.7
<mshadle> the next day
<mshadle> "Your Ruby version is 2.1.7, but your Gemfile specified ~> 2.1.0"
<jhass> I've also see ruby File.read(".ruby-version").strip
<jhass> *seen
TvL2386 has quit [Remote host closed the connection]
jefus is now known as jefus_
code1o6 has quit [Read error: Connection reset by peer]
northfurr has quit [Client Quit]
jefus_ is now known as jefus
<mshadle> that's my Gemfile
leafybasil has joined #ruby
code1o6 has joined #ruby
allomov has joined #ruby
nertzy has joined #ruby
choke has joined #ruby
<Ox0dea> mshadle: Which Ruby version manager are you using?
scripore has joined #ruby
scripore has quit [Max SendQ exceeded]
haylon has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
pbrocker has joined #ruby
pbrocker has quit [Client Quit]
pbrocker has joined #ruby
mleung has joined #ruby
<pbrocker> got a ruby question
<Ox0dea> Prove it.
<shevy> lol
<pbrocker> using slenium
<pbrocker> selenium
rbennacer has joined #ruby
loechel has joined #ruby
<pbrocker> @driver.get WebAutomationConfig::Dev[:url]
<pbrocker> webautomation and dev are both modules
baweaver has quit [Remote host closed the connection]
yasha0x80 has quit [Quit: Textual IRC Client: www.textualapp.com]
<pbrocker> can i replace 'Dev' with a environment variable?
Pumukel has quit [Ping timeout: 252 seconds]
<pbrocker> So @driver.get WebAutomationConfig::ENV['RACK_ENV'][:url]
<jhass> yes, but it's easier to replace WebAutomationConfig::Dev with a variable or constant
loechel is now known as Pumukel
<pbrocker> i am using the modules as like a config file. and want a different module to be accessed based on the environment
<jhass> config = WebAutomationConfig.const_get(ENV["RACK_ENV"].capitalize); config[:url]
<jhass> actually probably only worth it if you have multiple uses, but I'd still separate
<pbrocker> okat cool thanks!
<pbrocker> right! don't repeat yourself! no copy and paste!
jgt3 has quit [Ping timeout: 264 seconds]
s2013 has joined #ruby
jokke- is now known as jokke
jokke has quit [Disconnected by services]
jokke- has joined #ruby
<mshadle> Ox0dea: i am not using any rvm - it is ubuntu trusty (ships with 1.9.1) and brightbox PPA 2.1.7 and using standard update-alternatives to point ruby and related to the 2.1.x packages
gambl0re has joined #ruby
rodfersou has quit [Quit: leaving]
nanoz has quit [Read error: Connection reset by peer]
O-MIRINDA has joined #ruby
majjoha has joined #ruby
akm87 has joined #ruby
opensource_ninja has joined #ruby
JoshL has quit []
cschneid_ has quit [Remote host closed the connection]
nzst has quit [Ping timeout: 246 seconds]
<Ox0dea> mshadle: Are you currently connected to the Internet?
<mshadle> hah. yes
<Ox0dea> Try reinstalling bundler?
<Ox0dea> That's magically solved this problem for some people, apparently.
baweaver has joined #ruby
yfeldblum has joined #ruby
arescorpio has joined #ruby
<mshadle> i install bundler fresh each build :/
<Ox0dea> Well, shit. :/
Keltia has joined #ruby
<mshadle> Your Ruby version is 2.1.7, but your Gemfile specified 2.1
Keltia has quit [Changing host]
Keltia has joined #ruby
<mshadle> https://github.com/coderly/code/pull/15/files other people seem to be just fine with it
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has joined #ruby
yasha0x80 has joined #ruby
<miah> why do you even have the version requirement in your Gemfile?
<mshadle> good point. we inherited it and i was wanting to keep it pinned to 2.1.x
Mendenhall has quit [Ping timeout: 264 seconds]
<mshadle> we do some compass compiling and some fontforge stuff. otherwise, nothing fancy
<miah> if your code _really_ needs to a strict attachmet to ruby, embedd in your gemspec
<mshadle> i know it works in 2.1.x
<miah> but generally you don't need that
<mshadle> ok
<miah> you can still include your travis requirement
majjoha has quit [Ping timeout: 246 seconds]
<mshadle> we don't have CI for this, just a bash build script. which would be part of what travis or a CI tool would run
dling has quit []
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<miah> then specify your ruby versions there. as long as you provide the runtime your code will probably work unless there is some crazy stuff tied to really specific ruby versions.
mleung has quit [Quit: mleung]
<mshadle> and that's what i am concerned about. seems like in the past specific versions of fontforge didn't compile something (or compass) - i forget
<miah> good thing you have travis =)
<miah> you can setup a buildmatrix and test your code across every version of ruby
<miah> i used to test my chef stuff against all supported mri versions + rubinius etc.
syath has quit [Quit: WeeChat 1.2]
<miah> then you can figure out exactly where your code is failing on specific versions and why
<miah> at work we just install our ruby verison and name it '2.x.x' in rbenv, and all our code has .ruby-version to use '2.x.x' and so far we haven't hit anything that didnt work
northfurr has joined #ruby
barhum2013 has quit [Quit: barhum2013]
Eiam has joined #ruby
Coldblackice has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
barhum2013 has joined #ruby
s2013 has joined #ruby
_djbkd has quit [Remote host closed the connection]
rubie has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
nertzy has quit [Quit: This computer has gone to sleep]
rubie has joined #ruby
nerium has joined #ruby
bigkevmcd has joined #ruby
A_ron has quit [Quit: Textual IRC Client: www.textualapp.com]
moeabdol has joined #ruby
mleung has joined #ruby
krisquigley has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
northfurr has quit [Quit: northfurr]
Valeness is now known as anrgywombat
jackjackdripper has joined #ruby
anrgywombat is now known as Valeness
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Galaxy83 has joined #ruby
juanpablo____ has joined #ruby
gambl0re has quit [Ping timeout: 250 seconds]
shmilan has joined #ruby
moeabdol has quit [Ping timeout: 264 seconds]
<mshadle> my solution ;/
barhum2013 has quit [Quit: barhum2013]
ht__ has quit [Quit: Konversation terminated!]
krisquigley has quit [Ping timeout: 240 seconds]
gambl0re has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
<miah> mshadle: ruby 2.2.x isnt supported then?
vmatiyko has quit [Ping timeout: 265 seconds]
<mshadle> not for our builds here. we only use ruby for font and compass compiling during build
<miah> ok
<miah> that looks like it should work fine
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jackneill has quit [Ping timeout: 265 seconds]
jordanloky has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mshadle> yeah. it works. just lame that Gemfile doesn't support its own syntax and examples i see don't work
anisha has quit [Quit: Leaving]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ap4y has joined #ruby
<miah> mshadle: ya, bundle has some weird stuff. i try to keep my gemfiles as simple as possible an dput all the logic in gemspes
juanpablo____ has quit [Ping timeout: 244 seconds]
<miah> s/gemspes/gemspecs
* miah has the lags
ofdtrinity has quit [Remote host closed the connection]
finisherr has quit [Quit: finisherr]
Guest13567 has quit [Changing host]
Guest13567 has joined #ruby
Guest13567 is now known as nitrix
baweaver has quit [Remote host closed the connection]
gix has quit [Ping timeout: 250 seconds]
DoctorMonocular has joined #ruby
yasha0x80 has quit [Quit: Textual IRC Client: www.textualapp.com]
nzst has joined #ruby
nzst has quit [Client Quit]
Guest39097 has joined #ruby
allcentury has quit [Ping timeout: 268 seconds]
silkfox has quit [Ping timeout: 256 seconds]
JDiPierro has quit [Remote host closed the connection]
Blaguvest has joined #ruby
Galaxy83 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
_lexjm has quit [Quit: zzz...]
snockerton has quit [Quit: Leaving.]
poli_ has quit [Ping timeout: 244 seconds]
gix has joined #ruby
snockerton has joined #ruby
Guest39097 has quit [Ping timeout: 246 seconds]
crankharder has quit [Ping timeout: 240 seconds]
havenn has quit [Ping timeout: 244 seconds]
ranchodev has quit [Quit: Textual IRC Client: www.textualapp.com]
chussenot has quit [Quit: chussenot]
jdawgaz has joined #ruby
s2013 has joined #ruby
finisherr has joined #ruby
pbrocker has quit [Quit: Leaving...]
bubbys has quit [Ping timeout: 250 seconds]
<dman777_alter> in ruby, how would I assign {} to body if request.body.read is blank? body = response.body.read || {}
<dman777_alter> I mean response.body.read
bubbys has joined #ruby
chussenot has joined #ruby
<drbrain> dman777_alter: ordinarily isn't it a String?
<jhass> that's again rather specific to the API you're using, so again ?rails
<dman777_alter> thanks!
ldnunes has quit [Quit: Leaving]
mordocai has joined #ruby
arian0n has quit [Read error: Connection reset by peer]
last_staff has quit [Read error: Connection reset by peer]
mshadle has left #ruby [#ruby]
<mordocai> Hey everyone! Anyone know of any maintained generative/property based testing frameworks for ruby? The only one I have so far been able to find was https://github.com/arronmabrey/generative which doesn't look actively maintained and doesn't have narrowing.
chipotle has quit [Quit: cheerio]
<mordocai> Sorry that's a fork from https://github.com/justincampbell/generative
<mordocai> Basically same story though
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pumukel has quit [Remote host closed the connection]
Eiam has quit [Read error: Connection reset by peer]
ERIK_ has joined #ruby
wldcordeiro__ has quit [Quit: Leaving because reasons...]
wldcordeiro__ has joined #ruby
mary5030_ has quit [Remote host closed the connection]
duggiefresh has quit []
havenwood has joined #ruby
cball has quit [Quit: Leaving]
allomov has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
Eiam has joined #ruby
<mordocai> Ox0dea: Ah cool. yeah, that looks like it is in a transition to be more actively developed. Thanks! I'll try it out
lkba has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
<Ox0dea> mordocai: Happy to help.
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AllNamesTaken99 has joined #ruby
<AllNamesTaken99> aa
arup_r has quit [Quit: Leaving]
<jhass> hi?
cball has joined #ruby
jenrzzz has joined #ruby
<AllNamesTaken99> ok guys I'm stuck in a predicament with nested hashes. I have a table that displays data. This is the code https://gist.github.com/Polyglotting/ac0e98020a4073c94355 everything works when I delete "id_symbol, " from the array
<AllNamesTaken99> how do I point to my hashes symbols while leaving id_symbol in the array?
icarus has joined #ruby
Guest39097 has joined #ruby
<AllNamesTaken99> if I delete id_symbol it works if I type name[0][:name] if I leave id_symbol I don't know how to point to things
<jhass> call to_h after the map
<AllNamesTaken99> undefined method `to_h' for #<Array:0x007ff9ba386b28>
<jhass> but you probably should be using strings if it's user (=any kind of external) input
<jhass> sounds like your Ruby version is old
OrbitalKitten has joined #ruby
<AllNamesTaken99> it's ruby 2.0.0
<AllNamesTaken99> will I run into bugs for trying to update the ruby version? I'm using the roo excel gem
mleung has quit [Quit: mleung]
<jhass> well, that's in maintenance mode, retirement scheduled for February next year ;)
<AllNamesTaken99> and I don't know if everything will break
cnngimenez has joined #ruby
<AllNamesTaken99> I'm adding upon someone elses code, so I'm not sure if it's safe to update
devoldmx has joined #ruby
<jhass> me neither, but the 2.x upgrades were pretty painless
<AllNamesTaken99> ok I'll try, just rename ruby in the gemfile?
<jhass> anyway, the pre 2.1 version of #to_h is Hash[...]
SCHAAP137 has quit [Quit: Leaving]
<jhass> but you should consider updating anyway
O_MIRINDA has joined #ruby
O-MIRINDA has quit [Read error: Connection reset by peer]
<AllNamesTaken99> thanks jhass
Jardayn has quit [Read error: Connection reset by peer]
<jhass> also
<jhass> ?guys AllNamesTaken99
<ruboto> AllNamesTaken99, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<AllNamesTaken99> are you offended
gregf has quit [Quit: WeeChat 1.1.1]
Guest39097 has quit [Ping timeout: 256 seconds]
<jhass> it's a simple thing we're asking, take it or leave it
<mordocai> I use everyone. Nice and neutral.
<wasamasa> I just omit that part of the sentence
Lycanii has quit [Quit: Konversation terminated!]
<mordocai> Feels weird to me for some reason, but definitely works.
<jhass> anyway, discussion about it is ?ot ;)
<AllNamesTaken99> I'm not an ass kisser so I won't bend over and talk how you want me to, it's fine if it makes you bitter
cball has quit [Ping timeout: 244 seconds]
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<AllNamesTaken99> if you don't associate with guys then you could ignore anyone who says it
riotjones has joined #ruby
Jardayn has joined #ruby
devoldmx has quit [Ping timeout: 244 seconds]
<havenwood> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<AllNamesTaken99> you broke your own rules
<jhass> and there I thought you weren't one of the trolls
O_MIRINDA has quit [Ping timeout: 256 seconds]
chipotle has joined #ruby
blackmesa has joined #ruby
ordepdev has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
_lexjm has joined #ruby
rbennace_ has joined #ruby
moeabdol has joined #ruby
<nerium> How do I match A23, but not 123? "A23".gsub(/(?!\d+)23/, "B")
<jhass> remove the +
<jhass> and ?<!, ?! is lookahead
Lovich has joined #ruby
<Lovich> hey guys
<Lovich> question
baweaver has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krisquigley has joined #ruby
Mendenhall has joined #ruby
vbatts|w1 has joined #ruby
rbennacer has quit [Ping timeout: 264 seconds]
herrphon has joined #ruby
rbennace_ has quit [Ping timeout: 255 seconds]
quazimodo has joined #ruby
dopamean1 has quit [Ping timeout: 244 seconds]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> you know IRC has a message length limit?
<jhass> don't type up too much ;)
juanpablo____ has joined #ruby
<AllNamesTaken99> what's the question lovich
Lovich has left #ruby [#ruby]
<apeiros> none, obviously
havenwood has quit [Ping timeout: 264 seconds]
krisquigley has quit [Ping timeout: 250 seconds]
<wasamasa> lol
benlovell has joined #ruby
<apeiros> AllNamesTaken99: having manners isn't ass-kissing.
k3asd` has quit [Ping timeout: 244 seconds]
atomical has joined #ruby
<apeiros> I wonder where you've got that idea from…
<jhass> apeiros: you too, #ruby-offtopic
<apeiros> jhass: true
fmcgeough has quit [Quit: fmcgeough]
vbatts|w1 has quit [Quit: MeSoChatty 1.2]
Aswebb_ has joined #ruby
shmilan has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
benlovell has quit [Ping timeout: 260 seconds]
dagda1 has joined #ruby
Rickmasta has joined #ruby
bronson has joined #ruby
chouhoulis has joined #ruby
O-MIRINDA has joined #ruby
Musashi007 has joined #ruby
gambl0re has quit [Ping timeout: 272 seconds]
kirun has quit [Remote host closed the connection]
np0 has quit [Quit: leaving]
solars has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
Lucky__ has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
gregf has joined #ruby
bigredboots has joined #ruby
umgrosscol has quit [Remote host closed the connection]
Moonlightning has quit [Read error: Connection reset by peer]
Moonlightning has joined #ruby
decoponyo has quit [Read error: Connection reset by peer]
Limix has joined #ruby
arescorpio has quit [Quit: Leaving.]
grenierm has joined #ruby
baweaver has quit [Ping timeout: 256 seconds]
decoponio has joined #ruby
_djbkd has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
bigredboots has quit [Ping timeout: 244 seconds]
<zenspider> nerium: /A23/
<nerium> zenspider: what?
<zenspider> matches A23 and not 123
<zenspider> very specific requirement == very specific regexp
<jhass> /\AA23\z/
<nerium> zenspider: It’s a simpleified example
<zenspider> at that point you might as well s == "A23"
<zenspider> nerium: overly so.
<jhass> "match" not "compare"
<zenspider> jhass: same thing at that point
moeabdol has quit [Quit: WeeChat 1.3]
victortyau has quit [Quit: Leaving]
vyorkin has quit [Quit: WeeChat 1.2]
JohnBat26 has quit [Ping timeout: 252 seconds]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> /[^1]23/
ngscheurich has quit [Ping timeout: 244 seconds]
Oka has joined #ruby
vyorkin has joined #ruby
whippythellama has quit [Quit: WeeChat 1.3]
<nerium> zenspider: (?:(?!\d+).)23
kies has quit [Ping timeout: 260 seconds]
<zenspider> that's doesn't fit the requirements of your question
<zenspider> anyone around here know rake-compiler? I've got a _fairly_ basic setup that works, and then immediately turns around and warns me about having build objects in lib
joostliketoast84 has joined #ruby
iamninja has quit [Ping timeout: 240 seconds]
<nerium> zenspider: Yes it does
allcentury has joined #ruby
nik_-_ has joined #ruby
<zenspider> no, it matches more than your requirements
ghr has quit [Ping timeout: 268 seconds]
<nerium> zenspider: So?
_djbkd has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
<apeiros> zenspider: pearls…
Mon_Ouie has quit [Ping timeout: 268 seconds]
chussenot has quit [Quit: chussenot]
baweaver has joined #ruby
<zenspider> before swine?
<jhass> nerium's vague requirements are going for days now, why do you still bother
<zenspider> argh. the rocker switch on my control key is dying :(
<apeiros> jhass: gone
<apeiros> zenspider: yupp
<zenspider> this is bad. I haven't typed on a sun type 3 kbd in forever
nertzy has joined #ruby
<jhass> apeiros: yes
<jhass> I said it about them, not to them
<apeiros> ah, lol
<apeiros> I see
<apeiros> didn't even read beyond the nick
<zenspider> jhass: they're NOT vague. they're incredibly specific and easy to do. :)
sbhatore has joined #ruby
IrishGringo has quit [Ping timeout: 246 seconds]
mleung has joined #ruby
shinnya has joined #ruby
<jhass> they're vague in the sense of not stating their actual requirements/not providing enough examples to properly represent it
<zenspider> apparently this person needs a little more pedantry in their life if they're going to grok regexps
<apeiros> or programming
<apeiros> after all, programming is arguing with the worlds greatest pedant…
<zenspider> apeiros: feature request: automute + auto-unmute via a registered question that that user needs to correctly answer. can be testable via ruboto's repl
<jhass> so they are vague about their requirements, that that leads to a more specific question is not all that relevant
vyorkin has quit [Quit: WeeChat 1.2]
<apeiros> zenspider: funny, but I think rather incinerating, no? :)
vyorkin has joined #ruby
<zenspider> apeiros: win win either way, no?
enebo has quit [Quit: enebo]
mleung has quit [Client Quit]
sbhatore1 has joined #ruby
<apeiros> zenspider: source will probably be on github this WE (locked repo at start). shall I ping you? :)
<zenspider> sure, I guess
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sbhatore1 is now known as jaimessi
<zenspider> hrm... ok. it's definitely building in the wrong place and then copying all build artifacts into the staging area under tmp
<zenspider> IDGI
sbhatore has quit [Ping timeout: 260 seconds]
Aswebb_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
gsd has joined #ruby
gsd has quit [Client Quit]
jdawgaz has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cheerio]
tkuchiki has joined #ruby
Aswebb_ has joined #ruby
tmtwd has joined #ruby
Eddieh_ has quit [Read error: Connection reset by peer]
cball has joined #ruby
<zenspider> and there is no #rake-compiler
<zenspider> :(
vyorkin has quit [Ping timeout: 246 seconds]
<dfockler> I was reading through the docs, and it looks simple enough
mleung has joined #ruby
AllNamesTaken99 has quit [Ping timeout: 246 seconds]
vyorkin has joined #ruby
<zenspider> theory and practice are the same, in theory...
tkuchiki has quit [Remote host closed the connection]
<zenspider> I've got two related problems, but the first of which just seems self contradictory to how they want to do things
danman has joined #ruby
<zenspider> I think I need to make their makefile a bit more verbose to see what it's actually doing under the covers
moeabdol has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
ivanskie has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
mleung has quit [Client Quit]
Guest39097 has joined #ruby
tkuchiki has joined #ruby
tno has joined #ruby
chrisja has quit [Quit: leaving]
<banisterfiend> zenspider you are the scholar of the dark armchair, branches and rain hurl themselves against the window of your library
grenierm has quit [Quit: grenierm]
<zenspider> > examine books
mary5030 has joined #ruby
<zenspider> > examine library
<zenspider> > look around
<zenspider> damnit... this game sucks
jgt3 has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> now I want to put a zork in #ruby-offtopic
<Coraline> zenspider: I have a Zork-like in my private channel
<havenwood> Coraline: :D
<Coraline> It even has a grue
mleung has joined #ruby
<zenspider> ok. defining $objs was my first error. let rake-compiler handle it. still not sure how to do the sub-library... I'll study nokogiri's system more
Voker57 has quit [Remote host closed the connection]
dman777_alter has quit [Quit: Lost terminal]
Guest39097 has quit [Ping timeout: 240 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jcdesimp has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Quit: Musashi007]
hal_9000__ has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SCHAAP137 has joined #ruby
SCHAAP137 has joined #ruby
cnngimenez has quit [Ping timeout: 268 seconds]
ghr has joined #ruby
[k- has quit [Ping timeout: 264 seconds]
hal_9000_ has quit [Ping timeout: 246 seconds]
choke has joined #ruby
damoncasale has joined #ruby
_lexjm has quit [Quit: zzz...]
<damoncasale> Afternoon/evening, folks...
<damoncasale> Newbie Ruby user here, attempting to maintain existing source code.
pawnbox has quit [Remote host closed the connection]
<snockerton> is there a method to search a string like String.contains?("foo")
joostliketoast84 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Jardayn has quit [Quit: Leaving]
<damoncasale> Getting an error with celluloid: .rvm/gems/ruby-2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:39:in `check': wrong number of arguments (1 for 0) (ArgumentError)
<zenspider> snockerton: have you looked at the doco at all?
dfinninger has quit [Remote host closed the connection]
<Radar> snockerton: Yeah there is a method.
<damoncasale> I've googled and the stack trace doesn't go through listen, compass, etc. so not sure what's going on.
<Radar> snockerton: It's INCLUDEd in the documentation
mordocai has quit [Remote host closed the connection]
<pragmatism> snockerton includes?
<pragmatism> snockerton #includes?
<snockerton> yea but not for substrings
<snockerton> F
<Radar> snockerton: Wat
<pragmatism> But yeah, read the docs dude.
<Radar> snockerton: Example please
* snockerton crawls back under his keyboard.
vyorkin has quit [Quit: WeeChat 1.2]
<zenspider> pragmatism: try not to just give an answer, esp for such a low bar. teach them to learn
<pragmatism> "read the fucking docs".include?("fuck") #=> true
* Radar enjoys the part where people linked to the docs page
ghr has quit [Ping timeout: 268 seconds]
<zenspider> damoncasale: how does said existing source declare its dependency on celluloid ?
<damoncasale> I'm not sure, still trying to find that.
<zenspider> is there a Gemfile? or a *.gemspec ?
<pragmatism> zenspider Who knows, maybe he doesn't have access to port 80.
<zenspider> damoncasale: ^
<zenspider> pragmatism: still has `ri`
<damoncasale> I see Gemfile.lock, and celluloid is declared as a dependency of sidekiq.
<pragmatism> True story.
<damoncasale> celluloid (>= 0.15.2)
<damoncasale> Dependency of:
<zenspider> damoncasale: if there is a Gemfile.lock, there is probably a Gemfile
<damoncasale> sidekiq (2.17.7)
<damoncasale> Yes.
<zenspider> is it a direct dependency? or transitive?
<damoncasale> How do I tell?
<damoncasale> I see a two-space indent under sidekiq.
<zenspider> stop looking at Gemfile.lock
<baweaver> transitive means something else included it
<zenspider> is your project depending on celluloid, or getting it via a declared dep on sidekiq?
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
<zenspider> ">=" dependencies are bullshit, btw
<zenspider> and cause this sort of pain
<Coraline> So I chased an etcd-ruby bug all day, assuming I had done something stupid with Docker, only to find out after experimentation that Net::HTTP can't resolve Docker hostnames like foo.docker
<damoncasale> It's not listed at all in Gemfile.
<Radar> damoncasale: Gist your Gemfile please
<damoncasale> Ok sec.
Yzguy has joined #ruby
<miah> Coraline: fun =)
<Coraline> I need this yesterday so it looks like I need to make my own etcd client
<Coraline> Sigh
wldcordeiro__ has quit [Remote host closed the connection]
<Coraline> open-uri works fine
wldcordeiro__ has joined #ruby
<zenspider> which probably implies that resolv.rb works fine too
<miah> ya
jhn has joined #ruby
s2013 has joined #ruby
<Radar> damoncasale: Sidekiq depends on celluloid.
<damoncasale> Yes. :)
Swappticon has joined #ruby
<Radar> damoncasale: Gist complete stacktrace from error please.
<damoncasale> Ok, sec.
<damoncasale> And I'm being called away from keyboard so I won't be able to stick around for long, but sec.
<Radar> understood
<Radar> understood
<Radar> Whoops
<zenspider> damoncasale / Radar: well, the problem is that their dependency is >= 0.15.2 but has resolved to 0.16.0
havenwood has quit [Ping timeout: 264 seconds]
<Radar> Using a v. old version of Sidekiq
nik_-_ has quit [Quit: nik_-_]
<Radar> Could probably solve it by updating Sidekiq
<zenspider> damoncasale: if you add a direct dependency on celluloid with a specifier of: "~> 0.15.0" this should (hopefully) take care of itself.
wldcordeiro__ has quit [Remote host closed the connection]
<damoncasale> Ah.
<Radar> zenspider's suggestion will also work
dopie has quit [Quit: This computer has gone to sleep]
<Radar> 2.17.7 is from Feb 2014.
<zenspider> Radar: upgrading sidekiq can have exactly the same problems
<zenspider> just closer to the source
wldcordeiro__ has joined #ruby
<damoncasale> Ok, well, I'll try setting the dep to ~> 0.15.0 when I come in tomorrow, and thanks for the help. :)
<damoncasale> Need to head out.
mleung has quit [Quit: mleung]
RegulationD has quit [Remote host closed the connection]
jaimessi has quit [Quit: jaimessi]
<zenspider> damoncasale: on _celluloid_, not sidekiq
failshell has joined #ruby
<zenspider> ie, you're adding a new dep to lock it in
jesterfraud has joined #ruby
_djbkd has joined #ruby
wldcordeiro__ has quit [Remote host closed the connection]
failshell has quit [Ping timeout: 244 seconds]
Soda has quit [Remote host closed the connection]
bigredboots has joined #ruby
dgarstang has joined #ruby
<dgarstang> Been at this for hours. Trying to iterate over ec2 instances with ruby sdk. What do I do with a #<Aws::Resources::Collection:0x007fb53c7454e8>? how do I iterate it? I can't find ANY examples of this
SCHAAP137 has quit [Quit: Leaving]
sarkyniin has quit [Quit: Quit]
quazimodo has joined #ruby
weemsledeux has joined #ruby
<zenspider> dgarstang: what have you tried?
bigredboots has quit [Ping timeout: 255 seconds]
wldcordeiro__ has joined #ruby
jordanloky has joined #ruby
<zenspider> ... yup
rakm has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
<dgarstang> zenspider: instances.each { |x| puts x }
<dgarstang> zenspider: That barfs
damoncasale has quit [Ping timeout: 256 seconds]
<baweaver> barfs what
<dgarstang> zenspider: I have no idea what to do with a Aws::Resources::Collection object
dopie has joined #ruby
<baweaver> need more details like error messages.
<zenspider> "barf" is uninformative
<dgarstang> zenspider: /Users/doug/.chefdk/gem/ruby/2.1.0/gems/aws-sdk-core-2.1.14/lib/aws-sdk-core/param_validator.rb:26:in `validate!': unexpected value at params[:filters][0][:instance_id] (ArgumentError)
quazimodo has quit [Ping timeout: 255 seconds]
<dgarstang> line 26 is a comment line for crying out loud
<baweaver> It's lazy
<baweaver> Which means the actual error is your filter
<zenspider> so it has nothing to do with the each? remove the puts and run again
<baweaver> what's instance_id?
<baweaver> that'll be it more than likely.
Rollabun_ has quit [Read error: Connection reset by peer]
wldcordeiro__ has quit [Remote host closed the connection]
<dgarstang> baweaver: If I remove the instances.each { |x| puts x } (which comes after the filter), the error goes away
dfinninger has joined #ruby
<baweaver> because it's lazy
<baweaver> the error is still there
finisherr has quit [Quit: finisherr]
tkuchiki has quit [Remote host closed the connection]
<baweaver> the second you call any enumeration on it, it'll be back
<dgarstang> baweaver: i don't know what that means. ruby doesn't proces lines in the order they appear?
* zenspider sighs
<baweaver> Lazy means it will not call until you want a value from it
wldcordeiro__ has joined #ruby
<zenspider> baweaver: this one is all yours
* dgarstang counts to 10 slowly
<baweaver> zenspider: yeah, I contribute to the sdk
<dgarstang> ok, it's the filter. if I try and undertsand the rest my blood pressure will just go up
<baweaver> 1.upto(Float::INFINITY).map { |x| x * x } # What would that do?
<dgarstang> I am curious though how a backtrace that points to a commented line is useful by any definition
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> It crashes from infinite loop because Ruby tries to evaluate the nature of infinity
<baweaver> "unexpected value at params[:filters][0][:instance_id]"
<baweaver> seems useful to me
hinbody_ has joined #ruby
<baweaver> >> 1.upto(Float::INFINITY).lazy.map { |x| x * x }.take(10)
<ruboto> baweaver # => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:upto(Infinity)>>:map>:ta ...check link for more (https://eval.in/427168)
<dgarstang> baweaver: That's not line 26. Line 26 is further down and a comment line
juanpablo____ has quit [Quit: (null)]
dopie has quit [Quit: This computer has gone to sleep]
<baweaver> doesn't matter, your error is teh param
<baweaver> the*
juanpablo____ has joined #ruby
<dgarstang> baweaver: fine. I'm still wondering if ruby normally throws errors pointing to commented lines tho?
<baweaver> I'd have to see the code to tell
dorei has quit []
wldcordeiro__ has quit [Remote host closed the connection]
Limix has quit [Quit: Limix]
<baweaver> which would involve delving the sdk's validation
<zenspider> dgarstang: stfu and listen to baweaver. he's spending his time trying to help you
hinbody has quit [Ping timeout: 264 seconds]
ap4y has quit [Quit: WeeChat 1.3]
danman has quit [Ping timeout: 246 seconds]
<baweaver> if the instance_id doesn't match /\ai-[a-f0-9]{6,}\Z/
<drbrain> line 26 is not a comment line
<dgarstang> zenspider: line 15.
<dgarstang> line 15 is empty
<drbrain> ↑ note that the tag in URL matches the version you are using for the error at 16:08
<drbrain> (Pacific time)
<dgarstang> ah actually
<dgarstang> scrap that. it's just the badly formatted backtrace
<zenspider> dgarstang: idgaf. listen to baweaver
* baweaver is shuffling about docs
jgt3 has quit [Ping timeout: 264 seconds]
juanpablo____ has quit [Ping timeout: 255 seconds]
mleung has joined #ruby
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<baweaver> The security token included in the request is invalid. (Aws::AutoScaling::Errors::InvalidClientTokenId) # dgarstang ???
Mendenhall has quit [Ping timeout: 240 seconds]
wldcordeiro__ has joined #ruby
_djbkd has quit [Remote host closed the connection]
<dgarstang> searching for an example of what filter syntax should look like...
hinbody_ has quit [Ping timeout: 260 seconds]
meatherly has joined #ruby
<dgarstang> all I seem to get is library docs
ap4y has joined #ruby
mleung has quit [Client Quit]
<dgarstang> you'd think 'aws ec2 instances filter instance id ruby' on google would retrieve something
hinbody has joined #ruby
dfockler has quit [Remote host closed the connection]
<Radar> This is your stacktrace: .../gems/aws-sdk-core-2.1.14/lib/seahorse/client/plugins/raise_response_errors.rb:15:in `call':
<dgarstang> Radar: yeah I know. i found that out, thanks
<Radar> Great :)
<baweaver> describe_as_groups (whatever that was) returns a response object with instances which returns an array of those
<baweaver> not sure if you can filter on that, but looking.
<dgarstang> baweaver: pretty sure I can
<baweaver> yeah, still reading, not sure quite yet.
ordepdev has quit [Ping timeout: 255 seconds]
<baweaver> at very least you can get the instance_ids out of there
wldcordeiro__ has quit [Remote host closed the connection]
ghr has joined #ruby
<baweaver> but it looks like it's just an aws::structure object without much defined on it.
<dgarstang> baweaver: I've already got an intance id... i need to get the instance object so I can pull the launch time
wldcordeiro__ has joined #ruby
blackmesa has quit [Quit: WeeChat 1.3]
<dgarstang> baweaver: i know I can filter by tags
<dgarstang> baweaver: the python api lets me filter by instance id
<baweaver> https://gitter.im/aws/aws-sdk-ruby - they tend to be active on here as well
<baweaver> at this point I'm strongly inclined to say those objects don't inherit ec2 features for getting that info
<baweaver> but I'd have to ping trevorrowe to know for certain
<baweaver> the docs seem to say that, but then again they're not known for being extremely accurate some times.
<baweaver> It'd be a nice feature that'd make a lot of sense, the problem is though that not much makes sense.
<shevy> :)
<shevy> this is why we can't have nice things
<dgarstang> oh boy
<baweaver> https://gitter.im/aws/aws-sdk-ruby?at=55e78621f6fb4f034f6b694b - That should set you up at least.
<dgarstang> so, err...
wldcordeiro__ has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 264 seconds]
<dgarstang> how would one pull an instance object if one knows the instance id?
<dgarstang> please don't say pull them all and iterate over them all
<baweaver> Mmmm, just a sec.
<baweaver> No, you can filter an EC2 client
jhn has quit [Quit: Textual IRC Client: www.textualapp.com]
wldcordeiro__ has joined #ruby
<dgarstang> i think i am using that...
hinbody_ has joined #ruby
<baweaver> psuedocode: ec2_provider_client.describe_instances(instance_ids: ids)
<dgarstang> oic
<baweaver> trevorrowe will probably see that in the next hour or so to clear that one up
<dgarstang> lemme try
<baweaver> past that not sure what to tell you other than it's slightly touchy.
<dgarstang> hope it works with describe_auto_scaling_groups ...
<baweaver> though they're so dang backlogged over there it's not exactly surprising
mordocai has joined #ruby
devoldmx has joined #ruby
<dgarstang> oh wait ^ scrap that
d10n-work has quit [Quit: Connection closed for inactivity]
Moonlightning has quit [Quit: The Nightmares will Collide. And become a Dream. <3]
hinbody has quit [Ping timeout: 260 seconds]
<dgarstang> baweaver: seems to work, thanks
wldcordeiro__ has quit [Remote host closed the connection]
<baweaver> np, keep an eye on that chat channel to see if there's some black magic there.
wldcordeiro__ has joined #ruby
JDiPierro has joined #ruby
tmtwd has quit [Ping timeout: 265 seconds]
O-MIRINDA has quit []
mprelude has quit [Ping timeout: 240 seconds]
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ngscheurich has joined #ruby
riotjones has joined #ruby
benlovell has joined #ruby
michael_mbp has quit [Excess Flood]
devoldmx has quit [Ping timeout: 260 seconds]
shmilan has joined #ruby
michael_mbp has joined #ruby
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wldcordeiro__ has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
wldcordeiro__ has joined #ruby
Swappticon has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
Yzguy has quit [Quit: Zzz...]
benlovell has quit [Ping timeout: 246 seconds]
jesterfraud has joined #ruby
meatherly has quit []
wldcordeiro__ has quit [Remote host closed the connection]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wldcordeiro__ has joined #ruby
<zenspider> ok. this is a test... this is only a test. did I replace the scissor switch on my control key properly? yes. it appears so.
<zenspider> yay. I can type again.
<baweaver> the quick brown fox leaps along the fence for some stupid reason that I cannot comprehend?
mleung has joined #ruby
<zenspider> is there a way to turn on "verbose mode" with mkmf? jesus this horrible thing is just as opaque as it was when I only had a year or two of ruby
bigkevmcd has quit [Quit: Outta here...]
<baweaver> > /dev/null
<baweaver> </snark>
<zenspider> it's hardcoded. what. the. fuck.
icarus has quit [Ping timeout: 240 seconds]
mleung has quit [Client Quit]
wldcordeiro__ has quit [Remote host closed the connection]
<baweaver> zenspider: PR time?
<zenspider> against mkmf? fuck no. that's voodoo
failshell has joined #ruby
rehat has quit [Remote host closed the connection]
Aswebb_ has quit [Remote host closed the connection]
wldcordeiro__ has joined #ruby
wldcordeiro__ has quit [Remote host closed the connection]
Mendenhall has joined #ruby
<drbrain> zenspider: V=1 make
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> drbrain: it's not working for me. I have to go tweak the file itself.
<drbrain> huh
JDiPierro has quit [Remote host closed the connection]
rcvalle has quit [Quit: rcvalle]
<drbrain> I have had issues when building C extensions inside ruby (like socket) with V=1
<drbrain> it doesn't get passed through for some reason
<zenspider> it's hardcoded in the makefile via extconf.rb
<zenspider> and isn't written in a way to default it to env first
failshell has quit [Client Quit]
<zenspider> either way... this thing is driving me nuts
<zenspider> I can either make it work, or make it do it properly (but not work)
<zenspider> subdirs are a bitch
RegulationD has joined #ruby
cubicool has left #ruby [#ruby]
dfinninger has quit [Remote host closed the connection]
mleung has joined #ruby
wldcordeiro__ has joined #ruby
mleung has quit [Client Quit]
<drbrain> I could swear V=1 worked once upon a time, but I must be thinking about the root makefile
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> pretty convinced at this point that mkmf is the devil
<zenspider> it's flattening my paths whether I like it or not
<zenspider> SRCS = $(ORIG_SRCS) sge_blib.cpp sge_bm_text.cpp sge_collision.cpp sge_misc.cpp sge_primitives.cpp sge_rotation.cpp sge_shape.cpp sge_surface.cpp sge_textpp.cpp sge_tt_text.cpp
<zenspider> those should all be sge/sge*.c
<zenspider> and even that is wrong, because they're in a completely different subtree
<zenspider> not sure how it works for the other C files
RegulationD has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
wldcordeiro__ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
wldcordeiro__ has joined #ruby