<ruby[bot]>
poerror: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
mikecmpbll has joined #ruby
<apeiros>
poerror: care to be more specific?
<poerror>
is it some design pattern?
<apeiros>
delegating class methods to instance methods?
tvw has joined #ruby
<poerror>
jep
binaryplease has quit [Ping timeout: 258 seconds]
lxsameer has joined #ruby
<apeiros>
yes, it's somewhat common
astrobunny has quit [Remote host closed the connection]
g_maeda has joined #ruby
<apeiros>
one I frequently use is with "command classes", like: SomeWorker.run(*params)
<apeiros>
it'll do SomeWorker.new.run(*params). i.e. it's just convenience.
<poerror>
yeah, I see
<poerror>
thanks :)
alazred has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
alazred has quit [Max SendQ exceeded]
alazred has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
futilegames has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fusta has joined #ruby
Beams has quit [Quit: .]
Beams has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
gregf_ has joined #ruby
binaryplease has joined #ruby
sid_fules has joined #ruby
g_maeda has quit [Quit: Leaving...]
futilegames has quit [Quit: futilegames]
fusta has quit [Ping timeout: 255 seconds]
ski7777 has quit [Ping timeout: 240 seconds]
aryaching has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sid_fules has quit [Remote host closed the connection]
ben__ has joined #ruby
sid_fules has joined #ruby
ski7777 has joined #ruby
<apeiros>
hm, is there a way to get rake to emit where a task was defined? --trace only shows the tasks it executes, but not their "origin"
Beams has quit [Quit: .]
<apeiros>
ooh, `rake -W`, nice
djbkd has joined #ruby
sid_fules has quit [Client Quit]
ben__ has quit [Ping timeout: 258 seconds]
Beams has joined #ruby
KnownSyntax has quit [Ping timeout: 260 seconds]
KnownSyntax has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
workmad3 has joined #ruby
govg has quit [Ping timeout: 240 seconds]
poerror has quit [Quit: ZZZzzz…]
mikecmpbll has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
mogaj has quit [Remote host closed the connection]
PorcoRex has quit [Remote host closed the connection]
govg has joined #ruby
oliv_____ has joined #ruby
HoierM has joined #ruby
pandaant has joined #ruby
binaryplease has quit [Ping timeout: 255 seconds]
oliv_____ has quit [Ping timeout: 260 seconds]
brent__ has joined #ruby
<arne__>
if i want ruby to multithread, i can use fork to have a better experience right?
mogaj has joined #ruby
<arne__>
will mutexes get shared between those ruby instances? will it be it's own processes etc?
cassianoleal has joined #ruby
workmad3 has quit [Quit: Lost terminal]
brent__ has quit [Ping timeout: 260 seconds]
<apeiros>
arne__: fork means separate process, so no, mutexes are not shared
ferr has joined #ruby
<apeiros>
also fork will kill all threads except the main thread (in the spawned process)
<apeiros>
and "better experience" is rather subjective. you get to use multiple cores in parallel, but it's not exactly more convenient.
gingray has joined #ruby
pppktz has joined #ruby
sepp2k has joined #ruby
<arne__>
what happens to my @mutex variable when i fork?
<arne__>
i mean.. it has a mutex
gingray_ has joined #ruby
ferr has quit [Quit: WeeChat 1.7]
ferr has joined #ruby
<apeiros>
same as with all other variables
<apeiros>
not sure about thread related state, though, since all threads except main get killed.
schickung has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
gingray__ has joined #ruby
pickle_ has joined #ruby
gingray__ has quit [Client Quit]
ben__ has joined #ruby
gingray__ has joined #ruby
mim1k has joined #ruby
gingray_ has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
gingray__ has quit [Client Quit]
ben__ has quit [Ping timeout: 260 seconds]
Arpanet69 has joined #ruby
mostlybadfly has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
gingray__ has joined #ruby
minimalism has quit [Quit: minimalism]
anisha has quit [Ping timeout: 240 seconds]
alazred has quit [Ping timeout: 268 seconds]
gingray__ has quit [Client Quit]
gingray__ has joined #ruby
anisha has joined #ruby
jujule has joined #ruby
gingray__ has quit [Client Quit]
anisha has quit [Read error: Connection reset by peer]
jujule_ has joined #ruby
anisha has joined #ruby
govg has quit [Ping timeout: 268 seconds]
jujule_ has quit [Client Quit]
jujule has quit [Ping timeout: 260 seconds]
pickle_ has quit [Read error: Connection reset by peer]
pickle_ has joined #ruby
alazred has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bonhoeffer has joined #ruby
minimalism has joined #ruby
olivi____ has joined #ruby
mist_ has joined #ruby
mist_ has quit [Quit: WeeChat 1.4]
pickle_ has quit [Remote host closed the connection]
pickle_ has joined #ruby
Beams has quit [Quit: .]
olivi____ has quit [Ping timeout: 260 seconds]
mist_ has joined #ruby
bonhoeffer has quit [Ping timeout: 258 seconds]
binaryplease has joined #ruby
tvw has quit [Read error: Connection reset by peer]
Robtop__ has joined #ruby
Beams has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 260 seconds]
eggshke has quit [Remote host closed the connection]
mist_ has quit [Quit: WeeChat 1.4]
eggshke has joined #ruby
mogaj has quit [Remote host closed the connection]
mist_ has joined #ruby
mist_ has quit [Client Quit]
mist_ has joined #ruby
mist_ has quit [Client Quit]
whiteline has quit [Quit: Leaving]
mist_ has joined #ruby
oliv_____ has joined #ruby
ledestin has joined #ruby
mist_ has quit [Client Quit]
mist_ has joined #ruby
ledestin has quit [Ping timeout: 240 seconds]
oliv_____ has quit [Ping timeout: 258 seconds]
morfin has joined #ruby
<morfin>
hello
Silthias has joined #ruby
<apeiros>
moin morfin
cassianoleal has quit [Quit: Off to the other side!]
<Burgestrand>
mighty morfin!
Silthias1 has quit [Ping timeout: 255 seconds]
<morfin>
i am trying to connect to IMAP server, select inbox and then idle. I receive different UntaggedResponses and if EXISTS i know new message appeared but how do i get message itself?
<morfin>
of course i can use resp.data as seq_number but there could be some issues with that i guess
<Burgestrand>
morfin I don't know about everybody else, but I could use some more backstory, e.g. where is `resp` coming from, what is it?
<Burgestrand>
Not saying I can help, mainly saying the information is lacking a bit :)
mikecmpb_ has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<morfin>
resp is response IMAP send to me
<morfin>
as i said i do imap.idle do |resp| ... end
Silthias has quit [Ping timeout: 260 seconds]
rhyselsmore has joined #ruby
<Burgestrand>
morfin yeah, but with what? You using Net::IMAP from stdlib, or something else?
<morfin>
yes stdlib
mikecmpbll has quit [Ping timeout: 260 seconds]
<morfin>
*that's stdlib
mikecmp__ has joined #ruby
mist_ has quit [Quit: WeeChat 1.4]
mikecmpb_ has quit [Ping timeout: 240 seconds]
mogaj has joined #ruby
<darix>
morfin: you need to fetch the message
hndk has joined #ruby
<darix>
it should give you the UID of the message in the notify if i recall correctly
<morfin>
it give only messages number to me
<morfin>
which could be problem to keep track on that
rhyselsmore has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
vali has quit [Quit: vali]
hndk has quit [Quit: Leaving]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
chouhoulis has joined #ruby
pandaant has quit [Remote host closed the connection]
hutch34 has joined #ruby
bonhoeffer has joined #ruby
jameser_ has quit [Ping timeout: 240 seconds]
Doow has joined #ruby
rgtk has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
<morfin>
hmm
anisha has quit [Read error: Connection reset by peer]
<Doow>
Hi, i*m getting an invalid certificate from https://rubygems.org, but only from command-line on one specific computer (not via chrome on the same computer nor from a second computer)
<Doow>
Burgestrand: thanks (It's 2.5.2 on the computer that works, so doesn't sound unlikely)
hutch34 has joined #ruby
Guest96 has quit [Remote host closed the connection]
cagomez has quit [Ping timeout: 260 seconds]
Guest96 has joined #ruby
oliv_____ has joined #ruby
two has joined #ruby
<two>
FOR THOSE THAT HAVENT SEEN IT: JASON BANDY'S EFNET NEWS EPISODE 18 IS OUT: https://youtu.be/W6G34pPE8LU <- EMOTIONAL TIMES - THE DRAMA IS REAL
mist_ has joined #ruby
mim1k has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
harfangk has joined #ruby
anisha has joined #ruby
<Doow>
Burgestrand: Everything worked greath now, thanks!
<Burgestrand>
Doow glad to hear :)
millerti has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
mogaj has quit []
jsrn_ has joined #ruby
maxirater has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
robert_reilly has joined #ruby
jeffreylevesque has quit [Ping timeout: 260 seconds]
pickle_ has quit [Remote host closed the connection]
pickle_ has joined #ruby
jphase has joined #ruby
segmond has joined #ruby
maxirater has quit [Quit: Leaving]
bloosi has joined #ruby
bonhoeffer has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
pupsicle has joined #ruby
truenito has joined #ruby
mim1k has joined #ruby
starmix has quit [Quit: WeeChat 1.7]
jeffreylevesque has joined #ruby
tomphp has joined #ruby
mist_ has quit [Quit: WeeChat 1.4]
bonhoeffer has joined #ruby
balo_ has joined #ruby
mist_ has joined #ruby
ramortegui has joined #ruby
balo_ has quit [Client Quit]
GodFather_ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pickle_ has quit [Read error: Connection reset by peer]
pickle_ has joined #ruby
tomphp has joined #ruby
username1 has joined #ruby
tomphp has quit [Client Quit]
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
cfec0b8d has quit [Remote host closed the connection]
username1 has quit [Ping timeout: 245 seconds]
pickle_ has quit [Remote host closed the connection]
eggshke has quit []
cfec0b8d has joined #ruby
oliv_____ has quit [Remote host closed the connection]
starmix has joined #ruby
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
nemish has joined #ruby
Beams has quit [Quit: .]
nemish has quit [Client Quit]
nemish has joined #ruby
agent_white has joined #ruby
<agent_white>
Mornin' folks
xall_ has joined #ruby
ben__ has joined #ruby
ben__ has quit [Remote host closed the connection]
ben__ has joined #ruby
borodin has joined #ruby
chouhoulis has quit [Remote host closed the connection]
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
DLSteve has joined #ruby
<apeiros>
moin agent_white
Beams has joined #ruby
tomphp has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bkxd_ has quit [Ping timeout: 260 seconds]
jrafanie has joined #ruby
pragmatism has quit [Quit: Connection.close!]
renchan has quit [Quit: Leaving...]
bonhoeffer has quit [Ping timeout: 240 seconds]
stoffus has quit [Quit: leaving]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nemish has quit [Ping timeout: 255 seconds]
dlitvak has joined #ruby
ben__ has quit [Remote host closed the connection]
nemish has joined #ruby
soud has quit [Ping timeout: 260 seconds]
ben__ has joined #ruby
moei has joined #ruby
moei has quit [Client Quit]
moei has joined #ruby
GetGoal has joined #ruby
GetGoal has quit [Max SendQ exceeded]
whiteline has quit [Quit: Leaving]
stan_ has quit [Read error: Connection reset by peer]
enterprisey has joined #ruby
alazred has quit [Ping timeout: 258 seconds]
whiteline has joined #ruby
enterprisey has quit [Remote host closed the connection]
stan has joined #ruby
bonhoeffer has joined #ruby
<harfangk>
is there a built-in ruby method for building product of multiple arrays where order matters and duplicates are not allowed? for example, passing [2,3], [2,3], [3,5] as arguments should give [2, 3, 5], [3, 2, 5].
domgetter has quit [Ping timeout: 240 seconds]
enterprisey has joined #ruby
<arne__>
are those input arrays always ordered?
Rodya_ has joined #ruby
lookbeat- has joined #ruby
stan has quit [Read error: Connection reset by peer]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
stan has quit [Remote host closed the connection]
skweek has joined #ruby
stan has joined #ruby
rgtk has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
bonhoeffer has quit [Ping timeout: 240 seconds]
theunraveler has joined #ruby
Xiti` has joined #ruby
chouhoul_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Xiti has quit [Ping timeout: 245 seconds]
qguv has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
umdstu has joined #ruby
chouhou__ has joined #ruby
qguv has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
<umdstu>
trying to use capistrano to deploy an app to another server than my normal one. things go ok until it gets to precompiling the assets. I get this odd Encoding::ConverterNotFoundError: code converter not found (UTF-8 to UTF-32LE) error. it's the same branch
jenrzzz has quit [Ping timeout: 260 seconds]
<harfangk>
Array#product does not care about duplication so it doesn't really work
<harfangk>
i guess i'll have to manually implement it
hotpanca_ has quit [Remote host closed the connection]
vondruch has joined #ruby
hotpancakes has joined #ruby
mikecmp__ has quit [Ping timeout: 268 seconds]
stee_3 has quit [Ping timeout: 252 seconds]
hotpanca_ has joined #ruby
hotpancakes has quit [Read error: Connection reset by peer]
mist_ has quit [Quit: WeeChat 1.4]
jcao219 has quit [Ping timeout: 240 seconds]
mist_ has joined #ruby
mist_ has quit [Client Quit]
vondruch has quit [Client Quit]
rgtk has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
DARPA has quit [Ping timeout: 255 seconds]
ltem has joined #ruby
hotpanca_ has quit [Remote host closed the connection]
hotpancakes has joined #ruby
mark_66 has quit [Remote host closed the connection]
anisha has quit [Ping timeout: 255 seconds]
JoshS has quit [Quit: Leaving]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
binaryplease has quit [Ping timeout: 252 seconds]
Guest32442 has joined #ruby
hotpancakes has quit [Ping timeout: 260 seconds]
<Guest32442>
Hi, one question - how one should manage (or debug) memory leak in Ruby? I have a script to check mongo db for certain records, and it keeps leaking memory
gusrub has joined #ruby
gusrub has quit [Client Quit]
<baweaver>
How do you know it's leaking memory? (not that I don't believe you, just seeing what you're using)
yeticry has quit [Read error: Connection reset by peer]
DARPA has joined #ruby
<hxegon>
apeiros: de-banged
enterprisey has quit [Read error: Connection reset by peer]
<Guest32442>
baweaver: I'm using htop to see memory usage, and it keeps growing
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
hotpancakes has joined #ruby
Silthias has joined #ruby
helpa-bot has joined #ruby
helpa has quit [Write error: Broken pipe]
rgr_ has quit [Remote host closed the connection]
rgr_ has joined #ruby
anisha has joined #ruby
mim1k has quit [Ping timeout: 268 seconds]
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
schickung has quit [Quit: schickung]
vondruch has quit [Client Quit]
hotpancakes has quit [Ping timeout: 255 seconds]
vondruch has joined #ruby
hahuang65 has joined #ruby
<hxegon>
Guest32442: What does your script do?
jaequery has joined #ruby
starmix has quit [Quit: WeeChat 1.7]
ben_____ has joined #ruby
muelleme_ has joined #ruby
ben__ has quit [Ping timeout: 258 seconds]
<Guest32442>
hxegon: It checks records in mongo db against some json, which I'm getting through rabbitmq. If one field is wrong in record, it should tag it for migration
outreachdan has joined #ruby
theRoUS has joined #ruby
hotpancakes has joined #ruby
xall has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
alazred has joined #ruby
steffes has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
hotpancakes has quit [Ping timeout: 260 seconds]
mooser has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Client Quit]
__Yiota has joined #ruby
vondruch has joined #ruby
patarr_ has joined #ruby
pragmatism has joined #ruby
two has quit [Ping timeout: 255 seconds]
two has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
t-recx has joined #ruby
xenops has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
fusta has joined #ruby
xall has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
choke has joined #ruby
dviola has joined #ruby
gusrub has joined #ruby
gusrub has quit [Remote host closed the connection]
choke has quit [Client Quit]
gusrub has joined #ruby
sdwrage has joined #ruby
dviola has quit [Changing host]
choke has joined #ruby
dviola has joined #ruby
hotpanca_ has joined #ruby
mooser has quit [Remote host closed the connection]
<fourcolors>
Hey, I'm trying to use 'test/unit' a very simple ruby program I'm writing but I can't seem to get test to run with a simple `ruby my_file_test.rb`
<fourcolors>
I have included `test/unit`
<fourcolors>
and extended the class
<fourcolors>
is there something more I should be doing to get a test to run?