<zzak>
looks like some of the formatting still needs to be cleaned up
<zenspider>
heh
<zzak>
i just went through them not too long ago
<zenspider>
zzak: anything else to bash on the quickref while Im' here?
<zzak>
yes one sec
<zzak>
operator precedence, but operator definition would be good
drbrain- has quit [Ping timeout: 260 seconds]
<zzak>
||=: or-equals, etc
<zzak>
also, the 'standard library' section, this is probably verbatim lib/README
<zzak>
it doesnt include minitest, psych, fiddle
<havenn>
Under Pseudo variables, true (typical true value) would be more uniform if it said (represents true) but that and the other parens are prolly obvious?
<zzak>
forwardable
sn0wb1rd has joined #ruby-lang
<zenspider>
zzak: I removed forwardable and others as they're just not used much
<zenspider>
psych... yeah. I should add that
<zenspider>
fiddle, not so much
<zzak>
base64, digest?
<zzak>
bigdecimal?
<zenspider>
havenn: good point. removed. added (falsey) on nil
<zzak>
erb, cgi?
<zenspider>
meh? how often do you use these things?
<zzak>
the list goes on
<zzak>
a lot of programs use them
<zenspider>
programs... sure
<zenspider>
quickref is for users. not programs
<zzak>
fair enough
<zzak>
it brings up another question tho
<zzak>
lib/README has all the lib/**/*.rb modules
<zzak>
but nothing about ext/ modules
vlad_starkov has joined #ruby-lang
<zzak>
there's no ext/README
<zzak>
what should we do here?
<zenspider>
*shrug* I'm open to suggestions
efrainolivares has joined #ruby-lang
dankest has quit [Quit: Leaving...]
<zzak>
i think ext/README would be appropriate
<zzak>
you could do ri ruby:ext/README, just like `ri ruby:lib/README`
<zenspider>
Seems fine to me
vlad_starkov has quit [Ping timeout: 255 seconds]
<havenn>
zenspider: This is a nit, but under Access Restriction, private isn't technically true with #method= since it requires rather than forbids self.method.
Swimming_Bird has joined #ruby-lang
<havenn>
What I mean since ^ sounds like gibberish when I reread (self.value works but value nekkid doesn't, for whatever reason just with setter): https://gist.github.com/4238177
sebastianb has quit [Ping timeout: 246 seconds]
<zenspider>
havenn: yeah... but even you didn't know that 2 weeks ago :P
<havenn>
zenspider: Very true! Touche.
<zenspider>
(neither did I)
<zenspider>
I never use private. I think it is retarded.
sebastianb has joined #ruby-lang
tdy has quit [Read error: Connection reset by peer]
xyzodiac has joined #ruby-lang
xyzodiac has quit [Read error: Connection reset by peer]
tdy has joined #ruby-lang
xyzodiac has joined #ruby-lang
jxie has quit [Quit: leaving]
<Spaceghostc2c>
Why is zenspider wearing a cinnamon roll bun hat all the time now?
thatdutchguy has joined #ruby-lang
sebastianb has quit [Ping timeout: 246 seconds]
sebastianb has joined #ruby-lang
waffleau_ has joined #ruby-lang
<banisterfiend>
Spaceghostc2c: because he's the royal tart toter
chessguy has quit [Remote host closed the connection]
gmci_ has joined #ruby-lang
datanoise has joined #ruby-lang
13WAAC35D has quit [Ping timeout: 264 seconds]
bluepojo has joined #ruby-lang
methods has quit [Quit: Leaving.]
drbrain has joined #ruby-lang
dankest has joined #ruby-lang
havenn has quit [Remote host closed the connection]
Aiur has joined #ruby-lang
CaptainJet has quit []
headius has quit [Quit: headius]
Antiarc has joined #ruby-lang
Bosox20051 has joined #ruby-lang
<Antiarc>
Hey folks. Are there folks you could point me to who would be useful in using gdb to track down what I believe is a bug in Ruby proper?
<banisterfiend>
Antiarc: gist your bug
<banisterfiend>
backtrace
<Antiarc>
I've got a rare-ish bug replicated in an instance, and attached it with gdb, and stepping through reveals what looks to be an infinite loop in Ruby's thread cleanup, but I'm about at the limits of my ability with gdb, and someone who knows the internals better might be useful.
<Antiarc>
No ruby backtrace, but sec --
<drbrain>
Antiarc: and, can you reproduce it on 2.0.0.preview2?
<Antiarc>
https://gist.github.com/4238531 - the first bit is what strace is giving me, the second bit is the gdb backtrace on thread1
<Antiarc>
drbrain: I can try at some point, but this is a production bug that is locking processes, and so I need to figure it out for 1.9.3 :)
<Antiarc>
(1.9.3-p327, fwiw)
<Antiarc>
Anyhow, it's infinitely looping because rb_thread_alone() is always returning false, but stepping through via gdb, I'm not sure what's going on there --
<drbrain>
Antiarc: I only ask because preview2 is going to become preview3 and then 2.0.0 in the next couple months
<drbrain>
so, if you could at least report it to bugs.ruby-lang.org we can most definitely get it fixed
wyhaines has joined #ruby-lang
<drbrain>
Antiarc: from rb_thread_terminate_all(), right?
<Antiarc>
drbrain: I'm just not sure if it *is* a legit ruby bug yet, which is what I'm trying to determine
<Antiarc>
If I step to rb_thread_alone, you can see that it never steps into the if() there, so num should == 1, but num has been optimized out, and num == 1 returns 0.
<drbrain>
Antiarc: can you recompile with -DTHREAD_DEBUG=1 ?
<Antiarc>
I can get the raw asm there from gdb if that'd be useful, but it's beyond my ability at this point so I'm just sort of hobbling through it.
<drbrain>
it might show something useful
cddr has quit [Ping timeout: 265 seconds]
<Antiarc>
I can yes. Will take me a few hours to compile and reproduce, though.
<drbrain>
I don't think asm will show you anything useful
<Antiarc>
I'll add that to the todo list.
<Antiarc>
I'm mostly trying to figure out why num is being optimized away, and why num == 1 would return 0 rather than 1 if the code never steps into that if branch.
<drbrain>
Antiarc: nobu or koichi probably know
<drbrain>
Antiarc: even if you only reproduce with 1.9.3, please file a bug
<Antiarc>
drbrain: I absolutely will. I'm just trying to make sure this is a ruby problem and not a "one of my libraries being stupid" problem, but the fact that it's infinitely looping in rb_thread_terminate_all() makes me think it's *probably* a ruby bug.
<drbrain>
I don't know enough about how to get ruby thread status from gdb to help you :/
<Antiarc>
Well, I appreciate the thread_debug pointer anyhow; I'll file a bug and see what else I can learn.
<drbrain>
you might try rb_eval("p Thread.list")
<drbrain>
but I don't know how much of the VM you'll have around at that point
<Antiarc>
(gdb) call rb_eval("p Thread.list") => No symbol "rb_eval" in current context.
<Antiarc>
Hrm, that doesn't feel right.
<drbrain>
err, rb_eval_string
<Antiarc>
Ahah
mercwithamouth has quit [Quit: Lost terminal]
<Antiarc>
That just returns "$6 = 246923280" but that's pretty un-useful!
<drbrain>
try rb_p($6)
<Antiarc>
No output.
<drbrain>
:/
<Antiarc>
Though -- is that going to try to dump to stdout or somethin?
<drbrain>
yes
<drbrain>
the rb_eval should have donut hat
<Antiarc>
(this is a daemonized process, I'll have to track down where that's writing to)
<drbrain>
probably nowhere
<Antiarc>
Well, that gets me [#<Thread:0x0000000564c008 run>, #<Thread:0x000000074d54e8 sleep>, #<Thread:0x0000000a20a030 sleep>, #<Thread:0x0000000a208f28 sleep>]
<drbrain>
rb_eval_string("File.write '/tmp/threads.txt', Thread.list.inspect") may be helpful
<Antiarc>
(same output)
<Antiarc>
the daemon's redirected stdout to a logfile, so I'm good there.
<drbrain>
yeah, but you know where it's writing :)
<Antiarc>
Hehe
<Antiarc>
If I'm reading this right, this should only be happening when Ruby is in the process of fully shutting down, right?
<Antiarc>
That's not a terribly deep stack trace.
<drbrain>
yep
<Antiarc>
I ask because this is happening during normal operations, not during a shutdown, so I'm wondering if something is putting one of the threads into some weird state and triggering a bailout which never finishes.
<Antiarc>
OOH, new process just screwed up. Yay.
<drbrain>
main -> ruby_run_node -> run ruby, ruby_cleanup -> rb_thread_terminate_all
<drbrain>
right above the while loop you're sticking on, terminate_i is called for each thread
<drbrain>
that's supposed to mark the thread for shutdown, but they're obviously not
<drbrain>
looking in the other threads may tell you why they're not shutting down
<Antiarc>
I was poking about there, but didn't see anything obvious
<foucist>
drbrain: well it's more like 0.01 > x < 0.99 so minmax doesn't seem to be a good fit for that
<foucist>
er
<drbrain>
I didn't read that close, it was too confusing :/
<foucist>
0.01 > x && x < 0.99
<foucist>
yeah
<foucist>
[0.01, [0.99, equation].min].max
<charliesome>
zzak: ruby on os x is pretty painless
<drbrain>
it also looks like 1.0 instead of 1 would get rid of the to_f
<charliesome>
zzak: as long as you have a working compiler...
<zzak>
well, even most distributions of linux don't come with a compiler these days
<zzak>
for ubuntu you have to install build-essential package
kurko_ has joined #ruby-lang
<charliesome>
i find os x is a nice compromise between linux and windows
<zzak>
i know, its good, ive considered switching numerous times, just havent been in the right situation yet
<ggreer>
I think it's possible for that statement to provoke anger in OS X, linux, and windows fans
<foucist>
i'm really liking having my dev env in linux in virtualbox.. ssh into it heh
<foucist>
ggreer: what? that it's a nice compromise? i agree, as an OS X & linux fan :P
<ggreer>
heh
xyzodiac has quit [Quit: Computer has gone to sleep.]
ryanf has joined #ruby-lang
<zzak>
drbrain: you ever rdoc won't generate docs _and_ full coverage report?
<zzak>
ever notice*
<drbrain>
it's on purpose
<drbrain>
with --ri it would ignore old files so your coverage report might be wrong
xyzodiac has joined #ruby-lang
<zzak>
oh, i'm just wondering, i just notice it when i try to run: rm -rf html && rdoc -C -o html some_libs another_lib
<zzak>
its mostly because im lazy and dont want to type a second command and just alter the last command i ran
<zzak>
glad im not going crazy tho
wmoxam has quit [Read error: Connection reset by peer]
<mindbender1>
I'm trying to rid my projects from being infested with thneed snapshots that can't be found anywhere on planet earth
<mindbender1>
please help
areil has joined #ruby-lang
<charliesome>
foucist: i used to have an arch vm running that i would mount with samba and ssh into to do os dev stuff
<charliesome>
foucist: that ended up being too much of a pain so i just put together an elf toolchain on mac os x
<foucist>
charliesome: yeah, i mean, right now i'm finding it a little bit of a pain since i use my host OS browser and then i have to deal with files that i want to transfer to the VM or not, or vice versa
lordnaz has quit [Ping timeout: 265 seconds]
<foucist>
so one option might be to completely forgo the host, and do everything inside the VM instead of sshing in
<foucist>
i'm not in a rush to do that just yet though lol
<charliesome>
at that point why wouldn't you just dual boot
<foucist>
true
rohit_ has joined #ruby-lang
<charliesome>
hmm, does bundler not work with 2.0.0?
xyzodiac has quit [Quit: Computer has gone to sleep.]
rohit has quit [Ping timeout: 240 seconds]
<charliesome>
super weird
<charliesome>
/Users/charlie/code/ruby-git/inst/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- rubygems/format (LoadError)
<drbrain>
charliesome: it no longer exists
<charliesome>
drbrain: bundler tries to require it
<drbrain>
charliesome: use the prerelease bundler
<charliesome>
ah ok
<drbrain>
charliesome: Gem::Format and Gem::Builder were combined into Gem::Package with a sane API
<zzak>
drbrain: curious what your take on IRB is, only about 8% covered
<zzak>
seems like most of it should be nodoc'd
<drbrain>
most likely
<drbrain>
it would be nice to know how to use things like multi-irb properly
<drbrain>
zzak: the lexer can be nodoc'd
<zzak>
yah
bluepojo has quit [Quit: Leaving.]
<zzak>
im gonna start by merging what i can from doc/irb/irb.rd and then make a couple more passes
<charliesome>
ah yup looks like my rails segfaulty problem is all fixed on trunk
<drbrain>
awesome!
datanoise has joined #ruby-lang
kurko_ has quit [Ping timeout: 250 seconds]
thatdutchguy has quit [Remote host closed the connection]
xyzodiac has joined #ruby-lang
xyzodiac has quit [Quit: Computer has gone to sleep.]
<drbrain>
charliesome: if you use gems from git, gem update --system=2.0.0.preview2.1
datanoise has quit [Ping timeout: 250 seconds]
thatdutchguy has joined #ruby-lang
cantonic_ has joined #ruby-lang
thatdutchguy has quit [Remote host closed the connection]
cantonic has quit [Ping timeout: 264 seconds]
cantonic_ is now known as cantonic
rohit_ has quit [Quit: Leaving]
spuk has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
nerd has quit [Quit: WeeChat 0.3.9.2]
micaeked has joined #ruby-lang
nerd has joined #ruby-lang
nerd has quit [Client Quit]
<mindbender1>
please send the paramedics
ryez has quit [Quit: Leaving]
datanoise has joined #ruby-lang
<micaeked>
hey, is there a better ruby indent for vim? probably switching to emacs over the weekend if i can't find anything as good
<Spaceghostc2c>
Lol
datanoise has quit [Read error: Operation timed out]
Axsuul has quit [Remote host closed the connection]
mindbender1 has quit [Quit: Leaving.]
rue has quit [Remote host closed the connection]
rue has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<charliesome>
rails boots amazingly fast on 2.0.0
<Spaceghostc2c>
Yup, require stuff fixed, I think it was.
vlad_starkov has quit [Ping timeout: 252 seconds]
sent-hil has joined #ruby-lang
tenderlove has joined #ruby-lang
sent-hil has quit [Remote host closed the connection]
tenderlove has quit [Ping timeout: 264 seconds]
Paradox has quit [Ping timeout: 252 seconds]
waffleau has quit [Quit: waffleau]
gsav has joined #ruby-lang
s1n4 has joined #ruby-lang
Asher has quit [Ping timeout: 260 seconds]
gsav has quit [Read error: Connection reset by peer]
Asher has joined #ruby-lang
Paradox has joined #ruby-lang
apeiros_ has joined #ruby-lang
workmad3 has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 244 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
tenderlove has joined #ruby-lang
waffleau has joined #ruby-lang
<zenspider>
I know it is a bad thing... but fuck I love gauntlet
swav has quit [Remote host closed the connection]
judofyr has joined #ruby-lang
<ryanf>
zenspider: maybe it's just late, but I read the description on github and I still have no idea what it is
<ryanf>
what does it mean to "download all the latest gems"
waffleau has quit [Quit: waffleau]
fsvehla has joined #ruby-lang
sora_h___ is now known as sora_h
Mon_Ouie has joined #ruby-lang
PhilCK has joined #ruby-lang
datanoise has joined #ruby-lang
judofyr_ has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
McSvenster has joined #ruby-lang
datanoise has quit [Ping timeout: 260 seconds]
solars has joined #ruby-lang
s1n4 has quit [Quit: leaving]
faustman has joined #ruby-lang
judofyr_ has quit [Remote host closed the connection]
CoverSlide has quit [Ping timeout: 248 seconds]
CoverSlide has joined #ruby-lang
s1n4 has joined #ruby-lang
ryanf has quit [Ping timeout: 252 seconds]
PhilCK has quit [Quit: PhilCK]
gaveen has quit [Remote host closed the connection]
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
adambeynon has joined #ruby-lang
justinseiter has quit [Ping timeout: 240 seconds]
PhilCK has joined #ruby-lang
marr has joined #ruby-lang
McSvenster has left #ruby-lang [#ruby-lang]
GarethAdams has joined #ruby-lang
PhilCK has quit [Quit: PhilCK]
judofyr has joined #ruby-lang
PhilCK has joined #ruby-lang
waffleau_ has joined #ruby-lang
<charliesome>
is it possible to get the binding from when an exception was thrown?
<whitequark>
charliesome: pry-exception_explorer does that, iirc
<charliesome>
cool, i'll look into how it does it
<charliesome>
i came up with the hack of hooking Exception#initialize and grabbing the binding of the caller
<whitequark>
charliesome: hacks
<apeiros_>
oh whitequark - you're an experienced C programmer, I think. do you know how I can do vector instructions in C? like with an struct Vector (two members, x, y, both double), add one vector to ten other vectors?
dankest|away has quit [Quit: Leaving...]
<charliesome>
banisterfiend: binding_of_caller is broken on 2.0.0 oh no!
leopard_me has joined #ruby-lang
mars777 has quit [Quit: mars777]
pangel has joined #ruby-lang
GarethAdams has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 264 seconds]
<whitequark>
apeiros_: hm, vector instructions as in SIMD, right?
<apeiros_>
ah, yeah, SIMD was the term I was looking for
<whitequark>
it greatly depends on the compiler. generally there are two ways: do it manually or let the compiler guess what you actually want
<whitequark>
if manually, you could either write assembly or use compiler intrinsics, which is basically the same but you avoid shuffling data around and only concentrate on the SIMD instructions themselves
<whitequark>
that generally requires knowledge of your underlying architecture
<apeiros_>
whitequark: oh, so no libs which abstract such stuff? :(
<banisterfiend>
charliesome: i know, but that functioality is built into ruby 2.0
<charliesome>
banisterfiend: ooh is it?
<judofyr>
banisterfiend: how? :O
<whitequark>
apeiros_: if automatically, well, sometimes compiler will be able to guess that and sometimes not
<banisterfiend>
ruby 2.0 has a debugging API: RubyVM::DebugInspector.open { |i| i.frame_binding(n) }
<judofyr>
banisterfiend: woah. how come I've missed that?
<whitequark>
apeiros_: for doubles you'd need SSE2 AFAIK, but if your code shouldn't be portable as a binary you really should use the latest available SSE level
<apeiros_>
I don't think I have to care about backwards compatibility
<apeiros_>
but going with floats instead of doubles wouldn't hurt either I think
<banisterfiend>
judofyr: it only got added recently, and it's not going to be well advertised as it's still considered experimental i think
<apeiros_>
at least I doubt that I need the increased precision or range of doubles
<whitequark>
apeiros_: well, SSE3 is around for quite a long time
<apeiros_>
whitequark: pm since this isn't ruby? :)
<banisterfiend>
charliesome: both techniques (pry-exception_explorer and pry-rescue) dont just give u bindings of the caller, they give u access to entire snapshop of the stack when teh exception is raised, so u can 'up' and 'down' all u like too
chessguy has joined #ruby-lang
<banisterfiend>
snapshot*
<charliesome>
oh cool
<banisterfiend>
charliesome: if u want all callers, use: binding.callers :P
<banisterfiend>
it returns array with all the callers
<banisterfiend>
charliesome: wat u workin on?
<charliesome>
an error page on steroids for rack apps
<banisterfiend>
cool
<charliesome>
i figured it'd be nice to dump locals
Carnage\ has joined #ruby-lang
crazyhorse18 has joined #ruby-lang
<crazyhorse18>
hey guys.. what would be the fastest way of removing all but the first hash of each set of hashes that had two sets of key,value pairs the same
<crazyhorse18>
lol was like 10 lines of horrible loops before
<banisterfiend>
crazyhorse18: if you used objects rather than a hash u could just define the #== operator for the class, and the code would be even nicer
<banisterfiend>
or define another method
jbsan has quit [Quit: jbsan]
jbsan has joined #ruby-lang
seanstickle has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<crazyhorse18>
:9
<crazyhorse18>
:( didn't work in the end
<crazyhorse18>
only have ruby 1.8.7
<crazyhorse18>
but we left the code in commented out for when we upgrade
<crazyhorse18>
banisterfiend: ah i know what your saying about the objects.. but we need to be able to know both cases.. i.e. when duplicates exist across all fields and duplicates only exist across 2
waffleau__ has joined #ruby-lang
waffleau_ has quit [Read error: Connection reset by peer]
<banisterfiend>
crazyhorse18: you could have methods for those though, i guess. anyway, there's not much data so a hash is probably fine
rolfb has joined #ruby-lang
micaeked has quit [Ping timeout: 252 seconds]
akahn has quit [Remote host closed the connection]
strmpnk has quit [Remote host closed the connection]
franckverrot has quit [Remote host closed the connection]
io_syl has quit [Quit: Computer has gone to sleep.]
rampantmonkey has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ebouchut has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
headius has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
mercwithamouth has joined #ruby-lang
havenn has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
krohrbaugh has quit [Quit: Leaving.]
xyzodiac has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
scottschecter has quit [Quit: WeeChat 0.3.9.2]
scottschecter has joined #ruby-lang
mars777 has joined #ruby-lang
xyzodiac has quit [Quit: Computer has gone to sleep.]
<rue>
_br_: Not really Ruby-related, but I see you already asked on #zeromq
nerd has joined #ruby-lang
xyzodiac has joined #ruby-lang
<_br_>
rue: Its a bit off topic, but its the ffi-rzmq gem, so I thought I try here also. No luck in #zeromq though.
<rue>
I meant that the error isn’t Ruby-related, to be precise
krohrbaugh has joined #ruby-lang
<_br_>
rue: I see, got it, thanks
Guu_ has joined #ruby-lang
mwjcomputing has joined #ruby-lang
Guu_ has left #ruby-lang [#ruby-lang]
headius has quit [Ping timeout: 240 seconds]
Guu_ has joined #ruby-lang
Guu_ has left #ruby-lang [#ruby-lang]
<rue>
_br_: Unrelated to your problem, but there’s a Queue in the stdlib
antbody has joined #ruby-lang
<_br_>
rue: Ah yes, thanks for the tip. If the zeromq angle doesn't work I'll try that. I was hoping to have multiple machines taking work so I though zeromq might be easier and more straight forward.
<rue>
It should be
<_br_>
Haven't seen this assertion stuff from zeromq before, wondering if this is a issue with libzeromq
<_br_>
hm..
intellitech has joined #ruby-lang
methods has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
nerd is now known as database
ddd has joined #ruby-lang
antbody has quit [Quit: leaving]
ebouchut has quit [Quit: This computer has gone to sleep]
ebouchut has joined #ruby-lang
apeiros_ has joined #ruby-lang
waffleau has quit [Read error: Connection reset by peer]
waffleau_ has joined #ruby-lang
apeiros_ has quit [Ping timeout: 276 seconds]
ebouchut has quit [Quit: This computer has gone to sleep]
areil_ has quit [Ping timeout: 264 seconds]
stardiviner has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
ebouchut has joined #ruby-lang
waffleau_ has quit [Quit: waffleau_]
sush24_ has joined #ruby-lang
rsl has quit [Quit: Computer has gone to sleep.]
ruskie has quit [Excess Flood]
ruskie has joined #ruby-lang
Nisstyre has joined #ruby-lang
adamjleonard has quit [Quit: Leaving...]
havenn has quit [Remote host closed the connection]
database is now known as developer
Nisstyre has quit [Ping timeout: 244 seconds]
havenn has joined #ruby-lang
s1n4 has joined #ruby-lang
Nisstyre has joined #ruby-lang
Nisstyre_ has joined #ruby-lang
Nisstyre has quit [Ping timeout: 260 seconds]
Nisstyre_ is now known as Nisstyre
telemachus has quit [Ping timeout: 246 seconds]
telemachus has joined #ruby-lang
havenn has quit [Remote host closed the connection]
Nisstyre has quit [Read error: Operation timed out]
s1n4 has quit [Quit: leaving]
joevandyk has joined #ruby-lang
developer is now known as unix
<joevandyk>
i have a string. i need to pass it to a function that expects a file. Is Tempfile my best bet?
<yorickpeterse>
A string of what? A file path?
<yorickpeterse>
If so, just pass `File.open(string, 'r')` or something like that
<Smol>
perhaps StringIO
jtoy has joined #ruby-lang
<Smol>
that should work if the method doesn't do anything funky
anannie has joined #ruby-lang
<yfeldblum>
joevandyk, needs a filename? needs a IO instance?
<joevandyk>
yfeldblum: needs a filename
banisterfiend has joined #ruby-lang
<yfeldblum>
joevandyk, you can use Tempfile and pass its path; if this is linux you may also be able to use a pipe and pass the filename for that pipe if the thing just reads serially without seeking
ebouchut has quit [Quit: This computer has gone to sleep]
pvh has quit [Read error: Connection reset by peer]
banisterfiend has quit [Remote host closed the connection]
io_syl has joined #ruby-lang
ebouchut has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
shoe has joined #ruby-lang
gsav has joined #ruby-lang
<shoe>
hey folks, is blade.nagaokaut.ac.jp down just temporarily, or for good? :(
xyzodiac has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby-lang
vlad_starkov has joined #ruby-lang
srbaker has joined #ruby-lang
wallerdev has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
micaeked has joined #ruby-lang
workmad3 has joined #ruby-lang
<shoe>
I would be very sad to lose the ruby-talk archive.
wallerdev has quit [Client Quit]
ebouchut has quit [Quit: This computer has gone to sleep]
<_br_>
Does anyone have a clue why I can use the sourcify gem on methods called inside the class containing them? Meaning inside a class there is :mymethod, but if I do method(:mymethod).to_source it doesn't do
adambeynon has joined #ruby-lang
xyzodiac has joined #ruby-lang
brianpWins has joined #ruby-lang
<_br_>
never mind, Sourcify::CannotHandleCreatedOnTheFlyProcError
workmad3 has quit [Ping timeout: 248 seconds]
adambeynon has quit [Client Quit]
<banisterfiend>
_br_: can u give an example what u mean?
mercwithamouth has quit [Ping timeout: 276 seconds]
mercwithamouth has joined #ruby-lang
<_br_>
banisterfiend: Thanks, the issue was that I needed to call an additional .to_proc. Now, its just failing because there is meta stuff in there.
srbaker has quit [Quit: Computer has gone to sleep.]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
zmack_ has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 264 seconds]
zmack has quit [Ping timeout: 244 seconds]
xyzodiac has quit [Quit: Computer has gone to sleep.]
toretore has joined #ruby-lang
davidbalbert is now known as davidbalber|away
<banisterfiend>
_br_: what was the meta stuff?
sharma__ has joined #ruby-lang
<_br_>
banisterfiend: ah instance_method_set, eval etc.
<_br_>
banisterfiend: trying to take a method and send it together with some partial data off to workers living on different machines via zmq. A bit fun :)
sush24_ has quit [Read error: Connection reset by peer]
<joevandyk>
i have btree indexes on line_items.id, packed_line_items.line_item_id, packed_line_items.packing_list_id, packing_lists.id, and packing_lists.shipping_export_id.
wycats__ has joined #ruby-lang
herpless_ has quit [Remote host closed the connection]
pvh_ has quit [Remote host closed the connection]
cldwalker_ has quit [Remote host closed the connection]
dlackty has quit [Remote host closed the connection]
thejspr has quit [Remote host closed the connection]
strmpnk has quit [Remote host closed the connection]
rikkus has quit [Remote host closed the connection]
mroth has quit [Remote host closed the connection]
beawesomeinstead has quit [Remote host closed the connection]
pkondzior_ has quit [Remote host closed the connection]
dkannan has quit [Remote host closed the connection]
agib has quit [Remote host closed the connection]
mccraig has quit [Write error: Connection reset by peer]
franckverrot has quit [Remote host closed the connection]
Spaceghost|cloud has quit [Remote host closed the connection]
abuiles has quit [Remote host closed the connection]
anildigital_work has quit [Write error: Broken pipe]
wycats_ has quit [Write error: Broken pipe]
akahn has quit [Remote host closed the connection]
dlackty has joined #ruby-lang
pkondzior_ has joined #ruby-lang
<joevandyk>
oops
<joevandyk>
wrong channel
herpless_ has joined #ruby-lang
Spaceghost|cloud has joined #ruby-lang
dkannan has joined #ruby-lang
anildigital_work has joined #ruby-lang
workmad3 has quit [Ping timeout: 250 seconds]
beawesomeinstead has joined #ruby-lang
abuiles has joined #ruby-lang
rikkus has joined #ruby-lang
methods1 has joined #ruby-lang
unix has quit [Quit: WeeChat 0.3.9.2]
nerd has joined #ruby-lang
methods1 has left #ruby-lang [#ruby-lang]
marr has quit []
slaytani1 has joined #ruby-lang
slaytanic has quit [Ping timeout: 264 seconds]
slaytani1 is now known as slaytanic
lsegal has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
mercwithamouth has joined #ruby-lang
burgestrand has joined #ruby-lang
s1n4 has quit [Quit: leaving]
ttilley has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
krohrbaugh has joined #ruby-lang
joevandyk has quit [Quit: joevandyk]
sharma__ has quit [Quit: This computer has gone to sleep]
s0ber_ has joined #ruby-lang
s0ber has quit [Ping timeout: 256 seconds]
s0ber_ is now known as s0ber
Guest45802 has quit [Ping timeout: 265 seconds]
vlad_sta_ has quit [Ping timeout: 240 seconds]
gmci has joined #ruby-lang
gmci is now known as Guest41249
joevandyk has joined #ruby-lang
joevandyk has quit [Client Quit]
jobicoppola has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 250 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
tenderlove has joined #ruby-lang
banister_ has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
intellitech has quit [Quit: intellitech]
joevandyk has joined #ruby-lang
joevandyk has quit [Client Quit]
banister_ has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby-lang
apeiros_ has joined #ruby-lang
joevandyk has joined #ruby-lang
jobicoppola has quit [Quit: Computer has gone to sleep.]
apeiros_ has quit [Remote host closed the connection]
sent-hil has joined #ruby-lang
davidboy has joined #ruby-lang
vesan has quit [Ping timeout: 260 seconds]
scottschecter has quit [Quit: WeeChat 0.3.9.2]
vesan has joined #ruby-lang
robbyoconnor has joined #ruby-lang
Guest41249 has quit [Ping timeout: 252 seconds]
gmci_ has joined #ruby-lang
Nisstyre has quit [Disconnected by services]
Nisstyre has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
mercwithamouth has joined #ruby-lang
joevandyk has quit [Quit: joevandyk]
sailias has joined #ruby-lang
PhilCK has quit [Quit: PhilCK]
kentos has joined #ruby-lang
PhilCK has joined #ruby-lang
ryanf has quit [Quit: broken pipes |||]
lcdhoffman has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
chessguy has quit [Remote host closed the connection]
<yorickpeterse>
ddfreyne: is there a way to combine multiple files into one in nanoc?
seanstickle has joined #ruby-lang
sent-hil has left #ruby-lang [#ruby-lang]
sent-hil has joined #ruby-lang
heftig has quit [Read error: Connection reset by peer]
CaptainJet has joined #ruby-lang
mindbender1 has quit [Quit: Leaving.]
heftig has joined #ruby-lang
rolfb has joined #ruby-lang
brianpWins has quit [Ping timeout: 264 seconds]
eydaimon has quit [Quit: WeeChat 0.3.9]
tenderlove has quit [Remote host closed the connection]