apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
mkaesz has joined #ruby
pierre1_ has quit [Quit: Leaving]
justin_pdx has quit [Quit: justin_pdx]
roolo_ has quit [Ping timeout: 252 seconds]
kirun has quit [Quit: Client exiting]
codeurge has joined #ruby
graydot has joined #ruby
mkaesz has quit [Ping timeout: 250 seconds]
amacou has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
GaryOak_ has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
coetry has joined #ruby
amacou has quit [Ping timeout: 252 seconds]
banister has joined #ruby
KnownSyntax has joined #ruby
adriancb has quit [Remote host closed the connection]
iamninja has joined #ruby
juanpablo_ has quit [Quit: (null)]
juanpablo_ has joined #ruby
Dopagod has joined #ruby
Pumukel has quit [Ping timeout: 252 seconds]
coetry has quit [Quit: Lost terminal]
Zai00 has joined #ruby
juanpaucar has joined #ruby
juanpaucar has quit [Remote host closed the connection]
Pumukel has joined #ruby
juanpaucar has joined #ruby
Pumukel has quit [Client Quit]
sivsushruth has joined #ruby
Sawbones_ has joined #ruby
roolo has joined #ruby
serivichi has quit [Ping timeout: 272 seconds]
TheSuper has joined #ruby
lanemeyer has joined #ruby
juanpablo_ has quit [Ping timeout: 256 seconds]
DadoCe has joined #ruby
roolo has quit [Read error: Connection reset by peer]
serivichi has joined #ruby
roolo has joined #ruby
juanpaucar has quit [Ping timeout: 264 seconds]
kl has quit [Ping timeout: 252 seconds]
multi_io_ has joined #ruby
razieliyo has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
chemich has joined #ruby
shum has joined #ruby
horsecowdog has joined #ruby
iamninja is now known as iamninja_
TheSuper has quit [Remote host closed the connection]
horsecowdog has quit [Remote host closed the connection]
roolo has quit [Ping timeout: 250 seconds]
multi_io has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
iamninja_ is now known as iamninja-
iamninja- is now known as iamninja
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Butch128 has left #ruby [#ruby]
nii236 has joined #ruby
postmodern has quit [Quit: Leaving]
Dopagod has quit [Quit: WeeChat 0.4.2]
Dopagod has joined #ruby
Dopagod has quit [Client Quit]
nicolastarzia has quit []
serivichi has quit [Ping timeout: 255 seconds]
icefactory has joined #ruby
<icefactory> what is the coolest thing you can do in ruby?
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<weaksauce> build things that make me money
<icefactory> like what/
<weaksauce> websites
dru` has joined #ruby
<nii236> Just realised Watchr gem doesn't work in Ruby 2.2.0
<nii236> What do?
<icefactory> masturbate?
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<nii236> ...
tunaCanBruh has joined #ruby
oo_ has joined #ruby
<icefactory> well that's all you can do now until they fix it
<havenwood> icefactory: not a good place for sexual references, keep it Ruby
<icefactory> unless you know how to fix stuff
<icefactory> but after i finish masturbating i can usually think straight
<havenwood> icefactory: modeling fighter hardware and software, space, whatev.
DissonantGuile has quit [Quit: See ya!]
<havenwood> icefactory: turing complete lang, have fun
<icefactory> okay havenwood
<icefactory> may i pm you?
<icefactory> it's regarding stuff that may not be considered "family friendly"
sevenseacat has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
_djbkd has quit [Remote host closed the connection]
chemich has quit [Quit: I'm ouuuuut]
marr has quit [Ping timeout: 246 seconds]
iMadper has quit [Remote host closed the connection]
ryann has joined #ruby
tunaCanBruh has quit [Ping timeout: 245 seconds]
sevvie has quit [Quit: leaving]
_djbkd has joined #ruby
Soda has quit [Remote host closed the connection]
roolo has joined #ruby
it0a has joined #ruby
<nii236> sevenseacat: Halp!
<sevenseacat> nii236: i will halp!
<nii236> My watchr gem wont' install with ruby 2.2.0
<nii236> What is the best course of action
<sevenseacat> watchr's kinda old school
<nii236> Yeah had a look, hasn't been updated for 5 years
<nii236> is there a replacement
<nii236> Somethign that auto-tests or whatever you call it
<havenwood> installs for me on 2.2
ryann has quit [Read error: Connection reset by peer]
jgrevich has joined #ruby
<sevenseacat> nowadays we'd use guard for the same task
<nii236> havenwood: oh really
<havenwood> yup
<sevenseacat> i'll check if it installs here
<nii236> sevenseacat: Isn't that for rails, or ruby as well
<icefactory> sevenseacat you have kids right?
<havenwood> sevenseacat: ignore icefactory
<nii236> Maybe I'm missing a dependency...
_djbkd has quit [Remote host closed the connection]
<havenwood> troll
horsecowdog has joined #ruby
ryann has joined #ruby
<sevenseacat> havenwood: will do
<sevenseacat> yeah it installed here fine too
<sevenseacat> Successfully installed watchr-0.7
<nii236> Hmm
_djbkd has joined #ruby
<icefactory> i'm not a troll
<nii236> Ah it installed but the script its running is dead
<nii236> I'll have a closer look
uptownhr has joined #ruby
Takle has joined #ruby
ryann is now known as ryan0x2
<icefactory> i just want to understand why teaching my twins how to masturbate on their fourth birthday is "wrong"
<havenwood> icefactory: Keep it on topic or be banished.
_djbkd has quit [Remote host closed the connection]
icefactory has left #ruby [#ruby]
<jgrevich> I feel like I ran into this issue before but cannot recall the fix: If I boot my machine with the TV off, then turn the TV on, no video is displayed. Rebooting is the only thing that seems to fix it.
Akuma has quit [Quit: So long sukkas!]
roolo has quit [Ping timeout: 250 seconds]
_djbkd has joined #ruby
reset has joined #ruby
roolo has joined #ruby
<sevenseacat> watchr's dependencies probably havent been locked down tight enough, given the last update was five years ago
<jgrevich> ^^ doh, wrong channel, sorry
Aswebb_ has joined #ruby
<nii236> jgrevich: Was gonna say
<jgrevich> :)
Takle has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 245 seconds]
Megtastique has quit []
attamusc has quit [Quit: Connection closed for inactivity]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
roolo has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
zdennis has joined #ruby
postmodern has joined #ruby
antgel has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
_maes_ has quit [Ping timeout: 250 seconds]
horsecowdog has quit [Remote host closed the connection]
roolo has joined #ruby
Sawbones_ has joined #ruby
Regulati_ has joined #ruby
RegulationD has quit [Remote host closed the connection]
mkaesz has joined #ruby
pengin_ has quit [Remote host closed the connection]
pengin has joined #ruby
kham has quit [Ping timeout: 240 seconds]
jottr_ has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
horsecowdog has joined #ruby
jottr_ has joined #ruby
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Regulati_ has quit [Ping timeout: 240 seconds]
roolo has quit [Ping timeout: 256 seconds]
doodlehaus has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
jottr has joined #ruby
jottr_ has quit [Read error: Connection reset by peer]
StoneCypherAW has quit [Ping timeout: 252 seconds]
jonr22 has quit [Read error: Connection reset by peer]
pengin has quit [Ping timeout: 245 seconds]
jonr2219 has joined #ruby
mkaesz has quit [Ping timeout: 256 seconds]
dorei has quit []
ghr has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
connor_goodwolf has joined #ruby
stunder has quit [Remote host closed the connection]
pdoherty has quit [Quit: Leaving]
mjuszczak has joined #ruby
Motoservo has joined #ruby
atomi has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
nettoweb has joined #ruby
baroquebobcat has joined #ruby
skj3gg has joined #ruby
baroquebobcat has quit [Client Quit]
uptownhr has quit [Quit: uptownhr]
Hijiri has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghg has joined #ruby
banister has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
jonr2219 has quit [Ping timeout: 250 seconds]
roolo has joined #ruby
bigmac_ has joined #ruby
uptownhr has joined #ruby
yfeldblum has quit [Remote host closed the connection]
graydot has quit [Quit: graydot]
yfeldblum has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
Sawbones_ has quit [Remote host closed the connection]
havenwood has quit []
roolo has quit [Ping timeout: 256 seconds]
piotrj_ has joined #ruby
commmmodo has joined #ruby
afex has quit [Ping timeout: 240 seconds]
piotrj has quit [Ping timeout: 252 seconds]
sega05 has quit [Quit: Page closed]
Joufflu has joined #ruby
veduardo has joined #ruby
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
roolo has joined #ruby
ghr has joined #ruby
afex has joined #ruby
triple_b has joined #ruby
doodlehaus has quit [Remote host closed the connection]
pietr0 has quit [Quit: pietr0]
mjuszczak has quit []
jottr has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
mjuszczak has joined #ruby
roolo has quit [Ping timeout: 256 seconds]
lampd1_ has joined #ruby
roolo has joined #ruby
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
felixjet has quit [Ping timeout: 256 seconds]
ghr has quit [Ping timeout: 252 seconds]
lampd1 has quit [Ping timeout: 245 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
roolo has quit [Ping timeout: 244 seconds]
ByronJohnson has quit [Quit: Restart client.]
serivichi has joined #ruby
lampd1_ is now known as lampd1
codeurge has joined #ruby
ByronJohnson has joined #ruby
tier has joined #ruby
StoneCypherAW has joined #ruby
sinkensabe has joined #ruby
DadoCe has quit [Remote host closed the connection]
<nii236> sevenseacat: FINALLY got guard working
<sevenseacat> \o/
sent-hil has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
roolo has joined #ruby
yfeldblum has quit [Remote host closed the connection]
rubytor has joined #ruby
banister_ has joined #ruby
yfeldblum has joined #ruby
banister_ has quit [Max SendQ exceeded]
sinkensabe has quit [Ping timeout: 250 seconds]
robustus has quit [Ping timeout: 255 seconds]
mjuszczak has quit []
timanema has quit [Ping timeout: 252 seconds]
roolo has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
DadoCe has joined #ruby
Guest13442 has joined #ruby
lanemeyer has quit [Ping timeout: 255 seconds]
livingstn has quit []
robustus has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
baroquebobcat has joined #ruby
plutonic has quit [Quit: plutonic]
ghostpl_ has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
hsps_ has joined #ruby
pontiki has joined #ruby
mkaesz has joined #ruby
roolo has joined #ruby
djbkd_ has joined #ruby
wookiehangover has quit [Ping timeout: 256 seconds]
hsps__ has quit [Ping timeout: 272 seconds]
roolo_ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
PaulCapestany has quit [Quit: .]
mkaesz has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
bigmac_ has quit [Ping timeout: 245 seconds]
_djbkd has quit [Ping timeout: 244 seconds]
juanpaucar has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
PaulCapestany has joined #ruby
oo_ has joined #ruby
gsd has joined #ruby
jenrzzz has joined #ruby
horsecowdog has quit [Remote host closed the connection]
roolo_ has quit [Ping timeout: 246 seconds]
pyx has joined #ruby
pyx has quit [Client Quit]
reset has quit [Quit: Leaving...]
wookiehangover has joined #ruby
iamjarvo has joined #ruby
piotrj has joined #ruby
Rapier- has quit [Quit: (null)]
piotrj_ has quit [Read error: Connection reset by peer]
iamjarvo has quit [Max SendQ exceeded]
juanpaucar has quit [Ping timeout: 264 seconds]
bricker has quit [Ping timeout: 252 seconds]
uptownhr has quit [Quit: uptownhr]
iamjarvo has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
uptownhr has joined #ruby
horsecowdog has joined #ruby
afex has quit [Ping timeout: 250 seconds]
sent-hil has left #ruby [#ruby]
skj3gg has quit [Quit: ZZZzzz…]
Aswebb_ has quit [Remote host closed the connection]
mjuszczak has joined #ruby
roolo has joined #ruby
uptownhr has quit [Client Quit]
serivichi has quit [Ping timeout: 255 seconds]
djbkd_ has quit [Quit: My people need me...]
greenbagels has joined #ruby
piotrj has quit [Remote host closed the connection]
roolo_ has joined #ruby
roolo has quit [Ping timeout: 265 seconds]
bruno- has quit [Ping timeout: 272 seconds]
StoneCypherAW has quit [Ping timeout: 246 seconds]
roolo_ has quit [Ping timeout: 256 seconds]
roolo has joined #ruby
casadei has joined #ruby
sivsushruth has quit [Ping timeout: 250 seconds]
sivsushruth has joined #ruby
rubytor has quit [Quit: No Ping reply in 180 seconds.]
rubytor has joined #ruby
roolo has quit [Read error: Connection reset by peer]
roolo has joined #ruby
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
nick______ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
tunaCanBruh has joined #ruby
roolo_ has joined #ruby
mloveless has quit [Remote host closed the connection]
roolo has quit [Read error: Connection reset by peer]
leat has quit [Ping timeout: 264 seconds]
tunaCanBruh has quit [Ping timeout: 252 seconds]
roolo_ has quit [Ping timeout: 246 seconds]
monod has quit [Quit: Sto andando via]
claptor has joined #ruby
michael_mbp has quit [Excess Flood]
Limix has quit [Quit: Limix]
timanema has joined #ruby
uptownhr has joined #ruby
mwlang has joined #ruby
nini1294 has quit [Ping timeout: 250 seconds]
amclain has joined #ruby
Crazy_Atheist has quit [Ping timeout: 272 seconds]
michael_mbp has joined #ruby
<mwlang> does anyone know what system packages need to be installed in order to install ruby-ldap gem or the ruby-openldap gem? I’m getting compilation errors. I’ve already run “sudo yum install ldap-clients” but I suspect I need developer headers as well.
reinaldob has quit [Remote host closed the connection]
ghr has joined #ruby
Crazy_Atheist has joined #ruby
nini1294 has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
rubytor has quit [Quit: No Ping reply in 180 seconds.]
rubytor has joined #ruby
rekky has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
veduardo has quit [Ping timeout: 246 seconds]
scripore has joined #ruby
roolo has joined #ruby
dru` has quit [Ping timeout: 246 seconds]
serivichi has joined #ruby
arup_r has joined #ruby
tcrypt has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
<mwlang> nvm, using ruby-net-ldap gem which installed just fine and has decent docs.
dru` has joined #ruby
horsecowdog has quit [Read error: Connection reset by peer]
roolo has quit [Ping timeout: 245 seconds]
uptownhr has quit [Quit: uptownhr]
horsecowdog has joined #ruby
rubytor has quit [Quit: No Ping reply in 180 seconds.]
chipotle has quit [Read error: Connection reset by peer]
it0a has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
rubytor has joined #ruby
roolo has joined #ruby
amacou has joined #ruby
oleo is now known as Guest77090
oleo__ has joined #ruby
zdennis has quit [Quit: zdennis]
uptownhr has joined #ruby
RegulationD has joined #ruby
Guest77090 has quit [Ping timeout: 246 seconds]
amacou has quit [Ping timeout: 245 seconds]
roolo has quit [Ping timeout: 264 seconds]
RegulationD has quit [Remote host closed the connection]
RegulationD has joined #ruby
rubytor has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
mloveless has joined #ruby
piotrj has joined #ruby
oo_ has joined #ruby
uptownhr has quit [Quit: uptownhr]
tier has quit [Remote host closed the connection]
roolo has joined #ruby
mistermo_ has joined #ruby
RegulationD has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
wallerdev has joined #ruby
riotjones has joined #ruby
magic__ has joined #ruby
adriancb has joined #ruby
roolo has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
neonalpine has joined #ruby
DadoCe has quit [Remote host closed the connection]
greenarrow has quit [Read error: Connection reset by peer]
luriv_ has quit [Ping timeout: 252 seconds]
ghostpl_ has joined #ruby
rbennacer has joined #ruby
DadoCe has joined #ruby
uptownhr has joined #ruby
lys has joined #ruby
mikepack has joined #ruby
justin_pdx has joined #ruby
riotjones has quit [Ping timeout: 252 seconds]
Motoservo has quit [Quit: Motoservo]
rajeshchawla has joined #ruby
adriancb has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
neonalpine has quit [Remote host closed the connection]
neonalpine has joined #ruby
<eam> /win 1
roolo has joined #ruby
<eam> oops, hello everyone
mistermo_ has quit [Remote host closed the connection]
Rapier- has joined #ruby
DEA7TH has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Megtastique has joined #ruby
symbol_ has joined #ruby
uptownhr has quit [Client Quit]
DadoCe has quit [Ping timeout: 264 seconds]
roolo_ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
fgo has quit [Ping timeout: 265 seconds]
shadoi has quit [Ping timeout: 265 seconds]
avr has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
piotrj has quit [Remote host closed the connection]
mjuszczak has quit []
roolo_ has quit [Ping timeout: 244 seconds]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
graydot has joined #ruby
lemur has joined #ruby
mwlang has quit [Quit: mwlang]
uptownhr has joined #ruby
ghostpl_ has quit [Ping timeout: 256 seconds]
piotrj has joined #ruby
commmmodo has quit [Quit: commmmodo]
serivichi has quit [Read error: Connection reset by peer]
brb3 has joined #ruby
marienz has joined #ruby
uptownhr has quit [Client Quit]
mikepack has quit [Remote host closed the connection]
Jetchisel has joined #ruby
claptor has quit [Quit: this channel is bakas]
piotrj has quit [Read error: Connection reset by peer]
piotrj has joined #ruby
roolo has joined #ruby
shadoi has joined #ruby
byaruhaf_ has joined #ruby
AirNest has quit [Ping timeout: 272 seconds]
mistermo_ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
neonalpi_ has joined #ruby
jenrzzz has joined #ruby
felixjet has joined #ruby
roolo has quit [Ping timeout: 264 seconds]
scripore has quit [Client Quit]
roolo has joined #ruby
neonalpine has quit [Ping timeout: 244 seconds]
rbennacer has quit [Remote host closed the connection]
mikepack has joined #ruby
deric_skibotn has quit [Ping timeout: 252 seconds]
maxhodak has joined #ruby
maxhodak has left #ruby [#ruby]
reinaldob has joined #ruby
mjuszczak has joined #ruby
ghr has joined #ruby
felixjet_ has joined #ruby
oo_ has quit [Remote host closed the connection]
horsecowdog has quit [Remote host closed the connection]
ajaiswal has joined #ruby
roolo has quit [Ping timeout: 245 seconds]
FooMunki_ is now known as FooMunki
uptownhr has joined #ruby
_maes_ has joined #ruby
roolo has joined #ruby
reinaldob has quit [Ping timeout: 256 seconds]
felixjet has quit [Ping timeout: 272 seconds]
ghr has quit [Ping timeout: 255 seconds]
maletor_ has quit [Quit: Computer has gone to sleep.]
Megtastique has quit []
roolo has quit [Read error: Connection reset by peer]
Motoservo has joined #ruby
roolo_ has joined #ruby
mistermo_ has quit [Remote host closed the connection]
roolo has joined #ruby
mjuszczak has quit []
neonalpi_ has quit [Remote host closed the connection]
roolo_ has quit [Ping timeout: 264 seconds]
B1n4r10 has joined #ruby
towski_ has quit [Remote host closed the connection]
roolo has quit [Ping timeout: 250 seconds]
symbol_ has quit [Quit: WeeChat 1.1]
havenwood has joined #ruby
juanpaucar has joined #ruby
uptownhr has quit [Quit: uptownhr]
uptownhr has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
mjuszczak has joined #ruby
afex has joined #ruby
quazimodo has quit [Remote host closed the connection]
aamador has joined #ruby
juanpaucar has quit [Ping timeout: 252 seconds]
piotrj has quit [Read error: Connection reset by peer]
piotrj has joined #ruby
mkaesz has joined #ruby
spacemud has quit [Ping timeout: 252 seconds]
krz has joined #ruby
rhg135|zzz is now known as rhg135
krz has quit [Client Quit]
afex has quit [Ping timeout: 256 seconds]
krz has joined #ruby
mattjbarlow has quit [Ping timeout: 265 seconds]
braincrash has quit [Quit: bye bye]
mattjbarlow has joined #ruby
spacemud has joined #ruby
tcrypt has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
nick______ has quit [Ping timeout: 265 seconds]
braincrash has joined #ruby
uptownhr has quit [Quit: uptownhr]
mkaesz has quit [Ping timeout: 272 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
Jetchisel has joined #ruby
roolo has joined #ruby
hsps_ has quit [Ping timeout: 245 seconds]
psy_ has quit [Ping timeout: 256 seconds]
Rapier- has quit [Quit: (null)]
commmmodo has joined #ruby
roolo has quit [Ping timeout: 245 seconds]
graydot has quit [Quit: graydot]
mjuszczak has quit []
mistermo_ has joined #ruby
uptownhr has joined #ruby
timanema has quit [Ping timeout: 240 seconds]
mjuszczak has joined #ruby
tus has quit []
aamador has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
lys has quit [Quit: lys]
tunaCanBruh has joined #ruby
<chipotle> TS//SI//CRYPTO//NOFORN
arescorpio has quit [Excess Flood]
horsecowdog has joined #ruby
coderhs has joined #ruby
coderhs has quit [Client Quit]
mjuszczak has quit []
mikepack has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 264 seconds]
sevvie has joined #ruby
tunaCanBruh has quit [Ping timeout: 264 seconds]
TheNet has joined #ruby
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ghg has left #ruby ["Textual IRC Client: www.textualapp.com"]
ghostpl_ has joined #ruby
nisstyre has joined #ruby
nisstyre has quit [Changing host]
avr has quit [Quit: this channel is bakas]
diegoviola has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
montropolous has joined #ruby
montropolous has left #ruby ["Leaving"]
huck5 has joined #ruby
ghostpl_ has quit [Ping timeout: 244 seconds]
<huck5> Hi. I'm new to Ruby, and I'm wondering what some basic syntax does. Can someone tell me what the ' >> ' operator does in Ruby?
martianixor has joined #ruby
skj3gg has joined #ruby
mjuszczak has joined #ruby
maximski has joined #ruby
roolo has joined #ruby
maximski has quit [Client Quit]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_djbkd has joined #ruby
Channel6 has joined #ruby
oo_ has joined #ruby
<TheNet> huck5: I could just be ignorant but I've never seen that used, do you mean '<<'?
mjuszczak has quit [Client Quit]
_djbkd has quit [Client Quit]
<huck5> Well, to be fair, it's a "find the bug" kind of section
<huck5> So perhaps that is the bug.
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
greenbagels has quit [Read error: Connection reset by peer]
roolo has quit [Ping timeout: 264 seconds]
sevvie has quit [Ping timeout: 240 seconds]
<huck5> So perhaps that is the bug.
<hanmac> huck5 & TheNet: Bignum,Fixnum and Date does have ">>" methods
<huck5> But when I run '4 >> 1' I get '2'.
<hanmac> that is bitshift right
<huck5> Ah ha!
<huck5> henmac: Thank you! That clarifies things a lot
ghr has joined #ruby
montropolous has joined #ruby
roolo has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
postmodern has quit [Quit: Leaving]
skj3gg has quit [Quit: ZZZzzz…]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_lazarevsky has quit [Ping timeout: 246 seconds]
krz has quit [Quit: WeeChat 1.0.1]
ryan0x2 has quit [Read error: Connection reset by peer]
krz has joined #ruby
montropolous has quit [Quit: Leaving]
mjuszczak has joined #ruby
roolo has quit [Ping timeout: 256 seconds]
bluOxigen has joined #ruby
OrbitalKitten has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjeanes_ has quit [Ping timeout: 245 seconds]
mistermo_ has quit [Remote host closed the connection]
uptownhr has quit [Quit: uptownhr]
bjeanes_ has joined #ruby
bevvahlee has quit [Quit: I am...]
RegulationD has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Lewix has quit [Remote host closed the connection]
roolo has joined #ruby
riotjones has joined #ruby
lxsameer has joined #ruby
mjuszczak has quit []
claptor has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
mkaesz has joined #ruby
mkaesz has quit [Remote host closed the connection]
oo__ has joined #ruby
mkaesz has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
horsecowdog has quit [Remote host closed the connection]
Hijiri has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
roolo has quit [Ping timeout: 245 seconds]
piotrj_ has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjones has quit [Ping timeout: 245 seconds]
psy_ has joined #ruby
icarus has joined #ruby
mkaesz has quit [Ping timeout: 264 seconds]
_maes_ has joined #ruby
dfinninger has joined #ruby
piotrj has quit [Ping timeout: 246 seconds]
ryan0x2 has joined #ruby
musl has quit [Quit: WeeChat 1.0.1]
oo__ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
maletor has joined #ruby
jonr22 has quit [Remote host closed the connection]
timanema has joined #ruby
Sthebig has joined #ruby
piotrj has joined #ruby
roolo has joined #ruby
nahtnam has joined #ruby
TheNet has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
reset has joined #ruby
piotrj_ has quit [Ping timeout: 245 seconds]
blueOxigen has joined #ruby
reset has quit [Remote host closed the connection]
reset has joined #ruby
casadei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bluOxigen has quit [Ping timeout: 272 seconds]
KramerC has quit [Ping timeout: 244 seconds]
timanema has quit [Ping timeout: 244 seconds]
krz has quit [Ping timeout: 250 seconds]
NivenHuH has joined #ruby
roolo has quit [Ping timeout: 264 seconds]
fgo has quit [Ping timeout: 252 seconds]
roolo has joined #ruby
razieliyo has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
ismaelga has quit [Remote host closed the connection]
roolo has quit [Ping timeout: 240 seconds]
roolo has joined #ruby
huck5 has quit [Quit: Leaving]
roolo has quit [Ping timeout: 252 seconds]
nini1294 has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
GnuYawk has quit [Read error: No route to host]
duncannz has joined #ruby
mikepack has quit []
slawrence00 has joined #ruby
antgel has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
echevemaster has quit [Remote host closed the connection]
krz has joined #ruby
dfinninger has quit [Remote host closed the connection]
byaruhaf_ has quit [Remote host closed the connection]
byaruhaf_ has joined #ruby
ismaelga has joined #ruby
roolo has joined #ruby
bluOxigen has joined #ruby
juanpaucar has joined #ruby
nupejosh has joined #ruby
roolo_ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
KramerC has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
chrishough has joined #ruby
blueOxigen has quit [Ping timeout: 250 seconds]
yvemath has quit [Remote host closed the connection]
BLuEGoD has quit [Remote host closed the connection]
ismaelga has quit [Ping timeout: 264 seconds]
cjim has joined #ruby
benlieb has joined #ruby
roolo has joined #ruby
benlieb has quit [Client Quit]
juanpaucar has quit [Ping timeout: 245 seconds]
Mongey has joined #ruby
Hijiri has quit [Ping timeout: 272 seconds]
Hijiri has joined #ruby
<Mongey> is there an easy way to map over an array of hashes and grab a value ? like array.map(&:mykey)
roolo_ has quit [Ping timeout: 264 seconds]
commmmodo has quit [Ping timeout: 246 seconds]
dfinninger has joined #ruby
roolo has quit [Ping timeout: 240 seconds]
bigkevmc_ has joined #ruby
coderanger has joined #ruby
rorra has quit [Quit: rorra]
rhg135 is now known as rhg135|zzz
<coderanger> Hi, I'm documenting (with YARD) some modules that do the `extend ClassMethods` thang to bundle classmethods in to a single module. Is there any way to show them in-line like YARD would if they def self.whatever locally and then hide the ClassMethods module?
bigkevmcd has quit [Ping timeout: 250 seconds]
rajeshchawla has quit []
piotrj_ has joined #ruby
_reset has joined #ruby
amacou has joined #ruby
dfinninger has quit [Remote host closed the connection]
piotrj has quit [Ping timeout: 256 seconds]
reset has quit [Ping timeout: 244 seconds]
sameerynho has joined #ruby
<weaksauce> Mongey array.map { |x| x[:mykey] }
olivierrr is now known as zz_olivierrr
GnuYawk has joined #ruby
<Mongey> weaksauce yeah, just wondering if it's possible via a proc
Morkel has joined #ruby
Dolphi has joined #ruby
nupejosh has quit [Quit: leaving]
amacou has quit [Ping timeout: 244 seconds]
lxsameer has quit [Ping timeout: 240 seconds]
pontiki has quit [Quit: gnite]
piotrj has joined #ruby
robbyoconnor has joined #ruby
tunaCanBruh has joined #ruby
<weaksauce> Mongey why? I don't think it's possible
diegoviola has joined #ruby
<Mongey> for the sake of succinctness - kind of just wanted to check there wasn't a way I didn't know about
piotrj_ has quit [Ping timeout: 264 seconds]
ghostpl_ has joined #ruby
_reset has quit [Remote host closed the connection]
reset has joined #ruby
tunaCanBruh has quit [Ping timeout: 256 seconds]
AirNest has joined #ruby
plutonic has joined #ruby
roolo has joined #ruby
plutonic has quit [Client Quit]
ghostpl_ has quit [Ping timeout: 246 seconds]
michael_mbp has quit [Excess Flood]
grassdog has joined #ruby
commmmodo has joined #ruby
mistermo_ has joined #ruby
Dolphi has quit [Quit: Leaving]
michael_mbp has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
artmann has quit [Quit: No Ping reply in 180 seconds.]
artmann_ has joined #ruby
roolo has quit [Ping timeout: 252 seconds]
grassdog has quit [Client Quit]
The_Phoenix has joined #ruby
avr has joined #ruby
roolo has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
AirNest has quit [Ping timeout: 265 seconds]
mistermo_ has quit [Remote host closed the connection]
towski_ has joined #ruby
jcromartie has quit [Ping timeout: 250 seconds]
roolo has quit [Ping timeout: 246 seconds]
jcromartie has joined #ruby
mistermocha has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
jack_rabbit has joined #ruby
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
graydot has joined #ruby
Channel6 has quit [Quit: Leaving]
riotjones has joined #ruby
yfeldblum has joined #ruby
byaruhaf_ has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
graydot_ has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
byaruhaf_ has joined #ruby
maletor has joined #ruby
graydot has quit [Ping timeout: 246 seconds]
graydot has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
<certainty> moin guys
roolo has joined #ruby
graydot_ has quit [Ping timeout: 252 seconds]
tagrudev has joined #ruby
byaruhaf_ has quit [Remote host closed the connection]
wallerdev_ has joined #ruby
wallerdev has quit [Ping timeout: 252 seconds]
wallerdev_ is now known as wallerdev
AlexRussia has quit [Ping timeout: 246 seconds]
roolo_ has joined #ruby
SOLDIERz_ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
hvxgr has quit [Ping timeout: 256 seconds]
ghr has joined #ruby
ismaelga has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
<certainty> >> def fetcher; ->(key,receiver){ receiver[key] }.curry end; [{ foo: :bar }, { foo: :baz }].map(&fetcher.call(:foo))
<eval-in> certainty => [:bar, :baz] (https://eval.in/293600)
<certainty> Mongey: ^ somewhat roundabout
RegulationD has joined #ruby
byaruhaf_ has joined #ruby
<Mongey> haha nice certainty
jack_rabbit has quit [Ping timeout: 264 seconds]
<Mongey> ty
<shevy> what testing framework should I use certainty
<certainty> shevy: the one you like. the one that feels good. i don't care personally as long as you do test :)
<certainty> shevy: i use rspec for years now, but others are happy with minitest
<shevy> ok then rspec it will be
bricker has joined #ruby
apeiros_ has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 250 seconds]
apeiros_ has joined #ruby
<certainty> shevy: also if you have much code that is quite functional you might want to have a look at those quickcheck clones for ruby
roolo_ has quit [Ping timeout: 256 seconds]
<certainty> property-based testing is a mighty thing
oo_ has quit [Remote host closed the connection]
ismaelga has quit [Ping timeout: 256 seconds]
<certainty> >> def fetcher; ->(key,receiver){ receiver[key] }.curry end; [{ foo: :bar }, { foo: :baz }].map(&fetcher.(:foo))
<certainty> is vent shorter
<certainty> even, even
<shevy> one baby step after the other
<shevy> I am rewriting my first text-game in ruby; since it's a mess and I have to start all over anyway, I'm going to put this into a testing framework chain
wldcordeiro has joined #ruby
<certainty> shevy: good move. didn't you test before?
<shevy> why would I need to test
<shevy> that was the last project I tried to use @@vars btw :)
RegulationD has quit [Ping timeout: 246 seconds]
AlexRussia has joined #ruby
<shevy> it's such a mess
Waheedi has joined #ruby
riotjones has joined #ruby
oki has joined #ruby
<certainty> shevy: there a many reasons to do testing. One of the main reasons for me is that i want to be able to change my code without having to fear that i break something without noticing it
<certainty> shevy: http://lisp-unleashed.de/2014/04/11/testing_your_chicken_code/ shameless selfplug. You might want to read the introduction
bruno- has joined #ruby
last_staff has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
commmmodo has quit [Quit: commmmodo]
amclain has quit [Quit: Leaving]
jack_rabbit has joined #ruby
shadoi has quit [Quit: Leaving.]
<wasamasa> your blog?
<certainty> yeah, but i post not very often
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
djellemah_ has joined #ruby
byaruhaf_ has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 250 seconds]
timonv has joined #ruby
roolo has joined #ruby
graydot has quit [Quit: graydot]
jonr22 has joined #ruby
djellemah has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
agrinb has joined #ruby
graydot has joined #ruby
oo_ has quit [Remote host closed the connection]
pottsy has left #ruby [#ruby]
oo_ has joined #ruby
graydot has quit [Client Quit]
ponga has joined #ruby
roolo has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby
roolo has joined #ruby
kl has joined #ruby
wallerdev has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
elaptics is now known as elaptics_away
Takle has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
agrinb has quit [Ping timeout: 256 seconds]
ryan0x2 has quit [Remote host closed the connection]
mkaesz has quit [Ping timeout: 264 seconds]
roolo has quit [Ping timeout: 264 seconds]
roolo has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
lolmaus has quit [Quit: Konversation terminated!]
roolo has quit [Read error: Connection reset by peer]
roolo has joined #ruby
byaruhaf_ has joined #ruby
cjim has quit [Quit: (null)]
timonv has quit [Ping timeout: 265 seconds]
hvxgr has joined #ruby
<shevy> cuz you are lazy
matcouto has joined #ruby
towski_ has quit [Remote host closed the connection]
roolo has quit [Ping timeout: 265 seconds]
fabrice31 has joined #ruby
Morkel has quit [Quit: Morkel]
timanema has joined #ruby
davedev2_ has quit [Ping timeout: 250 seconds]
aganov has joined #ruby
sinkensabe has joined #ruby
davedev24_ has joined #ruby
tvon has quit [Quit: Lost terminal]
postmodern has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
jack_rabbit has quit [Ping timeout: 255 seconds]
bal1 has joined #ruby
SOLDIERz_ has quit [Quit: Be back later ...]
timanema has quit [Ping timeout: 246 seconds]
jack_rabbit has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
davedev2_ has joined #ruby
wicope has joined #ruby
<certainty> shevy: i have no time!!!1°111°1° ;)
<shevy> yeah
<shevy> the internet stole much time :(
leat has joined #ruby
<shevy> I am watching movies through the internet!
<certainty> shevy: crazy times
mloveless has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
lemur has quit [Remote host closed the connection]
mloveless has joined #ruby
mcpierce` has quit [Ping timeout: 252 seconds]
roolo has joined #ruby
<arup_r> ponga: Hi
<arup_r> there ?
<ponga> yop
<ponga> what's up?
<arup_r> I wrote it morning.. It is now bug free with the help of zenspider:
<arup_r> ponga: ^^
AirNest has joined #ruby
anarang has joined #ruby
kyb3r_ has joined #ruby
JoshGlzBrk has joined #ruby
ghostpl_ has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
<shevy> hey certainty in rspec - if I subclass from a class, do I have to test the same method again?
ghostpl_ has joined #ruby
<shevy> specifically all my classes have a method called reset(), defined in the base class of the project there
roolo has quit [Ping timeout: 250 seconds]
bluOxigen has quit [Read error: Connection reset by peer]
<Mongey> you don't have to ... shevy.
mcpierce has joined #ruby
bluOxigen has joined #ruby
<Mongey> there's probably no point unless it's doing something like calling an overriden function
<arup_r> Mongey: Why? Asking out of curiosity
<j416> shevy: do you feel like you need to test it manually?
<arup_r> lol
<shevy> j416 dunno really yet; just kind of trying to do it right the first time
<Mongey> wut arup_r
ptrrr has joined #ruby
<j416> shevy: test it once, and then test the final thing if needed (i.e. API or what have you)
AirNest has quit [Ping timeout: 250 seconds]
<j416> shevy: too many tests mean you can never change anything without rewriting a ton of tests, which slows development significantly
<arup_r> Explanation of "you don't have to ... shevy."
<j416> (which is needed sometimes, but most of the time it's a waste)
<ponga> arup_r: i thought of this, can you not utilise Date#saturday? method
<ponga> it has #friday? #sunday? and all
SOLDIERz_ has joined #ruby
<shevy> cool
<shevy> ponga taught me something new today
juanpaucar has joined #ruby
<ponga> i thought that maybe arup_r you could make an iteration and check #saturday? and #sunday?
<ponga> shevy: really? lol
<j416> arup_r: I like your tagline :)
<ponga> pass the dates in range thru iteration , omit those return true to #saturday? #sunday?
terlar has joined #ruby
kalusn has joined #ruby
teddyp1cker has joined #ruby
dh64 has joined #ruby
anaeem1 has joined #ruby
<ponga> shevy: i looked again and API doesn't have Date#weekday? Date#weekend?
<ponga> we need it!
roolo has joined #ruby
bricker has quit [Ping timeout: 256 seconds]
<shevy> yeah
AlecTaylor has joined #ruby
<AlecTaylor> hi
<shevy> but I opened too many feature requests in the last 2 years
<shevy> I think they hate me at http://bugs.ruby-lang.org/projects/ruby-trunk
<j416> it's hard because it's ambiguous
<j416> public holidays and such.
juanpaucar has quit [Ping timeout: 272 seconds]
andikr has joined #ruby
roolo_ has joined #ruby
<j416> also even without holidays, 'weekend' is ambiguous
pestle has joined #ruby
<j416> sometimes it means saturday and sunday
<j416> sometimes it includes adjacent days
<ponga> ok just sat/sun checker
roolo has quit [Read error: Connection reset by peer]
<AlecTaylor> How do I access class variables? Tried: foo.rb=`module Foo; class Foo; BAR=5; end; end;`. main.rb=`require_relative 'foo.rb'; puts Foo::BAR`
<j416> t.saturday? || t.sunday?
psy_ has quit [Quit: Leaving]
jack_rabbit has quit [Ping timeout: 265 seconds]
ajaiswal is now known as ajaiswa|afk
<j416> AlecTaylor: that's Foo::Foo::BAR
ajaiswa|afk is now known as ajaiswal|lunch
kyb3r_ has quit [Ping timeout: 272 seconds]
<AlecTaylor> Thanks. j416 how do I access it from within a Foo method? - I've tried ::BAR and self.BAR
kyb3r_ has joined #ruby
roolo has joined #ruby
<j416> what's "a Foo method"?
<gr33n7007h> AlecTaylor: BAR
_Andres has joined #ruby
<AlecTaylor> foo.rb=`module Foo; class Foo; BAR=5; def bar; ::BAR end; end; end;`
<AlecTaylor> gr33n7007h: Trying that now. So like C++?
cjim has joined #ruby
<AlecTaylor> Works!
<AlecTaylor> Thanks
<j416> ::BAR means the BAR which is not in a class or module
<j416> (hence nothing before ::)
<j416> top scope.
cjim has quit [Client Quit]
ghr has joined #ruby
Spami has joined #ruby
ismaelga has joined #ruby
<AlecTaylor> Thanks
AlecTaylor has quit [Quit: Leaving]
roolo_ has quit [Ping timeout: 264 seconds]
jack_rabbit has joined #ruby
roolo has quit [Ping timeout: 246 seconds]
byaruhaf_ has quit [Remote host closed the connection]
allenn has joined #ruby
Macaveli has joined #ruby
byaruhaf has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
ismaelga has quit [Ping timeout: 264 seconds]
<ponga> arup_r: are you there
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<arup_r> yes
<arup_r> ponga: My moto is to collect weekdays...:) Thanks the for the link
dru` has quit [Ping timeout: 250 seconds]
<ponga> arup_r: you mean collecting monday to friday?
send has joined #ruby
roolo has joined #ruby
<arup_r> yes
<ponga> i thought this code could help
<ponga> checking only weekday
<arup_r> Just see my testes as I gave in the link
bigkevmc_ is now known as bigkevmcd
darkdaysx1 has joined #ruby
tagrudev has quit [Read error: Connection reset by peer]
tagrudev has joined #ruby
darkdaysx1 has left #ruby [#ruby]
<arup_r> j416: which tag line ? :)
FooMunki has quit [Read error: Connection reset by peer]
<j416> arup_r: at the page you linked
agrinb has joined #ruby
<arup_r> Debugging is twice.... <~~ this one ?
<arup_r> j416: ^^
<j416> heh yes
tesuji has joined #ruby
<arup_r> hehehe
<arup_r> humm
<j416> there are far too many people writing clever code
timonv has joined #ruby
<arup_r> me too write
FooMunki has joined #ruby
send has quit [Remote host closed the connection]
tunaCanBruh has joined #ruby
<arup_r> that tag line sometime made me crazy
jack_rabbit has quit [Ping timeout: 246 seconds]
<j416> hah why?
<arup_r> well
<arup_r> moment please
roolo has quit [Ping timeout: 246 seconds]
mkaesz has joined #ruby
pestle has left #ruby ["WeeChat 1.0.1"]
mkaesz has quit [Remote host closed the connection]
<arup_r> mm
Joufflu has quit [Read error: Connection reset by peer]
<arup_r> j416: ^^
mkaesz has joined #ruby
<j416> heh
ghr has joined #ruby
rocknrollmarc has joined #ruby
<j416> why do people top post in a mailing list agh
<arup_r> :(
<j416> especially when it's already been done the right way, sigh
<arup_r> Top posting creates issues while reading... I know
agrinb has quit [Ping timeout: 250 seconds]
<arup_r> pontiki: did it
<arup_r> ;)
Synthbread has joined #ruby
last_staff has quit [Ping timeout: 246 seconds]
tunaCanBruh has quit [Ping timeout: 240 seconds]
sandelius has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
magic__ has quit [Quit: Leaving]
flughafen has joined #ruby
despai has joined #ruby
<gr33n7007h> >> def weekday?(d); d.saturday? || d.sunday? ? false : true; end; weekday? Time.new
<eval-in> gr33n7007h => true (https://eval.in/293626)
rocknrollmarc has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 245 seconds]
<arup_r> yes
jack_rabbit has joined #ruby
Mongey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r> I did this in my code
<arup_r> :)
alien_ has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
<gr33n7007h> ah, shit it's still not the weekend :(
<sevenseacat> soon!
hs366 has joined #ruby
<arup_r> But using an array [1,2m..]
fgo has joined #ruby
ajaiswal|lunch is now known as ajaiswal
<arup_r> lol
terlar has quit [Quit: WeeChat 1.1.1]
<gr33n7007h> can't come quick enough!
<arup_r> No..
<sevenseacat> then 4 day long weekend yaaaaaaah
terlar has joined #ruby
<arup_r> why?
<sevenseacat> why not?
<ponga> ah thanks gr33n7007h , didn't think of using ||
<gr33n7007h> ponga: np
<arup_r> dunno
crack has quit [Ping timeout: 245 seconds]
despai has quit [Client Quit]
despai has joined #ruby
selu has joined #ruby
terlar has quit [Client Quit]
ajaiswal has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 256 seconds]
ajaiswal has joined #ruby
djellemah_ has quit [Quit: Leaving]
rocknrollmarc has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
roolo has joined #ruby
ki0 has joined #ruby
wallerdev has quit [Quit: wallerdev]
CustosLimen has quit [Ping timeout: 246 seconds]
Cust0sL1men has quit [Ping timeout: 252 seconds]
<shortdudey123> looking at the zookeeper ruby gem... anyone know how to get the same data as the stat api with the ruby gem?
despai has quit [Quit: This computer has gone to sleep]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roolo has quit [Ping timeout: 250 seconds]
<coderanger> Hi, I'm documenting (with YARD) some modules that do the `extend ClassMethods` thang to bundle classmethods in to a single module. Is there any way to show them in-line like YARD would if they def self.whatever locally and then hide the ClassMethods module?
roolo has joined #ruby
Pawky has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
Rollabunna has quit [Remote host closed the connection]
jgrevich_ has joined #ruby
Rollabunna has joined #ruby
ravenzz has quit [Quit: Connection closed for inactivity]
jgrevich has quit [Ping timeout: 245 seconds]
jgrevich_ is now known as jgrevich
tvw has joined #ruby
roolo has quit [Ping timeout: 244 seconds]
fantazo has joined #ruby
shredding has joined #ruby
jack_rabbit has quit [Ping timeout: 252 seconds]
lolmaus has joined #ruby
roolo has joined #ruby
piotrj has joined #ruby
chrishough has quit [Ping timeout: 245 seconds]
govg has quit [Ping timeout: 250 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
roolo has quit [Ping timeout: 252 seconds]
bigkevmcd has quit [Quit: Outta here...]
sameerynho has quit [Quit: Leaving]
amacou has joined #ruby
livathinos has joined #ruby
rekky has quit [Remote host closed the connection]
shock_one has joined #ruby
rekky has joined #ruby
<shock_one> Does anybody know a BST gem having an API to receive a subtree that is less than?
jottr has joined #ruby
towski_ has joined #ruby
nini1294 has joined #ruby
einarj has joined #ruby
roolo has joined #ruby
RegulationD has joined #ruby
jenrzzz has joined #ruby
amacou has quit [Ping timeout: 272 seconds]
AlexRussia has quit [Ping timeout: 252 seconds]
grassdog has joined #ruby
dumdedum has joined #ruby
Guest123 has joined #ruby
FooMunki has quit [Read error: No route to host]
FooMunki_ has joined #ruby
roolo has quit [Ping timeout: 244 seconds]
RegulationD has quit [Ping timeout: 250 seconds]
yfeldblu_ has quit [Ping timeout: 265 seconds]
SOLDIERz_ has quit [Ping timeout: 255 seconds]
plutonic has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
roolo has joined #ruby
ptrrr has quit [Quit: ptrrr]
AirNest has joined #ruby
alex88 has joined #ruby
yxejamir has joined #ruby
yfeldblum has joined #ruby
roolo_ has joined #ruby
cmckee has quit [Quit: cmckee]
ismaelga has joined #ruby
jack_rabbit has joined #ruby
roolo has quit [Ping timeout: 256 seconds]
arup_r has quit [Remote host closed the connection]
Dr3amc0d3r|away has quit [Ping timeout: 245 seconds]
roolo has joined #ruby
Rollabunna has quit [Remote host closed the connection]
tcrypt has quit [Remote host closed the connection]
Rollabunna has joined #ruby
AirNest has quit [Ping timeout: 250 seconds]
chrishough has joined #ruby
agrinb has joined #ruby
roolo__ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
roolo_ has quit [Ping timeout: 245 seconds]
sinkensabe has quit [Remote host closed the connection]
ismaelga has quit [Ping timeout: 250 seconds]
strixd has joined #ruby
psy_ has joined #ruby
diegoviola has quit [Quit: WeeChat 1.1.1]
psy_ has quit [Max SendQ exceeded]
CustosLimen has joined #ruby
psy_ has joined #ruby
govg has joined #ruby
blackmesa has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
roolo__ has quit [Ping timeout: 255 seconds]
jonr22 has quit [Ping timeout: 240 seconds]
Dr3amc0d3r|away has joined #ruby
SOLDIERz_ has joined #ruby
jack_rabbit has quit [Ping timeout: 255 seconds]
lolmaus has quit [Quit: Konversation terminated!]
danjordan has left #ruby [#ruby]
chinmay_dd has joined #ruby
Hobogrammer has quit [Ping timeout: 246 seconds]
sevenseacat has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
Timgauthier has joined #ruby
sinkensabe has joined #ruby
lolmaus has joined #ruby
ndrei_ has quit [Ping timeout: 246 seconds]
blackmesa has quit [Quit: WeeChat 1.1.1]
ndrei has quit [Ping timeout: 256 seconds]
fabrice31_ has joined #ruby
grassdog has quit [Quit: Lingo: www.lingoirc.com]
ghr has joined #ruby
blackmesa has joined #ruby
ndrei has joined #ruby
joonty has joined #ruby
ndrei_ has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
kham has joined #ruby
aswen has joined #ruby
havenwood has quit [Remote host closed the connection]
bayed has joined #ruby
towski_ has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 256 seconds]
roolo has joined #ruby
tkuchiki has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
ghr has joined #ruby
olivier_bK has joined #ruby
fgo has joined #ruby
techsethi_ has joined #ruby
Zai00 has joined #ruby
nii236 has quit [Remote host closed the connection]
MasterPiece has quit [Quit: Bye!]
roolo has quit [Ping timeout: 252 seconds]
marr has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
kl has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 250 seconds]
Takle has joined #ruby
roolo has joined #ruby
mroach has quit [Quit: mroach]
mroach has joined #ruby
mroach has quit [Client Quit]
jimms has joined #ruby
WhereIsMySpoon has quit [Disconnected by services]
Asher has joined #ruby
wldcordeiro has quit [Ping timeout: 265 seconds]
WhereIsMySpoon_ has joined #ruby
roolo has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
Alina-malina has quit [Ping timeout: 256 seconds]
dys has joined #ruby
timanema has joined #ruby
Alina-malina has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
jespada has joined #ruby
AirNest has joined #ruby
juanpaucar has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
timanema has quit [Ping timeout: 264 seconds]
bal1 has quit [Quit: bal1]
michael_mbp has quit [Excess Flood]
codecop has joined #ruby
mistermocha has joined #ruby
bal1 has joined #ruby
vtunka has joined #ruby
juanpaucar has quit [Ping timeout: 264 seconds]
michael_mbp has joined #ruby
Morkel has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
martianixor has quit [Quit: Leaving]
_reset has joined #ruby
timonv has joined #ruby
deepy has quit [Quit: ZNC - http://znc.in]
mistermocha has quit [Ping timeout: 252 seconds]
deepy has joined #ruby
plutonic has quit [Quit: plutonic]
elaptics_away is now known as elaptics
reset has quit [Ping timeout: 246 seconds]
AlexRussia has joined #ruby
mloveless has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 250 seconds]
blueOxigen has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
kalusn has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 264 seconds]
wald0 has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
Bounga has joined #ruby
anarang has quit [Ping timeout: 250 seconds]
_ixti_ has quit [Ping timeout: 246 seconds]
lkba has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jottr has joined #ruby
davidmles has joined #ruby
davidmles has left #ruby [#ruby]
agrinb has joined #ruby
m8 has joined #ruby
Bounga has quit [Client Quit]
nfk has joined #ruby
Bounga has joined #ruby
tunaCanBruh has joined #ruby
malcolmva has quit [Ping timeout: 250 seconds]
sivsushruth has quit [Ping timeout: 252 seconds]
msgodf has joined #ruby
sivsushruth has joined #ruby
ismaelga has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
agrinb has quit [Ping timeout: 265 seconds]
mroach has joined #ruby
tunaCanBruh has quit [Ping timeout: 240 seconds]
reinaldob has joined #ruby
fantazo has quit [Quit: Verlassend]
rsty has joined #ruby
lxsameer has joined #ruby
ismaelga has quit [Ping timeout: 255 seconds]
<rsty> How would I update values in an array of arrays, this doesn't seem to be working:
<shevy> rsty you can always update directly
<rsty> array.each_index {|i,x| array[i][0] = customdef(array[i][0])}
anarang has joined #ruby
<shevy> >> array = [1,2,3]; array[2] = 4; array
<eval-in> shevy => [1, 2, 4] (https://eval.in/293732)
<apeiros_> rsty: that should work
<apeiros_> >> ary = [[1,2,3]]; i = 0; ary[i][0] = "new value"; ary
<eval-in> apeiros_ => [["new value", 2, 3]] (https://eval.in/293733)
nini1294 has quit [Ping timeout: 255 seconds]
davidhq has joined #ruby
wottam has joined #ruby
malcolmva has joined #ruby
<rsty> thanks apeiros_ , shevy -- my def was the culprit of my issue
<rsty> alright, 4AM,.. time for bed
camilasan has quit [Ping timeout: 255 seconds]
nini1294 has joined #ruby
camilasan has joined #ruby
Bounga has quit [Remote host closed the connection]
Bounga has joined #ruby
Bounga has quit [Remote host closed the connection]
Bounga has joined #ruby
nini1294 has quit [Read error: Connection reset by peer]
duncannz has quit [Remote host closed the connection]
davidhq has quit [Ping timeout: 250 seconds]
zorak8 has quit [Ping timeout: 250 seconds]
lxsameer has quit [Quit: Leaving]
bluOxigen has joined #ruby
davidhq has joined #ruby
grn has joined #ruby
<arup_r> rsty: You are going to sleep at 4 AM
mirageglobe has joined #ruby
<Bounga> System Information: Model: Mac Mini (Late 2012) • OS: OS X 10.9.5 (Mavericks) (Build 13F34)
<arup_r> Well.. Good morning
<arup_r> wut?
rocknrollmarc has quit [Read error: Connection reset by peer]
blueOxigen has quit [Ping timeout: 256 seconds]
withnale_ has joined #ruby
<arup_r> Bounga: how you got to know my system config?
Tinfoilhat_ has quit [Ping timeout: 252 seconds]
roshanavand has joined #ruby
kl has joined #ruby
jimms has quit [Read error: Connection reset by peer]
The_Phoenix1 has joined #ruby
nettoweb has joined #ruby
The_Phoenix has quit [Ping timeout: 252 seconds]
<Bounga> this is mine :-)
jimms has joined #ruby
<Bounga> this is the output of the /sysinfo command
deepy has quit [Changing host]
deepy has joined #ruby
Bounga has quit [Remote host closed the connection]
Bounga has joined #ruby
hanmac1 has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<Timgauthier> System Information: Model: MacBook Air (13-inch, Mid 2012) • CPU: Intel Core i5-3427U (4 Threads, 2 Cores) @ 1.80 GHz • Screen Resolution: 1920 x 1080 • OS: OS X 10.10.2 (Yosemite) (Build 14C109)
spider-mario has joined #ruby
fgo has joined #ruby
huddy has joined #ruby
rocknrollmarc has joined #ruby
<Timgauthier> shh, you don't see beta builds
<Bounga> Seems like most of the people here are using a mac
<Timgauthier> well yesah
RegulationD has joined #ruby
<shevy> damn macsters
survili has joined #ruby
<shevy> jhass do something
<shevy> they are taking over
terlar has joined #ruby
ringarin has joined #ruby
deepy has quit [Quit: ZNC - http://znc.in]
fgo has quit [Ping timeout: 246 seconds]
<shevy> sooner or later nobody can stop them
_ixti_ has joined #ruby
<survili> Hi all. I'm little confused, I see difference between output I get from irb and output I get when actually running my script. I read a file, and search for a pattern in it(in my sample file it should be matched). The pattern that I'm searching is quote followed by line feed. By mistake in my code I had " file_content.include? '"\n' ", and it rightfully was returning false as I didn't user double quotes and \n is not supposed to be
<Bounga> For sure! At the beginning only designer and doctors where using it, then it was developers, now everybody has a mac! You windows and linux users will die!
<survili> same line in irb, it still matches. So i'm really confused. Is irb working differently ??
deepy has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
<shevy> survili irb is not 100% ruby, it's more like 99.5% ruby
<ponga> shevy: what's the missing 0.5%
<shevy> hmm not sure, let me try to see if I wrote it down
<ponga> and im on mac too
<ponga> we are taking over
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<survili> shevy: wow, I'm shocked :/ I thought it's 100%%%
<Bounga> oh damn, so much typo in my latest sentence…
<shevy> survili the pickaxe mentioned that some years ago which is why I remembered
<shevy> just assume that irb is for quick and dirty testing, and for real testing you'll use good old .rb files :)
<shevy> survili you can also directly call methods in any .rb file from the commandline too; I use that as some kind of quick replacement to irb
bruno- has joined #ruby
<shevy> once I know that code works, I put it into a method, assign an alias, and now I can call it directly from bash
mirageglobe has quit []
keen__________74 has quit [Read error: Connection reset by peer]
<shevy> "rblanks" is an alias for "remove_blanks" which is a class that will simply eliminate all ' ' in filenames of the given directory
<shevy> so "Simpsons - Halloween.avi" were to become "Simpsons-Halloween.avi" whenever I type "rblanks<ENTER>"
govg has quit [Quit: leaving]
<shevy> Bounga we linux users are SUPERIOR!
<survili> shevy: what do you mean by "also directly call methods in any .rb file from the commandline too" ?
<shevy> survili there is the -e option to ruby
<shevy> I can use that to call any method
keen__________74 has joined #ruby
<shevy> somehow I also started to use classes and modules almost all the time
<survili> shevy: yeah, I know -e. feels much less convinient for multi line script testing
<survili> repl is so cooool
* hanmac1 only has a LinuxPC and is proud of it
<shevy> whatever floats your boat :D
jenrzzz has quit [Ping timeout: 264 seconds]
georgesmith has joined #ruby
<shevy> hanmac1 yes the empire strikes back
mloveless has joined #ruby
<Bounga> shevy: You know, I do consider myself as a linux user, err *bsd user. I think most of mac users come from Linux
<shevy> down with the macsters!
<hanmac1> "shevy: whatever floats your boat :D" << AntiGravity? ;P
<shevy> high hopes and dreams hanmac1
<shevy> and pizza
<shevy> especially pizzaops
<shevy> lol damn tab completion
fgo has joined #ruby
workmad3 has joined #ruby
rocknrollmarc has quit [Ping timeout: 246 seconds]
<pizzaops> Hehe
<shevy> ponga did you know this:
bruno- has quit [Ping timeout: 256 seconds]
<pizzaops> I'm critical to completing all projects.
<shevy> "irb is a repl written in ruby which means it uses eval (or module_eval or instance_eval)."
<shevy> "Now whether intentionally or not (one could probably find out by looking at the source),"
<shevy> "all irb sessions basically have an implicit:"
<shevy> " irb(main):000:0> public"
<hanmac1> shevy recently i did seen a "pizza burger" in the TV-ads ... but i didnt tasted them yet
<pizzaops> What would you do without Pizzaops
ndrst_ is now known as ndrst
_ixti_ has quit [Ping timeout: 272 seconds]
agrinb has joined #ruby
davidhq has quit [Read error: No route to host]
otisZart has joined #ruby
tokik has quit [Remote host closed the connection]
davidhq has joined #ruby
jonr22 has joined #ruby
otisZart has quit [Client Quit]
mloveless has quit [Ping timeout: 250 seconds]
Vivex_ has quit [Read error: Connection reset by peer]
arup_r has quit [Remote host closed the connection]
agrinb_ has joined #ruby
tokik has joined #ruby
roolo has joined #ruby
agrinb has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
agrinb_ has quit [Ping timeout: 256 seconds]
SouL_ has joined #ruby
dru has joined #ruby
ArchRogem has joined #ruby
SOLDIERz_ has quit [Ping timeout: 252 seconds]
anarang has quit [Quit: Leaving]
abyss has quit [Ping timeout: 264 seconds]
tvw has joined #ruby
cvtsx1 has joined #ruby
Zai00 is now known as Zai00_
SOLDIERz_ has joined #ruby
cvtsx has quit [Ping timeout: 252 seconds]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zai00_ is now known as Zai00
Pupeno has joined #ruby
Pupeno has joined #ruby
grn has quit [Ping timeout: 256 seconds]
Zai00 has quit [Quit: Zai00]
Zai00 has joined #ruby
deuterium has joined #ruby
abyss_ has joined #ruby
sivsushruth has quit [Ping timeout: 264 seconds]
sivsushruth has joined #ruby
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
tvw has quit [Ping timeout: 256 seconds]
razieliyo has joined #ruby
mcpierce has quit [Ping timeout: 245 seconds]
avril14th has quit [Remote host closed the connection]
Guest13442 has quit []
lanemeyer has joined #ruby
SOLDIERz_ has quit [Quit: Be back later ...]
tkuchiki has joined #ruby
juanpaucar has joined #ruby
gfawcettpq has joined #ruby
Timgauthier is now known as timgauthier_away
blackmesa has quit [Ping timeout: 245 seconds]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_ixti_ has joined #ruby
Zai00 has quit [Quit: Zai00]
Zai00 has joined #ruby
antgel has joined #ruby
mcpierce has joined #ruby
juanpaucar has quit [Ping timeout: 250 seconds]
zotherstupidguy has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
<zotherstupidguy> is there an easy way to mount multiple nested rackapps?
fabrice31 has joined #ruby
pandaant has joined #ruby
schaerli has joined #ruby
zotherstupidguy has quit [Client Quit]
bigkevmcd has joined #ruby
fabrice31_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
_ixti_ has quit [Ping timeout: 256 seconds]
timanema has joined #ruby
yxejamir has quit [Ping timeout: 250 seconds]
ndrei_ has quit [Ping timeout: 252 seconds]
jgrevich has quit [Quit: jgrevich]
ndrei has quit [Ping timeout: 252 seconds]
amacou has joined #ruby
ndrei has joined #ruby
ndrei_ has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
vtunka has quit [Quit: Leaving]
chinmay_dd has quit [Quit: Connection closed for inactivity]
Timgauthier has joined #ruby
vtunka has joined #ruby
timanema has quit [Ping timeout: 240 seconds]
drawingthesun has joined #ruby
blackmesa has joined #ruby
Zai00 has quit [Quit: Zai00]
kalusn has joined #ruby
ponga has quit [Quit: Leaving...]
Zai00 has joined #ruby
scripore has joined #ruby
redjack1964 has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
ponga has joined #ruby
charliesome has joined #ruby
Aswebb_ has joined #ruby
jottr has joined #ruby
sivsushruth has quit [Ping timeout: 272 seconds]
tunaCanBruh has joined #ruby
sinkensabe has joined #ruby
agrinb has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sivsushruth has joined #ruby
ldnunes has joined #ruby
ajaiswal has quit [Quit: Leaving]
postmodern has quit [Quit: Leaving]
drawingthesun has quit [Quit: Leaving]
shredding has quit [Ping timeout: 265 seconds]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
piotrj has quit [Remote host closed the connection]
shum has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
tunaCanBruh has quit [Ping timeout: 272 seconds]
jottr has quit [Ping timeout: 256 seconds]
multi_io_ is now known as multi_io
antgel has quit [Ping timeout: 264 seconds]
doodlehaus has joined #ruby
Spami has quit [Read error: Connection reset by peer]
Spami has joined #ruby
deepy has quit [Changing host]
deepy has joined #ruby
<survili> shevy: btw, I couldn't live with irb is not 100% compatible, dived more to understand. The bug is in RubyMine(ide) repl! in irb '"\n'.size returns 3(correct), in RubyMine repl it returns 2
Vivex has joined #ruby
<hanmac1> survili: checkout the RubyVersion in "RubyMine repl"
scripore has quit [Quit: Leaving]
coderanger has left #ruby ["Bye"]
yfeldblum has quit [Ping timeout: 256 seconds]
ismaelga has joined #ruby
<wasamasa> hmm, someone in here posted a ruby script last night that did a guessing game of who did the commit
bluOxigen has joined #ruby
nfk has quit [Quit: yawn]
<wasamasa> can't remember its name
nish1294 has joined #ruby
<wasamasa> ah, found it: https://github.com/jsomers/git-game
blueOxigen has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
ismaelga has quit [Ping timeout: 256 seconds]
redjack1964 has quit [Remote host closed the connection]
send has joined #ruby
sivsushruth has quit [Ping timeout: 240 seconds]
joonty has quit [Quit: joonty]
sivsushruth has joined #ruby
nerium has joined #ruby
Nahra has quit [Remote host closed the connection]
Waheedi has quit [Ping timeout: 256 seconds]
joonty has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
piotrj has joined #ruby
yfeldblum has joined #ruby
Waheedi has joined #ruby
wicope has quit [Remote host closed the connection]
rekky has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
rodfersou has joined #ruby
AlecTaylor has joined #ruby
_ixti_ has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
<AlecTaylor> What should I set my GEM_HOME to? - I am using rvm, and have one ruby installed (2.2.0).
DaniG2k has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
jimms has quit [Remote host closed the connection]
dcarmich has joined #ruby
_ixti_ has quit [Ping timeout: 264 seconds]
Dr3amc0d3r|away has quit [Ping timeout: 272 seconds]
shock_one has quit [Remote host closed the connection]
sinkensabe has joined #ruby
RegulationD has joined #ruby
<arup_r> This is a Hack!! :)
jottr has quit [Ping timeout: 252 seconds]
Dr3amc0d3r|away has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
last_staff has joined #ruby
Akagi201 has joined #ruby
bruno- has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
Dr3amc0d3r|away has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: zzz]
sinkensabe has joined #ruby
antgel has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
maximski has joined #ruby
lkba has joined #ruby
rhllor has joined #ruby
charliesome has joined #ruby
ringarin has joined #ruby
jonr22 has joined #ruby
Dr3amc0d3r|away has joined #ruby
agrinb has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Akagi201 has quit []
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lanemeyer has quit [Ping timeout: 256 seconds]
jonr22 has quit [Ping timeout: 246 seconds]
agrinb has quit [Ping timeout: 265 seconds]
zerolith_zzz has quit [Quit: ZNC - http://znc.in]
fabrice31_ has joined #ruby
tvw has joined #ruby
mloveless has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
bMalum_ has joined #ruby
Takle has quit [Remote host closed the connection]
<AlecTaylor> require 'stringio'; io = StringIO.new; io.puts "foobar"; io.each {|line| puts "#{io.lineno}: #{line}" }; fails. Why?
bruno- has joined #ruby
Guest123 has joined #ruby
mloveless has quit [Ping timeout: 250 seconds]
bMalum has quit [Ping timeout: 250 seconds]
bMalum_ is now known as bMalum
claptor has quit [Quit: this channel is bakas]
ringarin has quit [Quit: Leaving]
<DefV> AlecTaylor: because you need to rewind your io
<AlecTaylor> ?
tvw has quit [Read error: Connection reset by peer]
<DefV> io.puts "foobar" writes it to the StringIO, but places your read position at the end of the string
anaeem1 has quit [Remote host closed the connection]
sandelius has joined #ruby
<AlecTaylor> Oh. So how do I rewind?
<DefV> io.rewind
<AlecTaylor> YAY
<AlecTaylor> Thanks
<DefV> you'll see io.pos is at 7 without rewinding
<DefV> io.rewind puts it at 0
doodlehaus has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
SOLDIERz_ has joined #ruby
rsty has left #ruby [#ruby]
ismaelga has joined #ruby
crack has joined #ruby
SOLDIERz_ has quit [Client Quit]
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SOLDIERz_ has joined #ruby
Akagi201 has joined #ruby
oleo__ has quit [Quit: Verlassend]
Mon_Ouie has quit [Ping timeout: 255 seconds]
SOLDIERz_ has quit [Client Quit]
krz has quit [Ping timeout: 264 seconds]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oleo has joined #ruby
jimms has joined #ruby
aryaching has joined #ruby
Limix has joined #ruby
AlecTaylor has quit [Ping timeout: 255 seconds]
GnuYawk has quit [Ping timeout: 264 seconds]
WilfredTheGreat has joined #ruby
reinaldob has quit []
arup_r has quit [Remote host closed the connection]
techsethi_ has quit [Quit: techsethi_]
nish1294 has quit [Ping timeout: 246 seconds]
n008f4g_ has joined #ruby
yxejamir has joined #ruby
jimms has quit [Ping timeout: 245 seconds]
krz has joined #ruby
Limix has quit [Ping timeout: 272 seconds]
stef204 has joined #ruby
ponga has quit [Quit: Leaving...]
juanpaucar has joined #ruby
ponga has joined #ruby
tvw has joined #ruby
rekky has joined #ruby
n1lo has joined #ruby
nish1294 has joined #ruby
_blizzy_ is now known as Keldeo
Keldeo is now known as _blizzy_
juanpaucar has quit [Ping timeout: 250 seconds]
<Timgauthier> ...
<Timgauthier> cassette tapes?
avr has quit [Quit: this channel is bakas]
nish1294 has quit [Read error: Connection reset by peer]
<workmad3> Timgauthier: ?
<Timgauthier> rewinding
<workmad3> Timgauthier: IO streams
<Timgauthier> yes yes, cassettes hold an IO stream of Muuuuuuusssiiiiic
<Timgauthier> ;)
<workmad3> well, strictly speaking the cassette doesn't hold an IO stream of anything... you could theoretically scan the entire tape all at once rather than sequentially and removing the stream aspect
<Timgauthier> then you'd have an array ;)
<workmad3> the stream comes from the fact that the reader head is at a single position at a time, with a well-defined 'next'
<workmad3> so you can keep on asking for 'next, next, next' and get a stream of data ;)
<michael_mbp> hey guys
joonty has quit [Quit: joonty]
<michael_mbp> hey david.
<workmad3> michael_mbp: first thought - it's not a stream :P
Macaveli has quit [Ping timeout: 244 seconds]
<michael_mbp> you might have an idea :)
Macaveli has joined #ruby
<michael_mbp> scratching my head as to why delegate isn't called __setobj__(obj) on initialize.
rhllor has quit [Quit: rhllor]
<michael_mbp> I've 'hacked' it in, but I shouldn't need to do that.
<workmad3> michael_mbp: because you've overridden initialize in ProdectDecorator
<workmad3> michael_mbp: and not called 'super'
<michael_mbp> AHHHHH doh.
<workmad3> *ProductDecorator
<michael_mbp> thanks!!
<michael_mbp> blimey.
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr has joined #ruby
<michael_mbp> haha
silkfox has joined #ruby
<Timgauthier> rubber ducky wouldn't catch that probably even really maybe it would i dunno a thing
rekky has quit [Ping timeout: 256 seconds]
oleo has quit [Quit: Verlassend]
Spami has joined #ruby
<workmad3> michael_mbp: you can 'hack around' that particular aspect by creating an 'after_initialize' convention for your decorators... you could hack around it even more with some careful aliasing in 'self.included' and by adding a 'method_added' hook that can pick up when 'initialize' is created after the include
Guest123 has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
psy_ has quit [Remote host closed the connection]
piotrj has joined #ruby
doodlehaus has joined #ruby
arup_r has joined #ruby
<workmad3> Timgauthier: it would depend on how deeply ingrained your knowledge on initializers in ruby was :)
doodlehaus has quit [Remote host closed the connection]
<Timgauthier> and tape
Takle has joined #ruby
<workmad3> Timgauthier: well yeah, a thorough understanding of duck tape is vital to any endeavour
<certainty> duck taping?
<Timgauthier> you need to understand if there is a stream
<sweeper> or if it's a river
<sweeper> amirit
<Timgauthier> you don't wnat to flood your IO
bluOxigen has quit [Ping timeout: 265 seconds]
<workmad3> sweeper: a river is what you get when you combine two streams ;)
alien_ has quit [Ping timeout: 264 seconds]
aclearman037 has joined #ruby
<sweeper> workmad3: don't cross the streams man
<Timgauthier> AHH Thats why the ghost busters where worried
<workmad3> heh
<Timgauthier> yes, don't oi your io
B1n4r10 has joined #ruby
AlexRussia has joined #ruby
<Timgauthier> or !O
<certainty> if it's sticky like a duck, it probably is a duck
juanpaucar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
<Timgauthier> *something something* your mother trebek
<workmad3> certainty: and if it weighs as much as a duck, it's a witch!
mroach has quit [Quit: mroach]
agarie has joined #ruby
piotrj has quit [Ping timeout: 264 seconds]
heftig has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
timanema has joined #ruby
sinkensabe has quit [Remote host closed the connection]
thiagovsk has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
agrinb has joined #ruby
tunaCanBruh has joined #ruby
<sweeper> fwiw guys, IO.copy_stream doesn't take a block :3
heftig has joined #ruby
<sweeper> we had an interesting situation where our swift cluster was getting 190M "client disconnect" messages per hour
bluOxigen has joined #ruby
<Timgauthier> thats right, you have to insert each cassette tape individually
yfeldblum has quit [Ping timeout: 256 seconds]
fgo has joined #ruby
<Timgauthier> or duck tape them together
<sweeper> turns out our swift client code was reading 16kb of data, closing the connection, and opening a new connection >.<
<Timgauthier> holyfuuuuckkkkkkkkkkkk
<Timgauthier> brutal
<certainty> i don't get it
<sweeper> that SAID, the cluster handled it like a champ so (yey)
Thubo has quit [Quit: leaving]
<sweeper> just our background processing ran a bit slower than usual :P
commmmodo has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
timanema has quit [Ping timeout: 256 seconds]
Pupeno has quit [Quit: Leaving...]
tunaCanBruh has quit [Ping timeout: 272 seconds]
nettoweb has joined #ruby
codeurge has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
MasterPiece has joined #ruby
davidhq has joined #ruby
Rapier- has joined #ruby
mcpierce has quit [Ping timeout: 252 seconds]
jcromartie has joined #ruby
triple_b has joined #ruby
livathin_ has joined #ruby
<michael_mbp> workmad3: you got credit, thanks! https://gist.github.com/bsodmike/b878b2a2b160d4056209
codeurge has quit [Client Quit]
<workmad3> michael_mbp: heh, cheers :)
MasterPiece has quit [Ping timeout: 265 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
beevalee has joined #ruby
rocknrollmarc has quit [Read error: Connection reset by peer]
nerium has quit [Quit: nerium]
WilfredTheGreat has quit [Remote host closed the connection]
codeurge has joined #ruby
jottr has joined #ruby
topolinux has joined #ruby
ixti has joined #ruby
rhllor has joined #ruby
livathinos has quit [Ping timeout: 264 seconds]
codecop has quit [Remote host closed the connection]
mroach has joined #ruby
mloveless has joined #ruby
triple_b has quit [Ping timeout: 246 seconds]
ixti has quit [Client Quit]
enebo has joined #ruby
enebo has quit [Client Quit]
ixti has joined #ruby
beevalee is now known as bevvahlee
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kl has quit [Ping timeout: 244 seconds]
jottr_ has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
juanpaucar has quit [Remote host closed the connection]
livingstn has joined #ruby
mcpierce has joined #ruby
juanpaucar has joined #ruby
topolinux has quit [Ping timeout: 246 seconds]
mloveless has quit [Ping timeout: 264 seconds]
otisZart has joined #ruby
juanpaucar has quit [Ping timeout: 246 seconds]
yevon has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ismaelga has quit [Remote host closed the connection]
joonty has joined #ruby
tier has joined #ruby
lanemeyer has joined #ruby
kl has joined #ruby
nish1294 has joined #ruby
hermanmunster has joined #ruby
Timgauthier is now known as timgauthier_away
timonv has quit [Ping timeout: 256 seconds]
lampd1 has quit [Read error: Connection reset by peer]
wittyfox has joined #ruby
lampd1 has joined #ruby
marcellus has joined #ruby
arup_r has quit []
hermanmunster has quit [Client Quit]
MissionCritical has quit [Ping timeout: 256 seconds]
hermanmunster has joined #ruby
timanema has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fgo has joined #ruby
triple_b has joined #ruby
sankaber has joined #ruby
Timgauthier has joined #ruby
B1n4r10 has joined #ruby
Lewix has joined #ruby
kobain has joined #ruby
Lewix has quit [Remote host closed the connection]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timanema has quit [Client Quit]
<waxjar> what's a good library to crop and resize images (jpg and png)?
lys has joined #ruby
vtunka has quit [Quit: Leaving]
commmmodo has quit [Quit: commmmodo]
AlexRussia has quit [Ping timeout: 256 seconds]
vtunka has joined #ruby
AlexRussia has joined #ruby
<gregf__> google says rmagick which uses imagemagick
RegulationD has joined #ruby
<wittyfox> waxjar: Maybe ImageMagick or RMagick
puppeh has joined #ruby
<gregf__> i've used it with Perl/PHP as well and pil/pillow with python
<puppeh> have the Marshal version changed from 1.9.3 to 2.x?
unshadow has joined #ruby
<waxjar> hm.. i was hoping to avoid rmagick, due to the memory leaking
ismaelga has joined #ruby
Mission-Critical has joined #ruby
unshadow has quit [Client Quit]
<gregf__> rofl 'puppeh'
Pharaoh2 has joined #ruby
<puppeh> gregf__: ?
roshanavand has quit [Ping timeout: 272 seconds]
<waxjar> ph
govg has joined #ruby
unshadow has joined #ruby
rekky has joined #ruby
juanpaucar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
<waxjar> *puppeh, i believe Marshal is never compatible between versions
juanpaucar has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
<DefV> waxjar: vips
<apeiros_> waxjar: na, marshal has its own versioning
JDiPierro has joined #ruby
shellfu_afk is now known as shellfu
<puppeh> yes, and it seems to be the same between 1.9.3 and 2.x
havenwood has joined #ruby
<puppeh> ie. 4.8
Crazy_Atheist has quit [Ping timeout: 250 seconds]
<waxjar> DefV: thanks, i'll check it out
<apeiros_> even 1.8.6 has 4.8 as marshal format
sigurding has joined #ruby
jcromartie has joined #ruby
agrinb has joined #ruby
oleo has joined #ruby
wittyfox has left #ruby ["WeeChat 0.4.3"]
danjordan has joined #ruby
Crazy_Atheist has joined #ruby
rocknrollmarc has joined #ruby
ZoanthusR has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: zzz]
bMalum has quit [Quit: bMalum]
skj3gg has joined #ruby
agrinb has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
Mission-Critical is now known as MissionCritical
it0a has joined #ruby
livathin_ has quit [Remote host closed the connection]
juanpablo_ has joined #ruby
ZoanthusR has quit [Ping timeout: 250 seconds]
doodlehaus has joined #ruby
juanpaucar has quit [Remote host closed the connection]
centrx has joined #ruby
livathinos has joined #ruby
juanpaucar has joined #ruby
<B1n4r10> waxjar the best is minimagick simple and accurate
paulfm has joined #ruby
jonr22 has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
enebo has joined #ruby
yevon has quit [Quit: leaving]
<apeiros_> B1n4r10: I have not evaluated the options yet, so I'm curious - what's the reason? what makes minimagick better than rmagick, imagescience and/or other alternatives?
Takle has quit [Remote host closed the connection]
zenith_ has joined #ruby
Morkel has quit [Quit: Morkel]
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
ruisanto1 is now known as ruisantos
juanpaucar has quit [Ping timeout: 264 seconds]
<waxjar> oh image_science looks perfect
jonr22 has quit [Ping timeout: 265 seconds]
shum has quit [Client Quit]
<B1n4r10> apeiros_ one reason is that consumes much less memory. Reading source code simpler and only makes the necessary work, achieving scale better.
shum has joined #ruby
<apeiros_> B1n4r10: any link/benchmarks backing the memory consumption claim?
tunaCanBruh has joined #ruby
<apeiros_> and is the memory consumption with regards to overhead (once) or per image manipulation?
Tinfoilhat_ has joined #ruby
Takle has joined #ruby
lanemeyer has quit []
jerius has joined #ruby
zenith_ has quit [Read error: Connection reset by peer]
zenith_ has joined #ruby
roshanavand has joined #ruby
dkoch has joined #ruby
<B1n4r10> apeiros I can not prove it with a visual benchmark but count it as personal experience.
GnuYawk has joined #ruby
govg has quit [Quit: leaving]
<dkoch> hey there anybody can help me with the imap lib ? http://paste.triple6.org/HYQImg
govg has joined #ruby
prabeshshrestha has joined #ruby
allcentury has joined #ruby
<dkoch> i am confused why 11 should be a invalid messsageset
<dkoch> rubydoc says: "The set parameter is a number or an array of numbers or a Range object. The number is a message sequence number."
<dkoch> while mine is 11
tunaCanBruh has quit [Ping timeout: 272 seconds]
<dkoch> which should be absolutely correct ?
livathinos has quit [Remote host closed the connection]
rikai has quit [Ping timeout: 250 seconds]
puppeh has left #ruby ["Leaving..."]
rocknrollmarc has quit [Read error: Connection reset by peer]
livathinos has joined #ruby
<dkoch> the error happens on .copy btw.
zenith_ has quit [Read error: Connection reset by peer]
zenith_ has joined #ruby
<hanmac1> yeah the imap stuff is a bit funky
AlexRussia has quit [Ping timeout: 250 seconds]
nish1294 has quit [Ping timeout: 245 seconds]
tvw has quit [Ping timeout: 256 seconds]
AlexRussia has joined #ruby
n80 has joined #ruby
nerium has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n80 has quit [Client Quit]
zenith_ has quit [Read error: Connection reset by peer]
tier_ has joined #ruby
zenith_ has joined #ruby
lanemeyer has joined #ruby
tus has joined #ruby
sandelius has joined #ruby
mloveless has joined #ruby
<dkoch> hanmac1: i swear it worked with uids lower then 9
rikai has joined #ruby
ych4k3r has joined #ruby
JDiPierro has quit [Remote host closed the connection]
fryguy9 has joined #ruby
tier has quit [Ping timeout: 246 seconds]
Timgauthier has quit [Max SendQ exceeded]
slawrence00 has joined #ruby
nish1294 has joined #ruby
rhllor has quit [Quit: rhllor]
crueber has joined #ruby
mloveless has quit [Ping timeout: 272 seconds]
terlar has quit [Ping timeout: 265 seconds]
horsecowdog has joined #ruby
CorySimmons has joined #ruby
werelivinginthef has joined #ruby
wottam has joined #ruby
juanpaucar has joined #ruby
techsethi_ has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
horsecowdog has quit [Client Quit]
shredding has joined #ruby
GnuYawk has quit [Quit: WeeChat 0.4.1]
casadei has joined #ruby
GnuYawk has joined #ruby
paulfm has quit [Quit: Goodbye]
topolinux has joined #ruby
dru has quit [Ping timeout: 252 seconds]
arup_r has joined #ruby
shellfu has quit [Ping timeout: 265 seconds]
paolooo has joined #ruby
uptownhr has joined #ruby
aamador has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
g0bl1n has joined #ruby
JDiPierro has joined #ruby
jwgreene has joined #ruby
jwgreene has quit [Client Quit]
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bMalum has joined #ruby
otisZart has joined #ruby
mloveless has joined #ruby
vtunka has quit [Quit: Leaving]
adriancb has joined #ruby
rubytor has joined #ruby
gfawcettpq2 has joined #ruby
Lewix has joined #ruby
lkba_ has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
oleo is now known as Guest59545
oleo__ has joined #ruby
gfawcettpq has quit [Ping timeout: 246 seconds]
mengu has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
lkba has quit [Ping timeout: 246 seconds]
fantazo has joined #ruby
Lewix has quit [Client Quit]
blackmesa has joined #ruby
krz has joined #ruby
Guest59545 has quit [Ping timeout: 265 seconds]
aclearma_ has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
vtunka has joined #ruby
agrinb has joined #ruby
roolo_ has joined #ruby
attamusc has joined #ruby
MissionCritical has quit [Ping timeout: 246 seconds]
mostlybadfly has joined #ruby
RegulationD has joined #ruby
tkuchiki has joined #ruby
aclearman037 has quit [Ping timeout: 246 seconds]
roolo has quit [Ping timeout: 246 seconds]
scripore has joined #ruby
zorak8 has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
neonalpine has joined #ruby
kl has quit [Ping timeout: 256 seconds]
agrinb has quit [Ping timeout: 250 seconds]
tunaCanBruh has joined #ruby
rhllor has joined #ruby
joonty has quit [Quit: joonty]
rwsq1 has joined #ruby
DEA7TH has joined #ruby
kl has joined #ruby
mitchellhenke has joined #ruby
<rwsq1> hi - I have a method with a signature mymethod(a,b,c) - I want to send a hash to it keeping its signature the same, so I have myhash={a: 1, b: 2, c: 3} and I send *myhash. This doesn't generate an error but what arrives at the method is [:a , 1] [:b, 2] [:c, 3] - what am I doing wrong?
<centrx> rwsq1, Turning a hash into an array turns it into an array of pairs
<centrx> rwsq1, key-value pairs
<centrx> rwsq1, You probably want myhash.values
<centrx> rwsq1, Actually, since you want to make sure it is in order, you want:
<centrx> mymethod(*myhash.values_at(:a, :b, :c))
MissionCritical has joined #ruby
skj3gg has joined #ruby
skj3gg has quit [Client Quit]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
joonty has joined #ruby
mistermocha has joined #ruby
nish1294 has quit [Ping timeout: 244 seconds]
valkyrka has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rwsq1> centrx - cool thanks
dru has joined #ruby
n80 has joined #ruby
tesuji has quit [Ping timeout: 244 seconds]
prabeshshrestha has quit [Remote host closed the connection]
codeurge has joined #ruby
<shevy> centrx is a cool PHP hax0r
timonv has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
n80 has quit [Client Quit]
<hanmac1> shevy did you know about:
<hanmac1> >> require "date"; Date.today >> 1
<eval-in> hanmac1 => #<Date: 2015-03-26 ((2457108j,0s,0n),+0s,2299161j)> (https://eval.in/293822)
jottr_ has joined #ruby
<arup_r> hanmac1: where did you find it ?
rorra has joined #ruby
hs366 has quit [Quit: Leaving]
unshadow has quit [Remote host closed the connection]
<hanmac1> arup_r: there was the question which classes does have ">>" and i noticed that Date is one of them
<hanmac1> i didnt know it before too
<arup_r> well
<apeiros_> >> ObjectSpace.each_object(Class).select { |c| c.method_defined? :>> }
<eval-in> apeiros_ => [Process::Status, Bignum, Fixnum] (https://eval.in/293831)
<apeiros_> ah well, would have to require full stdlib :)
<arup_r> >> require 'date' ; Date.today.method(:>>).0wner
<eval-in> arup_r => /tmp/execpad-d6302c2a8a64/source-d6302c2a8a64:2: no .<digit> floating literal anymore; put 0 before dot ... (https://eval.in/293833)
<arup_r> >> require 'date' ; Date.today.method(:>>).owner
<eval-in> arup_r => Date (https://eval.in/293834)
<shevy> hanmac1 that is cool
shellfu has joined #ruby
<hanmac1> shevy date +1 increase the date, date >> 1 increase the month ;P
maxhodak_ has joined #ruby
maxhodak_ has quit [Client Quit]
nerium has quit [Quit: nerium]
tvw has joined #ruby
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
agarie has quit [Remote host closed the connection]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n80 has joined #ruby
scripore has joined #ruby
iamjarvo has joined #ruby
tagrudev has quit [Remote host closed the connection]
kupusc has quit [Quit: Leaving]
survili has quit [Quit: Page closed]
nerium has joined #ruby
oleo__ has quit [Quit: Verlassend]
allcentury has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
hanmac1 has quit [Quit: Leaving.]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
sambao21 has joined #ruby
davidhq has joined #ruby
maximski has quit []
kham has quit [Read error: Connection reset by peer]
rubytor has quit [Ping timeout: 256 seconds]
davidhq has quit [Client Quit]
momomomomo has joined #ruby
rubytor has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
jlast has joined #ruby
StoneCypherAW has joined #ruby
davidhq has joined #ruby
juanpaucar has quit [Remote host closed the connection]
zenith__ has joined #ruby
zenith_ has quit [Read error: Connection reset by peer]
dh64 has quit [Quit: Konversation terminated!]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
topolinux has quit [Ping timeout: 250 seconds]
jottr_ has quit [Ping timeout: 272 seconds]
dblessing has joined #ruby
mary5030 has joined #ruby
juanpaucar has joined #ruby
kl__ has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
aspiers has quit [Ping timeout: 252 seconds]
kl has quit [Ping timeout: 255 seconds]
Soda has joined #ruby
roolo_ has quit [Quit: Leaving...]
fgo has joined #ruby
<shevy> wat
GnuYawk has quit [Ping timeout: 246 seconds]
gfawcettpq2 has quit [Ping timeout: 256 seconds]
roolo has joined #ruby
jcromartie has quit [Read error: Connection reset by peer]
jcromart_ has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kl__ has quit [Quit: leaving]
tjohnson has joined #ruby
Takle has quit [Remote host closed the connection]
GnuYawk has joined #ruby
icarus has quit [Quit: leaving]
tunaCanBruh has quit [Ping timeout: 245 seconds]
scripore has quit [Quit: Leaving]
fgo has quit [Ping timeout: 256 seconds]
rkeene has joined #ruby
<rkeene> I'm trying to cross-compile some Ruby gems but running into some problems. I've built two Rubys: 1. Native (native-ruby) that I can run and 2. Host (ruby) that I cannot run, but where gems will be run
dopie has quit [Remote host closed the connection]
schaerli has quit [Ping timeout: 240 seconds]
Waheedi has quit [Quit: Waheedi]
Nick_ZWG has joined #ruby
last_staff has quit [Quit: last_staff]
<rkeene> It seems that the issue is CROSS_COMPILING is not defined when "native-ruby gem install --platform ..." is run
oleo has joined #ruby
<rkeene> How do I tell "gem" that it should define CROSS_COMPILING ?
<nateberkopec> Question about return values - how would you do this? https://gist.github.com/nateberkopec/21f5c4cdf7fc51c6de87
mengu has quit [Remote host closed the connection]
agrinb has joined #ruby
sevvie has joined #ruby
<jhass> nateberkopec: Object#tap
dopie has joined #ruby
terlar has joined #ruby
Spooner has joined #ruby
<nateberkopec> yeah I knew it would involve #tap somehow
<jhass> basically your idea but some_work_that_you_want_the_return_value_of.tap do |result|
<nateberkopec> ?
rekky has quit [Remote host closed the connection]
<jhass> yup
<nateberkopec> cool
<nateberkopec> thx
grumpycat is now known as cats
<jhass> I'd use braces instead of do/end, but that's style
rippa has joined #ruby
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vtunka has quit [Quit: Leaving]
<rkeene> How do other people cross-compile gems ?
lolmaus has joined #ruby
<bradland> is Date#>> undocumented? I don't see it in the docs for Stdlib Date
<bradland> or Core Date for that matter
<jhass> rkeene: tbh I wouldn't be surprised if you're in the set of about a dozen people on the world who attempt that :P
<centrx> bradland, core Date is basically nothing
agrinb has quit [Ping timeout: 256 seconds]
<bradland> it's not in Stdlib date docs either though
<bradland> at least not the method list
startupality has joined #ruby
<bradland> fuckers
<jhass> 2.2.0 too
<bradland> heh
dfinninger has joined #ruby
<workmad3> bradland: it's right there in the method list :P
<bradland> typing > in tot he method filter shows no matches
<shevy> tot! tot!!!
lolmaus has quit [Client Quit]
<rkeene> jhass, Well, in the sense that every compile is a cross-compile I'm not, but in the sense that I don't expect to run the data my compiler generated (which apparently people seem to think is bizarre)
mengu has joined #ruby
<shevy> tot is the state of a dead in german :-)
vtunka has joined #ruby
<bradland> i <3 tots
aganov has quit [Ping timeout: 245 seconds]
<shevy> hehe
gfawcettpq has joined #ruby
zotherstupidguy has joined #ruby
<jhass> rkeene: I prefer to use the practical definition of terms in most cases, so while you could define cross compile like you did, it's not what most people mean by it
<bradland> thanks for making it akward, shevy :P
sinkensabe has quit [Remote host closed the connection]
<jhass> oh, this channel isn't in the state of permanent awkwardness?
nickjj_ has joined #ruby
nickjj has quit [Ping timeout: 255 seconds]
paolooo has quit [Ping timeout: 246 seconds]
Takle has joined #ruby
nickjj_ is now known as nickjj
ryan0x2 has joined #ruby
<workmad3> jhass: well that's an awkward silence if ever I saw one...
sambao21 has quit [Quit: Computer has gone to sleep.]
<jhass> see!
zenith__ has quit [Ping timeout: 246 seconds]
mjuszczak has joined #ruby
zz_olivierrr is now known as olivierrr
werelivinginthef has quit [Remote host closed the connection]
fryguy91 has joined #ruby
fryguy9 has quit [Ping timeout: 256 seconds]
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
flughafen_ has joined #ruby
bMalum has quit [Quit: bMalum]
ryan0x2 has quit [Read error: Connection reset by peer]
ryan0x2 has joined #ruby
sambao21 has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
techsethi_ has quit [Quit: techsethi_]
tkuchiki has quit [Remote host closed the connection]
oki has quit [Ping timeout: 250 seconds]
jcromartie has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
agarie has joined #ruby
sinkensabe has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
sinkensabe has quit [Remote host closed the connection]
werelivinginthef has joined #ruby
withnale_ has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
withnale_ has joined #ruby
bal1 has quit [Quit: bal1]
riotjones has quit [Remote host closed the connection]
max96at|off is now known as max96at
roolo has quit [Quit: Leaving...]
olivier_bK has quit [Ping timeout: 245 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sparr has quit [Changing host]
sparr has joined #ruby
hollywood has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
bricker has joined #ruby
rekky has joined #ruby
mjuszcza_ has joined #ruby
DrShoggoth has joined #ruby
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davidhq has joined #ruby
juanpaucar has quit [Remote host closed the connection]
juanpaucar has joined #ruby
<rkeene> There, I patched Ruby to make the cross-compilation work correctly with the "gem" command
mjuszczak has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
bMalum has joined #ruby
livathinos has quit [Ping timeout: 256 seconds]
MatthewsFace has quit [Remote host closed the connection]
rekky has quit [Ping timeout: 250 seconds]
mjuszcza_ has quit [Ping timeout: 264 seconds]
juanpaucar has quit [Ping timeout: 256 seconds]
mjuszczak has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
netuoso has joined #ruby
shadeslayer has quit [Ping timeout: 245 seconds]
<netuoso> If i want to raise an ArgumentError if a string contains any value besides 'ABCD' how would I do that ?
<netuoso> the 'ABCD' are not usually in sequence
<netuoso> eg.. 'ATGP'
allenn has quit [Remote host closed the connection]
troulouliou_dev has joined #ruby
flughafen_ has quit [Ping timeout: 255 seconds]
nerium has quit [Quit: nerium]
t0rc has joined #ruby
fryguy91 is now known as fryguy9
shadeslayer has joined #ruby
<centrx> raise ArgumentError unless string == 'ABCD'
rkeene has left #ruby [#ruby]
gsd has joined #ruby
mjuszczak has quit [Ping timeout: 246 seconds]
<netuoso> centrx: i want to test a string of any characters and deny it if it includes anything besides the given 'ABCD'
mpls_offsec has joined #ruby
<netuoso> eg.. given 'THISISAFAILURE' and testing for 'IS' it should fail because of 'THAFLURE'
The_Phoenix has joined #ruby
<apeiros_> netuoso: =~ /[^ABCD]/
<netuoso> apeiros_: i think thats it, let me try, thanks
<apeiros_> netuoso: your second part makes it unclear
<apeiros_> are you testing for *words* or *characters*?
<netuoso> characters
<netuoso> let me give the concrete example
<apeiros_> ok, then the above
<netuoso> assert_raises ArgumentError do Nucleotide.from_dna('JOHNNYAPPLESEED')
<netuoso> the only accepted chars are ACTG
<netuoso> so that string needs to fail
oki has joined #ruby
agrinb has joined #ruby
<netuoso> im counting a DNA nucleotide string and if given anythign besides nucleotides it should fail. i think using the regex method you put will help me.. ill get it working
The_Phoenix1 has quit [Ping timeout: 250 seconds]
chrishough has joined #ruby
mjuszczak has joined #ruby
anaeem1_ has joined #ruby
bricker has quit [Ping timeout: 246 seconds]
AirNest has quit [Ping timeout: 272 seconds]
B1n4r10 has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
lampd1 has quit []
<momomomomo> netuoso: !rubular
<helpa> netuoso: http://rubular.com - Ruby regular expression test site
bluOxigen has joined #ruby
<apeiros_> netuoso: yes, that regex will do what you want
oki has quit [Ping timeout: 264 seconds]
<netuoso> apeiros_: momomomomo: thank you both
jgrevich has joined #ruby
bricker has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
shredding has quit [Ping timeout: 244 seconds]
anaeem1 has joined #ruby
tunaCanBruh has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
Hobogrammer has joined #ruby
<netuoso> apeiros_: you rock
<netuoso> thanks again, got it working
oki has joined #ruby
withnale_ has quit [Ping timeout: 245 seconds]
send has quit [Remote host closed the connection]
flughafen_ has joined #ruby
netuoso has quit [Quit: Page closed]
mengu has quit []
pengin has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
selu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anaeem1 has quit [Ping timeout: 272 seconds]
oki has quit [Ping timeout: 246 seconds]
send has joined #ruby
JoshGlzBrk has joined #ruby
JoshGlzBrk has quit [Client Quit]
oki has joined #ruby
dumdedum has quit [Quit: foo]
kate_r has left #ruby ["Textual IRC Client: www.textualapp.com"]
Synthbread has quit [Ping timeout: 252 seconds]
AlexRussia has quit [Ping timeout: 255 seconds]
CustosLimen has quit [Ping timeout: 245 seconds]
tunaCanBruh has quit [Ping timeout: 255 seconds]
AlexRussia has joined #ruby
fantazo has quit [Quit: Verlassend]
havenn has joined #ruby
zotherstupidguy has quit [Read error: Connection reset by peer]
alex88 has quit []
havenwood has quit [Ping timeout: 245 seconds]
otisZart has joined #ruby
baroquebobcat has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
rikai has quit [Read error: Connection reset by peer]
HOrangeJewce has joined #ruby
thousandwich has joined #ruby
joonty has quit [Quit: joonty]
<HOrangeJewce> hi all, I'm building a custom gem and I have files in lib that need to require others from within the gem, how can I do that without using require '[path]/file'?
GaryOak_ has joined #ruby
<HOrangeJewce> the building your own gem tutorial has you installing the gem which then puts the files in the $path
<apeiros> HOrangeJewce: ruby/pry -Ilib
vtunka has quit [Quit: Leaving]
<apeiros> adds lib to $LOAD_PATH
<apeiros> (which otherwise installing your gem does)
sambao21 has joined #ruby
jgrevich has quit [Quit: jgrevich]
rikai has joined #ruby
anaeem1 has joined #ruby
lsmola has quit [Ping timeout: 265 seconds]
timonv has quit [Ping timeout: 264 seconds]
ych4k3r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lildirt has quit [Read error: Connection reset by peer]
werelivinginthef has quit [Remote host closed the connection]
mordocai has joined #ruby
Lildirt has joined #ruby
lektrik has joined #ruby
schaerli has joined #ruby
deric_skibotn has joined #ruby
ryan0x2 has quit [Read error: Connection reset by peer]
uptownhr has quit [Quit: uptownhr]
ryan0x2 has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<HOrangeJewce> apeiros: ty
oki has quit [Ping timeout: 264 seconds]
antgel has quit [Ping timeout: 255 seconds]
juanpaucar has joined #ruby
yxejamir has quit [Ping timeout: 250 seconds]
MatthewsFace has joined #ruby
Takle has quit [Remote host closed the connection]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
piotrj has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
danjordan has quit [Quit: danjordan]
crazydiamond has joined #ruby
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anaeem1 has quit [Remote host closed the connection]
anaeem___ has joined #ruby
piotrj has quit [Read error: Connection reset by peer]
piotrj_ has joined #ruby
einarj has quit [Remote host closed the connection]
riotjones has joined #ruby
codeurge has joined #ruby
Juanchito_ has joined #ruby
amacou has quit [Remote host closed the connection]
Juanchito_ is now known as Juanchito
maletor has joined #ruby
rekky has joined #ruby
brandon_ has joined #ruby
<dru> good morning beautiful people
riotjones has quit [Ping timeout: 252 seconds]
piotrj_ has quit [Read error: Connection reset by peer]
flughafe1 has joined #ruby
piotrj has joined #ruby
brandon_1 has joined #ruby
lektrik has quit [Read error: Connection reset by peer]
ryan0x2 has quit [Remote host closed the connection]
schaerli has quit [Ping timeout: 246 seconds]
brandon_1 has quit [Client Quit]
flughafen_ has quit [Ping timeout: 256 seconds]
brandon_ has quit [Client Quit]
brandon_ has joined #ruby
chinmay_dd has joined #ruby
aces2up has joined #ruby
psy_ has joined #ruby
<aces2up> if i have an array of arrays how can i sort by like 2nd element of sub arrays?
<aces2up> so [ [ 1st, 2nd ], [ 1st, 2nd ] ]
<aces2up> want to sort by 2nd element
<aces2up> alphabetically
brandon_1 has joined #ruby
uptownhr has joined #ruby
ninedragon has joined #ruby
<apeiros_> aces2up: use sort_by
brandon_1 has quit [Client Quit]
juanpaucar has quit [Remote host closed the connection]
<aces2up> arr.sort_by{ |arr| arr[1] } ?
rodfersou has quit [Remote host closed the connection]
<apeiros_> try it
<aces2up> or ---> arr.sort_by{ |arr, subarr| subarr[1] } ?
rodfersou has joined #ruby
juanpaucar has joined #ruby
<apeiros_> na, read sort_by docs. it does not yield the full array. it only yields one element of the array each time.
justin_pdx has joined #ruby
pdoherty has joined #ruby
lemur has joined #ruby
brandon_ has quit [Client Quit]
<gregf__> or arr.last
msgodf has quit [Remote host closed the connection]
piotrj_ has joined #ruby
<gregf__> aces2up: [["bar", "foo"], ["foo", "bar" ], ["quux", "baz"]].sort_by { |arr| arr.last } <== run this
neonalpine has quit [Remote host closed the connection]
<gregf__> i mean what apeiros_ said ;)
neonalpine has joined #ruby
rekky has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Ping timeout: 256 seconds]
Spami has quit [Quit: This computer has gone to sleep]
decoponio has quit [Read error: Connection reset by peer]
<aces2up> thanks makes sense read up on it your example worked.
DaniG2k has quit [Quit: leaving]
decoponio has joined #ruby
juanpaucar has quit [Ping timeout: 246 seconds]
piotrj has quit [Ping timeout: 264 seconds]
Ankhers has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Timgauthier has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
lemur has quit [Remote host closed the connection]
Sawbones has joined #ruby
Bounga has quit [Quit: See ya]
piotrj has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
piotrj_ has quit [Ping timeout: 256 seconds]
piotrj_ has joined #ruby
strixd has quit [Quit: 500]
mloveless has quit [Remote host closed the connection]
crazydiamond has quit [Ping timeout: 246 seconds]
piotrj has quit [Ping timeout: 256 seconds]
kalusn has quit [Remote host closed the connection]
crazydiamond has joined #ruby
piotrj_ has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 264 seconds]
oki has joined #ruby
topolinux has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
anaeem___ has quit [Quit: Leaving...]
Timgauthier has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
Timgauthier has joined #ruby
phoo1234567 has joined #ruby
Pupeno has joined #ruby
<shevy> hmmmm
<shevy> >> [ %w( bar foo ) , %w( foo bar ) ]
<eval-in> shevy => [["bar", "foo"], ["foo", "bar"]] (https://eval.in/293852)
allcentury has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
oki has quit [Ping timeout: 245 seconds]
aces2up has left #ruby [#ruby]
phoo1234567 has joined #ruby
oki has joined #ruby
DrShoggoth has quit [Remote host closed the connection]
<havenn> >> a = %w[foo bar]; a.reverse.zip a
<eval-in> havenn => [["bar", "foo"], ["foo", "bar"]] (https://eval.in/293853)
jonr22 has joined #ruby
codeurge has joined #ruby
Takle has joined #ruby
zenith_ has joined #ruby
ych4k3r has joined #ruby
smcquaid has joined #ruby
havenn is now known as havenwood
enebo has quit [Quit: enebo]
<shevy> I was just wondering why gregf__ used the many " quotes
terlar has quit [Ping timeout: 252 seconds]
jaequery has joined #ruby
oki has quit [Ping timeout: 256 seconds]
jonr22 has quit [Ping timeout: 256 seconds]
andikr has quit [Remote host closed the connection]
ki0_ has joined #ruby
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
mjuszcza_ has joined #ruby
pengin has quit [Remote host closed the connection]
alex88 has joined #ruby
pengin has joined #ruby
ki0 has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
sigurding has quit [Quit: sigurding]
blackmesa has quit [Ping timeout: 256 seconds]
mloveless has joined #ruby
decoponio has quit [Quit: Leaving...]
Sawbones has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
pietr0 has joined #ruby
pengin has joined #ruby
ki0_ has quit [Ping timeout: 265 seconds]
mjuszczak has quit [Ping timeout: 265 seconds]
wallerdev has joined #ruby
centrx has quit [Remote host closed the connection]
mjuszczak has joined #ruby
sambao21 has joined #ruby
mjuszcza_ has quit [Read error: Connection reset by peer]
tvon has joined #ruby
oki has joined #ruby
wottam has joined #ruby
topolinux has quit [Ping timeout: 252 seconds]
pietr0 has quit [Ping timeout: 265 seconds]
valkyrka has quit [Remote host closed the connection]
iamjarvo has joined #ruby
dfinninger has quit [Remote host closed the connection]
pietr0 has joined #ruby
agarie has quit [Remote host closed the connection]
CustosLimen has joined #ruby
smcquaid has quit [Quit: Textual IRC Client: www.textualapp.com]
topolinux has joined #ruby
ryan0x2 has joined #ruby
RegulationD has quit [Remote host closed the connection]
JDiPierro has joined #ruby
oki has quit [Ping timeout: 252 seconds]
DrShoggoth has joined #ruby
t0rc has quit [Ping timeout: 252 seconds]
GnuYawk has quit [Ping timeout: 264 seconds]
ryan0x2 has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
juanpaucar has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cyberarm has joined #ruby
t0rc has joined #ruby
blackmesa has joined #ruby
ghr has joined #ruby
coderkevin has joined #ruby
agarie has joined #ruby
oki has joined #ruby
enebo has joined #ruby
GnuYawk has joined #ruby
mloveless has quit []
decoponio has joined #ruby
doodlehaus has quit [Ping timeout: 246 seconds]
despai has joined #ruby
Drewch has joined #ruby
jimms has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
tvw has quit []
checkit_ has joined #ruby
cvtsx has joined #ruby
oki has quit [Ping timeout: 245 seconds]
teddyp1c_ has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
cvtsx1 has quit [Ping timeout: 272 seconds]
alex88 has quit [Remote host closed the connection]
teddyp1cker has quit [Ping timeout: 264 seconds]
g0bl1n has quit [Quit: g0bl1n]
MasterPiece has joined #ruby
pengin has quit [Remote host closed the connection]
deuterium has quit [Quit: zzZZZzzz..]
tcrypt has joined #ruby
blizzy has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
martianixor has joined #ruby
topolinux has quit [Ping timeout: 252 seconds]
rocknrollmarc has joined #ruby
blizzy is now known as _blizzy_
rikai has quit [Ping timeout: 245 seconds]
werelivinginthef has joined #ruby
Cust0sLim3n has joined #ruby
topolinux has joined #ruby
jimms has quit [Ping timeout: 252 seconds]
rubytor has quit [Quit: No Ping reply in 180 seconds.]
rubytor has joined #ruby
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tonyhb has joined #ruby
crazydiamond has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
rocknrollmarc has quit [Ping timeout: 264 seconds]
n80 has quit [Quit: n80]
topolinux has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
Takle has quit [Remote host closed the connection]
topolinux has joined #ruby
pengin has joined #ruby
abdZ has joined #ruby
_djbkd has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
Megtastique has joined #ruby
zenith__ has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
techsethi_ has joined #ruby
zenith_ has quit [Read error: Connection reset by peer]
rocknrollmarc has joined #ruby
ravenzz has joined #ruby
abdZ has quit [Quit: burp!   [www.t7ds.com.br]]
ptrrr has joined #ruby
dfinninger has joined #ruby
alex88 has joined #ruby
momomomomo has quit [Quit: momomomomo]
ryanneufeld has joined #ruby
<ryanneufeld> I'm not fluent in ruby, and i'm trying to figure out what this code is doing
<ryanneufeld> target_host_list().each {|s| role :target_hosts, s, :user => "deploy" }
<ryanneufeld> it's from a capistrano recipe
crazydiamond has joined #ruby
<nateberkopec> kinda hard to know in isolation like that ryanneufeld
<ryanneufeld> I mean syntactically
<ryanneufeld> I don't understand it
<apeiros_> ryanneufeld: it calls `role` for each value target_host_list returns
iwaffles has joined #ruby
mjuszczak has quit []
<ryanneufeld> what is the |s| ?
<apeiros_> the declaration of the variables which the block accepts
<ryanneufeld> okay
<apeiros_> like def foo(s)
<iwaffles> Anyone know how to set the default ruby in rvm? I’ve used rvm --default use 2.1.5 but when opening a new terminal it revers back to 2.0.0 for eome reason. rvm default switches back
<iwaffles> perhaps I could just put ‘rvm default’ into my rc
<apeiros_> iwaffles: rvm RUBY --default
<ryanneufeld> so, in this case, role is a method?
<apeiros_> iwaffles: e.g. rvm 2.1.5 --default
<apeiros_> ryanneufeld: as previously said, yes
<iwaffles> no dice, apeiros_ – still not selecting the default on a new terminal window/tab
<iwaffles> weird.
reinaldob has joined #ruby
<iwaffles> rvm list even indicates 2.1.5 as being the default
agrinb has quit [Quit: Leaving...]
<apeiros_> iwaffles: whoops, rvm *use* RUBY --default
<ryanneufeld> okay, at the top of the file there is load 'deploy'
<apeiros_> if that still doesn't work, gist your terminal session
<ryanneufeld> and a namespace :deploy
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ryanneufeld> later in teh file
<ryanneufeld> are they related?
<ryanneufeld> I suppose you wouldn't know that.
<apeiros_> ryanneufeld: maybe. load and namespace would be methods.
tier has joined #ruby
<iwaffles> apeiros_: same thing, it doesn’t seem to select rvm default when creating a new terminal
tier has quit [Read error: Connection reset by peer]
<apeiros_> iwaffles: 19:58 apeiros_: if that still doesn't work, gist your terminal session
tier has joined #ruby
<shevy> mhhm waffles
<shevy> I am so hungry
baweaver has joined #ruby
kalusn has joined #ruby
<apeiros_> me too. cooking atm :D
<apeiros_> what's the opposite of a glass cannon (in gaming)? a tank?
<shevy> you let your wife do that!
RegulationD has joined #ruby
<shevy> a nuke
elaptics is now known as elaptics_away
<shevy> I actually don't know what a glass canon is
<apeiros_> shevy: a glass cannon is a character which can only take very little damage, but deals a ton of damage
rocknrollmarc has quit [Ping timeout: 250 seconds]
<shevy> in Ultima VI there were glass words... one use... they broke upon usage but killed the (one) opponent
<shevy> damn, not words
<shevy> glass *swords
<shevy> ah
gfawcettpq has quit [Ping timeout: 265 seconds]
<shevy> like Goliath in David vs. Goliath
<shevy> damn glass jaw end bosses
sivsushruth has quit [Read error: Connection reset by peer]
tier_ has quit [Ping timeout: 264 seconds]
kalusn has quit [Ping timeout: 240 seconds]
techsethi_ has quit [Quit: techsethi_]
kalusn has joined #ruby
pdoherty has quit [Quit: Leaving]
lys has quit [Quit: lys]
alex88 has quit []
werelivinginthef has quit [Ping timeout: 265 seconds]
sivsushruth has joined #ruby
werelivinginthef has joined #ruby
rocknrollmarc has joined #ruby
OrbitalKitten has joined #ruby
jenrzzz has joined #ruby
roadt has joined #ruby
roadt has quit [K-Lined]
<ryanneufeld> apeiros_: are you familiar at all w/ capistrano
<ryanneufeld> ?
<apeiros_> ryanneufeld: no
kirun has joined #ruby
<ryanneufeld> so in the code, I beleive role is a string
<apeiros_> ryanneufeld: no it is not
_reset has quit [Remote host closed the connection]
zenith__ has quit [Ping timeout: 246 seconds]
<apeiros_> it's still ruby syntax
reset has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
n80 has joined #ruby
sjuxax has left #ruby [#ruby]
mjuszczak has joined #ruby
Spami has joined #ruby
rubytor has quit [Quit: No Ping reply in 180 seconds.]
<ryanneufeld> apeiros_: you're correct
<ryanneufeld> I found the code
<ryanneufeld> def role(name, hosts, options={})
rubytor has joined #ruby
<apeiros_> the only things the token `role` can be in ruby is either an lvar or a method. and since in `role :target_hosts, s, :user => "deploy"` you have arguments, it is unambiguously a method.
<ryanneufeld> https://gist.github.com/b33d6fcbb8d9983c946b target_host_list
<ryanneufeld> unambiguously - as a php/java/python dev, I don't think that word means what you think it means lol
<apeiros_> the word means precisely what I think it means, thank you.
<ryanneufeld> :p
<apeiros_> *nothing* but methods can accept arguments in ruby.
<ryanneufeld> so then, the :target_hosts
<apeiros_> and `role` being a string makes no sense in any of the langs you just mentioned.
<jhass> proc {|argument| puts "Ha!" }
<ryanneufeld> okay, I get that part
Tinfoilhat_ has quit [Read error: Connection reset by peer]
<apeiros_> :target_hosts is a Symbol literal
topolinux has quit [Ping timeout: 255 seconds]
<ryanneufeld> so what would passing that as a parameter mean?
<apeiros_> that depends entirely on the method
<ryanneufeld> in the context of that code?
sevvie has quit [Ping timeout: 264 seconds]
topolinux has joined #ruby
<apeiros_> ryanneufeld: read the code - what variable will end up with that value?
MasterPiece has quit [Quit: Leaving]
<ryanneufeld> dude, I am reading the code
<ryanneufeld> I don't understand how ruby works
sevvie has joined #ruby
<jhass> ryanneufeld: tryruby.org
Sawbones has joined #ruby
<ryanneufeld> so I'm asking for help here, cause it's clearly not obvious
pengin has quit [Remote host closed the connection]
rgs has quit [Ping timeout: 246 seconds]
tvw has joined #ruby
<apeiros_> ryanneufeld: dude, we're not here to teach you ruby. I was willing to go ahead, but if you prefer to bitch instead of answer the question, then I'm off.
mjuszczak has quit []
<jhass> ryanneufeld: maybe not, but covered by the most basic ruby tutorials
rgs has joined #ruby
* baweaver grabs popcorn
<ryanneufeld> apeiros_: it gets passed to the name variable which is passed into another method
gfawcettpq has joined #ruby
<apeiros_> ryanneufeld: and in line 51?
<ryanneufeld> being compared to another symbol it appears
<apeiros_> correct. but since :target_hosts != :all, the `if` is not triggered. so being passed on is all it does here.
<baweaver> odd that they use interpolation for that, why not just put all directly in there? Eh, semantics.
<ryanneufeld> I can see that, where i'm confused is with what a symbol is
<ryanneufeld> and what it means in this context
justin_pdx has joined #ruby
<baweaver> think a string without 90% of the bloat
<jhass> baweaver: maybe you want to extend the condition later
<apeiros_> baweaver: huh? it's not interpolated? only in the raise…
<baweaver> it's just a name
<baweaver> fair point
kerframil has joined #ruby
<apeiros_> ryanneufeld: for the moment, you can think of it as if it was a string
<ryanneufeld> ok, but it's value is 'target_hosts' ?
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nerium has joined #ruby
<apeiros_> yes
<apeiros_> well, kind of
<apeiros_> but in terms of thinking of it as a string: yes
mjuszczak has joined #ruby
<jhass> ryanneufeld: it's used in contexts where you would use an enum or a constant for a magic value in other languages
<ryanneufeld> jhass: thanks, I get that
justin_pdx has quit [Client Quit]
tvw has quit [Ping timeout: 250 seconds]
* baweaver whistles innocently
pengin has joined #ruby
oki has joined #ruby
<ryanneufeld> baweaver: your snark isn't helping. I'm an experienced dev, who is frustrated with a language that isn't familar, and while I apreciate the help. I am frustrated
sinkensabe has joined #ruby
ghr has joined #ruby
tvw has joined #ruby
<baweaver> You don't say?
<ryanneufeld> apeiros_: Thanks for your patience and help
tier has quit [Read error: Connection reset by peer]
tier has joined #ruby
dru has quit [Ping timeout: 244 seconds]
icarus has joined #ruby
mjuszczak has quit [Client Quit]
<ryanneufeld> one last question.
<ryanneufeld> task :upload, :roles => :target_hosts do
<ryanneufeld> task( :upload, :roles => :target_hosts) do
rhg135|zzz is now known as rhg135
<ryanneufeld> those are functionally the same?
<jhass> yup
<ryanneufeld> thx
<baweaver> see what happens when you replace
<baweaver> do end
<baweaver> with {}
<baweaver> then you need parens
<ryanneufeld> ah
<ryanneufeld> okay
<baweaver> nasty gotcha for later
bMalum has quit [Quit: bMalum]
<baweaver> you'll spend days on that one.
<jhass> that's because do/end binds to the leftmost call, {/} to the rightmost
<baweaver> ruby can only infer so much
<jhass> and that's the only semantic difference between the two
sinkensabe has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 272 seconds]
<ryanneufeld> right
<shortdudey123> anyone know a good way to do socket timeouts?
<ryanneufeld> that helps heaps!
tvon has quit [Quit: Lost terminal]
<ryanneufeld> at least I can translate what i'm seeing in my head agian
startupality has quit [Quit: startupality]
<jhass> shortdudey123: what's not working?
<shortdudey123> the actual timeout
workmad3 has quit [Ping timeout: 246 seconds]
<ryanneufeld> so is do/end essentially a callback?
<shortdudey123> neither connection itself or gets timeout
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uptownhr has quit [Quit: uptownhr]
bluOxigen has quit [Ping timeout: 252 seconds]
<jhass> ryanneufeld: called "a block" (again covered by the most basic ruby tutorials), so sort of, with the added benefit of being able to reference the context it was defined in
spider-mario has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
pengin has quit [Remote host closed the connection]
<baweaver> both are anonymous functions though
<baweaver> unless I missed something. Possible
FooMunki_ has quit [Quit: FooMunki_]
rocknrollmarc has quit [Ping timeout: 265 seconds]
<apeiros_> blocks are also closures (beyond being anonymous functions)
<apeiros_> ah, they didn't say they were also js experienced - otherwise that'd have helped
The_Phoenix has quit [Read error: Connection reset by peer]
<jhass> shortdudey123: yeah, comments on Mikes article suggest it's not portable at all
timonv has joined #ruby
rocknrollmarc has joined #ruby
<shortdudey123> jhass: thats what i was beginning to wonder :(
<baweaver> defining map, reduce, and select with lambdas
mjuszczak has joined #ruby
<jhass> shortdudey123: so the rewriting for non blocking IO approach might be better (and is generally faster anyway)
<apeiros_> baweaver: missing def fn?
<baweaver> (granted reduce technically should be able to run with out an accumulator using the head, but not the point)
B1n4r10 has joined #ruby
rbennacer has quit [Remote host closed the connection]
<baweaver> apeiros_: ?
<apeiros_> oh
<apeiros_> dear
<jhass> shortdudey123: since IO.select does take a timeout: http://ruby-doc.org/core-2.2.0/IO.html#method-c-select
dru has joined #ruby
tvw has quit [Ping timeout: 256 seconds]
* apeiros_ failed at reading
<shortdudey123> jhass: yup, already have my code setup for non-blocking, just want to not have a thread sit there longer than it has to
<jhass> shortdudey123: and this one is safe, supported by the underlying system call
<baweaver> granted I follow lisp style on that
<shortdudey123> hmm will look at that
<apeiros_> shows how much power convention has over how you read code… (never use -> without () when it has args)
<shortdudey123> thanks!
B1n4r10 has quit [Max SendQ exceeded]
<ryanneufeld> okay, blocks are slick
<ryanneufeld> but the syntatical variations are confusing as hell at first
pengin has joined #ruby
<apeiros_> blocks were the reason I started with ruby
sigurding has joined #ruby
tvon has joined #ruby
duncannz has joined #ruby
sambao21 has joined #ruby
<baweaver> OH on Twitter: Do programmers have superstitions? No, they just have best practices.
<apeiros_> ryanneufeld: you can ignore them when writing code if you're explicit with parens.
<apeiros_> dogma - always a shiny rope to hang yourself
<ryanneufeld> Thanks again for the help
sambao21 has quit [Client Quit]
rbennacer has joined #ruby
rikai has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
<jhass> shortdudey123: when you have a reader thread and want to be able to safely kill it, a common approach is to use IO.select with the thing you read from and a pipe and then pushing a kill message to the pipe
hollywood has quit [Quit: Leaving]
<shortdudey123> ah
Megtastique has quit []
tvon has quit [Client Quit]
rbennacer has quit [Remote host closed the connection]
zotherstupidguy has joined #ruby
sambao21 has joined #ruby
mistermo_ has joined #ruby
rbennacer has joined #ruby
martianixor has quit [Quit: Leaving]
<HOrangeJewce> in my gem if I want to have a test include a bin file what's the correct way to require it?
<zotherstupidguy> any idea what "run ->(e)" means as in run ->(e) { [200, {"Content-Type" => "text/html"}, [a.instance_eval(&block)]] }
jrd has joined #ruby
nfk has joined #ruby
jonr22 has joined #ruby
<apeiros_> zotherstupidguy: `->(e) {` is the same as `lambda { |e|`
<havenwood> zotherstupidguy: the `->` is the beginning of a stabby lambda, and the `e` is the lambda arg, it's usually called `env` for Rack.
<zotherstupidguy> apeiros: thanks, docs?
<jhass> HOrangeJewce: not sure I follow your question, to run it do ruby -Ilib bin/foo
jrdnull has quit [Read error: Connection reset by peer]
<apeiros_> zotherstupidguy: syntax, dunno where syntax is docced
<HOrangeJewce> jhass: I mean I have a test_[bin-filename].rb
<zotherstupidguy> apeiros havenwood: thanks, great
<HOrangeJewce> calling require '[gem-name]/bin/[filename]' isn't working
<HOrangeJewce> so I was curious what the correct way to require the file is
chrishough has joined #ruby
<apeiros_> HOrangeJewce: I guess that's one of the rare cases where I consider require_relative acceptable
sambao21 has quit [Client Quit]
<jhass> HOrangeJewce: ah, you would use require_relative or patch $LOAD_PATH to include bin/
mistermocha has quit [Ping timeout: 246 seconds]
<apeiros_> alternatively: require/load + File.expand_path
afex has joined #ruby
<havenwood> require_distant_relative
<apeiros_> I wouldn't change $LOAD_PATH for this. bin is not a library path. could interfere with proper requires.
<HOrangeJewce> can i get an example for how the require_relative would work?
<jhass> HOrangeJewce: However, I tend to make the bin/ wrapper very thin instead, basically two lines: require "mygem/cli"; MyGem::CLI.new(ARGV)
<HOrangeJewce> apeiros: I don't disagree
<HOrangeJewce> this whole gem contains basically nothing but binaries
doodlehaus has joined #ruby
<apeiros_> in e.g. GEM/test/foo.rb: require_relative '../bin/foo'
<HOrangeJewce> thanks
Bish has quit [Ping timeout: 244 seconds]
<apeiros_> *executables ;-p
<apeiros_> assuming they are scripts and not actual binaries
mistermo_ has quit [Ping timeout: 255 seconds]
rikai has quit [Ping timeout: 245 seconds]
jasonwebster has joined #ruby
<HOrangeJewce> yes executables, my semantic mistake
<HOrangeJewce> important
tvw has joined #ruby
Ankhers has quit [Read error: Connection reset by peer]
<apeiros_> na, I'm being pedantic. but that's my favorite hobby :)
<zotherstupidguy> HOrangeJewxe, how about choosing some opensource gem and read from its code, you will find a lot of things to steal :)
jonr22 has quit [Ping timeout: 256 seconds]
Bish has joined #ruby
<zotherstupidguy> i found run ->(e) in the almost_sinatra gem
<zotherstupidguy> :)
Ankhers` has joined #ruby
<HOrangeJewce> apeiros: so even if the bin directory is included in the gemspec files array they still won't be loaded into my $LOAD_PATH?
sambao21 has joined #ruby
<HOrangeJewce> I just want to make sure I'm doing things in a sane manner
<HOrangeJewce> <— new to writing gems
<jhass> the require_paths in your .gemspec defines what Rubygems adds to the load path
<zotherstupidguy> have you read the rubygems guide?
<apeiros_> what jhass said. and generally you should not specify require_paths. use the default 'lib' dir
<HOrangeJewce> ah yeah ok I'm being silly now
<HOrangeJewce> thanks all
despai has quit [Quit: This computer has gone to sleep]
<ponga> hi apeiros_
yfeldblum has joined #ruby
<apeiros_> hi ponga
Tuxero has joined #ruby
jasonwebster has quit [Quit: Textual IRC Client: www.textualapp.com]
rhg135 is now known as rhg135|gone
baweaver has quit [Remote host closed the connection]
Tinfoilhat_ has joined #ruby
mikey320b has joined #ruby
momomomomo has quit [Ping timeout: 252 seconds]
wald0 has quit [Ping timeout: 245 seconds]
contradictioned has quit [Quit: No Ping reply in 180 seconds.]
contradictioned has joined #ruby
momomomomo has joined #ruby
Sawbones has quit [Remote host closed the connection]
tier has quit [Remote host closed the connection]
Drewch has quit [Quit: Computer has gone to sleep.]
sinkensabe has joined #ruby
mjuszczak has quit []
troulouliou_dev has quit [Remote host closed the connection]
tier has joined #ruby
dfinninger has quit [Remote host closed the connection]
ryanneufeld has left #ruby [#ruby]
goshdarnyou has quit [Quit: Connection closed for inactivity]
tier_ has joined #ruby
luriv_ has joined #ruby
sevvie has quit [Ping timeout: 256 seconds]
momomomomo has quit [Quit: momomomomo]
rikai has joined #ruby
_reset has joined #ruby
_reset has quit [Client Quit]
Sawbones has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
dfinninger has joined #ruby
send has quit [Ping timeout: 250 seconds]
tier has quit [Ping timeout: 256 seconds]
gfawcettpq2 has joined #ruby
rocknrollmarc has quit [Ping timeout: 244 seconds]
gfawcettpq has quit [Ping timeout: 244 seconds]
sinkensabe has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
gfawcettpq2 is now known as gfawcettpq
shellfu is now known as shellfood
sambao21 has joined #ruby
reset has quit [Ping timeout: 264 seconds]
send has joined #ruby
sevvie has joined #ruby
Morkel has joined #ruby
sevvie_ has joined #ruby
rocknrollmarc has joined #ruby
n1lo has quit [Quit: Leaving]
mkaesz has quit [Quit: Leaving...]
ponga has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
sinkensabe has joined #ruby
pengin has joined #ruby
topolinux has quit [Ping timeout: 252 seconds]
gfawcettpq has quit [Ping timeout: 245 seconds]
sevvie has quit [Ping timeout: 250 seconds]
send has quit [Remote host closed the connection]
sevvie_ has quit [Ping timeout: 265 seconds]
sevvie has joined #ruby
bMalum has joined #ruby
tonyhb_ has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 250 seconds]
pengin has quit [Ping timeout: 246 seconds]
iamninja has joined #ruby
mjuszczak has joined #ruby
afex has quit [Ping timeout: 245 seconds]
tonyhb has quit [Ping timeout: 250 seconds]
danman has joined #ruby
beef-wellington has joined #ruby
agarie has quit []
blackmesa has joined #ruby
zotherstupidguy has quit [Ping timeout: 240 seconds]
Hijiri has quit [Quit: WeeChat 1.0.1]
afex has joined #ruby
tvon has joined #ruby
Takle has joined #ruby
zotherstupidguy has joined #ruby
silkfox has quit [Ping timeout: 250 seconds]
tvw has quit [Ping timeout: 256 seconds]
einarj has joined #ruby
topolinux has joined #ruby
amacou has joined #ruby
bhegel has joined #ruby
einarj has quit [Ping timeout: 246 seconds]
kerframil has quit [Quit: Leaving]
tvw has joined #ruby
ghr has joined #ruby
gr33n7007h has quit [Ping timeout: 272 seconds]
crazydiamond has quit [Read error: Connection reset by peer]
amacou has quit [Ping timeout: 244 seconds]
shellfood is now known as shellfu
bMalum has quit [Quit: bMalum]
JBreit has joined #ruby
<apeiros_> <3 take_while
ghr has quit [Ping timeout: 245 seconds]
aclearma_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JBreit has left #ruby [#ruby]
aclearman037 has joined #ruby
Beoran_ has quit [Ping timeout: 246 seconds]
tvw has quit [Ping timeout: 245 seconds]
rekky has joined #ruby
max96at is now known as max96at|off
SouL_ has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
<shevy> it'll take a while
zotherstupidguy has quit [Ping timeout: 250 seconds]
dstarh has joined #ruby
zotherstupidguy has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
<dstarh> Can anyone recommend a good gem for spelling correction in ruby? I want to run a spellcheck task as a first pass to my NLP pipeline and everything I'm finding seems to be multiple years old or not used by meny people so it's not been battle tested
aswen has joined #ruby
towski_ has joined #ruby
jenrzzz has joined #ruby
crazydiamond has joined #ruby
jespada has quit [Quit: Leaving]
terlar has joined #ruby
terlar has quit [Client Quit]
SouL_ has joined #ruby
topolinux has quit [Ping timeout: 250 seconds]
Beoran_ has joined #ruby
terlar has joined #ruby
terlar has quit [Client Quit]
<reactormonk> dstarh, I've looked for NLP stuff in ruby a few years ago and I have to admit there wasn't too much...
terlar has joined #ruby
<reactormonk> dstarh, I've found most NLP stuff on the JVM, so with jruby you should be good to go
pandaant has quit [Remote host closed the connection]
<dstarh> reactormonk i'm using Stanford's Core NLP, Classifier and POS Tagger for the actual NLP tasks, and using a ruby wrapper around that.
blackmesa has quit [Quit: WeeChat 1.1.1]
<dstarh> jruby not required
<reactormonk> yeah, then you're good to go
sarlalia1 has quit [Quit: WeeChat 0.4.2]
elaptics_away is now known as elaptics
<dstarh> However, I'm looking for the spell checking task which is not included in the core nlp and should likely be done as the first step of the pipeline
sarlalian has joined #ruby
<reactormonk> How complex does it have to be?
<reactormonk> word-based spelling enough?
<dstarh> my use of NLP is for named entity recognition and text classificaiton which works great but if people fat finger the text I want to be able to catch that before hand
<reactormonk> Ah, I see
mjuszczak has quit []
Spami has quit [Quit: This computer has gone to sleep]
<dstarh> i've seen http://norvig.com/spell-correct.html which seems fairly easy to implement but I don't want to reinvent any wheels if they exist
pengin has joined #ruby
<reactormonk> dstarh, you could just pipe it through aspell
otisZart has joined #ruby
<dstarh> ha, hadn't thought of that
baweaver has quit [Remote host closed the connection]
lkba_ has quit [Read error: Connection reset by peer]
AlphaTech has joined #ruby
plutonic has joined #ruby
topolinux has joined #ruby
<reactormonk> Although I don't see an option where you can go for how aggressive you want to correct spelling - aspell is only for suggestions
<dstarh> yeah
byaruhaf has quit [Disconnected by services]
byaruhaf has joined #ruby
zotherstupidguy has quit [Ping timeout: 252 seconds]
otisZart_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
<dstarh> after i've done the NER phase it gets passed to an elasticsearch cluster so perhaps if the pattern based recognition is working then the fuzzy search in the next step will be a better option :/
sigurding has quit [Quit: sigurding]
ponga has joined #ruby
blackmesa has joined #ruby
otisZart has quit [Ping timeout: 252 seconds]
<reactormonk> Or you could pipe through aspell to get an initial number to see how many suggestions it makes to see if it's worth the effort
otisZart_ is now known as otisZart
thiagovsk has quit [Quit: Connection closed for inactivity]
rhg135|gone is now known as rhg135
mloveless has joined #ruby
zotherstupidguy has joined #ruby
robbyoconnor has quit [Ping timeout: 246 seconds]
<reactormonk> dstarh, business or academia?
lkba has joined #ruby
<dstarh> business
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
<reactormonk> Yup, I recommend counting the spelling errors first. Maybe even generate a list to see if there's duplicates etc. to see if they're correctly spelled, but not in the dictionary.
<dstarh> the stanford libs are pretty fantastic for doing nlp work, i'm surprised at what it's able to extract with a relatively training set
Sawbones has quit [Remote host closed the connection]
Akagi201_ has joined #ruby
Akagi201 has quit [Ping timeout: 255 seconds]
MatthewsFace has quit [Read error: Connection reset by peer]
<dstarh> interesting, it's all real time, user > sentence > parse > search
sambao21 has quit [Quit: Computer has gone to sleep.]
Tinfoilhat_ has quit [Read error: Connection reset by peer]
<reactormonk> Depends on your definition of real time.
MatthewsFace has joined #ruby
rodfersou has quit [Quit: leaving]
zotherstupidguy has quit [Ping timeout: 252 seconds]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xiti has quit [Ping timeout: 250 seconds]
zotherstupidguy has joined #ruby
* apeiros_ thinks dstarh doesn't mean "real time" as it is defined for CS
pierre1_ has joined #ruby
byaruhaf has quit [Remote host closed the connection]
fuhgeddaboudit has joined #ruby
<reactormonk> Didn't windows 95 have a real time clock you could set for up to 200 ms?
byaruhaf has joined #ruby
cr3 has joined #ruby
yfeldblum has joined #ruby
sevvie has quit [Ping timeout: 252 seconds]
<apeiros_> o0
<dstarh> apeiros_ correct I mean real time as in it's not a bulk task happening on thousands of documents, it's an api
<cr3> how can I get internal information about a method, like File.open for example? like, where the function is defined
<cr3> aha! File.method(:open)... I think
<apeiros_> cr3: use pry + pry-doc
<apeiros_> and then: $ File.open
momomomomo has joined #ruby
<apeiros_> or: ? File.open
withnale has joined #ruby
jcromartie has quit [Read error: Connection reset by peer]
uptownhr has joined #ruby
<apeiros_> other than that: gitub.com/ruby/ruby - rdoc.info - ruby-doc.org
<reactormonk> dstarh, I assume you're talking about SaaS stuff
jcromartie has joined #ruby
sambao21 has joined #ruby
<dstarh> yup
tvw has joined #ruby
<reactormonk> One of the benefits of opensource
<dstarh> thanks for the link to the paper, that will make an interesting read later tonight
rekky has quit []
ndrei has quit [Ping timeout: 255 seconds]
ndrei_ has quit [Ping timeout: 250 seconds]
mloveless has quit []
ndrei has joined #ruby
michael_mbp has quit [Excess Flood]
sevvie has joined #ruby
ndrei_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 250 seconds]
michael_mbp has joined #ruby
uptownhr has quit [Quit: uptownhr]
Morkel has quit [Quit: Morkel]
tmtwd has joined #ruby
topolinux has quit [Ping timeout: 250 seconds]
ldnunes has quit [Quit: Leaving]
aclearman037 has joined #ruby
jcromartie has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jcromartie has joined #ruby
topolinux has joined #ruby
deuterium has joined #ruby
Xiti has joined #ruby
Xiti has quit [Changing host]
Xiti has joined #ruby
GnuYawk has quit [Ping timeout: 255 seconds]
crazydiamond has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
crazydiamond has joined #ruby
havenwood has quit [Ping timeout: 256 seconds]
sinkensabe has joined #ruby
<dstarh> ha thats a port of the link i posted above, nice
cr3 has left #ruby [#ruby]
diegoviola has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
mloveless has joined #ruby
Xiti` has joined #ruby
OrbitalKitten has joined #ruby
n80 has quit [Quit: n80]
Xiti has quit [Ping timeout: 265 seconds]
justin_pdx has joined #ruby
_djbkd has quit [Remote host closed the connection]
blackmesa has joined #ruby
byaruhaf has quit [Disconnected by services]
uptownhr has joined #ruby
byaruhaf has joined #ruby
mordocai has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
ghostpl_ has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
MatthewsFace has quit [Read error: Connection reset by peer]
Matthews_ has joined #ruby
thumpba has joined #ruby
rajeshchawla has joined #ruby
jonr22 has joined #ruby
chrishough has joined #ruby
DouweM has joined #ruby
allcentury has joined #ruby
mjuszczak has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0/2015010900]]
Xiti` has quit [Quit: Xiti`]
diego1 has joined #ruby
crazydiamond has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
pragmatism has joined #ruby
crazydiamond has joined #ruby
monod has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 264 seconds]
deuterium has quit [Read error: Connection reset by peer]
sinkensa_ has joined #ruby
diegoviola has quit [Ping timeout: 255 seconds]
jonr22 has quit [Ping timeout: 240 seconds]
sinkensabe has quit [Read error: Connection reset by peer]
allcentury has quit [Ping timeout: 250 seconds]
sinkensa_ has quit [Remote host closed the connection]
frem has joined #ruby
momomomomo has quit [Quit: momomomomo]
Sawbones has joined #ruby
DouweM has quit [Read error: Connection reset by peer]
crazydiamond has quit [Remote host closed the connection]
<frem> I hit ctrl+c while bundle was doing stuff and now every time I run any bundler command I get the message `Could not find stripe_event-0.6.1 in any of the sources`
mikey320b has quit [Quit: Leaving]
<frem> even when running `bundle clean --force`
Lildirt has quit [Read error: Connection reset by peer]
davidhq has joined #ruby
crazydiamond has joined #ruby
allcentury has joined #ruby
goshdarnyou has joined #ruby
Lildirt has joined #ruby
NightMonkey has quit [Max SendQ exceeded]
agrinb has joined #ruby
ghr has joined #ruby
martianixor has joined #ruby
Hrendalf has joined #ruby
duncannz has quit [Ping timeout: 265 seconds]
NightMonkey has joined #ruby
_djbkd has joined #ruby
topolinux has quit [Ping timeout: 252 seconds]
gfawcettpq has joined #ruby
<frem> Oh, maybe my Gemfile.lock was messed up. I renamed it and now bundler works again.
Sawbones has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
<gr33n7007h> Right, need some help. I'm trying to timeout a call to IPSocket.getaddress, but when I wrap it in a timeout block it doesn't work just keeps hanging until IPSocket timeout occurs?
enterprisedc has quit [Quit: enterprisedc]
Sawbones has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
allcentury has quit [Ping timeout: 272 seconds]
gfawcettpq has quit [Client Quit]
enterprisedc has joined #ruby
gfawcettpq has joined #ruby
Xiti has joined #ruby
Xiti has quit [Changing host]
Xiti has joined #ruby
neonalpine has quit [Remote host closed the connection]
topolinux has joined #ruby
neonalpine has joined #ruby
Zai00 has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
dfinninger has quit [Read error: Connection reset by peer]
rajeshchawla has quit [Remote host closed the connection]
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
Spami has joined #ruby
rhllor has quit [Quit: rhllor]
davejacobs has joined #ruby
aamador has quit [Ping timeout: 255 seconds]
teddyp1c_ has quit [Remote host closed the connection]
dfinninger has joined #ruby
gfawcettpq has quit [Read error: No route to host]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
paulfm has joined #ruby
jcromartie has quit [Read error: Connection reset by peer]
Limix has joined #ruby
jcromartie has joined #ruby
chinmay_dd has quit [Quit: Connection closed for inactivity]
topolinux has quit [Quit: Sto andando via]
robbyoconnor has joined #ruby
reinaldob has quit [Remote host closed the connection]
zotherstupidguy has quit [Ping timeout: 256 seconds]
paulfm has quit [Client Quit]
gatopan has joined #ruby
gatopan has left #ruby [#ruby]
tier_ has quit [Ping timeout: 246 seconds]
juanpaucar has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 256 seconds]
juanpaucar has joined #ruby
baweaver has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
JDiPierro has quit [Remote host closed the connection]
oddmunds has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 264 seconds]
decoponio has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
FooMunki has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
musl has joined #ruby
juanpaucar has quit [Ping timeout: 246 seconds]
pontiki has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
jerius has quit [Quit: /quit]
rubytor has quit [Quit: No Ping reply in 180 seconds.]
rubytor has joined #ruby
tubuliferous has joined #ruby
jenrzzz has joined #ruby
deric_skibotn_ has joined #ruby
bMalum has joined #ruby
mjuszczak has quit []
deric_skibotn has quit [Ping timeout: 250 seconds]
deric_skibotn_ is now known as deric_skibotn
momomomomo has joined #ruby
tvw has joined #ruby
Cust0sLim3n has quit [Ping timeout: 250 seconds]
triple_b has quit [Ping timeout: 246 seconds]
Azure has quit [Ping timeout: 244 seconds]
Cust0sLim3n has joined #ruby
juanpaucar has joined #ruby
baweaver has joined #ruby
silkfox has joined #ruby
juanpaucar has quit [Remote host closed the connection]
tonyhb_ has quit [Quit: peace]
baweaver has quit [Remote host closed the connection]
juanpaucar has joined #ruby
tvon has quit [Quit: leaving]
beef-wellington has quit [Ping timeout: 250 seconds]
zotherstupidguy has joined #ruby
despai has joined #ruby
baweaver has joined #ruby
jottr_ has joined #ruby
juanpaucar has quit [Ping timeout: 252 seconds]
davedev24_ has joined #ruby
<kaleido> undefined method `each' for 2:Fixnum
<kaleido> is .each part of something i have to require?
davedev2_ has quit [Ping timeout: 246 seconds]
<apeiros_> kaleido: no. numbers simply don't have .each.
fgo has joined #ruby
<apeiros_> why do you think numbers should respond to .each?
<apeiros_> and what should it do?
<kaleido> its not numbers tho
<kaleido> can i paste 3 lines?
<shevy> YES
wallerdev has quit [Quit: wallerdev]
<apeiros_> your error says so
Azure has joined #ruby
<apeiros_> 23:19 kaleido: undefined method `each' for 2:Fixnum
<apeiros_> this says you do: 2.each
<kaleido> x = { "a" => 1, "b" => 2 }
<kaleido> a = x.keys.each { |dang| puts dang }
<kaleido> b = x.values.each { |dang| puts dang }
Pupeno has quit [Remote host closed the connection]
<kaleido> oh christ
<kaleido> im so retarded
<apeiros_> I'm positive that the error is not in that code.
<shevy> GOOD THAT YOU PASTED
zorak8 has quit [Read error: Connection reset by peer]
<shevy> :D
<shevy> that code works fine
Pupeno has joined #ruby
<apeiros_> also there's .each_key and .each_value which you should use here
<shevy> apeiros_ perhaps it is a heisenbug
<shevy> the code is invisible and hidden there
<apeiros_> I doubt that shevy
cmckee has joined #ruby
<shevy> kaleido though for sake of completion, which part caused the .each on 2:Fixnum thing?
mroach has quit [Quit: mroach]
<kaleido> i have no idea, actually
neonalpine has quit [Remote host closed the connection]
<kaleido> i guess irb is my friend
zorak8 has joined #ruby
veduardo has joined #ruby
rajeshchawla has joined #ruby
<kaleido> it works in irb
<kaleido> it only seems to break when i use in a sinatra app
<shevy> perhaps sinatra does something behind the scenes
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kaleido> yeah, like smokes cigars with dean and sammy and ignores my feelings :(
yfeldblum has quit [Remote host closed the connection]
Pupeno has quit [Ping timeout: 265 seconds]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
neonalpine has joined #ruby
rubytor has quit [Quit: No Ping reply in 180 seconds.]
fgo has quit [Ping timeout: 256 seconds]
roshanavand has joined #ruby
rubytor has joined #ruby
<shevy> and sing about New York and how you did it your way
StoneCypherAW has quit [Ping timeout: 256 seconds]
codeurge has joined #ruby
<shevy> there is too much magic in ruby
withnale_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<withnale_> Hello. Silly question. Can someone tell me what the '->' operator does?
codeurge has quit [Client Quit]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
Ankhers` has quit [Ping timeout: 272 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<reactormonk> withnale_, lambda constructor? It's simply syntax, it's not an operator
<apeiros_> withnale_: there's no -> operator. there is "stabby lambda" syntax, where -> is a part
<baweaver> lambda == ->
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<withnale_> Found it. thanks
<apeiros_> `->(*args) {…}` or `-> {…}`
<reactormonk> apeiros_, is lambda equivalent to proc now?
<apeiros_> reactormonk: no
<baweaver> nope
<apeiros_> -> is lambda, not proc
<baweaver> one is strict on arg count
<apeiros_> also `return` behaves differently
<reactormonk> I can't remember the last time I used return in ruby
<apeiros_> that's probably a good thing :)
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<reactormonk> Or bad, I haven't used ruby for a while
CustosLimen has quit [Ping timeout: 264 seconds]
rhg135 is now known as rhg135|gone
<baweaver> as to why ruby doesn't like to just build with TCO by default is beyond me
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros_> iirc there are edge cases where it is buggy, not sure, though.
<apeiros_> you might find the relevant info on bugs.ruby-lang.org
dfinninger has quit [Ping timeout: 255 seconds]
tvw has quit [Ping timeout: 256 seconds]
ponga has quit [Remote host closed the connection]
StoneCypherAW has joined #ruby
<apeiros_> not read yet, but probably https://bugs.ruby-lang.org/issues/6602
rbennacer has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
havenwood has joined #ruby
terlar has quit [Quit: WeeChat 1.1.1]
shum has quit [Quit: WeeChat 1.1.1]
Parker0 has joined #ruby
tunaCanBruh has joined #ruby
doodlehaus has quit [Remote host closed the connection]
FRodrigues has joined #ruby
brb3 has quit [Quit: <.<]
shum has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
zotherstupidguy has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
spyderman4g63 has quit [Remote host closed the connection]
<withnale_> How would I convert the following to new syntax rspec using expect?
aswen has quit [Ping timeout: 245 seconds]
zotherstupidguy has joined #ruby
<withnale_> -> { @data.global}.should raise_error SystemExit
<FRodrigues> hi
<withnale_> I thought it would be expect {-> { @data.global}}.to raise_error SystemExit
snzmn has quit [Remote host closed the connection]
mikepack has joined #ruby
otisZart has quit [Ping timeout: 246 seconds]
it0a has quit [Ping timeout: 240 seconds]
otisZart has joined #ruby
hoelzro has quit [Quit: Lost terminal]
hoelzro has joined #ruby
<apeiros_> withnale_: not using rspec, but I'd assume it's: expect { @data.global }.to raise_error(SystemExit)
n80 has joined #ruby
Lildirt has quit [Quit: Leb wohl, meine Freunde. Ich wünsche Ihnen das beste von Tagen.]
ghr has joined #ruby
Lildirt has joined #ruby
<withnale_> The next line would be ...
<withnale_> ARGV.push('start') -> { @data.global}.should raise_error SystemExit
n80 has quit [Client Quit]
zotherstupidguy has quit [Ping timeout: 252 seconds]
<withnale_> to be honest, I'm gonna drop this and wire in Aruba so I guess I should quit with this. These tests are just messy
Majost1 has joined #ruby
adriancb has quit [Remote host closed the connection]
rubytor has quit [Read error: Connection reset by peer]
zotherstupidguy has joined #ruby
Sawbones has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 245 seconds]
sinkensabe has joined #ruby
plutonic has quit [Quit: plutonic]
Sawbones has joined #ruby
tunaCanBruh has quit [Ping timeout: 250 seconds]
t0rc has quit [Quit: WeeChat 1.1.1]
<shevy> haha
<shevy> I love the -> there
<reactormonk> Your favourite way to generate a random string of 16 characters? ASCII letters only.
<shevy> I build the alphabet and then .shuffle!
<reactormonk> shevy, reoccurring preferably.
crack has quit [Ping timeout: 255 seconds]
martianixor has quit [Ping timeout: 246 seconds]
l3ck has joined #ruby
<apeiros_> reactormonk: Array.new(len) { alphabet.sample }.join
<reactormonk> nice one
<reactormonk> which ruby version is .sample?
<apeiros_> 1.9+
<reactormonk> ah, sweet
allcentury has joined #ruby
<casadei> apeiros_ why not simply alphabet.sample(len).join ? :)
sinkensabe has quit [Ping timeout: 245 seconds]
<apeiros_> because that will have no repetitions
<casadei> you're right... good catch.
<apeiros_> also your alphabet would be required to be larger than len
ismaelga has quit [Remote host closed the connection]
ismaelga has joined #ruby
monod has quit [Quit: Sto andando via]
<apeiros_> reactormonk: as for constructing the alphabet: [*'A'..'z', *'a'..'z', …]
blackmesa has quit [Quit: WeeChat 1.1.1]
<reactormonk> apeiros_, yeah, that part I still remember
<apeiros_> or well, actually… I'd just generate it once and then insert the literal
yfeldblum has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
<reactormonk> Yeah, no compiler doing the value caching for you :-)
<baweaver> Array.new(len) { alphabet[rand(0..alphabet.length)] }.join
<baweaver> ?
Sawbones has quit [Remote host closed the connection]
zotherstupidguy has quit [Ping timeout: 252 seconds]
<baweaver> well, length - 1
Majost1 has left #ruby [#ruby]
<apeiros_> more code, slower ;-)
<shevy> what did you expect when you let a beaver code apeiros_
<apeiros_> also rand(0..(x-1)) == rand(x)
zotherstupidguy has joined #ruby
<baweaver> noted. I just don't use random often.
<shevy> beavers do not believe in entropy
Sawbones has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
werelivinginthef has quit [Remote host closed the connection]
HOrangeJewce has quit [Quit: Leaving.]
<baweaver> we don't believe in mahogany
<shevy> hehe
<baweaver> mahogany
kirun has quit [Quit: Client exiting]
shum has quit [Quit: WeeChat 1.1.1]
danman has quit [Quit: danman]
<baweaver> is it bad I'm tempted to make a remix of TFS's King Yamma and that woman from Hunger Games saying mahogany back and forth?
shum has joined #ruby
yfeldblum has joined #ruby
<reactormonk> I'm currently considering if it's a good idea to randomly generate email addresses with above algorithm... and then I'm basically screwed if I forget which one is which
juanpablo_ has quit [Quit: (null)]
Pupeno has joined #ruby
<baweaver> Faker::Internet.email
<baweaver> done
<reactormonk> baweaver, nah, I'm currently messing with a script to my mails. I'm considering instead of named addresses, go with random addresses and map them to the name
juanpablo_ has joined #ruby
Pupeno has quit [Remote host closed the connection]
crueber has quit [Quit: Leaving.]
<baweaver> ah
<baweaver> I tend to use that if I really need to stress test something with fake data.
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
jenrzzz_ has joined #ruby
fryguy9 has quit [Quit: Leaving.]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
crack has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
juanpablo_ has quit [Ping timeout: 250 seconds]
ta has quit [Read error: Connection reset by peer]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
Pupeno has quit [Ping timeout: 250 seconds]
ta has joined #ruby
jlast has quit [Remote host closed the connection]
chrishough has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
netbun has joined #ruby
tunaCanBruh has joined #ruby
netbun has quit [Client Quit]
afex has quit []
veduardo has quit [Ping timeout: 246 seconds]
maxmanders has quit [Ping timeout: 256 seconds]
Evan_ has quit [Ping timeout: 256 seconds]
baweaver has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
govg has quit [Ping timeout: 246 seconds]
ndrei_ has quit [Ping timeout: 250 seconds]
Spami has quit [Quit: This computer has gone to sleep]
gilmour has quit [Ping timeout: 264 seconds]
lifenoodles has quit [Ping timeout: 264 seconds]
netbun has joined #ruby
Hijiri has joined #ruby
Evan_ has joined #ruby
netbun has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
last_staff has joined #ruby
maxmanders has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
ndrei has joined #ruby
gilmour has joined #ruby
lifenoodles has joined #ruby
ndrei_ has joined #ruby
phoo1234567 has quit [Quit: Leaving]
mjuszczak has joined #ruby
<weaksauce> reactormonk I like to use a more verbose but human readable form that removes the characters that are easily mistaken for one another
<reactormonk> case/when goes for <check> === <element>, correct? How do I check if a hash has a key of <element> in a case statement?
zotherstupidguy has quit [Ping timeout: 250 seconds]
Hrendalf has quit [Read error: Connection reset by peer]
<reactormonk> weaksauce, so remove 'l'?
jottr_ has quit [Ping timeout: 252 seconds]
<weaksauce> %w{ 2 3 4 6 7 9 A C D E F G H J K M N P Q R T V W X Y Z a b c d e f g h j k m n p q r t v w x y z}
<apeiros_> reactormonk: case expression when condition1, … --> (condition1) === (expression) || (condition…) === (expression)
<weaksauce> remove the numbers if you don't want numerics
yfeldblum has quit [Remote host closed the connection]
<casadei> hash.include?(:key)
<reactormonk> weaksauce, thanks
yfeldblum has joined #ruby
<weaksauce> np
<apeiros_> and IMO you shouldn't use case/when to check whether a key is there
<reactormonk> casadei, read again
<reactormonk> apeiros_, I think it's appropriate here
<apeiros_> you'd have to use case/when without expression, or use a proc
<apeiros_> reactormonk: not really, no
n80 has joined #ruby
ptrrr has quit [Quit: ptrrr]
<reactormonk> So no way to get #=== to use inclusion semantics?
<apeiros_> you'd have to patch the key's class
<apeiros_> and I assume you see why that's fugly
<reactormonk> Yup. But isn't it {"a" => 3} === "a" in the end?
<apeiros_> 00:14 apeiros_: reactormonk: case expression when condition1, … --> (condition1) === (expression) || (condition…) === (expression)
<apeiros_> so no, it's key === hash
<reactormonk> it's case key when hash ...
<apeiros_> aha, maybe you should have been more clear :-p
<apeiros_> yes, then it's hash === key
DrShoggoth has quit [Quit: Leaving]
reinaldob has joined #ruby
<reactormonk> doesn't seem to have inclusion sematnics
<diegoviola> so this company is asking for iOS SDK experience and also Rails experience, is it possible to virtualize that crap (iOS) or you *need* to have an iPhone for that? (I'm not interested)
<apeiros_> reactormonk: correct. Hash#=== is an alias for Hash#==
<reactormonk> :-(
kielybunny is now known as kiely
momomomomo_ has joined #ruby
<apeiros_> bad because inefficient: case key; when *hash.keys
<reactormonk> {"a" => 3}.method(:has_key?) === "a" <- also false O.o
<diegoviola> I wonder if I can virtualize the apple stuff and still develop with Rails for that company
kiely is now known as kielybunny
aamador has joined #ruby
lanemeyer has quit [Ping timeout: 244 seconds]
dru has quit [Ping timeout: 246 seconds]
wallerdev has joined #ruby
baweaver has joined #ruby
<apeiros_> diegoviola: an emulator only gets you so far
AlexRussia has joined #ruby
<diegoviola> I run Linux on my machines
<apeiros_> but yes, you can create a hackintosh and run xcode on it. xcode has an ios emulator
<mozzarella> you'll need a mac
<reactormonk> diegoviola, you wanna to stuff for apple? Gotta use apple
<mozzarella> sorry ¯\_(ツ)_/¯
momomomomo has quit [Ping timeout: 264 seconds]
momomomomo_ is now known as momomomomo
<reactormonk> It's a walled garden after all
<diegoviola> apeiros_: well, if they send me an iPhone my way I wouldn't say no, but I wouldn't put my own money on apple
<apeiros_> diegoviola: negotiate
<apeiros_> IMO reasonable
<diegoviola> right
<_blizzy_> anyone know how I would do this? I'm trying to generate n numbers that total == 100
<diegoviola> I have a Nexus but that's it
<apeiros_> I wouldn't use my private iphone either to develop for my company
fgo has joined #ruby
<apeiros_> or in general: I expect all materials required to work for a company to be provided by said company.
jonr22 has joined #ruby
<diegoviola> right
<apeiros_> well, actually - I'd also agree if payment just was a couple K higher
<reactormonk> {"a" => 3}.method(:has_key?).call("a") is true but {"a" => 3}.method(:has_key?) === "a"
<reactormonk> ... is false.
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<reactormonk> whut?
<apeiros_> because Method#===
<apeiros_> >> {"a" => 3}.method(:has_key?).to_proc === "a"
<eval-in> apeiros_ => true (https://eval.in/293927)
<apeiros_> you're going way out of your way to avoid if/elsif. I'll repeat: case/when -> wrong tool :)
baweaver has quit [Remote host closed the connection]
<apeiros_> there might be even nicer constructs. but I don't know your use-case/code.
<apeiros_> care to gist?
<diegoviola> thanks
fgo has quit [Ping timeout: 252 seconds]
AlexRussia has quit [Ping timeout: 245 seconds]
jonr22 has quit [Ping timeout: 256 seconds]
patrick99e99 has joined #ruby
<patrick99e99> hello ruby friends!
charliesome has joined #ruby
<reactormonk> apeiros_, probably go for if/elsif.
<patrick99e99> I was wondering.. Is there any simple way to incorporate something like method missing fo ra module?
<patrick99e99> *for a module..
<apeiros_> patrick99e99: def method_missing. done ;-)
martianixor has joined #ruby
<patrick99e99> hmm.. that was not working for me apeiros_ let me try again
<apeiros_> patrick99e99: make a minimal example and gist it?
<patrick99e99> oh I was miossing self.method_missing
<patrick99e99> since it was a module
mi12 has joined #ruby
Guest64 has joined #ruby
<apeiros_> patrick99e99: that's not the reason
<apeiros_> the reason is that def method_missing is for missing *instance methods*
<apeiros_> but you wanted it for class methods (which you didn't say)
<apeiros_> it's no different with classes.
n80 has quit [Quit: n80]
Guest64 is now known as Guest65
<reactormonk> weaksauce, are you using a similar mail system?
<_blizzy_> anyone know how I would achieve this?
amacou has joined #ruby
<_blizzy_> I'm trying to generate n numbers that total == 100
<reactormonk> _blizzy_, generate with combinations, filter.
<_blizzy_> so, if I said 3, it would return [33,33,34]
jottr_ has joined #ruby
<reactormonk> ... with select
<_blizzy_> oh ok, hmm.
<jhass> _blizzy_: no further constraints?
ponga has joined #ruby
<_blizzy_> jhass, no
<_blizzy_> as long as they total to 100
<weaksauce> reactormonk nope. i used it for a referral system so something like imgur's randoms but for deals
<_blizzy_> well, they have to be positive
<apeiros_> 100.quo(n)
enebo has quit [Quit: enebo]
<reactormonk> weaksauce, ah nice
<apeiros_> [100.quo(n)]*n actually
<reactormonk> apeiros_, quo?
Apocalypse has quit [Quit: Input/Output Error]
frem has quit [Remote host closed the connection]
<apeiros_> reactormonk: returns a rational
reinaldob has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
<reactormonk> apeiros_, ah. nice idea.
<jhass> if you need integers 100/n and +1 the last one if uneven
<_blizzy_> hmm, I should of said that they should be random
roshanavand has quit [Ping timeout: 252 seconds]
<_blizzy_> and not the same
<_blizzy_> weird how easy that is, apeiros_, thxs
Cadillactica has joined #ruby
aerth is now known as aerth_
<apeiros_> _blizzy_: that's the part about "any other constraints?"
<_blizzy_> apeiros_, yeah, sorry. c:
<apeiros_> but tbh, I'm surprised you even respond to follow up questions. that's new.
<_blizzy_> >.>
n80 has joined #ruby
<_blizzy_> as Frozen says
<_blizzy_> "the past is in the past"
<apeiros_> also I remember having told you how to do this like weeks ago.
hiyosi has joined #ruby
<_blizzy_> I don't remember asking this question
<_blizzy_> this is an entirely new question.
<Cadillactica> trying to get a firmer grasp of bitwise operations. can someone explain how this: “Given an array of numbers, except for one number all the others, occur twice. Give an algorithm to find that number which occurs only once in the array” is solved by this: http://stackoverflow.com/a/1090013/4064439
<reactormonk> apeiros_, time for some IRC logs?
<apeiros_> I doubt somebody else asked precisely the same question
dru has joined #ruby
<Eiam> _blizzy_: the channel is logged fyi =p
ponga has quit [Ping timeout: 244 seconds]
Sawbones has quit []
<_blizzy_> Eiam, thanks.
<_blizzy_> then go ahead, I haven't asked this before.
jottr_ has quit [Ping timeout: 245 seconds]
<_blizzy_> other than today.
<reactormonk> I have currently accumulated 230M of IRC logs.
Nick_ZWG has left #ruby ["Textual IRC Client: www.textualapp.com"]
<jhass> _blizzy_: for randomness just limit your random numbers to 100/(n-1) and let the last one fill the gap
roshanavand has joined #ruby
triple_b has joined #ruby
<apeiros_> jhass: you can have a higher limit if you know how to use gauss :)
<_blizzy_> I guess this is why I would need to take Computer Science.
<jhass> apeiros_: that sounds like math. I'm out
<apeiros_> I wonder though whether a weighted generator would be nice. but depends a lot on the expected distribution
plutonic has joined #ruby
ghr has joined #ruby
zotherstupidguy has joined #ruby
<apeiros_> _blizzy_: doing some code quizz/puzzle then?
<jhass> or big data approach: generate all possible solutions and pick one at random
<_blizzy_> apeiros_, no. c:
<_blizzy_> it's for a bot I'm working on.
<apeiros_> jhass: I think that's the solution reactormonk suggested earlier :)
Apocalypse has joined #ruby
Apocalypse has quit [Changing host]
Apocalypse has joined #ruby
<reactormonk> apeiros_, yup ^^
<apeiros_> quickly becomes hugely inefficient :)
<_blizzy_> apeiros_, me?
<jhass> oh, didn't notice, sorry
<_blizzy_> oh nvm.
<_blizzy_> sorry, wrong peson.
<jhass> apeiros_: isn't that the point of big data?
<_blizzy_> *person.
<apeiros_> jhass: not really, no
<jhass> throw tons of computing power at it so you don't need to search efficient solutions anymore?
<apeiros_> the point of big data is finding meaningful information within a large set of data you collected
blackmesa has joined #ruby
<apeiros_> (or bought)
<apeiros_> jhass: that's called brute forcing
<jhass> yeah that's the proper term
<jhass> buzz words were new terms for their proper equivalents, no?
<apeiros_> hm, no idea whether "another term exists already" is a requirement for something to be a buzz word
ghr has quit [Ping timeout: 256 seconds]
<jhass> there's probably more than one way for one to be born
<kaleido> big data doesnt necessarily need tons of computing power tho
<kaleido> its generally run on commodity hardware
<jhass> neither does the cloud
<kaleido> well, unless you meant all of that commodity hardware
commmmodo has joined #ruby
<apeiros_> kaleido: IMO if it's run on commodity hardware, it's probably not big data.
<kaleido> at this point all i can think is, "i love cascade hops"
momomomomo_ has joined #ruby
<jhass> it's too easy to troll with buzz words :P
momomomomo has quit [Ping timeout: 252 seconds]
momomomomo_ is now known as momomomomo
<kaleido> apeiros_, eh, facebook published their specs a while back. id ay they have a lot of data
shellfu is now known as shellfu_afk
<apeiros_> then again - 10y ago, crunching through 100GB of data would probably qualify as "big data". whereas today it's probably more in the 100GB to Petabyte range.
aamador has quit [Ping timeout: 252 seconds]
reinaldob has quit [Remote host closed the connection]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros_> kaleido: ok, I'll rephrase: if you run it on massive amounts of commodity hardware, it might still be big data.
<havenwood> I vote `group_by(&:itself).map(&:last).find(&:one?).first` and just throw a bunch of hardware at it :P
<apeiros_> given that many problems can be processed map-reduce style or in other ways be parallelized.
Arnie25 has joined #ruby
Dolphi has joined #ruby
last_staff has quit [Quit: last_staff]
teddyp1cker has joined #ruby
deol has joined #ruby
<apeiros_> "more in the 100GB to Petabyte" - should have been TB, not GB
<havenwood> JRuby has it nicely purring with 4 cores, now I just need more cores.
<_blizzy_> you can never have enough cores.
WhereIsMySpoon_ is now known as WhereIsMySpoon
<Arnie25> hey guys, does anybody have any experience with google_drive gem? it got a tad confusing. It used to be straight foward, I just logged in with user/pass and was able to write to a spreadsheet. Now I need to open a URL in order to retrieve an authorization code? then I get auth_token which I need to re-new every hour or so? Is there an easier way?
<_blizzy_> also, thanks for the help everyone.
WhereIsMySpoon has quit [Changing host]
WhereIsMySpoon has joined #ruby
<havenwood> 760%, heh HyperThreading
<havenwood> Go JRuby!
JoshGlzBrk has joined #ruby
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dolphi has quit [Client Quit]
l3ck has quit [Quit: Bye!]
zotherstupidguy has quit [Remote host closed the connection]
zotherstupidguy has joined #ruby
<apeiros_> ~23ms for n=3 and m=100 here with the naive solution. so if it's not performance critical and numbers are small, it's probably viable.
neonalpine has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
teddyp1cker has quit [Ping timeout: 252 seconds]