apeiros changed the topic of #ruby-lang to: Ruby 2.2.1; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste code on https://gist.github.com
mberk has joined #ruby-lang
<jhass> SylarRub_: maybe you should your current (and preferably actual) code instead of an outdated version
<SylarRub_> jhass: What you mean?
SuMo_D has joined #ruby-lang
<jhass> the code you showed in the stack overflow question most likely doesn't match your actual code
sideshowcoder has quit [Ping timeout: 246 seconds]
slumos has left #ruby-lang ["slumos quit"]
SuMo_D has quit [Ping timeout: 265 seconds]
SylarRub_ has quit [Remote host closed the connection]
lytol has quit [Remote host closed the connection]
duderonomy has joined #ruby-lang
<zenspider> no... it doesn't work. *sigh*
<zenspider> this works:
<zenspider> >> Regexp.union({:a => 1, :b => 2}.keys.map(&:to_s))
<eval-in_> zenspider => /a|b/ (https://eval.in/300940)
<zenspider> but... you left. tsk tsk
kaip has joined #ruby-lang
bb010g has joined #ruby-lang
bruno- has joined #ruby-lang
red_menace has joined #ruby-lang
bruno- has quit [Ping timeout: 252 seconds]
nathanstitt has joined #ruby-lang
cryo28 has joined #ruby-lang
sepp2k has quit [Quit: Konversation terminated!]
ghostpl_ has quit [Remote host closed the connection]
BlackMustard has quit [K-Lined]
fujimura has joined #ruby-lang
tvon has joined #ruby-lang
tvon has quit [Client Quit]
NoNMaDDeN has quit [Remote host closed the connection]
kaip has quit [Quit: kaip]
<pipework> zenspider: Is your talk slides up anywhere?
bruno- has joined #ruby-lang
fujimura has quit [Ping timeout: 252 seconds]
lytol has joined #ruby-lang
SuMo_D has joined #ruby-lang
sideshowcoder has joined #ruby-lang
steve-la has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
postmodern has quit [Quit: Leaving]
j4cknewt_ has quit [Remote host closed the connection]
JohnD has joined #ruby-lang
cryo28 has quit [Quit: leaving]
NoNMaDDeN has joined #ruby-lang
tvon has joined #ruby-lang
sankaber has joined #ruby-lang
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JohnD has quit [Excess Flood]
auzty has joined #ruby-lang
ledestin has quit [Ping timeout: 272 seconds]
jds has quit [Quit: Connection closed for inactivity]
amsi has quit [Quit: Leaving]
marr has quit [Ping timeout: 244 seconds]
setanta_ has quit [Quit: Leaving]
lytol has quit [Remote host closed the connection]
havenn has joined #ruby-lang
havenn has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
lytol has joined #ruby-lang
steve-la has quit [Quit: Lingo: www.lingoirc.com]
JohnD has joined #ruby-lang
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
wallerdev has quit [Quit: wallerdev]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjones has joined #ruby-lang
vipaca has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang62 has quit [Ping timeout: 255 seconds]
havenwood has quit []
j4cknewt has joined #ruby-lang
amclain has joined #ruby-lang
riotjones has quit [Ping timeout: 252 seconds]
j4cknewt has quit [Remote host closed the connection]
hendranata_ has joined #ruby-lang
j4cknewt has joined #ruby-lang
fujimura has joined #ruby-lang
JohnD has quit [Read error: Connection reset by peer]
JohnT has joined #ruby-lang
fujimura has quit [Ping timeout: 240 seconds]
sankaber has joined #ruby-lang
jeramysingleton has joined #ruby-lang
jeramysingleton has left #ruby-lang [#ruby-lang]
j4cknewt has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 255 seconds]
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
duderonomy has joined #ruby-lang
apeiros_ has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
apeiros has quit [Ping timeout: 265 seconds]
smoitra has joined #ruby-lang
apeiros has joined #ruby-lang
apeiros_ has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
goodcodeguy has joined #ruby-lang
goodcodeguy has quit [Client Quit]
dorei has quit []
duderonomy has quit [Read error: Connection reset by peer]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ledestin has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
mberk has quit [Remote host closed the connection]
milwaukee has joined #ruby-lang
iamninja has quit [Ping timeout: 246 seconds]
duderonomy has joined #ruby-lang
mberk has joined #ruby-lang
iamninja has joined #ruby-lang
j4cknewt has joined #ruby-lang
JohnT is now known as HomeLate
markholmes has joined #ruby-lang
hhatch has quit [Ping timeout: 264 seconds]
HomeLate is now known as cjh-
cjh- is now known as cjh_
cjh_ is now known as cjha
cjha is now known as kaneeni
joaomdmoura has joined #ruby-lang
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaneeni is now known as somefag
somefag has quit [Remote host closed the connection]
bruno- has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
JohnT has joined #ruby-lang
bruno- has quit [Ping timeout: 240 seconds]
markholmes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
red_menace has quit [Quit: leaving...]
lytol has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
JohnT is now known as p1np01nt
nathanstitt has quit [Quit: Laters]
cryo28 has joined #ruby-lang
p1np01nt is now known as Exp1r3dP0ps1cle
Exp1r3dP0ps1cle is now known as d[-_-]b
d[-_-]b has quit [K-Lined]
nathanstitt has joined #ruby-lang
riotjone_ has joined #ruby-lang
RalphWiggum has joined #ruby-lang
RalphWiggum is now known as Guest80749
amystephen has quit [Quit: amystephen]
riotjone_ has quit [Ping timeout: 256 seconds]
SylarRuby has joined #ruby-lang
sankaber has joined #ruby-lang
SylarRuby has quit [Ping timeout: 256 seconds]
nathanstitt has quit [Quit: I growing sleepy]
octodoodle has joined #ruby-lang
lytol has joined #ruby-lang
mberk has quit [Remote host closed the connection]
j4cknewt has quit []
ghostpl_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 256 seconds]
smoitra has quit [Quit: Leaving]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crdpink has joined #ruby-lang
crdpink2 has quit [Ping timeout: 256 seconds]
Musashi007 has joined #ruby-lang
lytol has quit [Remote host closed the connection]
seank_ has quit []
markholmes has joined #ruby-lang
seank_ has joined #ruby-lang
ledestin has quit [Read error: Connection reset by peer]
hahuang65_ has joined #ruby-lang
kazlock has joined #ruby-lang
octodoodle has quit [Read error: Connection reset by peer]
revath has joined #ruby-lang
kazlock has quit [Ping timeout: 246 seconds]
milwaukee has quit [Quit: Leaving.]
Guest80749 has quit []
RalphWiggum has joined #ruby-lang
RalphWiggum is now known as Guest22117
sc00t has joined #ruby-lang
kaip has joined #ruby-lang
sc00t has quit [Ping timeout: 244 seconds]
cryo28 has quit [Quit: leaving]
<Guest22117> DCC SEND STARTKEYLOGGER 0 0 0
Guest22117 has left #ruby-lang ["DCC SEND STARTKEYLOGGER 0 0 0"]
haraoka has joined #ruby-lang
Steve_Jobs has quit [Read error: Connection reset by peer]
dellavg_ has joined #ruby-lang
Steve_Jobs has joined #ruby-lang
x44x45x41x4E has joined #ruby-lang
Tetris- has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
jwaldrip__ has joined #ruby-lang
dellavg_ has quit [Ping timeout: 264 seconds]
smoitra has joined #ruby-lang
gix has quit [Ping timeout: 250 seconds]
jwaldrip__ is now known as ruby-lang-slack
mberk has joined #ruby-lang
ruby-lang-slack has quit [Quit: Lingo: www.lingoirc.com]
gix has joined #ruby-lang
crdpink2 has joined #ruby-lang
mberk has quit [Client Quit]
crdpink has quit [Ping timeout: 265 seconds]
riotjones has joined #ruby-lang
JamesDH has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjones has quit [Ping timeout: 256 seconds]
faye_pdx has left #ruby-lang ["WeeChat 0.4.3"]
morfeen has joined #ruby-lang
ruby-lang-slack_ has joined #ruby-lang
stardiviner has joined #ruby-lang
jwaldrip has joined #ruby-lang
<ruby-lang-slack_> [jwaldrip] testing...
<jwaldrip> alright... got a bridge from slack to IRC. happy chatting all.
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby-lang
hakunin has quit [Ping timeout: 252 seconds]
ruby-lang-slack_ has left #ruby-lang [#ruby-lang]
ruby-lang-slack_ has joined #ruby-lang
ender|dkm has joined #ruby-lang
ruby-lang-slack_ has left #ruby-lang [#ruby-lang]
Tetris- has quit [Remote host closed the connection]
Tetris- has joined #ruby-lang
revath has quit [Ping timeout: 264 seconds]
revath has joined #ruby-lang
lytol has joined #ruby-lang
Tetris- has quit [K-Lined]
CandyCrush has joined #ruby-lang
revath has quit [Ping timeout: 245 seconds]
hahuang65 has quit [Quit: WeeChat 0.4.2]
hahuang65_ is now known as hahuang65
ledestin has joined #ruby-lang
hahuang61 has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
markholmes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CandyCrush has quit [Read error: Connection reset by peer]
Olipro has quit [Ping timeout: 272 seconds]
CandyCrush has joined #ruby-lang
Olipro has joined #ruby-lang
amclain has quit [Quit: Leaving]
markholmes has joined #ruby-lang
smoitra has quit [Quit: Leaving]
smoitra has joined #ruby-lang
jwaldrip has quit [Quit: Be back later ...]
CandyCrush has quit [Read error: Connection reset by peer]
lytol has quit [Remote host closed the connection]
HotBuns has joined #ruby-lang
vipaca has joined #ruby-lang
spuk has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby-lang
morfeen has quit [Quit: Leaving...]
fujimura has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 252 seconds]
fujimura has joined #ruby-lang
fujimura has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
riotjone_ has joined #ruby-lang
fclausen_ has joined #ruby-lang
sc00t has joined #ruby-lang
fclausen has quit [Ping timeout: 272 seconds]
lele is now known as Guest24
kaip has quit [Quit: kaip]
NoNMaDDeN has quit [Remote host closed the connection]
revath has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 250 seconds]
iamninja has quit [Read error: Connection reset by peer]
relix has joined #ruby-lang
markholmes has left #ruby-lang ["So it goes."]
x44x45x41x4E has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhjondoh has joined #ruby-lang
iamninja has joined #ruby-lang
iamninja has quit [Client Quit]
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
iamninja has joined #ruby-lang
apeiros__ has joined #ruby-lang
smoitra has quit [Remote host closed the connection]
apeiros_ has quit [Read error: Connection reset by peer]
SuMo_D has quit [Ping timeout: 256 seconds]
Guest29 has joined #ruby-lang
Guest29 has quit [Client Quit]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
hakunin has joined #ruby-lang
apeiros__ has quit [Remote host closed the connection]
<HotBuns> DCC SEND STARTKEYLOGGER 0 0 0
HotBuns has left #ruby-lang ["DCC SEND STARTKEYLOGGER 0 0 0"]
apeiros_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
apeiros_ has quit [Ping timeout: 240 seconds]
|jemc| has quit [Ping timeout: 252 seconds]
yfeldblu_ has joined #ruby-lang
stan_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 246 seconds]
dhjondoh has quit [Quit: dhjondoh]
FingerPistol has joined #ruby-lang
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
x44x45x41x4E has joined #ruby-lang
FingerPistol has quit [Ping timeout: 240 seconds]
Guest24 is now known as lele
GumBall has joined #ruby-lang
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
yfeldblu_ has quit [Read error: Connection reset by peer]
arBmind has joined #ruby-lang
SuMo_D has joined #ruby-lang
yfeldblum has joined #ruby-lang
SuMo_D has quit [Ping timeout: 265 seconds]
nedp has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 244 seconds]
havenwood has quit [Remote host closed the connection]
relix has joined #ruby-lang
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Ping timeout: 264 seconds]
linkun has joined #ruby-lang
linkun has quit [Client Quit]
Miphix has quit [Quit: Leaving]
leat has quit [Remote host closed the connection]
leat has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
revath has quit [Ping timeout: 252 seconds]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
joaomdmoura has joined #ruby-lang
x44x45x4_ has joined #ruby-lang
apeiros_ has joined #ruby-lang
x44x45x41x4E has quit [Ping timeout: 246 seconds]
solars has joined #ruby-lang
NoNMaDDeN has joined #ruby-lang
martinbmadsen has joined #ruby-lang
Iskarlar has joined #ruby-lang
SylarRuby has joined #ruby-lang
revath has joined #ruby-lang
erowlin has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 255 seconds]
x44x45x4_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NoNMaDDeN has quit [Ping timeout: 245 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Ping timeout: 240 seconds]
strixd has joined #ruby-lang
hahuang65 has quit [Quit: Connection closed for inactivity]
dhjondoh has joined #ruby-lang
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
thebastl has joined #ruby-lang
thebastl has quit [Remote host closed the connection]
x44x45x41x4E has joined #ruby-lang
SuMo_D has quit [Ping timeout: 246 seconds]
joaomdmoura has quit [Remote host closed the connection]
ttilley has joined #ruby-lang
ttilley has quit [Changing host]
ttilley has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
erowlin has quit [Quit: erowlin]
SylarRuby has quit []
mikecmpbll has quit [Quit: ciao.]
octodoodle has joined #ruby-lang
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
MXfive has joined #ruby-lang
fujimura_ has joined #ruby-lang
fujimura has quit [Ping timeout: 246 seconds]
crdpink has joined #ruby-lang
crdpink2 has quit [Ping timeout: 265 seconds]
SuMo_D has quit [Ping timeout: 245 seconds]
jwaldrip has joined #ruby-lang
djellemah has joined #ruby-lang
cornerma1 has joined #ruby-lang
cornerman has quit [Ping timeout: 264 seconds]
cornerma1 is now known as cornerman
jwaldrip has quit [Ping timeout: 265 seconds]
Xzanron has joined #ruby-lang
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
mikecmpbll has joined #ruby-lang
symm- has quit [Ping timeout: 245 seconds]
martinbmadsen has joined #ruby-lang
ghostpl_ has joined #ruby-lang
GumBall has quit [K-Lined]
erowlin has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 246 seconds]
stan_ has quit [Quit: Leaving]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
smoitra has joined #ruby-lang
erowlin has quit [Client Quit]
SuMo_D has joined #ruby-lang
fclausen_ has quit [Ping timeout: 272 seconds]
<yorickpeterse> morning
<maloik> o/
<yorickpeterse> apeiros_: could you +b *@66.97.145.41 please? duder been sending spam shit via xfer (was idling in this channel until a while ago)
<yorickpeterse> "Guest22117 "STARTKEYLOGGER" (irc.freenode) (0.0.0.0)"
<yorickpeterse> -->> waiting [ ] 0% 0 bytes / 0 bytes (0 bytes/s)
<yorickpeterse> looks legit
<jhass> I'd be really interested what's in that file
<yorickpeterse> I should probably just disable xfer
<yorickpeterse> ty
<apeiros_> yw
SuMo_D has quit [Ping timeout: 264 seconds]
stan has joined #ruby-lang
revath has quit [Ping timeout: 272 seconds]
<maloik> but then how are you going to download dem warez?
<maloik> what was that called again?
<maloik> dcc or something, right?
<yorickpeterse> yeah
<yorickpeterse> I download my cracked versions of Ruby via IRC
<DefV> those were the days
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
fclausen has joined #ruby-lang
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
revath has joined #ruby-lang
zucker has joined #ruby-lang
stamina has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
arBmind has joined #ruby-lang
fclausen_ has joined #ruby-lang
SuMo_D has quit [Ping timeout: 265 seconds]
fclausen has quit [Ping timeout: 272 seconds]
hendranata_ has quit [Remote host closed the connection]
* chris2 remembers STARTKEYLOGGER :D
fujimura_ has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
Iskarlar has quit [Quit: Textual IRC Client: www.textualapp.com]
<yorickpeterse> Good thing I don't have Norton
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
Iskarlar has joined #ruby-lang
smoitra has quit [Ping timeout: 250 seconds]
sc00t has quit [Ping timeout: 256 seconds]
auzty has quit [Quit: Leaving]
<apeiros_> OT, but: where do you guys order ssl certs?
<apeiros_> s/guys//
<maloik> at work our provider is globalsign, but I can't say I'm super happy working with them as a developer
<maloik> (were a hosting company)
<jhass> I try to not to, so I have a startssl.com one for the one instance where I need a valid one and cacert.org else
<maloik> otherwise I'd probably recommend dnsimple
<maloik> at least I think they do SSL too
<maloik> Single site SSL certificates for $20.00 for year and wildcard certificates for $100.00 per year, with the easiest certificate interface ever.
<jhass> http://www.garrisonhost.com/ssl-certificates/alphassl.html and https://cheapsslsecurity.com/ seem to be the cheapest stuff on the market for now though
<apeiros_> that's quite a bit cheaper than digicerts ~500$/y :D
<maloik> 500? that must be an EV cert then I'm sure?
<apeiros_> maloik: no, EV costs extra
<maloik> holy smokes
<apeiros_> is there any risk involved with low cost certs?
<jhass> the whole CA market is a huge scam really
<maloik> that's insane
<apeiros_> jhass: ya
<jhass> no, see ^
Miphix has joined #ruby-lang
<jhass> every german university can make a cert for anything
<yorickpeterse> apeiros_: omg did you just use "guys"
<yorickpeterse> omg
<jhass> they all get roots by DFN
<yorickpeterse> either way, we use some cheap Dutch provider
<apeiros_> yorickpeterse: yeah, scold me :-p
<maloik> advantage of dnsimple is that they're great people, know their shit and have a good product, and their support is stellar
<apeiros_> maloik: seems dnsimple requires the domain to be registered/served through them
<yorickpeterse> wasn't there some provider that did SSL for free?
<jhass> startssl.com as I said initially
<jhass> they refinance through disaster management
<jhass> revocation fees etc
<yorickpeterse> ah
<maloik> apeiros_: yea that's possible, it is their business after all
workmad3 has joined #ruby-lang
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
<apeiros_> ok, thanks all
dagda1 has joined #ruby-lang
DEac- has quit [Remote host closed the connection]
SuMo_D has quit [Ping timeout: 244 seconds]
DEac- has joined #ruby-lang
revath has quit [Remote host closed the connection]
revath has joined #ruby-lang
funnel has quit [Ping timeout: 252 seconds]
funnel has joined #ruby-lang
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
fclausen_ has quit [Ping timeout: 272 seconds]
intinig has joined #ruby-lang
intinig has quit [Client Quit]
fujimura has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
joaomdmoura has joined #ruby-lang
fujimura_ has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
joaomdmoura has joined #ruby-lang
SuMo_D has quit [Ping timeout: 252 seconds]
joaomdmoura has quit [Remote host closed the connection]
haraoka has quit [Ping timeout: 255 seconds]
intinig has joined #ruby-lang
intinig has quit [Remote host closed the connection]
martinbmadsen has joined #ruby-lang
SuMo_D has joined #ruby-lang
SylarRuby has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 245 seconds]
SuMo_D has quit [Ping timeout: 245 seconds]
tvon has quit [Quit: leaving]
<yorickpeterse> ugh
<yorickpeterse> every time I deal with some designer's HTML it's all fucked up
<yorickpeterse> tags missing, random mix of classes/ids and inline styles
<yorickpeterse> and shit like <hr style="color:#fff;background:#fff" /> when the <body> already has a white backgroiund
<yorickpeterse> * background
<yorickpeterse> oh, and double open <h1> tags
<yorickpeterse> if only htmltidy wasn't so shit for HTML5 I'd enforce it by now
<yorickpeterse> indentation is also more crazy than a stairway designed by Gaudi
<SylarRuby> Hi all. I was playing with ruby and I've created a little algo that can convert words to numbers ie: one => 1, twenty-one => 21 or twenty one => 21 etc. Is that great?
<SylarRuby> I just have one year experience with ruby
<SylarRuby> it goes up to a million with few lines of code
<yorickpeterse> SylarRuby: well, it's all relative to one's experience
workmad3 has quit [Quit: Lost terminal]
dagda1 has quit [Read error: Connection reset by peer]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
bruno- has joined #ruby-lang
dagda1 has joined #ruby-lang
stamina has quit [Quit: WeeChat 1.1.1]
<tbuehlmann> yorickpeterse, "designer"
fclausen_ has joined #ruby-lang
<yorickpeterse> surely you don't need to learn CSS/HTML to make stuff for the web
bruno- has quit [Ping timeout: 245 seconds]
<yorickpeterse> because surely the devs enjoy digging through piles of HTML to find the missing closing tag
benlovell has joined #ruby-lang
arBmind1 has joined #ruby-lang
workmad3 has joined #ruby-lang
arBmind has quit [Ping timeout: 256 seconds]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby-lang
<yorickpeterse> yay found it
dhjondoh1 has joined #ruby-lang
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
<jhass> mmh, we should have something like http://validator.w3.org/ as gem
<jhass> and at least demand valid html
dhjondoh has quit [Ping timeout: 264 seconds]
SuMo_D has quit [Ping timeout: 265 seconds]
ldnunes has joined #ruby-lang
banister has joined #ruby-lang
fusillicode has joined #ruby-lang
joaomdmoura has joined #ruby-lang
NoNMaDDeN has joined #ruby-lang
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
lele|w has quit [Ping timeout: 272 seconds]
MXfive has quit [Quit: Textual IRC Client: www.textualapp.com]
SuMo_D has joined #ruby-lang
joaomdmoura has quit [Ping timeout: 245 seconds]
fclausen_ has quit [Ping timeout: 272 seconds]
NoNMaDDeN has quit [Ping timeout: 252 seconds]
fclausen has joined #ruby-lang
SuMo_D has quit [Ping timeout: 256 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fujimura_ has quit [Remote host closed the connection]
<yorickpeterse> https://html5.validator.nu/ has an API, and there's some Python thing from Mozilla for it I believe
<yorickpeterse> but it has a limit on the input size
<yorickpeterse> which apparently is at least less than 1MB
fujimura has joined #ruby-lang
<jhass> yeah, I'm thinking more like a linter really
benlovell has quit [Ping timeout: 250 seconds]
lele|w has joined #ruby-lang
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
yfeldblu_ has quit [Ping timeout: 265 seconds]
hhatch has joined #ruby-lang
<apeiros_> yorickpeterse: now that you've written oga, it's time to write html5sanity!
<apeiros_> afaik either whatwg or w3 has the specs of a sanitation algorithm which browsers are expected to use
AnxiousGarlic has joined #ruby-lang
<yorickpeterse> meh
<yorickpeterse> I already have so much shit to work on :P
<apeiros_> I know that feel. next year? :) I'd be on board…
<yorickpeterse> eh?
<yorickpeterse> on board with what?
AnxiousGarlic has quit [Read error: Connection reset by peer]
<apeiros_> working on something like that
benlovell has joined #ruby-lang
<yorickpeterse> Well you can work on it, I already have too much on my hands :P
<yorickpeterse> rbx, ruby-ll, oga and rubysl already take up more time than I can commit
<apeiros_> I meant I'd be on board next year
<apeiros_> this year is like 279% full already
<yorickpeterse> I guess the one benefit I have is being single with a cat, so there aren'y any crazy social requirements I have to fulfill
<apeiros_> hence: I know that feel (of having so much shit to work on)
<yorickpeterse> "YORICK WE WERE GOING TO THE MOVIES" "but..but..this pull request :<"
<apeiros_> I have a bigger benefit: I've got a wife which is still in education, read: leaves me alone, but helps doing household chores :)
<yorickpeterse> heh
<yorickpeterse> I heard kids are a great way to ruin your schedule for the next 20 years
<apeiros_> also relieves me of running after skirts
<apeiros_> make that 30 years. after all, you'll a) not stop after 1 kid and b) they'll keep you busy beyond their 19th birthday
<yorickpeterse> Hm good point
marr has joined #ruby-lang
<apeiros_> OTOH, if you do it right, they'll join your efforts after ~12y
<apeiros_> but that's quite a gamble :D
bruno- has joined #ruby-lang
<yorickpeterse> best to just clone yourself
<apeiros_> I always wondered whether I'd get along with myself.
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
<yorickpeterse> I'd probably punch myself in the face in the first 5 minutes
<yorickpeterse> (well, my clone)
<yorickpeterse> Although I imagine my productivity being at an all time high
bruno- has quit [Ping timeout: 240 seconds]
sarkyniin has joined #ruby-lang
<workmad3> apeiros_: I recognise a lot of traits in myself that I'd find infuriating in others, so I don't think I'd get on with my clone :)
<apeiros_> workmad3: I imagine everything would be rosy if I had to work with myself. but I also think I might be delusional to think that :D
malconis has joined #ruby-lang
bruno- has joined #ruby-lang
<workmad3> apeiros_: about the one advantage is that, at least initially (assuming the clone has an exact copy of my brain state at the time of cloning), the other me would understand my verbal and non-verbal communications exactly
<yorickpeterse> but what if the clone turns evil?
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yorickpeterse> maybe they'll start replacing your Ruby with Python
<yorickpeterse> or *gasp* Haskell
<workmad3> yorickpeterse: if a clone with my exact mental state would do that, then the same possibility exists for myself
<yorickpeterse> well, that depends on if something goes wrong during the cloning process
<workmad3> yorickpeterse: at which point it wouldn't be my exact mental state
<yorickpeterse> clearly we need immutable clones
<workmad3> the really great question is - if you create a being that is an exact quantum copy of yourself (ignoring the impossibility of this under the 'no quantum xerox' issue), which one is the original?
fujimura has quit [Remote host closed the connection]
<jhass> I'd say it doesn't matter
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
<yorickpeterse> workmad3: eh, that one would be easy: whichever one came first
<workmad3> yorickpeterse: if you examined them, they would both have the same history
<yorickpeterse> Well yeah
<workmad3> yorickpeterse: because they're exact duplicates of the same quantum states
<yorickpeterse> well, it depends on what one means with "original"
<yorickpeterse> e.g. original as in "who came first"
<yorickpeterse> vs "will the real slim shady please stand up"
<workmad3> jhass: I'd personally say 'both' ;)
<apeiros_> workmad3: another advantage is that we have an understanding of what the other(s) are capable of
<apeiros_> I wonder how quickly the clones would start to deviate
<workmad3> apeiros_: that's based on the assumption that you have a perfect (or at least good) predictive model of your own actions internalised in your brain
<jhass> does the clone know its the clone or do both think they're the original?
<yorickpeterse> apeiros_: not if it's an immutable clone
<yorickpeterse> put some functional programming up it's brain
<yorickpeterse> * its
<yorickpeterse> damn it
<apeiros_> jhass: with a perfect clone, would it matter?
<jhass> for the derivation it would
<apeiros_> I guess I'd accept the fact that there are now two/many originals
<yorickpeterse> This reminds me of that Arnold Schwarzenegger movie
<yorickpeterse> "IF I'M NOT ME THEN WHO THE HELL AM I?"
<apeiros_> and re: many - I doubt I'd stop at one clone :D
MXfive has joined #ruby-lang
* apeiros_ wonders whether he and his clone army would have to pay taxes only for a single person…
<yorickpeterse> Ah yes, the original total recall
<workmad3> jhass: for an exact quantum state duplication, both of you would have, at the instant of duplication, exactly the same mental states, so would have exactly the same knowledge up to the point of duplication
<jhass> so that's a no?
<yorickpeterse> https://youtu.be/WFMLGEHdIjE there
<yorickpeterse> gah, forgot the timestamp
<workmad3> jhass: in a strict interpretation, with an exact duplication of all the quantum states in your body, not only would you both think you're the original, you both *would* be the original
<jhass> one problem there is that both versions would at least in the short term try to do exactly the same next, fighting about uniquely available resources
<jhass> so that's already a big potential for huge derivations
<workmad3> jhass: sure, but they're all future derivations, not past ones
<jhass> sure
<workmad3> jhass: hence why I'm saying 'up to the point of duplication' ;)
sgambino has joined #ruby-lang
<workmad3> of course, this is pretty moot as the 'no quantum xerox' principle is essentially a demonstration that you can't non-destructively copy exact quantum states
<workmad3> but kinda fun to see how people react to the idea :)
leat has quit [Ping timeout: 272 seconds]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
<yorickpeterse> so we need a mutex between the clones
<yorickpeterse> :D
leat has joined #ruby-lang
SuMo_D has joined #ruby-lang
martinbmadsen has joined #ruby-lang
octodoodle has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> that would make it somewhat less effective :P
SuMo_D has quit [Ping timeout: 256 seconds]
martinbmadsen has quit [Ping timeout: 265 seconds]
amystephen has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
x44x45x41x4E has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Forgetful_Lion has quit [Remote host closed the connection]
banister has joined #ruby-lang
sankaber has joined #ruby-lang
SuMo_D has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
smoitra has joined #ruby-lang
SuMo_D has quit [Ping timeout: 252 seconds]
sarkyniin has quit [Remote host closed the connection]
NoNMaDDeN has joined #ruby-lang
MXfive has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lapide_viridi has joined #ruby-lang
SuMo_D has joined #ruby-lang
enebo has joined #ruby-lang
banister has joined #ruby-lang
banister is now known as banisterfiend
fusillicode has quit [Ping timeout: 246 seconds]
piotrj has joined #ruby-lang
shazaum has joined #ruby-lang
workmad3 is now known as wm3|away
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
melter has joined #ruby-lang
agarie has joined #ruby-lang
surya has joined #ruby-lang
<surya> i am finding some problem in building the source can anyone help me?
surya is now known as Guest16094
jgpawletko has joined #ruby-lang
<jhass> Guest16094: don't ask to ask, just ask
ender|dkm has quit [Ping timeout: 255 seconds]
<Guest16094> $ ./configure $ make $ sudo make install
<Guest16094> in these steps $make is getting an error
SuMo_D has quit [Ping timeout: 256 seconds]
<karma_> gcc --version says what?
MXfive has joined #ruby-lang
<karma_> if nothing "sudo apt-get install build-essential"
<jhass> nice guess
<jhass> I was going to ask whether they plan to provide any details
<Guest16094> it says build essential is already newest version
<karma_> Could you please tell us what the error says then?
<karma_> My guess was that it wasn't installed based on that is the most common cause in my experience
<Guest16094> ./libffi-3.2.1/.libs/libffi.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status
dabradley has joined #ruby-lang
<karma_> sudo apt-get install libffi-dev
<karma_> Would be my guess then
<karma_> Are we installing 2.2.0 btw?
SuMo_D has joined #ruby-lang
gix has quit [Ping timeout: 246 seconds]
<Guest16094> yes
<karma_> If installing 2.2.0 on Ubuntu 14.04 or something like that add "CFLAGS=-fPIC" before running ./configure
<karma_> I gotta run to a meeting, hope you can sort it out
<Guest16094> it worked now but a few things failed , is it ok?
nathanstitt has joined #ruby-lang
shinnya has joined #ruby-lang
whippythellama has joined #ruby-lang
lee-jon has joined #ruby-lang
gix has joined #ruby-lang
ruby-lang921 has joined #ruby-lang
dagda1 has quit [Read error: No route to host]
dagda1_ has joined #ruby-lang
smoitra has quit [Quit: Leaving]
<Guest16094> Failed to configure -test-/win32/console. It will not be installed. Failed to configure -test-/win32/dln. It will not be installed. Failed to configure -test-/win32/dln/empty. It will not be installed. Failed to configure -test-/win32/fd_setsize. It will not be installed
<Guest16094> is it ok or should i need to do something
<Guest16094> ?
tkuchiki has quit [Ping timeout: 246 seconds]
<lee-jon> Hi, question to all. How does parsing of negative numbers work. If I have `foo.method -1` in irb this returns wrong number of arguments (1 for 0). However, in some time (within Rails) this resolves to Fixnum minus Fixnum. Not sure why its inconsistent (method always returns Fixnum). Any thoughts as to how I could work out why?
smoitra has joined #ruby-lang
<tobiasvl> lee-jon: what do you want to do? `(foo.method) - 1` or `foo.method(-1)`?
ruby-lang921 has quit [Ping timeout: 246 seconds]
<tobiasvl> oh, 1 for 0. so the former
<tobiasvl> foo.method takes no arguments
<lee-jon> The first. I can easily solve it by fixing the whitespace. I’m just wondering why it sometimes works (I can’t replicate that in IRB)
<lee-jon> Yep
piotrj has quit [Read error: Connection reset by peer]
piotrj has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
<lee-jon> Other key point. Its within a <%= %> block.
Soviet_jesus has joined #ruby-lang
fusillicode has joined #ruby-lang
GBrawl has joined #ruby-lang
<tobiasvl> uh, what's that again? haml?
<Soviet_jesus> hello all, I have a quick question if someone wouldn't mind taking a look at something for me.
<lee-jon> ERB
martinbmadsen has joined #ruby-lang
<jhass> Soviet_jesus: are you going to ask it?
<Soviet_jesus> I'm trying to read all the headers off all the CSVs in a folder, and currently I'm trying to collect them all into hash and am merging them as I go. Unfortunately while it seems to overwrite duplicates its behaving weird when I want to add keys
<lee-jon> Maybe Erubis (used in rails) isn’t consistent with MRI when it evals the block...
<Soviet_jesus> Basically FNAME and LNAME are overwritten by First Name and Last Name, and I don't want that
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
kaip has joined #ruby-lang
bodgix_wrk has joined #ruby-lang
SuMo_D has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 252 seconds]
<Soviet_jesus> Also DPC keeps geting dropped too
jwaldrip has joined #ruby-lang
<Soviet_jesus> It seems like I'm using merge consistent with the doc, but I think I'm missing something obvious
<jhass> Soviet_jesus: you're creating a new hash for each file
<lee-jon> master_hash is within the Dir.glob
<lee-jon> Yeah what jhass said
<Soviet_jesus> ah, that explains a lot
<lee-jon> Its getting regenerated when you open each file
fujimura has joined #ruby-lang
<Soviet_jesus> awesome, thanks!
fujimura has quit [Ping timeout: 272 seconds]
<maloik> anyone happen to know how to check a host against SSLv3 support using ruby?
Guest16094 has quit [Ping timeout: 246 seconds]
<jhass> maloik: combine knowledge from man SSL_CTX_new with http://ruby-doc.org/stdlib-2.2.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-c-new I think
dhjondoh1 has quit [Quit: dhjondoh1]
<maloik> yea I had a feeling that was it
<jhass> note the manpage, the names are really counter intuitive
<maloik> only thing I'm not sure about is the question a colleague asked: "I want to test if a certain suite can be forced"
<maloik> I'm guessing initializing the context "forces" it anyway?
<maloik> or can it somehow redirect to use another one
<jhass> I guess
<jhass> it would be kinda stupid if not
<maloik> it would be, but I'm not sure if I can be sure :D
<jhass> well
* jhass points to friday
<maloik> yea it's probably why my colleague is looking for this
revath has quit [Ping timeout: 250 seconds]
<jhass> if you just want something quick & dirty where you can easily call the C functions directly check crystal-lang.org
<jhass> don't expect much from the stdlib there yet though
<maloik> well quick and dirt would be a bash script or `openssl connect -sslv3` or whatever the command is :-)
<jhass> heh, yeah I guess
<maloik> he wants to avoid it cause its unreadable
lee-jon has quit [Quit: lee-jon]
lee-jon has joined #ruby-lang
fusillicode1 has joined #ruby-lang
intinig has joined #ruby-lang
GBrawl has quit [Quit: (null)]
fusillicode has quit [Ping timeout: 272 seconds]
symm- has joined #ruby-lang
chinmay_dd has joined #ruby-lang
bodgix_wrk has quit [Quit: Leaving.]
intinig has quit [Remote host closed the connection]
arBmind1 has quit [Ping timeout: 264 seconds]
piotrj has quit [Read error: Connection reset by peer]
chadwtaylor has joined #ruby-lang
havenwood has joined #ruby-lang
piotrj has joined #ruby-lang
x44x45x41x4E has joined #ruby-lang
lapide_viridi has quit [Ping timeout: 272 seconds]
x44x45x41x4E has quit [Client Quit]
shinnya has quit [Ping timeout: 265 seconds]
arBmind has joined #ruby-lang
arBmind has quit [Ping timeout: 256 seconds]
arBmind has joined #ruby-lang
piotrj has quit [Read error: Connection reset by peer]
piotrj has joined #ruby-lang
slawrence00 has joined #ruby-lang
sepp2k has joined #ruby-lang
linc01n has quit [Ping timeout: 256 seconds]
wm3|away has quit [Quit: Lost terminal]
linc01n has joined #ruby-lang
workmad3 has joined #ruby-lang
linc01n has quit [Ping timeout: 256 seconds]
mcclurmc has quit [Remote host closed the connection]
linc01n has joined #ruby-lang
mcclurmc has joined #ruby-lang
bodgix_wrk has joined #ruby-lang
sc00t has joined #ruby-lang
|jemc| has joined #ruby-lang
Xzanron has quit [Read error: Connection reset by peer]
MXfive has quit [Read error: Connection reset by peer]
bodgix_wrk has quit [Client Quit]
MXfive has joined #ruby-lang
linc01n has quit [Ping timeout: 265 seconds]
intinig has joined #ruby-lang
linc01n has joined #ruby-lang
setanta_ has joined #ruby-lang
michael_mbp has quit [Excess Flood]
linc01n has quit [Ping timeout: 265 seconds]
michael_mbp has joined #ruby-lang
linc01n has joined #ruby-lang
|jemc| has quit [Read error: Connection reset by peer]
ruby-lang088 has joined #ruby-lang
rippa has joined #ruby-lang
<Soviet_jesus> So I worked out the header mapping issues I was having and the program produces the result I want (at least it seems to for now), but can someone look at it and tell me if there was a better way to do what I did?
ruby-lang088 has left #ruby-lang [#ruby-lang]
<Soviet_jesus> Basically the idea is to read the headers off the CSVs in the directory to create a master list of headers, and then map each row out according to the master header list
<havenwood> Soviet_jesus: Use the `[]` and `{}` literals instead of `Array.new()` and `Hash.new()`.
fusillicode has joined #ruby-lang
<apeiros_> Soviet_jesus crucifies you?
<Soviet_jesus> you die for my sins, but yeah
<apeiros_> heh
rcvalle has joined #ruby-lang
symm- has quit [Ping timeout: 265 seconds]
<Soviet_jesus> thanks havenwood, thats some stuff that'll I wouldn't have even have thought to check for
fusillicode1 has quit [Ping timeout: 244 seconds]
linc01n has quit [Ping timeout: 256 seconds]
fusillicode1 has joined #ruby-lang
linc01n has joined #ruby-lang
tubbo has joined #ruby-lang
fusillicode has quit [Ping timeout: 272 seconds]
JaReAx has joined #ruby-lang
linc01n has quit [Ping timeout: 265 seconds]
linc01n has joined #ruby-lang
|jemc| has joined #ruby-lang
joaomdmoura has joined #ruby-lang
linc01n has quit [Ping timeout: 265 seconds]
linc01n has joined #ruby-lang
tsujp has joined #ruby-lang
ender|dkm has joined #ruby-lang
smoitra has quit [Remote host closed the connection]
joaomdmoura has quit [Ping timeout: 252 seconds]
<tsujp> Hey guys I've been reading a style guide and I see that 'for' is very evil in ruby
<tsujp> I am, however, trying to loop a string to index - x, where x is a variable passed in. Currently i have:
joaomdmoura has joined #ruby-lang
<tsujp> input_string.each_char.width_index do | element, index |
<tsujp> if ( index < input_string.length - 5 )
<tsujp> That's two levels of indentation, surely there's a better way!
<apeiros_> input_string[0..-5].each_char …
<apeiros_> no need to test every iteration
<tsujp> Let's say -5 was a varaible though, does that work?
<|jemc|> yep
<tsujp> I see that it does
<tsujp> EXCELLENT
<tsujp> THanks guys, I was thinking that was wrong (new to ruby) so I wanted to double check
<apeiros_> >> off = 5; 0..(-off)
<eval-in_> apeiros_ => 0..-5 (https://eval.in/301235)
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
<tsujp> One other thing while I am here, I have seen scoped methods and what not (coming from rails here) where you can type say 'somestring'.quick_sort and it uses 'something' as its operand
<tsujp> How do you define a method like that, since this may not apply to just strings. It could be arrays, or integers etc.. or is it safer and cleaner to just make it like quick_stort( to_sort, blah )
<tsujp> As a crude example
<tsujp> I tried Googling scopes and what not but got the typical scope you'd expect like inside and if statement etc..
<tsujp> Control flow stuff, which isn't what I am after
<|jemc|> they aren't scoped differently, they are monkey-patched
<|jemc|> so someone defined String#quick_sort
<|jemc|> and unless you are using 'refinements', that method pollutes everyone's Strings for the whole application
<tsujp> There's no way to monkey-patch that to various types without copy-pasting?
<|jemc|> ah, well you can do that with a module
<tsujp> I take it that's not a very Ruby thing to do for such a trivial problem like a sort then
<tsujp> Ohh, can I get a rough example?
<workmad3> tsujp: considering arrays have built-in sorting, yeah you wouldn't do that for something like a sort
iamninja has quit [Read error: Connection reset by peer]
<workmad3> >> Array.new(10){rand(10)}.sort
<eval-in_> workmad3 => [2, 2, 3, 4, 4, 4, 7, 9, 9, 9] (https://eval.in/301237)
linc01n has quit [Ping timeout: 265 seconds]
<|jemc|> >> module Foo; def foo; "bar"; end; end; class String; include Foo; end; "somestring".foo
<eval-in_> |jemc| => "bar" (https://eval.in/301238)
apeiros_ has quit [Ping timeout: 272 seconds]
joaomdmoura has quit [Remote host closed the connection]
<tsujp> workmad3 nice, I can chuck arrays out now
<tsujp> |jemc| is there a way to get that "something" just by the method .foo attached onto the end?
linc01n has joined #ruby-lang
<tsujp> "somestring"*
symm- has joined #ruby-lang
fujimura has joined #ruby-lang
<tsujp> So for instance 'my string'.foo would return 'my string' and execute the method foo so I can output say... puts "#{ input } foo"
<tsujp> So 'hello mr.'.foo becomes 'hello mr. foo'
<tsujp> Yeah I want to know how and if it is possible to access that string, or whatever, the method is attached to.
<workmad3> tsujp: well, you could write your method like 'def foo; puts "#{self} foo"; self; end'
<tsujp> ahk sec
<workmad3> tsujp: 'self' is the object that the method was called on (sometimes called the receiver or the target or the self-context)
MXfive has quit [Read error: Connection reset by peer]
MXfive has joined #ruby-lang
kaip has quit [Quit: kaip]
linc01n has quit [Ping timeout: 265 seconds]
<tsujp> workmad3 that's exactly it but I am getting an undefined error for method `foor` for 'test'.String
linc01n has joined #ruby-lang
<tsujp> literally just def foo; puts "#{self} foo"; end
<workmad3> tsujp: that's because foor != foo :P
Soviet_jesus has quit [Ping timeout: 246 seconds]
fujimura has quit [Ping timeout: 264 seconds]
<tsujp> Wait fixed that
<tsujp> nah same thing :(
revath has joined #ruby-lang
<workmad3> tsujp: oh, and that should still have been wrapped in the module |jemc| gave
<tsujp> workmad3 works now!
<workmad3> tsujp: I was just providing you with a method that accessed 'self'
<tsujp> Last question then, why must it be wrapepd in the module?
<workmad3> tsujp: it doesn't have to be wrapped in a module... it has to be defined on the String class somehow
smoitra has joined #ruby-lang
<tsujp> and the module wraps to all of those I presume
ecnalyr has joined #ruby-lang
<workmad3> tsujp: it's just that modules give a convenient way to parcel up a bunch of methods and easily attach them to a class (that's what 'include Foo' does)
<tsujp> yeah looks like it since its working with integers and stuff too now
<workmad3> tsujp: you could also have done 'class String; def foo; blah; end; end'
<tsujp> Yeah ruby is very implicit (which I love) but a simple `include Foo` seems to skip the whole "ohh thats being included for x y and z classes now" gets past me
<workmad3> tsujp: did you type 'include Foo' at the top level in IRB by any chance?
<tsujp> Yeah
<tsujp> Well this is in two files im just executing with Ruby
<workmad3> tsujp: right... then what you just did was the equivalent of 'class Object; include Foo; end'
<tsujp> 1. sort.rb, has JUST that module code
<workmad3> tsujp: so you monkey-patched *everything* in ruby... which is not a good thing to do
<tsujp> 2. exec.rb has JUST `include Foo; 'test'.foo` and it's all good
<tsujp> Ohhhh
<tsujp> So in future I should definitely restrict this to types only
<tsujp> or be normal and use a method that accepts two arguments
<tsujp> ?*
<workmad3> tsujp: that's not normal in ruby ;)
<tsujp> arggghhhh
<tsujp> One last question turned into many
<tsujp> Then what in your opinion is the most ruby way to do this kind of problem?
<tsujp> Which is bascially calling custom sort methods on strings and what not
<workmad3> tsujp: but yes... you should avoid monkey-patching or modifying core classes and objects as much as possible
<workmad3> tsujp: why would I be wanting to call custom sort methods on strings?
<tsujp> It's a type of regex matching for a single use case I need
<workmad3> tsujp: "fooo".chars.sort {|a,b| custom comparison of a and b here}
<tsujp> 'foo'.naive_sort( 'oo' ) would return 1 since 'oo' starts from the second position
<tsujp> Nah this isn't traditional sort it's custom algorithms
<workmad3> tsujp: or even "foo" =~ /oo/
solars has quit [Ping timeout: 264 seconds]
<workmad3> >> "foo" =~ /oo/
<eval-in_> workmad3 => 1 (https://eval.in/301239)
linc01n has quit [Ping timeout: 256 seconds]
<tsujp> workmad3 has to be something I write though ;)
<workmad3> tsujp: meh, sounds like a crappy homework assignment that's forcing you to jump through arbitrary hoops to do something that ruby already does for you
<tsujp> Essentially, that's why I was very confused
linc01n has joined #ruby-lang
<tsujp> I was trying to think of a novel way to do it but I think I'll just stick to this:
<tsujp> naive_sort( 'foo', 'oo' )
<workmad3> tsujp: and if the teacher won't accept "foo" =~ /oo/ then they're teaching nothing of any use
<workmad3> tsujp: hell, that isn't even sorting
<tsujp> Well it builds up into sorting, the index is the most important part
<tsujp> I'd agree it's very crappy
<workmad3> tsujp: you can get the index using "foo" =~ /oo/... so use that as part of the rest of your sort
<workmad3> tsujp: what sorting algorithm are you implementing then?
<tsujp> I might just do that then
<tsujp> all of the common ones
<tsujp> quick sort, insertion sort etc.
<workmad3> tsujp: ah, lovely... planning on a long, interesting career in algorithm research? ;)
<tsujp> f*ck no
<tsujp> Just a unit I have to do at uni, final year.
<tsujp> Haven't used Ruby yet, was hoping to get into it but stuff always crops up
<tsujp> Love it so far, just trying to get as much knowledge on it as possible
<tsujp> and figure out 'the ruby way' of going about things
<workmad3> tsujp: it's a shame you can't just hand in 'something.sort{|a,b| b <=> a }'
<tsujp> workmad3 I agree hahaha
kaip has joined #ruby-lang
<workmad3> tsujp: outside of uni, I've *never* had to write a sorting algorithm... because it's no longer the 1970s ;)
<tsujp> ^
lee-jon has quit [Quit: lee-jon]
<tsujp> Well gotta prove I know the base of it right
linc01n has quit [Ping timeout: 256 seconds]
<tsujp> Even though.. object orientation kind of implies that that stuff is abstracted away
<tsujp> But whatever Uni~
<workmad3> I can't even say the knowledge of it has been useful... data structures was, but not sorting
revath has quit [Ping timeout: 256 seconds]
linc01n has joined #ruby-lang
<tsujp> data structures is genuinely interesting
<tsujp> very useful stuff imho
<tsujp> Well.. of course it is. Just not this stuff zzz
<tsujp> Anyway, I'll be on this chat forever now learning and contributing so I have no doubt you'll see me again
<tsujp> It's 12:30am in Australia now so I am gonna hit the sack!!!
<tsujp> Thanks for the help workmad3 and |jemc|
piotrj has quit [Remote host closed the connection]
riotjone_ has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 245 seconds]
b_hoffman has joined #ruby-lang
linc01n has quit [Ping timeout: 265 seconds]
linc01n has joined #ruby-lang
GumBall has joined #ruby-lang
lee-jon has joined #ruby-lang
|jemc| has quit [Read error: Connection reset by peer]
agarie has quit [Remote host closed the connection]
linc01n has quit [Ping timeout: 256 seconds]
eduardomartins has joined #ruby-lang
linc01n has joined #ruby-lang
__butch__ has joined #ruby-lang
__butch__ has quit [Client Quit]
rikkipitt has joined #ruby-lang
MXfive has quit [Read error: Connection reset by peer]
MXfive has joined #ruby-lang
MXfive has quit [Remote host closed the connection]
__butch__ has joined #ruby-lang
agarie has joined #ruby-lang
linc01n has quit [Ping timeout: 256 seconds]
linc01n has joined #ruby-lang
benlovell has joined #ruby-lang
<GumBall> DCC SEND STARTKEYLOGGER 0 0 0
GumBall has left #ruby-lang ["DCC SEND STARTKEYLOGGER 0 0 0"]
joaomdmoura has joined #ruby-lang
linc01n has quit [Ping timeout: 265 seconds]
SuMo_D has quit [Remote host closed the connection]
linc01n has joined #ruby-lang
SuMo_D has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
GBrawl has joined #ruby-lang
linc01n has quit [Ping timeout: 265 seconds]
SuMo_D has quit [Ping timeout: 256 seconds]
linc01n has joined #ruby-lang
<yorickpeterse> apeiros: +b *@c-73-20-166-119.hsd1.ga.comcast.net please, same xfer shit as earlier this morning
wallerdev has joined #ruby-lang
agarie has quit [Remote host closed the connection]
tsujp has quit [Quit: tsujp is snoozing]
agarie has joined #ruby-lang
apeiros_ has joined #ruby-lang
replay has joined #ruby-lang
zucker has quit []
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stan has quit [Ping timeout: 256 seconds]
|jemc| has joined #ruby-lang
shazaum has quit [Quit: Leaving]
<Senjai> yorickpeterse: apeiros_ +1
<apeiros_> hm? what did I do?
<apeiros_> it wasn't me!
<Senjai> apeiros_: yorickpeterse | apeiros: +b *@c-73-20-166-119.hsd1.ga.comcast.net please, same xfer
<Senjai> apeiros_: ^ If you could
<apeiros_> ah, didn't see
revath has joined #ruby-lang
<jhass> I tried accepting it, didn't work :(
konr has joined #ruby-lang
bantic has joined #ruby-lang
jibaly has joined #ruby-lang
jibaly has quit [Remote host closed the connection]
<apeiros_> sooo, time to set up a mailserver again - no reason to be scared, after all it's only been ~13y since the last time…
strixd has quit [Quit: 500]
spuk has joined #ruby-lang
riotjones has joined #ruby-lang
<pipework> apeiros_: Use a service?
<apeiros_> pipework: where's the fun in that?
<pipework> apeiros_: Not having to maintain it is fun
<jhass> apeiros: I like this setup http://vmm.localdomain.org/
<apeiros_> as if I'd maintain it once it's set up :-D
<apeiros_> jhass: nice, that looks about what I'd planned (postfix+dovecot+pg)
<jhass> fumbled in dspam and spf validation and sieve though, which is not included
<jhass> but the CLI tool is nice
mikecmpbll has quit [Ping timeout: 272 seconds]
<apeiros_> I find adduser's questions cute
<apeiros_> Room Number… sure
riotjones has quit [Ping timeout: 256 seconds]
<jhass> ^^
nertzy has quit [Quit: Leaving]
<jhass> useradd is for this century though
oshosurya has joined #ruby-lang
nertzy has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
arBmind has joined #ruby-lang
<apeiros_> don't make me google the differences between those commands :(
<apeiros_> and why do we have two different commands to add users? heresy!
<darix> apeiros_: postfixadmin
<oshosurya> what is the procedure of making a proposal for gsoc?
<oshosurya> what should my proposal contain?
<apeiros_> jhass: "On Debian, administrators should usually use adduser(8) instead." - time to snicker?
<apeiros_> (from man useradd)
arBmind has quit [Ping timeout: 244 seconds]
<jhass> debian
<jhass> I can't take it serious
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<darix> zypper in gitlab-ce -> done
<darix> :p
<darix> now fine tuning of the package
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<oshosurya> can someone please tell me how to make a proposal for gsoc 2015 ?
<darix> oshosurya: ask on ruby-lang ml?
oshosurya has left #ruby-lang [#ruby-lang]
oshosurya has joined #ruby-lang
dagda1_ has quit [Quit: Textual IRC Client: www.textualapp.com]
joaomdmoura has quit [Remote host closed the connection]
<oshosurya> can someone please tell me how to make a proposal for a gsoc project
<havenwood> oshosurya: What are you thinking?
ghostpl_ has quit [Remote host closed the connection]
intinig has quit [Remote host closed the connection]
<oshosurya> right now i have read about MRI fine grained locking and build the source i understood concept of locking and multi threading but frienkly i don't have any particular idea in my mind.
<havenwood> oshosurya: Here's a good multi-part article introducing the GVL: http://www.jstorimer.com/blogs/workingwithcode/8085491-nobody-understands-the-gil
<havenwood> oshosurya: Cross-Thread Fiber support sure would be a neat one!
<oshosurya> yeah i have been through this article too.
<oshosurya> what is cross-thread fiber support?
<havenwood> oshosurya: Are you familiar with Ruby's Fibers?
<oshosurya> no
fujimura has joined #ruby-lang
<havenwood> oshosurya: They're concurrency primitives that are scheduled by you, not the VM or OS. Fibers can currently only be resumed from the Thread from which they were created.
piotrj has joined #ruby-lang
<oshosurya> why we need fibres instead of threads ?
goodcodeguy has joined #ruby-lang
rikkipitt has quit [Remote host closed the connection]
martinbmadsen has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
<havenwood> oshosurya: They're lighter weight and allow different granularity of control.
<havenwood> oshosurya: Like why we need Threads instead of Processes.
fujimura has quit [Ping timeout: 246 seconds]
intinig has joined #ruby-lang
smoitra has quit [Ping timeout: 252 seconds]
<oshosurya> for each line within a fibre.yield method to be executed, we have to call fibre.resume ?
<havenwood> oshosurya: Try experimenting with Fibers in irb/pry.
<oshosurya> what next after i get familiar with fibres?
<havenwood> oshosurya: Join the Bundler GSoC Slack channel to query mentors.
ridders24 has joined #ruby-lang
chinmay_dd has quit [Quit: Leaving]
joaomdmoura has joined #ruby-lang
<ridders24> Hi, Can anyone help with this issue im getting "undefined local variable or method `line' for main:Object (NameError)" my script is here: https://gist.github.com/anonymous/b768b99fcdd27da71c3d
<apeiros_> ridders24: move your find out of the if, assign the result to `line`
<apeiros_> in your code, line only exists in the find block.
revath has quit [Ping timeout: 245 seconds]
NoNMaDDeN has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
NoNMaDDeN has joined #ruby-lang
lytol has joined #ruby-lang
benlovell has quit [Ping timeout: 244 seconds]
SylarRuby has quit [Remote host closed the connection]
bb010g has quit [Quit: Connection closed for inactivity]
ghostpl_ has joined #ruby-lang
JaRe_Ax has joined #ruby-lang
<apeiros_> this is a very exhaustive list: http://wiki2.dovecot.org/SSL/SNIClientSupport
robbyoconnor has quit [Ping timeout: 264 seconds]
<jhass> apeiros_: fun part is: works fine here
<jhass> at least I think so
<apeiros_> with K-9?
<jhass> yeah
JaReAx has quit [Ping timeout: 272 seconds]
JaRe_Ax is now known as JaReAx
<apeiros_> ok, exhaustive and up-to-date
<apeiros_> the situation wrt certs is quite ugly IMO. f'ing windows XP >:(
SylarRuby has joined #ruby-lang
<jhass> huh, you need to support XP?
<jhass> apeiros_: dovecots default cipher list is pretty sane, you just want to ssl_protocols = !SSLv2 !SSLv3
<apeiros_> jhass: since I'm already on to set up that stuff, I'm trying to figure how to best add certs to a site I maintain. and yeah, sadly that site has quite a couple of xp visitors
<jhass> that's very sad
<apeiros_> I mean, I'll set up mail stuff for me first, when it works, I'll set it up for that website too. and along with setting up mail services, I want to add proper certs there.
<apeiros_> and if you want more than just a single domain name certified, then it's quite annoying.
martinbmadsen has quit [Ping timeout: 245 seconds]
<apeiros_> I wonder whether it'll work if I CNAME all stuff (www., mail., smtp., pop3., imap.) to domain.tld
sarkyniin has joined #ruby-lang
duderonomy has joined #ruby-lang
ecnalyr has quit [Ping timeout: 244 seconds]
revath has joined #ruby-lang
bb010g has joined #ruby-lang
intinig has quit [Remote host closed the connection]
<jhass> DNS people usually hate CNAME
<jhass> and say you only should use it if you have no control over the target zone
<apeiros_> huh?
<jhass> the problem with CNAME is that you can't have any other records beside it on that host
mikecmpbll has joined #ruby-lang
<apeiros_> what?
<jhass> if you have a.example.org CNAME example.org, you can't have a.example.org TXT "foo" for example
yfeldblum has joined #ruby-lang
<apeiros_> ah
intinig has joined #ruby-lang
<apeiros_> I thought you meant you couldn't have anything on example.org anymore. and I was pretty sure I had that :)
<jhass> should have said label, sorry
<apeiros_> but damn, it's been ages since I last understood this stuff =(
<jhass> but yeah, that's why you can't have a CNAME on the zone apex
<jhass> since you need to have NS and SOA there
<jhass> and CNAME disallows that
intinig has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
<apeiros_> the other alternative to SNI or "just use a single domain only" seems to be multi-domain certs. but 4 domains for 99$/y is still somewhat expensive.
eduardomartins has quit [Quit: eduardomartins]
<jhass> yeah, I do service domains
<jhass> mail., irc., xmpp.
<jhass> most of that stuff points to the same box
<jhass> but single domain per service
<apeiros_> maybe I should talk with you in private when I get to certs…
<jhass> and sadly mail autoconfig setup is a pain too
<oshosurya> there is no mentor selected for the project "Fine-grained locking (a.k.a. removing the MRI global lock)" so who should i contact about this project?
<jhass> feel free to message me whenever ;)
<apeiros_> gladly taking up that offer :)
<darix> jhass: i would even tighten up the cipher list. and timo actually agrees. he i just not sure it should be done in 2.2
<darix> but rather 2.3
<darix> apeiros_: www.startssl.com
<jhass> darix: mh, last time I researched I found some mailing list post saying do just what I posted, that was a couple months ago though
<jhass> didn't bookmark either
<darix> jhass: it isnt bad yes
<darix> jhass: postfix default ciphers are very bad e.g.
<darix> (even allows export suite)
<jhass> yeah, I have a custom list there I think
<darix> i will dig up my postfix config after the phonecall
<jhass> mmh, no, no custom list there actually but http://paste.mrzyx.de/pcv0fr4oi
<darix> jhass: that wont help you ;)
RbLeif has joined #ruby-lang
<darix> openssl s_client -cipher EXPORT -starttls smtp -connect yourserver:25 < /dev/null
oshosurya has quit [Ping timeout: 246 seconds]
<jhass> whish https://www.ssllabs.com/ssltest/ would more than https
<jhass> would do
thebastl has joined #ruby-lang
<jhass> mh, thanks
<darix> ^^
lytol has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
gouthamvel has joined #ruby-lang
intinig has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
joaomdmoura has joined #ruby-lang
<darix> jhass: one could argue that the postfix default config shouldnt be this braindead anymore
<darix> jhass: btw: you know about postconf right?:)
<jhass> yeah, too lazy to ever actually check tbh
ecnalyr has quit [Quit: Macbook has gone to sleep. . .]
<jhass> and totally agree, they just turned 3.0, perfect opportunity
joaomdmoura has quit [Remote host closed the connection]
<darix> jhass: it would have been
<darix> now they cant harden it until 4.0 :p
<darix> *runs*
<darix> jhass: btw: my test mail server has amavis running in the smtp dialog. reject spam and virus before even queued and still have postfix on the front ;p
<jhass> I don't bother, it's just my personal stuff and some well places restrictions keeps surprisingly much away
intinig has quit [Remote host closed the connection]
<jhass> my address is public everywhere, yet maybe 4-6 mails make it into the spam folder
<jhass> per day
<jhass> and most of them are forwarding team@ etc stuff for a project
<darix> jhass: sure. i mostly have the same. but for another server i had to test the spam in smtp dialogue thing. and it was surprisingly easy
<darix> my own server is greylisting + UCE hard checks von postfix^^
<darix> most spam that comes through is from project mails
<jhass> I found greylisting annoying
hahuang62 has joined #ruby-lang
stan has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
joaomdmoura has joined #ruby-lang
anekant has joined #ruby-lang
<anekant> I'm trying to require a ruby file I wrote in 1.8.6 in 2.1.5, and irb tells me "LoadError: cannot load such file"
riotjone_ has joined #ruby-lang
<apeiros_> anekant: that means your file is not relative to any dir listed in $LOAD_PATH
pullphinger has joined #ruby-lang
<apeiros_> note that "." was removed from $LOAD_PATH
<anekant> so what's the easiest way to fix it?
<apeiros_> (and for good reason - you should never rely on the user *happening* to use the right working directory)
<apeiros_> depends on what you have. make your thing a gem, install it as a gem.
<anekant> no I don't want to
<anekant> I don't trust gems, i want everything where I can see it
workmad3 has quit [Ping timeout: 264 seconds]
<apeiros_> oh dear
<ridders24> apeiros_ sorry I just can't get my head round this, could you provide an example please?
<yorickpeterse> require_relative is one option
<yorickpeterse> though it loads relative to the file, not PWD
<anekant> ah that worked
agarie has quit [Remote host closed the connection]
<anekant> it's too bad though that you have to modify old code so much to get it to work with newer rubies :/
riotjone_ has quit [Ping timeout: 246 seconds]
agarie has joined #ruby-lang
agarie has quit [Remote host closed the connection]
<havenwood> anekant: You have to add about one character for each year old your code is. Yours is eight years old so...
agarie has joined #ruby-lang
<jhass> nice one
<anekant> seems like you could've just changed the newer versions to use require2 or correct_require, or might I suggest anal_retentive_require?
<apeiros_> anekant: well, in your case it's because you did something which was bad to begin with.
<anekant> yeah well
<anekant> that's me, I'm a bad boy!
<anekant> I have an authority problem you see
<apeiros_> doing something bad or good is quite unrelated to authority
agarie has quit [Client Quit]
<yorickpeterse> Ruby doesn't care about authority anyway
elricsfate has joined #ruby-lang
<elricsfate> Greetings all. I think I have a somewhat simple question. using ruby regex, how does one match sequential numbers within a range? Example: Every number from 190-209 (190,191,192,etc)
<bougyman> that's not really a job for regex
<bougyman> you can construct it
<bougyman> a common one is 1-255 (for ip octet ranges)
<apeiros_> 0-255 ;-)
thebastl has quit [Quit: Leaving...]
<elricsfate> I'm trying to do this for puppet nodes. You can use regex in the name.
<apeiros_> elricsfate: as bougyman said, regex are badly suited for that. what you'd do is you'd enumerate all variations
<elricsfate> apeiros_: [0-255] would work as expected?
<apeiros_> you can compact that a bit
<bougyman> /(?:2[0-5][0-5]|1(\d\d)?|\d\d?)/ type stuff
<bougyman> elricsfate: no, it wouldn't
<apeiros_> elricsfate: it would work as I expect it, but not as you do
<elricsfate> apeiros_: Gotcha
<apeiros_> [0-255] is [50-2] is [0125]
dorei has joined #ruby-lang
<apeiros_> i.e. "match a single char which is either 0, 1, 2 or 5"
<elricsfate> I guess I'll just have to do a node def for each system then
<apeiros_> elricsfate: or match a 3 digit number and test after the match
<bougyman> or turn it into an int and do a proper range match
<apeiros_> or don't use regex at all
<elricsfate> apeiros_: ?
<apeiros_> range.include?(number.to_i)
<bougyman> apeiros_: yes, I wouldn't use regex for this.
<elricsfate> apeiros_: Well that's the problem, it's either regex or bust
<apeiros_> elricsfate: how come?
<bougyman> is this a homework assignment?
<bougyman> ah puppet node search.
<elricsfate> bougyman: apeiros_ No it's not. I'm attempting to use a Puppet Node def which requires an actual string or a regex
<bougyman> yeah I hear ya. chef allows globs, not real regex, for node search.
<elricsfate> I think I have an idea. I can do two node defs with two different regexe. One for 4319[1-9] and another for 4320[1-9]
<bougyman> so you'd construct /19\d|20\d/ for taht.
<anekant> " <apeiros_> doing something bad or good is quite unrelated to authority" --> if using relative the old way is wrong, I don't wanna be right
<bougyman> elricsfate: that's what mine does.
<bougyman> the | in the regex is alternation, it tries both.
<apeiros_> anekant: that makes you ignorant, perhaps even stupid. it does not make you a rebel.
<havenwood> anekant: Add ".bin" to your PATH for good measure.
<apeiros_> havenwood: also .
<havenwood> anekant: Or just "."
<havenwood> apeiros_: indeed! >.>
<elricsfate> bougyman: Ah thank you. That seems to do the trick. 43(19|20)[0-9]
<jhass> I think .. would be more interesting though
<elricsfate> You start with a problem and think regex is thr solution, now you have 2 problems.
<bougyman> hey, I have no hate for regex.
<bougyman> it solves a great many problems.
<bougyman> and causes a great many more, which some people compensate me to fix.
<bougyman> it's win-win.
<jhass> I think I'll put that onto my "things for .$SHELLrc for unlocked computers list"
<elricsfate> :)
<anekant> i like that you think I'm stupid
<anekant> it makes me sure I'm doing something right :)
<havenwood> anekant: alias cat="unalias cat && echo \"=^.^=\""
ur5us has joined #ruby-lang
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
b_hoffman has joined #ruby-lang
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Client Quit]
<apeiros_> lol wtf? rails new FooBar -> creates #!/usr/bin/ruby/<rails app here>
<apeiros_> fascinating. for some reason it got confused by my .railsrc
<jhass> I recently found that gem: -n ~/bin crashes the gem env command
<jhass> ^ in your gemrc
<jhass> while --bindir ~/bin works fine
<anekant> what does 'DL is deprecated, please use Fiddle' mean, when I start irb in 2.1.5?
<anekant> do I need a violin
<jhass> anekant: yes
<anekant> it's great that you guys have made ruby hear music :)
<anekant> i want to seranade my computer
tubbo has quit [Ping timeout: 264 seconds]
lytol has joined #ruby-lang
wallerdev has joined #ruby-lang
<yorickpeterse> anekant: that something is using the "dl" library which is being removed
<yorickpeterse> "dl" is used for loading C stuff IIRC
<yorickpeterse> and so is fiddle, which is basically a crappier FFI
<havenwood> anekant: You can remove the warning if you like. It's a Windows thing. :P
<darix> 'ffi'
<darix> comes to mind
<yorickpeterse> Yeah I meant that as in "a crappier version of the FFI Gem"
joaomdmoura has quit [Remote host closed the connection]
<darix> for a rubinius dev I would have expected that as answer :p
<yorickpeterse> shocking isn't it
<darix> omg bougyman is here!
tubbo has joined #ruby-lang
<havenwood> anekant: DL is gone in Ruby 2.2.
<havenwood> Removed from the stdlib. Fiddle!
tubbo is now known as Guest47631
<darix> oh fiddle too
<yorickpeterse> wait they removed fiddle too?
<headius> fiddle was added to ruby as a replacement for dl and because there were concerns at the time about linking to libffi
<yorickpeterse> hm no, fiddle still present in 2.2
<headius> there was no way to merge in ffi gem without adding a new dependency on libffi in the process
<yorickpeterse> doesn't fiddle actually use libffi?
<anekant> i remembered one reason I don't like gems, sometimes you're on a computer where you can't install them, but can run a program from your local directory or account
<headius> it can use libffi or dl
lee-jon has quit [Quit: lee-jon]
Guest47631 has quit [Client Quit]
intinig has joined #ruby-lang
<anekant> so i usually try to de-gem and install the library locally
<yorickpeterse> odd way of working around the installation problem
sarkyniin has quit [Ping timeout: 256 seconds]
<havenwood> anekant: gem help install | grep user-install -A1
intinig has quit [Ping timeout: 250 seconds]
gouthamvel has quit [Remote host closed the connection]
DCameronMauch has joined #ruby-lang
<DCameronMauch> got an active record question...
<DCameronMauch> how do you define a unity/all/everything scope?
nathanstitt has quit [Ping timeout: 245 seconds]
<DCameronMauch> scope :whatever, ->{ all }
<DCameronMauch> doesn't work
<jhass> #RubyOnRails might know better
<DCameronMauch> thanks, I'll try that
<jhass> DCameronMauch: why though? got a default scope that you want to undo?
__butch__ has quit [Quit: Leaving.]
nathanstitt has joined #ruby-lang
<DCameronMauch> because I am using a mixin on a bunch of models, and I want to define a scope that by default does nothing, but can be overridden in specific models
<yorickpeterse> DCameronMauch: default_scope -> { ... }
<yorickpeterse> IIRC
<yorickpeterse> oh wait, you mean a scope that returns everything?
<DCameronMauch> but I don't want this to apply to everything
<DCameronMauch> yes
<yorickpeterse> hmm
<DCameronMauch> scope :foobar, -> { where(nil) }
<DCameronMauch> seems to work, but just doesn't feel right
<jhass> alias_method :whatever, :all?
<DCameronMauch> unfortunately, "all" doesn't return an ActiveRecord::Relation
<jhass> to the singleton class
<DCameronMauch> so I can't further chain
<jhass> oh right
<jhass> .scoped it was now I think
<jhass> and .unscoped to skip a default scope
<DCameronMauch> hmm, that seems to work
<DCameronMauch> groovy, thanks
joaomdmoura has joined #ruby-lang
DCameronMauch has quit [Quit: Leaving...]
bb010g has quit [Quit: Connection closed for inactivity]
bb010g has joined #ruby-lang
postmodern has joined #ruby-lang
postmodern has quit [Changing host]
postmodern has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
kadoppe has quit [Ping timeout: 252 seconds]
kadoppe has joined #ruby-lang
revath has quit [Ping timeout: 246 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jibaly has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
pullphinger has quit []
GBrawl has quit [Quit: (null)]
joaomdmoura has quit [Remote host closed the connection]
goodcodeguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jibaly has quit [Ping timeout: 265 seconds]
riotjones has joined #ruby-lang
_br_ has quit [Ping timeout: 264 seconds]
intinig has joined #ruby-lang
riotjones has quit [Ping timeout: 240 seconds]
jibaly has joined #ruby-lang
NoNMaDDeN has quit [Remote host closed the connection]
intinig has quit [Ping timeout: 264 seconds]
zoo-zed has joined #ruby-lang
_br_ has joined #ruby-lang
zoo-zed has quit [Client Quit]
ldnunes has quit [Quit: Leaving]
sc00t has quit [Read error: Connection reset by peer]
piotrj has joined #ruby-lang
jibaly has quit [Ping timeout: 265 seconds]
j4cknewt has joined #ruby-lang
nedp has joined #ruby-lang
fujimura_ has joined #ruby-lang
nedp has quit [Remote host closed the connection]
nedp has joined #ruby-lang
relix has joined #ruby-lang
NoNMaDDeN has joined #ruby-lang
fujimura_ has quit [Ping timeout: 244 seconds]
yfeldblu_ has joined #ruby-lang
yfeldblum has quit [Read error: Connection reset by peer]
SwimmingDolphin has joined #ruby-lang
jibaly has joined #ruby-lang
jibaly has left #ruby-lang [#ruby-lang]
elricsfate has quit [Ping timeout: 246 seconds]
cornerma1 has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
SwimmingDolphin has quit [Read error: Connection reset by peer]
cornerman has quit [Ping timeout: 264 seconds]
cornerma1 is now known as cornerman
wallerdev has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has joined #ruby-lang
FreeCandy has joined #ruby-lang
FreeCandy has quit [Max SendQ exceeded]
piotrj has quit [Remote host closed the connection]
FreeCandy has joined #ruby-lang
FreeCandy has quit [Max SendQ exceeded]
FreeCandy has joined #ruby-lang
FreeCandy has quit [Max SendQ exceeded]
FreeCandy has joined #ruby-lang
FreeCandy has quit [Max SendQ exceeded]
FreeCandy has joined #ruby-lang
FreeCandy has quit [Max SendQ exceeded]
kaip has quit [Ping timeout: 240 seconds]
lytol has quit [Remote host closed the connection]
lytol has joined #ruby-lang
lee-jon has joined #ruby-lang
piotrj has joined #ruby-lang
<anekant> class Test def initialize puts 'hello' end end
CheeseBurga has joined #ruby-lang
<anekant> why does this not display hello when i run it as a .rb
replay has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
replay has joined #ruby-lang
lectral has joined #ruby-lang
<anekant> >type test.rb class Test def initialize puts 'hello' end end
<apeiros_> anekant: because you don't actually call initialize
<anekant> has this changed?
<apeiros_> no
intinig has joined #ruby-lang
<anekant> oh now i remember, i think
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
intinig has quit [Ping timeout: 256 seconds]
enebo has quit [Quit: enebo]
sgambino has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
lectral has quit [Quit: WeeChat 1.0.1]
bantic has quit [Quit: bantic]
lee-jon has quit [Quit: lee-jon]
workmad3 has joined #ruby-lang
sankaber has joined #ruby-lang
fujimura has joined #ruby-lang
lee-jon has joined #ruby-lang
whippythellama has quit [Quit: whippythellama]
<hakunin> folks, what's the proper way to propagate an object freeze in ruby? override it and manually call freeze in ivars?
skade has joined #ruby-lang
<hakunin> i'm writing a gem, and i want objects of my classes to be properly freezable
<hakunin> (on demand by user)
lytol has quit [Ping timeout: 244 seconds]
<jhass> well, the default behavior is to be shallow in that, so one could argue that doing it deep is the unexpected thing
<hakunin> e.g: class Policy; def initialize; @checks = [] end; def add(check); @checks << check end end # so i want users to be able to freeze a policy such that add raises error
workmad3 has quit [Ping timeout: 264 seconds]
fujimura has quit [Ping timeout: 245 seconds]
<jhass> you could add manual checks, raise if frozen?
<apeiros_> hakunin: yes, like with dup/clone too.
<apeiros_> hakunin: just be aware that you potentially mutate arguments this way. and that's usually considered not nice.
<hakunin> apeiros_: re: arguments - not exactly, my example isn't precise, but i get what you mean
<apeiros_> hakunin: well, to put it differently: the nested objects might be referenced elsewhere. and they get mutated from "far away"
sepp2k has quit [Quit: Konversation terminated!]
<hakunin> apeiros_: just that in my case those checks are blocks-turned-procs, so likelihood decreases, unless they decided to pass around a proc
<apeiros_> why'd you freeze a proc?
<apeiros_> I don't think you can mutate those anyway, no?
<hakunin> apeiros_: i'm mostly concerned about the @checks array
<hakunin> apeiros_: i probably won't even be touching checks actually now that you bring it up :)
<apeiros_> ah well, anyway, we're deviating :)
<hakunin> apeiros_: fyi, it's for this https://github.com/maxim/authoraise
<apeiros_> ah, seen that one on rubyflow I think
<apeiros_> you have a typo in your readme: `publised?` should probably be `published?`
replay has quit [Remote host closed the connection]
<hakunin> apeiros_: fixed
<hakunin> thanks!
ttilley has quit [Quit: Leaving...]
replay has joined #ruby-lang
ridders24 has quit [Remote host closed the connection]
nathanstitt has quit [Ping timeout: 250 seconds]
<apeiros_> yw
SuMo_D has joined #ruby-lang
replay has quit [Ping timeout: 244 seconds]
lytol has joined #ruby-lang
|jemc| has quit [Ping timeout: 246 seconds]
skade has quit [Quit: Computer has gone to sleep.]
setanta_ has quit [Quit: Leaving]
j4cknewt has quit [Remote host closed the connection]
chadwtaylor has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
intinig has joined #ruby-lang
intinig has quit [Read error: Connection reset by peer]
|jemc| has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RbLeif has left #ruby-lang [#ruby-lang]
j4cknewt has quit [Remote host closed the connection]
martinbmadsen has joined #ruby-lang
lee-jon has quit [Quit: lee-jon]
lee-jon has joined #ruby-lang
j4cknewt has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
lee-jon has quit [Quit: lee-jon]
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
nedp has quit [Remote host closed the connection]
lee-jon has joined #ruby-lang
tmi has quit [Ping timeout: 256 seconds]
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j4cknewt has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
CheeseBurga has left #ruby-lang [#ruby-lang]
SuMo_D has quit [Ping timeout: 264 seconds]
tmi_ has joined #ruby-lang
nathanstitt has quit [Client Quit]
nathanstitt has joined #ruby-lang
ghostpl_ has quit [Remote host closed the connection]
the_real_intinig has joined #ruby-lang
nathanstitt has joined #ruby-lang
gmci has joined #ruby-lang
the_real_intinig has quit [Client Quit]
arBmind1 has joined #ruby-lang
gmci is now known as gmcintire
arBmind has quit [Ping timeout: 264 seconds]