apeiros_ changed the topic of #ruby-lang to: Ruby 1.9.3-p327: http://ruby-lang.org (ruby-2.0.0-preview2) || Paste >3 lines of text on http://gist.github.com
xalei has quit [Remote host closed the connection]
heftig has joined #ruby-lang
lcdhoffman has joined #ruby-lang
rhalff has joined #ruby-lang
Ridders24 has quit [Ping timeout: 264 seconds]
havenn has joined #ruby-lang
RubarLion has joined #ruby-lang
yxhuvud has joined #ruby-lang
rhalff has quit [Ping timeout: 246 seconds]
ryanlecompte has joined #ruby-lang
enebo has joined #ruby-lang
enebo has quit [Client Quit]
yxhuvud2 has quit [Ping timeout: 246 seconds]
kennyvb has quit [Ping timeout: 244 seconds]
yaroslav has joined #ruby-lang
reppard has joined #ruby-lang
kentos has quit [Ping timeout: 244 seconds]
kennyvb has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 255 seconds]
bcardarella has joined #ruby-lang
sepp2k has quit [Remote host closed the connection]
bcardarella has quit []
kentos has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
tdy has quit [Quit: WeeChat 0.3.9.2]
havenn has quit [Remote host closed the connection]
rhalff has joined #ruby-lang
charliesome has joined #ruby-lang
havenn has joined #ruby-lang
havenn has quit [Read error: Connection reset by peer]
havenn has joined #ruby-lang
mercwithamouth has joined #ruby-lang
davidbalbert is now known as davidbalber|away
yaroslav has quit [Quit: yaroslav]
ryanlecompte has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 250 seconds]
topriddy has quit [Quit: topriddy]
marr has quit [Read error: Connection reset by peer]
rhalff has quit [Ping timeout: 252 seconds]
scholar01 has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
apeiros_ has quit [Remote host closed the connection]
reppard has quit [Ping timeout: 252 seconds]
drbrain has quit [Remote host closed the connection]
_br_- has quit [Excess Flood]
stonerfish has quit [Quit: Leaving.]
_br_ has joined #ruby-lang
stonerfish has joined #ruby-lang
_br_ has quit [Excess Flood]
kurko_ has quit [Ping timeout: 252 seconds]
stonerfish has quit [Client Quit]
stonerfish has joined #ruby-lang
LionRubar has joined #ruby-lang
RubarLion has quit [Remote host closed the connection]
_br_ has joined #ruby-lang
neocoin has joined #ruby-lang
yxhuvud2 has joined #ruby-lang
yxhuvud has quit [Ping timeout: 260 seconds]
RubarLion has joined #ruby-lang
LionRubar has quit [Read error: Connection reset by peer]
glebm has joined #ruby-lang
mercwithamouth has joined #ruby-lang
nerd has joined #ruby-lang
mwn has quit [Quit: Lost terminal]
postmodern has quit [Remote host closed the connection]
nick_h has quit [Ping timeout: 256 seconds]
nick_h has joined #ruby-lang
drbrain has joined #ruby-lang
reppard has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
micaeked has quit [Ping timeout: 246 seconds]
postmodern has joined #ruby-lang
tbuehlmann has joined #ruby-lang
kentos has quit [Ping timeout: 244 seconds]
reppard has quit [Ping timeout: 255 seconds]
JoelMcCracken has quit [Ping timeout: 252 seconds]
dstywho has joined #ruby-lang
postmodern has quit [Quit: Leaving]
kentos has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
apeiros_ has joined #ruby-lang
<chris2> >> z = File.read("z", :encoding => :binary);
<chris2> ?> z.encoding
<chris2> TypeError: can't convert Symbol into String
<chris2> kinda late checking...
RubarLion has quit [Ping timeout: 252 seconds]
RubarLion has joined #ruby-lang
gsav has joined #ruby-lang
apeiros_ has quit [Ping timeout: 265 seconds]
dstywho has quit [Remote host closed the connection]
madish has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121026125834]]
tbuehlmann has quit [Remote host closed the connection]
yxhuvud has joined #ruby-lang
yxhuvud2 has quit [Ping timeout: 252 seconds]
tentimes has quit [Remote host closed the connection]
gsav has quit [Ping timeout: 252 seconds]
dzhulk has quit [Quit: Leaving.]
jhn has joined #ruby-lang
gix has quit [Quit: Client exiting]
apeiros_ has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
relic has joined #ruby-lang
reppard has joined #ruby-lang
caemir has joined #ruby-lang
apeiros_ has quit [Ping timeout: 265 seconds]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
havenn has quit [Read error: Operation timed out]
neocoin_ has joined #ruby-lang
neocoin has quit [Read error: Connection reset by peer]
jsilver has joined #ruby-lang
havenn has joined #ruby-lang
jhn has quit [Ping timeout: 245 seconds]
caemir has left #ruby-lang ["Je pars..."]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
<ryanf> chris2: ... because that's a continued line
gmci has joined #ruby-lang
gmci is now known as Guest66575
apeiros_ has joined #ruby-lang
<zzak> its a defect on how irb handles symbols
faustman has quit [Ping timeout: 260 seconds]
caemir has joined #ruby-lang
<zzak> try: ruby -e 'p :+', then try 'p :+' in irb
gix has joined #ruby-lang
yxhuvud2 has joined #ruby-lang
<ryanf> zzak: nah, he just ended the line with a semicolon
<matip> do you know any good tutorial/manual/whatever of active record?
yxhuvud has quit [Ping timeout: 260 seconds]
<matip> I've been there but it's not complete at all
<matip> it's just for queries
<matip> it doesn't say anything about many things related to AR
<ryanf> oh, you want like associations and stuff?
apeiros_ has quit [Ping timeout: 250 seconds]
<matip> yep
<matip> the whole thing
caemir_ has joined #ruby-lang
<ryanf> there are three other guide pages related to AR http://guides.rubyonrails.org/
<ryanf> validations/callbacks, associations, and migrations
<ryanf> I think that pretty much covers it
<ryanf> btw if you have more rails questions you might want to ask in #rubyonrails
<matip> I have no idea about AR, but maybe I'm misunderstanding it...
<matip> isn't it like datamapper?
<matip> in DM you define classes with columns an so on
<matip> so then it's automatically created on the DB
<matip> all I found about that in AR are the migrations
imperator has quit [Quit: Leaving]
<matip> s/but/and/
waffleau has joined #ruby-lang
<matip> ryanf, do you have any idea on that matter?
<matip> maybe it's just no as DM in that sense
<matip> err, I mean, like DM *
<ryanf> AR determines the schema by looking at the db, not vice versa. changing the schema requires explicit migrations
<matip> why on Earth would you define a migration the change the scheme if it wasn't created using ruby code in the first place?
<matip> omg, it's too late here.. I'm sorry s/the change/to change/
<matip> :P
relic has left #ruby-lang [#ruby-lang]
caemir_ has quit [Quit: BNC → EXIT ! |DONE|]
<ryanf> adding tables counts as changing the schema
<ryanf> migrations are ruby code
imajes has quit [Excess Flood]
<matip> yep, that's why I'm asking...
<matip> you create tables using SQL
<matip> and change it using ruby...
<ryanf> you create tables using ruby in the form of migration files
<matip> in DM at least you create them using ruby as well
<matip> ah, ok
<ryanf> yes, this is a difference between AR and DM
imajes has joined #ruby-lang
caemir has left #ruby-lang ["Je pars..."]
Aria has joined #ruby-lang
swav has joined #ruby-lang
apeiros_ has joined #ruby-lang
gix has quit [Ping timeout: 264 seconds]
waffleau has quit [Ping timeout: 252 seconds]
swav has quit [Ping timeout: 252 seconds]
caemir has joined #ruby-lang
ryanf_ has joined #ruby-lang
gix has joined #ruby-lang
caemir has left #ruby-lang ["Je pars..."]
apeiros_ has quit [Ping timeout: 265 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
ryanlecompte has joined #ruby-lang
reppard has quit [Ping timeout: 245 seconds]
stonerfish has quit [Quit: Leaving.]
RubarLion has quit [Ping timeout: 276 seconds]
RubarLion has joined #ruby-lang
matip_ has joined #ruby-lang
RubarLion has quit [Ping timeout: 245 seconds]
matip has quit [Ping timeout: 252 seconds]
yxhuvud has joined #ruby-lang
yxhuvud2 has quit [Ping timeout: 265 seconds]
<ddd> which also applies to Sequel which is what I'm trying to convert to hehe
<ddd> and finding it a PITA to do (when coding the associations. the columns were easy, writing the associations in sequel are anything but)
apeiros_ has joined #ruby-lang
jhn has joined #ruby-lang
RubarLion has joined #ruby-lang
apeiros_ has quit [Ping timeout: 252 seconds]
havenn has quit [Remote host closed the connection]
stevechiagozie has joined #ruby-lang
havenn has joined #ruby-lang
havenn has quit [Read error: Connection reset by peer]
justinseiter has joined #ruby-lang
briantrust has quit [Remote host closed the connection]
glebm has quit [Quit: Computer has gone to sleep.]
ryanf__ has joined #ruby-lang
RubarLion has quit [Ping timeout: 276 seconds]
RubarLion has joined #ruby-lang
apeiros_ has joined #ruby-lang
VegetableSpoon has quit [Read error: Operation timed out]
ryanf_ has quit [Ping timeout: 260 seconds]
apeiros_ has quit [Ping timeout: 255 seconds]
ryanlecompte has quit [Remote host closed the connection]
jzig has quit []
havenn has joined #ruby-lang
yxhuvud2 has joined #ruby-lang
yxhuvud has quit [Ping timeout: 244 seconds]
sent-hil has joined #ruby-lang
Teddy2steper has joined #ruby-lang
ryanf__ has quit [Quit: broken pipes |||]
tubbo_ has quit []
tubbo has joined #ruby-lang
yfeldblum has joined #ruby-lang
apeiros_ has joined #ruby-lang
sent-hil has quit [Remote host closed the connection]
jhn has quit [Quit: Page closed]
apeiros_ has quit [Ping timeout: 244 seconds]
tdy has joined #ruby-lang
Teddy2steper has quit [Remote host closed the connection]
Aria has quit [Remote host closed the connection]
ryanlecompte has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
rippa has joined #ruby-lang
savage- has joined #ruby-lang
spinagon has joined #ruby-lang
savage- has left #ruby-lang [#ruby-lang]
apeiros_ has joined #ruby-lang
rippa has quit [Ping timeout: 250 seconds]
slyphon_ has quit [Ping timeout: 245 seconds]
yxhuvud has joined #ruby-lang
yxhuvud2 has quit [Ping timeout: 260 seconds]
apeiros_ has quit [Ping timeout: 255 seconds]
mercwithamouth has quit [Ping timeout: 260 seconds]
mercwithamouth has joined #ruby-lang
nertzy3 has joined #ruby-lang
stevechiagozie has quit [Ping timeout: 245 seconds]
nertzy2 has quit [Ping timeout: 260 seconds]
Nisstyre-laptop has quit [Read error: Connection reset by peer]
tdy has quit [Quit: WeeChat 0.3.9.2]
apeiros_ has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
Nisstyre-laptop has quit [Read error: Connection reset by peer]
Nisstyre-laptop has joined #ruby-lang
apeiros_ has quit [Ping timeout: 255 seconds]
rippa has joined #ruby-lang
SirRamonGabriel has joined #ruby-lang
justinseiter has quit [Remote host closed the connection]
spinagon has quit [Ping timeout: 250 seconds]
rippa has quit [Ping timeout: 250 seconds]
rippa has joined #ruby-lang
rhalff has joined #ruby-lang
yaroslav has joined #ruby-lang
tdy has joined #ruby-lang
rippa has quit [Ping timeout: 250 seconds]
spinagon has joined #ruby-lang
rippa has joined #ruby-lang
spinagon has quit [Read error: Connection reset by peer]
joooooo has joined #ruby-lang
rippa has quit [Ping timeout: 250 seconds]
setmeaway2 has quit [Ping timeout: 252 seconds]
rippa has joined #ruby-lang
yxhuvud2 has joined #ruby-lang
rhalff has quit [Quit: Leaving]
yxhuvud has quit [Ping timeout: 244 seconds]
Bosox20051 has quit [Quit: Leaving]
rippa has quit [Ping timeout: 250 seconds]
apeiros_ has joined #ruby-lang
Guest66575 has quit [Read error: Operation timed out]
rippa has joined #ruby-lang
rippa has quit [Ping timeout: 250 seconds]
apeiros_ has quit [Ping timeout: 252 seconds]
rippa has joined #ruby-lang
rippa has quit [Ping timeout: 250 seconds]
rippa has joined #ruby-lang
Nisstyre-laptop has quit [Quit: Leaving]
rippa has quit [Ping timeout: 250 seconds]
spinagon has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
fjfish has joined #ruby-lang
SirRamonGabriel has quit [Remote host closed the connection]
francisfish has quit [Ping timeout: 265 seconds]
rippa has joined #ruby-lang
spinagon has quit [Ping timeout: 250 seconds]
nerd has quit [Quit: WeeChat 0.3.9.2]
apeiros_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
RubarLion has quit [Ping timeout: 260 seconds]
havenn has quit [Remote host closed the connection]
RubarLion has joined #ruby-lang
havenn has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
apeiros_ has quit [Ping timeout: 265 seconds]
t0dd has joined #ruby-lang
larrylv has joined #ruby-lang
havenn has quit [Ping timeout: 252 seconds]
t0dd has left #ruby-lang [#ruby-lang]
tdy has quit [Read error: Connection reset by peer]
t0dd has joined #ruby-lang
facest has joined #ruby-lang
faces has quit [Ping timeout: 264 seconds]
yxhuvud has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 252 seconds]
t0dd has quit [Quit: ChatZilla 0.9.89 [Firefox 17.0.1/20121129151842]]
vlad_starkov has joined #ruby-lang
t0dd_m has joined #ruby-lang
yxhuvud2 has quit [Ping timeout: 256 seconds]
nerd has joined #ruby-lang
tdy has joined #ruby-lang
t0dd has joined #ruby-lang
kitallisii has joined #ruby-lang
kitallisii has quit [Excess Flood]
kitallisii has joined #ruby-lang
kitallisii has quit [Excess Flood]
kitallisii has joined #ruby-lang
kitallisii has quit [Excess Flood]
kitallisii has joined #ruby-lang
nerd has quit [Quit: WeeChat 0.3.9.2]
RubarLion has quit [Ping timeout: 248 seconds]
RubarLion has joined #ruby-lang
kitallisii has quit [Ping timeout: 255 seconds]
apeiros_ has joined #ruby-lang
t0dd has quit [Quit: Leaving]
kitallisii has joined #ruby-lang
kitallisii has quit [Excess Flood]
kitallisii has joined #ruby-lang
kitallisii has quit [Excess Flood]
kitallisii has joined #ruby-lang
kitallisii has quit [Excess Flood]
kitallisii has joined #ruby-lang
kitallisii has quit [Excess Flood]
kitallisii has joined #ruby-lang
kitallisii has quit [Excess Flood]
kitallisii has joined #ruby-lang
kitallisii has quit [Excess Flood]
kitallisii has joined #ruby-lang
kitallisii has quit [Excess Flood]
kitallisii has joined #ruby-lang
kitallisii has quit [Excess Flood]
vlad_starkov has quit [Remote host closed the connection]
kitallisii has joined #ruby-lang
kitallisii has quit [Excess Flood]
kitallisii has joined #ruby-lang
kitallisii has quit [Excess Flood]
kitallisii has joined #ruby-lang
kitallisii has quit [Excess Flood]
kitallisii has joined #ruby-lang
kitallisii has quit [Excess Flood]
Axsuul has quit [Read error: Connection reset by peer]
apeiros_ has quit [Ping timeout: 260 seconds]
RubarLion has quit [Ping timeout: 256 seconds]
kitallisii has joined #ruby-lang
kitallisii has quit [Excess Flood]
kitallisii has joined #ruby-lang
kitallisii has quit [Excess Flood]
kitallisii has joined #ruby-lang
kitallisii has quit [Excess Flood]
kitallisii has joined #ruby-lang
kitallisii has quit [Excess Flood]
kitallisii has joined #ruby-lang
kitallisii has quit [Excess Flood]
<zenspider> rawr
<Paradox> roar
<Paradox> ror
<Paradox> ruby on rails
<Paradox> i see what you did there zenspider
<zenspider> right. that was my plan all along
<Paradox> how goes your morning
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
Nss has joined #ruby-lang
apeiros_ has joined #ruby-lang
fire has joined #ruby-lang
jxie has quit [Quit: leaving]
yxhuvud2 has joined #ruby-lang
chendo__ has quit [Quit: Computer has gone to sleep.]
yxhuvud has quit [Ping timeout: 264 seconds]
apeiros_ has quit [Ping timeout: 252 seconds]
znouza has quit [Ping timeout: 260 seconds]
znouza has joined #ruby-lang
_br_ has quit [Excess Flood]
ryanf has quit [Quit: leaving]
ryanf has joined #ruby-lang
sush24 has joined #ruby-lang
_br_ has joined #ruby-lang
_br_ has quit [Excess Flood]
yxhuvud2 has quit [Ping timeout: 244 seconds]
marr has joined #ruby-lang
_br_ has joined #ruby-lang
ryanf has quit [Quit: leaving]
apeiros_ has joined #ruby-lang
thillux has joined #ruby-lang
yxhuvud has joined #ruby-lang
jondot has joined #ruby-lang
ebouchut has joined #ruby-lang
zmack has joined #ruby-lang
vlad_starkov has joined #ruby-lang
djinni` has quit [Read error: Connection reset by peer]
zmack has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 252 seconds]
apeiros_ has quit [Ping timeout: 252 seconds]
stardiviner has joined #ruby-lang
djinni` has joined #ruby-lang
stonerfish has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
antbody has joined #ruby-lang
RubarLion has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
faustman has joined #ruby-lang
loladiro has joined #ruby-lang
sepp2k has joined #ruby-lang
RubarLion has quit [Ping timeout: 256 seconds]
tbuehlmann has joined #ruby-lang
RubarLion has joined #ruby-lang
apeiros_ has joined #ruby-lang
RubarLion has quit [Ping timeout: 245 seconds]
RubarLion has joined #ruby-lang
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> whitequark: as in
<whitequark> apeiros_: ok. could you elaborate?
<charliesome> references to variables
<charliesome> so you can go
<charliesome> some_method(\some_local)
<charliesome> passes a Ref object to some_method
ebouchut has joined #ruby-lang
<charliesome> which some_method can write to
<charliesome> haha
<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...
<whitequark> Query OK, 2483402 rows affected (3 min 57.27 sec)
AndChat| has quit [Quit: Bye]
Banistergalaxy has joined #ruby-lang
fire has joined #ruby-lang
srbaker has joined #ruby-lang
reppard has quit [Ping timeout: 260 seconds]
ebouchut has quit [Quit: This computer has gone to sleep]
Guest24232 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ebouchut has joined #ruby-lang
marr has quit [Ping timeout: 256 seconds]
<charliesome> whitequark: that's not THAT slow
dzhulk has quit [Quit: Leaving.]
jjoos has joined #ruby-lang
<whitequark> charliesome: and I'm not migrating rows... yet
<whitequark> UPDATE irclog SET opcode='kick' WHERE opcode IS NULL AND line LIKE '%was kicked from%';
<whitequark> that gonna take forever, and I have seven opcodes to handle.
<charliesome> shouldn't take too long
sn0wb1rd has quit [Read error: Connection reset by peer]
sn0wb1rd has joined #ruby-lang
<whitequark> ok, everything except logging bans is working...
jxie has joined #ruby-lang
jjoos has quit [Ping timeout: 245 seconds]
<whitequark> apeiros_: would it be correct to match nick first, and if it's *, then by user?
<whitequark> so that +b foo!*whitequar@81.163.18.* would have nick set to "foo", and +b *!*whitequar@81.163.18.* would have nick set to "whitequar"
<charliesome> haha, success!
<charliesome> 2.0.0-preview2 :001 > \$lol
<charliesome> => #<Ref:0x007fad9b86ee08>
<apeiros_> you'd have to scan the userlist at that moment
<apeiros_> a hostmask may match multiple nicks
<charliesome> global references work without any changes to compile.c thanks to NODE_LIT
<charliesome> ivar, cvar references currently cause: [BUG] iseq_compile_each: unknown node: NODE_IVAR_REF
<apeiros_> NOODLE_IT?
<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> dominikh: http://pastie.org/5568670 looks like this
<whitequark> dominikh: for this code: http://pastie.org/5568671
<dominikh> whitequark: which version of Cinch?
<whitequark> 2.0.3
<dominikh> and line 98 is which?
<whitequark> the one with user =~ mask
<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 :>)
<whitequark> dominikh: nice, thanks, fixed that
thone has quit [Ping timeout: 255 seconds]
yaroslav has quit [Quit: yaroslav]
<dominikh> oops. m.channel.users, not channel.users
<whitequark> dominikh: that would place the User object in actual_nick if it doesn't have nick ;)
<whitequark> errr
<whitequark> not enough sleep
<dominikh> :)
<dominikh> it'll be nil or the user's nick ;)
<whitequark> yeah, I'm supposed to know how shortcut binary operators work :D
<whitequark> theoretically
<dominikh> :>
<dominikh> actually, let me check that I haven't just reintroduced the bug :P
<dominikh> (stupid thing, has been on the todo list for a while now)
<dominikh> nope, shouldn't have the bug there I think
<whitequark> dominikh: seems to work for me
<dominikh> now it'll even know when it got itself banned ;)
<whitequark> ok, deploy time!
<dominikh> :)
<dominikh> and I really got to get rid of that highlight!
<whitequark> why?
<dominikh> it causes me work :>
<whitequark> hehe
<whitequark> I like how you can summon headius by saying "jruby" :D
<dominikh> hehe
<whitequark> even regardless of medium. he monitors everything I use
socialcoder has joined #ruby-lang
<socialcoder> This may sound like a silly question but is there a difference between CTRL+C and CTRL-C. If so, what is it?
<dominikh> whitequark: I could need that next time I'm waiting months for them to fix a bug in jruby that prevents cinch from running ;)
<dominikh> socialcoder: different ways of saying the same thing.
<whitequark> (the fact that this is possible at all is kinda scary actually)
<socialcoder> thanks dominik
<whitequark> dominikh: hm, what bug?
_whitelogger has joined #ruby-lang
<dominikh> only took half a year ;)
nick_h has quit [Ping timeout: 260 seconds]
<yorickpeterse> Is there some way I can tell #methods, #instance_methods and the likes to only list methods explicitly defined in a given constant?
<yorickpeterse> Instead of also returning everything from parent constants
Teddy2steper has joined #ruby-lang
<whitequark> yorickpeterse: s,constant,module, and yes
<whitequark> > Object.methods(false)
nick_h has joined #ruby-lang
<yorickpeterse> oooh neat
<whitequark> you don't define anything in constants. constant is just another form of a variable in Ruby with especially weird lookup rules.
<whitequark> you define stuff in modules (class.is_a?(Module) => true)
<yorickpeterse> well yeah, classes in this case
pcboy__ has joined #ruby-lang
<whitequark> half of my database is joins and quits
<whitequark> ugh.
<yorickpeterse> whitequark: thanks, this saves me quite some data noise
pcboy_ has quit [Ping timeout: 248 seconds]
<socialcoder> target = File.open(filename, 'w') what does the 'w' do?
<socialcoder> why I had to pass a 'w' as an extra parameter to open
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<whitequark> apeiros_: http://pastie.org/5568815
<badeball> meh, I guess the IO class description explains file mode better: http://www.ruby-doc.org/core-1.9.3/IO.html
<whitequark> esp. 403442 makes me wonder
<badeball> socialcoder: scroll a bit down
<socialcoder> I did, but I am not able to follow. its a bot technical for me at this stage
* apeiros_ should /nick ze_kickmazter
<whitequark> apeiros_: that's not all data, just the part of it which happened to be malformed
<whitequark> let me deploy the rest of update after I migrate stuff
<socialcoder> are you referring to this - writable?(file_name) → true or false click to toggle source
<socialcoder> Returns true if the named file is writable by the effective user id of this process.
<socialcoder> I did not really understand that
<badeball> socialcoder: w: «Write-only, truncates existing to zero length or creates a new file for writing.»
<badeball> opening a file in w-mode (that is what the "w" means) will create a new file or entirely replace an existing one.
<socialcoder> what do you mean 'to zero length'? Do you mean it empties the file? If so, I though 'truncate' did that
<socialcoder> hmmmm
<socialcoder> so it not only writes, but also can create file or overwrite an existing file
<socialcoder> so I guess it also asks, if u want to go ahead with the operation?
swav has joined #ruby-lang
<socialcoder> if not reight after, when then?
<socialcoder> *right
<whitequark> done!
<badeball> socialcoder: look at this example: http://www.ruby-doc.org/core-1.9.3/File.html#method-i-truncate
reppard has joined #ruby-lang
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> haha, I love the highlighting of message (ranges)
<whitequark> it's stupid as a log
reppard has joined #ruby-lang
<whitequark> dominikh: it can also track reply chains
<dominikh> good lord, neat.
<whitequark> which helps *a lot* with interleaved discussins between unrelated people
<dominikh> now I feel bad for not prefixing every message with the recipient's nick :P
<whitequark> well, it joins consecutive messages from the same user into one group, after you mention someone's nick
sailias has joined #ruby-lang
<whitequark> so you don't have to prefix *every* one
sailias has quit [Client Quit]
<dominikh> http://irclog.whitequark.org/ruby-lang/2012-12-23#1356275318-chain; it loses track when I reply to you without a prefix
<whitequark> yes
<whitequark> there isn't a way to continue tracking
sailias has joined #ruby-lang
<dominikh> yeah, I know
<whitequark> it pessimistically assumes that if someone interrupted you, you could reply to either of these people
<dominikh> http://irclog.whitequark.org/ruby-lang/2012-12-23#1356275903-chain; also confuses the heck out of me :P
<whitequark> well, it's not exactly ideal
<dominikh> can't spot anything obviously wrong in the code :)
<dominikh> whitequark: needs a straightforward way to get rid of the "filter"
<dominikh> nvm
<whitequark> dominikh: there's an (x) button
<whitequark> in the field
<dominikh> I see a clear selection in the left column
<dominikh> no X whatsoever
<dominikh> ooh, sorry
<whitequark> dominikh: Filter: [ your text_______ (x) ]
<dominikh> didn't mean THAT filter.
<dominikh> meant the tracking
<whitequark> ahh
matip_ has quit [Read error: Connection reset by peer]
<whitequark> "Clear selection" does it
<dominikh> yeah. didn't really see that because it's quite a bit away from the chat area
matip_ has joined #ruby-lang
<dominikh> and nowhere near where I initiated the tracking
<whitequark> well, I've no idea how to make it better
<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> heh. I'm the one who got coloring nicks in messages to weechat, it's doable :P
<whitequark> dominikh: I've no way to get a list of nicks for a particular moment of time
<dominikh> fair enough
<dominikh> whitequark: you could limit it to nicks that show up in conversation
<dominikh> so aggregate that
<whitequark> so the /^mention:/ could be colored, others won't
<whitequark> hm
<dominikh> all nicks who said something in the given time window
<dominikh> would cover somewhere between 95-99% of uses of nicks in messages
<whitequark> yeah makes sense
<dominikh> it's to enhance following conversations, anyway
<whitequark> esp if you continue the window past the moment where the nick was mentioned
<dominikh> yea
<whitequark> oh
<whitequark> actually I already gather such a list.
<dominikh> haha
<dominikh> awesome
loladiro_ has joined #ruby-lang
<whitequark> what the f does this regex do: gsub(/(^|\s)(\*[^\s](?:|.*?[^\s])\*)(\s|$)/, '\1<b>\2</b>\3').
<whitequark> I've NO CLUE
<whitequark> ah, *bold*
<whitequark> and _underlined_
<dominikh> might want to comment that :P
<whitequark> the code of irclogger is a mess, shamefully
<dominikh> just call it a prototype
<whitequark> despite being the smallest of all of my projects, it also has the worst code quality
<dominikh> I've been hacking 1000 lines of code into a single file the last couple days
<whitequark> which is kinda strange
<whitequark> also most useful. both rxr and irclog get more visitors than my blog :/
<dominikh> heh
Teddy2steper has quit [Remote host closed the connection]
loladiro has quit [Ping timeout: 245 seconds]
loladiro_ is now known as loladiro
<yfeldblum> whitequark, it translates "asdf *1234* bobsmith" to "asdf <b>1234</b> bobsmith"
<dominikh> you, sir, are late
socialcoder has quit []
<whitequark> NoMethodError: undefined method `to_i' for #<Date: 2012-12-23 ((2456285j,0s,0n),+0s,2299161j)>
mwjcomputing has joined #ruby-lang
<whitequark> ruby surely has a peculiar way to represent dates
<yfeldblum> whitequark, but there are a few tricks in it, as well as a few unusual things (e.g. "[^\s]" instead of "\S")
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
<whitequark> yfeldblum: well, I wrote it someday
<whitequark> I just suck at predefined classes in regexps
<whitequark> as well as commenting my code and/or reading regexps.
kurko_ has quit [Ping timeout: 252 seconds]
<whitequark> because either of that would suffice.
kennyvb has quit [Ping timeout: 245 seconds]
<whitequark> dominikh: done with the topic thingy!
<dominikh> neat
<whitequark> oh crap
Norrin has joined #ruby-lang
<dominikh> brokeeeen
<dominikh> BUT I can see the topic
<whitequark> ok, it works *now*.
<dominikh> solved it pretty nicely, too
<whitequark> I just had a suspicuous feeling...
whitequark is now known as whitequark_
whitequark_ is now known as whitequark
<whitequark> hm no.
<whitequark> but why 03:13 gmci is now known as Guest66575 ?!
<dominikh> 14:46:24*#ruby-lang -- │ gmci is now known as Guest55540
kennyvb has joined #ruby-lang
<dominikh> that's why
<dominikh> completely wrong minute, but...
Norrin has left #ruby-lang ["Textual IRC Client: www.textualapp.com"]
<dominikh> ah, different guest nick, too. I should've scrolled further
<dominikh> whitequark: what's surprising you?
<whitequark> who in their sane mind would change their nick to Guest\d{5} ?
<whitequark> from something sensible
<dominikh> freenode would
<dominikh> it's a registered and protected nick
<whitequark> ahhh.
<Mon_Ouie> That's something automatic when you don't identify in time e.g.
<dominikh> whoever tried to use it didn't identify
<whitequark> weird
<whitequark> for me it results in whitequa1k and I'm for some reason banned in ruby-lang
<whitequark> so I can't /nick while I'm there
<whitequark> in fact I'm not _actually_ banned in ruby-lang under that nick, it's just freenode thinks I am, for some reason
<dominikh> freenode is hardly ever wrong.
whitequark is now known as whitequa1k
<whitequa1k> see?
whitequa1k is now known as whitequark
<dominikh> see what
<whitequark> that I'm not banned as whitequa1k on this channel
<dominikh> uhm
<dominikh> changing your nick to it proves nothing :P
<whitequark> how so?
<dominikh> besides, there are other ways to ban someone than nick.
<whitequark> well, I always log in from the same static IPv6
<whitequark> with the same client
<whitequark> the only thing that differs is nick
totaldork has joined #ruby-lang
totaldork has quit [Client Quit]
banisterfiend has joined #ruby-lang
madish has joined #ruby-lang
<dominikh> definitely not a thing I'll "debug" by guessing :P
<whitequark> dominikh: btw you said something about "responsiveness" of irclogger
<whitequark> what's about it?
<dominikh> couple seconds to load a channel's logs
<whitequark> CREATE INDEX `irclog_channel_timestamp_index` ON `irclog` (channel, timestamp);
<whitequark> what else can I do?
Artheist has quit [Read error: Connection reset by peer]
<dominikh> another thing I won't debug by guessing :P
<whitequark> heh
<dominikh> well, I definitely found a bug now
<whitequark> let me guess: you search for something, click on the timestamp and nothing happens?
<dominikh> no.
<whitequark> oh, two bugs then
<dominikh> three, I found two
dzhulk has joined #ruby-lang
<dominikh> 1) http://irclog.whitequark.org/ruby/2012-12-23#1356280846; for some reason highlights two messages 2) clicking on the ^dsdeiz highlights two messages by someone else
<whitequark> dominikh: that's because they have same unix timestamp
<dominikh> don't tell me why, fix the brokenness :>
<tbuehlmann> :D
<dominikh> whitequark: as a matter of fact, duplicate timestamps means you mustn't use timestamps for the id attribute. ids have to be unique
<whitequark> dominikh: ids in the database are a distinct field
<dominikh> whitequark: I am talking about the html
vlad_starkov has joined #ruby-lang
<whitequark> but they might not be consecutive or even monotonically increasing wrt/ time
<whitequark> and what you're selecting is a range of _time_
<dominikh> there must only be one element with the same id in an html document. anything else isn't valid
dzhulk has quit [Client Quit]
<whitequark> have I told you I suck at making webpages? :)
dzhulk has joined #ruby-lang
<dominikh> and you haven't even commented on the second bug yet :P
<whitequark> 2) is the direct consequence of 1)
<whitequark> the chain-tracking code does that either, for the same reason
<dominikh> it's highlighting messages of someone _completely else_
<whitequark> yeah. it uses timestamp as an anchor.
<whitequark> in the case of 1), the timestamp binds it to the <shevy>
<whitequark> for 2), through, it happens to be <ddd>
<dominikh> also, I don't see how the IDs in the DB not being consecutive would be an issue?
<whitequark> disregard that part about consecutiveness
<whitequark> the actual problem is that they're not monotonic.
<dominikh> don't see how that's a problem for refering lines, either
kennyvb has quit [Ping timeout: 255 seconds]
stardiviner has joined #ruby-lang
<whitequark> dominikh: http://pastie.org/5569113. you want to select a range of timestamps 2-3
<whitequark> so the ID range becomes 1-3,
<whitequark> *.
<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
<yorickpeterse> Like, it's seriously patheticly dumb
<whitequark> it took, I dunno, 64 KB RAM to render
<whitequark> now do it in HTML
<dominikh> css3, done.
<yorickpeterse> That has nothing to do with HTML and everything with the underlying engine (webkit, etc)
<whitequark> dominikh: that thing which basically requires hardware acceleration?
<yorickpeterse> And when you think about it it makes sense that it uses more
neocoin_ has quit [Remote host closed the connection]
<whitequark> yorickpeterse: yes, the part that doesn't make sense is building applications in HTML
<yorickpeterse> Having said that, for non web stuff I wouldn't want to use HTML
<dominikh> whitequark: I doubt very much it _needs_ it
<whitequark> yorickpeterse: especially MOBILE apps
yaroslav has joined #ruby-lang
<dominikh> glad my current project will be entirely static html (hopefully)
<whitequark> yeah, please spend millions of my valuable CPU cycles to render your fucking tags, while draining my precious battery
<dominikh> whitequark: if it uses CPU cycles, that's not hardware accel :P
srbaker has quit [Quit: Computer has gone to sleep.]
<whitequark> dominikh: HTML layout isn't HW accelerated
<whitequark> GPUs come with their own complexity. fat, poorly written drivers which leak RAM.
<yfeldblum> it's CPU accel (as opposed to hiring a painter to draw on your screen based on the html/css)
<whitequark> now there's that Firefox OS, where the entire OS is done in HTML. what a waste.
<yorickpeterse> I'm actually quite interested in Firefox OS
<whitequark> and they target _low-end_ phones, which I don't even, because it's slow on SGS2 already
<yorickpeterse> Just as I was when WebOS was still around
<whitequark> which is one of the most powerful phones on the market
<whitequark> was
<whitequark> when it came out
<dominikh> Firefox OS...
<whitequark> I hope it just dies and does not waste time of developers elsewhere
<dominikh> I'd rather give my sgs2 away for free than put that on it :P
<whitequark> exactly.
kennyvb has joined #ruby-lang
<whitequark> layout engines these days are so fat they can't even be linked with a 32-bit address space
<whitequark> which is a WTF of itself
<whitequark> webkit links for ~8 hours on a top-notch 12-core i7 with 32 GB of RAM
<whitequark> eight fucking hours
<yorickpeterse> I tried to compile webkit once at work
<yorickpeterse> I gave up because I couldn't do anything else
<dominikh> pretty sure there's no 12-core i7 btw :P
mistym has quit [Remote host closed the connection]
<dominikh> aka 6 cores.
<dominikh> 12 logical cpus
<dominikh> vastly different thing :)
<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.
larrylv has quit [Ping timeout: 252 seconds]
<dominikh> threads aren't, no.
<whitequark> ok then
<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
<ddd> lol, touche
<whitequark> dominikh: we've discussed coffeescript _before_ webkit
<dominikh> I said that
<dominikh> I just didn't order my list chronologically :P
<whitequark> oh
<whitequark> yes
<whitequark> it's basically a tree
swav_ has quit [Remote host closed the connection]
<dominikh> well then, back to my work that involves postgresql :P
swav has joined #ruby-lang
swav has quit [Remote host closed the connection]
<yxhuvud> I can think of worse fates
ruby-lang757 has quit [Ping timeout: 245 seconds]
<dominikh> yeah, whitequark's, he's dealing with MySQL ;)
<yxhuvud> me too :(
<dominikh> aw
vlad_starkov has quit [Remote host closed the connection]
swav has joined #ruby-lang
<whitequark> range.map(parseInt)
<whitequark> [1356271350, NaN]
<whitequark> range.map(function(e) { return parseInt(e); })
<whitequark> [1356271350, 1356271352]
jtoy has quit [Quit: jtoy]
<whitequark> javascript, go home, you are drunk :S
<yorickpeterse> parseInt() needs a radix in order to work reliably
<yorickpeterse> parseInt(number, 10) for example
<whitequark> yorickpeterse: well, it does work without a radix in a second expression
<yorickpeterse> Hm interesting, it seems Chrome has changed the behaviour
<yorickpeterse> parseInt('08') used to return 0
<yorickpeterse> it now returns 8
sepp2k has quit [Ping timeout: 255 seconds]
<apeiros_> whitequark: JS' map yields more than 1 param
<apeiros_> so what happens is that you do parseInt("1356271352", 1) for the second value
<whitequark> so convenient
kennyvb has joined #ruby-lang
<whitequark> well, thanks for the explanation
<apeiros_> [10,20,30].map(function() { return [].slice.call(arguments,0) }) // => [[10,0,[10,20,30]], [20,1,[10,20,30]], [30,2,[10,20,30]]]
jtoy has joined #ruby-lang
loladiro has quit [Quit: loladiro]
ebouchut has quit [Quit: This computer has gone to sleep]
Axsuul has joined #ruby-lang
sepp2k has joined #ruby-lang
stonerfish has joined #ruby-lang
SimonEsper has joined #ruby-lang
<whitequark> dammit github! "Connection to 207.97.227.239 timed out while waiting to read" at least two times before a successful push
Nisstyre-laptop has joined #ruby-lang
jtoy has quit [Quit: jtoy]
<whitequark> fixed that
<whitequark> also, loading time of several seconds is FAIL
<dominikh> yes it is
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
<dominikh> and I cant clear the highlight anymore, no matter where I click
<whitequark> sigh ><
<dominikh> isn't having users great?
loladiro has joined #ruby-lang
<whitequark> I've nothing about users. I do have a lot against bugs which I can't fix properly because I'm too fucking stupid to do that.
<dominikh> but without users you wouldn't know about the bugs
<dominikh> and as we all know, if nobody notices a bug, it doesn't exist :P
havenn has joined #ruby-lang
<dominikh> much like the one you noticed in cinch today
<whitequark> well, there wasn't exactly a lot of bugs before, because I just wrote irclogger on two evenings and it hasn't changed for a year
<whitequark> I clicked through everything back then
<whitequark> and fixed stuff
<dominikh> hehe
<whitequark> hm. I don't understand why the selection clearing was working before.
<dominikh> haha
banisterfiend has quit [Ping timeout: 252 seconds]
ryanf has joined #ruby-lang
loladiro has quit [Ping timeout: 265 seconds]
Nisstyre-laptop has quit [Quit: Leaving]
Nisstyre-laptop has joined #ruby-lang
drbrain has quit [Read error: Connection reset by peer]
drbrain has joined #ruby-lang
<whitequark> dominikh: well, I fixed the Clear selection button. no idea how to make your suggestion work.
<dominikh> bummer
drbrain has quit [Remote host closed the connection]
<tbuehlmann> whitequark, what about having live updates for your channel site?
<whitequark> tbuehlmann: channel site?
<whitequark> you mean irclogger?
<whitequark> I just spent a few hours trying to make 200 line javascript module work
SirRamonGabriel has joined #ruby-lang
<whitequark> I'm not sufficiently motivated to add live updates.
<whitequark> well, maybe.
<whitequark> I'll try
<tbuehlmann> got interested by listening to you guys and wrote my own little irc logger just now
<whitequark> tbuehlmann: what for?
<tbuehlmann> playing
<tbuehlmann> with using ponder, sinatra and thin it's very simple using SSEs
<whitequark> hm
<whitequark> what did you use for SSE's on sinatra?
<whitequark> I actually planned to integrate live updates more than a year ago
<whitequark> but well
<whitequark> things go fast
mercwithamouth has quit [Ping timeout: 246 seconds]
SimonEsper_ has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
rippa has quit [Ping timeout: 240 seconds]
SimonEsper_ has quit [Client Quit]
swav has quit [Remote host closed the connection]
swav has joined #ruby-lang
thufir_ has joined #ruby-lang
SimonEsper has quit [Quit: leaving]
SimonEsper has joined #ruby-lang
LogPonder has joined #ruby-lang
<tbuehlmann> whitequark, wanna see the code?
<thufir_> what is the syntax to use rbeautify.rb? http://arachnoid.com/ruby/rbeautify.rb.html I tried "ruby rbeautify.rb foo.rb" but that seems the wrong syntax...
MaddinXx has quit [Remote host closed the connection]
<whitequark> tbuehlmann: yeah
jtoy has joined #ruby-lang
<canton7> thufir_, looks like that should be how it's called
<thufir_> canton7: hmm, ok. thanks. be back in a few with a pastie I think. couldn't get it to go.
banisterfiend has joined #ruby-lang
<thufir_> How am I not running beautify.rb correctly? Or, is the script screwy?
slyphon_ has joined #ruby-lang
LogPonder has quit [Remote host closed the connection]
SimonEsper has quit [Quit: leaving]
socialcoder has joined #ruby-lang
jonahR has joined #ruby-lang
<socialcoder> wanted a quick opinion
<socialcoder> was reading about a book called Ruby Cookbook
<socialcoder> its written for Ruby 1.8
<socialcoder> Is it worth buying it or is it outdated?
emocakes has joined #ruby-lang
<socialcoder> since we r in 1.9ish now
<thufir_> how much $
sush24 has quit [Quit: This computer has gone to sleep]
drbrain has joined #ruby-lang
<socialcoder> $24
drbrain has quit [Remote host closed the connection]
drbrain has joined #ruby-lang
<thufir_> go to the library
<socialcoder> its not about dollars here. Will it be useful since it carries 1.8 code and we are in 1.9
<thufir_> yes, it's useful.
LogPonder has joined #ruby-lang
<thufir_> IMHO. I'm no expert, but have some ruby.
<socialcoder> havesome ruby, like have some chai?
<socialcoder> kidding
aedorn has joined #ruby-lang
<thufir_> heh, yeah, I got a few "gems" hanging around ;)
<socialcoder> kewl
<socialcoder> I am a newbie though
<thufir_> I only meant, for $10 that seems good value, for $100 then "no". for $24, eh, maybe.
<tbuehlmann> whitequark, message saving does not work properly right now, but live updates do. rudimentary example: http://82.82.223.156:3000/channels/ruby-lang
<thufir_> the recipes at least give you ideas.
<tbuehlmann> code following, gimme a sec
lsegal has joined #ruby-lang
<socialcoder> yep true
socialcoder has quit []
<tbuehlmann> whitequark, it's just a quick proof of concept: https://github.com/tbuehlmann/irc-logger-example
kurko_ has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
<tbuehlmann> (not dry, not well structured, really just a test)
<whitequark> tbuehlmann: yeah
* whitequark is trying to profile the app
<whitequark> Haml::Buffer#format_script_false_true_false_false_false_true_false
<whitequark> this is just awesome
<whitequark> so clear what it does.
<thufir_> tbuehlmann: why? pidgin et. al. already log IRC...so, you're building an IRC client?
mercwithamouth has joined #ruby-lang
<tbuehlmann> hm? why what?
<thufir_> just curious. why are you making an IRC logger when all IRC clients already log.
sush24 has joined #ruby-lang
<tbuehlmann> whitequark built http://irclog.whitequark.org/ and I was curios about live updates per channel. so I wrote a quick example for it
Banistergalaxy has quit [Ping timeout: 252 seconds]
sush24 has quit [Client Quit]
<tbuehlmann> my example (webapp and irc bot) runs inside an eventmachine reactor
Banistergalaxy has joined #ruby-lang
sush24 has joined #ruby-lang
<tbuehlmann> closing the app now..
LogPonder has quit [Remote host closed the connection]
<emocakes> lol whitequark
gsav has quit [Ping timeout: 255 seconds]
leopard_me has joined #ruby-lang
<whitequark> emocakes: what?
<emocakes> Haml::Buffer#format_script_false_true_false_false_false_true_false
<whitequark> ah. yes.
swav has quit [Remote host closed the connection]
<whitequark> dominikh: well, I've made the app substantially faster
<whitequark> 800ms on my desktop
<whitequark> and I'll know how much on production when the f#%! github will finally receive my push
mercwithamouth has quit [Ping timeout: 252 seconds]
Nss has quit [Quit: Sto andando via]
havenn has quit [Remote host closed the connection]
<whitequark> dominikh: well, not much. 4s mean
yfeldblum has quit [Quit: Leaving]
havenn has joined #ruby-lang
tonni_ has quit [Ping timeout: 264 seconds]
havenn has quit [Ping timeout: 252 seconds]
Hakon has joined #ruby-lang
tonni has joined #ruby-lang
ebouchut has joined #ruby-lang
NOKAH has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
solars has quit [Ping timeout: 260 seconds]
Hakon has quit [Ping timeout: 252 seconds]
ebouchut has quit [Quit: This computer has gone to sleep]
micaeked has joined #ruby-lang
slyv has joined #ruby-lang
sinclair has joined #ruby-lang
<sinclair> hi everyone
s0ber has quit [Read error: Connection reset by peer]
s0ber has joined #ruby-lang
havenn has joined #ruby-lang
havenn has quit [Read error: Connection reset by peer]
dzhulk has quit [Quit: Leaving.]
havenn has joined #ruby-lang
jbsan_ has quit [Quit: jbsan_]
havenn has quit [Read error: Operation timed out]
GarethAdams has joined #ruby-lang
gregmoreno has joined #ruby-lang
<dominikh> whitequark: nice
<dominikh> you keep on hacking, I'll go get some sleep
sinclair has quit []
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
countdigi has joined #ruby-lang
NOKAH has quit [Quit: Leaving...]
<zzak> gnight!
<whitequark> dominikh: yessir
<thufir_> canton7: I was using the script. works fine as a gem: https://rubygems.org/gems/ruby-beautify
havenn has joined #ruby-lang
<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 :)
xalei has joined #ruby-lang
vlad_starkov has joined #ruby-lang
retro|cz has joined #ruby-lang
rcvalle has joined #ruby-lang
wyhaines has joined #ruby-lang
mwjcomputing has joined #ruby-lang
leopard_me has joined #ruby-lang
apeiros_ has joined #ruby-lang
robbyoconnor has joined #ruby-lang
vlad_starkov has joined #ruby-lang
toretore has joined #ruby-lang