ebouchut has quit [Quit: This computer has gone to sleep]
apeiros_ has quit [Ping timeout: 252 seconds]
RubarLion has quit [Ping timeout: 245 seconds]
apeiros_ has joined #ruby-lang
RubarLion has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
Nss has quit [Quit: Sto andando via]
MaddinXx has joined #ruby-lang
Nisstyre-laptop has quit [Ping timeout: 252 seconds]
gix has quit [Quit: Client exiting]
Nss has joined #ruby-lang
gix has joined #ruby-lang
RubarLion has quit [Ping timeout: 245 seconds]
RubarLion has joined #ruby-lang
S1kx has quit [Quit: Leaving]
RubarLion has quit [Read error: Connection reset by peer]
shemerey has joined #ruby-lang
shemerey has quit [Client Quit]
nick_h has quit [Ping timeout: 255 seconds]
nick_h has joined #ruby-lang
solars has quit [Ping timeout: 256 seconds]
solars has joined #ruby-lang
sush24 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
reppard has joined #ruby-lang
chendo_ has joined #ruby-lang
chendo_ has quit [Client Quit]
dzhulk has joined #ruby-lang
chendo_ has joined #ruby-lang
chendo_ has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 246 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
Hakon has joined #ruby-lang
tockitj_ has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
sush24 has joined #ruby-lang
reppard has quit [Ping timeout: 255 seconds]
tockitj_ has left #ruby-lang [#ruby-lang]
tockitj has joined #ruby-lang
VegetableSpoon has joined #ruby-lang
<whitequark>
apeiros_: the syntax of IRC commands surely is confusing :)
Hakon has quit [Quit: Leaving...]
reppard has joined #ruby-lang
AndChat| has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 260 seconds]
<apeiros_>
whitequark: totally
<apeiros_>
I hate it
<apeiros_>
I want my mousehustlerinterface
<apeiros_>
(is there any good translation for "clicky-bunti" or "mausschubser"? o0)
reppard has quit [Quit: leaving]
reppard has joined #ruby-lang
ebouchut has joined #ruby-lang
thillux has quit [Remote host closed the connection]
loladiro has quit [Ping timeout: 256 seconds]
toretore has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
swav has joined #ruby-lang
x0F_ is now known as x0F
S1kx has joined #ruby-lang
swav has quit [Ping timeout: 252 seconds]
reppard has quit [Ping timeout: 265 seconds]
<whitequark>
apeiros_: are you on mac? there are quite a few good irc clients afaik
<apeiros_>
yes, I use limechat. define 'good' :-S
<apeiros_>
I use limechat because it was (alas, no longer is) written in ruby
<whitequark>
apeiros_: with sane interface for those pesky commands
<apeiros_>
I haven't come across an op-friendly irc client for a while. but tbh, I really just want my scripts in ruby. I had awesome ones from back when I was op in a, hm, lets say 'less civilized' channel (xchat back then)
<whitequark>
like what?
<apeiros_>
like /kb nick, and it'd even track across nickchanges e.g.
<apeiros_>
(and ban nick & hostmask)
<apeiros_>
or /clones nick, to get a list of all nicks of the same user
<apeiros_>
or /info nick to get a list of some infos about that user (e.g. which channels, recent bans with reason, etc.)
gmci has joined #ruby-lang
gmci is now known as Guest24232
<apeiros_>
*kicks/bans
<apeiros_>
it doesn't hurt that much to not have it here, since #ruby-lang is quite civilized and kicking/banning is a rare event. but those rare times where I'd use it, I miss them.
<apeiros_>
(just to have a measure - in that other channel, ~5-10 kicks per *hour* was normal)
<whitequark>
why would you ever want to be in such a place?
<apeiros_>
I was young. it was fun :)
<whitequark>
hehe
<apeiros_>
I somewhat miss that place :-/
<whitequark>
has it disappeared due to general decline in IRC usage?
<apeiros_>
no, it was owned by a company and they lost interest
<apeiros_>
it deteriorated, I left. I think they came back up, but I never went back.
ebouchut has quit [Quit: This computer has gone to sleep]
<apeiros_>
I miss the kick/ban reasons the most
<apeiros_>
it's hard to reason about ban/unban if you don't have a history
<apeiros_>
(and no, grepping the log is not a good solution)
<charliesome>
you know what'd be awesome
<charliesome>
references in ruby
<whitequark>
apeiros_: I might add that feature to irclog.wq.org
fire has quit [Ping timeout: 260 seconds]
<apeiros_>
that'd be cool
<whitequark>
charliesome: everything in ruby is a reference
<charliesome>
i'm actually going to implement these in mri
<charliesome>
as a fun little exercise
<whitequark>
charliesome: you surely have too much time on your hands
<charliesome>
yeah
<apeiros_>
whitequark: if you add it to a log, then basically just a history (searchable by nick) of all kicks and bans would be nice. the search should result in a list of the form [date, nick, kick/ban, reason] (reason only applies to ban, though)
<whitequark>
apeiros_: that probably would be trivial, through I'm not sure if I log kicks now. probably yes. could you kick me?
<apeiros_>
clicking on such an entry should come up with the chat log from around the ban, 2 versions, A) only messages by that user and the kicking/banning op, B) ~1h back all messages
whitequark was kicked from #ruby-lang by apeiros_ [because you asked to be kicked :D]
<charliesome>
rude
reppard has joined #ruby-lang
whitequark has joined #ruby-lang
<whitequark>
yes, I do. awesome.
<TTilus>
"he was asking for it!"
Weems has quit [Ping timeout: 255 seconds]
<whitequark>
apeiros_: well, there _are_ reasons associated to kicks, no?
<apeiros_>
yes
<apeiros_>
but only to kicks, not to bans
<apeiros_>
you could associate the closest kick-reason to a ban
<apeiros_>
don't remember how I did that
<whitequark>
oh, I don't log bans. well, that could be fixed.
antbody has quit [Quit: leaving]
<whitequark>
running ALTER TABLE on 2.5+m rows is slow...
<charliesome>
NODE_LIT just carries around an object
<charliesome>
the compiler turns NODE_LITs into a push of that object
gmci has joined #ruby-lang
gmci is now known as Guest55540
Guest55540 has quit [Client Quit]
<yorickpeterse>
dat compiler
Weems has joined #ruby-lang
Weems has quit [Changing host]
Weems has joined #ruby-lang
hakunin_ has quit [Read error: Connection reset by peer]
hakunin has joined #ruby-lang
<charliesome>
@2.0.0-preview2 :001 > @lol = 123
<charliesome>
=> 123
<charliesome>
2.0.0-preview2 :002 > \@lol.value
<charliesome>
=> 123
<charliesome>
kewl
<badeball>
charliesome: that's fun, but does it offer something new or enabling something that wasn't possible? as previously stated, everything are references.
<charliesome>
badeball: they're references in the sense of c++ references
<charliesome>
sort of
<badeball>
can you change the ref-object?
<charliesome>
yes
<badeball>
ref-instance*
<charliesome>
Ref#value= currently segfaults for ivars and cvars though lol
<charliesome>
works for gvars
<charliesome>
i'm going to see if i can make it work with lvars and dvars too
<ddd>
dvars?
<charliesome>
variables from upper scopes
<ddd>
ah
<whitequark>
apeiros_: cinch breaks trying to fetch userlist :/
<whitequark>
sometimes I just hate IRC
<dominikh>
you broke it.
<dominikh>
whitequark: I'm pretty sure that Cinch should handle fetching the user list ;)
<whitequark>
it seems to be trying to fetch user.user for itself
<whitequark>
and that fails for a reason I'm unable to comprehend.
<dominikh>
oh I know why
<dominikh>
it's a bug
<whitequark>
cool
<whitequark>
is there a workaround?
<dominikh>
whitequark: would it be a problem if it won't know when/if the bot itself gets banned?
<whitequark>
dominikh: absolutely no
<dominikh>
hold on
<whitequark>
(sometimes I just love IRC. precisely for this kind of sudden communication.)
<dominikh>
I have a highlight on cinch ;)
<dominikh>
and grr, hold on a sec
postmodern has quit [Quit: Leaving]
<dominikh>
whitequark: `next if user == bot` before the check, that should(tm) work
briantrust has joined #ruby-lang
<whitequark>
dominikh: worked, thanks!
<dominikh>
:)
<dominikh>
whitequark: I wasn't following any of the conversation: is it intentional that you check _all_ users the bot knows about, instead of just those in the channel that the ban happened in?
<whitequark>
dominikh: uh, no
<whitequark>
that's probably a bug
thone_ has joined #ruby-lang
<dominikh>
well, that's what UserList#each does :P
<whitequark>
yeah, a bug in _my_ code :)
<dominikh>
oh, and: the :ban signal passes a Ban object to the block, which already includes the mask. so you don't need to do that in line 2, either
<whitequark>
as a second argument?
<dominikh>
(and the Ban object has a #match method of its own :>)
srbaker has quit [Quit: Computer has gone to sleep.]
znouza has quit [Ping timeout: 250 seconds]
srbaker has joined #ruby-lang
faustman has quit [Ping timeout: 260 seconds]
gsav has joined #ruby-lang
<dominikh>
MySQL kills kittens
<apeiros_>
whitequark: awesome! thanks :)
<whitequark>
dominikh: pull requests are accepted
<dominikh>
whitequark: soo, you want me to change your backend architecture in a pull request? :P
<whitequark>
dominikh: yeah, why not?
<whitequark>
the whole irclogger is something like 400 LOC or so
<whitequark>
at most
<dominikh>
so you change your backend every time someone sends a PR for a different dbms? ;)
kurko_ has joined #ruby-lang
<apeiros_>
dominikh: what's your choice?
srbaker has quit [Client Quit]
<dominikh>
apeiros_: for now I'm happily sticking with postgresql
reppard has quit [Ping timeout: 246 seconds]
<whitequark>
dominikh: postgres is objectively better than mysql, especially for my task. but being a lazy fuck I am I don't upgrade it, and back when I was writing irclogger I didn't know how to work with postgresql
<dominikh>
heh
<whitequark>
nor did I know about its advantages
loladiro has joined #ruby-lang
<whitequark>
while response times are <10s I'll keep mysql
<dominikh>
you should nosql memcache roflscale the hell out of it!
gsav has quit [Ping timeout: 256 seconds]
<dominikh>
and daamn, that log is pretty realtime
JohnBat26 has joined #ruby-lang
<whitequark>
dominikh: I thought about making it actually realtime, but that turned out to be too much work and load on my not-so-powerful linode
<dominikh>
whitequark: I hope you use Message#time for the timestamps, instead of Time.now or DB timestamp or w/e for the timestamps
<whitequark>
dominikh: of course. I'm not that stupid :D
<dominikh>
hehe, good
<dominikh>
was worried about out-of-order messages
<dominikh>
one idea would be: when clicking anywhere in the blank chat area
znouza has joined #ruby-lang
<dominikh>
and yay, unicode
<dominikh>
whitequark: move that thing to #cinch please :)
<socialcoder>
if I have to install a ruby gem using command prompt...shud I cd into the ruby192 folder in my C Drive first?
pcboy__ has quit [Ping timeout: 252 seconds]
<socialcoder>
or does it locate by itself?
<dominikh>
no need to cd anywhere.
<socialcoder>
it installs in the right folder eh?
<dominikh>
yes.
<socialcoder>
great
<dominikh>
whitequark: if it gets a bit more responsive, it might actually be something I'd use regularly instead of grepping my own logs
<whitequark>
dominikh: (reset selection on clicking anywhere in the blank area) done!
<dominikh>
whitequark: with a bug! :>
<whitequark>
huh?!
<whitequark>
where
<dominikh>
if I click on text (e.g. to select) it also resets
<whitequark>
ahh, that's... "intended behavior"
<whitequark>
I suck at web development.
<dominikh>
hehe
<whitequark>
or: I've no idea how to make that
<whitequark>
in fact the html of the thing is far worse than I'd like it to be :/
pcboy_ has joined #ruby-lang
<whitequark>
I was never able to make nice layouts
<whitequark>
a compiler or a decompiler, sure. a simple HTML page? NOOOOO
<ddd>
whitequark: hehe I use railsthemes templates when working on rails apps because i too suck as a designer.
<dominikh>
whitequark: yeah, no idea how to do that, either
<dominikh>
I hate webdev
<whitequark>
ddd: well I like how irclogger *looks* right now, because heck I can place things on a console
<ddd>
i template a lot of stuff just because i've absolutely no skill as a site designer. i'll work on the back-end but front-end.. not if i can help it
<whitequark>
ddd: but the ways I've achieved this sucks. for example it looks awful on smartphones :/
<whitequark>
yeah
marr has joined #ruby-lang
<dominikh>
personally, I would've went for a ul with lis instead of a div full of divs (and br/s)
_whitelogger has joined #ruby-lang
<dominikh>
oh, and: use <time> tags fur the timestamps, that'd be great
<ddd>
i have been hitting up the HTML5/CSS3 book for a lot of stuff, but i definitely would *not* consider anything I've done with it *anywhere* near professional quality.
matip_ has quit [Ping timeout: 245 seconds]
matip_ has joined #ruby-lang
srbaker has joined #ruby-lang
loladiro_ has joined #ruby-lang
sailias has quit [Ping timeout: 252 seconds]
<whitequark>
dominikh: <time> tags done
toretore has quit [Quit: Leaving]
loladiro has quit [Ping timeout: 255 seconds]
loladiro_ is now known as loladiro
<dominikh>
neat
<whitequark>
one thing I also want to make is to show latest topic at the top of window
<dominikh>
yeah
CaptainJet has joined #ruby-lang
<dominikh>
whitequark: hm. I have an idea, but it might conflict with your design choice
<whitequark>
I'm listening
<dominikh>
whitequark: would you be open to having different colours for different nicks?
t0dd_m has quit [Quit: ChatZilla 0.9.89 [Firefox 17.0.1/20121129151842]]
reppard has quit [Ping timeout: 244 seconds]
<whitequark>
dominikh: yeah, why not
<dominikh>
that's two ideas then
<dominikh>
1) different (deterministic) colours per nick 2) also coloring the nick in messages
<whitequark>
dominikh: well, consistent hash function solves that
Artheist has joined #ruby-lang
<whitequark>
but I've no idea where to get a nice color list
<whitequark>
coloring the nick in messages could be tricky
<dominikh>
you're assuming that line selection and range selection have to use the same adressing scheme
CaptainJet has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
<dominikh>
and I don't see why they should
<whitequark>
mhmm
<whitequark>
makes sense
<dominikh>
you could store either in an data attribute
MaddinXx has quit [Remote host closed the connection]
<dominikh>
(and since the id attribute has to be unique, you can't use timestamps there :P)
<dominikh>
admittedly, with that solution, someone will complain that the range selection includes too many lines, but eh
loladiro has quit [Quit: loladiro]
<dominikh>
at least it fixes tracking conversations…
loladiro has joined #ruby-lang
<ddd>
whitequark: i think the reason you can't talk with that other nick (or are assumed banned) is because you're not logged into nickserv.
<whitequark>
ddd: hmm, might be
<ddd>
on freenode when the channel is set to require reigstered nicks, if you switch to one that isn't and try to talk, change nicks, etc, it won't let you
notajerk has joined #ruby-lang
<ddd>
I get that all the time when my client doesn't identify to nickserv in time
<dominikh>
yeah
<dominikh>
that's actually the case here
notajerk has quit [Client Quit]
kennyvb has joined #ruby-lang
matip_ has quit [Quit: Leaving]
<whitequark>
dominikh: I've actually fixed the bug with clicking on message text
<whitequark>
$(event.target).is($(this))
<dominikh>
well done!
mwjcomputing has quit [Ping timeout: 252 seconds]
gsav has joined #ruby-lang
<whitequark>
oh crap
<whitequark>
I was comparing timestamps as strings :S
<dominikh>
also nice
kennyvb has quit [Ping timeout: 252 seconds]
<whitequark>
what I was smoking?!
<yorickpeterse>
crack cocaine
Banistergalaxy has quit [Ping timeout: 255 seconds]
fire has quit [Quit: WeeChat 0.3.9.2]
nerd has joined #ruby-lang
kennyvb has joined #ruby-lang
<zzak>
good morning!
<whitequark>
morning
larrylv has quit [Remote host closed the connection]
swav_ has joined #ruby-lang
<zzak>
how is russia today?
<zzak>
we lost power on friday because of winter storm draco, whitequark's evil twin brother
<whitequark>
zzak: cold as usual
<whitequark>
-20 here
<whitequark>
well, that's not very cold
<dominikh>
whitequark: did you push the "clicking on message text" fix yet?
<whitequark>
dominikh: no
<dominikh>
good
<dominikh>
otherwise I would've had bad news :P
<whitequark>
I'm trying to fix everything else
<whitequark>
augh I hate javascript so much
<whitequark>
and jquery even more
<dominikh>
using plain js, or coffeescript?
<whitequark>
plain js
<whitequark>
it was in plain js, and I'm not up to converting all that crap to coffeescript now. after refactoring, maybe
kennyvb has quit [Ping timeout: 255 seconds]
<dominikh>
big mistake to have started in js in the first place ;)
<spike|spiegel>
please, coffeescript is not the silver bullet
<spike|spiegel>
or sarcasm fail
<dominikh>
no sarcasm.
<dominikh>
coffeescript is JS with nicer syntax.
<whitequark>
dominikh: it was ages before
<whitequark>
I didn't know about CS then. not sure if it existed at all.
ebouchut has quit [Quit: This computer has gone to sleep]
<spike|spiegel>
coffeescript is new hippy thing in the rails-magic-land, people will soon get bored of it and move on to something new and hippy
<dominikh>
well damn me then for not using rails, or ruby for webdev, and having picked it up entirely on my own :o
ebouchut has joined #ruby-lang
<whitequark>
spike|spiegel: comments like that always amaze me
<spike|spiegel>
whitequark: you are welcome
<whitequark>
having lots of useful syntactic sugar is a nice thing, period. you might not like that particular syntax, but that's another thing
MaddinXx has joined #ruby-lang
<whitequark>
how is the fact that some project is new and ostensibly "hippy" bad for that project or its usage?
<zzak>
ruby was once the "hippy new thing" with a lot of sugar
Banistergalaxy has joined #ruby-lang
<whitequark>
judge technical projects by technical properties, please
<dominikh>
whitequark: that requires a technical understanding
<whitequark>
hehe
<zzak>
some times change is scary
<whitequark>
zzak: some changes are indeed scary. like fucking jquery.
<dominikh>
imagine NOT using jquery :)
* whitequark
casts an angry look at a 500 MB twitter tab
<whitequark>
fucking half a gigabyte memory to show a fucking list of 50 140-symbol entities. yes, totally reasonable.
<dominikh>
hehe
<whitequark>
or travis which tends to eat up to 3 GB, after which Chrome kills itself
<whitequark>
otherwise it'd eat I dunno, probably all of my 10G RAM
<dominikh>
good thing I have 24!
<whitequark>
or HTML itself, in fact
<whitequark>
there's hardly anything suited worse for complex layouts than HTML
<yorickpeterse>
I dislike Coffeescript for the fact that debugging it is more painful than regular JS (this applies to any similar language such as SCSS). Other than that I'm actually getting to like it
<whitequark>
yorickpeterse: source maps to the rescue
<whitequark>
chrome already has them
<yorickpeterse>
SCSS solves it by putting a comment above the code listing the file and comments
<yorickpeterse>
errr line
<yorickpeterse>
But then again CSS is easy to debug
<whitequark>
I've seen a screenshot of a dialog with tabs with rounded corners on all four side of the pane
<yorickpeterse>
another gripe I have with CS is that the linter is dumb as fuck
<dominikh>
cores being technical, logical cpus being an abstraction by the OS
<whitequark>
bullshit
<dominikh>
# of Cores: 6 -- I'm pretty sure Intel knows what a core is :)
_br_ has quit [Excess Flood]
<whitequark>
logical cores are just as good as others, they just share huge part of their resources with an adjacent core
<whitequark>
which means that the performance on a, for example, memory-bound task won't be any better
<dominikh>
there's no such thing as "logical cores".. don't make up words. nomenclature is very clear on the distinction between cores and logical cpus
<dominikh>
and if a product is sold as a 6-core CPU, you don't turn it into a 12-core CPU
<whitequark>
s,logical cores,threads,, yes.
<dominikh>
unless you're in marketing and trying to change the way everybody refers to it
<whitequark>
but they're not an abstraction by OS.
<whitequark>
go look to ACPI tables
<spike|spiegel>
it's funny seeing you folks fight over SMT
<dominikh>
well, and you look at the die :) 6 cores
<yfeldblum>
dominikh, is that a d6?
kennyvb has quit [Ping timeout: 252 seconds]
<dominikh>
heh :)
larrylv has joined #ruby-lang
<whitequark>
dominikh: yeah, because they're clearly marked on the die. with a captioned rectangle each, yeah.
<yorickpeterse>
now now children
<yorickpeterse>
don't get all butthurt over a CPU
<dominikh>
okay, let's see. intel calls them 6-core CPUs, everybody else calls them 6-core, you call them 12-core. gee, I wonder who's right. Intel, or you. :)
<dominikh>
whitequark: and yes, they are actually very clearly visible
<dominikh>
you can even look up the definition of core if you want to.
<dominikh>
until then I'll get back to my work
_br_ has joined #ruby-lang
jtoy has joined #ruby-lang
_br_ has quit [Excess Flood]
_br_ has joined #ruby-lang
<whitequark>
dominikh: the part about "logical cores" was a typo. I meant "logical CPUs", and I've corrected myself
<whitequark>
and threads are definitely not an OS abstraction.
<dominikh>
and btw, your corrections would be more obvious if you used the common delimiter for s// :P
<dominikh>
yours looks like line noise :>
<ddd>
actually, sed can use any delimiter so long as they're paired
<whitequark>
valid sed expression
<whitequark>
yeah
<ddd>
not a worthy point to pick ;)
<dominikh>
I know, that's why I said common, not correct
<dominikh>
s,,, still looks like line noise ;)
ruby-lang757 has joined #ruby-lang
<ddd>
still not a worthy nitpick ;)
<whitequark>
dunno why do I prefer ,, but I do
<dominikh>
ddd: dude, we've been discussing what to call cores/threads/cpus, after we discussed the merits of coffeescript, which was before we discussed linking webkit. and all that in #ruby-lang. I'm sure I can nitpick on anything I want :P
<canton7>
thufir_, if you read that, it's quite different
<canton7>
probably a lot newer
<thufir_>
yes, newer. but it references the same original author
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
havenn has quit [Ping timeout: 260 seconds]
kennyvb has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
jonahR has quit [Quit: jonahR]
kennyvb has joined #ruby-lang
jbsan has joined #ruby-lang
chendo_ has joined #ruby-lang
znouza has quit [Ping timeout: 256 seconds]
<thufir_>
I'm reading https://github.com/mikel/mail/blob/master/README.md and it says how to use POP. but, how do I assign Mail.first to a variable. foo=Mail.first doesn't seem to work. Something like msg = imap.fetch(id,'RFC822')[0].attr['RFC822'] but using the mail gem? (I'm using IMAP)
<apeiros_>
thufir_: "doesn't work" does not work as problem description.
<telemachus>
apeiros_: I see what you did there.
<apeiros_>
telemachus: ^^
<apeiros_>
it's irony waiting to happen
vlad_starkov has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
<thufir_>
the errors are not informative for me: https://gist.github.com/4292316 I can retrieve IMAP messages fine using net/imap but would prefer to use the mail gem. It's the same server settings (localhost).
dzhulk has joined #ruby-lang
<apeiros_>
thufir_: better.
<apeiros_>
thufir_: just foo = Mail.first
vlad_starkov has quit [Read error: Connection reset by peer]
<apeiros_>
though, it seems like mail is unhappy about the data it gets
MaddinXx has joined #ruby-lang
<thufir_>
yes, I tried that. similar results. few min pls.
vlad_starkov has joined #ruby-lang
<apeiros_>
it's either a bug in Mail (the gem) or in the SMTP server. former is probably more likely.
<apeiros_>
do you have something like tcpflow to monitor your network traffic?
<apeiros_>
ah, ssl, hm…
<apeiros_>
the error would even be in ruby's net/imap library, not Mail itself
<apeiros_>
*bug
drbrain has quit [Remote host closed the connection]
jonahR has joined #ruby-lang
_whitelogger has joined #ruby-lang
<thufir_>
I'm wondering whether it's logging in correctly. the net/imap gem logs in to the localhost (dovecot) IMAP server fine. https://gist.github.com/4292316 the net/imap script at the bottom runs fine, the mail gem script gives that error. I don't think the mail gem is logging in correctly, but I'm not sure.
<whitequark>
hm
gregmoreno has joined #ruby-lang
<apeiros_>
would be sad if it doesn't report a login failure properly
<apeiros_>
I'd probably "monkey patch" net/imap and add a bit of debug output
<thufir_>
presumably if the mail gem will login to POP3, it will login to IMAP? So, I would like to to do that. The sample code doesn't say how to assign Mail.first, but it's probably message=Mail.first. yes?
<thufir_>
guess I'll just use net/IMAP and move on...
<apeiros_>
in your case, I'd open /home/thufir/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/net/imap.rb:2015 and add a `puts '-'*100,str,'-'*100` at the start of the `parse` method
<apeiros_>
the mail gem uses the IMAP stdlib
<thufir_>
right, that's what I assumed, that the mail gem would use another ?gem?. that puts is to get more data about what's failing?
<apeiros_>
that puts prints the message IMAP tries to parse and fails
drbrain has joined #ruby-lang
<thufir_>
/home/thufir/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/net/imap.rb is empty and there's no net-imap gem listed in gems list --local, so I'm looking up how to install that. The other script uses that gem and runs fine, so I inferred it was installed. Perhaps that's all it was.
<zenspider>
thufir_: there is no net-imap gem. if your stdlib net/imap.rb is empty then something is really wrong with your install
<zenspider>
and really really odd.... since you used rvm
<apeiros_>
and since the file was reported in the error…
<apeiros_>
I'd guess you have some invisible character copy pasted
<zenspider>
is the path actually right?
<zenspider>
`gem which net/imap`
<apeiros_>
i.e., you're not really opening /home/thufir/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/net/imap.rb
<thufir_>
zenspider: thanks, I'm looking into it. yes, I do use rvm. I'm going to poke around. ah, invisibcle character. ok. doh.
<zenspider>
yeah. that's where I'm going too. I'll leave this in your hands :P
<thufir_>
heh
francisfish has joined #ruby-lang
<zenspider>
invis... wha?
<zenspider>
anyone here have experience with datamapper?
<thufir_>
invincible characters!
<yxhuvud>
the pattern or the library?
<zenspider>
yxhuvud: the library. sorry. I should have been more clear
<zenspider>
thufir_: how the hell do you have invisible characters in your path?
<zenspider>
I'm trying out an experiment using datamapper and when I run my tests via rake (and therefore with -w) I get ~200 warnings on 1.8 and ~500 warnings on 1.9. At this point, I'm guessing it isn't me doing something wrong, but I thought I'd ask
<yxhuvud>
can't help you either way though - I only knew they were pretty different.
<thufir_>
zenspider: I don't think that's it. I have two rubies, 1.9.2x and 1.9.3 and that might a prob. I'm looking at which is default and so forth.
<yxhuvud>
ouch.
<zenspider>
(esp given how anal dan kubb is about testing...)
GarethAdams has joined #ruby-lang
<zenspider>
(where anal == amazing)
<whitequark>
ok, so now irclogger has live updates!
<zenspider>
thufir_: you prolly want to see if `which gem` matches `which ruby`
<thufir_>
I'm using 1.9.3 ruby, rvm and there is such a file as /home/thufir/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/net/imap.rb so that was copy/paste error, I guess.
<zenspider>
or somesuch
Nisstyre-laptop has joined #ruby-lang
_whitelogger has joined #ruby-lang
<rue>
dkubb’s around often…
mjio has joined #ruby-lang
<thufir_>
ok, well, hungry so I'm going to leave this for a bit. probably something silly on my part anyhow. thanks all :)