apeiros changed the topic of #ruby-lang to: Ruby 1.9.3-p374: http://ruby-lang.org (ruby-2.0.0-rc1) || Paste >3 lines of text on http://gist.github.com
banisterfiend has quit [Remote host closed the connection]
benanne has quit [Quit: kbai]
carloslopes has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
x0F_ is now known as x0F
lun_ has quit [Read error: Connection reset by peer]
lun_ has joined #ruby-lang
davidbalber|away is now known as davidbalbert
Bearproof has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
wyhaines has quit [Remote host closed the connection]
outoftime has quit [Quit: Leaving]
kogent has joined #ruby-lang
runeb has joined #ruby-lang
cirenyc has joined #ruby-lang
banisterfiend has joined #ruby-lang
<banisterfiend> yo
<banisterfiend> anyone here play sc2 on osx?
kogent has quit [Client Quit]
<CoverSlide> games on a mac? they do that now? :p
sush24 has quit [Quit: This computer has gone to sleep]
datanoise has joined #ruby-lang
runeb has quit [Ping timeout: 256 seconds]
musl has joined #ruby-lang
<banisterfiend> CoverSlide: Yeah
<banisterfiend> CoverSlide: many AAA titles come out on both mac and pc these days
* CoverSlide dusts off a copy of Marathon
gregmoreno has quit [Read error: No route to host]
<banisterfiend> CoverSlide: what dat
gregmoreno has joined #ruby-lang
<CoverSlide> The one exclusive Mac game from the 90's that was a must-play
<Spaceghost|cloud> People actually play SC2? I just watch it and sometimes wonder what I was doing while they were playing.
<CoverSlide> it was like doom, but better
<Spaceghost|cloud> "At a rave." "Home alone, wishing I were at a rave." "Crying in the shower" it get really depressing sometimes.
ryanv-raptor has joined #ruby-lang
datanoise has quit [Ping timeout: 256 seconds]
mwjcomputing has quit [Ping timeout: 246 seconds]
s1n4 has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
kogent has joined #ruby-lang
davidbalbert is now known as davidbalber|away
kogent has quit [Remote host closed the connection]
kogent has joined #ruby-lang
s1n4 has quit [Client Quit]
dankest has quit [Quit: Leaving...]
karasawa has joined #ruby-lang
methods has joined #ruby-lang
karasawa has quit [Ping timeout: 256 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
bfreeman_ has quit [Quit: bfreeman_]
bantic has quit [Quit: bantic]
toretore has quit [Quit: Leaving]
ronaldo__ has joined #ruby-lang
ronaldo__ has left #ruby-lang [#ruby-lang]
cirenyc has quit [Quit: Leaving...]
datanoise has joined #ruby-lang
headius has quit [Quit: headius]
cirenyc has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
mrsolo has quit [Quit: Leaving]
headius has joined #ruby-lang
headius has quit [Client Quit]
sush24 has joined #ruby-lang
datanoise has quit [Ping timeout: 255 seconds]
voker57 has quit [Read error: Operation timed out]
voker57 has joined #ruby-lang
<zenspider> speaking of which... I'm about to release a new version of hoe :)
davidbalber|away is now known as davidbalbert
bzalasky has joined #ruby-lang
wallerdev has joined #ruby-lang
anekant has joined #ruby-lang
imperator has quit [Quit: This computer has gone to sleep]
kurko_ has quit [Ping timeout: 244 seconds]
ryanv-raptor has quit [Quit: Leaving.]
apeiros_ has joined #ruby-lang
cbjorn has joined #ruby-lang
chuenjin_ has joined #ruby-lang
ryanf has quit [Ping timeout: 252 seconds]
Asher has quit [Quit: Leaving.]
spuk has quit [Ping timeout: 240 seconds]
chuenjin has quit [Ping timeout: 276 seconds]
chuenjin_ has quit [Ping timeout: 252 seconds]
chuenjin has joined #ruby-lang
Asher has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
spuk has joined #ruby-lang
mwjcomputing has joined #ruby-lang
mjio has quit []
asaaki has quit [Ping timeout: 245 seconds]
havenn has quit [Remote host closed the connection]
karasawa has joined #ruby-lang
havenn has joined #ruby-lang
earthquake has joined #ruby-lang
<CoverSlide> when hoe does something wrong do you bitch slap it?
madish has quit [Remote host closed the connection]
<banisterfiend> haha
karasawa has quit [Ping timeout: 248 seconds]
havenn has quit [Ping timeout: 244 seconds]
<anekant> trying to do gem install mechanize, i get: z:\ruby\lib\ruby\1.8\i386-mswin32\config.h(2) : fatal error C1189: #error : MSC version unmatch
<anekant> in the specified config.h, the first three lines are: #if _MSC_VER != 1200 #error MSC version unmatch #endif
<anekant> is there a way to fix this or should i just forget about using mechanize on windows?
<CoverSlide> s/mechanize/ruby/
<anekant> okay off to python then, i'll try beautiful soup instead :/
asaaki has joined #ruby-lang
dankest has joined #ruby-lang
<zenspider> sexp_processor version 4.1.4 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2013/01/sexp_processor-version-4-1-4-has-been-released.html
<zenspider> hoe version 3.5.0 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2013/01/hoe-version-3-5-0-has-been-released.html
rsl has quit [Quit: Computer has gone to sleep.]
banisterfiend is now known as banister`sleep
<zenspider> anekant: I don't see anything having to do with mechanize in that error. looks liek you fucked up your developer environment
<zenspider> like
<anekant> and mechanize has to be built from source, no binaries?
Asher has quit [Ping timeout: 244 seconds]
davidbalbert is now known as davidbalber|away
davidbalber|away is now known as davidbalbert
havenn has joined #ruby-lang
<zenspider> anekant: mechanize is pure ruby
<zenspider> probably nokogiri is blowing up?
Asher has joined #ruby-lang
davidbalbert is now known as davidbalber|away
blahwoop has quit [Ping timeout: 252 seconds]
havenn has quit [Read error: Connection reset by peer]
havenn_ has joined #ruby-lang
<zenspider> ZenTest version 4.8.4 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2013/01/ZenTest-version-4-8-4-has-been-released.html
Bearproof has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
tenderlove has quit [Remote host closed the connection]
sn0wb1rd has quit [Quit: sn0wb1rd]
<anekant> oh "mechanize requires Ruby version >= 1.8.7."
<anekant> i'm using 1.8.6
* lianj dies a bit inside
<anekant> oh well, maybe python's scrapy will work for me
havenn_ has quit [Ping timeout: 276 seconds]
* anekant wonders what happened to backwards compatibility
ryanf has joined #ruby-lang
paul0 has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
<lianj> not even 1.8.7 is suggested to use anymore
<anekant> why?
<blazes816> it's obsolete
<anekant> i tried updating and it broke too much of my code
<lianj> anekant: on what system did you get 8.6?
<blazes816> 1.9 has been out forever and 2.0 is on the horizon
<anekant> yeah they changed too much for me
ViPi has quit [Quit: Computer has gone to sleep.]
<anekant> i guess python's the way to go these days :/
<ten1> 1.9 is in Debian stable. That's the definition of "been out forever"
<ten1> lol
<anekant> i had such fondness for ruby
<ten1> troll harder
<anekant> but the authors took it in a completely wrong direction for my purposes
<lianj> whats that?
<anekant> netcraft confirms it, ruby's dead
<bluepojo> the troll is strong in this one
<bluepojo> XD
anekant has left #ruby-lang ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
<bluepojo> wait till he discovers Python 3.0
__butch__ has quit [Quit: Leaving.]
bzalasky has quit [Remote host closed the connection]
<ten1> what sort of differences are there between 1.8 and 1.9 that would break lots of code?
<lianj> encoding, mostly
<ten1> and that is non-trivial for why?
account has quit [Ping timeout: 245 seconds]
megha has joined #ruby-lang
andrewhl has joined #ruby-lang
<lianj> you ask the troll
bzalasky has joined #ruby-lang
sailias has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
sush24 has quit [Quit: This computer has gone to sleep]
megha is now known as database
mjio has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
cirenyc has quit [Quit: Leaving...]
cirenyc has joined #ruby-lang
christina has joined #ruby-lang
christina has quit [Client Quit]
sn0wb1rd has joined #ruby-lang
kogent has quit [Quit: kogent]
karasawa has joined #ruby-lang
karasawa has quit [Ping timeout: 255 seconds]
lun_ has quit [Ping timeout: 244 seconds]
tenderlove has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 252 seconds]
banister`sleep has quit [Remote host closed the connection]
tomzx_mac has joined #ruby-lang
lsegal has joined #ruby-lang
richardjortega has joined #ruby-lang
chuenjin_ has joined #ruby-lang
mrsolo has joined #ruby-lang
Jade_ has joined #ruby-lang
chuenjin has quit [Ping timeout: 245 seconds]
io_syl has quit [Ping timeout: 255 seconds]
chuenjin_ has quit [Ping timeout: 255 seconds]
chuenjin has joined #ruby-lang
sailias has quit [Remote host closed the connection]
havenn has joined #ruby-lang
alvaro_o has quit [Quit: Ex-Chat]
kiwnix has joined #ruby-lang
cirenyc has quit [Ping timeout: 252 seconds]
ten1 has quit [Quit: Leaving.]
ten1 has joined #ruby-lang
banister`sleep has joined #ruby-lang
<zenspider> flog version 3.2.2 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2013/01/flog-version-3-2-2-has-been-released.html
<zenspider> to be fair... I still use 1.8 because 1.9 encoding bug the shit out of me. they're a fucking hassle and they're not worth it
Jade_ has quit [Quit: Page closed]
sandbags has quit [Remote host closed the connection]
<zenspider> that said... sticking on 1.8.6 and complaining that you're going to switch to python is a weak attempt at trolling. grow up and upgrade to 1.8.7
<zenspider> 2.0 encoding looks a bit more sane... but then there is refinements that I simply do NOT want to deal with.
<zenspider> they still haven't answered the debugging / sanity issue I brought up on the day they announced it. I don't look forward to the pain that will bring because some jackass will insist on using it as soon as it is available
<ten1> the idea of adding an 'experimental feature' to a language strikes me as unsound
sepp2k1 has quit [Read error: Connection reset by peer]
<ten1> you can't really say, "use this, but don't use it too much, because it might go away!" Like adding to any API, people *will* use it, and then the rest of us will be stuck with it. See also win32
<zenspider> that's not what they mean by experimental
<zenspider> they mean that other impls can say they're 2.0 compliant w/o implementing it
sailias has joined #ruby-lang
banister`sleep has left #ruby-lang [#ruby-lang]
banisterfiend has joined #ruby-lang
<zenspider> yes, it may change in the future... but so may the rest of the language
<zenspider> that's never changed
<banisterfiend> ten1: major libraries wont rely on it if it's labelled experimental, and anyway major libraries have to support 1.9.x for a few years still
<ten1> you mean, it is hoped that major libraries won't rely on it
datanoise has joined #ruby-lang
<banisterfiend> ten1: if the library really is major it's going to support 1.9.x, if not even 1.8.7, and likely do its best to support jruby/rbx too
<banisterfiend> so there's no way they'd consider relying on an experimental 2.0 feature
<ten1> "there's no way" is a fallacious argument. There's nothing besides common sense from stopping anyone
<ten1> argument from lack of imagination
<zenspider> he qualified his statement well enough.
francisfish has quit [Read error: Connection reset by peer]
<zenspider> and he's not arguing... he's explaining the situation with you
<zenspider> if you're arguing... you're alone on this
francisfish has joined #ruby-lang
chuenjin_ has joined #ruby-lang
<ten1> yes, because the idea of experimental language features is such a good one that it needs no argument
database has quit [Quit: WeeChat 0.3.9.2]
<zenspider> ten1: who the fuck are you arguing with and what about? is it ANYONE who can do anything about it? Is matz here? is koichi? is your snark even remotely warranted, desired, or asked for? what are you hoping to achieve?
<zenspider> while I do have commit bit... there isn't a fucking thing I can or will do about this situation... so really... you're talking to a wall on this one
<zenspider> and "arguing" with banisterfiend is absolutely a waste of time. there's nothing he can do about it either.
<ten1> so, I'm not qualified to have an opinion and it wouldn't matter if I was?
<ten1> I can appreciate that
<zenspider> have fun with that
chuenjin has quit [Ping timeout: 255 seconds]
* zenspider points to ten1's very one section of wall
<zenspider> own. even...
<ten1> I am one with the wall :P
dwu1 has joined #ruby-lang
chuenjin_ has quit [Ping timeout: 256 seconds]
chuenjin has joined #ruby-lang
havenn has quit [Remote host closed the connection]
__BigO__ has joined #ruby-lang
havenn has joined #ruby-lang
bzalasky has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.0]
__BigO__ has quit [Read error: Connection reset by peer]
__BigO__ has joined #ruby-lang
havenn has quit [Ping timeout: 248 seconds]
ryanf has quit [Ping timeout: 264 seconds]
<zenspider> minitest version 4.5.0 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2013/01/minitest-version-4-5-0-has-been-released.html
bluepojo has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby-lang
bluepojo has joined #ruby-lang
mpan has joined #ruby-lang
bluepojo has quit [Client Quit]
sailias has quit [Quit: Leaving.]
sailias has joined #ruby-lang
methods has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
ryanv-raptor has joined #ruby-lang
ryanv-raptor has quit [Client Quit]
ViPi has joined #ruby-lang
ryanf has joined #ruby-lang
havenn has joined #ruby-lang
datanoise has quit [Ping timeout: 240 seconds]
bluepojo has joined #ruby-lang
havenn has quit [Remote host closed the connection]
srbaker has quit [Quit: Computer has gone to sleep.]
davidbalber|away is now known as davidbalbert
davidbalbert is now known as davidbalber|away
dankest is now known as dankest|away
jonahR has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
kiwnix has quit [Quit: Saliendo]
datanoise has joined #ruby-lang
io_syl has joined #ruby-lang
heftig has quit [Quit: leaving]
lun_ has joined #ruby-lang
techlife has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
__BigO__ has quit [Read error: Connection reset by peer]
dankest|away is now known as dankest
waffleau_ has joined #ruby-lang
heftig has joined #ruby-lang
sailias has quit [Quit: Leaving.]
johnnyfive has joined #ruby-lang
socialcoder has joined #ruby-lang
gregmoreno has joined #ruby-lang
JohnBat26 has joined #ruby-lang
JohnBat26 has joined #ruby-lang
hachiya_ has left #ruby-lang [#ruby-lang]
hachiya has joined #ruby-lang
bfreeman has joined #ruby-lang
macmartine has joined #ruby-lang
earthquake has quit [Quit: earthquake]
waffleau_ has quit [Quit: waffleau_]
huydx has joined #ruby-lang
ramonmaruko has quit [Ping timeout: 260 seconds]
Cyde has joined #ruby-lang
Cyde has quit [Client Quit]
Zechcyde has joined #ruby-lang
Zechcyde has quit [Client Quit]
Zechcyde has joined #ruby-lang
Zechcyde has quit [Client Quit]
Zechcyde has joined #ruby-lang
ramonmaruko has joined #ruby-lang
Zechcyde has quit [Client Quit]
davidbalber|away is now known as davidbalbert
mjio has quit []
mjio has joined #ruby-lang
bluepojo has quit [Ping timeout: 252 seconds]
tms has joined #ruby-lang
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mrsolo has quit [Quit: Leaving]
tenderlove has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
unlikely_monkey has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 255 seconds]
earthquake has joined #ruby-lang
chuenjin has quit [Ping timeout: 255 seconds]
mercwithamouth has quit [Ping timeout: 252 seconds]
mistym_ has quit [Remote host closed the connection]
mercwithamouth has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
Sinestro has quit [Quit: Computer has gone to sleep.]
davidbalbert is now known as davidbalber|away
bzalasky has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
savagecroc has joined #ruby-lang
mossplix has joined #ruby-lang
mjio has quit []
<savagecroc> how can i work out what chracter encoding something uses?
tms has quit [Quit: Konversation terminated!]
<savagecroc> îD¼~˜²_‹Èã$åïÈ@f4®PRmH—ØZ“=¢œºYÁ-RSˆÜ‘V. << Like that :(
gregmore_ has joined #ruby-lang
mjio has joined #ruby-lang
<ten1> generally it's a hard problem. It's best to avoid the need to guess
gregmoreno has quit [Ping timeout: 264 seconds]
mjio has quit [Client Quit]
<ten1> if it's html input you can hope the content-type is correct
ViPi has quit [Quit: Computer has gone to sleep.]
savagecroc has quit [Ping timeout: 248 seconds]
<huydx> yeap
<huydx> its hard to decide what encoding by raw text
<huydx> impossible to guess 100%
karasawa has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
dankest is now known as dankest|away
karasawa has quit [Ping timeout: 248 seconds]
chuenjin has joined #ruby-lang
dankest|away is now known as dankest
datanoise has quit [Ping timeout: 255 seconds]
mercwithamouth has quit [Ping timeout: 255 seconds]
unlikely_monkey has quit [Remote host closed the connection]
karasawa has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
<ten1> is it normal to be a little traumatized after reading the poignant guide to ruby?
jonahR has quit [Quit: jonahR]
bzalasky has joined #ruby-lang
karasawa has quit [Ping timeout: 256 seconds]
apeiros_ has quit [Ping timeout: 264 seconds]
bzalasky has quit [Remote host closed the connection]
mjio has joined #ruby-lang
ViPi has joined #ruby-lang
datanoise has joined #ruby-lang
mjio has quit [Client Quit]
waffleau has joined #ruby-lang
datanoise has quit [Ping timeout: 255 seconds]
karasawa has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
ViPi has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby-lang
earthquake has quit [Quit: earthquake]
mpan has quit [Ping timeout: 256 seconds]
socialcoder has quit []
schaerli has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
Averna has joined #ruby-lang
ViPi has joined #ruby-lang
ViPi has quit [Client Quit]
vlad_starkov has joined #ruby-lang
ViPi has joined #ruby-lang
ViPi has quit [Client Quit]
datanoise has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
kain has quit [Quit: exit]
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby-lang
datanoise has quit [Ping timeout: 248 seconds]
zmack has joined #ruby-lang
bzalasky has joined #ruby-lang
<manveru> it is :)
<ten1> is there a support group or something? :P
marr has joined #ruby-lang
karasawa has quit [Ping timeout: 245 seconds]
<manveru> i'm not sure... when i read it there was still _why around to keep the trauma going
henrikhodne has quit [Remote host closed the connection]
<ten1> lol
<ten1> are you saying that he was like that normally?
dankest has quit [Quit: Leaving...]
chalky has joined #ruby-lang
chalky has quit [Client Quit]
ViPi has joined #ruby-lang
dr_bob has joined #ruby-lang
karasawa has joined #ruby-lang
solars has joined #ruby-lang
methods has joined #ruby-lang
kgrz has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
imajes has quit [Excess Flood]
karasawa has quit [Ping timeout: 256 seconds]
<injekt> yes
<injekt> very much so
* ten1 is very afraid
imajes has joined #ruby-lang
ryanf has quit [Quit: leaving]
rue|w has joined #ruby-lang
karasawa has joined #ruby-lang
apeiros_ has joined #ruby-lang
ViPi has quit [Quit: Computer has gone to sleep.]
methods has quit [Quit: Leaving.]
methods has joined #ruby-lang
sandbags has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
kgrz has quit [Quit: Computer has gone to sleep.]
karasawa has quit [Ping timeout: 255 seconds]
dc5ala has joined #ruby-lang
Averna has quit [Quit: Leaving.]
andrewhl has quit [Remote host closed the connection]
ViPi has joined #ruby-lang
slaytanic has quit [Read error: Connection reset by peer]
slaytanic has joined #ruby-lang
ruskie has quit [Excess Flood]
ViPi has quit [Quit: Computer has gone to sleep.]
ruskie has joined #ruby-lang
megha has joined #ruby-lang
megha is now known as hack
swav has quit [Read error: Connection reset by peer]
toretore has joined #ruby-lang
emocakes has joined #ruby-lang
swav has joined #ruby-lang
ten1 has quit [Ping timeout: 240 seconds]
neocoin has joined #ruby-lang
cbjorn has left #ruby-lang [#ruby-lang]
chekcmate has joined #ruby-lang
<chekcmate> mornin' guys!
blacktulip has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
marr has quit [Ping timeout: 252 seconds]
<apeiros_> moin girl :)
tbuehlmann has joined #ruby-lang
huma has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
ViPi has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
<emocakes> moin moin
<injekt> moin
S1kx has joined #ruby-lang
<chekcmate> apeiros_: you'd like that, eh?
<apeiros_> sure, more girls in programming would be great
<chekcmate> we got a few here
<chekcmate> not bad looking too
<apeiros_> cool
<chekcmate> sometimes it's weird
<chekcmate> though I must say, they gave me another point of view not only once, which I find very nice
* apeiros_ doesn't want other POVs, that only forces me out of my comfort zone 0:-)
<chekcmate> hah, but it's good against organisational blindness
glebm has joined #ruby-lang
dzhulk has joined #ruby-lang
<apeiros_> I was j/k ;-)
glebm has quit [Client Quit]
<chekcmate> I know ._.
<injekt> i hate building emailers
<chekcmate> how does your comfort zone look like?
<chekcmate> wut?
<injekt> fluffy pillows
<injekt> naked ladies
<injekt> etc
<apeiros_> filled with pixies
<chekcmate> lol
<apeiros_> and covered in fairy dust
<injekt> naked pixies?
<apeiros_> sure. ever seen a clothed pixie?
<injekt> touché
<emocakes> please continue injekt
<emocakes> i'm nearly there
<chekcmate> ever watched Peter Pan?
<emocakes> naked ladies, fluffy pillows, pixies
<chekcmate> I thought she had clothes on
<apeiros_> nobody said anything about naked ladies. what kind of guy are you?!?
<chekcmate> no, pixies
<chekcmate> tinkerbell was not naked
<injekt> apeiros_: I may have done
<chekcmate> wasn't she called that?
<injekt> yes
<chekcmate> [10:37] <injekt> naked ladies
<chekcmate> hi
<apeiros_> oh
<injekt> :(
<apeiros_> then that comment was to the both of you!!!!!!!!1!
<injekt> dont hate
<emocakes> chekcmate, google naked tinkerbell in images
<emocakes> she was naked
glebm has joined #ruby-lang
<injekt> LOL
<apeiros_> rofl
<chekcmate> ´o_o`
<injekt> "google naked tinkerbell, she'll be naked"
<apeiros_> YMMD
<chekcmate> rule 34?
<apeiros_> rule 37?
<chekcmate> no, 34
<chekcmate> there's porn of it
<apeiros_> damn, messing up my rules
<injekt> apeiros_: it's still early, too!
<apeiros_> which one is 37 again?
agnitio has joined #ruby-lang
<chekcmate> there's no fight club, maybe?
<apeiros_> oh, 37. You can not divide by zero (just because the calculator says so).
<chekcmate> hah
<apeiros_> my calculator can
<injekt> mine too
<apeiros_> but mine is a god in disguise
<chekcmate> sure you did not trigger some butterfly effect and we'll die in a few secs?
<emocakes> i like 43
<emocakes> and 66.5
<chekcmate> hahaha
<injekt> I like 193
karasawa has joined #ruby-lang
<apeiros_> 69 & 69.1
<apeiros_> though I think it was man, not god
<injekt> ah yes
<injekt> 1966
dzhulk has quit [Quit: Leaving.]
<chekcmate> ♠
<chekcmate> you know what that means, guys - kneel down! huhaha!
<chekcmate> there are no google results for that sign... funny
<apeiros_> spade?
datanoise has joined #ruby-lang
<chekcmate> yes
* apeiros_ must add rule ♠.1 BOSS of spades, that is
bzalasky has quit [Remote host closed the connection]
<chekcmate> dunno, I'm not into that 420, /b/ or *chan stuff anymore... is it still as awesome?
<chekcmate> apeiros_ seems to still be in it :>
* apeiros_ never was, is not, never will
datanoise has quit [Ping timeout: 248 seconds]
<chekcmate> hu? injekt said you were a ruthless villain, running in Londons dark corners with a Guy Fawkes mask
dzhulk has joined #ruby-lang
adambeynon has joined #ruby-lang
maxmanders has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
<chekcmate> is there anything I can stumble when using SortedSet? (no special way)
<chekcmate> *trip up on sth.
<injekt> not really it's a pretty simple impl
<chekcmate> it's pretty cool imO!
lun_ has quit [Ping timeout: 248 seconds]
<chekcmate> thanksi :)
<injekt> the code behind it is :(
marr has joined #ruby-lang
<chekcmate> you don't use it?
<injekt> I haven't really needed it, and the few times I actually just used set and implemented my own sorting stuff (but that's only because i forgot about SortedSet)
<chekcmate> :)
lun_ has joined #ruby-lang
megha has joined #ruby-lang
hack has quit [Ping timeout: 264 seconds]
mjbamford has joined #ruby-lang
dwu1 has quit [Quit: Leaving.]
<chekcmate> injekt: I can't create multiple sets the way I created multiple array, right? (x, y, z = Array.new(3) { [] })
<chekcmate> or does it work in a different way?
<heftig> chekcmate: sure, just replace [] with Set.new
<heftig> that said that code is retarded anyway, imo
<chekcmate> heftig: why?
<heftig> i'd just use x = []; y = []; z = []
<chekcmate> but those aren't sortedsets
<chekcmate> I want sortedsets
rue has quit [Remote host closed the connection]
nkr has joined #ruby-lang
workmad3 has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
b1rkh0ff has joined #ruby-lang
karasawa has quit [Ping timeout: 252 seconds]
<injekt> chekcmate: na i would just separate the assignments
<injekt> I wouldn't have done the Array.new(3) { [] } stuff either though
<injekt> someone who doesn't know how that works could get confused
<chekcmate> that's what I originally had, but then I would've to array.uniq everytime
<injekt> sure sorted set is fine, but if you need 3 just separate the assignments is all
<chekcmate> I need about 7
<injekt> are you sure?
<chekcmate> perhaps 8
<chekcmate> not less than 6, in any case
<injekt> sounds like you're doing something complex
<chekcmate> well, I'm not doing something complex, I'm tracing something complex ^^
<injekt> 8 sets complex?
<chekcmate> + it's my bosses wish for me to tinker around in order to get used to ruby and the system
<chekcmate> injekt: no, I don't think 8 sets are complex
<injekt> no I meant 'its complex enough to need 8 sets?' '8 sets complex?'
<chekcmate> ah okay
<injekt> I'm trying to figure out what you're doing to see if there's a better way
<chekcmate> um.. I have 8 kind of operations I want to analyse seperately
<chekcmate> that's where the 8 comes from
<chekcmate> but quantity doesn't make something complex
carraroj has joined #ruby-lang
<chekcmate> at least not in this case imo
<injekt> sure, so yeah just define the 8 sets separately
<chekcmate> injekt: You know the strace output, right? ^^
<injekt> yeah
<chekcmate> each PID gets its own tracefile; there are basically about 8 operations tracked: stat, access, exec, unlink, open (which I seperated into read-only/rest), ...
glebm has joined #ruby-lang
<injekt> why not have an Operation class to describe those and have a set containing them all
glebm has quit [Client Quit]
carraroj has left #ruby-lang ["Konversation terminated!"]
<chekcmate> hm, it's mostly regex I use, dunno if that's neccessary
judofyr has joined #ruby-lang
<chekcmate> but doing it more object oriented was one of my goals anyways, so you may actually be right, injekt
<chekcmate> though I'm currently tinkering around more or less, trying out stuff, asking questions, ...
<injekt> it's quite the burden
<judofyr> hey folks
agnitio has quit [Ping timeout: 248 seconds]
<chekcmate> heyy judofyr :)
<judofyr> what's up?
<chekcmate> rulesoftheinternet are now established here
<injekt> hai
megha has quit [Ping timeout: 252 seconds]
<judofyr> they are?
<chekcmate> yea, tinkerbell was already spotted naked
<chekcmate> http://rulesoftheinternet.com/ <- you'll have some laughs :)
agnitio has joined #ruby-lang
<judofyr> injekt: isn't JavaScript/DOM beautiful?
<injekt> judofyr: very much not, i enjoyed that though
<judofyr> injekt: I think I'm going to hook it into http://timelessrepo.com/mockup-driven-development
dzhulk has quit [Quit: Leaving.]
<injekt> yeah it would fit there nicely
<emocakes> moin
<judofyr> injekt: now I just need to implement/design a new template language :D
<injekt> judofyr: :D
<judofyr> injekt: it's going to be logic-lessy, but not "one syntax to rule them all" as Mustache
rue|w has quit [Ping timeout: 248 seconds]
<judofyr> injekt: I've never been a fan of using the same syntax for both if and for loops
<judofyr> it doesn't have any "less logic", it's just syntax overloading
<injekt> interesting
<injekt> I dont really think there's a template language I like tbh
<judofyr> injekt: so, how would your perfect template language look like? :)
<injekt> judofyr: i really don't know tbh
<chekcmate> fits perfectly into this channel
<injekt> that looks like mustache
<judofyr> injekt: I think I'm going to do something refinements-ish. so instead of e.g: {{ user_path(user) }} there will be {{ user.url }} (but the #url method isn't actually present in the Object)
<injekt> judofyr: you dont think people would be more inclined to just use the former because it's more explicit?
<judofyr> injekt: try to explain to your designer why it's [% h.url_for('item', id => item.id) %], but just [% item.title %]
<injekt> true
no_i_wont has quit [Quit: ZNC - http://znc.sourceforge.net]
<injekt> I like how we quickly went from {{ to [% is that a sign? ;)
<judofyr> injekt: [%%] is Template Toolkit (Perl) and that is a real example. yesterday one of our designer was like "How do I create the URL? what? h.url_for? of course?!"
<judofyr> injekt: but I'm not a fan of neither [%%] nor {{}}
<injekt> ah yeah I've used tt2, yeah I'm not a fan or them either but what other options do you have?
cultureulterior_ has joined #ruby-lang
<judofyr> injekt: but I think I'm going to drop filters
<judofyr> injekt: and rather introduce a specific view-class (like Mustache have
<judofyr> )
glebm has joined #ruby-lang
<injekt> heh
<judofyr> so instead of `<div class="@if(product.variants)open@endif">`, you could do: <div @product.classes>
<judofyr> @foo reads so much better than {{foo}} :)
<injekt> I agree just not sure on the method call piping stuff, mostly because I enjoy whitespace in that regard
<injekt> judofyr: what if you wanted to call a helper method on a variable?
<DefV> is there a way to do this in 1 method:
<DefV> array.at(array.index(obj))
<injekt> is that where you'd use foo|helper ? (I'm not even sure how liquid does that stuff)
<injekt> DefV: that'll just return obj anyway?
glebm has quit [Quit: Computer has gone to sleep.]
<injekt> judofyr: or would @helper(product.price) work?
<DefV> injekt: no, index uses ==, It's the same ActiveRecord object but one has associations preloaded, other doesn't
<injekt> DefV: in that case, no
<DefV> :-)
cultureulterior_ has quit [Ping timeout: 248 seconds]
lun_ has quit [Ping timeout: 256 seconds]
pythonsnake has quit [Quit: WeeChat 0.3.9.2]
<judofyr> injekt: it probably would, but my goal is that you *shouldn't* need helpers.
<judofyr> injekt: thanks to the refinement-ish functionality
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
voker57 has quit [Remote host closed the connection]
<judofyr> injekt: I can add more logic the templates (function calls, comparisons, etc). this means that you need to implement less view-helpers/refinement-overrides. but it also makes the implementation and the template language more complex.
pythonsnake has joined #ruby-lang
<judofyr> injekt: if I allow very little logic in the template, there are certain things you'll have to implement twice (once in the JS for the mockups, and once in Ruby for the server)
pythonsnake has quit [Client Quit]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
<judofyr> injekt: e.g: @if(items.length > 5) … @end vs @if(items.more_items?) … @end
<judofyr> or whatever the the method/function should be called
imperator has joined #ruby-lang
waffleau has quit [Quit: waffleau]
<judofyr> injekt: right now I'm leaning towards very little logic (basically, only @if(foo) and @if(!foo) + paths: @if(foo.bar.baz))
<judofyr> and as mentioned, the refinement-ish idea of being able to add "helpers" that look like attributes
madish has joined #ruby-lang
glebm has joined #ruby-lang
<injekt> that makes sense
rue has joined #ruby-lang
NineTails has joined #ruby-lang
NineTails has quit [Read error: Connection reset by peer]
mossplix has quit [Quit: mossplix]
Bearproof has joined #ruby-lang
dzhulk has joined #ruby-lang
glebm has quit [Ping timeout: 264 seconds]
Bearproof has left #ruby-lang [#ruby-lang]
rue has quit [Ping timeout: 252 seconds]
glebm has joined #ruby-lang
spuk has quit [Remote host closed the connection]
cultureulterior_ has joined #ruby-lang
Kuifje has joined #ruby-lang
Kuifje has quit [Changing host]
Kuifje has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
dzhulk has quit [Quit: Leaving.]
stardiviner has joined #ruby-lang
karasawa has joined #ruby-lang
megha has joined #ruby-lang
sullenel has joined #ruby-lang
mossplix has joined #ruby-lang
imperator has quit [Quit: This computer has gone to sleep]
sullenel has quit [Quit: WeeChat 0.4.0]
mad_hatter_ has joined #ruby-lang
Bearproof1 has joined #ruby-lang
Bearproof1 has left #ruby-lang [#ruby-lang]
jxie has quit [Quit: leaving]
karasawa has quit [Ping timeout: 255 seconds]
ViPi has quit [Quit: Computer has gone to sleep.]
sush24 has joined #ruby-lang
rsl has joined #ruby-lang
waffleau_ has joined #ruby-lang
imajes has quit [Excess Flood]
carloslopes has joined #ruby-lang
chekcmate has quit [Quit: Page closed]
imajes has joined #ruby-lang
chekcmate has joined #ruby-lang
<chekcmate> have you guys tried Waterfox yet?
karasawa has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
imperator has joined #ruby-lang
sush24 has joined #ruby-lang
sush24 has quit [Client Quit]
kurko_ has joined #ruby-lang
dustint has joined #ruby-lang
dustint_ has joined #ruby-lang
karasawa has quit [Ping timeout: 244 seconds]
<injekt> chrome ftw!
rue|w has joined #ruby-lang
huydx has quit [Quit: huydx]
karasawa has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
itsmeduncan has joined #ruby-lang
sush24 has joined #ruby-lang
banisterfiend has joined #ruby-lang
karasawa has quit [Ping timeout: 248 seconds]
glebm has joined #ruby-lang
xalei has joined #ruby-lang
<xalei> g
<judofyr> hey xalei
<xalei> hey judofyr =)
<judofyr> xalei: what's up?
<xalei> I NEED A BETTER NICKNAME
<xalei> =(
<xalei> I need one SO bad
<rue|w> YES YOU DO
<xalei> I just got off my first day on a 6 week contract with a fantastic new company...
<judofyr> well, even I could use a better nickname
<xalei> and the fucking senior's name is Alex
<xalei> which is mine
<xalei> and noone can say XALEI wtf is that anyway
<judofyr> heh, my nickname is this company is "senior" :P
<xalei> LOL
<xalei> THATS IT
<xalei> THEY CAN CALL ME JUNIOR
<xalei> omg
<judofyr> haha
<xalei> thank you judofyr
<xalei> !!!!
<judofyr> your welcome ;)
<xalei> you have just made me have sweet dreams tonight
<injekt> mine is much less savoury
<xalei> because I don't have to worry about such a drastic problem as this
<xalei> lol injekt
<xalei> *you're btw
<judofyr> mine welcome
<injekt> haha
<injekt> owned
<rue|w> I have no idea what is going on
<xalei> lol
<xalei> rue i just got a problem solved
<xalei> judofyr, he is awesome
* judofyr , the problem solver!
<xalei> that's what we've established so far
* xalei poses
<xalei> man I wanted my mentor to be online to tell him the good news... nearly midnight here though
<xalei> and there we go it's midnight
<chekcmate> what dark country are you from?
<xalei> the dangerous one =]
banisterfiend has quit [Ping timeout: 248 seconds]
<xalei> Australia
<injekt> dangerous for kangaroos maybe
<xalei> lol, hey kangaroos are pretty fucking dangerous dude
<xalei> you don't wanna piss off the males
<judofyr> and camels!
<xalei> they'll disembowl you
<chekcmate> uh Australia!
<chekcmate> some friends just moved there :)
<xalei> with their feet
<xalei> yeah pray for them, mate
<xalei> fucking pray
<injekt> im friends with a bear
<chekcmate> nah... they have horses, they don't need prayers
<xalei> yeah horses are pretty safe
<xalei> mostly
<chekcmate> yes, you can hide yourself in one e.g.
<xalei> except for when they buck you, you could break your neck
<xalei> not sure how many people are stupid enough to break their necks though
<injekt> how very pessimistic
<xalei> well
<chekcmate> that's why you have your catapult seart
<chekcmate> *seat
<injekt> "fucking watch out for rabbits too, they're be all cute then fuck your shit up when you get close"
<xalei> when you think about dangerous things, you don't think about all the things that are mostly annoying
<xalei> you think of one really fucking big reason to not be stupid
<xalei> lol @ injekt montypython much?
<injekt> xalei: an amusing coincidence
<xalei> very amusing indeed, sir =)
<imperator> injekt, a drop bear?
<injekt> what can I say, I'm british, it's natural
<xalei> lol
<xalei> oh they hilarity
<chekcmate> you guys are related anyways lol
<xalei> you're british everything you say is _funny_
<xalei> oh hahaha =P
<imperator> chekcmate, aren't we all?
<xalei> heh...
<chekcmate> aussies and brits are more than the rest of us, heh
<imperator> i vaguely seem to recall some english people coming to the US at some point
<xalei> what, like Indians and Malaysians and Chinese are all really asians, anglosaxons are mostly English/British
<xalei> man, things are getting so multicultural, I don't know how long we'll all be different anymore
<chekcmate> um... only when you look at the "western" part of the world
<xalei> might be really rare to be different =P
sailias has joined #ruby-lang
<xalei> yeah... well things are pretty good in australia these days... except for all the mining that is going on
<injekt> we have snow
<chekcmate> go away with your snow
<imperator> i've learned what a "bogan" is this week, i'm feeling more australian already
waffleau_ has quit [Quit: waffleau_]
<chekcmate> have you eaten ants yet?
<xalei> there's this process called Coal Seam Gas mining where they really screw up the land in the process
<xalei> lol @ imperator yeah there's a successful bogan actress
<xalei> that's really Australian
<chekcmate> like fracking?
<xalei> yeah fracking
<imperator> fracking cylons, man
<chekcmate> they try it here too
<apeiros_> oooh, that's where you get shiny burning tap water in the process?
<chekcmate> you know what? tbh this is the chance for the US to get out of the middle east
<xalei> yeah
<injekt> I still enjoy that our enjoy is your queen
<xalei> poor kids need to bath in that water
<chekcmate> there have been fracking-worth terrain found in the us which could make them energy-export #1 until 2020
<xalei> and they come out of the bath all red
<judofyr> injekt: enjoy that our enjoy?
<imperator> injekt, parse error
<injekt> HAH
<injekt> you guise
<imperator> my enjoy is enjoy, enjoy!
<injekt> enjoy enjoy enjoy
glebm has quit [Ping timeout: 252 seconds]
<xalei> freaking, lol!
<injekt> that our queen is your queen
<injekt> enjoy queen
* imperator enjoys the queen
terite_ has joined #ruby-lang
<chekcmate> ^.-
<injekt> I would enjoy the hell out of the queen
<imperator> PAWN TAKES QUEEN
<chekcmate> stop making weird pictures pop up in my head ;_;
<apeiros_> king swaps position with tower
kain has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
<chekcmate> injekt doing the queen in his slowpoke costume... jesus
terite_ has left #ruby-lang [#ruby-lang]
<imperator> (History of the World, Part I reference) ;)
<jaska> pawn takes queen sounds... pervy
<injekt> that's what she'll be saying
<jaska> maybe i have a twisted mind.
<chekcmate> someone should draw this
<injekt> I dunno, king takes pawn sounds weirder to me
<jaska> :D
glebm has joined #ruby-lang
dustint has quit [Remote host closed the connection]
<imperator> hm, what's the best way to check if an external ruby program raised an error? just redirect stderr and parse the output?
glebm has quit [Client Quit]
itsmeduncan has quit [Quit: itsmeduncan]
<judofyr> imperator: check the status code
<rue|w> Exit code
<injekt> code
<judofyr> de
<judofyr>
<injekt> you dun went too far
<injekt> 368 migrations
<injekt> phew
<chekcmate> um, injekt? I thought SortedSet made uniq obsolete?
<injekt> chekcmate: a set has no dups
<imperator> judofyr, is there a process::status i can get from Process.spawn?
<chekcmate> my set is MADE of dups...
<chekcmate> the fuck
<injekt> chekcmate: what objects are in there?
<chekcmate> string objects
<injekt> you're sure?
<judofyr> imperator: pid = Process.spawn(…); exit = Process.waitpid(pid) I think
<chekcmate> but I never had that before
<chekcmate> yea, it worked like a charm until now...
<chekcmate> I'll go debug some more...
glebm has joined #ruby-lang
<judofyr> hm. or maybe not
robotmay has joined #ruby-lang
<injekt> just use $?
<judofyr> imperator: now I remember. call #waitpid, and then $? will be set to Process::Status
<injekt> ^
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
<chekcmate> hm, as long as there is only one PID, no problem occurs
<chekcmate> have to seperate the pids :/
x0F_ is now known as x0F
<injekt> chekcmate: what do you mean?
<judofyr> imperator: "Waits for a child process to exit, returns its process id, and sets $? to a Process::Status object containing information on that process."
<judofyr> that's for Process.waitpid
<imperator> thanks
<chekcmate> when the process I trace starts another one, it becomes the child process and gets traced seperately, but it won't get processed seperately in my script
<chekcmate> it's not the fault of Set
sailias has quit [Quit: Leaving.]
ovatsug25 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
srbaker has joined #ruby-lang
<imperator> judofyr, hm, shoot, that won't work for what i'm trying to do
<imperator> i'm actually trying to write a test for highlander
<imperator> the goal of highlander is to ensure that only one instance of a program is running
<imperator> so, for example, i need to write a test that ensures that the first time "ruby foo.rb" is run it works, but if you try to run it again (while the first one is still running) it will fail
<chekcmate> RAAAAAAAAAAWRR
<chekcmate> "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.
mistym_ has joined #ruby-lang
<chekcmate> stupid bug wants me to mv stupid file to stupid location grmglrmglr
glebm has quit [Quit: Computer has gone to sleep.]
tomzx_mac has joined #ruby-lang
glebm has joined #ruby-lang
sepp2k has joined #ruby-lang
<chekcmate> yay! Everything works again :)
b1rkh0ff has quit [Ping timeout: 256 seconds]
pythonsnake has joined #ruby-lang
<apeiros_> ummm, yumm, `i18n glob some.*.key` ^^
pythonsnake has quit [Client Quit]
mjolk_afk is now known as mjolk
mistym_ has quit [Remote host closed the connection]
io_syl has quit [Quit: Computer has gone to sleep.]
srbaker has quit [Quit: Computer has gone to sleep.]
pythonsnake has joined #ruby-lang
jonahR has joined #ruby-lang
pythonsnake has quit [Client Quit]
earthquake has joined #ruby-lang
pbjorklund has joined #ruby-lang
pythonsnake has joined #ruby-lang
b1rkh0ff has joined #ruby-lang
mad_hatter_ has quit [Quit: Leaving.]
stardiviner has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
pythonsnake has quit [Quit: WeeChat 0.4.0]
pythonsnake has joined #ruby-lang
mistym_ has joined #ruby-lang
pythonsnake has quit [Client Quit]
scampbell has joined #ruby-lang
pythonsnake has joined #ruby-lang
socialcoder has joined #ruby-lang
srbaker has joined #ruby-lang
scampbell has quit [Max SendQ exceeded]
<socialcoder> Can anyone share a snippet example with me - a while loop and each method inside a def/end method
<socialcoder> please
Uranio has joined #ruby-lang
scampbell has joined #ruby-lang
<judofyr> socialcoder: hm. what are you looking for?
<socialcoder> well, I want to know how to do it write
earthquake has quit [Quit: earthquake]
<socialcoder> starting with a def method then nesting a while loop inside and a .each method inside and closing with an end
<socialcoder> * how to do it right
<judofyr> socialcoder: def foo; a = 0; while a < 5; [1, 2, 3].each { |x| p x }; a += 1; end; end
<socialcoder> sec
<socialcoder> this is how it is supposed to look?
karasawa has joined #ruby-lang
<judofyr> socialcoder: see my comment: https://gist.github.com/4606042
<judofyr> socialcoder: I only use ; when I write code on one line (which I basically only use on IRC ;-)
<judofyr> socialcoder: but yeah, while is similar to if, def
<socialcoder> a few questions Judo
<socialcoder> while, if, for, .each can all go inside def right?
<judofyr> sure
<socialcoder> it can't be other way round?
<socialcoder> I mean def inside something?
<judofyr> oh sure, you can out "def" everywhere
<judofyr> use*
<socialcoder> damn!
<socialcoder> can u show me an example
<socialcoder> with def as child
<judofyr> if 5 == 0; def foo; end; end
<chekcmate> what's the ruby method "crash" good for?
<socialcoder> can you comment that in same format at the gist page please?
<socialcoder> I would like to record it
<judofyr> socialcoder: here's the silly method: https://gist.github.com/4606042#comment-746872
postmodern has quit [Quit: Leaving]
breakingthings has joined #ruby-lang
<socialcoder> err...why silly
Bearproof has joined #ruby-lang
<socialcoder> also, if while is used its always a < b eh? it can't be a > b?
Bearproof has quit [Client Quit]
<chekcmate> haaaaaaaaaaaaaa?
<chekcmate> why should that be?!
<socialcoder> if that was for me...I am a total newbie
<chekcmate> well you could count down instead of up
<socialcoder> what do u mean
<judofyr> socialcoder: `while` only checks if the expression returns a truthy value
<chekcmate> so when x becomes smaller than 2, fire up y e.g.
<chekcmate> it can be true the other way around
<chekcmate> but let judofyr explain, he's more skilled in ruby + explaining
<socialcoder> i thgt Until was used for other way round
<judofyr> socialcoder: until checks if the expression is falsy
<chekcmate> while>true until>false
Bearproof has joined #ruby-lang
<judofyr> socialcoder: `while !foo; …; end` is just the same as `until foo; …; end`
Bearproof has quit [Client Quit]
<socialcoder> right, but can it be other way around
<judofyr> and this is the same: `while x < 5` or `while 5 > x` is the
<socialcoder> while foo; …; end` is just the same as `until !foo; …; end`
<judofyr> yup
<socialcoder> oh I see
<socialcoder> the value gets shifted
robotmay has quit [Ping timeout: 248 seconds]
<socialcoder> silly question again
<chekcmate> I ask silly stuff all the time
<chekcmate> no one is annoyed by it as far as I know though - which is great
<judofyr> `x < 5` is just an expression that returns true if x is less than 5. it doesn't have anything to do with the while-construct
<chekcmate> judofyr: mind telling me what "crash" does?
<socialcoder> thanks checmate for the encouragement
<chekcmate> :) I'm also still a noob
<judofyr> chekcmate: never heard about it
<injekt> chekcmate: there's no crash method in core
<chekcmate> huu?
imajes has quit [Excess Flood]
<chekcmate> my ide is trying to fool me perhaps..
<injekt> what ide do you use?
<chekcmate> Aptana
henrikhodne has joined #ruby-lang
<injekt> (hint: you shouldn't use an ide)
<judofyr> meh
imajes has joined #ruby-lang
<chekcmate> why? I don't use any IDE features at all actually
<judofyr> use whatever you want :)
<socialcoder> i use sublime text
<socialcoder> love it
<injekt> chekcmate: I have just had nothing but bad experiences helping people who use ides which modify load paths and other stuff in weird ways
<injekt> and tell you ruby has a 'crash' method
<chekcmate> hehe injekt, I believe so - but I just use it for writing, I even exec the programs outside of the IDE
<chekcmate> notepad++ would not be different...
<chekcmate> aptana just looks good imo :)
<socialcoder> can yu tell me of a while example without using < or >
<socialcoder> i need to knock this into my sense
<injekt> chekcmate: ah ok
<injekt> socialcoder: while x < 5; puts x; x += 1; end
<injekt> oh without
<injekt> har
<socialcoder> u used < again :)
<chekcmate> :D
<socialcoder> every example I have come across has had < and +=
<chekcmate> well, do > and -= then ^^
<injekt> while gets.chomp != 'exit'; puts gets; end
robotmay has joined #ruby-lang
<socialcoder> in puts gets, gets is the actual user input?
<injekt> yes
<socialcoder> man, that clears up a bit for me
<socialcoder> and all this while I thgt while was for < alone
<socialcoder> shame
Hakon has joined #ruby-lang
<injekt> while !people.include?('alan'); people << %w(alan dave steve).shuffle.first; end
<injekt> until would read nicer there
<socialcoder> << is synonym to .push?
<lianj> alias, yes
<socialcoder> be back guys
<socialcoder> if that matters LOL
<lianj> injekt: also, maybe .sample
<injekt> ah that's what I was trying to remember
<injekt> also push and << are not aliases
<lianj> aw, whats their differences?
<injekt> push accepts multiple args
schaerli has quit [Remote host closed the connection]
<lianj> hm, ok. makes sense the
<lianj> *then
<injekt> ruby has way too many aliases
<chekcmate> https://hide.io/ << good service
<unsymbol> rebecca
tdy has quit [Ping timeout: 255 seconds]
lun_ has joined #ruby-lang
zmack has quit [Remote host closed the connection]
tdy has joined #ruby-lang
pythonsnake has quit [Quit: WeeChat 0.4.0]
<mjolk> is || not the same as OR for ruby? I'm trying to do `rescue Net::SSH::HostKeyUnknown => e || log.fatal("Please upgrade to at least net-ssh 2.6")
<injekt> mjolk: no that just makes no sense
<tbuehlmann> (and besides that, they are not the same)
<injekt> (also || vs OR have different precendence)
<mjolk> injekt: yeah, i know they have different precendence. how should i be approaching this in ruby?
<injekt> if foo = something || bar = something is different to if foo = something or bar = something
<injekt> mjolk: I'm not even sure what you're trying to do
<chekcmate> injekt: we talked about seedboxes last week. I took a deeper look and found out that I don't need one. Switched to usenet, using ssl-news.info -- just FYI :)
pythonsnake has joined #ruby-lang
<injekt> chekcmate: sweet! never got the hang of usenet
<chekcmate> me too
<chekcmate> but a friend told me about it and he uses it with his server
blazes816 has quit [Quit: blazes816]
<mjolk> injekt: "if `rescue Net::SSH::HostKeyUnknown => e` is going to error/return an exception, use log.fatal, which i know to exist"
<injekt> mjolk: rescue Net::SSH::HostKeyUnknown => e; log.fatal(e.message)
<injekt> chekcmate: is that expensive?
<chekcmate> no
<mjolk> injekt: that won't work because if Net::SSH:HostKeyUnknown is not defined, it's going to return a uninit constant error
<chekcmate> 12,50€ for 150mbit flatrate
<injekt> mjolk: why wouldn't it be defined?
<injekt> mjolk: why would you try and rescue an exception that is not defined
<injekt> chekcmate: sweet
<mjolk> in net-ssh 2.2.2, that's not defined in Net::SSH
outoftime has joined #ruby-lang
<mjolk> but it is in 2.6, so i don't want to error out unhelpfully, i want to let it run with the error "hey, you need to update for this functionality"
<chekcmate> injekt: great thing about usenet is that you find everything. downloaded a MAD magazine from 1952 last night hah
pbjorklund has quit [Quit: oh no]
<chekcmate> + I always had max speed until now... flawless
<injekt> mjolk: then you need to check if the constant is defined first
<injekt> chekcmate: that's awesome, what software are you using?
<mjolk> can i do that with something like if Net::SSH::HostkeyUnknown?
<chekcmate> they offer a few tools
<injekt> mjolk: if defined? Net::SSH::HostKeyUnknown
<mjolk> i'm coming from python where the policy is essentially "it's easier to ask for forgiveness"
<mjolk> cool, thanks injekt, i really appreciate it.
<injekt> chekcmate: linux?
mistym_ has quit [Remote host closed the connection]
<darix> mjolk: you could do it even easier
<chekcmate> binreader
<injekt> chekcmate: im on osx is why i ask
<darix> gem 'net-ssh', '>= 2.6'
<darix> require 'net-ssh'
sailias has joined #ruby-lang
<chekcmate> injekt: Binreader Runs everywhere ,Windows, MacOS X and Linux versions. Streaming Preview media files while you download.
<injekt> chekcmate: im mostly interested in media tbh
<darix> and rescue block around it with handling the failed loading
<chekcmate> sounds good, eh? haha
<mjolk> darix: yeah, i thought about that, but this is part of a Chef recipe that runs differently in vagrant v. ec2
<mjolk> i'll look into that though, thank you
<judofyr> injekt: SABnzbd is the shit :)
karasawa has quit [Ping timeout: 248 seconds]
<injekt> judofyr: you use it?
<judofyr> injekt: yes. SickBeard + SABnzbd
<judofyr> very nice combo
<injekt> ok sickbeard looks nice too
<chekcmate> judofyr: there are quite a few good readers out there
<injekt> why am i not aware of these things
<judofyr> *shrugs*
<chekcmate> we haven't told you about the dark site yet, injekt
<judofyr> I need to find a replacement for NZBmatrix though
<judofyr> currently I'm only using SickBeard's MoMo index
scottschecter has quit [Quit: WeeChat 0.3.9.2]
<chekcmate> judofyr: currently watching any series?
<chekcmate> need help to decide which to pick next :P
<judofyr> chekcmate: hm… nothing at the moment (just watched Firefly on Netflix though). Suits, Leverage, Q.I, Sherlock, Arrow (but now it's just meh), Revenge (also meh; waaay too much drama)
<judofyr> Homeland
<chekcmate> I haven't heard of any of those lol
<injekt> :o
<chekcmate> I'm at the end of season 2 of The Walkin Dead
<chekcmate> I won't get kids in the next 15 years because of that show
<judofyr> chekcmate: I'd recommend Sherlock, Homeland, Suits :)
<chekcmate> Homeland sounds like Homefront (game) - same setting?
<chekcmate> judofyr: I'll take a look at those 3 - thanksi!
<judofyr> Firefly is also cool, but yeah, that's from 2002 (and only one season)
<chekcmate> Spartacus is continuing soon!
<chekcmate> GoT too!
<chekcmate> anyways - thanks for all your help again, have a nice day, guys!
<chekcmate> bai bai
chekcmate has quit [Quit: Page closed]
socialcoder has quit []
scottschecter has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 276 seconds]
<injekt> judofyr: sick beard is pretty neat
<imperator> I'm Spartacus
mossplix has quit [Quit: mossplix]
* imperator watched Supernatural, it was good
imajes has quit [Excess Flood]
<cHarNe2> hi, i'd like to send a file stored in activerecord using thin, anyone know how to do this? right now the file is just displayed as if it was a regular html-file
<apeiros_> cHarNe2: #rubyonrails and you'd use send_file
<apeiros_> or send_data
<apeiros_> (I think the latter, see API)
imajes has joined #ruby-lang
pythonsnake has quit [Quit: WeeChat 0.4.0]
mercwithamouth has joined #ruby-lang
<cHarNe2> apeiros_: ye, all points twords using send_data, but i dont know from where i should use it
<cHarNe2> apeiros_: ill try in ror
<cHarNe2> tyvm
<apeiros_> or are you using think+AR without rails?
<cHarNe2> apeiros_: yes
<apeiros_> *thin even
<cHarNe2> im only using thin with AR
<apeiros_> via the rack API?
__BigO__ has joined #ruby-lang
<cHarNe2> dont know
glebm has quit [Quit: Computer has gone to sleep.]
<cHarNe2> apeiros_: my code looks verry much like this: https://github.com/macournoyer/thin/blob/master/example/adapter.rb
<apeiros_> your only problem is that you want it to download instead of being displayed inline?
<apeiros_> L7-14 is rack API
<cHarNe2> apeiros_: ye, i think that is what i want :)
<apeiros_> cHarNe2: you need to send proper headers back for that
<apeiros_> content-disposition iirc
<cHarNe2> apeiros_: ok, right now the file is stored in the variable "body"
<xalei> fucking lol @ injekt, imperator, chekcmate, judofyr... do you guys have twitter? Let me know because you guys are hilarious xD
<apeiros_> cHarNe2: do you know how http works?
<cHarNe2> apeiros_: cant say that i do verry well. things just mostly work
<judofyr> xalei: hehe. @judofyr and @lee_jarvis (injekt) at least :)
<xalei> oh sweet, cheers man thanks xD
<apeiros_> cHarNe2: it helps. you should learn how http works.
<xalei> don't really use it much myself, but i'll add you both
<apeiros_> cHarNe2: basically you send the browser 3 segments: the status, the headers and the body
<apeiros_> cHarNe2: the file is the body, that's correct
<apeiros_> the headers contain meta-data. and one meta-datum you have to send the browser is that you want it to perform a download
<apeiros_> in the code you pasted, line 11 is where the headers are
<apeiros_> http://www.ietf.org/rfc/rfc2183.txt describes the content-disposition header
<cHarNe2> apeiros_: thanks, i was trying to find a meta-data for a file, thought that was the way to go :P
<xalei> oh shit...
<imperator> xalei, yes, i have twitter
<imperator> (djberg96)
<xalei> cheers imperator
<xalei> you guys are sound engineers too?
<injekt> WHAT
<xalei> ... er
<injekt> I'll see myself out
<xalei> well
<xalei> >.> I mean you make music
<injekt> sweet sweet music
<xalei> yeah dude, that's what I wanna do
<xalei> got my keys already, just need to find the software and find some decent headphones/inputs
<injekt> but no srsly i dont make music
<xalei> ok
<injekt> im too busy making love
<xalei> sorry I saw DJ/producer
pythonsnake has joined #ruby-lang
<injekt> wrong lee jarvis
<injekt> he's a london dj
<xalei> oh shit
<injekt> i sir, am not
<xalei> fuck thought you were british
<injekt> I am
<xalei> wth
<xalei> that's confusing as fuck =(
<injekt> there's more than 1 british lee jarvis
<xalei> xD
<injekt> I know of 4
* xalei embarrassed
<xalei> are you the Allur group one?
<injekt> yes :)
jxie has joined #ruby-lang
<judofyr> there's 24 people called Magnus Holm in Norway :)
<xalei> O.o
<xalei> jeebus
<apeiros_> there's only 2 people with my name in my country
<injekt> damn commoner
<xalei> crikey...
<apeiros_> including myself
<judofyr> 12877 people called "Magnus"
<apeiros_> and for fun's sake, we both share the same birthday :D
<xalei> apeiros_, what country?
<xalei> LOL
<injekt> judofyr: where are you getting these stats from? fb social graph? har
<judofyr> injekt: http://ssb.no/navn
<apeiros_> xalei: CH
<injekt> apeiros_: are you the real apeiros_
<xalei> I shared the same birthday with a girl named Alexandra in primary school... that's about as extreme as my life got
<injekt> judofyr: that's scary
<apeiros_> injekt: no
<xalei> apeiros_, sorry what country is CH
<apeiros_> injekt: I'm either the surreal apeiros
<judofyr> injekt: Kvinne = female, Mann = male, Fornamn = First name, Etternamn = Last name
<injekt> switzerland, xalei
<injekt> judofyr: thanks :D
<judofyr> injekt: you'll get a cool graph too
<judofyr> injekt: e.g. try male "Olav"
<injekt> hah
<judofyr> then look at this birth date: http://en.wikipedia.org/wiki/Olav_V_of_Norway
<injekt> hah
socialcoder has joined #ruby-lang
<socialcoder> back!
<apeiros_> inkjet: his name is judofry
<injekt> "Det er 9719 menn som har Olav som eneste fornavn." == there are 9719 men with the first name 'Olav'?
<judofyr> injekt: yeah, "only first name"
<injekt> ah
<judofyr> the other one is "combined? first name"
<judofyr> as in Bjørn-Olav
<xalei> injekt, how does CH = Switzerland? O.o
<judofyr> Chswitzerland
<injekt> ^
<injekt> it's the only explanation
<apeiros_> xalei: you know WP? :)
<xalei> and urrrrrgh my lack of quality cans is depressing =(
<xalei> no what's WP?
<apeiros_> CH = confoederatio helvetica
<xalei> ahh
<apeiros_> wikipedia
<apeiros_> = WP
<xalei> LOL yes I know that haha
<apeiros_> useful
<injekt> :D
<apeiros_> also google :-p
<xalei> luckily noone is going to say they're from the country of WP
<xalei> so I'm safe
<judofyr> injekt: heh, Magnus has been on top 10 the last years: http://ssb.no/navn/topp10/gutter.html :D
<xalei> apeiros_, just isn't worth using an abbreviate noone knows
<xalei> *abbreviation
<injekt> judofyr: hah :D
<injekt> my name isn't very common over here
<injekt> apparently it stems from german routes
<xalei> I'm doing like a dozen different things right now and I figured since you were using the acronym you could easily say what it was... =)
<apeiros_> xalei: it's an instant distinction of educated and less educated people ;-p</elitism>
<imperator> magnus magnusson
<injekt> Lee is a unisex given name meaning "shelter". It is derived from the surname Lee (English name) and a place name meaning "sheltered from the storm" in Old English
<xalei> hahaha you troll =P
<injekt> eh ok :|
<apeiros_> xalei: ^^
<imperator> injekt, unless you're korean
<xalei> xD
<injekt> imperator: then it's everyones middle name
<judofyr> I believe "Magnus" comes from Magnum = "great" ;)
<judofyr> CharleMagnus
<injekt> heh lee also comes from hewbrew meaning "for me"
<injekt> how selfish
<injekt> hewbrew haha
<imperator> I'm pretty sure the CH for Switzerland stands for "CHocolate"
<injekt> swiss choc <3
<xalei> alright I gotta get to Zzz talk to you guys later, thanks for the chats =)
<judofyr> imperator: actually, I know about a farm where a guy called "Jon" settled in ~1600. he got two sons, and named them both "Jon", making them essentially "Jon jonson". for six generations the oldest son was called Jon
<imperator> yep, it happens
<xalei> Lol
rins has joined #ruby-lang
<imperator> still sound silly
<xalei> it sounds mental to me xD
<judofyr> or when they name all their six sons Jon :P
<apeiros_> imperator: actually it stands for Chuchichäschtli, but that's a state secret.
<injekt> SHH
<xalei> O.o
<judofyr> imperator: my ancestors are all called "Jon Pederson", "Lars jonson", "Peder Larson" and so on…
unlikely_monkey has joined #ruby-lang
<apeiros_> xalei: it's one of the words foreigners have lots of troubles to properly pronounce :) (it means cupboard)
<xalei> apeiros_, my father is Polish I could probably get pretty close
<imperator> apeiros_, no clue what that means
emocakes has quit [Quit: emocakes]
davidbalber|away is now known as davidbalbert
<imperator> oh, cupboard
schaerli has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
maxmanders has joined #ruby-lang
xalei has quit [Quit: Leaving]
pbjorklund has joined #ruby-lang
rindolf has joined #ruby-lang
<rindolf> Hi all. Where can I find a self-contained example of http://docs.aws.amazon.com/AWSRubySDK/latest/AWS/SimpleDB.html like the synopses in Perl/CPAN documentation?
<rindolf> All I see is fragments of code.
<rindolf> Nothing I can easily copy and paste.
<injekt> rindolf: that's up to the author
<judofyr> rindolf: true. we don't really have a SYNOPSIS-culture in Ruby. some do, some don't
<rindolf> judofyr: I see, that sucks.
<injekt> I like it
<cHarNe2> apeiros_: got it working, tyvm. :)
socialcoder has quit []
methods has joined #ruby-lang
<apeiros_> yw
* imperator puts a synopsis in his readme
<imperator> something i liked and borrowed from perl
<apeiros_> same
<apeiros_> if I forgot it, it's a bug :)
* apeiros_ <3 @example
<apeiros_> (corresponding yard tag)
<injekt> </3 yard
<zzak> <inkjets3
<injekt> :D
<injekt> no one loves and inkjet
<injekt> an*
<zzak> i have one
<zzak> its HP tho
<injekt> do you love it?
rippa has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
<zzak> yes, i even had them fix it under warranty when it stopped working
<injekt> hah, luckily i haven't been under warranty for like 20 years
<imperator> laser all the way baby
<imperator> save sooo much money in the long run
<zzak> ink is cheap
bzalasky has joined #ruby-lang
<zzak> if you buy directly from the manufacturer its only $15 per cartridge, compared to $30 something in store
<zzak> but i dont print that often
<imperator> i print a lot
thillux has joined #ruby-lang
<injekt> i never print because i'm always jammed
<zzak> injekt: is jammin' mon
<zzak> imperator: what printer do you have?
wallerdev has joined #ruby-lang
<imperator> brother mfc-9440cn
<zzak> holy cow
<sandbags> LaserJet4 forever
<zzak> $800
glebm has joined #ruby-lang
<sandbags> (or "the last good printer HP ever made" as I sometimes call it)
<imperator> i also do board game design, and use it to printout prototype components (cards and whatnot), plus rules
<sandbags> imperator: do you have a handle on where to get wooden token?
<sandbags> other than robbing other games? :)
<sandbags> i've been working on a game design and started needing some tokens to play with... fed up of paper tokens
<imperator> sandbags, a bunch of online stores sell cubes and stuff, including Fantasy Flight Games
<sandbags> imperator: cool, thanks
<imperator> or, just find a friend with a bandsaw ;)
<sandbags> i've been considering buying a length of dowl
<sandbags> and making some
<sandbags> but if i am anything, i am lazy
<zzak> 3dprinter
<sandbags> can they print wood yet?
<sandbags> :)
<zzak> they can make tokens
<injekt> they've always been able to print wood
<sandbags> wow $3 for a pack of 12 little tokens
<sandbags> maybe i will make some
<sandbags> jeez
<zzak> does it have to be wooden?
<sandbags> no, but i like the feel of wooden tokens more than plastic
<sandbags> for my purposes right now i don't REALLY care
<sandbags> but i'd go for wood over plastic given the choice
dr_bob has quit [Quit: Leaving.]
<zzak> #firstworldproblems
<sandbags> living in the first world i think these are the problems one would expect, no? :)
<sandbags> okay 15 for £0.12, more my idea of a reasonable price
dr_bob has joined #ruby-lang
<imperator> seems better :)
methods has left #ruby-lang [#ruby-lang]
imajes has quit [Excess Flood]
<zzak> just go chop down a sapling and hack it up into proportionate pieces
<zzak> problem solved
io_syl has joined #ruby-lang
Flobin has joined #ruby-lang
imajes has joined #ruby-lang
<Flobin> hi everyone. I've been playing around with http://middlemanapp.com/, which has an extension called live reload. To install, it says to install the gem (did that) and to "Add middleman-livereload to your Gemfile"
<Flobin> what would I actually type? just: gem "middleman-livereload" ?
pbjorklund has quit [Quit: quit]
robbyoconnor has quit [Ping timeout: 256 seconds]
<zzak> tie a rope around it and drag it to the nearest dump station
<zzak> problem solved
<injekt> Flobin: yes
enebo has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
ryanv-raptor has joined #ruby-lang
robbyoconnor has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
<Flobin> thanks, injekt
datanoise has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
judofyr has joined #ruby-lang
mossplix has joined #ruby-lang
maxmanders has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
solars has quit [Ping timeout: 252 seconds]
dankest has joined #ruby-lang
blazes816 has joined #ruby-lang
carloslopes has joined #ruby-lang
ddd has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 244 seconds]
RORgasm has joined #ruby-lang
dankest has quit [Client Quit]
<injekt> blah im so torn at how to implement stuff in this project :(
bzalasky has quit [Remote host closed the connection]
carloslopes has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
glebm has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
alvaro_o has joined #ruby-lang
robbyoconnor has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
glebm has joined #ruby-lang
unlikely_monkey has quit [Remote host closed the connection]
havenn has joined #ruby-lang
Bearproof has joined #ruby-lang
ruskie has quit [Excess Flood]
ViPi has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
Bearproof has left #ruby-lang [#ruby-lang]
emocakes has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 248 seconds]
kogent has joined #ruby-lang
<imperator> use an 8-ball to decide
<andrewvos> "Factory Pattern", "Response is cloudy, use Singleton"
zmack has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
andrewhl has joined #ruby-lang
<injekt> heh
ephialtes480 has joined #ruby-lang
robbyoconnor has joined #ruby-lang
Criztian has joined #ruby-lang
rindolf has quit [Quit: Yay! I'm a Llama Again. http://www.shlomifish.org/ .]
mercwithamouth has quit [Ping timeout: 256 seconds]
ruskie has joined #ruby-lang
JohnBat26 has quit [Ping timeout: 252 seconds]
dr_bob1 has joined #ruby-lang
xcombelle has joined #ruby-lang
dr_bob has quit [Ping timeout: 256 seconds]
wyhaines has joined #ruby-lang
mjbamford has quit [Quit: Leaving...]
wyhaines has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
lun_ has quit [Read error: Connection reset by peer]
wyhaines has joined #ruby-lang
<mjolk> injekt: thanks again - i ended up going with a more generic 'rescue NameError =>', but thanks for the head-check
zhul_mechanos has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
wyhaines has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
rue|w has quit [Remote host closed the connection]
<eam> $: is set at compile time, correct? I'm looking at making a relocatable ruby install and I'd like to change it as part of a packaging step
gjaldon has joined #ruby-lang
<eam> I'm hoping there's a way to modify it relative to a variable root
rippa has quit [Ping timeout: 240 seconds]
gregmore_ has joined #ruby-lang
rippa has joined #ruby-lang
joker5437 has joined #ruby-lang
wyhaines has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
glebm has quit [Quit: Computer has gone to sleep.]
wyhaines has quit [Remote host closed the connection]
glebm has joined #ruby-lang
<yorickpeterse> dominikh: is there something like Cinch but for building IRC servers?
<darix> yorickpeterse: why would you do that?
<darix> the last thing the world needs is yet another ircd
<yorickpeterse> Currently I'm using camper_van as an IRC <-> Campfire bridge but it's buggy as fuck
zmack has quit [Remote host closed the connection]
emptyflask has joined #ruby-lang
<yorickpeterse> I don't feel like parsing all the IRC commands myself so ideally I'd have something that does that for me so I can bother with the fun stuff
<injekt> yorickpeterse: you can use the parser cinch uses
<darix> yorickpeterse: so instead of just doing an irc bot with cinch
<yorickpeterse> hmm
<darix> you want to get into the world of writing a complete irc server
<yorickpeterse> I think you're misunderstanding: I don't want to write a bot
<darix> hammer and nail, hammer and nail
<yorickpeterse> I want something that translates Campfire crap into IRC crap so I can keep using Weechat
<injekt> yorickpeterse: so it would read campfire and post to irc?
<yorickpeterse> Yes, and vice versa
<injekt> sounds like you need a bot
<darix> yorickpeterse: a small bot. connect to some ircd. maybe even freenode. and let the bot join there
<yorickpeterse> https://github.com/aniero/camper_van/ this is camper_van
<yorickpeterse> darix: how does that solve my problem?
ovatsug25 has quit [Remote host closed the connection]
<darix> yorickpeterse: bot reads camp fire
<darix> and posts
dr_bob1 has quit [Quit: Leaving.]
<darix> bot reads commands and does campfire action?
<yorickpeterse> tbh that would be more complex/annoying than a bridge
<darix> yorickpeterse: camper_van is just doing that?
<yorickpeterse> Yes
<yorickpeterse> But it's buggy and seems to consider everything as actual IRC commands
<darix> so what is your problem with that mechanism?
<yorickpeterse> the latter frightens me
<darix> irc commands how?
<yorickpeterse> As in, I had people write messages with "To:" in it and I'd get error logs saying that was an invalid IRC command
mossplix has quit [Ping timeout: 248 seconds]
<darix> if someone types "join #ruby-lang" on camp fire the bot would do that?
<darix> well.
<darix> that should be an easy fix no?
<yorickpeterse> I've also had cases where it would duplicate messages 20 times, randomly crash on YAML related code (why the fuck it even uses that is beyond me), etc
<yorickpeterse> For my personal use case fixing that would most likely take way longer than hacking something together myself
<yorickpeterse> The alternative is to spend some time with the libpurple API but meh, C
<darix> but seriously hacking up an ircd wouldnt be less time
<yorickpeterse> inb4 "snakefire": it's shit
<darix> it just adds another world of pain
<darix> yorickpeterse: did you check bitlbee for campfire support?
mossplix has joined #ruby-lang
<yorickpeterse> doesn't hav eit
<yorickpeterse> * have it
<yorickpeterse> at least not as far as I could find
sn0wb1rd has joined #ruby-lang
<darix> also ... why not just have a script running inside weechat talking to campfire and dumping stuff into a special window
<darix> (:
<darix> leaving out the whole irc layer
<yorickpeterse> Because I don't want to use a solution that looks like an abortion
<darix> well
<yorickpeterse> that's like saying "lol use a CLI tool that polls it"
<darix> keep bitching
<yorickpeterse> sick burn. Either way, I'm not going to argue with you
schaerli has joined #ruby-lang
<darix> yorickpeterse: all i can say there are things like rss reader scripts for irssi and stuff which work just fine within irssi. leaving out the whole irc stack in the middle. so i cant see why something like that wouldnt work with weechat.
Bearproof has joined #ruby-lang
<darix> you argued you only want the whole stuff to have it inside weechat.
<yorickpeterse> Unless you can't read, which I doubt, I think I made it fairly clear I wasn't going to further argue about it since there's no point to it.
mercwithamouth has joined #ruby-lang
<darix> well so far you didnt bring any arguments except "it sucks, it crash, that is bad, i dont want to"
<imperator> darix, so proceed as you see fit
wallerdev has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
<darix> that's the plan!
bzalasky has joined #ruby-lang
<yorickpeterse> darix: let me give you an exact reason why: camper_van is buggy and makes me feel like it's insecure, that alone is enough for me to stop using it. All the solutions you suggested work fine if you only join a single room and don't mind having to duplicate command interfaces [...]
lun_ has joined #ruby-lang
apeiros_ has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
kogent has quit [Remote host closed the connection]
<yorickpeterse> Say you're going down the route of an IRC <-> Campfire bot you have to write a user interface so I can communicate with it, translate that to Campfire stuff and then translate all the Campfire stuff back to IRC.
bfreeman has joined #ruby-lang
mpan has joined #ruby-lang
<yorickpeterse> That solution also becomes a mess when you join multiple rooms as everything will be thrown into one place (the place where the bot is)
kogent has joined #ruby-lang
<darix> yorickpeterse: well not really. there is e.g. an xmpp protocol support for weechat as a python script
<darix> so i assume that can handle multiple xmpp chats/mucs
<yorickpeterse> And then I have to find a Jabber <-> Campfire bridge
<yorickpeterse> Again, how is that easier?
<darix> or
Bearproof has left #ruby-lang [#ruby-lang]
<darix> write a campfire.rb script for weechat which adds campfire support?
<darix> leaving all intermediate protocols out
<yorickpeterse> as far as I'm aware you can't write protocol plugins for Weechat
<darix> then all you care about is the weechat protocol api and the campfire protocol
joker5437 has quit [Quit: Leaving]
<yorickpeterse> isn't that effectively the same? I'm not really familiar with the Weechat API but you'd still have to handle the translation part
ovatsug25 has joined #ruby-lang
<darix> yeah. but you have the API of the client. not irc with all its braindead limitations. (line lengths anyone?)
<yorickpeterse> Hmm, that might be an idea
MSU has quit [Remote host closed the connection]
lun_ has quit [Ping timeout: 248 seconds]
MSU has joined #ruby-lang
agnitio has quit [Quit: Leaving]
lele has left #ruby-lang ["Leaving"]
ten1 has joined #ruby-lang
lun_ has joined #ruby-lang
breakingthings has quit []
glebm has quit [Quit: Computer has gone to sleep.]
glebm has joined #ruby-lang
glebm has quit [Client Quit]
<darix> yorickpeterse https://github.com/github/hubot/wiki/Adapter:-Campfire - just a thought
<darix> and gone
<darix> later
karasawa has joined #ruby-lang
rue|w has joined #ruby-lang
__butch__ has joined #ruby-lang
__butch__ has quit [Ping timeout: 240 seconds]
rue|w has quit [Remote host closed the connection]
maxmanders has quit [Quit: Computer has gone to sleep.]
<injekt> blargh
Hakon has quit [Quit: Leaving...]
__butch__ has joined #ruby-lang
karasawa has quit [Ping timeout: 255 seconds]
karasawa has joined #ruby-lang
<yorickpeterse> darix: Hubot would've been an idea but I have a mixed opinion on it
<yorickpeterse> I also don't want to run Node.js on my server :)
<yorickpeterse> Also, progress: instead of 103 LOC for checking unused variables I can now do it in 40 (including docs)
<yorickpeterse> and it can even be re-used
jbsan has joined #ruby-lang
spectra has quit [Ping timeout: 276 seconds]
tdy has quit [Read error: Connection reset by peer]
io_syl has joined #ruby-lang
rue has joined #ruby-lang
ryanv-raptor has quit [Quit: Leaving.]
brianpWins has joined #ruby-lang
rue|w has joined #ruby-lang
carloslopes has joined #ruby-lang
ddd has left #ruby-lang [#ruby-lang]
rue|w has quit [Remote host closed the connection]
lun__ has joined #ruby-lang
lun_ has quit [Ping timeout: 255 seconds]
spectra- has joined #ruby-lang
socialcoder has joined #ruby-lang
bondar has joined #ruby-lang
socialcoder has quit [Client Quit]
kennyvb has quit [Ping timeout: 260 seconds]
socialcoder has joined #ruby-lang
socialcoder has quit [Client Quit]
ddd has joined #ruby-lang
kennyvb has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
EddiX has joined #ruby-lang
benanne has joined #ruby-lang
socialcoder has joined #ruby-lang
socialcoder has quit [Client Quit]
<yorickpeterse> https://github.com/blog/1381-a-whole-new-code-search Thank god, took them long enough
EddiX has quit [Client Quit]
EddiX has joined #ruby-lang
<CoverSlide> github's search was always terrible
megha has quit [Quit: WeeChat 0.3.9.2]
megha has joined #ruby-lang
megha has quit [Client Quit]
hahuang65 has joined #ruby-lang
<injekt> so it doesn't actually include any of the search results
<injekt> that's.. not helpful to me at all
sepp2k1 has joined #ruby-lang
lun__ has quit [Read error: Connection reset by peer]
wyhaines has joined #ruby-lang
sepp2k has quit [Ping timeout: 248 seconds]
wyhaines has quit [Remote host closed the connection]
swav has quit [Remote host closed the connection]
lun_ has joined #ruby-lang
tdy has joined #ruby-lang
karasawa has quit [Ping timeout: 276 seconds]
cultureulterior_ has quit [Quit: cultureulterior_]
ViPi has quit [Quit: Computer has gone to sleep.]
Hakon has joined #ruby-lang
bondar has quit [Quit: Leaving]
ryanv-raptor has joined #ruby-lang
imajes has quit [Excess Flood]
banisterfiend has joined #ruby-lang
Hakon has quit [Client Quit]
lun__ has joined #ruby-lang
lun_ has quit [Read error: Connection reset by peer]
imajes has joined #ruby-lang
aedornm has joined #ruby-lang
adamjleonard has joined #ruby-lang
emptyflask has quit [Remote host closed the connection]
mossplix has quit [Ping timeout: 264 seconds]
lun__ has quit [Read error: Connection reset by peer]
headius has joined #ruby-lang
mrsolo has joined #ruby-lang
dzhulk has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
ivanoats has joined #ruby-lang
apeiros_ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
sailias has quit [Quit: Leaving.]
headius has quit [Quit: headius]
maxmanders has joined #ruby-lang
headius has joined #ruby-lang
mistym is now known as mistym_lunch
emptyflask has joined #ruby-lang
yalue has joined #ruby-lang
adamjleonard has quit [Quit: Linkinus - http://linkinus.com]
vlad_starkov has joined #ruby-lang
havenn_ has joined #ruby-lang
havenn has quit [Read error: Connection reset by peer]
havenn_ has quit [Ping timeout: 276 seconds]
elux has joined #ruby-lang
Uranio has quit [Quit: while you reading this, a kitty dies]
drbrain has quit [Remote host closed the connection]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
amateurhuman has quit [Ping timeout: 272 seconds]
amateurhuman has joined #ruby-lang
adambeynon has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
Bearproof has joined #ruby-lang
Bearproof has quit [Client Quit]
<dominikh> late, but: he wants an IRC server, not a bot
carloslopes has quit [Remote host closed the connection]
xcombelle has quit [Remote host closed the connection]
havenn has joined #ruby-lang
<lianj> campfire is so horrible
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
<yorickpeterse> lianj: tell me about it
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
schaerli has quit [Remote host closed the connection]
bluepojo has joined #ruby-lang
<injekt> dominikh: lie
davidbalber|away is now known as davidbalbert
tbuehlmann has quit [Remote host closed the connection]
<yorickpeterse> Messing around with the Weechat API now to see if I can get hack something together
<lianj> yorickpeterse: use campfire at your job?
<yorickpeterse> Yes
<yorickpeterse> We have non techies using it so I can see why we use it, I just wish we used IRC instead
* yorickpeterse strokes his neckbeard
retro|cz has quit [Read error: Operation timed out]
<lianj> horrible horrible :P
<dominikh> I've seen women use IRC, I'm sure non techies can manage :P (inb4 rants at my douchy comment)
<yorickpeterse> that's sexist yo
<dominikh> that's how I roll
<injekt> it gets worse
<lianj> i made my team switch to irc some weeks ago :) so happy about that move
<yorickpeterse> I know, he's German after all
<dominikh> yorickpeterse: oh don't get me started. we're all about equal rights and feminism here :P
<Smol> hmm, is there a oneliner to make an IO-like object from something that responds to #each? (specifically, I'd like to give Rack::BodyProxy to Net::HTTP::Post#body_stream)
<lianj> Smol: StringIO?
mistym_lunch is now known as mistym
<lianj> hm, sadly no
<Smol> yeah, I think it wants a string
gix has quit [Ping timeout: 256 seconds]
<dominikh> #each doesn't really map at all to how IO behaves
tbuehlmann has joined #ruby-lang
<Smol> if I understand the code correctly, Net::HTTP just seems to want something that responds to #read(n)
Rizzle has joined #ruby-lang
solars has joined #ruby-lang
ddd has left #ruby-lang [#ruby-lang]
maxmanders has quit [Quit: Computer has gone to sleep.]
gix has joined #ruby-lang
toretore has quit [Quit: Leaving]
maxmanders has joined #ruby-lang
gix has quit [Ping timeout: 245 seconds]
lun_ has joined #ruby-lang
seydar has joined #ruby-lang
gix has joined #ruby-lang
<seydar> i'd like to share and discuss and tear to shreds 2 lines of code i just wrote
<seydar> unless a = something.else
<seydar> a = 5
<seydar> end
<injekt> wat
<seydar> i dunno. i just wrote it and thought "huh that's interesting."
<seydar> i don't even know why it's interesting
<injekt> :/
<injekt> a = something.else || 5
<lianj> as in a = something.else or 5
<injekt> beat ya
<lianj> as always :P
<injekt> hehe
<seydar> i mean, yes, except the `a = 5` tidbit is actually multiple lines
ivanoats has quit [Remote host closed the connection]
<injekt> we need a better example
<seydar> and upon writing that out again, i see a nice way to cut it down even more
<seydar> but i could still see a viable use case
<seydar> but it definitely feels weird
<seydar> sexy weird, like the foreign girl in your french class
<seydar> alright, here's a more compelling example: http://pastie.org/5839168
ddd has joined #ruby-lang
seydar has quit [Quit: leaving]
adambeynon has joined #ruby-lang
emptyflask has quit [Remote host closed the connection]
lsegal has joined #ruby-lang
chuenjin has quit [Ping timeout: 256 seconds]
adambeynon has quit [Quit: Computer has gone to sleep.]
EddiX has quit [Ping timeout: 244 seconds]
Criztian has quit [Remote host closed the connection]
musl has quit [Quit: WeeChat 0.3.9.2]
gregf has joined #ruby-lang
musl has joined #ruby-lang
banisterfiend has quit [Ping timeout: 252 seconds]
mistym is now known as mistym_meeting
carloslopes has joined #ruby-lang
ddd has quit [Ping timeout: 245 seconds]
bfreeman has quit [Read error: Connection reset by peer]
bfreeman has joined #ruby-lang
blazes816 has quit [Quit: blazes816]
blazes816 has joined #ruby-lang
gix has quit [Ping timeout: 252 seconds]
gix has joined #ruby-lang
gregf has quit [Quit: WeeChat 0.3.8]
gregmore_ has quit [Remote host closed the connection]
gix_ has joined #ruby-lang
gix has quit [Disconnected by services]
gregmoreno has joined #ruby-lang
ryanf has joined #ruby-lang
tbuehlmann has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
Bearproof has joined #ruby-lang
ilyam has joined #ruby-lang
ilyam has quit [Client Quit]
ilyam has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
nkr has quit [Quit: Linkinus - http://linkinus.com]
drbrain has joined #ruby-lang
<andrewvos> Nice short variable names bro. Way to save precious bytes.
cirenyc has joined #ruby-lang
carloslopes has joined #ruby-lang
<andrewvos> My preciouses
bfreeman has quit [Read error: Connection reset by peer]
bfreeman_ has joined #ruby-lang
Bearproof1 has joined #ruby-lang
Bearproof has quit [Ping timeout: 252 seconds]
jetstream has joined #ruby-lang
Bearproof1 has left #ruby-lang [#ruby-lang]
<andrewvos> Ok it just occurred to me that I may have been rude. Sorry :( :(
asaaki|home has joined #ruby-lang
<injekt> andrewvos: DICK
<andrewvos> injekt: <3
<injekt> <3
asaaki has quit [Ping timeout: 255 seconds]
<andrewvos> xoxo
gregmoreno has quit [Remote host closed the connection]
jtoy has joined #ruby-lang
gregmoreno has joined #ruby-lang
chuenjin has joined #ruby-lang
dzhulk has quit [Quit: Leaving.]
thone_ has joined #ruby-lang
scampbell has quit [Quit: Leaving]
jtoy has quit [Quit: jtoy]
<rue> You have all been very strange today
jtoy has joined #ruby-lang
<andrewvos> How so?
<Gate> Something I've learned: if it ain't just a little bit strange it doesn't belong in the ruby community.
emptyflask has joined #ruby-lang
thone has quit [Ping timeout: 240 seconds]
<andrewvos> Or your mom
<injekt> "if it aint just a little bit strange it doesnt belong in your mom" ?
<andrewvos> exactly
<andrewvos> Sorry I don't even know you Gate your mom is probably a lovely lady.
<rue> andrewvos: Like that
imajes has quit [Excess Flood]
<Kuifje> what about indentation?
maxmanders has quit [Quit: Textual IRC Client: www.textualapp.com]
<Kuifje> it requires bytes
imajes has joined #ruby-lang
<andrewvos> rue's responses are often as short as his name
<Kuifje> so maybe oyu should not use it altogether
dzhulk has joined #ruby-lang
<andrewvos> Never more than a few characters per day.
<andrewvos> rue: If you like movies that are great because they are so shit you would *love* Battlefield.
davidbalbert is now known as davidbalber|away
dustint_ has quit [Quit: Leaving]
io_syl has quit [Quit: Textual IRC Client: www.textualapp.com]
ddd has joined #ruby-lang
<andrewvos> Came back here to say: I mean Battleship.
<CoverSlide> I hear they're making movies out of Monopoly, Ouija, CandyLand, and Risk
chuenjin_ has joined #ruby-lang
<CoverSlide> and hungry hungry hippos
ericwood has quit [Ping timeout: 255 seconds]
ericwood has joined #ruby-lang
<drbrain> CoverSlide: they made a movie out of DDR
<CoverSlide> what?
<zenspider> the worst feature of ruby 1.9 just got worse... omg
<CoverSlide> zenspider: what feature?
scottschecter has quit [Quit: WeeChat 0.3.9.2]
<zenspider> being able to define `def !`
<zenspider> turns out that 'a unless b' is a COMPLETELY different code path from 'a if ! b' because they don't both normalize to the same thing
mistym_meeting is now known as mistym
chuenjin has quit [Ping timeout: 276 seconds]
benanne has quit [Ping timeout: 264 seconds]
chuenjin_ has quit [Ping timeout: 255 seconds]
<zenspider> yup... `a != b` is also completely different from `!(a == b)` for the same reason
<zenspider> jesus this is dumb
carloslopes has quit [Read error: Connection reset by peer]
carloslopes has joined #ruby-lang
elux has quit [Quit: Leaving...]
io_syl has joined #ruby-lang
<andrewvos> zenspider: So much fun things will come from this yay
<andrewvos> CoverSlide: The sad thing is I completely believe you. What has this world come to?
benanne has joined #ruby-lang
benanne has quit [Client Quit]
benanne has joined #ruby-lang
madhadron has joined #ruby-lang
<madhadron> Does anyone know how to get write a cross platform test task in Rake?
<andrewvos> madhadron: Guess so
<andrewvos> zenspider: After rereading what you wrote I am confident in saying that I don't understand at all. Care to elaborate?
<madhadron> andrewvos, I have a Rake::TestTask block to run all the files test/test_*.rb, which works fine on Linux and OS X, but on Windows doesn't seem to find anything.
<madhadron> The command it prints that it's running shows all the files, but it doesn't actually handle any of them.
<andrewvos> Wait so you mean you can make a method called ! that circumvents !?
<mistym> zenspider: But at least it lets you make your code more unreadable by redefining ! to mean unintuitive stuff!
<andrewvos> zenspider:
cirenyc has quit [Quit: Leaving...]
<andrewvos> madhadron: Code?
<CoverSlide> that is pretty terrible
* madhadron goes to make a gist
ruby-lang407 has joined #ruby-lang
Bearproof has joined #ruby-lang
scottschecter has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
ruby-lang407 has quit [Client Quit]
<mistym> madhadron: Windows file separator is \, not /
ccsidiot has joined #ruby-lang
<madhadron> mistsym, That's true, and doesn't actually fix anything here.
<madhadron> You can put \\ in for / and get the same thing
ccsidiot has quit [Client Quit]
<andrewvos> madhadron: Different rubies?
<madhadron> Plus the Windows file system, when not doing Unicode, will recognize / as a path separator
<madhadron> madhadron: Both MRI 1.9.3
<madhadron> Err
<madhadron> andrewvos:
<andrewvos> If mistym isnt right then you got probls
ccsidiot has joined #ruby-lang
<andrewvos> problems*
ccsidiot has quit [Client Quit]
<madhadron> Yes. I've been coming back to this for several days now.
<madhadron> I can run the test suite by hand, but Rake won't run it.
ccsidiot has joined #ruby-lang
workmad3_ has joined #ruby-lang
<madhadron> Oh damn. I just found a fix if I'm running it by hand. I need Rake not to add the Ruby directory to the include path.
workmad3 has quit [Ping timeout: 244 seconds]
<madhadron> It's probably pulling in the old, broken version of Test::Unit
<madhadron> That cost me a day or two a while back...
techlife has quit [Ping timeout: 252 seconds]
mwjcomputing has joined #ruby-lang
<andrewvos> bundle exec
<andrewvos> The price we must all pay
<andrewvos> Oh wait
<andrewvos> I make no sense
<andrewvos> Ok I'm leaving, I care not for this anymore.
ccsidiot has quit [Ping timeout: 245 seconds]
<madhadron> The test environment in question doesn't use bundler.
<andrewvos> fun
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
Kuifje has quit [Ping timeout: 256 seconds]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
__BigO__ has quit [Remote host closed the connection]
<madhadron> Oh gak. I had to install a newer version of rake and that fixed it.
jkyle has quit [Ping timeout: 264 seconds]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
workmad3_ is now known as workmad3
techlife has joined #ruby-lang
davidbalber|away is now known as davidbalbert
<andrewvos> Really? Weird.
<andrewvos> Some people have the weirdest problems
bzb has joined #ruby-lang
<bzb> having problem installing pry gem into ruby-1.9.3-p374, details @ http://pastebin.com/pe5FkDhc
RWN has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
RORgasm has quit [Remote host closed the connection]
mjio has joined #ruby-lang
<andrewvos> bzb: It seems to be installed perfectly.
<andrewvos> bzb: But if you want a nicer feeling, try `gem install pry --no-rdoc --no-ri`
bantic has joined #ruby-lang
mjio has quit [Client Quit]
<bzb> andrewvos: yes, pry gem was installed ok. but it's the failure with the rdoc .
<andrewvos> bzb: If you care about rdocs, I just pasted that in #pry.
blacktulip has quit [Remote host closed the connection]
<bzb> andrewvos: thanks
<andrewvos> bzb: Pleasure
itsmeduncan has joined #ruby-lang
espinet has joined #ruby-lang
<espinet> i have a method
<espinet> ugh
ryanv-raptor has quit [Quit: Leaving.]
emocakes has quit [Quit: emocakes]
mwjcomputing has quit [Ping timeout: 252 seconds]
mistym has quit [Remote host closed the connection]
<drbrain> espinet: only one method, no wonder, it's so lonely
<espinet> lol no shift+enter, writing out my question but realized it more arropriate to rails irc… ill post here too
<espinet> Can anyone help me with marshalling. saving to the database is ruining my data. https://gist.github.com/4615560
<espinet> drbrain: there.
lun__ has joined #ruby-lang
lun_ has quit [Ping timeout: 248 seconds]
solars has quit [Ping timeout: 240 seconds]
bzb has quit [Quit: Leaving]
<andrewvos> espinet: This may be presumptious but what about #to_json?
<espinet> what do you mean?
<espinet> gist updated because of bad naming
jonahR has quit [Quit: jonahR]
techlife has quit [Ping timeout: 252 seconds]
<andrewvos> "marshal to short" should it not be "too"?
<drbrain> espinet: yeah, you got truncated somewhere ☹
<drbrain> you're missing the instance variable reference on the final string
techlife has joined #ruby-lang
lun_ has joined #ruby-lang
<espinet> ya, not sure why
swav has joined #ruby-lang
lun__ has quit [Ping timeout: 264 seconds]
b1rkh0ff has quit [Ping timeout: 248 seconds]
zhul_mechanos has quit [Remote host closed the connection]
zhul_mechanos has joined #ruby-lang
lun__ has joined #ruby-lang
<drbrain> espinet: it's especially odd since it's not the only NUL byte in the string
lun_ has quit [Ping timeout: 248 seconds]
<espinet> do not know what you mean by that
<workmad3> espinet: should I repeat in here to just use activerecords serialize attribute helper? :P
<drbrain> espinet: if there was only one \x00 in the string I might suspect the DB adapter encountered the \x00 and truncated the rest of the string
jetstream has quit []
<espinet> oh. well the recommendation i god from #rubyonrails was use ActiveRecords serialize but i'd still like to know why Marshal didn't work
pythonsnake has quit [Quit: WeeChat 0.4.0]
mjio has joined #ruby-lang
kith has quit [Read error: Connection reset by peer]
<espinet> someone said "dunno... but then, marshalling is basically arbitrary binary data, while a text column in a db is for text data, not binary data"
kith has joined #ruby-lang
<workmad3> espinet: yeah, me :P
mjolk has quit [Ping timeout: 276 seconds]
<espinet> lol you did!
<workmad3> espinet: cross-posting channels gets a bit annoying btw :P
__butch__ has quit [Quit: Leaving.]
<espinet> i was letting drbrain know
<espinet> i'm gone after this, you solved my problem, i apologize.
<workmad3> :)
<espinet> workmad3: what column type do you think i would need to marshal the data instead if text wouldn't work?
<espinet> binary?
lun__ has quit [Ping timeout: 256 seconds]
<workmad3> espinet: you could try with binary if you have a binary type in your db... I'd expect that to do less messing with the text than a text column
zhul_mechanos has quit [Quit: zhul_mechanos]
<espinet> working with postgres, but i was more curious as to what would fix that issue. thanks again!
waffleau_ has joined #ruby-lang
postmodern has joined #ruby-lang
nirix has joined #ruby-lang
espinet has left #ruby-lang [#ruby-lang]
waffleau_ has quit [Quit: waffleau_]
waffleau_ has joined #ruby-lang
b1rkh0ff has joined #ruby-lang
madhadron has left #ruby-lang [#ruby-lang]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
elico has joined #ruby-lang
waffleau_ has left #ruby-lang [#ruby-lang]
thillux has quit [Remote host closed the connection]
rins has quit [Ping timeout: 255 seconds]
emptyflask has quit [Remote host closed the connection]
b1rkh0ff has quit [Read error: Connection reset by peer]
RWN has quit [Ping timeout: 248 seconds]
elico has quit [Ping timeout: 244 seconds]
elico has joined #ruby-lang
ryanv-raptor has joined #ruby-lang
dzhulk has left #ruby-lang [#ruby-lang]
andrewhl has quit [Remote host closed the connection]
RWN has joined #ruby-lang
jtoy has quit [Quit: jtoy]
<zenspider> andrewvos: One Way 1.9 Drives Me Nuts | polishing ruby by ryan davis - http://blog.zenspider.com/blog/2013/01/one-way-1-9-drives-me-nuts.html
Rizzle has quit [Ping timeout: 245 seconds]