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".
<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 }
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
<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
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
<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.
<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
<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 :)
<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.
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
<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]
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.
<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?
<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.]
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.
<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…]
<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]
<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]
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. :/
<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...
<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]
<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"
<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
<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
<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
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]
<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.
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!
<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
<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")
<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.
<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
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
<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