Rakko has quit [Quit: This computer has gone to sleep]
pothibo has quit [Quit: pothibo]
mbj has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
tkuchiki has joined #ruby-lang
marr has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Remote host closed the connection]
hellome has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
charliesome has joined #ruby-lang
havenwood has quit [Ping timeout: 248 seconds]
charliesome has quit [Client Quit]
saarinen has quit [Quit: saarinen]
dhruvasa1ar has joined #ruby-lang
simoz has joined #ruby-lang
simoz has quit [Read error: Connection reset by peer]
retro|cz has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 265 seconds]
sevvie has quit [Read error: Connection reset by peer]
amerine has joined #ruby-lang
ecnalyr has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
ecnalyr has quit [Client Quit]
vlad_starkov has joined #ruby-lang
micalexander has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 245 seconds]
<micalexander>
how can pass "<" to IO.popen as an argument it seems to ignore it when I run "mysql -uuser -hhost -ppass database < sqlfilepath.sql" mysql errors with its help display
yfeldblu_ has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby-lang
charliesome has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
ohsix has joined #ruby-lang
wallerdev_ has joined #ruby-lang
wallerdev has quit [Ping timeout: 246 seconds]
wallerdev_ is now known as wallerdev
mistym has quit [Remote host closed the connection]
iliketurtles has joined #ruby-lang
havenwood has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
macmartine has joined #ruby-lang
rickhull1 has quit [Quit: Leaving.]
sevvie has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
macmartine has quit [Remote host closed the connection]
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
macmartine has joined #ruby-lang
bazaretas has quit [Quit: Leaving]
macmartine has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
RickHull has joined #ruby-lang
Newbie0086 has quit [Quit: 离开]
JohnBat26 has quit [Ping timeout: 268 seconds]
datanoise has quit [Ping timeout: 245 seconds]
<zenspider>
hrm... I'm not using the right search terms to find the algorithm I'm looking for...
<zenspider>
I want to do something like git bisect, but where multiple items in the list of culprits might be working in combination to cause the error.
iliketurtles has quit [Ping timeout: 252 seconds]
banisterfiend has joined #ruby-lang
<zenspider>
damnit
mucker has quit [Remote host closed the connection]
hhatch has joined #ruby-lang
solars has quit [Ping timeout: 245 seconds]
lun__ has quit [Remote host closed the connection]
Onixs_ has joined #ruby-lang
Onixs has quit [Read error: Connection reset by peer]
Onixs_ has quit [Read error: Connection reset by peer]
Onixs has joined #ruby-lang
MaddinXx_ has joined #ruby-lang
solars has joined #ruby-lang
iliketurtles has joined #ruby-lang
jsullivandigs has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 260 seconds]
phus1on has joined #ruby-lang
marr has joined #ruby-lang
Onixs has quit [Read error: Connection reset by peer]
Onixs_ has joined #ruby-lang
elia has joined #ruby-lang
banisterfiend has quit [Quit: Computer has gone to sleep.]
Onixs_ has quit [Read error: Connection reset by peer]
Onixs_ has joined #ruby-lang
Onixs has quit [Read error: Connection reset by peer]
kek has joined #ruby-lang
Onixs_ has quit [Read error: Connection reset by peer]
Onixs has joined #ruby-lang
Onixs has quit [Read error: Connection reset by peer]
Onixs has joined #ruby-lang
lun__ has joined #ruby-lang
jsullivandigs has joined #ruby-lang
lun__ has quit [Ping timeout: 272 seconds]
kek has quit [Remote host closed the connection]
kek_ has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 272 seconds]
iliketurtles has joined #ruby-lang
sepp2k has joined #ruby-lang
sepp2k1 has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
sepp2k has quit [Read error: Operation timed out]
phus1on has joined #ruby-lang
r0bgleeson has quit [Ping timeout: 272 seconds]
mucker has joined #ruby-lang
mistym has joined #ruby-lang
Olipro has quit [Ping timeout: 246 seconds]
datanoise has joined #ruby-lang
guns has quit [Ping timeout: 246 seconds]
Olipro has joined #ruby-lang
mistym has quit [Ping timeout: 265 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cored has joined #ruby-lang
TvL2386 has joined #ruby-lang
havenwood has joined #ruby-lang
elia has joined #ruby-lang
nofxx has joined #ruby-lang
Guest61636 has quit [Ping timeout: 272 seconds]
RickHull has quit [Quit: Leaving.]
priodev has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby-lang
ruby-lang561 has joined #ruby-lang
ruby-lang561 has joined #ruby-lang
ruby-lang561 has quit [Changing host]
havenwood has quit [Ping timeout: 264 seconds]
cored has quit [Ping timeout: 265 seconds]
relix has joined #ruby-lang
relix has quit [Client Quit]
hogeo has joined #ruby-lang
mdedetrich has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #ruby-lang
hogeo has quit [Ping timeout: 245 seconds]
SteveBenner9 has quit [Ping timeout: 265 seconds]
guns has joined #ruby-lang
priodev has joined #ruby-lang
lun__ has joined #ruby-lang
sevvie has joined #ruby-lang
sevvie has quit [Read error: Connection reset by peer]
banisterfiend has quit [Quit: Computer has gone to sleep.]
datanoise has quit [Ping timeout: 260 seconds]
ikrima has quit [Quit: Computer has gone to sleep.]
bruno- has joined #ruby-lang
riffraff_ has joined #ruby-lang
iliketurtles has quit [Ping timeout: 248 seconds]
riffraff_ has left #ruby-lang [#ruby-lang]
jhiggs has joined #ruby-lang
sepp2k1 has quit [Quit: Leaving.]
banisterfiend has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
jerrytgarcia has joined #ruby-lang
<jhiggs>
Hi. How do I make a custom method for 'push' when I have MyClass.new().my_method.push()
<canton7>
'custom method for push' - so you re-define what .push does?
<jhiggs>
yeah, that's right.
<jhiggs>
but for just one of my instances methods.
<canton7>
so your example is the same as 'myvar = MyClass.new.my_method; mybar.push()'
dvorak has joined #ruby-lang
<apeiros>
jhiggs: methods don't have methods. object do.
<canton7>
so, you need to find out what type myvar is
<apeiros>
the object returned by my_method would need your modified push method.
elia has quit [Quit: Computer has gone to sleep.]
<jhiggs>
canton7: yep, thats the method I'm trying to change.
<apeiros>
jhiggs: so you can a) wrap the object returned by my_method, b) use extend, or c) use def yourresult.push
<micalexander>
drbrain: it seems to be an object but I dont see the method I can call on it
<jhiggs>
apeiros: ahh. i'll try those out. thanks.
macsplean has joined #ruby-lang
hogeo has joined #ruby-lang
ikrima has joined #ruby-lang
hogeo has quit [Client Quit]
dhruvasagar has quit [Ping timeout: 272 seconds]
atmosx has quit [Quit: Lost in trance]
banisterfiend has quit [Quit: Computer has gone to sleep.]
<jhiggs>
apeiros: c) does not work because it says undefined local variable or method for "my_method".
<jhiggs>
apeiros: b) does not work when I attempt to extend my method. presumably because it is meant for extending a class.
<jhiggs>
to elaborate. I'm trying to set a value with my_method= get a value with my_method and i'd like to have my_method.push() append values to the array that my_method returns.
barttenbrinke has quit [Ping timeout: 264 seconds]
sepp2k has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
ledestin has quit [Ping timeout: 260 seconds]
jsullivandigs has joined #ruby-lang
macsplean has quit [Ping timeout: 272 seconds]
jhiggs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
jhiggs: "does not work because… undefined local variable or method for "my_method".
<apeiros>
dude, *you* made the example naming it my_method
jsullivandigs has quit [Ping timeout: 252 seconds]
<apeiros>
gone…
ledestin has joined #ruby-lang
vladgh has joined #ruby-lang
jhiggs has joined #ruby-lang
<MrZYX>
apeiros: he's back ;)
<apeiros>
jhiggs: "does not work because… undefined local variable or method for "my_method".
<apeiros>
dude, *you* made the example naming it my_method
<apeiros>
thx MrZYX
<apeiros>
jhiggs: and re extend: as stated before, methods do not have methods. objects do. it is not "my_method" on which you call "push" (or extend, for that matter), it's the object "my_method" returns on which you call further methods.
datanoise has joined #ruby-lang
<apeiros>
jhiggs: and no, extend is not just for classes, it's for all objects. See Object#extend.
vladgh has quit [Remote host closed the connection]
mucker has quit [Remote host closed the connection]
vladgh has joined #ruby-lang
<jhiggs>
abeiros: I renamed so I could drop it into my real code. i'll read up on extend.
datanoise has quit [Ping timeout: 248 seconds]
symm- has quit [Ping timeout: 245 seconds]
dc5ala has quit [Quit: Ex-Chat]
iliketurtles has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 272 seconds]
<apeiros>
jhiggs: my nick is not abeiros. I suggest you use tab-completion for nicks.
<jhiggs>
sorry about that.
adambeynon has joined #ruby-lang
thelorax123 has quit [Remote host closed the connection]
thelorax123 has joined #ruby-lang
lun__ has quit [Remote host closed the connection]
toretore has quit [Quit: Leaving]
wallerdev has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
mucker has joined #ruby-lang
intellitech has joined #ruby-lang
phus1on has quit [Quit: .]
<rue>
apieros is so touchy
jxpx777 has quit [Quit: Leaving...]
* apeiros
touches rue
spike|spiegel has joined #ruby-lang
TvL2386 has quit [Remote host closed the connection]
<rue>
Mm yeah
mistym has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
kek_ has quit [Remote host closed the connection]
spike|spiegel has quit [Quit: WeeChat 0.4.2]
kek has joined #ruby-lang
r0bgleeson has joined #ruby-lang
mistym has quit [Ping timeout: 268 seconds]
vlad_starkov has quit [Remote host closed the connection]
spike|spiegel has joined #ruby-lang
iliketurtles has quit [Ping timeout: 245 seconds]
kek has quit [Ping timeout: 252 seconds]
cnivolle has joined #ruby-lang
dr_bob has joined #ruby-lang
symm- has joined #ruby-lang
elia has joined #ruby-lang
r0bgleeson has quit [Ping timeout: 268 seconds]
bruno- has quit [Quit: leaving]
bruno- has joined #ruby-lang
erik__ has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby-lang
datanoise has joined #ruby-lang
ikrima has quit [Quit: Computer has gone to sleep.]
iliketurtles has joined #ruby-lang
bruno- has quit [Quit: leaving]
tbuehlmann has quit [Remote host closed the connection]
r0bgleeson has joined #ruby-lang
jxpx777 has joined #ruby-lang
jxpx777_ has joined #ruby-lang
bruno- has joined #ruby-lang
face has quit []
bzalasky has joined #ruby-lang
jxpx777 has quit [Read error: Connection reset by peer]
jxpx777_ has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
MaddinXx has joined #ruby-lang
mbj has quit [Ping timeout: 272 seconds]
nisstyre has joined #ruby-lang
ruby-lang584 has quit [Ping timeout: 250 seconds]
kek has joined #ruby-lang
iliketurtles has quit [Ping timeout: 245 seconds]
kek has quit [Ping timeout: 260 seconds]
iliketurtles has joined #ruby-lang
kfpratt has quit [Remote host closed the connection]
datanoise has joined #ruby-lang
kfpratt has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
mistym has joined #ruby-lang
kfpratt has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby-lang
Coincidental has quit [Ping timeout: 245 seconds]
anulman has quit [Quit: Leaving.]
<matled>
how is Queue supposed to be used if the consumer should stop if the queue is empty? Queue#pop(false) will not block, documentation says "an exception is raised", the exception is "ThreadError", which is a bit too generic for my taste...
<matled>
checking if the queue is empty before trying to take an element is racy if there are multiple consumers...
<matled>
x0f_: rexeg on a exception message *shudder*
<matled>
*regex
iliketurtles has quit [Ping timeout: 245 seconds]
jerrytgarcia has quit [Quit: WeeChat 0.4.2]
<x0f_>
matled, it will only match the error, unless you expect anything else in this confined part of your code raising a ThreadError with a message of "queue empty" but meaning something completely different, you should be fine.
meise has joined #ruby-lang
mbj has quit [Quit: Lost terminal]
<matled>
x0f_: sure, I'm just saying that I don't like the API
<matled>
i.e. that I've to read the message of the exception at all
marr has joined #ruby-lang
<x0f_>
matled, it's in stdlib, so it's bound to be ugly and won't change in forever i guess. but yes, i'd like to have an Queue::QueueIsEmptyError too.
ikrima has joined #ruby-lang
dingus_khan has joined #ruby-lang
lun___ has joined #ruby-lang
<matled>
I would rather expect that stdlib delivers quality APIs, but well... :)
lun__ has quit [Read error: Connection reset by peer]
<gr33n7007h>
Which is the official channel #ruby / #ruby-lang?
<lupine>
maybe for ruby2.0 ;)
<lupine>
erm, 2.2
solars has joined #ruby-lang
<x0f_>
matled, well, corelib does (most of the time), stdlib is more like a window in time and a collection of worst practices.
sevvie has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
dingus_khan has joined #ruby-lang
kek has joined #ruby-lang
dingus_khan has quit [Ping timeout: 245 seconds]
kek has quit [Ping timeout: 272 seconds]
iliketurtles has joined #ruby-lang
<ljarvis>
drbrain: nice, how do you like it?
<Rakko>
gr33n7007h: there is no official channel
<gr33n7007h>
I know explained in #ruby
sevvie has quit [Ping timeout: 245 seconds]
ikrima has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
MaddinXx has quit [Quit: Leaving...]
JohnBat26 has quit [Ping timeout: 252 seconds]
tylersmith has joined #ruby-lang
diegoviola has quit [Ping timeout: 252 seconds]
simoz has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 272 seconds]
datanoise has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
iliketurtles has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby-lang
dhruvasagar has joined #ruby-lang
nathanstitt has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
thelorax123 has quit [Remote host closed the connection]
<ruby-lang016>
they have the same gem name, what do I do?
ruby-lang016 is now known as ZirconCOde
ZirconCOde is now known as ZirconCode
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby-lang
vladgh has quit [Ping timeout: 245 seconds]
hhatch has quit [Ping timeout: 245 seconds]
kek has joined #ruby-lang
kurko_ has quit [Ping timeout: 240 seconds]
kurko_ has joined #ruby-lang
<zenspider>
I need help from a data-structures/algs nerd
<drbrain>
ljarvis: I only have Killzone which is very pretty, but much too easy.
<drbrain>
even on hard
iliketurtles has joined #ruby-lang
datanoise has quit [Ping timeout: 248 seconds]
kek has quit [Ping timeout: 272 seconds]
macmartine has joined #ruby-lang
dr_bob has quit [Quit: Tune in next week when you'll hear Dr. Bob say...]
banisterfiend has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
ZirconCode has quit [Ping timeout: 250 seconds]
Elico has quit [Quit: Elico]
Coincidental has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
banisterfiend has joined #ruby-lang
<momomomomo>
zenspider: Ask your question
<zenspider>
I'm looking for some help finding appropriate search terms. I'm trying to write / find an algorithm for finding potentially _multiple_ items in a tree based on a user supplied predicate test in an efficient manner.
Coincidental has quit [Ping timeout: 240 seconds]
<momomomomo>
zenspider: Code ?
<rue>
zenspider: Do you have a constraint on how many?
nathanstitt has quit [Quit: I growing sleepy]
<zenspider>
rue: not really.... no
<rue>
zenspider: The worst case is that every node would match then, no?
<zenspider>
momomomomo: no code I can share at this point. I threw everything away at 5AM :)
<zenspider>
rue: possible
tylersmith has joined #ruby-lang
macmartine has quit [Remote host closed the connection]
<zenspider>
rue: what I need is a way to whittle it down to the minimial subset
<rue>
It sounds like you need to rearrange the data, possibly
dingus_khan has joined #ruby-lang
<rue>
But I’m no algorithmian, so
<zenspider>
I was thinking rearrangement initially... and that would work pretty easily w/ 2, but as soon as you go 2+ it gets messy
vsorlov has quit [Ping timeout: 272 seconds]
<zenspider>
original data is a flat list (test files that fail, or test methods that fail), I build them into a tree and run the whole set to ensure repro
<zenspider>
then I try the two children
<zenspider>
if they both fail, then I need to recurse across the two subtrees, or rearrange the 4 grandchildren and retest
<zenspider>
either way... I can't for the fucking life of me find the right words to make google happy
<zenspider>
I suspect it is just a mental block and I'm using shitty search terms and am mentally stuck (ie, tired)
nathanstitt has joined #ruby-lang
<momomomomo>
zenspider: You've shown us no examples of the data or code
<momomomomo>
zenspider: This is basically like "I have a data, and would like to get it by traversing the tree in such a manner"
<momomomomo>
without an idea of how it looks, how can we recommend somethign?
tylersmith has quit [Ping timeout: 241 seconds]
<zenspider>
momomomomo: sorry. Like I said, I threw out a good portion of my code this morning.
<zenspider>
I don't want code... I want the name of the thing I'm trying to do
<zenspider>
what I'm doing is essentially `git bisect` for test order dependencies at both the file and test levels of granularity
<zenspider>
but it isn't just a matter of finding the 2 tests/files that conflict, because it could be N
<zenspider>
or they could be on separate sides of the binary tree, or or or
<zenspider>
this isn't map/reduce, because it isn't map
<zenspider>
this is much more of a search, but with an user-defined predicate that could match any number of leaf nodes
<momomomomo>
That post isn't all about map+reduce
<rue>
What are you bisecting over? git bisects over time, so to speak…
<zenspider>
rue: the long and short of it: rails tests :P
<zenspider>
the rails test base is... messy. they have a monkeypatch on minitest to order all test classes by name before running, which reinforces bugs
<zenspider>
I'm removing that monkeypatch, and trying to whittle down the problems intelligently because running all of the rails tests ... sucks.
<zenspider>
but honestly, I'd use this tool all over the place
<rue>
Are you collecting just fails, or sequences that cause fails? Or?
<zenspider>
so... I'm bisecting over combinations of test files, or combinations of TestClass#test_methods
<zenspider>
sequences that cause fails
<rue>
Right, I gotcha kinda
Coincidental has joined #ruby-lang
<zenspider>
presumably, the rails tests pass when run as a whole (not entirely true)
<zenspider>
and each file should pass when run by itself (not entirely true)
<zenspider>
and each test should pass when run by itself (not entirely true)
<zenspider>
:P
<zenspider>
you get my meaning...
<rue>
Yep yep
<zenspider>
I wrote a simple tool yesterday that reads the verbose output from minitest and then runs through the binary tree to find the ONE passing test that causes the failing test to fail
mistym has quit [Remote host closed the connection]
<zenspider>
saved us a lot of time
<zenspider>
then I converted that to do it at the file level
<zenspider>
but now I'm hitting the case where it isn't just 2
<zenspider>
and the case where it is just 2, but they're on opposite sides of the binary tree
<zenspider>
so I'm trying to clean up the code and formalize it and _preferably_ actually use someone else's alg that isn't complete horseshit, like mine
iliketurtles has quit [Ping timeout: 260 seconds]
Barrin6 has joined #ruby-lang
verto has quit [Ping timeout: 240 seconds]
verto has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
knu has quit [Ping timeout: 264 seconds]
soahccc has quit [Remote host closed the connection]
chaos_ has joined #ruby-lang
chaos_ has left #ruby-lang [#ruby-lang]
soahccc has joined #ruby-lang
kek has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 248 seconds]
simoz has quit [Ping timeout: 264 seconds]
ruskie has quit [Ping timeout: 246 seconds]
kek has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]