apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
InfraRuby has left #ruby [#ruby]
Pumukel has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
discr33t___ has joined #ruby
almostwhitehat has joined #ruby
lidaaa has quit [Ping timeout: 255 seconds]
<discr33t___> is it possible to specify a rang of ip addresses? i want to pull the ip address of all my servers and if the ip falls in a certain range declare the appropriate security zone
end_guy has quit [Remote host closed the connection]
peret has joined #ruby
parzo has quit [Ping timeout: 260 seconds]
jamesfordummies has joined #ruby
bmurt has joined #ruby
klaut_ has quit [Remote host closed the connection]
<waxjar> discr33t__: ruby has an IPAddr class that can be used in ranges i think
<almostwhitehat> Having a little trouble with method_missing - cant find the answer via google, maybe I’m doing it wrong. If I define method_missing on Foo, and call Foo.waffles then I get a :waffles symbol - this works fine. But if I call Foo.waffles.syrup then I still only get a :waffles symbol.
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<waxjar> syrup will be called on whatever #waffles (i.e. Foo#method_missing) returns
end_guy has joined #ruby
<almostwhitehat> Oh man, I cant believe that wasnt obvious, thanks waxjar!
pietr0 has quit [Quit: pietr0]
jmbrown412 has quit [Remote host closed the connection]
jmbrown412 has joined #ruby
xcv has quit [Remote host closed the connection]
chichou has quit [Remote host closed the connection]
axsuul has joined #ruby
chipotle has joined #ruby
babykosh has quit [Quit: babykosh]
mike32 has joined #ruby
SilkFox_ has joined #ruby
nateberkopec has joined #ruby
<mike32> hi, how i can encode string to windows-1251?
<mike32> i trie search but couldnot find solution
chipotle has quit [Read error: Connection reset by peer]
Sid05 has quit [Quit: Sid05]
Mozee has joined #ruby
discr33t___ has quit [Quit: Page closed]
<jhass> mike32: "foo".encode("windows-1251")
toastynerd has quit [Remote host closed the connection]
chipotle has joined #ruby
jmbrown412 has quit [Ping timeout: 272 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
benlieb has quit [Quit: benlieb]
mary5030 has joined #ruby
PeterBoy has quit [Quit: Bye Bye]
toastynerd has joined #ruby
zoo-zed has quit [Quit: Textual IRC Client: www.textualapp.com]
<benzrf> windows!
<benzrf> gross!
<jhass> indeed
<jhass> mike32: why don't use UTF-8
<CoffeeDrivenC0de> ^ ++
djbkd has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
<mike32> i got such value \xD8\xE0\xF5\xE5\xF0
<mike32> but need %d8%e0%f5%e5%f0%e5
SilkFox_ has quit [Ping timeout: 245 seconds]
<mike32> it is for url encode
ddv has quit [Ping timeout: 260 seconds]
<waxjar> use the URI class from he stdlib
<jhass> or CGI.escape
ddv has joined #ruby
sevvie has quit [Quit: leaving]
oso96_2000 is now known as oso|away
<mike32> URI::encode(username) ?
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> ew, don't call methods with ::
<mike32> and how add encoding here?
<jhass> what do you mean?
jdj_dk has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
tvw has quit []
djbkd has joined #ruby
babykosh has joined #ruby
mlr has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
ascarter has joined #ruby
SchweetPapa has quit [Ping timeout: 246 seconds]
jonahR has quit [Quit: ¡Adios amigos, me fui para el carajo!]
<mike32> jhass, encode username with CGI.escape
<mike32> i dont know how to write code
icarus has quit [Remote host closed the connection]
theharshest is now known as hj2007
<jhass> CGI.escape username
<jhass> done
ascarter has quit [Client Quit]
toastynerd has quit [Remote host closed the connection]
<mike32> jhass CGI.escape "foo".encode("windows-1251") ?
springheeledjak has joined #ruby
<jhass> no, why would you do that
bbloom has quit [Ping timeout: 255 seconds]
<gr33n7007h> >> require cgi; CGI.escape("\xD8\xE0\xF5\xE5\xF0")
<eval-in> gr33n7007h => undefined local variable or method `cgi' for main:Object (NameError) ... (https://eval.in/177131)
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<gr33n7007h> >> require 'cgi'; CGI.escape("\xD8\xE0\xF5\xE5\xF0")
<eval-in> gr33n7007h => "%D8%E0%F5%E5%F0" (https://eval.in/177132)
mlr has quit [Quit: Lost terminal]
asdasdasdasss has quit [Ping timeout: 255 seconds]
springheeledjak has quit [Quit: Leaving.]
aspires has joined #ruby
<mike32> gr33n7007h, thanks
<mike32> you understood me)
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tewlz has joined #ruby
nbarnett has quit [Read error: Connection reset by peer]
<mike32> what is better cgi or uri.escape?
<jhass> if you know the result you want, why not hardcode it
yfeldblum has quit [Remote host closed the connection]
nbarnett has joined #ruby
failshell has joined #ruby
<mike32> i was sent string in russian
oo_ has joined #ruby
sailias has joined #ruby
asdasdasdasss has joined #ruby
babykosh has quit [Quit: babykosh]
sputnik13 has joined #ruby
aspires has quit []
tkuchiki has quit [Remote host closed the connection]
testcore has quit [Quit: BitchX: strong enough for a man, pH-balanced for a woman]
dapz has joined #ruby
oo_ has quit [Remote host closed the connection]
startupality has joined #ruby
babykosh has joined #ruby
nbarnett has quit [Read error: Connection reset by peer]
sputnik13 has quit [Read error: Connection reset by peer]
jdj_dk has quit [Ping timeout: 272 seconds]
sputnik13 has joined #ruby
SilkFox has joined #ruby
Sammael has joined #ruby
asdasdasdasss has quit [Ping timeout: 245 seconds]
failshell has quit [Remote host closed the connection]
failshell has joined #ruby
dapz has quit [Client Quit]
banjara has quit [Quit: Leaving.]
oo_ has joined #ruby
heftig has joined #ruby
beef-wellington has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
chipotle has joined #ruby
SilkFox has quit [Ping timeout: 240 seconds]
wjimenez_ has joined #ruby
kireevco has quit [Quit: Leaving.]
larsam has joined #ruby
mike32 has quit [Quit: Leaving]
hephaestus_rg has joined #ruby
failshell has quit [Ping timeout: 250 seconds]
kireevco has joined #ruby
Sid05 has joined #ruby
wjimenez5271 has quit [Ping timeout: 240 seconds]
dr0ff has joined #ruby
jhass is now known as jhass|off
kireevco has quit [Client Quit]
startupality has quit [Quit: startupality]
wjimenez_ has quit [Ping timeout: 255 seconds]
TotalEvil has joined #ruby
<TotalEvil> hi2all
jamesfordummies has quit [Remote host closed the connection]
<TotalEvil> can some help me with counting values inside array(not sure that i'm right tell)
mrommelf has joined #ruby
oo_ has quit [Remote host closed the connection]
ghr has joined #ruby
davispuh has joined #ruby
davispuh has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
<TotalEvil> bricker`work: can u look on code?
<bricker`work> TotalEvil: or
<bricker`work> TotalEvil: if you post it, someone will probably be able to, maybe it will be me, who knows, only one way to find out
mrsolo has joined #ruby
justinobney has joined #ruby
ilteris has joined #ruby
eebee has joined #ruby
<TotalEvil> i'm sure that i missing something(( but can't understand what exactly
tkuchiki has joined #ruby
<bricker`work> TotalEvil: what's the problem?
terrellt has quit [Quit: Leaving...]
ghr has quit [Ping timeout: 264 seconds]
patrick99e99 has quit [Quit: Lost terminal]
<TotalEvil> bricker`work: i need count value from get_stats output and show them counted
davispuh has joined #ruby
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<TotalEvil> currently i just getting output of get_stats
yfeldblum has quit [Ping timeout: 240 seconds]
InfraRuby has joined #ruby
oo_ has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dingus_khan has joined #ruby
almostwhitehat has quit [Quit: almostwhitehat]
babykosh has quit [Quit: babykosh]
marr has quit [Ping timeout: 264 seconds]
tewlz has quit [Ping timeout: 255 seconds]
Sauvin has joined #ruby
patrick99e99 has joined #ruby
parzo has joined #ruby
<DreamingRainne> TotalEvil: On line 28, maybe it should be "get_stats.each_line" (rather than ".each").
<TotalEvil> DreamingRainne: same( as with each(
siwica has quit [Remote host closed the connection]
sevenseacat has joined #ruby
siwica has joined #ruby
TrueJet has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
jdj_dk has joined #ruby
<DreamingRainne> Or rather, line 28 should be "counted.each" rather than "get_stats.each".
SchweetPapa has joined #ruby
mrommelf has quit [Remote host closed the connection]
davispuh has quit [Ping timeout: 245 seconds]
<DreamingRainne> And I'm not certain line 26 does what you expect it to... maybe leave it out altogether and just use v.to_s on line 29.
* DreamingRainne checks in irb.
<DreamingRainne> (Never mind, 26 does work as expected.)
koderok has joined #ruby
davispuh has joined #ruby
koderok has quit [Client Quit]
* DreamingRainne would rather have done: counted.each{|k,v| counted[k] = v.to_s} rather than trying to get too fancy, personally. But, same result.
parzo has quit [Ping timeout: 260 seconds]
tewlz has joined #ruby
<ilteris> what's the proper way of getting rid of multiple ruby on my system along with RVM and start fresh? Is there a way please?
magikfx__ has quit [Quit: Computer has gone to sleep.]
<ilteris> I apologize if this is not the proper place to ask such a question
<waxjar> rvm has an uninstaller
echooo has joined #ruby
CaptainJet has joined #ruby
chichou has joined #ruby
coldkey21 has quit [Quit: Leaving]
heftig has quit [Quit: Quitting]
tewlz has quit [Ping timeout: 250 seconds]
<ilteris> waxjar do you think are these related to rvm? https://gist.github.com/ilteris/3735bb713f30a71afd4b
threesixes has quit [Remote host closed the connection]
threesixes has joined #ruby
<dr0ff> someone explain why ruby run all threads if I #join only one? pastebin.com/KSFrSTHT
chichou has quit [Client Quit]
<DreamingRainne> dr0ff: .join will wait till that particular thread is done, then return. It doesn't stop other threads. It's not supposed to.
SilkFox_ has joined #ruby
<DreamingRainne> For example, what if you spawn a thread *within* a thread and then call .join on the spawned one? Should it stop the parent thread too? :P
<TotalEvil> didn't help (
dapz has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
Dreamer3 has quit [Quit: Leaving...]
<dr0ff> DreamingRainne: thank you
iteratorP has joined #ruby
tylerkern has joined #ruby
SilkFox_ has quit [Ping timeout: 255 seconds]
mrsolo has left #ruby ["Leaving"]
64MAAHYAY has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
babykosh has joined #ruby
robbyoconnor has joined #ruby
brianherman has joined #ruby
dayepa has joined #ruby
amclain has joined #ruby
jdj_dk has quit [Ping timeout: 250 seconds]
PanPan has joined #ruby
amystephen has quit [Quit: amystephen]
bricker`work has quit [Ping timeout: 264 seconds]
noocode has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
babykosh has quit [Client Quit]
oo_ has joined #ruby
patrick99e99 has quit [Ping timeout: 260 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has quit [Quit: Computer has gone to sleep.]
michaeldeol has quit [Ping timeout: 240 seconds]
noocode has joined #ruby
felixjet has quit [Quit: Leaving]
felixjet has joined #ruby
siwica has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 250 seconds]
postmodern has quit [Quit: Leaving]
siwica has joined #ruby
babykosh has joined #ruby
freerobby has joined #ruby
TotalEvil has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
robustus has joined #ruby
dingus_khan has quit [Read error: Connection reset by peer]
dingus_khan has joined #ruby
philcrissman has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
asdasdasdasss has joined #ruby
jonr22 has joined #ruby
tylerkern has joined #ruby
wallerdev has quit [Quit: wallerdev]
dayepa has quit [Quit: dayepa]
benlieb has joined #ruby
philcrissman has quit [Ping timeout: 255 seconds]
asdasdasdasss has quit [Ping timeout: 255 seconds]
larsam has quit [Read error: Connection reset by peer]
centrx has quit [Quit: Mead error: Connection reset by beer]
bradleyprice has joined #ruby
tokik has joined #ruby
blackgoat has quit [Quit: reboot]
nateberkopec has quit [Quit: Leaving...]
hellangel7 has joined #ruby
Gu_______ has joined #ruby
nateberkopec has joined #ruby
dingus_khan has quit [Remote host closed the connection]
dingus_khan has joined #ruby
troyready has quit [Ping timeout: 246 seconds]
eebee has quit [Ping timeout: 244 seconds]
dingus_khan has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
peret has quit [Remote host closed the connection]
sputnik13 has joined #ruby
ghr has joined #ruby
sputnik13 has quit [Client Quit]
chipotle has quit [Ping timeout: 245 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cache_Money has joined #ruby
sputnik13 has joined #ruby
Gu_______ has left #ruby ["Textual IRC Client: www.textualapp.com"]
redeleven has joined #ruby
wallerdev has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
ghr has quit [Ping timeout: 272 seconds]
InfraRuby has left #ruby [#ruby]
bronson has joined #ruby
alpha123 has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
koderok has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
yetanotherdave has quit [Ping timeout: 260 seconds]
ghostmoth has joined #ruby
buto has joined #ruby
eyeamaye has joined #ruby
dingus_khan has joined #ruby
itsrachelfish has left #ruby [#ruby]
xcv has joined #ruby
jxf has joined #ruby
parzo has joined #ruby
sputnik13 has joined #ruby
nateberkopec has quit [Quit: Leaving...]
sputnik13 has quit [Client Quit]
parzo has quit [Read error: Connection reset by peer]
parzo has joined #ruby
SilkFox_ has joined #ruby
xcv has quit [Ping timeout: 255 seconds]
hamakn has joined #ruby
djbkd has quit [Remote host closed the connection]
sputnik13 has joined #ruby
beef-wellington has quit [Ping timeout: 240 seconds]
hamakn has quit [Read error: Connection reset by peer]
paradisaeidae has joined #ruby
hamakn has joined #ruby
goodenough has quit [Remote host closed the connection]
jdj_dk has quit [Ping timeout: 250 seconds]
Grantlyk has joined #ruby
fgo has joined #ruby
nateberkopec has joined #ruby
koderok has quit [Quit: koderok]
parzo has quit [Ping timeout: 245 seconds]
SilkFox_ has quit [Ping timeout: 250 seconds]
comma8|BNC is now known as comma8
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agarie has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
britneywright has joined #ruby
hamakn has joined #ruby
sevvie has joined #ruby
sevvie has quit [Client Quit]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
nanoyak has joined #ruby
GriffinHeart has joined #ruby
balazs has joined #ruby
mib_mib has quit [Ping timeout: 246 seconds]
FDj has quit [Ping timeout: 250 seconds]
jonr22 has quit [Ping timeout: 250 seconds]
riceandbeans has left #ruby [#ruby]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
lid_ has quit [Ping timeout: 240 seconds]
mr_snowf1ake has joined #ruby
tectonic has joined #ruby
ponch_ has quit [Remote host closed the connection]
buto has quit [Quit: Textual IRC Client: www.textualapp.com]
buto has joined #ruby
mary5030 has joined #ruby
reset has quit [Quit: Leaving...]
reset has joined #ruby
bronson has quit [Quit: bronson]
starkhalo has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
binaryhat has quit [Remote host closed the connection]
chipotle has joined #ruby
reset has quit [Ping timeout: 255 seconds]
binaryhat has joined #ruby
gilest has joined #ruby
cocotton has joined #ruby
<benlieb> why can I have methods that end in ? but not variables?
64MAAHYAY has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
yfeldblum has joined #ruby
paradisaeidae has quit [Ping timeout: 240 seconds]
* DreamingRainne shrugs.
devdazed has quit [Ping timeout: 250 seconds]
icebourg has joined #ruby
devdazed has joined #ruby
binaryhat has quit [Remote host closed the connection]
jdj_dk has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
binaryhat has joined #ruby
goodenough has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gilest has quit [Quit: Leaving...]
asdasdasdasss has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
buto has quit [Quit: Textual IRC Client: www.textualapp.com]
paradisaeidae has joined #ruby
bmurt has quit []
asdasdasdasss has quit [Ping timeout: 245 seconds]
britneywright has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
siwica has quit [Ping timeout: 260 seconds]
ki0 has joined #ruby
Blizzy has joined #ruby
toastynerd has joined #ruby
brianherman has quit [Read error: Connection reset by peer]
babykosh has quit [Ping timeout: 260 seconds]
ki0 has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gregf has joined #ruby
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has joined #ruby
jdj_dk has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
dingus_khan has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
dingus_khan has joined #ruby
eyeamaye1 has joined #ruby
GriffinHeart has joined #ruby
eeezkil has quit [Read error: Connection reset by peer]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alpha123 is now known as nobody`
nobody` is now known as alpha123
Guest41389 has quit [Changing host]
Guest41389 has joined #ruby
Guest41389 is now known as digifiv5e
toastynerd has joined #ruby
FDj has joined #ruby
dingus_khan has quit [Ping timeout: 240 seconds]
paradisaeidae has quit [Ping timeout: 244 seconds]
eyeamaye has quit [Ping timeout: 272 seconds]
ghr has quit [Ping timeout: 246 seconds]
GriffinHeart has quit [Ping timeout: 246 seconds]
hj2007 has quit [Quit: This computer has gone to sleep]
ixti has quit [Quit: WeeChat 0.4.3]
yetanotherdave has joined #ruby
Norrin has quit [Ping timeout: 240 seconds]
lidaaa has joined #ruby
TrueJet has joined #ruby
bmurt has quit []
oso|away has quit [Ping timeout: 240 seconds]
CaptainJet has quit [Ping timeout: 264 seconds]
dingus_khan has joined #ruby
dingus_khan has quit [Remote host closed the connection]
dingus_khan has joined #ruby
kireevco has joined #ruby
oso|away has joined #ruby
oso|away is now known as oso96_2000
Norrin has joined #ruby
siwica has joined #ruby
parzo has joined #ruby
blackgoat has joined #ruby
SilkFox_ has joined #ruby
toastynerd has quit [Remote host closed the connection]
sethen has quit [Ping timeout: 255 seconds]
siwica has quit [Remote host closed the connection]
siwica has joined #ruby
Cheezebox has joined #ruby
abuzze has joined #ruby
LACP has quit [Ping timeout: 240 seconds]
braincrash has quit [Quit: bye bye]
oso96_2000 has quit [Ping timeout: 252 seconds]
hellangel7 has quit [Remote host closed the connection]
siwica has quit [Read error: Connection reset by peer]
ValicekB has quit [Ping timeout: 255 seconds]
parzo has quit [Ping timeout: 250 seconds]
SilkFox_ has quit [Ping timeout: 240 seconds]
paradisaeidae has joined #ruby
oo_ has quit [Remote host closed the connection]
LACP has joined #ruby
abuzze_ has quit [Ping timeout: 260 seconds]
Grantlyk has quit [Remote host closed the connection]
sivoais_ has quit [Remote host closed the connection]
jayunit100_ has quit [Quit: jayunit100_]
oso|away has joined #ruby
abdulsattar has joined #ruby
oso|away is now known as oso96_2000
magikfx__ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
braincrash has joined #ruby
FDj has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
danijoo has joined #ruby
sevvie has joined #ruby
FDj has joined #ruby
michaeldeol has joined #ruby
jdj_dk has joined #ruby
magikfx__ has quit [Ping timeout: 272 seconds]
thams has joined #ruby
ValicekB has joined #ruby
kaspergrubbe_ has quit [Remote host closed the connection]
jdj_dk has quit [Read error: Connection reset by peer]
Panicky has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
jdj_dk has joined #ruby
philcrissman has joined #ruby
CoffeeDrivenC0de has left #ruby [#ruby]
sivoais has joined #ruby
lidaaa has quit [Read error: Connection reset by peer]
lidaaa has joined #ruby
eyeamaye1 has quit [Quit: Leaving.]
TorpedoSkyline has joined #ruby
Cheezebox has quit [Remote host closed the connection]
InfraRuby has joined #ruby
philcrissman has quit [Ping timeout: 255 seconds]
sevvie has quit [Ping timeout: 240 seconds]
icebourg has quit []
Cheezebox has joined #ruby
oo_ has quit [Remote host closed the connection]
goodenough has quit [Remote host closed the connection]
mrommelf has joined #ruby
usinganalias has joined #ruby
asdasdasdasss has joined #ruby
RyanV has joined #ruby
jso has joined #ruby
chipotle_ has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
<usinganalias> Hello all! Following RubyMonk and ran into a curious usage of class << self in a DSL. The code is the last snippet at https://rubymonk.com/learning/books/5-metaprogramming-ruby-ascent/chapters/24-eval/lessons/67-instance-eval. Why do they throw the definition of #should in the metaclass of Monks, and not just the class Monks?
<benzrf> usinganalias: that's that singleton class or eigen class, not metaclass, fyi
hamakn has quit [Read error: Connection reset by peer]
hamakn_ has joined #ruby
<benzrf> usinganalias: it's so that Monks will have the method should
wjimenez5271 has joined #ruby
<benzrf> if it were throw into the class Monks, then each Monk would have a should method
sevvie has joined #ruby
Spami has quit [Ping timeout: 250 seconds]
jdj_dk has quit [Ping timeout: 240 seconds]
<usinganalias> So it's just a block to prevent instances of Monks using #should?
asdasdasdasss has quit [Ping timeout: 255 seconds]
Cheezebox has quit [Remote host closed the connection]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abdulsattar has quit [Ping timeout: 240 seconds]
hamakn has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
<usinganalias> Also, when you call "self.new" in an eigenclass, why does it create a whole new class and not just a new eigenclass inside the class?
mrommelf has quit [Quit: Textual IRC Client: www.textualapp.com]
MrL0ngbowman has joined #ruby
mrommelf has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
GriffinHeart has joined #ruby
Cache_Money_ has joined #ruby
starless has joined #ruby
Cache_Money has quit [Ping timeout: 240 seconds]
Cache_Money_ is now known as Cache_Money
Cache_Money has quit [Remote host closed the connection]
<usinganalias> How are eigenclasses, metaclasses, and singleton classes different?
paradisaeidae has quit [Quit: ChatZilla 0.9.90.1 [Firefox 32.0/20140804164216]]
<benzrf> usinganalias: new class yea
<benzrf> usinganalias: eigenclass is an original term invented for them
<benzrf> singleton class is the officially in-the-language term
<benzrf> i.e.
<benzrf> >> "foo".singleton_class
<eval-in> benzrf => #<Class:#<String:0x423d1d2c>> (https://eval.in/177185)
TorpedoSkyline has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
<benzrf> the metaclass of o is o.class.class
_maes_ has joined #ruby
hamakn has joined #ruby
<usinganalias> Isn't that always Class?
* benzrf shrugs
<benzrf> in ruby, yes
<benzrf> in python you can specify a metaclass to use when creating a class
<usinganalias> Awesome - thanks benzrf!
<benzrf> and depending, you could be talking about the singleton class of the class
<benzrf> usinganalias: np
<usinganalias> So why does self.new inside an eigenclass create a new instance of the outside class, and not the eigenclass itself?
<usinganalias> Doesn't self refer to the eigenclass in that context (inside the eigenclass)?
<benzrf> it refers to the eigenclass, yes
<usinganalias> So what does self.new do?
<benzrf> >> class Foo; class << self; self.new; end; end;
<eval-in> benzrf => can't create instance of singleton class (TypeError) ... (https://eval.in/177187)
<benzrf> usinganalias: eigenclasses don't support instantiation, apparently
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> they're bound to a particular object
<usinganalias> Weird - then how did the previous code work that I posted?
ghr has joined #ruby
<usinganalias> Oh! Because it's run in the binding of the class itself, right?
<usinganalias> Sorry I'm not making much sense....
<usinganalias> The "should" function is defined in the eigenclass but is called in the binding of Monks, right?
<benzrf> ?
InfraRuby has left #ruby [#ruby]
<usinganalias> When you call Monks.should, it's in the "context" of Monks, so self.new inside #should refers to Monks, right?
<benzrf> usinganalias: btw fyi you can use instance_eval with a block
<benzrf> usinganalias: yeah
<benzrf> wait
<benzrf> it depends on how the block is being used
<benzrf> usinganalias: yeah
<benzrf> usinganalias: it's being defined in the class of Monks
<benzrf> therefore, when the method is called, self will be an instance of that class
<benzrf> i.e. Monks
ghr has quit [Ping timeout: 240 seconds]
<usinganalias> But if it's defined externally (such as with instance_eval) does self.new try to create a new eigenclass and make an exception?
<benzrf> `defined externally'?
MrL0ngbowman has quit [Ping timeout: 244 seconds]
Cache_Money has joined #ruby
<usinganalias> Never mind - i think i figured it out!
<usinganalias> Thanks :)
<usinganalias> TTYL #ruby!
<benzrf> np
usinganalias has left #ruby [#ruby]
larsam has joined #ruby
koderok has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
phinfonet has quit []
yfeldblu_ has joined #ruby
hellangel7 has joined #ruby
justinobney has quit [Remote host closed the connection]
centrx has joined #ruby
cg433n has joined #ruby
mrommelf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nhmood has joined #ruby
agarie has quit [Remote host closed the connection]
oo_ has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
agarie has joined #ruby
hellangel7 has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
goodenough has joined #ruby
GriffinHeart has joined #ruby
<nhmood> anyone have any experience using rufus-scheduler?
parzo has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilkFox_ has joined #ruby
jdj_dk has joined #ruby
hellangel7 has quit [Read error: Connection reset by peer]
larsam has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
agarie has quit [Ping timeout: 246 seconds]
jdj_dk has joined #ruby
oo_ has quit [Ping timeout: 244 seconds]
parzo has quit [Ping timeout: 240 seconds]
koderok has quit [Quit: koderok]
SilkFox_ has quit [Ping timeout: 264 seconds]
dr0ff has left #ruby [#ruby]
eyeamaye has joined #ruby
devdazed has quit [Ping timeout: 244 seconds]
Channel6 has quit [Quit: Leaving]
dapz has joined #ruby
devdazed has joined #ruby
<centrx> nhmood, Ask your question
TorpedoSkyline has joined #ruby
nanoyak has joined #ruby
<centrx> nhmood, A question not asked, cannot be answered. I am speaking to you from the past, or the future.
centrx has quit [Quit: Mead error: Connection reset by beer]
jdj_dk has quit [Ping timeout: 264 seconds]
dseitz has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
redeleven has quit [Quit: Leaving]
diegoviola has quit [Remote host closed the connection]
dopie has quit [Remote host closed the connection]
InfraRuby has joined #ruby
icebourg has joined #ruby
Sid05_ has joined #ruby
TrueJet has quit []
davedev24_ has quit [Read error: Connection reset by peer]
mr_snowf1ake has quit [Quit: Leaving]
davedev24_ has joined #ruby
sevvie has quit [Quit: leaving]
mrommelf has joined #ruby
farn has quit [Read error: Connection reset by peer]
larsam has joined #ruby
theharshest has joined #ruby
kaiwren has joined #ruby
starless has quit [Quit: Leaving]
benlieb has quit [Quit: benlieb]
devdazed has quit [Ping timeout: 260 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wwalker has quit [Ping timeout: 245 seconds]
larsam has quit [Read error: Connection reset by peer]
zkay11 has left #ruby [#ruby]
wwalker has joined #ruby
devdazed has joined #ruby
agarie has joined #ruby
razum2um1 has quit [Quit: Leaving.]
benlieb has joined #ruby
asdasdasdasss has joined #ruby
wjimenez_ has joined #ruby
jdj_dk has joined #ruby
ari-_-e has joined #ruby
maletor_ has quit [Ping timeout: 245 seconds]
asdasdasdasss has quit [Ping timeout: 245 seconds]
cg433n has quit [Quit: Computer has gone to sleep.]
jdj_dk has quit [Remote host closed the connection]
maletor has joined #ruby
dapz has quit [Read error: Connection reset by peer]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bbloom has joined #ruby
jdj_dk has joined #ruby
jdj_dk has quit [Remote host closed the connection]
bbloom has quit [Client Quit]
wjimenez5271 has quit [Remote host closed the connection]
devdazed has quit [Ping timeout: 240 seconds]
InfraRuby has left #ruby [#ruby]
dnyy_ has quit [Quit: Connection closed for inactivity]
devdazed has joined #ruby
wjimene__ has joined #ruby
Cheezebox has joined #ruby
InfraRuby has joined #ruby
ghr has joined #ruby
JohnBat26 has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
agarie has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
mary5030 has quit [Remote host closed the connection]
vsoftoiletpaper has quit []
mrommelf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wjimene__ has quit [Remote host closed the connection]
flowerhack has joined #ruby
basiclaser has quit [Excess Flood]
larissa has quit [Quit: Leaving]
starless has joined #ruby
superscott[8] has quit []
Cheezebox has quit [Remote host closed the connection]
EvanR_ has quit [Read error: Connection reset by peer]
basiclaser has joined #ruby
EvanR_ has joined #ruby
oo_ has joined #ruby
RyanV has quit [Quit: Lingo - http://www.lingoirc.com]
balazs has quit [Ping timeout: 255 seconds]
parzo has joined #ruby
SilkFox_ has joined #ruby
amclain has quit [Quit: Leaving]
crdpink has quit [Ping timeout: 250 seconds]
wwalker has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby
wwalker has joined #ruby
decoponio has joined #ruby
philcrissman has joined #ruby
raddy has joined #ruby
tvw has joined #ruby
<raddy> Hello Everybody
parzo has quit [Ping timeout: 245 seconds]
benlieb has quit [Quit: benlieb]
<raddy> I am frequently receiving "No route to host - connect(2) (Errno::EHOSTUNREACH)", in redmine in both Passenger and Webrick
<raddy> Can anubody help me?????
SilkFox_ has quit [Ping timeout: 255 seconds]
<raddy> Passenger v4 and Redmine v2.4.5
MrL0ngbowman has joined #ruby
bluOxigen has joined #ruby
agarie has joined #ruby
saarinen has quit [Quit: saarinen]
agarie has quit [Remote host closed the connection]
philcrissman has quit [Ping timeout: 272 seconds]
hephaestus_rg has quit [Ping timeout: 245 seconds]
<raddy> Anybody there ????
Hanmac has quit [Quit: Leaving.]
Hanmac has joined #ruby
jdj_dk has joined #ruby
yetanotherdave has quit [Ping timeout: 272 seconds]
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
lxsameer has joined #ruby
<eam> raddy: you have a networking problem
vsoftoiletpaper has joined #ruby
Arkaniad has quit [Ping timeout: 255 seconds]
RandyT has quit [Ping timeout: 245 seconds]
<gr33n7007h> Could I do something like this: require 'socket'; Socket.instance_eval do; def pack_sockaddr_in_bluetooth(port, host); bytes = host.split(":").reverse.map{ |b| b.to_i(16) }; sockaddr = [31, 0, *bytes, port, 0].pack("C*"); sockaddr; end; end would this be legitimate in a program?
<raddy> eam : It cannot be, as i am running multiple versions of redmine in different ports in that server without any issues.
Pharaoh2 has joined #ruby
jdj_dk has quit [Remote host closed the connection]
jdj_dk has joined #ruby
agarie has joined #ruby
<Hanmac> gr33n7007h: why do you need instance_eval ?
<gr33n7007h> then use like Socket.new(31,1,3); s.connect Socket.pack_sockaddr_in_bluetooth port, host ?
<gr33n7007h> Hanmac, to define a class method on Socket
<Hanmac> "class Socket; def self.pack_sockaddr_in_bluetooth(port, host) ... ; end; end" or"def Socket.pack_sockaddr_in_bluetooth(port, host) ... ; end" do the same, no need for instance eval
nanoyak has quit [Quit: Computer has gone to sleep.]
mercwithamouth has joined #ruby
<gr33n7007h> Hanmac, why did I even think of instance_eval wow
aspires has joined #ruby
<raddy> eam : the passenger is binding at 0.0.0.0 in port 3001
<gr33n7007h> yes mind is gone!
<raddy> eam : I am not sure how a networking problem be there in this case unless passenger is try to connect to other hosts.
<gr33n7007h> what was I thinking then jeez
jdj_dk has quit [Remote host closed the connection]
<Hanmac> gr33n7007h: try to make your function shorter: def Socket.pack_sockaddr_in_bluetooth(port, host); [31, 0, *host.split(':').reverse_each.map(&:hex), port, 0].pack("C*") ; end
goodenough has quit [Remote host closed the connection]
jdj_dk has joined #ruby
jdj_dk has quit [Remote host closed the connection]
jmbrown412 has joined #ruby
<gr33n7007h> Hanmac, really appreciate that thank you :)
yfeldblu_ has quit [Remote host closed the connection]
parzo has joined #ruby
<raddy> eam : are you there ?
raddy has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<gr33n7007h> thats tons better
parzo has quit [Read error: Connection reset by peer]
parzo has joined #ruby
raddy has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thams has quit [Quit: thams]
<raddy> eam : Are you there ?
<raddy> Anybody there ?
parzo has quit [Ping timeout: 255 seconds]
Morkel has joined #ruby
tobago has joined #ruby
asdasdasdasss has joined #ruby
<wasamasa> just ask your damn question
icebourg has quit []
tagrudev has joined #ruby
<wasamasa> eam: there's a couple hundred nicks connected and you ask whether anybody's there
<raddy> wasamasa : cool down, he was the only person responded to my question.
eyeamaye has quit [Quit: Leaving.]
<Hanmac> gr33n7007h: replace /:/ with ':' and "C*" with 'C*' and it should be perfect ... ps are you shure you want port, host in the parameters and not host, port ?
icebourg has joined #ruby
icebourg has quit [Client Quit]
<gr33n7007h> Hanmac, one little problem now I get TypeError: superclass mismatch for class Socket
MrL0ngbowman has quit [Remote host closed the connection]
asdasdasdasss has quit [Ping timeout: 240 seconds]
<Hanmac> hmmm no that cant be come from this part of code
benzrf is now known as benzrf|offline
<gr33n7007h> that's from within pry
<gr33n7007h> let me restart pry and try again
<Hanmac> yeah it that problem ;P
<Hanmac> hm and banister is not on to explain it ...
<wasamasa> raddy: the answer is still the same btw, this is an error you see if whatever library using the internet can not even establish a connection because the routes are borked or not even there yet
<wasamasa> raddy: figure out why
apeiros has quit [Read error: Connection reset by peer]
<gr33n7007h> Hanmac, nevermind reset pry works perfect thank you so much
apeiros has joined #ruby
dawkirst has joined #ruby
<raddy> Anyways i found there is some problem in my server, thanks everybody
starkhalo has quit [Ping timeout: 260 seconds]
<eam> raddy: yes, you are connecting to other hosts
<eam> it's an error from connect()
<raddy> eam : the error is from passenger, not from the client
<eam> then passenger is making a connection
<eam> outbound
<raddy> Ohhh okk
yeticry has quit [Ping timeout: 245 seconds]
Jaood has joined #ruby
BadQuanta has quit [Quit: Leaving.]
Jaood has left #ruby [#ruby]
yeticry has joined #ruby
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BadQuanta has joined #ruby
<gr33n7007h> Hanmac, => https://gist.github.com/anonymous/3afa9e3101280c99b052 works like a charm Thanks again :) :)
GriffinHeart has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
Sid05_ has quit [Quit: Sid05_]
Takle has joined #ruby
agarie has quit [Remote host closed the connection]
ghr has joined #ruby
Sid05_ has joined #ruby
relix has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
jmbrown412 has quit [Remote host closed the connection]
timonv_ has joined #ruby
jmbrown412 has joined #ruby
raddy has left #ruby ["Closing Window"]
timgauthier has joined #ruby
bradleyp_ has joined #ruby
tylerkern has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
goodenough has joined #ruby
bal has joined #ruby
jmbrown412 has quit [Ping timeout: 255 seconds]
apeiros has quit [Remote host closed the connection]
bradleyprice has quit [Ping timeout: 260 seconds]
apeiros has joined #ruby
Glyphnote has joined #ruby
wjimenez_ has quit [Remote host closed the connection]
aganov has joined #ruby
morenoh150 has quit [Ping timeout: 260 seconds]
fgo has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 240 seconds]
theharshest has quit [Quit: This computer has gone to sleep]
Akagi201 has joined #ruby
goodenough has quit []
dawkirst has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
toastynerd has joined #ruby
mike32 has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
SilkFox_ has quit [Ping timeout: 250 seconds]
vsoftoiletpaper has quit []
Sid05_ has quit [Quit: Sid05_]
Takle_ has joined #ruby
vsoftoiletpaper has joined #ruby
timonv_ has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
Matadoer has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 260 seconds]
jdj_dk_ has joined #ruby
JoshGlzBrk has joined #ruby
shredding has joined #ruby
arq_ has quit [Ping timeout: 260 seconds]
Glyphnote has quit [Read error: Connection reset by peer]
kaiwren has quit [Quit: kaiwren]
larsam has joined #ruby
max06 has joined #ruby
larsam has quit [Read error: Connection reset by peer]
anarang has joined #ruby
threesixes has quit [Ping timeout: 272 seconds]
threesixes has joined #ruby
razum2um has joined #ruby
kenneth has joined #ruby
cg433n has joined #ruby
thams has joined #ruby
kiri has joined #ruby
shredding has quit [Quit: shredding]
dawkirst has joined #ruby
cg433n has quit [Ping timeout: 240 seconds]
dawkirst has quit [Remote host closed the connection]
dawkirst has joined #ruby
dawkirst_ has joined #ruby
fgo has joined #ruby
vsoftoiletpaper has quit []
kiri has quit [Ping timeout: 240 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
Pharaoh2 has quit [Remote host closed the connection]
Alina-malina has joined #ruby
iteratorP has quit [Remote host closed the connection]
asdasdasdasss has joined #ruby
dawkirst has quit [Ping timeout: 244 seconds]
iteratorP has joined #ruby
apeiros has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
techsethi has joined #ruby
noop has joined #ruby
asdasdasdasss has quit [Ping timeout: 245 seconds]
Morkel has joined #ruby
ist has quit [Quit: Leaving]
tvw has quit []
Brando753 has quit [Read error: Connection reset by peer]
morenoh150 has joined #ruby
jdj_dk_ has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asdasdasdasss has joined #ruby
thams has quit [Quit: thams]
sethen has joined #ruby
oo_ has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
Mattx has quit [Read error: Connection reset by peer]
iteratorP has quit [Remote host closed the connection]
thams has joined #ruby
Brando753 has joined #ruby
Mattx has joined #ruby
dingus_khan has quit []
anaeem1_ has joined #ruby
Morkel has quit [Quit: Morkel]
arup_r has joined #ruby
ghr has joined #ruby
bhaus has joined #ruby
oo_ has joined #ruby
<bhaus> hello all, does anyone have experience with rexml? id Document.write non blocking?
<bhaus> *is Document.write non blocking?
kaiwren has joined #ruby
gauravagarwalr has joined #ruby
<arup_r> I need one Heroku set up help.. I am working on a project already hosted in Heroku. I cloned the project from Github and working on it.. Creating branch and pushing it to Github and using a pull request I am merging it. Now also I want to push the changes to the Heroku. How to set up my local master with the Heroku
<arup_r> I installed and created the Heroku account
<sevenseacat> just set the right git remote?
gruz0[russia] has joined #ruby
<sevenseacat> then push
<sevenseacat> there are so many docs for this
<arup_r> sevenseacat : I am not able to..
<arup_r> Would you please help me
<arup_r> By mistake I did Heroku create
<arup_r> But that did the wrong thing
ephemerian has joined #ruby
aspires has quit []
<arup_r> I actually supposed to add my master to the heroku app
<arup_r> I am not aware of how to do so
philcrissman has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
<arup_r> sevenseacat: Please help..
iteratorP has joined #ruby
skylite has joined #ruby
tylerkern has joined #ruby
abdulsattar has joined #ruby
philcrissman has quit [Ping timeout: 260 seconds]
parzo has joined #ruby
asdasdasdasss has quit [Quit: Computer has gone to sleep.]
Macaveli has joined #ruby
WormDrink has quit [Ping timeout: 245 seconds]
asdasdasdasss has joined #ruby
W0rmDr1nk has quit [Ping timeout: 264 seconds]
gauke has joined #ruby
clauswitt has joined #ruby
Aryasam has joined #ruby
Aryasam has quit [Client Quit]
doev has joined #ruby
bbloom has joined #ruby
krz has joined #ruby
SilkFox_ has joined #ruby
asdasdasdasss has quit [Ping timeout: 240 seconds]
Sid05 has quit [Read error: Connection reset by peer]
marr has joined #ruby
Pharaoh2 has joined #ruby
bayed has joined #ruby
clauswit_ has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kireevco has quit [Quit: Leaving.]
yfeldblum has joined #ruby
kireevco has joined #ruby
clauswitt has quit [Ping timeout: 240 seconds]
gauke has quit [Quit: gauke]
SilkFox_ has quit [Ping timeout: 245 seconds]
kireevco has quit [Client Quit]
<bhaus> hello all are filehandle opened by IO.new blocking by default?
kireevco has joined #ruby
kireevco has quit [Client Quit]
yfeldblum has quit [Remote host closed the connection]
kireevco has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby
gauke has joined #ruby
kireevco has quit [Client Quit]
kireevco has joined #ruby
razum2um1 has joined #ruby
thams has quit [Quit: thams]
Ilyas has joined #ruby
kireevco has quit [Client Quit]
WormDrink has joined #ruby
WormDrink has quit [Read error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number]
kireevco has joined #ruby
W0rmDr1nk has joined #ruby
sdwrage has joined #ruby
WormDrink has joined #ruby
bbloom has quit [Quit: Computer has gone to sleep.]
kireevco has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
jdj_dk_ has joined #ruby
kireevco has joined #ruby
oo_ has joined #ruby
razum2um has quit [Ping timeout: 272 seconds]
kireevco has quit [Client Quit]
kireevco has joined #ruby
oo_ has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
lidaaa has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
lidaaa has joined #ruby
kyb3r_ has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
asmodlol has joined #ruby
sdwrage_ has joined #ruby
larsam has joined #ruby
abuzze has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
oo_ has quit [Remote host closed the connection]
sdwrage has quit [Ping timeout: 260 seconds]
abdulsattar has quit [Ping timeout: 272 seconds]
abuzze has joined #ruby
oo_ has joined #ruby
kireevco has quit [Ping timeout: 244 seconds]
babykosh has joined #ruby
patrick99e99 has joined #ruby
himsin has joined #ruby
gruz0[russia] has quit [Quit: Leaving]
sdwrage_ has quit [Quit: This computer has gone to sleep]
parzo_ has joined #ruby
parzo has quit [Read error: Connection reset by peer]
babykosh has quit [Ping timeout: 255 seconds]
patrick99e99 has quit [Ping timeout: 245 seconds]
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
ddv has quit [Changing host]
ddv has joined #ruby
krisquigley has joined #ruby
hsps_ has quit [Read error: Connection reset by peer]
shredding has joined #ruby
hsps_ has joined #ruby
razum2um has joined #ruby
guardian has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 250 seconds]
razum2um1 has quit [Ping timeout: 244 seconds]
parzo has joined #ruby
doev has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
timgauthier has quit [Ping timeout: 245 seconds]
asdasdasdasss has joined #ruby
parzo_ has quit [Ping timeout: 272 seconds]
guardian has joined #ruby
andrewlio has joined #ruby
abdulsattar has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
jdj_dk_ has quit [Ping timeout: 246 seconds]
timgauthier has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
chth0n has joined #ruby
alex88 has joined #ruby
rdark has joined #ruby
olivier_bK has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lidaaa has quit [Ping timeout: 272 seconds]
codecop has joined #ruby
gauravagarwalr has quit [Remote host closed the connection]
timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
Wolland has quit [Remote host closed the connection]
tectonic has quit []
Wolland has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
krisquigley has quit [Remote host closed the connection]
asdasdasdasss has quit [Read error: No route to host]
krisquigley has joined #ruby
asdasdasdasss has joined #ruby
krisquigley has quit [Remote host closed the connection]
DreamingRainne has quit [Quit: Sleeping to the sound of rain...]
max06 has quit [Quit: Leaving.]
sepp2k has joined #ruby
gauravagarwalr has joined #ruby
klaut has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
bhaus has quit [Quit: Page closed]
asdasdasdasss has quit [Ping timeout: 255 seconds]
dapz has joined #ruby
abdulsattar has quit [Ping timeout: 244 seconds]
mike32 has quit [Remote host closed the connection]
ghr has joined #ruby
qba73 has joined #ruby
LiohAu has joined #ruby
LiohAu has joined #ruby
mijicd has joined #ruby
larsam has quit [Read error: Connection reset by peer]
JBreit has joined #ruby
sk87 has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
olivier_bK has quit [Quit: Quitte]
olivier_bK has joined #ruby
JBreit has left #ruby [#ruby]
jprovazn has joined #ruby
mmoretti has joined #ruby
mikecmpbll has joined #ruby
morenoh150 has quit [Ping timeout: 260 seconds]
luckyruby has quit [Quit: Leaving...]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Atttwww has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
mike32 has joined #ruby
anarang has quit [Quit: Leaving]
threesixes has quit [Remote host closed the connection]
lxsameer has joined #ruby
morenoh150 has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
kaspergrubbe_ has joined #ruby
SilkFox_ has joined #ruby
mmoretti has quit [Quit: Leaving...]
Morkel has joined #ruby
oo_ has quit [Remote host closed the connection]
kevkev_ has joined #ruby
<robscormack> huh?
<crome> moarning
oo_ has joined #ruby
SilkFox_ has quit [Ping timeout: 255 seconds]
max06 has joined #ruby
<arup_r> sevenseacat: I solved it.. So easy
<robscormack> morning, gogle crome <-
<sevenseacat> arup_r: indeed.
<arup_r> Hehehe
<robscormack> hi 7seacat
<crome> robscormack: nice, original pun
<crome> I swear I haven't seen it before!
W0rmDr1nk has quit [Ping timeout: 255 seconds]
<robscormack> sorry xD
joonty has joined #ruby
max06 has quit [Client Quit]
abdulsattar has joined #ruby
jdj_dk_ has joined #ruby
Wolland has joined #ruby
lxsameer has quit [Ping timeout: 250 seconds]
GlenK has quit [Ping timeout: 264 seconds]
cg433n has joined #ruby
pepijndevos has left #ruby ["Textual IRC Client: www.textualapp.com"]
abuzze_ has joined #ruby
goodenough has joined #ruby
jhass|off is now known as jhass
dawkirst_ has quit [Quit: Leaving...]
dawkirst has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
gogohome has joined #ruby
Wolland has joined #ruby
cg433n has quit [Ping timeout: 244 seconds]
abuzze has quit [Ping timeout: 264 seconds]
jds has joined #ruby
arya_ has joined #ruby
anarang has joined #ruby
abdulsattar has quit [Ping timeout: 240 seconds]
yfeldblu_ has joined #ruby
<gogohome> hello
sevenseacat has left #ruby [#ruby]
<gogohome> who know about ‘arduino'?
devdazed has quit [Ping timeout: 240 seconds]
devdazed has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
arup_r has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
arup_r has joined #ruby
<robscormack> hm, a bit, not much, it depends, is this related with Ruby?
arup_r has quit [Remote host closed the connection]
elaptic`` is now known as elaptics
discr33t__ has quit [Ping timeout: 246 seconds]
<robscormack> hi elastic
<robscormack> *elaptics*
devdazed has quit [Ping timeout: 244 seconds]
timonv_ has quit [Remote host closed the connection]
arup_r has joined #ruby
arup_r has quit [Remote host closed the connection]
devdazed has joined #ruby
jhass is now known as jhass|off
maestrojed has quit [Quit: Computer has gone to sleep.]
jhass|off is now known as jhass
jdj_dk_ has quit [Ping timeout: 250 seconds]
<ddv> my code is beautifull today, i'm a genius <3
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
philcrissman has joined #ruby
axsuul has quit [Ping timeout: 255 seconds]
<robscormack> I want three wishes, then
dangerousdave has joined #ruby
* robscormack reminds himself that "genio" in English can be "genius" (like Einstein) or "genie" like "Genie in a bottle" and slaps himself.
W0rmDr1nk has joined #ruby
asdasdasdasss has joined #ruby
ki0 has joined #ruby
shredding has quit [Quit: shredding]
GlenK has joined #ruby
philcrissman has quit [Ping timeout: 255 seconds]
<Hanmac> robscormack: why not both? ;P
<robscormack> the joke doesn't make sense in English.
tiguser has quit [Ping timeout: 272 seconds]
Wolland has joined #ruby
asdasdasdasss has quit [Ping timeout: 240 seconds]
Pharaoh2 has quit [Remote host closed the connection]
Jackneill has joined #ruby
max06 has joined #ruby
tiguser has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
asmodlol has quit [Quit: Leaving]
Pharaoh2 has joined #ruby
hsps_ has quit [Read error: Connection reset by peer]
mclee has quit [Ping timeout: 250 seconds]
Wolland has quit [Ping timeout: 255 seconds]
amacou has joined #ruby
hsps_ has joined #ruby
<Hanmac> robscormack: it does in german ... do you know the jokes (specially about english vs france vs german) about 'poison' and 'potion' and the german 'gift' vs the english 'gift' ? ;P
InfraRuby has left #ruby [#ruby]
<wasamasa> false friends
<wasamasa> "Igel" vs. "Eagle"
mr-foobar has quit [Read error: Connection reset by peer]
<robscormack> I know that germans can't pronounce "squirrel"
mr-foobar has joined #ruby
<robscormack> Hanmac: what's that?
<wasamasa> I know that french can't pronounce "railway station"
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
BadQuanta has quit [Remote host closed the connection]
<Hanmac> robscormack: and we cant build airports ;P (look at the BER in berlin ;D )
amacou has quit [Ping timeout: 255 seconds]
fgo has joined #ruby
devdazed has quit [Ping timeout: 255 seconds]
<robscormack> wooo
<robscormack> Hanmac: reading about it on wikipedia
abdulsattar has joined #ruby
workmad3 has joined #ruby
duyue2 has joined #ruby
devdazed has joined #ruby
doev has joined #ruby
<robscormack> at least you have problems with other languages. Here in Chile, "guagua" means baby but in Spain and other spanish-speaking countries, it means "bus".
dEPy has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
Shidash has quit [Ping timeout: 250 seconds]
<robscormack> "can you hold my baby?" is hilarious in other places, while "waiting for the bus" is hilarious for others here.
devdazed has quit [Max SendQ exceeded]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SilkFox_ has joined #ruby
devdazed has joined #ruby
dangerousdave has joined #ruby
startupality has joined #ruby
razum2um has quit [Ping timeout: 244 seconds]
doev has quit [Ping timeout: 272 seconds]
SilkFox_ has quit [Ping timeout: 240 seconds]
cpruitt has joined #ruby
Zebroid has joined #ruby
arup_r_ has joined #ruby
gaussblurinc1 has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
jdj_dk_ has joined #ruby
spider-mario has joined #ruby
cantonic has joined #ruby
Wolland has joined #ruby
Zebroid has quit [Remote host closed the connection]
anddam has joined #ruby
<anddam> does "gem install" install modules in user directory?
<jhass> depends on configuration but it can do that
eeezkil has joined #ruby
<anddam> I mean if current user is not superuser
<dEPy> Is there an alternative to doing: def self.included(base) AND THEN base.class_eval do ?
<dEPy> base.class_eval do
<dEPy> oops
<dEPy> Maybe I should split the module into 2 and include 1 and extend other?
<jhass> dEPy: that's the most common pattern, also extending base with that second module in the included hook.
patrick99e99 has joined #ruby
<jhass> there's define_singleton_method if all you do is that
alexju has joined #ruby
<anddam> jhass: me?
<jhass> no dEPy
<dEPy> jhass: well the only problem I have with it is that my code metric (code climate) thinks it's one big method and says it's too complex
teddyp1cker has joined #ruby
Lucky__ has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
Ayey_ has joined #ruby
<dEPy> jhass: Why wouldn't I split it into 2 modules, 1 for extenting and 1 for including?
<jhass> I said it's the most common pratice?!
<dEPy> oh
<dEPy> :)
<dEPy> jhass: I thought you said self.included + base.class_eval was the common practice. sry :)
alexju has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 260 seconds]
nfk has joined #ruby
tkuchiki_ has joined #ruby
robbyoconnor has quit [Ping timeout: 260 seconds]
startupality has quit [Quit: startupality]
tkuchiki has quit [Ping timeout: 255 seconds]
belozi has joined #ruby
Macaveli has joined #ruby
<belozi> hey all
masak has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
alexju has joined #ruby
<apeiros> dEPy: sadly self.included + shenanigans is common practice. it's a bad one IMO, though.
robbyoconnor has joined #ruby
startupality has joined #ruby
<dEPy> apeiros: why is it a bad one?
<masak> so, when I do `sudo apt-get install ruby` on Linux Mint, I get Ruby 1.9.1. but I know Ruby 2.1 is out since last year. what's up with that?
lxsameer has joined #ruby
<belozi> Can someone tell me why this code isn't updating the x and y values? https://i.imgur.com/t2UUtag.png
<jhass> masak: ask your distribution. also look out for ruby2.0 or so packages
<jhass> belozi: use gist.github.com to share code ;)
kyb3r_ has joined #ruby
<masak> jhass: there is indeed a ruby2.0 one.
<apeiros> dEPy: a) it's needless magic. b) it violates "don't mutate your argument"
<masak> jhass: there isn't a ruby2.1 one :)
startupality has quit [Client Quit]
<dEPy> apeiros: ok tnx
<masak> jhass: would you recommend uninstalling Ruby 1.9.1 before installing ruby2.0?
<jhass> belozi: the issue is that you're creating new local variables inside move_forward, you don't change the outer ones
<apeiros> when I do X.include Y, I expect Y to be included into X. not any number of unexpected side effects
TripTastic has joined #ruby
devdazed has quit [Ping timeout: 244 seconds]
jdj_dk_ has quit [Ping timeout: 255 seconds]
<jhass> masak: I don't know Linux Mint
<masak> jhass: what's the biggest reason for Ruby 2.x not being the default Ruby that gets installed? or is that another "ask your distribution" question?
<jhass> masak: ask your distribution
<masak> oki
<masak> thank you.
japed has joined #ruby
<jhass> belozi: the proper solution would be returning the new values from move_forward or making that a class and x and y instance variables
troulouliou_dev has joined #ruby
jottr has joined #ruby
Ilyas has quit [Ping timeout: 240 seconds]
<jhass> belozi: also note that you have a space too much in your method definition, it ends up being equivalent to def move_forward((d))
xcv has joined #ruby
devdazed has joined #ruby
<jhass> belozi: oh and you seem to use magic values like 0 for up, 1 for down etc. Don't do that, use symbols like :up, :down, :left and :right
<jhass> and name d direction, avoid single letter variable names
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xcv_ has joined #ruby
morenoh150 has left #ruby ["WeeChat 0.4.3"]
<apeiros> jhass:
tiguser has quit [Ping timeout: 260 seconds]
startupality has joined #ruby
<jhass> I wonder if he's still listening :P
<belozi> I am
<belozi> I just confused and nothing is working
<belozi> *I'm
tiguser has joined #ruby
<jhass> see, once you do an assignment inside the method, x and y outside the method are different variables than those inside. That's why they're called local variables, they're local to the current scope
xcv has quit [Ping timeout: 250 seconds]
<belozi> ok
PeterBoy has joined #ruby
<belozi> I understand that
<belozi> hmmm...
TripTastic has left #ruby ["Leaving"]
stef_204 has joined #ruby
workmad3 has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
sk87 has joined #ruby
asdasdasdasss has joined #ruby
sk87 has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
starless has quit [Quit: Leaving]
<Hanmac> hey for the ruby source, what is the difference between default_gems ("defs/default_gems") and bundled gems ("gems/bundled_gems") ?
<belozi> This doesn't work either: https://gist.github.com/belozi/4663963ebc965d1cc0e9
<belozi> not that it would help
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
<jhass> after a return no code is run
<jhass> so you return the modified value and do nothing with it
<jhass> the puts code is never reached
<belozi> I need to run that method and have it work on values outside of that method
<belozi> I've tried everything
asdasdasdasss has quit [Ping timeout: 264 seconds]
razum2um has joined #ruby
tjr9898 has joined #ruby
<belozi> This is just a piece of a bigger program
<anddam> bye
anddam has left #ruby ["WeeChat 0.4.3"]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<jhass> belozi: as said, make it return both values or make the whole thing a class and @x and @y instance variables
jmbrown412 has joined #ruby
cantonic has quit [Quit: cantonic]
shredding has joined #ruby
dEPy has quit [Quit: Computer has gone to sleep.]
cpruitt has quit [Quit: cpruitt]
amacou has joined #ruby
kireevco has joined #ruby
jmbrown412 has quit [Ping timeout: 272 seconds]
Morkel has quit [Quit: Morkel]
<belozi> How do I make it return both values? I don't understand
startupality has quit [Quit: startupality]
arup_r_ has quit []
fgo has joined #ruby
arup_r has joined #ruby
Sie00 has joined #ruby
amacou has quit [Ping timeout: 260 seconds]
stef_204 has joined #ruby
<jhass> by returning an array. def move_forward(direction, current_x, current_y); ....; [current_x, current_y]; end; current_x, current_y = move_forward(:up, current_x, current_y)
startupality has joined #ruby
OffTheRails has joined #ruby
gauravagarwalr has quit [Remote host closed the connection]
wpp has joined #ruby
<jhass> though I think the make it a class option is better: class Position; attr_reader :x, :y; def initialize; @x = 0; @y = 0; end; def move_forward(direction); case direction; ...; @x += 1; ...; end; end; position = Position.new; position.move_forward(:up); puts position.x, position.y;
cg433n has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
startupality has quit [Client Quit]
<wpp> Is there a short way to get the diff of 2 arrays, which is does dependend on the order of the operands (-)
GriffinHeart has quit [Remote host closed the connection]
iteratorP has quit [Remote host closed the connection]
<OffTheRails> wpp, explain? give two example arrays and your desired output
workmad3 has quit [Ping timeout: 255 seconds]
<wpp> [1,2] diff [2,3,4] == [1,3,4] [2,3,4] diff [1,2] == [1,3,4]
<jhass> can they be sets?
SilkFox_ has joined #ruby
Ilyas has joined #ruby
<Hanmac> >> [1,2] ^ [2,3,4]
<eval-in> Hanmac => undefined method `^' for [1, 2]:Array (NoMethodError) ... (https://eval.in/177333)
<crome> a1 - a2 | a2 - a1
<jhass> >> require 'set'; Set.new([1,2])^Set.new([2,3,4])
<eval-in> jhass => #<Set: {3, 4, 1}> (https://eval.in/177334)
<wpp> crome is | union right?
<crome> yep
<wpp> jhass sorry gotta deal with arrays :(
<Hanmac> ahh set does have xor
<wpp> ok stupid question: why is ^ not defined on Array?
Sie00 has quit [Ping timeout: 260 seconds]
<wpp> is this usecase so far fetched?
cg433n has quit [Ping timeout: 260 seconds]
<crome> you can define it :)
hamakn has quit [Remote host closed the connection]
<wpp> crome haha yeah I will but just wondering why this is not in stdlib :)
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilkFox_ has quit [Ping timeout: 272 seconds]
<belozi> I have to read a text file that has the original coordinates and the R for right, L for Left, and Move for moving one space forward
<crome> belozi: stop right there
<crome> show an example and tell us what you want to achieve
bjornar has joined #ruby
bluenemo has joined #ruby
arya_ has quit [Quit: sayonara^_^]
kaiwren has quit [Quit: kaiwren]
<OffTheRails> wpp, this probably isn't efficient, but this works:
<OffTheRails> >> ([2,3,4]+[1,2]).select { |i| arr.count(i) == 1 }
<eval-in> OffTheRails => undefined local variable or method `arr' for main:Object (NameError) ... (https://eval.in/177335)
<belozi> The program is supposed to find the position after the move commands
<OffTheRails> damn. just a sec
jdj_dk_ has joined #ruby
kaiwren has joined #ruby
startupality has joined #ruby
basiclaser has quit [Excess Flood]
<OffTheRails> wpp, >> arr = ([2,3,4]+[1,2]); arr.select { |i| arr.count(i) == 1 }
<OffTheRails> >> arr = ([2,3,4]+[1,2]); arr.select { |i| arr.count(i) == 1 }
<eval-in> OffTheRails => [3, 4, 1] (https://eval.in/177336)
lxsameer has quit [Ping timeout: 272 seconds]
basiclaser has joined #ruby
Xiti` has joined #ruby
hakunin_ has joined #ruby
decoponyo has joined #ruby
gogohome has quit [Quit: gogohome]
InfraRuby has joined #ruby
gauke_ has joined #ruby
tfittsy has joined #ruby
tkuchiki has joined #ruby
JBreit has joined #ruby
Wolland has joined #ruby
FDj_ has joined #ruby
bhuey_ has joined #ruby
matrixis1 has joined #ruby
willgorm- has joined #ruby
Bish has joined #ruby
maloik has joined #ruby
ccooke_ has joined #ruby
tekk has joined #ruby
binw has quit [Ping timeout: 250 seconds]
wmoxam_ has joined #ruby
QKO_ has joined #ruby
devdazed has quit [Ping timeout: 245 seconds]
nopc0de has quit [Ping timeout: 245 seconds]
gauke has quit [Ping timeout: 245 seconds]
willgorman has quit [Ping timeout: 245 seconds]
kaiwren has quit [Read error: Connection reset by peer]
tkuchiki_ has quit [Ping timeout: 245 seconds]
csfranci1 has quit [Ping timeout: 245 seconds]
snapcase has quit [Ping timeout: 245 seconds]
Mattx has quit [Ping timeout: 245 seconds]
Liothen has quit [Ping timeout: 245 seconds]
tekku has quit [Ping timeout: 245 seconds]
ccooke has quit [Ping timeout: 245 seconds]
gauke_ is now known as gauke
decoponio has quit [Ping timeout: 245 seconds]
wackobob1y has quit [Ping timeout: 245 seconds]
Gnubie_ has quit [Ping timeout: 245 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
snapcase has joined #ruby
Bish_ has quit [Ping timeout: 240 seconds]
maloik_ has quit [Ping timeout: 240 seconds]
matrixise has quit [Ping timeout: 240 seconds]
bhuey has quit [Ping timeout: 240 seconds]
Alina-malina has quit [Ping timeout: 240 seconds]
FDj has quit [Ping timeout: 240 seconds]
wmoxam has quit [Ping timeout: 240 seconds]
tfitts has quit [Ping timeout: 240 seconds]
hakunin has quit [Ping timeout: 240 seconds]
jeekl has quit [Ping timeout: 240 seconds]
QKO has quit [Ping timeout: 240 seconds]
Xiti has quit [Ping timeout: 240 seconds]
Dr3amc0d3r|away has quit [Ping timeout: 240 seconds]
redondos has quit [Excess Flood]
bluenemo has quit [Ping timeout: 240 seconds]
redondos- has joined #ruby
duyue has joined #ruby
binw has joined #ruby
csfrancis has joined #ruby
maximski has joined #ruby
Alina-malina has joined #ruby
JBreit has left #ruby [#ruby]
redondos- is now known as redondos
nopc0de has joined #ruby
crome has quit [Quit: brb]
Dr3amc0d3r|away has joined #ruby
wackobobby has joined #ruby
Mattx has joined #ruby
Mattx has quit [Changing host]
Mattx has joined #ruby
jeekl has joined #ruby
duyue2 has quit [Ping timeout: 240 seconds]
bluenemo has joined #ruby
duyue has quit [Read error: Connection reset by peer]
Wolland has quit [Ping timeout: 264 seconds]
Gnubie_ has joined #ruby
Trynemjoel has joined #ruby
devdazed has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
duyue has joined #ruby
clauswit_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PeterBoy has quit [Remote host closed the connection]
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
tkuchiki has quit [Read error: Connection reset by peer]
gogohome has joined #ruby
tkuchiki_ has joined #ruby
PeterBoy has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
gauravagarwalr has joined #ruby
philcrissman has joined #ruby
<OffTheRails> is there shorthand for this?
duyue has quit [Read error: Connection reset by peer]
<OffTheRails> [1,2,2].group_by { |e| e }
<OffTheRails> ?
<OffTheRails> >> [1,2,2].group_by(&:to_i)
<eval-in> OffTheRails => {1=>[1], 2=>[2, 2]} (https://eval.in/177343)
<OffTheRails> but feels should be another way?
Liothen has joined #ruby
<Hanmac> OffTheRails: ruby-trunk: itself
<OffTheRails> Hanmac, show code
mongag has joined #ruby
<mongag> I have seen a lots of these in rails configs config.cache_classes = false
<OffTheRails> hmm
arturaz has joined #ruby
max06 has quit [Quit: Leaving.]
tkuchiki has quit [Ping timeout: 260 seconds]
<OffTheRails> great, but Hanmac, how does that exist in practise?
jdj_dk_ has quit [Ping timeout: 244 seconds]
philcrissman has quit [Ping timeout: 240 seconds]
<OffTheRails> [1,2,2].group_by { |e| e } == ?
<Hanmac> [1,2,2].group_by(&:itself)
<OffTheRails> >> [1,2,2].group_by(&:itself)
<eval-in> OffTheRails => undefined method `itself' for 1:Fixnum (NoMethodError) ... (https://eval.in/177344)
oo_ has quit [Remote host closed the connection]
<mongag> I have seen a lot's of there config.action_mailer.raise_delivery_errors = false in rails but I don't know what it is. It's not a variable, hash or array so?
cpruitt has joined #ruby
duyue has joined #ruby
<Hanmac> OffTheRails: i said ruby trunk ... why is no one listening?
cpruitt has quit [Client Quit]
<OffTheRails> so it doesn't exist in practice. why is nobody listening?
InfraRuby has left #ruby [#ruby]
<OffTheRails> what can I use now. that's the question
<OffTheRails> not what is in ruby-trunk
<Hanmac> OffTheRails: it will be usable in practice but the commit is not released yet... that change was only 6 days ago
<OffTheRails> is there a shorter form in the mean time that you know of, Hanmac?
Rahul_Roy has joined #ruby
<Hanmac> class Object; def itself; self; end; end
<OffTheRails> ahh, guess not
Wolland has joined #ruby
skylite has left #ruby ["Textual IRC Client: www.textualapp.com"]
tewlz has joined #ruby
hamakn has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
cpruitt has joined #ruby
tokik has quit [Ping timeout: 245 seconds]
<shevy> lol
asdasdasdasss has joined #ruby
Wolland has quit [Ping timeout: 255 seconds]
mbwe has quit [Quit: WeeChat 0.4.2]
arturaz has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 260 seconds]
goodenough has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 272 seconds]
robbyoconnor has quit [Ping timeout: 260 seconds]
crome has joined #ruby
kireevco has quit [Ping timeout: 246 seconds]
robbyoconnor has joined #ruby
asdasdasdasss has quit [Ping timeout: 264 seconds]
AlSquire has joined #ruby
mbwe has joined #ruby
phinfonet has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
tiguser has quit [Ping timeout: 272 seconds]
<shevy> >> def foo **; end; foo(:a => 3)
<eval-in> shevy => nil (https://eval.in/177347)
<shevy> >> def foo **; end; foo("a" => 3)
<eval-in> shevy => wrong number of arguments (1 for 0) (ArgumentError) ... (https://eval.in/177348)
dangerousdave has joined #ruby
<shevy> Hanmac, can you explain this
mclee has joined #ruby
belozi has quit [Read error: Connection reset by peer]
<Hanmac> shevy **opts are only for kargs ... that one is not ... :/
<shevy> hmm
devdazed has quit [Ping timeout: 240 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
Snowstormer has joined #ruby
autonomousdev has joined #ruby
shredding has quit [Quit: shredding]
devdazed has joined #ruby
fgo has joined #ruby
autonomousdev has quit [Client Quit]
tkuchiki has joined #ruby
Ayey_ has quit [Ping timeout: 250 seconds]
tiguser has joined #ruby
robbyoconnor has quit [Ping timeout: 250 seconds]
teddyp1cker has joined #ruby
robbyoconnor has joined #ruby
Miron has joined #ruby
autonomousdev has joined #ruby
sergiomiranda has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
phoo1234567 has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
xcv_ has quit [Remote host closed the connection]
phoo1234567 has quit [Max SendQ exceeded]
klaut has quit [Remote host closed the connection]
phoo1234567 has joined #ruby
clauswitt has joined #ruby
bewees has joined #ruby
klaut has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
SilkFox_ has joined #ruby
Akagi201 has quit []
<apeiros> <3 rubydocs… "Raises an exception on any error." (File.unlink)
<apeiros> very (un)helpful :(
<shevy> haha
<shevy> you need to think like a japanese there
lkba has joined #ruby
klaut has quit [Ping timeout: 255 seconds]
SilkFox_ has quit [Ping timeout: 240 seconds]
jdj_dk has joined #ruby
mongag has quit [Quit: Leaving]
kireevco has joined #ruby
devdazed has quit [Ping timeout: 255 seconds]
GlenK has quit []
<apeiros> wow, and ruby C coding style-- :-S
<shevy> apeiros is in nirvana - a place of sheer happiness
<apeiros> braces-less if with the action indented the same as the condition… horror
<gogohome> hello shevy , are you happy?
teddyp1cker has quit [Remote host closed the connection]
gaussblurinc1 has quit [Quit: Leaving.]
Wolland has joined #ruby
devdazed has joined #ruby
<shevy> omg he is back
<apeiros> *sob*, so many indirections
<ddv> :|
<shevy> wasamasa, are you awake?
<gogohome> why?
<gogohome> i will learn ruby?
<ddv> never
<shevy> lol
claymore has joined #ruby
<wasamasa> shevy: nope
<wasamasa> shevy: I'm still sleepy and discussing stuff at work
PeterBoy has quit [Remote host closed the connection]
<wasamasa> shevy: I'm pretty surprised programming not only involves writing code
Takle_ has quit []
<shevy> wasamasa ok... gogohome is back
cobakobodob has quit [Ping timeout: 272 seconds]
<shevy> gogohome, shall wasamasa unban you?
<gogohome> why?
<gogohome> i just want learn ruby.
Takle has joined #ruby
Wolland has quit [Ping timeout: 244 seconds]
<shevy> you never read a ruby book man
<wasamasa> lol
<wasamasa> don't you know learning with books is not cool anymore
<gogohome> i read it too much.
<gogohome> :(
<shevy> gogohome why does the keyword "yield" do in ruby?
<shevy> *what
<gogohome> yield is call block.
<shevy> good
<shevy> perhaps there is hope for you
<gogohome> haha yw
<gogohome> thanks
<ddv> gogohome: explain to me what blocks are
tewlz has quit [Ping timeout: 260 seconds]
Ayey_ has joined #ruby
TorpedoSkyline has joined #ruby
<gogohome> ddv block is namelsee function that can take paramter as ||
<gogohome> how about? ddv
Xeago has quit [Remote host closed the connection]
<gogohome> right?
<apeiros> gogohome: not correct, but an acceptable answer IMO
<apeiros> i.e., close enough
<ddv> gogohome: Ruby blocks are syntax literals for Proc objects, defined as instructions between curly braces {} (or do...end phrases for multiline blocks, which have lower precedence than curly braces) which may optionally take arguments and return values (e.g. {|x,y| x+y}). Procs are first-class objects and can be constructed explicitly or attained implicitly as method pseudo-arguments
<gogohome> thanks then i can stay here ?
ldnunes has joined #ruby
parzo has quit [Ping timeout: 272 seconds]
<apeiros> "ddv: gogohome: Ruby blocks are syntax literals for Proc objects" not correct
<gogohome> oh i see. thanks ddv
<ddv> explain apeiros
<apeiros> a block only becomes a Proc instance if you a) pass it to proc or lamba, or b) pass it to a method which has a &block param
<apeiros> otherwise no Proc instance is being created
<ddv> apeiros: ok
<gogohome> apeiros >> ddv >> shevy
<gogohome> right?
<shevy> yeah
<shevy> he can ban your ass
<shevy> I can't :(
<apeiros> /assban ?
<gogohome> apeiros: >> ddv >>>>>>>>>>>> shevy
<ddv> gogohome: there is always someone who is better
<ddv> stay humble
<gogohome> oh i see.
<gogohome> ddv:
<shevy> lol
<gogohome> :)
<ddv> except is my case, since i'm a genius <3
<ddv> in*
sk87 has joined #ruby
<gogohome> ddv: what is IQ?
<gogohome> my IQ is 154.
<ddv> I have no idea
<gogohome> why? too low?
<shevy> ddv you typoed man
<ddv> they couldn't measure my IQ because it's that high
<apeiros> my IQ is 28
<ddv> shevy: :|
<shevy> gogohome is just punking you
<wasamasa> shevy: did you just say there's hope for gogohome
<shevy> :(
<shevy> wasamasa he tricked me!
<wasamasa> shevy: I think I have to cut you down
<gogohome> how man’s iQ can be 28? mabe be chicken head?
<shevy> wasamasa he gave a good answer to the question of what yield is though
<wasamasa> shevy: to quote from the last manga I've read
<apeiros> gogohome: don't insult my head!
<wasamasa> shevy: lots of samurai who cut each other down with these words
<shevy> man, manga are so sick
<wasamasa> yep
<ddv> I was surprised by his answers
<gogohome> ok i see apeiros
Cereal` has joined #ruby
<shevy> samurai ... ninja ... superpowers ... boobs ...
<wasamasa> ddv: careful, search engines
devdazed has quit [Ping timeout: 240 seconds]
<ddv> He saved his ass for the time being
<gogohome> but how can be too low 28?
<gogohome> anyway i see.
<ddv> wasamasa: the thing you accuse me of his also applicable to yourself
<ddv> :P
<ddv> is*
<apeiros> gogohome: note that I currently consider you to be a disturbance in this channel. please restrict yourself to ruby specific questions. I'll kickban you otherwise.
SchweetPapa has quit [Ping timeout: 255 seconds]
jonr22 has joined #ruby
<shevy> ddv happened to me as well
parzo has joined #ruby
<gogohome> ok i will concenstrate on ruby
<gogohome> :(
<shevy> ddv his awful english causes me to reply in awful english as well :(
gattuso has quit [Read error: Connection reset by peer]
<shevy> "concenstrate"
<shevy> is this like castrate
<ddv> shevy: :'(
<wasamasa> ddv: I don't claim to know ruby
<wasamasa> ddv: didn't ask stuff about it either
<wasamasa> ddv: definitely not in that engrish
<shevy> wasamasa you really think he uses google to find answers to questions given to him?
<wasamasa> shevy: who knows :P
jonr22 has quit [Client Quit]
<wasamasa> shevy: nothing surprised me anymore on freenode
<shevy> hahaha
devdazed has joined #ruby
<apeiros> on the same note @ all others: if you keep talking about it, you don't help. if he annoys you, STOP TALKING ABOUT IT.
<apeiros> I can't give him a stern warning while you keep chatting about it/him. that's just unfair.
<wasamasa> ok, I guess you're right
<ddv> apeiros: op stands for oppression
<shevy> op stands for opinionated :>
timonv_ has joined #ruby
<shevy> gogohome has all the freedom in the world to learn ruby!
<shevy> wasamasa and I shall teach him
<apeiros> ddv: in this case in the name of all those who cried "I'm annoyed!". I didn't kick/ban him in the first instance, because strictly speaking he didn't violate any rules by which I kick/ban.
<ddv> :) ok
<wasamasa> apeiros: it was Mon_Ouie who did, yes
<apeiros> correct
lkba has quit [Ping timeout: 244 seconds]
devdazed has quit [Max SendQ exceeded]
<apeiros> IMO it's a case for /ignore
<gogohome> apeiros: you are good ruby programmer.
<apeiros> and that's the last I say about this.
<gogohome> :)
jdj_dk has quit [Ping timeout: 272 seconds]
krisquigley has joined #ruby
devdazed has joined #ruby
<gogohome> 3 others are reverse.
lxsameer has joined #ruby
<gogohome> wasamasa: shevy ddv
gogohome has left #ruby [#ruby]
<wasamasa> wait, did you just force him to part
<shevy> lol
<OffTheRails> ha
<OffTheRails> good
<wasamasa> or did he part prematurely
<apeiros> the mere presence of that @ scared him
<shevy> LOL
<shevy> now that's significantly more hilarious than an actual kick
<shevy> it's like intimidation without effort
<wasamasa> I already wanted to comment about mischievous people who react to good will by annoying you more
<OffTheRails> didn't he leave so he wasn't kicked so he can come back later?
<wasamasa> ^
<apeiros> it'd be more hilarious if I now went on to remove a couple of bans, because that's what I intended to do
<wasamasa> lol
<apeiros> OffTheRails: kick doesn't stop you from coming back
<apeiros> only ban does
<OffTheRails> ahh right
<apeiros> and I can ban you after you've left too
<OffTheRails> I was thinking that
<wasamasa> the mere ban doesn't prevent you from seeing things said on the channel
<apeiros> but might still have been his line of thought
<wasamasa> you have to be kicked/disconnected for that to happen
<wasamasa> hence both get combined
<apeiros> wasamasa: with your client, yes, it prevents you from seeing.
<apeiros> wasamasa: but there's irclog
<apeiros> wasamasa: ah
<wasamasa> apeiros: no, I mean if you're online and someone bans you
<apeiros> wasamasa: misunderstood you. yes. ban alone doesn't remove you from the channel
<wasamasa> apeiros: you're still connected
MartinCleaver has joined #ruby
<apeiros> ban prevents reentry. kick removes from channel. so usually ban -> kick
<wasamasa> apeiros: must be why people speak of kickbans
<ddv> just bribe a freenode staffer
<wasamasa> wound bankick be more correct then?
<apeiros> yes. but kick->ban has the disadvantage that you often have to kick again because of auto-rejoin
<ddv> kline
PeterBoy has joined #ruby
lxsameer has quit [Ping timeout: 245 seconds]
<apeiros> wasamasa: a good client gives you a button and probably does it indeed in the order ban->kick. and because it happens so fast it's not an issue. however, limechat is a bad client for ops :-(
<apeiros> *in the order kick->ban (hence the name)
tewlz has joined #ruby
hamakn has joined #ruby
* wasamasa uses an extensible irc client
<apeiros> limechat originally was in ruby :-/
<ddv> textual ftw
<ddv> although I use weecaht also in a tmux
<wasamasa> I only know of limechat since a friend of mine uses osx and didn't like my suggestion to go for macirssi
yokel has quit [Ping timeout: 250 seconds]
<apeiros> I should still try textual
<ddv> textual is pretty decent
<apeiros> ddv: extensible via ruby?
<ddv> no idea to be honest
asdasdasdasss has joined #ruby
<apeiros> but they're CLI style. start - process - die
<apeiros> nothing that keeps running
<apeiros> might consider an offsite DRb instance
teddyp1cker has joined #ruby
<ddv> ok
gaussblurinc1 has joined #ruby
anarang_ has joined #ruby
<ddv> I believe textual was forked off limechat
<apeiros> sounds rather underwhelming. especially compared to things like mirc or xchat scripting
<DefV> irssi
<DefV> .
Hobogrammer has quit [Ping timeout: 260 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CpuID has quit [Ping timeout: 272 seconds]
<ddv> nah weechat is better than irssi
<apeiros> macirssi still a shell app?
cobakobodob has joined #ruby
top4o has joined #ruby
devdazed has quit [Ping timeout: 250 seconds]
<OffTheRails> helper bot in here?
<OffTheRails> docs?
himsin has quit [Quit: himsin]
<apeiros> !docs
<apeiros> !docs OffTheRails
<OffTheRails> no I mean docs for the helpa bot
<apeiros> hm, sad. no "inform X about Y"
<apeiros> !?
<helpa> ???
<apeiros> heh
<apeiros> no idea
<OffTheRails> I like to read the commands and see common links/suggestions/resources/responses
asdasdasdasss has quit [Ping timeout: 255 seconds]
devdazed has joined #ruby
<wasamasa> apeiros: last time I used it it was a gui interface over irssi
cg433n has joined #ruby
ArchBeOS_ has quit [Changing host]
ArchBeOS_ has joined #ruby
ArchBeOS_ is now known as SysArchBeOS
<robscormack> g'morning
pontiki has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
xcv has joined #ruby
<OffTheRails> apeiros, think it's same bot used over at #rubyonrails
<OffTheRails> could you try !django ?
aclearman037 has joined #ruby
amacou has joined #ruby
cg433n has quit [Ping timeout: 272 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
vsoftoiletpaper has joined #ruby
devdazed has quit [Ping timeout: 255 seconds]
teddyp1cker has quit []
phutchins has joined #ruby
fgo has joined #ruby
<apeiros> OffTheRails: yes, it is the same bot
professor_soap has joined #ruby
<apeiros> OffTheRails: different users on the same network can't use the same nae
<apeiros> *name
<OffTheRails> ahh
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
krisquigley has quit [Remote host closed the connection]
amacou has quit [Ping timeout: 272 seconds]
gattuso has joined #ruby
rixius has joined #ruby
mrommelf has joined #ruby
rixius is now known as Guest81845
wpp has quit []
fgo has quit [Ping timeout: 260 seconds]
gaussblurinc1 has joined #ruby
maximski has quit []
yokel has joined #ruby
SysArchBeOS has left #ruby [#ruby]
techsethi has quit [Quit: techsethi]
gaussblurinc1 has quit [Client Quit]
kireevco has quit [Ping timeout: 260 seconds]
devdazed has joined #ruby
SilkFox_ has joined #ruby
hamakn has quit [Ping timeout: 260 seconds]
lanox has joined #ruby
xcv_ has joined #ruby
PeterBoy has quit [Remote host closed the connection]
bluenemo has quit [Ping timeout: 240 seconds]
PeterBoy has joined #ruby
xcv has quit [Read error: Connection timed out]
SilkFox_ has quit [Ping timeout: 245 seconds]
ziyadb has joined #ruby
jdj_dk has joined #ruby
anarang_ has quit [Quit: Leaving]
x1337807x has joined #ruby
anarang has quit [Remote host closed the connection]
anarang has joined #ruby
gogohome has joined #ruby
brianherman has joined #ruby
gogohome has left #ruby [#ruby]
InfraRuby has joined #ruby
TDJACR has quit [Ping timeout: 250 seconds]
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brianherman has quit [Client Quit]
mrommelf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dRbiG has joined #ruby
RandyT has joined #ruby
himsin has joined #ruby
Cyrax_ has joined #ruby
Wolland has joined #ruby
philcrissman has joined #ruby
arup_r_ has joined #ruby
mrommelf has joined #ruby
Ilyas_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has quit [Ping timeout: 250 seconds]
farn has joined #ruby
bluenemo has joined #ruby
TieSoul has joined #ruby
Ilyas has quit [Ping timeout: 246 seconds]
wpp has joined #ruby
philcrissman has quit [Ping timeout: 272 seconds]
sk87 has joined #ruby
bluenemo has quit [Read error: Connection reset by peer]
lkba has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
PeterBoy has quit [Remote host closed the connection]
PeterBoy has joined #ruby
pothibo has joined #ruby
TorpedoSkyline has joined #ruby
davispuh has quit [Remote host closed the connection]
mr_foobar_baz has joined #ruby
TieSoul_ has joined #ruby
mrbrklyn has quit [Ping timeout: 255 seconds]
LekeFly has joined #ruby
TieSoul has quit [Ping timeout: 255 seconds]
nateberkopec has joined #ruby
kireevco has joined #ruby
TieSoul_ is now known as TieSoul
Solnse has joined #ruby
britneywright has joined #ruby
jdj_dk has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby
rafaelcaricio has joined #ruby
shredding has joined #ruby
Shakyj has joined #ruby
sambao21 has joined #ruby
himsin has quit [Quit: himsin]
jgt has joined #ruby
gaussblurinc1 has joined #ruby
<Shakyj> Hey, I am trying to install gitlabs and gitlabs_ci on the same box. Both use unicorn but have different setups / configs. if I try to start one after the other it fails for obvious clash reasons. How do I get round this? Not a ruby dev so I have no clue about unicorn
<jhass> -p 1337
<jhass> (just choose a different port for one)
<ddv> they don't run on the same ports by default
<ddv> not sure what you did
<Shakyj> dvv copy and paste job :D
InfraRuby has left #ruby [#ruby]
joonty has quit [Quit: Leaving]
<jhass> so you copy pasted gitlabs's unicorn.rb to gitlab-ci or what?
<Shakyj> no, copy and pasted the commands from the install file
<jhass> ddv: actually looks like the listen on the same ports by default
<Shakyj> so I have no clue what I did
<Pro|> if i have begin rescue end, how can i throw error in begin to get in to rescue
vsoftoiletpaper has quit []
<ddv> weird we are running gitlab/gitlab ci for ages on the same vps
<Shakyj> it has an init script you copy to init.d so going to have a dig in there for port
<Pro|> raise doesn't seem to go to rescue
<jhass> Pro|: it should, show your code
<Shakyj> sweet, that worked a treat thanks guys
InhalingPixels has joined #ruby
<ddv> I didn the default install, only thing I changed was using rbenv instead of a global ruby
<ddv> did*
<tewlz> what's a good way to find out where an instance method comes from? I've never heard of .bindings(), only ever seen .binding
Sgeo has quit [Read error: Connection reset by peer]
asdasdasdasss has joined #ruby
mrbrklyn has joined #ruby
r0bby_ has joined #ruby
<jhass> tewlz: looking at the docs for the class of your object
<shevy> docs could lie
<jhass> tewlz: alternatively in pry ? obj.bindings and $ obj.bindings
Grantlyk has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
dblessing has joined #ruby
<jhass> tewlz: in if you're desperate: .method(:bindings).source_location
<tewlz> jhass: yeah I'm checking the github for sparql client, this thing is an RDF::Query::Solution and I can't even call .methods on it
devdazed has quit [Ping timeout: 240 seconds]
jgt has quit [Remote host closed the connection]
<jhass> hm you should, it inherits from Object
nszceta has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devdazed has joined #ruby
<tewlz> jhass: found it in a dependency for my gem, thanks for the help
<gregf_> { package HTML::Sanitizer; use Moose::Role;use HTML::Entities; sub sanitize { my ($self, $params) = @_; $params ||= $self->params; foreach (keys %$params ){ if ( ref $params->{$_} ){ $self->sanitize( $params->{$_} ); $params->{$_} = $params->{$_}; } else { $params->{$_} = encode_entities($params->{$_}); } } } no Moose::Role; } <= include this in that class
r0bby_ has quit [Remote host closed the connection]
<gregf_> bah :/ sorry
robbyoconnor has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
<tewlz> still not sure why I can't call .ancestors and .methods on it though :(
definiv has joined #ruby
r0bby_ has joined #ruby
asdasdasdasss has quit [Ping timeout: 260 seconds]
magikfx__ has joined #ruby
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
anaeem1_ has quit [Remote host closed the connection]
flowerhack has quit [Remote host closed the connection]
basiclaser has quit [Excess Flood]
maximski has joined #ruby
jgt has joined #ruby
qba73 has quit [Read error: Connection reset by peer]
sonOfRa has joined #ruby
basiclaser has joined #ruby
qba73 has joined #ruby
LekeFly has quit [Quit: Textual IRC Client: www.textualapp.com]
mrommelf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yokel has quit [Ping timeout: 260 seconds]
yokel has joined #ruby
fgo has joined #ruby
mr_foobar_baz has quit [Quit: WeeChat 0.4.3]
<sonOfRa> Users of net-ldap around? I have a full DN, and I want to get that entry directly via its DN, rather than doing a search with the base DN and a specific filter. Is this possible?
workmad3 has joined #ruby
workmad3 has quit [Client Quit]
thams has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
jgt has quit [Remote host closed the connection]
thams has quit [Client Quit]
jgt has joined #ruby
Grantlyk has quit [Read error: Connection reset by peer]
amundj has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 246 seconds]
Grantlyk has joined #ruby
babykosh has joined #ruby
iamjarvo has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
PeterBoy has quit [Remote host closed the connection]
jottr has joined #ruby
Ayey_ has quit [Ping timeout: 260 seconds]
dEPy has joined #ruby
wpp has quit [Quit: ZZZzzz…]
krisquigley has joined #ruby
razum2um1 has joined #ruby
nowthatsamatt has joined #ruby
asmodlol has joined #ruby
claymore has quit [Quit: Leaving]
Zenigor has joined #ruby
iamjarvo has quit [Client Quit]
kiri has joined #ruby
SilkFox_ has joined #ruby
zkay11 has joined #ruby
razum2um has quit [Ping timeout: 240 seconds]
Grantlyk has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 260 seconds]
r0bby_ has quit [Max SendQ exceeded]
dEPy has quit [Quit: Lingo - http://www.lingoirc.com]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
r0bby_ has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
kiri has quit [Ping timeout: 250 seconds]
discr33t_ has joined #ruby
SilkFox_ has quit [Ping timeout: 250 seconds]
jdj_dk has joined #ruby
<discr33t_> does anyone know how to specify a range of ip addresses using ruby?
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<discr33t_> i'm trying to pull an ipaddress from a group of servers and if it is in a certain range classify them to the appropriate security zone
<jhass> discr33t_: IPAddr from ipaddr stdlib should be usable in ranges
<discr33t_> jhass: thanks i'll take a look at that
vsoftoiletpaper has joined #ruby
sailias has joined #ruby
r0bby_ has quit [Remote host closed the connection]
r0bby_ has joined #ruby
PeterBoy has joined #ruby
Wolland has joined #ruby
livingstn has joined #ruby
echooo has quit [Quit: echooo]
professor_soap has quit []
marr has quit []
starkhalo has joined #ruby
r0bby_ has quit [Max SendQ exceeded]
Grantlyk has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
r0bby_ has joined #ruby
n1lo_ has joined #ruby
patrick99e99 has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
kireevco has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
n1lo has quit [Ping timeout: 240 seconds]
cg433n has joined #ruby
jgt has quit [Read error: Connection reset by peer]
blueOxigen has quit [Ping timeout: 250 seconds]
patrick99e99 has quit [Ping timeout: 240 seconds]
jgt has joined #ruby
msmith has joined #ruby
balazs has joined #ruby
tylerkern has joined #ruby
joonty has joined #ruby
r0bby_ has quit [Excess Flood]
r0bby_ has joined #ruby
Ayey_ has joined #ruby
<discr33t_> jhass: i see that i can do an array of ip ranges?
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
<discr33t_> if ['192.168.1.0/24', '192.168.2.0/24'].include?(ipaddress)
<jhass> (IPAddr.new("192.168.0.1/24")..IPAddr.new("192.168.0.255/24")).include? IPAddr.new("192.168.0.20/24")
Ankhers has joined #ruby
krisquigley has quit [Remote host closed the connection]
sk87 has joined #ruby
mikesplain has joined #ruby
krisquigley has joined #ruby
Dr3amc0d3r|away has quit [Changing host]
Dr3amc0d3r|away has joined #ruby
Dr3amc0d3r|away is now known as Dr3amc0d3r
<discr33t_> jhass: where do i specify the variable that has the value of the existing ip address?
Wolland has joined #ruby
Xiti` has quit [Quit: Leaving]
<discr33t_> jhass: oh nevermind i think i got it
Solnse has quit [Ping timeout: 260 seconds]
Xiti has joined #ruby
r0bby_ has quit [Excess Flood]
r0bby_ has joined #ruby
<Shakyj> jhass: have you had experience with gitlabs or did you just look when I asked?
<jhass> I just looked
Ayey_ has quit [Ping timeout: 245 seconds]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Shakyj> ahhh, okies
sputnik13 has joined #ruby
parzo has quit [Ping timeout: 260 seconds]
jdj_dk has quit [Ping timeout: 272 seconds]
mikesplain has quit [Ping timeout: 240 seconds]
krisquigley has quit [Ping timeout: 250 seconds]
echooo has joined #ruby
platzhirsch has joined #ruby
Takle has quit [Remote host closed the connection]
tylerkern has joined #ruby
Grantlyk has quit [Remote host closed the connection]
parzo has joined #ruby
jerius has joined #ruby
arup_r_ has quit []
gtrak has joined #ruby
failshell has joined #ruby
redondo has joined #ruby
<Shakyj> is it easy to run passenger and unicorn together?
snath has quit [Ping timeout: 246 seconds]
<DefV> Shakyj: to do what?
lxsameer has joined #ruby
lxsameer has quit [Remote host closed the connection]
<Shakyj> I am trying to get gitlabs and gitlabs_ci on the same server, the example to decouple gitlabs from an embedded nginx uses passenger but gitlabs_ci uses unicorn
bradleyp_ has quit [Ping timeout: 246 seconds]
failshell has quit [Remote host closed the connection]
Takle has joined #ruby
beef-wellington has joined #ruby
<Shakyj> I don't know any ruby and very little nginx, so my "simple" solution was to follow the guide that uses passenger and run it alongside unicorn
failshell has joined #ruby
jgt has quit [Read error: Connection reset by peer]
<txdv> unicorn?
<DefV> Shakyj: you could run it alongside, but on different ports. Ideally you just want to set up both with passenger
jgt has joined #ruby
<jhass> Shakyj: you're running separate applications, you can pick the appserver for any and always find a configuration that doesn't conflict since they're separate applications
paulfm has joined #ruby
Grantlyk has joined #ruby
asdasdasdasss has joined #ruby
shackleford has joined #ruby
shackleford has quit [Read error: Connection reset by peer]
shackleford has joined #ruby
iamjarvo has joined #ruby
PeterBoy has quit [Remote host closed the connection]
kireevco has joined #ruby
babykosh has quit [Quit: babykosh]
mikesplain has joined #ruby
almostwhitehat has joined #ruby
asdasdasdasss has quit [Ping timeout: 260 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jayunit100_ has joined #ruby
JohnFord has joined #ruby
InfraRuby has joined #ruby
hellangel7 has joined #ruby
Dr3amc0d3r is now known as Dr3amc0d3r|away
sk87 has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
almostwhitehat has quit [Client Quit]
InhalingPixels has joined #ruby
mikesplain has quit [Ping timeout: 245 seconds]
shredding has quit [Quit: shredding]
freerobby has quit [Quit: Leaving.]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
bradleyprice has joined #ruby
balazs has quit [Ping timeout: 255 seconds]
amacou has joined #ruby
djcp has joined #ruby
comma8 has quit [Ping timeout: 250 seconds]
jamesfordummies has joined #ruby
fgo has joined #ruby
abdulsattar has quit [Remote host closed the connection]
<Shakyj> sorry, pulled away for a min, think my best option is keep trying to get gitlabs working with unicorn and nginx, as gitlabs_ci is already working with it. That will keep things simpler
jgt has quit [Remote host closed the connection]
<Shakyj> txdv: it's a http server like passenger
jgt has joined #ruby
eka has joined #ruby
Grantlyk has quit [Read error: Connection reset by peer]
amacou has quit [Ping timeout: 245 seconds]
Dr3amc0d3r|away is now known as Dr3amc0d3r
Grantlyk has joined #ruby
amacou has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
eka has quit [Client Quit]
r0bby_ has quit [Ping timeout: 250 seconds]
eka has joined #ruby
georgelappies has joined #ruby
jgt has quit [Ping timeout: 250 seconds]
androidbruce has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
ffranz has joined #ruby
philcrissman has joined #ruby
msmith has quit [Remote host closed the connection]
maximski has quit []
shredding has joined #ruby
msmith has joined #ruby
geggam has joined #ruby
djcp has left #ruby ["WeeChat 0.4.3"]
SilkFox has joined #ruby
gogohome has joined #ruby
SilkFox_ has joined #ruby
balazs has joined #ruby
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gogohome> who know about ‘arduino’?
beef-wellington has quit [Ping timeout: 272 seconds]
doodlehaus has joined #ruby
philcrissman has quit [Ping timeout: 255 seconds]
InfraRuby has left #ruby [#ruby]
almostwhitehat has joined #ruby
<gogohome> oh thanks jhass
<gogohome> :)
sdwrage has joined #ruby
r0bby_ has joined #ruby
jdj_dk has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
spastorino has joined #ruby
<gogohome> great thanks jhass
<gogohome> ;)
tagrudev has quit [Quit: Me = Awesome]
mijicd has quit [Remote host closed the connection]
mary5030 has joined #ruby
r0bby_ has quit [Ping timeout: 260 seconds]
kevkev_ has quit [Quit: Lingo - http://www.lingoirc.com]
InfraRuby has joined #ruby
mary5030 has quit [Remote host closed the connection]
charliesome has joined #ruby
mary5030 has joined #ruby
r0bby_ has joined #ruby
endash has joined #ruby
Cheezebox has joined #ruby
Takle has quit [Remote host closed the connection]
cocotton has joined #ruby
Morkel has joined #ruby
Cheezebox has quit [Remote host closed the connection]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zorak has quit [Ping timeout: 255 seconds]
zorak has joined #ruby
zz_jrhorn424 is now known as jrhorn424
PeterBoy has joined #ruby
<wasamasa> who knows about search engines?
karupa is now known as zz_karupa
<crome> google "search engines"
<DefV> Matt Cutts
<jhass> google google ?
hamakn has joined #ruby
noop has quit [Ping timeout: 244 seconds]
redlegion has quit [Ping timeout: 255 seconds]
icebourg has joined #ruby
zorak has quit [Ping timeout: 260 seconds]
<txdv> stack overflow
cocotton has quit [Remote host closed the connection]
Ayey_ has joined #ruby
cocotton has joined #ruby
kireevco has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ppinto has joined #ruby
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
tylerkern has joined #ruby
cocotton has quit [Read error: Connection reset by peer]
Squarepy has joined #ruby
cocotton has joined #ruby
aganov has quit [Quit: Leaving]
Ayey_ has quit [Ping timeout: 244 seconds]
Pharaoh2 has quit [Remote host closed the connection]
amargherio has joined #ruby
<eam> who knows about vm modules?
treehug88 has joined #ruby
<eam> er, vx modules
shredding has quit [Quit: shredding]
JohnFord has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cheezebox has joined #ruby
relix has joined #ruby
mleone has joined #ruby
Sleepee has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sergiomiranda has quit [Quit: sergiomiranda]
haasn has quit [Quit: haasn]
jprovazn is now known as jprovazn_afk
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
sambao21 has quit [Quit: Computer has gone to sleep.]
jdj_dk has quit [Ping timeout: 260 seconds]
relix has quit [Client Quit]
tylerkern has joined #ruby
sambao21 has joined #ruby
<discr33t_> can anyone help me figure out how to use the IPAddr function in Ruby to match an ip address against multiple ip address ranges? here is my pastebin. http://pastebin.com/8CaAE3uB i've tried this a ton of different ways and can't get it to work
Advocation has joined #ruby
bMalum_ has joined #ruby
asdasdasdasss has joined #ruby
<apeiros> discr33t_: I suggest you make an actually reproducable example
Cheezebox has quit [Remote host closed the connection]
<apeiros> note: I'm off for commute in a few minutes
<shevy> nooo!
<shevy> don't commute!
haasn has joined #ruby
<apeiros> `IPAddr("10.150.120.0/21") | ("10.150.128.0/21")` should probably be `IPAddr("10.150.120.0/21") | IPAddr("10.150.128.0/21")`
CorpusCallosum has joined #ruby
<apeiros> or even IPAddr.new
goodenough has joined #ruby
<sonOfRa> Can I get net-ldap to return strings instead of arrays for single-element entries?
<discr33t_> apeiros: better example. http://pastebin.com/aAZywqh5
<eam> sonOfRa: if you find out how, let me know
<eam> my code is littered with .first
<sonOfRa> currently I'm getting :dn=>["uid=foo,ou=People,dc=ldap,dc=acme,dc=com"]
<apeiros> I also doubt you actually want IPAddr#|
<sonOfRa> okay, so at least I'm not the only one :)
<apeiros> docs say its bitwise OR
doev has joined #ruby
<sonOfRa> eam: do you happen to know the best way to grab an entry by its DN?
<discr33t_> apeiros: i've tried this: if (IPAddr.new("10.150.120.0/21") | (IPAddr.new("10.150.128.0/21"))).include? IPAddr.new("10.150.130.243") and it didn't work
mikesplain has joined #ruby
<apeiros> discr33t_: also take not that "didn't work" is the *shittiest* problem description ever.
<sonOfRa> .eq('dn', <full-dn-here>), base=""?
<discr33t_> apeiros: it doesn't match the second ip range
<eam> sonOfRa: unsure, I only pretend to understand ldap
PeterBoy has quit [Remote host closed the connection]
<apeiros> discr33t_: I assume by | you want union. but | is bitwise OR
<sonOfRa> I think everyone does.
asdasdasdasss has quit [Ping timeout: 260 seconds]
<eam> pretty happy to have just replaced it, hopefully won't have to use it much going forward
<discr33t_> apeiros: i'm looking for or. basically i want to know if the ip address is within the first range specified or the second range specified
<apeiros> yes. bitwise OR is not the OR you're looking for.
duggiefresh has joined #ruby
<apeiros> >> require 'ipaddr'; IPAddr.new("10.150.120.0/21") | IPAddr.new("10.150.128.0/21")
<eval-in> apeiros => #<IPAddr: IPv4:10.150.248.0/255.255.248.0> (https://eval.in/177401)
<apeiros> discr33t_: take a close look at the result
Takle has joined #ruby
shredding has joined #ruby
<apeiros> >> 120 | 128
<eval-in> apeiros => 248 (https://eval.in/177402)
<apeiros> I think you'll have to use an array and test against each member.
Sid05 has joined #ruby
<apeiros> see .any?
<discr33t_> apeiros: gotcha
bal has quit [Quit: bal]
<discr33t_> apeiros: can i make an array (IPAddr.new("10.150.120.0/21", "10.150.128.0/21")) like that?
dc_ has joined #ruby
<apeiros> array is []
<apeiros> >> [1,2,3]
<eval-in> apeiros => [1, 2, 3] (https://eval.in/177404)
<discr33t_> right duh i new that . . .
<apeiros> >> require 'ipaddr'; [IPAddr.new("10.150.120.0/21"), IPAddr.new("10.150.128.0/21")].any? { |addr| addr.include?(IPAddr.new("10.150.120.0")) }
<eval-in> apeiros => true (https://eval.in/177405)
* apeiros off
apeiros has quit [Remote host closed the connection]
jonahR has joined #ruby
apeiros has joined #ruby
<shevy> hmm
terrellt has joined #ruby
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
TorpedoSkyline has joined #ruby
parzo has quit [Remote host closed the connection]
maximski has joined #ruby
fgo has joined #ruby
toastynerd has joined #ruby
zarul has quit [Quit: Leaving]
<shevy> I hate bugs
treehug88 has quit [Ping timeout: 264 seconds]
PeterBoy has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
fgo has quit [Ping timeout: 245 seconds]
obscured has joined #ruby
ki0 has quit [Ping timeout: 240 seconds]
bhaak has quit [Ping timeout: 264 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
awc737 has joined #ruby
japed has quit [Quit: Leaving]
awc737 has quit [Client Quit]
SilkFox_ has joined #ruby
jdj_dk has joined #ruby
chipotle_ has quit [Quit: cya]
* platzhirsch slaps shevy
InfraRuby has left #ruby [#ruby]
<platzhirsch> start to love 'em, now
qwyeth has joined #ruby
<shevy> hey
<shevy> are you in the UK still?
<platzhirsch> yeah : D
joonty has quit [Quit: Leaving]
doev has quit [Ping timeout: 246 seconds]
SilkFox_ has quit [Ping timeout: 244 seconds]
toastynerd has quit [Remote host closed the connection]
kireevco has joined #ruby
senayar has joined #ruby
jmbrown412 has joined #ruby
agarie has joined #ruby
bhaak has joined #ruby
gauravagarwalr has quit []
<shevy> getting rich and famous?
matchaw has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 264 seconds]
ChrisHein_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
matchaw has joined #ruby
rafaelcaricio has quit []
yeticry has joined #ruby
aspires has joined #ruby
mikecmpbll has quit [Ping timeout: 250 seconds]
baroquebobcat has joined #ruby
patrick99e99 has joined #ruby
lw has joined #ruby
nfk has quit [Quit: yawn]
mikecmpbll has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
gauke has quit [Quit: gauke]
jgt has joined #ruby
bbloom has joined #ruby
saarinen has joined #ruby
djstorm has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
patrick99e99 has quit [Ping timeout: 260 seconds]
Ayey_ has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdj_dk has quit [Ping timeout: 245 seconds]
axsuul has joined #ruby
moted has joined #ruby
wjimenez5271 has joined #ruby
renderful has joined #ruby
haroldwu has quit [Read error: Connection reset by peer]
haroldwu has joined #ruby
Ayey_ has quit [Ping timeout: 246 seconds]
Grantlyk has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
haroldwu has quit [Changing host]
haroldwu has joined #ruby
Grantlyk has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Ankhers has joined #ruby
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 260 seconds]
xcv_ has quit [Remote host closed the connection]
xcv has joined #ruby
agarie has quit [Remote host closed the connection]
eyeamaye has joined #ruby
mgaulton-uwaterl has quit [Read error: Connection reset by peer]
bMalum_ has quit [Remote host closed the connection]
maximski has quit []
babykosh has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
babykosh has quit [Client Quit]
mikecmpb_ is now known as mikecmpbll
xcv has quit [Ping timeout: 255 seconds]
Akagi201 has joined #ruby
ghostmoth has joined #ruby
JumpyTheFrog has joined #ruby
<JumpyTheFrog> I am a banana
<Edelwin> 'k
icarus has joined #ruby
<shevy> I hate superman
<shevy> batman is ok
<shevy> just look at that ridiculous yellow and blue and red outfit of superman
<JumpyTheFrog> I'm new to Ruby. I was curious if anyone 'round these parts uses it mostly outside of rails.
bMalum_ has joined #ruby
<JumpyTheFrog> *mostly*
arup_r has joined #ruby
krisquigley has joined #ruby
<Hanmac> imo superman has a very shitty hairstyle ... and that says someone who has no hairstyle ;P
<shevy> JumpyTheFrog yeah
<shevy> JumpyTheFrog I use it for all tasks
<shevy> for instance: "apaconfig USR" generates a httpd.conf file for me into /usr/conf/httpd.conf
Takle has quit [Remote host closed the connection]
<JumpyTheFrog> Cool!
agarie has joined #ruby
saarinen has quit [Quit: saarinen]
PeterBoy has quit [Remote host closed the connection]
asdasdasdasss has joined #ruby
awc737 has joined #ruby
OffTheRails has quit [Ping timeout: 260 seconds]
<shevy> JumpyTheFrog my long term goal is to replace all shell scripts on a linux system
amacou has quit [Read error: Connection reset by peer]
amacou_ has joined #ruby
snath has joined #ruby
shredding has quit [Quit: shredding]
basiclaser has quit [Excess Flood]
alessandro1997 has joined #ruby
<shevy> JumpyTheFrog here is another example http://shevegen.square7.ch/screenshot_2014.png - nevermind the colours, and nevermind that the line is overflowing to the right when it should be chopped off after 80 chars, but that's a set of ruby scripts I use to compile software from source. that script provides information required to another script that then handles the compilation procedure
Grantlyk has quit [Ping timeout: 260 seconds]
alessandro1997 has quit [Client Quit]
asdasdasdasss has quit [Ping timeout: 240 seconds]
<shevy> JumpyTheFrog I can then do something like this: "compile http://download.kde.org/stable/yakuake/2.9.9/src/yakuake-2.9.9.tar.xz" and it will be compiled and installed (unless some error happens)
baroquebobcat_ has joined #ruby
basiclaser has joined #ruby
JumpyTheFrog has quit [Remote host closed the connection]
bMalum__ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
philcrissman has joined #ruby
JumpyTheFrog has joined #ruby
michaeldeol has joined #ruby
<JumpyTheFrog> Thanks! That's really cool.
awc737_ has joined #ruby
baroquebobcat has quit [Ping timeout: 245 seconds]
baroquebobcat_ is now known as baroquebobcat
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
toastynerd has joined #ruby
<shevy> JumpyTheFrog you can also generate .pdf files with ruby, for instance prawn github - this works fine in rails but also from the commandline just as well, I use it to generate a calendar of upcoming meetings https://github.com/prawnpdf/prawn
iamjarvo has joined #ruby
bMalum_ has quit [Ping timeout: 250 seconds]
<JumpyTheFrog> You are blowing my mind right now! I should have googled a little harder
jdj_dk has joined #ruby
jgt has quit [Remote host closed the connection]
larsam has joined #ruby
fgo has joined #ruby
mikecmpbll has quit [Ping timeout: 272 seconds]
anarang has quit [Quit: Leaving]
philcrissman has quit [Ping timeout: 255 seconds]
awc737 has quit [Ping timeout: 250 seconds]
havenwood has joined #ruby
vsoftoiletpaper has quit []
bradleyprice has quit [Remote host closed the connection]
<shevy> well
<shevy> there are basically two philosophies
<shevy> one is the "use the right tool for the job"
<shevy> the other is "use ruby for everything"
<jamesfordummies> shevy: know anything that can parse pdfs into maniputable text like that?
<shevy> I am in the second group
bradleyprice has joined #ruby
<shevy> jamesfordummies hmm not sure ...
<shevy> pdf can be a beast
<jamesfordummies> yep
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jamesfordummies> impress me
jottr has joined #ruby
<jamesfordummies> :)
<shevy> hehehehe
SilkFox has quit [Quit: WeeChat 0.4.3]
Ankhers has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
eyeamaye has quit [Quit: Leaving.]
doev has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
gauke has joined #ruby
goshdarnyou has joined #ruby
olivier_bK has quit [Ping timeout: 250 seconds]
gauke has quit [Client Quit]
<shevy> a co-worker parsed .pdf via php
wjimenez5271 has quit [Remote host closed the connection]
<jamesfordummies> bleh
Ankhers has joined #ruby
SilkFox has joined #ruby
pietr0 has joined #ruby
lkba has quit [Read error: Connection reset by peer]
<jamesfordummies> i just want a good pdf -> mobi/epub conversion
lkba has joined #ruby
<jamesfordummies> that's all the world needs
amacou_ has quit [Remote host closed the connection]
tylerkern has joined #ruby
maestrojed has joined #ruby
bradleyprice has quit [Ping timeout: 245 seconds]
amacou has joined #ruby
Emmanuel_Chanel has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
Emmanuel_Chanel has joined #ruby
W0rmDr1nk has quit [Ping timeout: 250 seconds]
<canton7> jamesfordummies, doesn't calibre do that well?
apeiros has joined #ruby
<jamesfordummies> no.
<jamesfordummies> it's apparently a very hard problem to solve
<jamesfordummies> epub <-> mobi is great
<jamesfordummies> pdf to anything is pretty shitty
eyeamaye has joined #ruby
sergiomiranda has joined #ruby
<jamesfordummies> fun fact - kindles can do it too. if you email a pdf to your kindle with the subject 'convert', it will attempt to convert it
lanox has quit []
<jamesfordummies> not bad, but not good either
<jamesfordummies> especially for books with code in them
amacou has quit [Ping timeout: 250 seconds]
SilkFox_ has joined #ruby
bronson has joined #ruby
jerius has quit []
momomomomo has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
apeiros has quit [Ping timeout: 272 seconds]
jottr has quit [Ping timeout: 240 seconds]
bricker`work has joined #ruby
jdj_dk has quit [Ping timeout: 244 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
momomomomo has quit [Client Quit]
momomomomo has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
tewlz has quit [Ping timeout: 245 seconds]
newUser1234 has joined #ruby
maletor has joined #ruby
Sie00 has joined #ruby
theharshest has joined #ruby
freezey has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
matrixis1 is now known as matrixise
tjr9898 has quit [Remote host closed the connection]
zz_anildigital is now known as anildigital
<shevy> hmm
<shevy> can I rename a key in a hash
<shevy> from foo to bar
<shevy> hmm
<jhass> hash[foo] = hash.delete(bar)
sambao21 has joined #ruby
<jhass> er, other way around but you get it
<shevy> ah yeah
<shevy> that will work nicely
vsoftoiletpaper has joined #ruby
sdwrage has joined #ruby
chrishough has quit [Quit: chrishough]
apeiros has joined #ruby
<apeiros> discr33t_: solved your problem?
PeterBoy has joined #ruby
JumpyTheFrog has quit []
Advocation has quit [Quit: Advocation]
<havenwood> anyone use XDG_DATA_HOME, etc? trying to grok how XDG base dir spec can be reconciled with LFH.
LiohAu has quit [Quit: LiohAu]
gaussblurinc1 has quit [Quit: Leaving.]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
tjr9898 has joined #ruby
baroquebobcat has joined #ruby
mocchi_ has quit [Ping timeout: 250 seconds]
jamesfordummies has quit [Ping timeout: 264 seconds]
omosoj has joined #ruby
qba73 has quit []
yekta has joined #ruby
rdark has quit [Quit: leaving]
_maes_ has joined #ruby
mocchi has joined #ruby
tiguser has quit [Ping timeout: 244 seconds]
Ayey_ has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
tjr9898 has quit [Ping timeout: 245 seconds]
sailias1 has joined #ruby
aesptux has joined #ruby
sailias has quit [Quit: Leaving.]
dawkirst has quit [Remote host closed the connection]
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
<discr33t_> apeiros: yes it did. thank you very much.
<discr33t_> apeiros: i was looking into this too but what i have is working fine for now
kash has joined #ruby
jamesfordummies has joined #ruby
wallerdev has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
Ayey_ has quit [Ping timeout: 250 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has quit [Quit: Konversation terminated!]
cantonic has joined #ruby
aspires has quit []
MartinCleaver has quit [Quit: MartinCleaver]
atmosx has joined #ruby
sailias has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kash has left #ruby [#ruby]
sailias1 has quit [Read error: Connection reset by peer]
aspires has joined #ruby
tiguser has joined #ruby
<bricker`work> Is there something you can safely use to join a URL path with / characters, so you don't have to worry about trailing/beginning slashes? I usually use File.join, but I understand that would break if the program was running on an OS that didn't use slashes for file paths. I know about URI.join, but it requires a host which I don't always have or want when building a path
<bricker`work> URI.join is too "smart", eg:
mikecmpbll has joined #ruby
bMalum__ has quit [Read error: Connection reset by peer]
johnmolina has joined #ruby
jdj_dk has joined #ruby
<eam> bricker`work: a URL always uses /
<eam> for file paths (not url paths) you can use File.join
bMalum__ has joined #ruby
<havenwood> bricker`work: File.join uses File::SEPARATOR
Cheezebox has joined #ruby
<havenwood> >> File::SEPARATOR
<eval-in> havenwood => "/" (https://eval.in/177440)
<momomomomo> bricker`work: are you joining paths or also adding queries?
<bricker`work> >> require 'uri'; URI.join("http://google.com", "something", "something").to_s
wjimenez5271 has joined #ruby
britneywright has joined #ruby
<bricker`work> eam: I understand that
<havenwood> bricker`work: how bout #join('/') :P
<bricker`work> havenwood: eam what I'm saying is that they happen to be the same on the OS we're using, but if that changed I wouldn't want it to break. File.join has the better functionality for joining URL paths
deric_skibotn has joined #ruby
<bricker`work> havenwood: the reason I'm using File.join is because it's smart about leading/trailing slashes
Logico has joined #ruby
<havenwood> bricker`work: aha
<bricker`work> momomomomo: only worried about the paths, not queries
autonomousdev has joined #ruby
<eam> bricker`work: yeah, but what I'm saying is you asked about URL
<eam> not file paths
<momomomomo> aye
<bricker`work> eam: Yes...
<bricker`work> eam: thats the point of my question
<eam> don't use File.join on urls :)
<momomomomo> i guess the question is, bricker`work what do you mean by worrying about trailing slashes
<bricker`work> eam: yes, that's what I'm asking, what do you recommend I use instead?
gruz0[russia] has joined #ruby
autonomousdev has quit [Client Quit]
alex88 has quit [Quit: Leaving...]
<eam> bricker`work: for file paths, File.join. For URLs, "/"
<bricker`work> >> ["path/", "/to", "something"].join("/")
<eval-in> bricker`work => "path///to/something" (https://eval.in/177443)
chth0n has quit [Ping timeout: 245 seconds]
<bricker`work> >> File.join(*["path/", "/to", "something"])
<eval-in> bricker`work => "path/to/something" (https://eval.in/177444)
Ilyas_ has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
sputnik13 has joined #ruby
sputnik13 has quit [Max SendQ exceeded]
<eam> so this is interesting, File.join doesn't respect File::SEPARATOR
kireevco has quit [Read error: Connection reset by peer]
Ilyas has joined #ruby
Logico has left #ruby [#ruby]
kireevco1 has joined #ruby
<platzhirsch> shevy: no, just worked down and poor :D
platzhirsch has left #ruby [#ruby]
<bricker`work> Ideally File.join would take an argument to use as the "separator", so you could override it if you wanted
sputnik13 has joined #ruby
<shevy> what is the second argument to File.join
<omosoj> hey all, i want to use oauth to authenticate with a service and send a get request for a json. how do i do that?
<eam> >> File::SEPARATOR = "A"; [File::SEPARATOR, File.join "a", "b"]
<eval-in> eam => /tmp/execpad-834dda4ad413/source-834dda4ad413:2: syntax error, unexpected tSTRING_BEG, expecting ']' ... (https://eval.in/177445)
chrishough has joined #ruby
<eam> >> File::SEPARATOR = "A"; [File::SEPARATOR, File.join("a", "b")]
<eval-in> eam => /tmp/execpad-d55fe99bdcd5/source-d55fe99bdcd5:2: warning: already initialized constant File::SEPARATOR ... (https://eval.in/177446)
newUser1234 has quit [Read error: Connection reset by peer]
aesptux has quit []
platzhirsch has joined #ruby
<shevy> rb_file_s_join(VALUE klass, VALUE args) { return rb_file_join(args, separator); }
<eam> sigh, eval-in should surpress warnings
gogohome has quit [Quit: gogohome]
<shevy> huh
<shevy> where from does separator come
MartinCleaver has joined #ruby
troyready has joined #ruby
newUser1234 has joined #ruby
cybercix has joined #ruby
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
<eam> FILE_ALT_SEPARATOR
<eam> it's hardcoded, it doesn't look at File::SEPARATOR
<eam> compile-time =/
CaptainJet has joined #ruby
<eam> seems like a bug
freezey has quit [Remote host closed the connection]
<eam> rb_define_const(rb_cFile, "SEPARATOR", separator);
<havenwood> >> ["path/", "/to", "something"].join('/').squeeze('/')
<eval-in> havenwood => "path/to/something" (https://eval.in/177447)
asdasdasdasss has joined #ruby
cantonic has quit [Quit: cantonic]
<bricker`work> heh...
<bricker`work> separator = rb_obj_freeze(rb_usascii_str_new2("/"));
<bricker`work> Well nothing to worry about then I guess :)
anaeem1 has joined #ruby
<shevy> hehehe
_maes_ has quit [Ping timeout: 240 seconds]
JohnFord has joined #ruby
<shevy> usascii
autonomousdev has joined #ruby
mongag has joined #ruby
saarinen has joined #ruby
michaeldeol has joined #ruby
ssvo has joined #ruby
coldkey21 has joined #ruby
SilkFox has quit [Ping timeout: 245 seconds]
<mongag> I expected config.host to access the symbol passed but I get an error
ascarter has joined #ruby
tjr9898 has joined #ruby
<bricker`work> mongag: config.host = :localhost
<bricker`work> mongag: if you want `config.host :localhost` you can't use the default accessors
autonomousdev has quit [Client Quit]
doev has quit [Read error: Connection timed out]
asdasdasdasss has quit [Ping timeout: 240 seconds]
renderful has quit [Remote host closed the connection]
SilkFox has joined #ruby
doev has joined #ruby
<eam> File.join is tooootally broken
<bricker`work> risky click
<eam> don't ask me why I have ruby for DOS installed
<wasamasa> lol
<eam> (it's really useful you guys)
freezey has joined #ruby
<apeiros> eam: DOS API not capable of dealing with / paths?
_maes_ has joined #ruby
<apeiros> DOS or ruby for DOS? (really useful)
bbloom has quit [Quit: Computer has gone to sleep.]
maximski has joined #ruby
<mongag> bricker`work: pls see the updated version https://gist.github.com/anonymous/ae90113d8e72e702a8b0
<mongag> still get an error
baroquebobcat has quit [Quit: baroquebobcat]
<bricker`work> mongag: config.host = :localhost
tjr9898 has quit [Ping timeout: 272 seconds]
<bricker`work> you didn't change the part that's throwing the error, you changed a method that you're never calling (host=)
jimms has joined #ruby
diegoviola has joined #ruby
<bricker`work> mongag: you're calling #host(), which takes 0 arguments, but you're passing it 1 argument (:localhost)
fgo has joined #ruby
awc737_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has quit [Quit: Leaving...]
jdj_dk has quit [Ping timeout: 240 seconds]
<eam> apeiros: no, the path separator is \
mrommelf has joined #ruby
<shevy> huh
chipotle has joined #ruby
echooo has quit [Ping timeout: 264 seconds]
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
<mongag> I thought host= will be called when a parameter is passed and host will be called if not arent they "custom" setter/getter?
anildigital is now known as zz_anildigital
<apeiros> eam: so File.read('C:/some/path.txt') does not work in your dos ruby?
<eam> and DOS isn't super useful any more, but it comes in handy for some stuff
<shevy> DOS had cool games
<shevy> PRINCE OF PERSIA
<shevy> CIVILIZATION
<shevy> I guess the xcom or some of them ran on it as well
<eam> various weird vendor software
<shevy> haha
<shevy> I never used these... only made use of the games
<eam> though most of them are shipping linux firmware tools now
chipotle has quit [Client Quit]
<shevy> if I would have only had ruby back then in the DOS days
<eam> I have a PXE bootable DOS image
<eam> I had to write reboot.com, DOS doesn't actually ship with a command capable of rebooting the system (why would you just not press the power button?)
zz_anildigital is now known as anildigital
<shevy> omg
<shevy> eam please
<shevy> leave behind the old days
<shevy> come to the modern world now
mongag has quit [Quit: This computer has gone to sleep]
<eam> isnt' any platform with ruby modern enough?
<shevy> every platform with ruby is better than a platform without ruby
razum2um1 has quit [Quit: Leaving.]
eeezkil has quit [Ping timeout: 245 seconds]
xcv has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
tjr9898 has joined #ruby
sepp2k has joined #ruby
endash has quit [Ping timeout: 255 seconds]
brianherman has joined #ruby
gruz0[russia] has quit [Quit: Leaving]
wallerdev has joined #ruby
fschuindt has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fschuindt has quit [Max SendQ exceeded]
fschuindt has joined #ruby
fschuindt has quit [Max SendQ exceeded]
fschuindt has joined #ruby
baroquebobcat has joined #ruby
michaeldeol has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
startupality has quit [Quit: startupality]
Spami has joined #ruby
michaeldeol has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has joined #ruby
Spami has quit [Client Quit]
mrommelf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilkFox has quit [Ping timeout: 245 seconds]
duggiefr_ has joined #ruby
chipotle has quit [Client Quit]
vsoftoiletpaper has quit []
sailias has quit [Quit: Leaving.]
Spami has joined #ruby
vsoftoiletpaper has joined #ruby
dawkirst has joined #ruby
SilkFox_ has joined #ruby
Cheezebox has quit [Ping timeout: 246 seconds]
saarinen has quit [Quit: saarinen]
gaussblurinc1 has joined #ruby
Alina-malina has quit [Ping timeout: 244 seconds]
timonv_ has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
duggiefresh has quit [Ping timeout: 250 seconds]
little_fu has joined #ruby
Spami has quit [Client Quit]
noop has joined #ruby
anaeem1 has quit [Remote host closed the connection]
Matadoer has joined #ruby
Spami has joined #ruby
<eam> apeiros: I take it back, it appears there's something odd with file separators in this DOS instance
Zenigor has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 240 seconds]
<eam> rather, ruby appears to translate / paths to \, even though the system only deals in \
<eam> that's pretty messed up
nanoyak has joined #ruby
bradleyprice has joined #ruby
<eam> paths constructed and manipulated in ruby/dos can't be written to a file and used by another application, for example
SilkFox_ has quit [Ping timeout: 260 seconds]
SilkFox has joined #ruby
little_fu has quit [Ping timeout: 245 seconds]
freezey has quit [Remote host closed the connection]
little_fu has joined #ruby
jonahR_ has joined #ruby
jgt has joined #ruby
tewlz has joined #ruby
hamakn has quit [Remote host closed the connection]
postmodern has joined #ruby
<apeiros> eam: sounds weird :)
Alina-malina has joined #ruby
freezey has joined #ruby
<eam> it's super weird ... not sure I'm going to bother fixing though :D
r0bby_ has quit [Excess Flood]
Asher has quit [Quit: Leaving.]
Zenigor has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
r0bby_ has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
jonahR has quit [Ping timeout: 264 seconds]
nanoyak has quit [Ping timeout: 240 seconds]
zorak has joined #ruby
Alina-malina has joined #ruby
little_fu has quit [Ping timeout: 250 seconds]
arya_ has joined #ruby
testcore has joined #ruby
superscott[8] has joined #ruby
nateberkopec has joined #ruby
dangerousdave has joined #ruby
anaeem1_ has joined #ruby
nanoyak has joined #ruby
alessandro1997 has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
mercwithamouth has joined #ruby
doev has quit [Ping timeout: 246 seconds]
bradleyp_ has joined #ruby
danijoo has joined #ruby
wpp has joined #ruby
awc737 has joined #ruby
tylerkern has joined #ruby
troyready has quit [Ping timeout: 240 seconds]
yetanotherdave has joined #ruby
bradleyprice has quit [Ping timeout: 264 seconds]
krisquigley has quit [Ping timeout: 264 seconds]
InfraRuby has joined #ruby
claymore has joined #ruby
doodlehaus has quit [Ping timeout: 246 seconds]
InfraRuby has left #ruby [#ruby]
Ayey_ has joined #ruby
senayar has quit [Remote host closed the connection]
Advocation has joined #ruby
senayar has joined #ruby
timonv_ has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
Zenigor has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Zenigor has joined #ruby
iamjarvo has joined #ruby
maximski has quit []
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
mike32 has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
Ayey_ has quit [Ping timeout: 245 seconds]
Zenigor_ has joined #ruby
senayar has quit [Ping timeout: 250 seconds]
dangerousdave has joined #ruby
Zenigor has quit [Read error: Connection reset by peer]
dangerousdave has quit [Client Quit]
FDj_ is now known as FDj
mleone has quit [Ping timeout: 245 seconds]
<shevy> hey jamesfordummies did you check out PDF::Reader gem yet?
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
<jamesfordummies> i did
freezey_ has joined #ruby
<jamesfordummies> not extensively though
MartinCleaver has quit [Quit: MartinCleaver]
timonv_ has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
RichardLitt has joined #ruby
danijoo has joined #ruby
sailias has joined #ruby
jdj_dk has quit [Ping timeout: 244 seconds]
philcrissman has joined #ruby
freezey has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
vsoftoiletpaper has quit []
phutchin1 has joined #ruby
newUser1234 has quit [Read error: Connection reset by peer]
relix has joined #ruby
kireevco1 has quit [Read error: Connection reset by peer]
<shevy> you are a lazy man
<shevy> I like you
<shevy> on IRC we all idle to power
kireevco has joined #ruby
newUser1234 has joined #ruby
yetanotherdave has quit [Ping timeout: 264 seconds]
gaussblurinc1 has quit [Quit: Leaving.]
<kenichi> BigDecimal.limit setting seems to be... thread local?
wpp has quit []
wpp has joined #ruby
Advocation has quit [Quit: Advocation]
phutchins has quit [Ping timeout: 250 seconds]
jerius has joined #ruby
JohnFord has joined #ruby
philcrissman has quit [Ping timeout: 260 seconds]
testcore has quit [Ping timeout: 264 seconds]
centrx has joined #ruby
dbasch has joined #ruby
phutchin1 has quit [Ping timeout: 260 seconds]
<jamesfordummies> kenichi: code?
Dr3amc0d3r is now known as Dr3amc0d3r|away
asdasdasdasss has joined #ruby
timonv_ has joined #ruby
platzhirsch has left #ruby [#ruby]
ghr has quit [Ping timeout: 260 seconds]
hellangel7 has quit [Ping timeout: 260 seconds]
Tricon has joined #ruby
bbloom has joined #ruby
dangerousdave has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
dangerousdave has quit [Client Quit]
danijoo has joined #ruby
m8 has joined #ruby
JoshGlzBrk has joined #ruby
djbkd has joined #ruby
fgo has joined #ruby
hellangel7 has joined #ruby
OrkzRule has joined #ruby
tjr9898 has quit [Remote host closed the connection]
noop has quit [Ping timeout: 244 seconds]
asdasdasdasss has quit [Ping timeout: 250 seconds]
noop has joined #ruby
baroquebobcat has quit [Ping timeout: 264 seconds]
<jamesfordummies> looking
bluOxigen has joined #ruby
frogsy has joined #ruby
fgo_ has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rebelshrug has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
DrShoggoth has joined #ruby
djbkd has quit [Remote host closed the connection]
bronson has quit [Quit: bronson]
momomomomo has quit [Quit: momomomomo]
rebelshrug has quit [Client Quit]
jgt has quit []
mercwithamouth has quit [Ping timeout: 245 seconds]
tjr9898 has joined #ruby
Grantlyk has joined #ruby
Xeago has joined #ruby
fgo_ has quit [Ping timeout: 245 seconds]
dangerousdave has joined #ruby
mr-foobar has quit [Quit: Leaving...]
JoshGlzBrk has joined #ruby
Takle has quit [Ping timeout: 250 seconds]
Takle has joined #ruby
testcore has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
newUser1234 has quit [Ping timeout: 255 seconds]
ascarter has joined #ruby
<jamesfordummies> kenichi: this is interesting - you would think the block would take the current BigDecimal with it
newUser1234 has joined #ruby
<jamesfordummies> i dont really know the answer, but i'm interested!
JoshGlzBrk has quit [Client Quit]
fold has quit [Ping timeout: 255 seconds]
kirun has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
felgenh3 has joined #ruby
yetanotherdave has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
miyako has joined #ruby
msmith has quit [Remote host closed the connection]
djbkd has joined #ruby
definiv has quit [Quit: leaving]
klaut has joined #ruby
Eiam_ has joined #ruby
troyready has joined #ruby
cantonic has quit [Ping timeout: 244 seconds]
SilkFox_ has joined #ruby
<Eiam_> .
cantonic has joined #ruby
jdj_dk has joined #ruby
Eiam has quit [Disconnected by services]
Eiam_ is now known as Eiam
bbloom has quit [Quit: Computer has gone to sleep.]
krisquigley has joined #ruby
lw has quit [Quit: s]
bronson has joined #ruby
krisquigley has quit [Remote host closed the connection]
jay has joined #ruby
lw has joined #ruby
djbkd has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 245 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
gaussblurinc1 has joined #ruby
gaussblurinc1 has left #ruby [#ruby]
lw has quit [Ping timeout: 264 seconds]
bbloom has joined #ruby
dbasch has quit [Quit: dbasch]
endash has joined #ruby
Vile` has quit [Ping timeout: 272 seconds]
<eam> >> Regexp.new(?(*2**12+?)*2**12)
<eval-in> eam => /(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((( ... (https://eval.in/177490)
blueOxigen has joined #ruby
<eam> >> Regexp.new(?(*2**16+?)*2**16)
<eval-in> eam => /tmp/execpad-99680b34cd2e/source-99680b34cd2e:2: [BUG] Segmentation fault at 0xbca9df3c ... (https://eval.in/177491)
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nfk has joined #ruby
Grantlyk has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 272 seconds]
InfraRuby has joined #ruby
x1337807x has joined #ruby
Grantlyk has joined #ruby
bhaak has quit [Ping timeout: 244 seconds]
almostwhitehat has quit [Quit: almostwhitehat]
bluOxigen has quit [Ping timeout: 240 seconds]
IceDragon has joined #ruby
PeterBoy has quit [Remote host closed the connection]
St_Marx has joined #ruby
Vile` has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Bumptious has quit [Remote host closed the connection]
dangerousdave has joined #ruby
Lucky__ has joined #ruby
<wasamasa> uhuh
hamakn has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
jerius has quit []
davedev24_ has joined #ruby
sevvie has joined #ruby
felgenh3 has quit [Quit: felgenh3]
dangerousdave has quit [Client Quit]
Sauvin has quit [Ping timeout: 264 seconds]
tylerkern has quit [Ping timeout: 250 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
<shevy> what are you doing
davedev24_ has joined #ruby
<wallerdev> wub
georgelappies has quit [Remote host closed the connection]
<shevy> he causes segfaults
wmoxam_ has quit [Quit: leaving]
Ayey_ has joined #ruby
wmoxam has joined #ruby
bronson has quit [Quit: bronson]
definiv has joined #ruby
wmoxam has quit [Changing host]
wmoxam has joined #ruby
dangerousdave has joined #ruby
davedev2_ has joined #ruby
zorak has quit [Ping timeout: 260 seconds]
tylerkern has joined #ruby
bhaak has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
hamakn has quit [Ping timeout: 264 seconds]
yfeldblu_ has quit [Remote host closed the connection]
bbloom has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
georgelappies has joined #ruby
<eam> kinda suspect I can get RCE out of the regex engine
abuzze_ has quit [Ping timeout: 245 seconds]
almostwhitehat has joined #ruby
TorpedoSkyline has joined #ruby
Ayey_ has quit [Ping timeout: 255 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<eam> shevy: I am learning ruby
<ari-_-e> if you can run regexes, you can presumably run other code :)
Ayey_ has joined #ruby
<eam> ari-_-e: yeah
definiv_ has joined #ruby
Sid05_ has joined #ruby
TorpedoSkyline has quit [Client Quit]
<eam> does ruby have code embedded in its regex?
<ari-_-e> I guess there are some minor counter-examples, such as regex testing websites
PeterBoy has joined #ruby
senayar has joined #ruby
parzo has joined #ruby
<eam> regex is always a weak point, easy to DOS no matter what
Hobogrammer has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bbloom has joined #ruby
<wallerdev> i dont think ruby allows embedded code in regex
tylerkern has joined #ruby
<wallerdev> but im sure DOS is possible w/ it
sambao21 has joined #ruby
fold has joined #ruby
<ari-_-e> eam: well you can interpolate into a regex just like you can with a string
definiv_ has quit [Client Quit]
<eam> trivial to make exponential functions
<wallerdev> depending on the implementation you could use #{}
<ari-_-e> >> /#{1+1}/
<eval-in> ari-_-e => /2/ (https://eval.in/177507)
<eam> that's done in the literal though, right
yfeldblum has quit [Ping timeout: 240 seconds]
tylerkern has quit [Client Quit]
charliesome has joined #ruby
<eam> it's a function of the // construct, not of Regexp.new
<eam> #{} is a syntax of quote operators for literals
<wallerdev> like if they were just like
dangerousdave has quit [Quit: Textual IRC Client: www.textualapp.com]
<ari-_-e> >> Regexp.new("#{1+1}")
<eval-in> ari-_-e => /2/ (https://eval.in/177508)
<ari-_-e> :)
<wallerdev> like if they just ran it through eval or something haha
<eam> ari-_-e: no, that's interpolated in the literal
e4xit has quit [Read error: Connection reset by peer]
<eam> >> x = ?# + "{1 + 1}"; Regexp.new(x)
<eval-in> eam => /#{1 + 1}/ (https://eval.in/177509)
parzo_ has joined #ruby
<eam> #{} is part of the "" syntax
<ari-_-e> you're saying it's not evaluated when the regex is run?
bronson has joined #ruby
<ari-_-e> that's true, of course
<kenichi> jamesfordummies: yeah, weird huh?
cg433n has quit [Quit: Computer has gone to sleep.]
<wallerdev> no its not evaluated when the regex is run lol
bbloom has quit [Client Quit]
<wallerdev> thatd be an interesting concept
<eam> perl has that
<jamesfordummies> kenichi: it's not a class variable either.
<jamesfordummies> i have no idea what it is
<ari-_-e> yeah perl has it... not sure about ruby
CaptainJet has quit [Ping timeout: 246 seconds]
senayar has quit [Ping timeout: 240 seconds]
<wallerdev> ruby regexes are just literal data, no code inside
<eam> well, regex is code
e4xit has joined #ruby
parzo has quit [Ping timeout: 260 seconds]
<wallerdev> well its an FSA or whatever
kireevco has quit [Quit: Leaving.]
<ari-_-e> no it's not
<wallerdev> like you cant just have it suddenly start executing random code not defined
Neomex has joined #ruby
<eam> not PCRE (which ruby tries to be)
<ari-_-e> regexes in actual programming languages have basically never been actually regular
jdj_dk has quit [Ping timeout: 272 seconds]
omosoj has quit [Ping timeout: 260 seconds]
<wasamasa> ok, to actually ask a ruby question instead of attacking korean help vampires
<wallerdev> hmm
testcore has quit [Ping timeout: 264 seconds]
<wallerdev> lol
kenneth has joined #ruby
krisquigley has joined #ruby
<wasamasa> how would I check whether one of multiple values is inside a string?
CaptainJet has joined #ruby
<wasamasa> without regex preferably
<wallerdev> values.any? { |v| str.include? v }
<eam> why without regex?
<wasamasa> well, it's for strings
redlegion has joined #ruby
<wasamasa> and strings tend to be composed of glyphs that would need to be escaped in regular expressions
duyue has quit [Ping timeout: 272 seconds]
<eam> yeah but there's code for that
<wasamasa> wallerdev: that looks short and sweet
amargherio has quit [Remote host closed the connection]
<eam> that'd be M*N, a regex could be N
<wallerdev> you dont even know if he has more than like 3 strings
<wallerdev> lol
<eam> that's why I said M and not 3 :D
eeezkil has joined #ruby
<wallerdev> dont need to optimize stuff like that, just makes things more confusing
<eam> those strings could be petabytes
<wallerdev> lol
<wallerdev> then i wouldnt recommend using ruby
jerius has joined #ruby
eeezkil has quit [Max SendQ exceeded]
<eam> what's the cutoff? gigabytes?
<ari-_-e> M and N being what?
<eam> ari-_-e: array length and string length
<apeiros> ruby is exascale!
jay has quit []
<eam> values.any? { |v| str.include? v } is "for each value, traverse str"
<apeiros> and don't you come at me with your yotabytes
<eam> with a regex you combine values into a pattern and traverse str once
<apeiros> wasamasa: Regexp.union deals with escapes for you
<ari-_-e> I think there's an algorithm for this...
PeterBoy has quit [Remote host closed the connection]
<apeiros> Regexp.union(values) =~ str
doodlehaus has joined #ruby
<ari-_-e> searching efficiently for multiple strings inside a larger string
<eam> ari-_-e: there totally is, and regexp is the common interface to it :D
mengu has joined #ruby
mengu has joined #ruby
Mattx has quit [Read error: Connection reset by peer]
charliesome_ has joined #ruby
<apeiros> >> Regexp.union('*', '.') # for ze proof
<wallerdev> hm i wonder at what point it makes sense to use regex for that
<eval-in> apeiros => /\*|\./ (https://eval.in/177510)
Mattx has joined #ruby
<wallerdev> because you still have the overhead of creating the regex
chrishough has quit [Ping timeout: 244 seconds]
dblessing has quit [Quit: dblessing]
ascarter has joined #ruby
momomomomo has joined #ruby
charliesome has quit [Ping timeout: 250 seconds]
obscured has quit [Quit: leaving]
nanoyak has joined #ruby
<eam> wallerdev: easy to bench
aspires has quit []
asdasdasdasss has joined #ruby
tylerkern has joined #ruby
aspires has joined #ruby
Vivekananda has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
<ari-_-e> I'm not sosure that any of these are suitable for regexes
<ari-_-e> so sure
tylerkern has joined #ruby
DEA7TH has joined #ruby
Vivekananda has quit [Remote host closed the connection]
Klumben has quit [Ping timeout: 240 seconds]
omosoj has joined #ruby
<DEA7TH> If I have foo = [:a, :b, :c], and I iterate through it, how do I get the number of the current iteration? I know I can do foo.zip(1..foo.size).each |var, num|
<DEA7TH> But I suppose there's already a built-in function?
chrishough has joined #ruby
<DEA7TH> which is presumably more readable
<ari-_-e> DEA7TH: Enumerable#each_with_index
<DEA7TH> Ah. Thanks
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
felgenh3 has joined #ruby
michaeldeol has joined #ruby
livingstn has quit [Ping timeout: 256 seconds]
JoshGlzBrk has joined #ruby
parzo_ has quit [Read error: Connection timed out]
<ari-_-e> or Enumerator#with_index if you have an Enumerator
asdasdasdasss has quit [Ping timeout: 240 seconds]
r0bby_ has quit [Ping timeout: 264 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
parzo has joined #ruby
mjmac has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
definiv_ has joined #ruby
mjmac has joined #ruby
sambao21 has joined #ruby
definiv_ has quit [Client Quit]
bronson has quit [Quit: bronson]
magikfx__ has quit [Quit: Computer has gone to sleep.]
jamesfordummies has quit [Remote host closed the connection]
parzo_ has joined #ruby
michaeldeol has quit [Ping timeout: 272 seconds]
stoned has quit [Ping timeout: 240 seconds]
parzo has quit [Ping timeout: 250 seconds]
Klumben has joined #ruby
centrx has quit [Quit: Mead error: Connection reset by beer]
godd2 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Ping timeout: 255 seconds]
georgelappies has quit [Remote host closed the connection]
<godd2> Is it possible to make an object return one of it's properties by default instead of self?
stoned has joined #ruby
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaleido has joined #ruby
kaleido has joined #ruby
tobago has quit [Remote host closed the connection]
<godd2> Like if I have dog = Dog.new and then I say dog and have it return the dog's name instead of #<Dog:0x29225e12> or whatever
testcore has joined #ruby
dbasch has joined #ruby
michaeldeol has joined #ruby
mikesplain has quit [Ping timeout: 250 seconds]
<shevy> not via .new
jimmyhoughjr has joined #ruby
PeterBoy has joined #ruby
<shevy> hmm
jprovazn_afk has quit [Quit: Odcházím]
<shevy> you can however overwrite #inspect
Ilyas has quit [Quit: Leaving]
<shevy> so rather than #<Dog:0x29225e12> you can modify it so you get that
x1337807x has joined #ruby
<shevy> >> class Dog; def inspect; 'jeremy'; end; end; dog = Dog.new; dog
<eval-in> shevy => jeremy (https://eval.in/177511)
chihhsin_cloud has quit [Quit: Connection closed for inactivity]
aspires has quit []
omosoj has quit [Ping timeout: 245 seconds]
<godd2> That's true, but it's not returning the string "jeremy", its just displaying it
<godd2> >> class Dog; def inspect; 'jeremy'; end; end; dog = Dog.new; str = dog; str.class
<eval-in> godd2 => Dog (https://eval.in/177512)
sevvie has quit [Ping timeout: 246 seconds]
tiguser has quit [Ping timeout: 272 seconds]
ari-_-e has quit [Ping timeout: 264 seconds]
mikesplain has joined #ruby
<shevy> no
<shevy> it returns a string
<godd2> if that were true, str.class would be String, not dog
georgelappies has joined #ruby
<godd2> not Dog*
<onewheelskyward> str.is_a(Dog)?
sevvie has joined #ruby
michaeldeol has quit [Ping timeout: 260 seconds]
<godd2> I'd have to say dog.inspect to display and return the string
<godd2> >> class Dog; def inspect; 'jeremy'; end; end; dog = Dog.new; str = dog.inspect; str.class
<eval-in> godd2 => String (https://eval.in/177513)
tiguser has joined #ruby
cg433n has joined #ruby
dru has quit [Ping timeout: 272 seconds]
mongag has joined #ruby
<mongag> What does this inherit do? class IndexDefinition < Struct.new(:table, :name, :unique, :columns, :lengths, :orders, :where, :type, :using)
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilkFox_ has joined #ruby
jdj_dk has joined #ruby
michaeldeol has joined #ruby
yfeldblum has joined #ruby
<godd2> mongag it sets up a bunch of methods for you, and when you make a new isntance, passes any arguments sent to those values
djbkd has quit [Remote host closed the connection]
jottr has joined #ruby
JoshGlzBrk has joined #ruby
livingstn has joined #ruby
Glyphnote has joined #ruby
<apeiros> godd2: fundamental misunderstanding - objects don't return. at all.
cmarques has quit []
n1lo_ has left #ruby ["Leaving"]
Sleepee has quit [Quit: Leaving]
djbkd has joined #ruby
n1lo has joined #ruby
Sie00 has quit [Remote host closed the connection]
lw has joined #ruby
<mongag> I'm confused. Can you give me what to search in google?
Sie00 has joined #ruby
<apeiros> mongag: Struct.new creates a class
<apeiros> mongag: and IndexDefinition inherits from that class
<godd2> apeiros: okay then what word should I use when I describe what dog.name does if it's imprecise to say 'it returns a string of the name"?
<apeiros> should use Struct.new(…) do … end instead
michaeldeol has quit [Read error: Connection reset by peer]
<apeiros> godd2: dog.name is a method, not an object. and methods do indeed return.
livingstn has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
parzo_ has quit [Read error: Connection timed out]
autonomousdev has joined #ruby
<godd2> apeiros: alright then what word should I use to describe what dog does if it's imprecise to say 'it returns itself'
<mongag> aperios I understand that but what about instead of just inherit it a new instance is passed or something like that?
<apeiros> godd2: that's where your misunderstanding lies
<apeiros> godd2: that concept you have there is wrong
<apeiros> an object *is*
<apeiros> and you can't change what it *is*
<apeiros> it wouldn't make sense either
<apeiros> mongag: use tab completion. saves you from hilarious nick-typos
djbkd has quit [Remote host closed the connection]
omosoj has joined #ruby
<apeiros> mongag: I don't understand your question
nateberkopec has quit [Quit: Leaving...]
lw has quit [Client Quit]
djbkd has joined #ruby
parzo has joined #ruby
InfraRuby has left #ruby [#ruby]
<godd2> While I'd love to have a debate on the ontology of objects, my question was of a practical nature. Is there a way to make dog behave as if I had typed dog.name by default? If not, that's fine, but that is my question.
<apeiros> godd2: no
<apeiros> godd2: as said, it makes no sense.
<apeiros> methods like puts, and p, will however invoke methods on your object
nateberkopec has joined #ruby
<apeiros> and if you implement them properly, you can avoid calling them yourself.
<apeiros> >> class Dog; def initialize(name); @name=name; end; attr_reader :name; alias to_s name; end; doggy = Dog.new("Fiffy"); puts doggy
<eval-in> apeiros => Fiffy ... (https://eval.in/177518)
spyderman4g63 has joined #ruby
parzo_ has joined #ruby
Sie00 has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
tylerkern has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
tylerkern has joined #ruby
dru has joined #ruby
patrick99e99 has joined #ruby
parzo has quit [Ping timeout: 260 seconds]
SilkFox has quit [Ping timeout: 260 seconds]
asmodlol has quit [Quit: Leaving]
TorpedoSkyline has joined #ruby
<mongag> apeiros: sorry but my client doesn't support tab completion... I know that for example class A < B here class A inherits class B but what about class A < B.new(:name, :password) for example?
<jimms> Hey all! I'm trying to pass optionparser a multiline description that comes from a hash. is there a way? http://pastie.org/9456424
<apeiros> mongag: errr, what? there's like a bazillion clients out there, and I haven't heard of a single client without tab completion…
<tewlz> hmm, why can methods that return booleans has suffix ? but local booleans can't. Doesn't seem to follow principle of least surprise
InfraRuby has joined #ruby
<apeiros> mongag: so I'm really curious - what client do you use?
<mongag> x-chat aqua
<hoelzro> mongag: the RHS of < is just an expression, so it could be just about anything
<apeiros> mongag: dude, xchat totally has tab completion
<hoelzro> so sometimes you'll see things like class Foo < Bar[Baz]
<hoelzro> Bar is being used like a class factory here to generate Foo's parent
IceDragon has quit [Ping timeout: 246 seconds]
<apeiros> mongag: amending what hoelzro said - A < (SomeClass)
<jimms> Trying to list all possible options, but they change depending on a hash const in an included module
<apeiros> SomeClass can be any expression evaluating to a class
IceDragon has joined #ruby
cg433n has quit [Quit: Computer has gone to sleep.]
<apeiros> and Struct.new(…) evaluates to a class (as I already said)
georgelappies has quit [Read error: Connection reset by peer]
<apeiros> tewlz: what's a "local boolean"?
SilkFox has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
<hoelzro> apeiros: I think tewlz means is_ok? = true
<hoelzro> a variable
djbkd has quit [Remote host closed the connection]
<apeiros> then he's confusing value and variable
<hoelzro> I can do def is_ok? ... end, but I can't create a variable with a trailing ? as part of its name
Cereal` has quit [Ping timeout: 255 seconds]
<tewlz> apeiros: I'm using a formatting method and I need to pass two different states to it to determine output so I want to pass a boolean that initializes to false if nothing is passed
<apeiros> tewlz: not quite sure how that's connected to your original question
<tewlz> local variables can't have non-letters, right?
DrShoggoth has quit [Read error: Connection reset by peer]
georgelappies has joined #ruby
<apeiros> they can have underscores and digits. otherwise, right
<tewlz> I'm wondering why that's the case. It would seem to be more consistent to allow variables to have suffixes like ? to denote boolean
philcrissman has joined #ruby
<tewlz> consistent with method naming anyways...
msmith_ has joined #ruby
<benzrf> anybody here know about oauth
michaeldeol has quit [Ping timeout: 260 seconds]
<mongag> apeiros: I'm referring to http://sourceforge.net/projects/xchataqua/ not xchat
<apeiros> tewlz: I think that was a decision. at least at the moment I see no reason it'd collide.
cocotton has quit [Read error: Connection reset by peer]
<apeiros> mongag: yes. that one has tab completion too.
Atttwww has joined #ruby
itspots has joined #ruby
cocotton has joined #ruby
<apeiros> mongag: and did so over 10y ago already.
<apeiros> and I know because ~10y ago I used it
<tewlz> apeiros: actually....would it collide with stuff ? true_do : flase_do
<mongag> Well then dosen't work for me :(
<apeiros> tewlz: no
<tewlz> name for that is on the tip of my tounge lol
<apeiros> stuff? ? iftrue : iffalse
<apeiros> works with methods just fine
<tewlz> hmm, weird. Oh well one of lifes great mysteries
<tewlz> what are those called again?
<apeiros> >> def stuff?; true; end; stuff? ? "yay, true" : "d'oh"
<eval-in> apeiros => "yay, true" (https://eval.in/177519)
<apeiros> ternary
<tewlz> yes, thank you lol
<apeiros> I doubt it has a thought-through reason that lvar names must not end with ? or !
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> the = is obvious, though
<kaleido> i really like = tho :(
philcrissman has quit [Ping timeout: 255 seconds]
Tricon has quit [Quit: Leaving...]
mengu has quit [Remote host closed the connection]
jdj_dk has quit [Ping timeout: 244 seconds]
newUser1234 has quit [Remote host closed the connection]
rfv_ is now known as rfv
brianherman_ has joined #ruby
newUser1234 has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
cibs has quit [*.net *.split]
Adran has quit [*.net *.split]
eshy has quit [*.net *.split]
zz_karupa has quit [*.net *.split]
cibs has joined #ruby
zz_karupa has joined #ruby
eshy has joined #ruby
Adran has joined #ruby
eshy has quit [Max SendQ exceeded]
Adran has quit [Max SendQ exceeded]
anaeem1 has joined #ruby
parzo_ has quit [Read error: Connection timed out]
eshy has joined #ruby
qhartman has quit [Quit: Ex-Chat]
Spami has quit [Quit: This computer has gone to sleep]
relix has joined #ruby
Pharaoh2 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sdwrage has joined #ruby
brianherman has quit [Ping timeout: 272 seconds]
parzo has joined #ruby
Shidash has joined #ruby
Ankhers has quit [Remote host closed the connection]
newUser1234 has quit [Ping timeout: 260 seconds]
phinfonet has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
phinfonet has joined #ruby
jackjackdrpr has joined #ruby
Freijo has quit [Ping timeout: 272 seconds]
parzo has quit [Remote host closed the connection]
livingstn has joined #ruby
treehug88 has joined #ruby
livingstn has quit [Read error: Connection reset by peer]
parzo has joined #ruby
livingstn has joined #ruby
Fraeon has joined #ruby
dc_ has quit [Remote host closed the connection]
ghr has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
krisquigley has quit [Remote host closed the connection]
parzo has quit [Ping timeout: 240 seconds]
amargherio has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krisquigley has joined #ruby
TieSoul has quit [Read error: Connection reset by peer]
eyeamaye has quit [Quit: Leaving.]
renderful has joined #ruby
TieSoul has joined #ruby
asdasdasdasss has joined #ruby
havenwood has quit []
eyeamaye has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
shackleford has quit [Remote host closed the connection]
SilkFox has quit [Ping timeout: 246 seconds]
Sawbones has joined #ruby
Sleepee has joined #ruby
anildigital is now known as zz_anildigital
asdasdasdasss has quit [Ping timeout: 244 seconds]
TieSoul has quit [Ping timeout: 255 seconds]
mikesplain has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has joined #ruby
miyako has left #ruby [#ruby]
Grantlyk has quit [Remote host closed the connection]
dawkirst has quit [Quit: Leaving...]
Vivekananda has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
niklasb has joined #ruby
ssvo has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
lw has joined #ruby
ghr has joined #ruby
Grantlyk has joined #ruby
shackleford has joined #ruby
lw_ has joined #ruby
Sleepee has quit [Quit: Leaving]
yalue has quit [Quit: Leaving]
Grantlyk has quit [Remote host closed the connection]
sevvie has quit [Remote host closed the connection]
aspires has joined #ruby
spyderman4g63 has quit []
lw has quit [Ping timeout: 260 seconds]
ghr has quit [Ping timeout: 272 seconds]
hellangel7 has quit [Read error: Connection reset by peer]
Rahul_Roy has joined #ruby
vsoftoiletpaper has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
saarinen has joined #ruby
lele has quit [Ping timeout: 260 seconds]
jdj_dk has joined #ruby
kireevco has joined #ruby
discr33t_ has quit [Ping timeout: 246 seconds]
SilkFox_ has joined #ruby
krisquigley has quit [Remote host closed the connection]
SilkFox has joined #ruby
amundj has joined #ruby
mews has joined #ruby
chrishough has quit [Quit: chrishough]
phinfonet has quit []
kireevco has quit [Read error: Connection reset by peer]
<shevy> my $mage = shift;
<shevy> perl is super weird
timonv_ has quit [Remote host closed the connection]
<shevy> how does it know where to shift on
bronson has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
ppinto has quit [Quit: ppinto]
<eam> shevy: it's no different from ruby
<eam> >> shift # sends a message to self
<eval-in> eam => undefined local variable or method `shift' for main:Object (NameError) ... (https://eval.in/177520)
<shevy> :)
kireevco has quit [Client Quit]
r0bby_ has joined #ruby
<hoelzro> shift without args shifts from @_ if it's in a sub, @ARGV otherwise
johnmolina has quit [Remote host closed the connection]
<eam> >> instance_eval { def shift; rand(2**32).to_i; end; }; [shift, shift, shift]
<eval-in> eam => [4267342471, 761675822, 2878126596] (https://eval.in/177521)
SilkFox_ has quit [Ping timeout: 264 seconds]
<eam> hoelzro: and @_ is kiiiinda like the self context. kiiiiinda
<hoelzro> heh
<jhass> why the instance_eval there?
<eam> jhass: hm good point
Morkel has quit [Quit: Morkel]
Atrumx has joined #ruby
yfeldblum has joined #ruby
<eam> trying to make clear that we're operating on self
shackleford has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
joelteon has joined #ruby
alvaro_o has joined #ruby
eyeamaye has quit [Quit: Leaving.]
bradleyp_ has quit [Ping timeout: 245 seconds]
bradleyprice has joined #ruby
tewlz has quit [Ping timeout: 255 seconds]
johnmolina has joined #ruby
<shevy> is this truly clear
<shevy> hoelzro what is the @_ in perl? is that something implicit in a sub?
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hoelzro> yeah, it's the argument list
<jhass> joelteon: maybe your bundle is installed to vendor/ or something?
<hoelzro> so sub add { my ( $a, $b ) = @_; $a + $b } add(1, 2) # 3
<joelteon> jhass: oh, I see
<eam> shevy: it's basically what you were saying you wanted in ruby yesterday
mews has quit [Quit: He's gone...]
<joelteon> ok, so if it's using vendor, it won't pick system gems too
<shevy> I already forget what I wanted yesterday
<joelteon> it doesn't like two different sources
<joelteon> I understand
<eam> map { _ + _ }
<shevy> yeah
<shevy> the @ makes that ugly :(
ascarter has joined #ruby
<eam> ps hoelzro is making a subtle joke when he uses $a and $b
<shevy> actually, _ + _ is almost a smiley
ascarter has quit [Max SendQ exceeded]
JohnFord has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
<shevy> he looks like very serious man
lele has joined #ruby
eyeamaye has joined #ruby
<shevy> he probably never ever made a smiley on IRC!
ascarter has joined #ruby
<hoelzro> ;)
<eam> it's like a robot trying to mimic emotions
bronson has quit [Quit: bronson]
abuzze has joined #ruby
<hoelzro> that's me being naughty and forgetting about $a and $b being bad examples
InfraRuby has left #ruby [#ruby]
jimms has quit [Remote host closed the connection]
Karpuragauram has joined #ruby
Karpuragauram has quit [Read error: Connection reset by peer]
gr33n7007h has quit [Ping timeout: 244 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zorak has joined #ruby
gr33n7007h has joined #ruby
benzrf is now known as benzrf|offline
Beoran has quit [Ping timeout: 272 seconds]
agarie has quit [Remote host closed the connection]
zorak has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
djbkd has joined #ruby
jdj_dk has quit [Ping timeout: 250 seconds]
joelteon has left #ruby ["bye"]
krisquigley has joined #ruby
lw_ has quit [Quit: s]
lw has joined #ruby
agarie has joined #ruby
treehug88 has quit [Ping timeout: 250 seconds]
nszceta has quit [Ping timeout: 246 seconds]
abuzze has quit [Ping timeout: 260 seconds]
TorpedoSkyline has joined #ruby
felgenh3 has quit [Quit: felgenh3]
chrishough has joined #ruby
Squarepy has quit [Quit: Leaving]
speakingcode has quit [Ping timeout: 240 seconds]
kireevco has quit [Client Quit]
zorak has joined #ruby
djbkd has quit [Ping timeout: 255 seconds]
x1337807x has joined #ruby
nszceta has joined #ruby
Sawbones has quit []
timonv_ has joined #ruby
Sie00 has joined #ruby
lw has quit [Ping timeout: 255 seconds]
<shevy> naughty naughty
speaking1ode has joined #ruby
wjimenez_ has joined #ruby
Zenigor_ has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving.]
almostwhitehat has quit [Quit: almostwhitehat]
Tricon has joined #ruby
benlieb has joined #ruby
aspires has quit []
speaking1ode has quit [Client Quit]
definiv has quit [Quit: leaving]
amystephen has joined #ruby
wjimenez5271 has quit [Ping timeout: 250 seconds]
speakingcode has joined #ruby
Beoran has joined #ruby
sergiomiranda has quit [Quit: sergiomiranda]
zorak has quit [Read error: Connection reset by peer]
rickruby__ has left #ruby [#ruby]
aspires has joined #ruby
tvw has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
aarkerio has joined #ruby
rickruby has joined #ruby
jdj_dk has joined #ruby
<rickruby> anyone have a tutorial they've gone through that they'd recommend for building a gem for private use ?
<aarkerio> hi! in this line : if aut = article.author rescue nil
<aarkerio> the "rescue nil" part is just to be sure aut is not false
<aarkerio> ?
felgenh3 has joined #ruby
joshua__ has joined #ruby
<joshua__> hola, is `<%= print "-C #{fetch(:sidekiq_config)}" if fetch(:sidekiq_config) %>` valid erb?
almostwhitehat has joined #ruby
theharshest has quit [Read error: Connection reset by peer]
<apeiros> rickruby: not any different than building a public one
<apeiros> the only difference is not in building, but in "not publishing"
<apeiros> joshua__: looks valid to me
<rickruby> apeiros thanks i'll look into publishing gems
<joshua__> oki thanks apeiros, wasn't sure if `if` in erb needed to have an <% end %>
<apeiros> aarkerio: I *assume* it is to rescue a NoMethodError caused if article is e.g. nil and thus doesn't respond to .author. horrible code IMO.
yekta has quit [Quit: yekta]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> joshua__: inline if returns nil if the condition isn't met. and <%= %> calls to_s on the result. so it'll just insert an empty string in that case.
michaeldeol has joined #ruby
<joshua__> ok perfect, cheers apeiros
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> rickruby: `gem push your.gem` is the part which puts it on rubygems.org. just leave that part away. install it locally instead: `gem install path/to/your.gem`
alvaro_o has quit [Ping timeout: 245 seconds]
Spami has joined #ruby
sailias has quit [Quit: Leaving.]
ghostmoth has joined #ruby
jamesfordummies has joined #ruby
paulfm has quit []
duggiefr_ has quit []
Atrumx has quit [Ping timeout: 264 seconds]
<rickruby> apeiros okay cool, thanks
arya_ has quit [Read error: Connection reset by peer]
<aarkerio> apeiros: why horrible? works fine
arya_ has joined #ruby
djbkd has joined #ruby
shackleford has joined #ruby
shackleford has quit [Remote host closed the connection]
shackleford has joined #ruby
jamesfordummies has quit [Client Quit]
asdasdasdasss has joined #ruby
zorak has joined #ruby
aclearman037 has quit []
<shevy> hmm
<shevy> when I write stand-alone classes
tewlz has joined #ruby
<shevy> it seems as if it is better to store user input into an array
<shevy> and then batch process that array
<shevy> e. g. to simulate multiple file input
tylerkern has joined #ruby
<apeiros> aarkerio: because it's a bad idea to use the extremely unspecific inline rescue for something trivial like that
<shevy> "work on these files: ['homer.txt','marge.txt','bart.txt']
<apeiros> aarkerio: your "it works fine" is for a rather arbitrary value of "works" :)
timonv_ has quit [Remote host closed the connection]
<apeiros> aarkerio: it can easily be done using: auth = article && article.author - much more specific
<apeiros> aarkerio: additionally, assignment in a condition is bad style
nanoyak has quit [Quit: Computer has gone to sleep.]
jottr has joined #ruby
zorak has quit [Read error: Connection reset by peer]
asdasdasdasss has quit [Ping timeout: 245 seconds]
mews has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
Sid05_ has quit [Quit: Sid05_]
fschuindt has quit [Quit: Textual IRC Client: www.textualapp.com]
buto has joined #ruby
buto has quit [Max SendQ exceeded]
zorak has joined #ruby
fgo has joined #ruby
bmurt has quit []
buto has joined #ruby
Panicky has joined #ruby
cg433n has joined #ruby
mews has quit [Client Quit]
endash has quit [Quit: endash]
testcore has quit [Quit: [BX] The Spice Girls use BitchX (instead of underwear and talent)]
nanoyak has joined #ruby
Atrumx has joined #ruby
decoponyo has quit [Quit: Leaving...]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Ping timeout: 245 seconds]
Sid05_ has joined #ruby
Sie00 has quit [Remote host closed the connection]
SchweetPapa has joined #ruby
alvaro_o has joined #ruby
noop has quit [Ping timeout: 240 seconds]
arya_ has quit [Read error: Connection reset by peer]
arya_ has joined #ruby
frankle has joined #ruby
nanoyak has quit [Ping timeout: 260 seconds]
georgelappies has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
amargherio has quit [Remote host closed the connection]
nowthatsamatt has quit [Quit: nowthatsamatt]
<aarkerio> apeiros, thx!
aarkerio has quit [Quit: Verlassend]
dc_ has joined #ruby
lkba has joined #ruby
Bumptious has joined #ruby
davedev2_ has quit [Ping timeout: 260 seconds]
IcyDragon has joined #ruby
ldnunes has quit [Quit: Leaving]
Ayey_ has quit [Quit: leaving]
IceDragon is now known as Guest73273
IcyDragon is now known as IceDragon
Atrumx has quit [Ping timeout: 264 seconds]
Sid05_ has quit [Quit: Sid05_]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dc_ has quit [Remote host closed the connection]
georgelappies has joined #ruby
Guest73273 has quit [Ping timeout: 240 seconds]
cantonic has quit [Read error: Connection reset by peer]
<shevy> trying to get RCairo to work
<shevy> rb_cairo_private.h:43:23: error: 'ruby_errinfo' undeclared (first use in this function)
<shevy> # define RB_ERRINFO (ruby_errinfo)
zorak has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
x1337807x has joined #ruby
bpgoldsb|too is now known as bpgoldsb
SilkFox_ has joined #ruby
<shevy> nope
<shevy> I am dumb
itspots has quit [Quit: Computer has gone to sleep.]
itspots has joined #ruby
Sie00 has joined #ruby
<shevy> hmm another question
<shevy> I need to correct some files in a .html file
<shevy> to .css files, which are incorrect
dc_ has joined #ruby
<shevy> sorry
<shevy> I need to correct some *lines in a .html file
benlieb has quit [Quit: benlieb]
SilkFox_ has quit [Ping timeout: 272 seconds]
<shevy> ok :P
<shevy> .gsub works on the whole string ...
philcrissman has joined #ruby
m8 has quit [Quit: Sto andando via]
itspots has quit [Ping timeout: 260 seconds]
failshel_ has joined #ruby
ValicekB has quit [Ping timeout: 246 seconds]
benzrf|offline is now known as benzrf
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
InhalingPixels has quit [Remote host closed the connection]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
failshell has quit [Ping timeout: 246 seconds]
DreamingRainne has joined #ruby
zorak has joined #ruby
philcrissman has quit [Ping timeout: 260 seconds]
failshel_ has quit [Ping timeout: 244 seconds]
redondo has quit [Ping timeout: 250 seconds]
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
Ilyas has joined #ruby
cocotton_ has joined #ruby
andrewjanssen has joined #ruby
Sie00 has quit [Ping timeout: 250 seconds]
redondo has joined #ruby
dc_ has quit [Remote host closed the connection]
Atrumx has joined #ruby
dc_ has joined #ruby
parag has joined #ruby
dingus_khan has joined #ruby
cocotton has quit [Ping timeout: 240 seconds]
jayunit100_ has quit [Quit: jayunit100_]
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patrick99e99 has quit [Ping timeout: 260 seconds]
georgelappies has quit [Remote host closed the connection]
cocotton_ has quit [Ping timeout: 260 seconds]
autonomousdev has joined #ruby
zorak has quit [Ping timeout: 272 seconds]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
JohnFord has joined #ruby
jerius has quit []
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
nszceta has quit []
ascarter has joined #ruby
johnmolina has quit []
jamesfordummies has joined #ruby
troyready has quit [Ping timeout: 250 seconds]
mews has joined #ruby
zorak has joined #ruby
Ilyas_ has joined #ruby
benlieb has joined #ruby
ValicekB has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
dc_ has quit [Remote host closed the connection]
crdpink has joined #ruby
almostwhitehat has quit [Quit: almostwhitehat]
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
Ilyas has quit [Ping timeout: 272 seconds]
tylerkern has joined #ruby
eyeamaye has quit [Quit: Leaving.]
oetjenj has joined #ruby
gtrak has quit [Ping timeout: 264 seconds]
kirun has quit [Quit: Client exiting]
Atrumx has quit [Ping timeout: 264 seconds]
georgelappies has joined #ruby
dc_ has joined #ruby
mews has quit [Quit: He's gone...]
jonahR_ has quit [Quit: ¡Adios amigos, me fui para el carajo!]
djstorm has quit [Ping timeout: 245 seconds]
Sie00 has joined #ruby
doodlehaus has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
patrick99e99 has joined #ruby
arya_ has quit [Read error: Connection reset by peer]
krisquigley has quit [Remote host closed the connection]
blueOxigen has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby
livingstn has quit []
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davedev2_ has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
startupality has joined #ruby
britneywright has joined #ruby
JohnFord has joined #ruby
codecop has quit [Remote host closed the connection]
Sie00 has quit [Ping timeout: 240 seconds]
davedev24_ has quit [Ping timeout: 250 seconds]
jxf has quit [Ping timeout: 264 seconds]
zorak has quit [Ping timeout: 245 seconds]
SchweetPapa has quit [Ping timeout: 240 seconds]
w09x has joined #ruby
zorak has joined #ruby
apeiros has quit []
goshdarnyou has quit [Quit: Connection closed for inactivity]
SchweetPapa has joined #ruby
apeiros has joined #ruby
spider-mario has quit [Remote host closed the connection]
Pharaoh2 has quit [Remote host closed the connection]
asdasdasdasss has joined #ruby
deric_skibotn has quit [Ping timeout: 272 seconds]
TorpedoSkyline has joined #ruby
nateberkopec has quit [Quit: Leaving...]
yfeldblum has joined #ruby
jayunit100 has joined #ruby
freezey_ has quit [Remote host closed the connection]
terrell_t has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asdasdasdasss has quit [Ping timeout: 245 seconds]
dbasch has quit [Quit: dbasch]
andrewlio has quit [Quit: Leaving.]
tylerkern has joined #ruby
fgo has joined #ruby
apeiros has quit [Remote host closed the connection]
terrellt has quit [Ping timeout: 244 seconds]
RichardLitt has quit [Quit: RichardLitt]
apeiros has joined #ruby
bricker`work has quit [Read error: Connection reset by peer]
lw has joined #ruby
agarie has quit [Remote host closed the connection]
tjr9898 has quit [Remote host closed the connection]
goshdarnyou has joined #ruby
djbkd has quit [Remote host closed the connection]
tjr9898 has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
yfeldblum has quit [Remote host closed the connection]
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
georgelappies has quit [Ping timeout: 245 seconds]
fgo has quit [Ping timeout: 255 seconds]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kireevco has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
chipotle has quit [Quit: cya]
freezey has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjr9898 has quit [Ping timeout: 272 seconds]
bricker`work has joined #ruby
anaeem1 has quit [Remote host closed the connection]
<robscormack> you want to use ruby bc you want to build a reusable script?
<shevy> ruby is awesome
<robscormack> I use this: sed -i.bak -e 's/css\/(.+).css/stylesheets\/($1).css/g' *.html
michaeldeol has joined #ruby
benzrf is now known as benzrf|offline
momomomomo has quit [Quit: momomomomo]
ReBoRN- has quit [Remote host closed the connection]
kireevco has quit [Quit: Leaving.]
aspires has quit []
Petru has joined #ruby
aspires has joined #ruby
claymore has quit [Quit: night]
w09x has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
abuzze has joined #ruby
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deric_skibotn has joined #ruby
yfeldblum has joined #ruby
freezey has joined #ruby
shackleford has quit [Remote host closed the connection]
austincb has joined #ruby
mongag has quit [Quit: This computer has gone to sleep]
wallerdev has quit [Quit: wallerdev]
SilkFox_ has quit [Ping timeout: 245 seconds]
vsoftoiletpaper has quit []
abuzze has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Remote host closed the connection]
frosgy has joined #ruby
Neomex has quit [Ping timeout: 250 seconds]
ffranz has quit [Quit: Leaving]
georgelappies has joined #ruby
agarie has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bumptious has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 250 seconds]
icebourg has quit []
<dingus_khan> x-post from #ruby-lang: i think i have a stupid question: is there some relatively simple way to take a symbol that's passed as a parameter, that's the same name as a method, and convert it into a call to that method? am i insane?
dorei has joined #ruby
<DreamingRainne> dingus_khan: whatever.send(sym)
<DreamingRainne> or __send__ to be certain.
aspires has quit []
<DreamingRainne> >> "live".send(:reverse)
<eval-in> DreamingRainne => "evil" (https://eval.in/177533)
buto has quit [Quit: Textual IRC Client: www.textualapp.com]
<dingus_khan> DreamingRainne: holy piss, thank you so much, i KNEW there was something i'd lost in my memory at some point!
dc_ has quit [Remote host closed the connection]
frogsy has quit [Ping timeout: 240 seconds]
<Petru> So CNN 'Live' just got a new meaning for me...
tewlz has quit [Ping timeout: 272 seconds]
dbasch has joined #ruby
<mozzarella> "live".method(:reverse).call
<mozzarella> >> "live".method(:reverse).call
<eval-in> mozzarella => "evil" (https://eval.in/177534)
<mozzarella> dingus_khan: you can also do that ^
<DreamingRainne> That'll bind it to the object you called "method" on too, for better or worse.
freezey has quit []
SilkFox has quit [Ping timeout: 250 seconds]
marr has joined #ruby
toastynerd has quit [Remote host closed the connection]
<DreamingRainne> >> a = "live"; m = a.method(:reverse); a = "wut"; m.call
<eval-in> DreamingRainne => "evil" (https://eval.in/177535)
<zenspider> there's no real benefit to extracting the method and calling call on it. except overhead. depends on what you want to do
<mozzarella> >> a = "live"; m = a.method(:reverse); a << "wut"; m.call
<DreamingRainne> >> a = "live"; m = a.method(:reverse); a.upcase!; m.call # or defer it?
<eval-in> DreamingRainne => "EVIL" (https://eval.in/177536)
<dingus_khan> mozzarella: hmm, thank you! i'm going to study both approaches, it's for a method that builds a response hash, i want to call the method specified by a symbol as a parameter argument when calling the response method
<mozzarella> >> a = "live"; m = a.method(:reverse); a << "wut"; m.call
<eval-in> mozzarella => "tuwevil" (https://eval.in/177537)
<mozzarella> method is good if you need to store callables and call them later on
crdpink has quit [Ping timeout: 272 seconds]
<dingus_khan> mozzarella: would the "live" be my symbol?
djbkd has joined #ruby
<mozzarella> no, the object
<DreamingRainne> The "live" is whatever you want to call the method on; the :reverse is the symbol.
<dingus_khan> gotcha on the method, um, method--looking that up, have not seen that before
<Emmanuel_Chanel> Hello!
jds has quit [Quit: Connection closed for inactivity]
Ilyas_ has quit [Ping timeout: 255 seconds]
<Emmanuel_Chanel> Is there a good IRC bot reading RSS feeds?
<jhass> dingus_khan: if you don't want to accidentally call private methods use #public_send
w09x has joined #ruby
toastynerd has joined #ruby
jrhorn424 is now known as zz_jrhorn424
freerobby has quit [Quit: Leaving.]
<dingus_khan> i see, so could i use the isolated symbol as given as a parameter in an argument as the object on which to call #method on?
<dingus_khan> jhass: this would be calling private methods exclusively, it's from a public member function building a response body, does that make sense?
<zenspider>
<zenspider> too many "as"es
fold has quit [Ping timeout: 255 seconds]
<jhass> yeah, that question doesn't parse well
<jhass> what's an "isolated symbol"
<dingus_khan> sorry, gonna make a paste real quick to explain
<jhass> "parameter in an argument"?
msmith_ has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 255 seconds]
w09x has quit [Remote host closed the connection]
nobitanobi has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dingus_khan> sorry, does that make more sense? i knew i wasn't explaining that right
<nobitanobi> Hi guys, how can I return a Tempfile from a method and be able to access it? https://gist.github.com/novito/0e0fcda7514cac6db4c9 -- When I try to fetch the return of this method, I see a #<File:0x007f9231d9f088> instead of a #<Tempfile> - And the .path returns nil.
<zenspider> I hope that isn't the explanation.
<zenspider> tl;dr
InhalingPixels has quit []
agarie has quit [Remote host closed the connection]
sputnik13 has joined #ruby
momomomomo_ has joined #ruby
<dingus_khan> so in the else of #execute, if a request doesn't have a :method in it's request hash that is a protected a action, it should just call #response(:ok, <<method symbol here>>)
icarus has quit [Remote host closed the connection]
momomomomo_ has quit [Client Quit]
sdwrage has quit [Quit: This computer has gone to sleep]
momomomomo has joined #ruby
<dingus_khan> what i wanted to do was convert that :method symbol into a call to the method specified by the symbol
<jhass> @protected_actions is an array?
gruz0[russia] has joined #ruby
newUser1234 has joined #ruby
<jhass> and request[:method] returns a symbol?
charliesome has joined #ruby
<dingus_khan> oh yes sorry
<jhass> how is that ever equal?
<dingus_khan> yes it does, sorry
nateberkopec has joined #ruby
<dingus_khan> example request hash: req = {method: :clear_users, credentials: {user: 'bob', password: 'bobsweakpassword'}}
JoshGlzBrk has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
momomomomo has quit [Client Quit]
<jhass> nobitanobi: I guess that's because you unlink it
davedev24_ has joined #ruby
<dingus_khan> anyway, off to research __send__ and #method, brb
<nobitanobi> crap, that ensure killed me
<nobitanobi> thanks jhass
momomomomo has joined #ruby
<jhass> dingus_khan: use #public send or a plain #send. But answer my question first. How is a symbol ever equal to an array?
dc_ has joined #ruby
Takle has quit [Remote host closed the connection]
<dingus_khan> jhass: good question; i thought about that as well, but it passes all the tests, so i'm assuming the logic there is that is any stored symbol is a match for the given argument, then it evaluates to true
<dingus_khan> if any*
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<jhass> >> [:foo] == :foo
<eval-in> jhass => false (https://eval.in/177540)
<zenspider> what?
<jhass> >> :foo == [:foo]
<eval-in> jhass => false (https://eval.in/177541)
<jhass> you're tests are... not good
<jhass> *your
Takle has joined #ruby
<zenspider> before you get into dynamic programming you REALLY need to understand what the code is doing. otherwise you're opening up a world of hurt
<dingus_khan> had a feeling, hah
Sgeo has joined #ruby
<dingus_khan> yeah it was a rush job for sure
<dingus_khan> not mission critical
<zenspider> it's mission critical when you're dynamically executing methods.
<jhass> I see things like a check that always returns false, authorization check _inside the branch that is never executed_ and __in the else you want to call private methods with user data__
momomomomo has left #ruby [#ruby]
<jhass> I mean...
<jhass> that's not good
momomomomo has joined #ruby
<gruz0[russia]> hi guys
dc_ has quit [Ping timeout: 240 seconds]
sevvie has joined #ruby
<jhass> hi
<dingus_khan> got it, looking into that as well. i did this at 3AM last night, sigh
msmith has joined #ruby
jdj_dk has quit [Remote host closed the connection]
lw has quit [Quit: s]
gtc has quit [Remote host closed the connection]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gr33n7007h> why does 1 == 1.0 #=> true 1.eql? 1.0 #=> false
<jhass> and then you have an authorized? method where everybody expects a true/false response but instead you merely use its side effects
sdwrage has joined #ruby
<gruz0[russia]> use === for compare
<jhass> no, use ==
Rahul_Roy has quit [Quit: Connection closed for inactivity]
<gr33n7007h> I though == and .eql? was the same
sputnik13 has joined #ruby
<dingus_khan> jhass: what do you mean by side effects?
<jhass> gr33n7007h: Object#eql? docs explicitly state that it's not true for Numeric's
momomomomo has quit [Client Quit]
<jhass> dingus_khan: it sets @authorized which you later checks
yfeldblum has joined #ruby
momomomomo has joined #ruby
<jhass> dingus_khan: if you forget to call that method @authorized may not be what you think it is because you thought you called that method. That's a side effect
msmith has quit [Ping timeout: 272 seconds]
sputnik13 has quit [Client Quit]
dbasch has quit [Quit: dbasch]
terrell_t has quit [Remote host closed the connection]
<jhass> dingus_khan: what I'm getting at is that it's not obvious that the purpose of authorized? is to set @authorized
sepp2k has quit [Read error: Connection reset by peer]
<dingus_khan> jhass: um, not sure i follow--i'm sort of in the middle of re-writing the whole thing basically, but #authorized? currently hashes a password and checks against the stored hash and sets @authorized, true
asdasdasdasss has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
<dingus_khan> ah ok, yes i need to change a few things, i'm intending to make that whole process clearer
<jhass> normally you'd just return the result and call with authorized = authorized?(..) or if authorized?(...)
terrellt has joined #ruby
mary5030 has quit [Remote host closed the connection]
gruz0[russia] has quit [Quit: Leaving]
<dingus_khan> gotcha, i wanted to make it to where it wouldn't even check for authorized if there weren't credentials, i'm changing that whole decision structure basically at the moment
nowthatsamatt has joined #ruby
jayunit100 has quit [Quit: jayunit100]
<dingus_khan> i actually have to run out the door at the moment though, but thank you jhass, very helpful and exactly the "other eyes" i need, much appreciated
<jhass> gr33n7007h: since that paragraph is talking about Hashes it's probably to make {1 => :a, 1.0 => :b} work while having 1 == 1.0
yfeldblum has quit [Remote host closed the connection]
asdasdasdasss has quit [Ping timeout: 255 seconds]
mikesplain has joined #ruby
fgo has joined #ruby
yfeldblum has joined #ruby
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has joined #ruby
terrellt has quit [Ping timeout: 240 seconds]
<gr33n7007h> jhass, ah ok thanks I missed the bit about type conversion == .eql? though
<gr33n7007h> should read the whole para instead of scanning though it
fold has joined #ruby
wallerdev has joined #ruby
terrellt has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 264 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
yfeldblum has joined #ruby
aspires has joined #ruby
cantonic has quit [Quit: cantonic]
austincb has quit [K-Lined]
* zenspider shakes head
aspires has quit [Client Quit]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amacou has joined #ruby
mallu has joined #ruby
philcrissman has joined #ruby
Takle has quit [Remote host closed the connection]
tewlz has joined #ruby
<mallu> hi, I'm trying to create something like this http://pastie.org/9456856 Can someone please help me with that?
<mallu> getting info from a hash and create a template
freerobby has joined #ruby
iamjarvo has joined #ruby
Channel6 has joined #ruby
dbasch has joined #ruby
sevvie has quit [Ping timeout: 260 seconds]
philcrissman has quit [Ping timeout: 255 seconds]
<momomomomo> mallu: if that’s your own language/template format, https://github.com/judofyr/temple
joshua__ has quit [Remote host closed the connection]
<jhass> isn't that ini?
flowerhack has joined #ruby
ascarter has joined #ruby
SilkFox_ has joined #ruby
renderful has quit [Remote host closed the connection]
<jhass> mallu: considered the ini gem?
renderful has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
yokel has quit [Ping timeout: 260 seconds]
<jhass> mallu: or inifile, seems to be more updated
yfeldblum has joined #ruby
<mallu> jhass: I'm trying to create a chef template
aspires has joined #ruby
benlieb has quit [Quit: benlieb]
<jhass> oh, so you want to generate that from the hash
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> ?
<mallu> yes
mews has joined #ruby
phoo1234567 has quit [Quit: Leaving]
aspires has quit [Client Quit]
SilkFox_ has quit [Ping timeout: 250 seconds]
<jhass> how dynamic is your hash?
eyeamaye has joined #ruby
<jhass> I mean is it always the same with just different values?
renderful has quit [Ping timeout: 250 seconds]
<jhass> or completely dynamic, different sections, different key names etc.
razrunelord has joined #ruby
<mallu> it is dynamic.. values are coming from different cookbooks
<mallu> see this.. http://pastie.org/9456878
yfeldblu_ has joined #ruby
<godd2> How irrespnsible would it be to redefine Data?
<godd2> I mean, does anyone use it?
<mallu> yes.. we are moving the template as a config file in a host
InfraRuby has joined #ruby
<jhass> mallu: okay, I'd transform the hash first to something that you can actually iterate through easily
yfeldblum has quit [Read error: Connection reset by peer]
<zenspider> godd2: yes. someone uses it.
<zenspider> it exists, therefore someone is using it, and someone else is using it incorrectly
<zenspider> `ri Data`
yokel has joined #ruby
<godd2> "Nothing is known about Data"
<mallu> jhass: I thought having a hash I can iterate trhough
tcstar has quit [Read error: Connection reset by peer]
<jhass> mallu: yes but your hash isn't nicely structured for the output you want
choke has quit [Read error: Connection reset by peer]
mikesplain has quit [Ping timeout: 250 seconds]
<mallu> don't worry about the output format.. I can fix that.. what I want is how easy I can iterate through the hash to get the vlues
<zenspider> omnifocus version 2.1.5 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2014/08/omnifocus-version-2-1-5-has-been-released.html
mews_ has joined #ruby
sputnik13 has joined #ruby
<mallu> obviously the has changes so I can't use [0], [1] etc as I have here .. http://pastie.org/9456878
<mallu> ** hash changes
<godd2> zenspider: well, hopfully Object.send(:remove_const, :Data) doesn't break anyone's code who wants to use my gem
TorpedoSkyline has joined #ruby
mews has quit [Ping timeout: 240 seconds]
mews_ is now known as mews
kaspergrubbe_ has quit [Remote host closed the connection]
Peter has joined #ruby
Peter has left #ruby [#ruby]
gigetoo has joined #ruby
mallu has quit [Ping timeout: 246 seconds]
yokel has quit [Ping timeout: 264 seconds]
TorpedoSkyline has quit [Client Quit]
lw has joined #ruby
<zenspider> godd2: that's a really fucking bad idea
<zenspider> namespace your shit and don't mess with core classes
lw has quit [Max SendQ exceeded]
PeterBoy has quit [Quit: Bye Bye]
<godd2> I did namespace it to Sound::Data, but if I include Sound in an example script, and call Data.new it tried to call the core Data, not mine
lw has joined #ruby
<jhass> then don't include
<jhass> I never understood what's up with these people having to include their stuff into main
<godd2> It's less verbose. I'm not saying that's a good reason, just that it's a reason
<jhass> btw you can still call Sound::Data.new after the include
<zenspider> so, you namespaced it, and then unnamespace it with include. Makes sense.
<zenspider> I've said my piece. It's a really fucking bad idea. Don't do it. You'd NEVER think doing it to String was a good idea, so I don't see why you think this is.
<godd2> I wouldn't do it to String because people use String
<jhass> ^
<jhass> +1 to zenspider
<zenspider> godd2: so. burden of proof is on you. Go PROVE that nobody uses Data
<zenspider> wait. you can't.
gdd229 has joined #ruby
tcstar has joined #ruby
<zenspider> and ppl are using it. soo.... bad fucking idea
tcstar has quit [Client Quit]
choke has joined #ruby
n_blownapart has joined #ruby
felgenh3 has quit [Quit: felgenh3]
<zenspider> Oh look. I use it in my code.
cybercix has quit [Read error: Connection reset by peer]
bradleyprice has quit [Remote host closed the connection]
<godd2> lol didn't mean to rustle any jimmies
bradleyprice has joined #ruby
jmbrown412 has quit [Remote host closed the connection]
<zenspider> "lol". You asked how irresponsible something would be. You were told how fucking stupid it was. You argued.
<zenspider> you want to be stupid about this. go nuts.
<godd2> I don't know why you're lashing out at me though.
mews has quit [Quit: He's gone...]
threesixes has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
eyeamaye has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
<godd2> If I'm wrong, that's fine, I can take it.
<zenspider> Don't mind me. I have this odd condition where when someone asks a question I think they're sincere about wanting an answer.
n_blownapart has quit []
<godd2> Just because I argue back doesn't make me insincere.
arya_ has quit [Ping timeout: 250 seconds]
bradleyprice has quit [Ping timeout: 240 seconds]
<godd2> To be fair, your claims remain unsubstantiated. Not that mine, don't.
Hobogrammer has quit [Ping timeout: 260 seconds]
<zenspider> the fuck?
<godd2> mine don't*
startupality has quit [Quit: startupality]
<zenspider> it's a core fucking class you moron. it's referenced in rdoc. it's referenced explictly in README.EXT.
<jhass> I think we've made clear that it's not a good idea. Let's leave it there
<zenspider> like I said, if you want to be stupid, go for it.
<jhass> zenspider: stop insulting, that's not helping
<zenspider> welcome to my /fools list
<zenspider> there's no helping this guy
choke has quit [Quit: Leaving]
pietr0 has quit [Quit: pietr0]
<alpha123> I can't help but reference http://rubydrama.com/ right now (not that I mind :P )
<jhass> no reason to insult, really
<DreamingRainne> You don't get to assume what other people will or won't do with the core classes. They're "core" for a reason: everyone's supposed to be able to depend on them being there, and having XYZ behavior.
<shevy> the only sad thing is that RubyPanther is not here :(
yfeldblum has quit [Ping timeout: 240 seconds]
<DreamingRainne> If you want your own class, go for it, but don't think to replace a core class in code that other people are meant to use.
nateberkopec has joined #ruby
<zenspider> alpha123: it doesn't list the last one anymore? I was wondering how long it's been
momomomomo has quit [Quit: momomomomo]
<zenspider> guess I'll have to go poke at devchix instead.
freerobby has quit [Quit: Leaving.]
<shevy> "Imagine the person sitting at another keyboard somewhere whom your comment may affect. Is this something you would say to them in person?"
<shevy> YES
ARCADIVS has joined #ruby
<DreamingRainne> Like, you say, "no one uses Data", so you feel free in assuming you can overwrite it. Fine, but then if someone *does* go on to use Data, they scribble all over your assumptions, right? And that'd be a bad thing, for the same reason it's bad when you scribble on theirs.
arya_ has joined #ruby
<godd2> Well I can take some name calling, I just didn't mean to put you in a bad mood zenspider.
nowthatsamatt has quit [Quit: nowthatsamatt]
<godd2> So for that I apologize
cpruitt has quit [Quit: cpruitt]
<alpha123> zenspider: I don't actually remember the last one, what was it?
<shevy> zenspider is in a bad mood?
<godd2> shevy If he is, I take full responsibility.
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gr33n7007h> zenspider needs dos grande cervezas
<zenspider> alpha123: heh. don't remember. I try to ignore that crap. :)
startupality has joined #ruby
<zenspider> shevy: call it severely allergic to wilful ignorance
Petru has quit [Quit: Leaving]
hsps_ has quit [Ping timeout: 260 seconds]
<zenspider> gr33n7007h: while I do drink now, I still can't stand beer. thanks tho. :)
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nateberkopec has quit [Ping timeout: 240 seconds]
dorei has quit []
<gr33n7007h> :P
zaphro has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dopie has joined #ruby
<dopie> hello beautiful rubyists!
<shevy> gr33n7007h spanish beer?
OrkzRule has quit [Ping timeout: 260 seconds]
<shevy> I once had to drink "sangria" ...
<gr33n7007h> shevy, yep san miguel
asdasdasdasss has joined #ruby
<shevy> not that it is beer, but I dunno what it really wanted to be
<shevy> ewwww
<gr33n7007h> lol
<shevy> isn't that awful gr33n7007h ?
zaphro has left #ruby [#ruby]
<gr33n7007h> I quite liketbh
<dopie> sangria is awesome
freerobby has joined #ruby
tewlz has quit [Ping timeout: 260 seconds]