apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.1; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
c355E3B has quit [Quit: Leaving]
ralku has joined #ruby
charliesome has joined #ruby
jonr22 has quit [Quit: WeeChat 1.1.1]
lele has quit [Ping timeout: 272 seconds]
kblake_ has quit [Remote host closed the connection]
MasterPiece has joined #ruby
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle_ has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 246 seconds]
avahey has joined #ruby
iamninja has quit [Ping timeout: 252 seconds]
mitchellhenke has joined #ruby
tgunr has joined #ruby
x1337807x has joined #ruby
Sawbones_ has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
mistermocha has quit [Ping timeout: 256 seconds]
Stalkr has quit [Quit: Leaving...]
MrSamuel has joined #ruby
<graft> argh... stupid Symbol#dup
<graft> >> :symbol.respond_to? :dup
<eval-in_> graft => true (https://eval.in/307187)
<graft> >> :symbol.dup
<eval-in_> graft => can't dup Symbol (TypeError) ... (https://eval.in/307188)
<graft> fuck youuuuuu
<wallerdev> lol
macoecho has joined #ruby
mac_ has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
<jhass> hehe
<jhass> >> :symbol.clone
<eval-in_> jhass => can't clone Symbol (TypeError) ... (https://eval.in/307192)
lanemeyer has joined #ruby
<jhass> :o
<jhass> yay, they made sure to use a different error message \o/
MrSamuel has quit [Client Quit]
<wallerdev> >> Symbol.all_symbols
<eval-in_> wallerdev => [:!, :"\"", :"#", :"$", :%, :&, :"'", :"(", :")", :*, :+, :",", :-, :".", :/, :":", :";", :<, :"=", :>, :"?", :"@", :"[", :"\\", :"]", :^, :`, :"{", :|, :"}", :~, :"..", :"...", :**, :+@, :-@, :<=>, :> ... (https://eval.in/307193)
iamninja has joined #ruby
Megtastique has quit []
delianides has joined #ruby
graft has quit [Ping timeout: 250 seconds]
delianides has quit [Read error: Connection reset by peer]
beneggett has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MrSamuel has joined #ruby
kyrylo_ has joined #ruby
kyrylo has quit [Ping timeout: 252 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ellis has joined #ruby
<Ellis> i’ve been learning about ruby and programming for about 4 months, and i was wondering why don’t people build android apps with ruby? is it because android doesn’t have an interpreter on the phone?
kyrylo_ is now known as kyrylo
Filete has joined #ruby
<jhass> pretty much, there is the ruboto project which provides a ruby runtime for android
tkuchiki has joined #ruby
FrenchieUser12 has joined #ruby
FrenchieUser12 has left #ruby [#ruby]
<jhass> and I heard rubymotion added android support too, though I never fact checked that
baweaver has quit [Remote host closed the connection]
<Ellis> jhass: thank you. ill check those two things out
sevvie has quit [Ping timeout: 244 seconds]
rajeshchawla has joined #ruby
Hobogrammer has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
Lewix has quit [Remote host closed the connection]
Ellis has quit [Quit: Ellis]
pdoherty has quit [Quit: Leaving]
Lewix has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jerematic has quit [Remote host closed the connection]
iliketur_ has quit [Ping timeout: 248 seconds]
xenokiller has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
michelperez has joined #ruby
robustus has joined #ruby
michelperez has quit [Client Quit]
n_blownapart has quit []
michelperez has joined #ruby
jerematic has joined #ruby
ducklobster has quit [Ping timeout: 244 seconds]
Cache_Money has quit [Quit: Cache_Money]
baweaver has joined #ruby
symbol__ has joined #ruby
michelperez has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 250 seconds]
Megtastique has joined #ruby
baweaver has quit [Remote host closed the connection]
sevenseacat has joined #ruby
delianides has joined #ruby
oo_ has joined #ruby
pietr0 has quit [Quit: pietr0]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlexRussia has quit [Ping timeout: 250 seconds]
x1337807x has joined #ruby
startupality has joined #ruby
paulcsmith_ has joined #ruby
swgillespie has joined #ruby
krisquigley has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
yh has quit [Ping timeout: 252 seconds]
xenokiller has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrisja has quit [Quit: leaving]
paulcsmith_ has quit [Ping timeout: 265 seconds]
meschiv2 has joined #ruby
freerobby has quit [Quit: Leaving.]
duncannz has joined #ruby
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krisquigley has quit [Ping timeout: 250 seconds]
startupality has quit [Quit: startupality]
JoshGlzBrk has joined #ruby
sevvie has joined #ruby
JoshGlzBrk has quit [Client Quit]
kyrylo_ has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
noname1 has quit [Ping timeout: 264 seconds]
arescorpio has quit [Read error: Connection reset by peer]
meschi has quit [Ping timeout: 265 seconds]
kyrylo has quit [Ping timeout: 264 seconds]
bigkevmc_ has joined #ruby
Soda has joined #ruby
davedev2_ has joined #ruby
avril14th has joined #ruby
bigkevmcd has quit [Ping timeout: 250 seconds]
Sembei has joined #ruby
davedev24_ has quit [Ping timeout: 265 seconds]
iasoon has quit [Ping timeout: 252 seconds]
razieliyo has quit [Remote host closed the connection]
startupality has joined #ruby
ralku is now known as ralku[away]
gr33n7007h has quit [Quit: WeeChat 1.1.1]
arrubin has joined #ruby
ralku[away] is now known as ralku
patrick99e99 has quit [Quit: leaving]
MatthewsFace has joined #ruby
wildroman2 has quit [Ping timeout: 255 seconds]
patrick99e99 has joined #ruby
robertt_dex has joined #ruby
hpoydar has quit [Remote host closed the connection]
dorei has quit []
gr33n7007h has joined #ruby
nahtnam has joined #ruby
claptor has joined #ruby
prasselpikachu has quit [Ping timeout: 265 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
prasselpikachu has joined #ruby
djbkd has joined #ruby
paulcsmith_ has joined #ruby
nii2361 has joined #ruby
kblake has joined #ruby
icebourg has joined #ruby
Rollabunna has quit [Remote host closed the connection]
icebourg has quit [Client Quit]
rayleigh has joined #ruby
Rollabunna has joined #ruby
jeramy_s has joined #ruby
oo_ has quit [Remote host closed the connection]
MrSamuel has quit [Ping timeout: 256 seconds]
kyrylo__ has joined #ruby
iteratorP has joined #ruby
bricker has quit [Ping timeout: 256 seconds]
kyrylo_ has quit [Ping timeout: 264 seconds]
startupality has quit [Quit: startupality]
kblake has quit [Ping timeout: 245 seconds]
sevvie has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
sgambino has joined #ruby
MrSamuel has joined #ruby
ralku is now known as ralku[away]
jenrzzz has joined #ruby
AlexRussia has joined #ruby
amclain has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
rayleigh has quit []
reinaldob has joined #ruby
freerobby has joined #ruby
ralku[away] has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has joined #ruby
iceden has quit [Ping timeout: 250 seconds]
basex has joined #ruby
arescorpio has joined #ruby
nicolastarzia has quit [Remote host closed the connection]
ujjain has quit [Quit: Textual IRC Client: www.textualapp.com]
davedev2_ has quit [Read error: Connection reset by peer]
patrick99e99 has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davedev24_ has joined #ruby
robertt_dex has quit [Ping timeout: 248 seconds]
ValicekB has quit [Ping timeout: 250 seconds]
sevvie has joined #ruby
rayleigh415 has joined #ruby
rayleigh415 has quit []
paulcsmith_ has quit [Quit: Be back later ...]
patrick99e99 has joined #ruby
rayleigh415 has joined #ruby
rayleigh415 has quit [Client Quit]
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
d10n-work has quit [Quit: Connection closed for inactivity]
rayleigh415 has joined #ruby
droidburgundy has joined #ruby
mwmnj has joined #ruby
towski_ has quit [Remote host closed the connection]
Megtastique has quit []
droidburgundy has quit [Client Quit]
ducklobster has joined #ruby
roolo has quit [Remote host closed the connection]
iceden has joined #ruby
babykosh has joined #ruby
Sirupsen has joined #ruby
Sirupsen has quit [Client Quit]
noname1 has joined #ruby
wallerdev has quit [Quit: wallerdev]
kyrylo has joined #ruby
colorados has quit [Ping timeout: 248 seconds]
kyrylo__ has quit [Ping timeout: 250 seconds]
iteratorP has quit [Quit: Leaving...]
rfj has joined #ruby
iteratorP has joined #ruby
mjuszczak has quit []
charliesome has quit [Quit: zzz]
MrSamuel has quit [Quit: MrSamuel]
musashi1 has quit [Ping timeout: 255 seconds]
jottr_ has joined #ruby
Sawbones_ has quit [Ping timeout: 256 seconds]
zzing has joined #ruby
robertt_dex has joined #ruby
jottr has joined #ruby
swgillespie has joined #ruby
zarubin has joined #ruby
cefkamcau has joined #ruby
Channel6 has quit [Quit: Leaving]
jottr_ has quit [Ping timeout: 256 seconds]
xenokiller has quit [Ping timeout: 272 seconds]
nfk|laptop has quit [Quit: yawn]
nfk has quit [Remote host closed the connection]
eshiffob has quit [Ping timeout: 256 seconds]
zarubin has quit [Ping timeout: 250 seconds]
triple_b has joined #ruby
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
jottr has quit [Read error: Connection reset by peer]
lessless has joined #ruby
Yzguy has joined #ruby
OtterCoder has quit [Ping timeout: 272 seconds]
hpoydar has joined #ruby
nicolastarzia has joined #ruby
Lewix has quit [Remote host closed the connection]
jottr has joined #ruby
oo_ has joined #ruby
iamjarvo has joined #ruby
longfeet has joined #ruby
jottr_ has joined #ruby
shadoi1 has joined #ruby
hpoydar has quit [Ping timeout: 250 seconds]
<a5i> Does anyone know where a good ruby sudoku solver is?
jottr has quit [Ping timeout: 252 seconds]
<pipework> a5i: Ask whomever gave you the homework assignment. :D
jottr_ is now known as jottr
<a5i> Not homework lol, just trying to create a fair benchmark
bruno- has joined #ruby
<a5i> I need a Ruby sudoku solver but im not benchmarking Ruby
duncannz has quit [Remote host closed the connection]
Sirupsen has joined #ruby
<longfeet> i actually wrote a sudoku solver 2 years ago
krz has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<longfeet> ruby gem that interfaces with my c++ library
<jokester> that may be one in the begining of Programing Ruby the book?
<sevenseacat> i should learn how to write one of those
bruno- has quit [Ping timeout: 256 seconds]
oo_ has quit [Remote host closed the connection]
<longfeet> most of the links are dead, but feel free to use the code
tus has quit []
djbkd_ has joined #ruby
jack_rabbit has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
Hijiri has joined #ruby
kreeves has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework> sadoku.
wallerdev has joined #ruby
<sevenseacat> more like sudolol
oo_ has joined #ruby
swgillespie has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
djbkd has quit [Quit: My people need me...]
<pipework> sevenseacat: jimweirich doe
<sevenseacat> :(
<jokester> sadostiku
djbkd_ has quit [Ping timeout: 252 seconds]
jaequery has joined #ruby
jottr_ has joined #ruby
_honning_ has joined #ruby
lidaaa has joined #ruby
ponga has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 264 seconds]
kyrylo_ has joined #ruby
kyrylo has quit [Ping timeout: 265 seconds]
ponga has joined #ruby
zacts has joined #ruby
Stichoza has quit [Quit: Be back later ...]
jottr_ has quit [Ping timeout: 252 seconds]
Renich_ has joined #ruby
charliesome has joined #ruby
jottr_ has joined #ruby
CorySimmons has joined #ruby
nb_bez___ has quit [Quit: Connection closed for inactivity]
gluten_hell_ has joined #ruby
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
Renich has quit [Ping timeout: 272 seconds]
jonr22 has joined #ruby
krisquigley has joined #ruby
basex has quit [Remote host closed the connection]
<shevy> sadomaso
gluten_hell_ has quit [Ping timeout: 250 seconds]
jottr_ has quit [Ping timeout: 248 seconds]
wookiehangover has quit [Ping timeout: 256 seconds]
Dude007 has quit [Ping timeout: 250 seconds]
krisquigley has quit [Ping timeout: 272 seconds]
graydot has quit [Quit: graydot]
delianides has quit [Remote host closed the connection]
Dude007 has joined #ruby
matt1249 has joined #ruby
macoecho has quit [Quit: This computer has gone to sleep]
mac_ has quit [Quit: This computer has gone to sleep]
mac_ has joined #ruby
macoecho has joined #ruby
wookiehangover has joined #ruby
Spleeze has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
livathinos has joined #ruby
matt1249 has quit [Client Quit]
riotjones has joined #ruby
symbol__ has quit [Ping timeout: 248 seconds]
reinaldob has quit [Remote host closed the connection]
Channel6 has joined #ruby
lidaaa has quit [Quit: Leaving]
DerisiveLogic has joined #ruby
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Spleeze has joined #ruby
arrubin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
t_p has joined #ruby
mistermocha has quit [Ping timeout: 255 seconds]
AlexRussia has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
rajeshchawla has joined #ruby
adriancb has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 256 seconds]
kyrylo_ is now known as kyrylo
paulcsmith_ has joined #ruby
livathinos has quit [Remote host closed the connection]
mitchellhenke has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
gr33n7007h has quit [Ping timeout: 248 seconds]
mitchellhenke has quit [Client Quit]
sevvie has joined #ruby
kyrylo_ has joined #ruby
sparch has quit [Ping timeout: 256 seconds]
kyrylo has quit [Ping timeout: 250 seconds]
jeramy_s has joined #ruby
jeramy_s has quit [Client Quit]
charliesome has quit [Quit: zzz]
_honning_ has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
_honning_ has joined #ruby
Soda has quit [Remote host closed the connection]
shadoi1 has quit [Quit: Leaving.]
kyrylo_ is now known as kyrylo
jerematic has quit [Remote host closed the connection]
bim has quit [Remote host closed the connection]
paulcsmith_ has quit [Quit: Be back later ...]
braincra- has quit [Quit: bye bye]
towski_ has joined #ruby
mistermocha has joined #ruby
mac_ has quit [Quit: This computer has gone to sleep]
macoecho has quit [Quit: This computer has gone to sleep]
djbkd has joined #ruby
RegulationD has joined #ruby
_maes_ has joined #ruby
robertt_dex has quit [Ping timeout: 246 seconds]
braincrash has joined #ruby
beneggett has joined #ruby
mistermocha has quit [Ping timeout: 256 seconds]
jerematic has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claptor has quit [Ping timeout: 255 seconds]
RegulationD has quit [Ping timeout: 250 seconds]
sevvie has quit [Ping timeout: 252 seconds]
Affix has quit [Excess Flood]
yfeldblum has quit [Remote host closed the connection]
laudo has joined #ruby
<laudo> is there a limitation on how man elsif I can use. For example I want to do if elsif elsif else. Is that legit?
yfeldblum has joined #ruby
<pipework> laudo: consider case
<pipework> Also, consider trying it next time before asking. :D
<laudo> piperwork: I will thanks
<shevy> laudo I don't think there is any limitation
<shevy> but there are limitations to the number of arguments for a method I think
dustpan has joined #ruby
jerematic has quit [Ping timeout: 256 seconds]
_honning_ has quit [Ping timeout: 256 seconds]
sevvie has joined #ruby
gr33n7007h has joined #ruby
lemur has joined #ruby
Affix has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
kwatz has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
niftylettuce has quit [Quit: Connection closed for inactivity]
Affix is now known as Guest90919
kwatz is now known as destructure
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
tubuliferous has quit [Quit: ZNC - http://znc.in]
nicolastarzia has quit [Remote host closed the connection]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
nicolastarzia has joined #ruby
nicolastarzia has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
musashi1 has joined #ruby
krz has quit [Ping timeout: 250 seconds]
duncannz has quit [Ping timeout: 250 seconds]
psy_ has quit [Ping timeout: 250 seconds]
towski_ has quit [Remote host closed the connection]
davispuh has quit [Remote host closed the connection]
average has joined #ruby
average has left #ruby [#ruby]
rfj has quit [Quit: Leaving]
MasterPiece has quit [Remote host closed the connection]
lessless has quit [Max SendQ exceeded]
ponga has quit [Quit: Leaving...]
Deele has joined #ruby
rkazak_ has joined #ruby
hpoydar has joined #ruby
musashi1 has quit [Ping timeout: 252 seconds]
ponga has joined #ruby
adriancb has joined #ruby
zacts has quit [Read error: Connection reset by peer]
musashi1 has joined #ruby
duncannz has joined #ruby
Mekkis has quit [Ping timeout: 246 seconds]
A205B064 has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
musashi1 has quit [Read error: Connection reset by peer]
hpoydar has quit [Ping timeout: 272 seconds]
kreeves has quit [Ping timeout: 272 seconds]
iamtheK has joined #ruby
Mekkis has joined #ruby
DeathCode has joined #ruby
bruno- has joined #ruby
mistermocha has joined #ruby
bim has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 252 seconds]
bim has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 256 seconds]
noname1 has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Remote host closed the connection]
iamtheK has left #ruby ["toober"]
bim has joined #ruby
musashi1 has joined #ruby
rager is now known as woop
icebourg has joined #ruby
yfeldblum has joined #ruby
laudo has quit [Ping timeout: 246 seconds]
shadoi1 has joined #ruby
jerematic has joined #ruby
ascarter has joined #ruby
<DeathCode> hello all
<DeathCode> :)
<DeathCode> hows it going
arescorpio has quit [Excess Flood]
<sevenseacat> good afternoon DeathCode
djbkd has quit [Remote host closed the connection]
noname1 has joined #ruby
Yzguy has quit [Quit: I'm sleeping, go away.]
<DeathCode> good evening
<DeathCode> its night time here
rajeshchawla has quit [Remote host closed the connection]
<sevenseacat> yes, i know.
martinbmadsen has joined #ruby
jerematic has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
markholmes has joined #ruby
tcrypt has quit [Ping timeout: 256 seconds]
<DeathCode> how do you know?
<DeathCode> you dont know where i live
<sevenseacat> because you said yesterday you were in canada.
<DeathCode> oh
<DeathCode> i forgot i said that
<pipework> DeathCode: Your opsec is weak.
<DeathCode> can u just doxx me?
krisquigley has joined #ruby
centrx has quit [Ping timeout: 250 seconds]
zzing has quit [Ping timeout: 244 seconds]
zzing has joined #ruby
Zimsky_ has quit [Ping timeout: 265 seconds]
sgambino has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 250 seconds]
sparch has joined #ruby
rayleigh415 has quit [Remote host closed the connection]
jaequery has joined #ruby
amystephen has quit [Quit: amystephen]
lele has joined #ruby
rayleigh415 has joined #ruby
sparch has quit [Client Quit]
tmoor has quit [Quit: Leaving]
Volsus has joined #ruby
Mia has quit [Read error: Connection reset by peer]
leafybasil has quit [Remote host closed the connection]
noname1 has quit [Ping timeout: 252 seconds]
musashi1 has quit [Ping timeout: 250 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rajeshchawla has joined #ruby
oo_ has joined #ruby
beneggett has joined #ruby
Zimsky_ has joined #ruby
centrx has joined #ruby
icebourg has quit []
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
adriancb_ has joined #ruby
Guest62848 has quit [Ping timeout: 252 seconds]
agrinb has quit [Ping timeout: 256 seconds]
kyrylo has quit [Ping timeout: 255 seconds]
adriancb has quit [Ping timeout: 265 seconds]
digitalextremist has quit [Ping timeout: 252 seconds]
mleung has joined #ruby
Guest744 has joined #ruby
agrinb has joined #ruby
digitalextremist has joined #ruby
Mekkis has quit [Ping timeout: 276 seconds]
codeFiend has quit [Quit: codeFiend]
hgl has quit [Read error: Connection reset by peer]
dh64 has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CorySimmons has quit [Quit: Bye!]
kp666 has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hgl has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
zacts has joined #ruby
RegulationD has joined #ruby
Mekkis has joined #ruby
astrobun_ has joined #ruby
towski_ has joined #ruby
Renich_ has quit [Quit: leaving]
mleung has quit [Quit: mleung]
RegulationD has quit [Ping timeout: 252 seconds]
Channel6 has quit [Quit: Leaving]
nii2361 has quit [Ping timeout: 265 seconds]
x1337807x has quit [Read error: Connection reset by peer]
Mekkis has quit [Ping timeout: 252 seconds]
beneggett has joined #ruby
x1337807x has joined #ruby
Morkel has joined #ruby
rajeshchawla has quit []
markholm_ has joined #ruby
hgl has quit [Ping timeout: 264 seconds]
Mekkis has joined #ruby
longfeet has quit [Ping timeout: 244 seconds]
markholmes has quit [Ping timeout: 265 seconds]
hgl has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nii2361 has joined #ruby
rocknrollmarc has quit [Ping timeout: 250 seconds]
shadoi1 has quit [Quit: Leaving.]
agrinb has joined #ruby
noname1 has joined #ruby
jottr_ has quit [Ping timeout: 250 seconds]
beneggett has joined #ruby
amclain has quit [Read error: Connection reset by peer]
spider-mario has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
amclain has joined #ruby
beneggett has quit [Client Quit]
Zimsky_ has quit [Ping timeout: 252 seconds]
agrinb has quit [Ping timeout: 265 seconds]
Zimsky_ has joined #ruby
bluOxigen has joined #ruby
nii2361 has quit [Read error: Connection reset by peer]
krz has joined #ruby
astrobun_ has joined #ruby
wjimenez527111 has joined #ruby
beneggett has joined #ruby
codeFiend has joined #ruby
tlarevo has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
beneggett has quit [Client Quit]
psy_ has joined #ruby
tkuchiki_ has joined #ruby
Dragonai has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
Mekkis has quit [Ping timeout: 246 seconds]
Mekkis has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
tagrudev has joined #ruby
jokester has quit [Quit: yamcha]
jokester has joined #ruby
tlarevo has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
tlarevo has joined #ruby
leafybasil has joined #ruby
selu has joined #ruby
checkit has quit [Ping timeout: 252 seconds]
sandelius has joined #ruby
oo_ has quit [Remote host closed the connection]
Ove_ has joined #ruby
wjimenez527111 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
leafybasil has quit [Ping timeout: 244 seconds]
arup_r has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
dkarter has joined #ruby
CorpusCallosum has quit [Remote host closed the connection]
sevenseacat has quit [Quit: Textual IRC Client: www.textualapp.com]
sevvie has joined #ruby
charliesome has quit [Quit: zzz]
sevenseacat has joined #ruby
AlexRussia has quit [Ping timeout: 272 seconds]
zarubin has joined #ruby
markholm_ is now known as markholmes
tkuchiki_ has quit [Ping timeout: 272 seconds]
thumpba has joined #ruby
oo_ has joined #ruby
A205B064 has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jmhmccr has joined #ruby
<certainty> moin #ruby
<havenwood> certainty: g'morn
zarubin has quit [Ping timeout: 252 seconds]
Volsus has quit [Ping timeout: 265 seconds]
elaptics is now known as elaptics_away
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rkazak_> moring, evening….
zacts has quit [Remote host closed the connection]
lele is now known as Guest24
<certainty> o/ early birds
tobago has joined #ruby
<sevenseacat> guten tag
RegulationD has joined #ruby
* certainty didn't know the cat speaks german
<jokester> guten morgen
Pharaoh2 has joined #ruby
* jokester neither know
jerematic has joined #ruby
<certainty> oh nice you can store credentials for gem sources in the bundler config.
bigmac has quit [Ping timeout: 252 seconds]
<sevenseacat> um, very very limited german >_>
bigmac has joined #ruby
<certainty> good enough for a decent greeting
paulcsmith_ has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
<sevenseacat> ich spreche Deutsch.... nicht gut
Pupeno has joined #ruby
* sevenseacat makes things up
last_staff has joined #ruby
<certainty> almost correct
<jokester> lol
<certainty> that's what i do in english all the time (making things up). I've come a long way with that xD
jerematic has quit [Ping timeout: 252 seconds]
<sevenseacat> wouldnt have known you werent a native speaker
<certainty> me neither
dkarter has quit []
<certainty> now that i have read a bit of confident ruby i'm slightly disappointed. Not that the content isn't relevant but it's not much new. Having heared what others said about it my expectations were quite a bit higher
paulcsmith_ has quit [Ping timeout: 252 seconds]
<certainty> maybe it will change in the next chapters
jeromelanteri has joined #ruby
<sevenseacat> its not revolutionary content - all of the best books aren't completely new - but they package solid concepts in an easy-to-understand format
krisquigley has joined #ruby
dustpan has quit [Ping timeout: 244 seconds]
<sevenseacat> same with sandi metz's book
arup_r_ has joined #ruby
<sevenseacat> (IMO)
BTRE has quit [Read error: Connection reset by peer]
<certainty> yeah seems like it, though i haven't read any books of her. I love her talks though and if the book(s) is/are like these i can imagine what they are like
aganov has joined #ruby
jottr_ has joined #ruby
BTRE has joined #ruby
arup_r has quit [Ping timeout: 246 seconds]
krisquigley has quit [Ping timeout: 245 seconds]
AlexRussia has joined #ruby
bal has joined #ruby
beneggett has joined #ruby
jottr_ has quit [Ping timeout: 255 seconds]
codecop has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agrinb has joined #ruby
tcrypt has joined #ruby
sevvie has quit [Ping timeout: 265 seconds]
Guest90919 has quit [Max SendQ exceeded]
codecop has quit [Remote host closed the connection]
rkazak_ has left #ruby [#ruby]
codecop has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
Dude007 has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
timonv has joined #ruby
sevvie has joined #ruby
amclain has quit [Quit: Leaving]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bigkevmc_ is now known as bigkevmcd
nahtnam has quit [Quit: Connection closed for inactivity]
bartj3 has quit [Quit: bye!]
duncannz has quit [Read error: Connection reset by peer]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duncannz has joined #ruby
<flughafen> morgen certainty sevenseacat shevy arup_r_
<sevenseacat> hallo
<arup_r_> flughafen: o_\
<certainty> moin flughafen
<flughafen> w000t w00t
MatthewsFace has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
zorak8 has quit [Ping timeout: 272 seconds]
chrishough has joined #ruby
wildroman2 has joined #ruby
andikr has joined #ruby
martinbmadsen_ has joined #ruby
DEA7TH has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
icebourg has joined #ruby
lolmaus has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ahmetkapikiran has joined #ruby
babykosh has quit [Quit: babykosh]
mistermocha has joined #ruby
rayleigh415 has quit [Remote host closed the connection]
Affix has joined #ruby
Affix is now known as Guest3583
spicerack has joined #ruby
wildroman2 has quit [Ping timeout: 248 seconds]
wildroman3 has joined #ruby
martinbmadsen has quit [Quit: leaving]
towski_ has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 265 seconds]
<certainty> hmm parslet looks good. I like it
<tobiasvl> parslet is nice
djbkd has quit [Remote host closed the connection]
Volsus has joined #ruby
Dreamer3 has quit [Ping timeout: 245 seconds]
codeFiend has quit [Quit: codeFiend]
DavidDudson has joined #ruby
colorados has joined #ruby
craigp has joined #ruby
nii2361 has joined #ruby
relix has joined #ruby
blankspace has joined #ruby
oo_ has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
craigp has quit []
Feyn has joined #ruby
dopie has quit [Ping timeout: 246 seconds]
rocknrollmarc has joined #ruby
rayleigh415 has joined #ruby
Dreamer3 has joined #ruby
sevvie has quit [Ping timeout: 252 seconds]
benlieb_ has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rocknrollmarc has quit [Max SendQ exceeded]
icebourg has quit []
AlphaTech has quit [Quit: Connection closed for inactivity]
hmsimha has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
rocknrollmarc has joined #ruby
Pharaoh2_ has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
Pharaoh2 has quit [Ping timeout: 256 seconds]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
lrocknrolmarc has joined #ruby
<flughafen> certainty: geil wetter gestern!
edwinvdgraaf has joined #ruby
towski_ has joined #ruby
benlieb_ has quit [Quit: benlieb_]
Takle has joined #ruby
<certainty> flughafen: yepp, it got a bit more exciting in the evening here
jack_rabbit has quit [Quit: Leaving]
<flughafen> yeah, we had some thunder and lightning
zenspider has quit [Ping timeout: 264 seconds]
nii2361 has quit [Ping timeout: 252 seconds]
martinbmadsen_ has quit [Remote host closed the connection]
codeFiend has joined #ruby
codeFiend has quit [Client Quit]
martinbmadsen has joined #ruby
lkba has joined #ruby
zenspider has joined #ruby
hpoydar has joined #ruby
bartj3 has joined #ruby
djbkd has joined #ruby
lemur has quit [Remote host closed the connection]
martinbmadsen has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Dreamer3 has quit [Ping timeout: 250 seconds]
ahmetkapikiran has joined #ruby
hpoydar has quit [Ping timeout: 252 seconds]
djbkd has quit [Ping timeout: 272 seconds]
nii2361 has joined #ruby
greenbagels has quit [Quit: Leaving]
krz has quit [Ping timeout: 250 seconds]
shadoi1 has joined #ruby
bruno- has joined #ruby
Dreamer3 has joined #ruby
<DeathCode> damn this place is lonely
sevvie has joined #ruby
<DeathCode> tumbleweeds passing by
<zipkid> Oh so lonely...
gluten_hell_ has joined #ruby
wicope has joined #ruby
wicope has quit [Max SendQ exceeded]
<sevenseacat> we're all working :P
<DeathCode> working on what sevenseacat
<zipkid> or pretending to....
wicope has joined #ruby
<DeathCode> meh just watched divergent with my peeps. movie was so cash
<sevenseacat> well at this very moment I'm writing a helper method to highlight the active tab in a navigation bar
<sevenseacat> you needed to know that, right?
MatthewsFace has joined #ruby
<DeathCode> damn sevenseacat always so approachable <3
musashi1 has joined #ruby
<sevenseacat> i try.
sandelius has joined #ruby
merqlove has joined #ruby
<DeathCode> sup sandelius
<sandelius> DeathCode morning
towski_ has quit [Remote host closed the connection]
markholmes has quit [Quit: So it goes.]
bruno- has quit [Ping timeout: 250 seconds]
Hounddog has joined #ruby
<avril14th> moin
<DeathCode> meh sounds like most people here are not from the US
<DeathCode> thats a first
c0m0 has joined #ruby
anarang has joined #ruby
<tobiasvl> a first?
<musashi1> well it's 12:41 on the west coast
<musashi1> (am)
martinbmadsen has joined #ruby
<DeathCode> yeah its a first cause most chatrooms are full of people from the US
<tobiasvl> it's not a first, it's like this every US night :P
<sandelius> in Sweden it's 09:42
rocknrollmarc has quit [Quit: BitchX-1.2.1 -- just do it.]
lrocknrolmarc has quit [Quit: BitchX-1.2.1 -- just do it.]
<sevenseacat> if you're from north america, i can understand how you'd make that assumption.
<DeathCode> i am
<tobiasvl> DeathCode: oh so you mean it's a first among the channels YOU frequent
<tobiasvl> well
<sevenseacat> yes, we established that yesterday.
<DeathCode> yeah
<sevenseacat> i'm glad you remember where you're from.
MatthewsFace has quit [Ping timeout: 264 seconds]
<DeathCode> i dont remember if i told u guys before, thats the thing
<sevenseacat> DeathCode: started learning ruby yet?
nii2361 has quit [Ping timeout: 256 seconds]
<avril14th> ahah
<DeathCode> yeah well i learned some stuff before from my netbeans days so i know some stuff
<DeathCode> some stuff similar to java :3
<sevenseacat> thats a no then
dopie has joined #ruby
<DeathCode> but ye i would say i definitely started
quimrstorres has joined #ruby
yh has joined #ruby
f3lp has quit [Ping timeout: 264 seconds]
ki0 has joined #ruby
<DeathCode> is ruby, like you guys' favourite programming language?
<colorados> learn scala
allenn has joined #ruby
<colorados> ruby just for fun
aswen has joined #ruby
<DeathCode> scala?
wildroman3 has quit [Remote host closed the connection]
RegulationD has joined #ruby
<colorados> of course
msgodf has joined #ruby
<colorados> scala is very powerful lang
<sandelius> scala is the coffeescript of Java :)
jerematic has joined #ruby
<colorados> yeah
<sevenseacat> was that meant to be a compliment?
<sevenseacat> unsure
<colorados> many cool guys like scala
<sandelius> sevenseacat it was just a fact :)
<flughafen> sevenseacat: no, he just wants to seem like he knows something. ;)
<sevenseacat> hah
Volsus has quit [Quit: Leaving]
<sandelius> you got me
Guest3583 has quit [Quit: Affix - http://affix.me]
nii2361 has joined #ruby
x1337807x has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
thumpba has quit []
RegulationD has quit [Ping timeout: 264 seconds]
<DeathCode> gonna learn some basic ruby
<DeathCode> then do some practice problems :)
jerematic has quit [Ping timeout: 246 seconds]
yh has quit [Ping timeout: 256 seconds]
<sevenseacat> :)
Takle has quit [Remote host closed the connection]
* sevenseacat finished said helper method
krz has joined #ruby
Renich has joined #ruby
livathinos has joined #ruby
<colorados> DeathCode, u make a big mistake
tesuji has joined #ruby
<DeathCode> what u mean? colorados
<colorados> u need learn javascript or scala
<DeathCode> can u relax i'm trying to learn some ruby
elaptics_away is now known as elaptics
<DeathCode> then rails
<DeathCode> so i can do some web dev
<colorados> i am relaxing
Spami has joined #ruby
<DeathCode> cant be on java forever
<sevenseacat> !popcorn2
<DeathCode> i want to make web pages with ruby
<tobiasvl> what's happened to this channel
<colorados> really u waste a lot time
bartj3 has quit [Quit: bye!]
arup_r_ has quit [Remote host closed the connection]
<DeathCode> why?
<colorados> try read about nodejs
<tobiasvl> I don't understand if colorados or DeathCode is the actual troll
<colorados> its cool platform
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<DeathCode> i'm not trolling but i think colorados is
<sevenseacat> colorados: not sure what you're smoking, but DeathCode gets confused enough already.
krisquigley has joined #ruby
<tobiasvl> maybe they're the same person? they both write "u"
<sevenseacat> best not to add to it.
jimms has joined #ruby
<sevenseacat> and I don't say that to slight you, DeathCode
alex88 has joined #ruby
universaL is now known as universa1
bartj3 has joined #ruby
<sandelius> colorados if you're into the node platform you should take a look at crystal-lang
<certainty> sandelius: in what respect is scala to java what coffescript is to javascript?
bayed has joined #ruby
<colorados> sandelius, i read about crystal
<flughafen> certainty: it's not really
<sandelius> certainty it was a half joke.
<flughafen> sandelius: now it's a full joke ;)
<sandelius> I'll try to make a 1/4 joke next time :)
lolmaus has quit [Quit: Konversation terminated!]
<DeathCode> sandelius:stick to coding
<DeathCode> dont attempt jokes pls
krisquigley has quit [Read error: Connection reset by peer]
f3lp has joined #ruby
ghr has joined #ruby
<sandelius> what happened?
<DeathCode> just teasing
krisquigley has joined #ruby
codecop has quit [Remote host closed the connection]
<certainty> sandelius: alrigth. I didn't get it :)
<certainty> C-t
<sandelius> DeathCode but yeah you're probably right, need to get some work done. No time for this popcorn chat right now :)
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
b0t00 has joined #ruby
b0t00 has quit [Client Quit]
AlexRussia has quit [Ping timeout: 255 seconds]
caconym has quit [Quit: leaving]
Affix has joined #ruby
Affix is now known as Guest98287
agrinb has joined #ruby
krisquigley has quit []
Pupeno has quit [Remote host closed the connection]
marr has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
CoolCuteGuy has joined #ruby
<CoolCuteGuy> hello
CoolCuteGuy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
joonty has joined #ruby
hs366 has joined #ruby
<colorados> likely new troll visit us
bluOxigen has quit []
<certainty> close the gates, cave trolls!
* sevenseacat readies the attack
* certainty is the official channel troll.
<certainty> i don't share that position
<sevenseacat> what do we say about being attacked by trolls? not today!
<certainty> xD
noname1 has quit [Ping timeout: 248 seconds]
* flughafen knows kung fu
oo_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<certainty> flughafen: ok neo then go fight those trolls. Stop trying to hit them and hit them!
* flughafen punches java troll in the head
<sevenseacat> lol
<lpaste> DASD pasted “ASDASDASD” at http://lpaste.net/1345348997383979008
blackmesa has joined #ruby
<sevenseacat> lpaste: good to know.
m3nTe_ has joined #ruby
vdamewood has joined #ruby
<certainty> i didn't know there was a paste bot here
<DeathCode> trolls
<DeathCode> sevenseacat:are you a troll?
noname1 has joined #ruby
<certainty> the cat is whatever she pleases to be :p
arup_r has joined #ruby
<DeathCode> its a shame she chooses to be a troll then
m3nTe has quit [Ping timeout: 248 seconds]
<certainty> being a troll is not that bad actually
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
<DeathCode> are u a troll?
einarj has joined #ruby
<certainty> i think so
<DeathCode> oh ok
<DeathCode> well maybe you're just ugly
<DeathCode> jk
<certainty> maybe baby
<gregf_> DeathCode: c'mon man. you aught to be more professional ;)
sevenseacat has quit [Ping timeout: 264 seconds]
<DeathCode> was just kidding
<gregf_> DeathCode: it wont work always unfortunately :)
<DeathCode> ok
<DeathCode> sorry certainty. i'm sure you're a gorgeous man
<gregf_> DeathCode: we're youre friends. we want to help you learn some ruby ;)
<certainty> DeathCode: xD
<DeathCode> gregf_ yeah and friends joke around sometime right?
<gregf_> DeathCode: well good humoured banter :P
lolmaus has joined #ruby
<certainty> btw. are there any april 1st hoaxes online yet?
xenokiller has joined #ruby
<flughafen> certainty: DeathCode said just kidding
<DeathCode> jk = just kidding
f3lp has quit [Ping timeout: 272 seconds]
ahmetkapikiran has joined #ruby
<certainty> ah it's on HN
<flughafen> that's your april fools joke when you said certainty is ugly
<flughafen> certainty: amazon dash?
<flughafen> ha
<certainty> https://www.gentoo.org/ haha
Takle has joined #ruby
Zai00 has joined #ruby
chthon has joined #ruby
<DeathCode> hehe flughafen
<certainty> https://news.ycombinator.com/item?id=9302010 well that is probably shorter
macoecho has joined #ruby
lxsameer has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
mac_ has joined #ruby
m3nTe_ is now known as m3nTe
<flughafen> certainty: ha
Mon_Ouie has quit [Ping timeout: 244 seconds]
ralku has joined #ruby
rayleigh415 has quit [Remote host closed the connection]
mac_ has quit [Client Quit]
macoecho has quit [Client Quit]
f3lp has joined #ruby
AlexRussia has joined #ruby
mikecmpbll has joined #ruby
haxrbyte_ has quit [Ping timeout: 244 seconds]
shadoi1 has quit [Quit: Leaving.]
Guest98287 is now known as Affix
Affix has quit [Changing host]
Affix has joined #ruby
workmad3 has joined #ruby
yqt has joined #ruby
mistermocha has joined #ruby
Cust0sL1men has quit [Ping timeout: 245 seconds]
tlarevo_ has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
mistermocha has quit [Ping timeout: 256 seconds]
tlarevo has quit [Ping timeout: 246 seconds]
sevvie has joined #ruby
bluOxigen has joined #ruby
rayleigh415 has joined #ruby
basiclaser has joined #ruby
oo_ has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 255 seconds]
stef204 has joined #ruby
Hobogrammer has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
steven43126 has joined #ruby
x1337807_ has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
yfeldblu_ has joined #ruby
roolo has joined #ruby
x1337807x has quit [Ping timeout: 250 seconds]
Renich has quit [Quit: leaving]
yfeldblum has quit [Ping timeout: 264 seconds]
lolmaus has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
krisquigley has joined #ruby
lolmaus has quit [Client Quit]
hectortrope has joined #ruby
nii2361 has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
Trioxin has joined #ruby
Soliah has quit [Quit: Soliah]
timonv has joined #ruby
agrinb has joined #ruby
Trioxin_ has quit [Ping timeout: 244 seconds]
vtunka has joined #ruby
yh has joined #ruby
lordkryss has joined #ruby
Guest24 is now known as lele
sevvie has quit [Ping timeout: 245 seconds]
max96at|off is now known as max96at
agrinb has quit [Ping timeout: 252 seconds]
arup_r_ has joined #ruby
sevvie has joined #ruby
Cust0sL1men has joined #ruby
<arup_r_> Can I use the attr_reader the way I show there ?
ahmetkapikiran has quit [Quit: ahmetkapikiran]
DaniG2k has joined #ruby
arup_r has quit [Ping timeout: 246 seconds]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yh has quit [Ping timeout: 264 seconds]
yh has joined #ruby
<certainty> arup_r_: the problem is that @y doesn't exist until you invoke #another_var.
<certainty> however you created the readers before that thus you only get a reader for every ivar that existed at that point
<arup_r_> makes sesne
<arup_r_> thanks
trampi has quit [Remote host closed the connection]
hpoydar has joined #ruby
sevenseacat has joined #ruby
<arup_r_> for ob2 I didn't create @y yet..
babykosh has joined #ruby
<jhass> >> class Foo; def bar; @never_assigned = 1; end; end; Foo.new.instance_variables
<eval-in_> jhass => [] (https://eval.in/307375)
<jhass> >> class Foo; def bar; @never_assigned = 1; end; end; Foo.new.bar; Foo.new.instance_variables
<eval-in_> jhass => [] (https://eval.in/307376)
musashi1 has quit [Ping timeout: 255 seconds]
<jhass> ah nvm that :P
<adaedra> >> nvm
<eval-in_> adaedra => undefined local variable or method `nvm' for main:Object (NameError) ... (https://eval.in/307377)
<jhass> arup_r_: you create the readers in the actual (shared!) class
<jhass> not in the objects singleton class
hpoydar has quit [Ping timeout: 252 seconds]
<arup_r_> jhass: I know
lolmaus has joined #ruby
<arup_r_> humm.... smell like a bug
<jhass> nope
<arup_r_> humm.. not bug
<jhass> both have the same class
<arup_r_> so any object can keep injecting readers dynamically to the main class
<arup_r_> too much **POWER** we have
ArchRogem has joined #ruby
<shevy> :)
epistrephein has joined #ruby
<shevy> the difficulty is when to use it!
DaniG2k has quit [Quit: leaving]
terlar has joined #ruby
<flughafen> certainty: did you see https://com.google ?
bruno- has joined #ruby
jefus__ has joined #ruby
<DeathCode> LOL
<DeathCode> nice one
lolmaus has quit [Quit: Konversation terminated!]
lolmaus has joined #ruby
<certainty> flughafen: yepp
<certainty> arup_r_: with great power comes great responsibility
MatthewsFace has joined #ruby
AlexRussia has quit [Ping timeout: 256 seconds]
jefus_ has quit [Ping timeout: 265 seconds]
<arup_r_> certainty: yes indeed
bruno- has quit [Ping timeout: 256 seconds]
lkba has joined #ruby
DavidDudson has joined #ruby
lolmaus has quit [Ping timeout: 246 seconds]
<steven43126> Im trying to use ffi_lib to use a native extenstion bundled with a gem. Obviously the path to the extensions is different depending on rubygems version, OS, etc. Is there a way to deterine where a gems native extensions are placed ?
<arup_r_> what should be the name of the method? https://gist.github.com/aruprakshit/76d9ed8b2fc16909e4ab#file-metaprogram-rb-L10 It is now working..
MatthewsFace has quit [Ping timeout: 252 seconds]
<jhass> steven43126: did through the methods and classes under Gem, might have something
<jhass> *dig
<steven43126> jhass: looking thanks, the directory is present in the load_path added by bundler, so a require finds the native extensions but fails to load it as expected as it's meant to be used with ffi. ffi_lib it seems does not use the LOAD_PATH dirs during it's search
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
DavidDudson has quit [Client Quit]
<jhass> yeah, I'd expect what `gem which` uses is available as API under Gem somewhere
lkba has quit [Ping timeout: 272 seconds]
musashi1 has joined #ruby
DavidDudson has joined #ruby
vtunka has quit [Quit: Leaving]
babykosh has quit [Quit: babykosh]
jimms has quit [Remote host closed the connection]
lolmaus has joined #ruby
RegulationD has joined #ruby
ralku has quit [Ping timeout: 250 seconds]
Guest744 has quit [Excess Flood]
sevenseacat has joined #ruby
jerematic has joined #ruby
<flughafen> certainty: it snowed here
<certainty> yeah here too
Olipro has joined #ruby
<certainty> but now the sun is shining again
Olipro is now known as Guest82299
<adaedra> Do you let the sunshine in?
<certainty> sure
<flughafen> ich lebe in dunkelheit!
DerisiveLogic has quit [Ping timeout: 244 seconds]
<adaedra> ach so
RegulationD has quit [Ping timeout: 255 seconds]
<flughafen> it was stupid, our blinds are on the outside and there is a wind sensor on the roof, so when it's too windy it makes all the blinds go up and locks the controls, so if it's windy and sunny there is nothing you can do
lolmaus has quit [Ping timeout: 252 seconds]
lolmaus has joined #ruby
<adaedra> I hope you
jerematic has quit [Ping timeout: 264 seconds]
<adaedra> 're not in a windy region, then
<adaedra> Return key, stahp
sandelius has joined #ruby
basex has joined #ruby
sevvie has quit [Ping timeout: 244 seconds]
lkba has joined #ruby
sevvie has joined #ruby
merqlove has quit [Quit: Connection closed for inactivity]
yqt has quit [Ping timeout: 264 seconds]
govg has quit [Ping timeout: 264 seconds]
govg has joined #ruby
riotjones has joined #ruby
<DeathCode> guys
<DeathCode> so i got my ruby and rails both to run on my command prompt
Pupeno has joined #ruby
<adaedra> congrats
<DeathCode> but the thing is ruby is set to v 1.9.3
<DeathCode> rails is at v 4.2.1
<sevenseacat> k?
<DeathCode> how to update ruby to v 2.1.1
<sevenseacat> you install that version of ruby.
<DeathCode> ye installed
<DeathCode> but cmd doesnt detect that
<sevenseacat> no, you installed 1.9.3
<DeathCode> when i do "ruby -v"
<DeathCode> no i installed 2.2.1
<adaedra> DeathCode: operating system?
<DeathCode> windowns
<DeathCode> windows*
<adaedra> you installed 1.9.3 previously ?
<DeathCode> ye
<DeathCode> but then i installed 2.1.1
sevvie has quit [Ping timeout: 264 seconds]
<DeathCode> and then installed ruby with "gem install...."
<DeathCode> rails*
<adaedra> so you have 1.9.3 and 2.2.1 installed at the same time?
<DeathCode> but i also installed railsinstaller
<DeathCode> ye kinda :P
<sevenseacat> cripes
<DeathCode> like i installed 2.2.1 on the system
jheg has joined #ruby
<sevenseacat> glhf
<colorados> sart installing from ubuntu
<colorados> start installing from ubuntu
<DeathCode> but the cmd doesnt detect the 2.2.1
<sevenseacat> colorados: quiet.
<adaedra> DeathCode: because it takes the first one.
<sevenseacat> DeathCode: uninstall ruby 1.9.3.
alex88 has quit []
<adaedra> Try having a clean, single installation of ruby.
<DeathCode> how to uninstall
<adaedra> Or use things like rvm, althrough I don’t know if it works with Windows.
<sevenseacat> it doesnt
<DeathCode> ye rvm i was thinking
<DeathCode> oh no? ok
<adaedra> If you went through installer, Control panel is the place to look.
<sevenseacat> afaik
<workmad3> you might be able to get RVM or similar working with something like cygwin that provides a shell that's more like bash
<workmad3> but it would take a lot of effort and windows know-how, and I'm not certain you'd be able to do it (or how stable it would be if you did)
riotjones has quit [Ping timeout: 250 seconds]
Pupeno has quit [Ping timeout: 265 seconds]
<DeathCode> idk how to uninstall ruby 1.9.3 cause i think i did that manually
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
basex has quit [Remote host closed the connection]
rayleigh415 has quit [Remote host closed the connection]
epistrephein has quit []
<DeathCode> now what happened was, i put the location of ruby from system path (advanced system settings) to the bin folder of ruby 2.2.1 and it works
<DeathCode> but when i do that, the rails program stops working :(
<DeathCode> so when i go rails -v then, it doesnt work
<sevenseacat> DeathCode: uninstall ruby 1.9.3.
<DeathCode> yes im trying, i dont know how
<sevenseacat> how did you install it?
<DeathCode> it doesnt show on control panel
<colorados> why do you feed win users?
AlexRussia has joined #ruby
iteratorP has quit [Remote host closed the connection]
<DeathCode> sevenseacat:i used the ruby installer
<sevenseacat> colorados: because we're good people.
<colorados> they should think about fundamental problems in operation systems
<sevenseacat> DeathCode: ruby installer comes with an uninstaller
senayar has quit [Remote host closed the connection]
<jokester> an interpreter is far from fundamental
Stalkr has joined #ruby
govg has quit [Ping timeout: 252 seconds]
<DeathCode> yeah sevenseacat i checked there is no uninstaller
<sevenseacat> ...
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
<sevenseacat> open the folder you installed it to. run uninstaller.
jimms has joined #ruby
govg has joined #ruby
<avril14th> I'm trying to find the index of the last element of an array that is not equal to 0. Is there better (faster) than array.length - array.reverse.index{ |i| i != 0 } - 1 ?
<DeathCode> yeah there is none for ruby 1.9.3
<sevenseacat> wat
<jhass> avril14th: #rindex
<DeathCode> ok i'm tring
<DeathCode> trying*
<avril14th> jhass you're the man
_1_chokeseskukus has joined #ruby
<DeathCode> gonna try reinstalling 2.2.1
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<_1_chokeseskukus> hey;)
<jhass> _1_chokeseskukus: how's your ruby?
<sevenseacat> DeathCode: no seriously. uninstall 1.9.3.
<DeathCode> sevenseacat:i'm looking for it
<DeathCode> its not there
<DeathCode> !
<_1_chokeseskukus> cool
<sevenseacat> DeathCode: open the folder you installed the rails installer to, and then uninstall it.
<jhass> _1_chokeseskukus: watcha coding?
<avril14th> jhass: thx buddy
<DeathCode> sevenseacat:yes i found it
<_1_chokeseskukus> new so give me a break
<jhass> avril14th: yw, didn't know index takes a block :D
<DeathCode> its in this railsinstaller sevenseacat
<sevenseacat> hooray
<DeathCode> ok but there is no uninstaller for the ruby part
<sevenseacat> you are now level 2 at basic computer usage.
<sevenseacat> say what?
hpoydar has joined #ruby
<DeathCode> should i uninstall railsinstaller too?
<DeathCode> ye inside the folder
Stalkr^ has joined #ruby
<sevenseacat> .....thats what i just told you to do
<DeathCode> oh ok i thought u told me to uninstall only the ruby part
<DeathCode> but there is no
<sevenseacat> please don't think too hard, just follow the instructions.
<DeathCode> goddamn you're so condescending geez
<DeathCode> giving me trouble with the help
<sevenseacat> its hard not to be when you dont seem to understand basic instructions
<sevenseacat> or know how to use your own computer
senayar has quit [Ping timeout: 264 seconds]
ghostpl_ has joined #ruby
<DeathCode> no i kno
<sevenseacat> apparently not.
<DeathCode> this ruby shit has been fucking with me
<DeathCode> k
Zai00 has quit [Quit: Zai00]
<sevenseacat> two days ago i gave you a link to ruby installer. you still dont have a working environment.
ahmetkapikiran has joined #ruby
<DeathCode> ye im trying
<DeathCode> shits wack
<DeathCode> they need to upgrade this
<sevenseacat> call me crazy, but it really is as simple as downloading and running the file.
<DeathCode> anyway
<DeathCode> not really
<sevenseacat> yes really.
<DeathCode> anyway
tlarevo_ has quit []
wicope has quit [Remote host closed the connection]
<DeathCode> this computer is not set up by me
<DeathCode> i think the school that gave me this computer put some shit on here
<adaedra> I already used ruby under Windows, it’s really simple indeed
<sevenseacat> i set up dozens of windows computers to run rails apps, it really is.
<DeathCode> congrats adaedra
<DeathCode> k maybe im stupid then
<DeathCode> anyway
<DeathCode> so i uninstalled it all
<sevenseacat> awesome.
<DeathCode> and i went to cmd
leafybasil has joined #ruby
<DeathCode> wrote ruby -v and got ruby 2.2.1. but now rails -v is gone. which makes sense but which rails do i install now?
leafybasil has quit [Remote host closed the connection]
Stalkr has quit [Ping timeout: 252 seconds]
<sevenseacat> `gem install rails`
<DeathCode> ye was gonna ask that
<sevenseacat> it will get the latest by default.
<DeathCode> thanks sevenseacat
leafybasil has joined #ruby
hpoydar has quit [Ping timeout: 250 seconds]
<sevenseacat> for the record, the latest version is 4.2.1.
govg has quit [Ping timeout: 246 seconds]
<DeathCode> ok so i did the install and it said the latest version is 4.2.1 blah blah. then it says successful
<DeathCode> but then i went ahead and did rails -v
<DeathCode> and it says its not there :P
<arup_r_> Am I in Rails channel ?
govg has joined #ruby
<jhass> no? oO
<sevenseacat> arup_r_: nope.
<DeathCode> no arup_r_ im just really stupid apparently so i have to ask about rails here
<adaedra> tssk tssk
<DeathCode> ye happens when you're dropped as a kid :(
<arup_r_> DeathCode: IDC
jimms has quit [Remote host closed the connection]
<adaedra> saying these kind of things won’t help yourself, you know
<sevenseacat> "it says" isn't useful and not something we can help with. gist the error message.
<DeathCode> arup_r_:i thought u did :(
<DeathCode> hold up
<DeathCode> the system cannot find the path specified
<DeathCode> adaedra:help with ?
<adaedra> anything
<adaedra> anyway.
<DeathCode> what u mean lol
_1_Nope has joined #ruby
<DeathCode> sevenseacat:what u think?
<sevenseacat> DeathCode: i asked you to gist the error message.
<sevenseacat> !gist
<helpa> http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
<DeathCode> the system cannot find the path specified
<adaedra> echo %PATH%
<DeathCode> thats all it said lmao
<sevenseacat> you didnt say what path, so
<sevenseacat> !ncnh
<helpa> If you don't provide any code, it becomes really difficult for us to help you. Providing code to reproduce the problem increases your chances of getting great, accurate help immensely.
<DeathCode> ok hold on
<arup_r_> DeathCode: No I don't.. My client made me April fool.. :(
<_1_Nope> Gosh, this app is terrible. It starts to make sense now though
<arup_r_> I meant IRC client
<DeathCode> hehe
<DeathCode> hold on let me try something
<jhass> _1_Nope: is me. There's an app that is an IRC client styled like WhatsApp etc. with Freenode as the top predefined server m(
<DeathCode> lmao i'd do the path thing but idk how to copy from the command line
<DeathCode> ok
<DeathCode> i did manually
<DeathCode> C:\RailsInstaller\Ruby22\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Google\Chrome\Application;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
<DeathCode> Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\MATLAB\R2013a\runtime\win64;C:\Program Files (x86)\MATLAB\R2013a\bin;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Program Files\SASHome\Secure;C:\Program Files\SASHome\x86\Secure;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Serv
<DeathCode> ols\PSpice;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\adb;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\nodejs\;C:\mysql\bin;C:\Program Files (x86)\Skype\Phone\
<DeathCode> er\110\Tools\Binn\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;c:\Xilinx\bin\nt;C:\OrCAD\OrCAD_16.6_Lite\tools\pcb\bin;C:\OrCAD\OrCAD_16.6_Lite\tools\fet\bin;C:\OrCAD\OrCAD_16.6_Lite\OpenAccess\bin\win32\opt;C:\OrCAD\OrCAD_16.6_Lite\tools\bin;C:\OrCAD\OrCAD_16.6_Lite\tools\Capture;C:\OrCAD\OrCAD_16.6_Lite\to
<DeathCode> heres the path thing
<sevenseacat> your rails installer path is right there at the top.
<jhass> and totally pretends to be a social thingy, asks you for your gender and shit like that
<sevenseacat> in future, when we say gist, we *mean it*. dont flood the channel.
<adaedra> Mh, isn’t it supposed to have a path for gems too ?
<DeathCode> arup_r_:yeah happens. nobody cares
<jokester> you have a splendid toolbox
<ahmetkapikiran> gist.github.com !
basex_ has joined #ruby
<DeathCode> sevenseacat:ok so what now?
<sevenseacat> DeathCode: i asked you to gist the error message.
Pupeno has joined #ruby
Pupeno has joined #ruby
<sevenseacat> we might get there eventually.
<jhass> _1_chokeseskukus: remove this app, it's shit
<DeathCode> all i did was write rails -v. and it replied
<adaedra> DeathCode: system menu > edit > select, make selection, system menu > edit > copy
<DeathCode> "the system cannot find the path specified" sevenseacat
_1_Nope has left #ruby [#ruby]
<sevenseacat> sigh.
<DeathCode> so how do i set it to the right path?
charliesome has joined #ruby
<sevenseacat> I have a feeling you might need to reinstall the right version of rails installer - the old one might have wiped your gem path
<adaedra> Er
<adaedra> Hold on
<sevenseacat> but i dont really care because i ask a simple question repeatedly and get no straight answer
<sevenseacat> so i'm done
_1_chokeseskukus has quit [Remote host closed the connection]
<sevenseacat> glhf
<DeathCode> ok sevenseacat sorry to bother you
<adaedra> He installed ruby though Rails installer, and has to run gem install rails?
iasoon has joined #ruby
<adaedra> There’s something I don’t follow
<sevenseacat> nfi.
<DeathCode> thank you for all your help so far though
<hectortrope> Hi all I have a bunch of linux commands, How can i write a script to execute all the commands
<arup_r_> DeathCode: but your name has some internal meaning.. :)
<DeathCode> lol what is it?
<arup_r_> and that's like a DeathOver in Cricket..
<DeathCode> LOL
<adaedra> hectortrope: just run commands, or execute commands from a ruby script ?
bim has quit [Remote host closed the connection]
<DeathCode> how did u enjoy the games?
<arup_r_> cricket too much and football only worldcup
<jhass> hectortrope: put them into a file, slap #!/bin/sh at the top
serivichi has joined #ruby
serivich has joined #ruby
<arup_r_> In football also DetahHours are dangerous
<jhass> hectortrope: and chmod +x it
<DeathCode> i'm the opposite. mostly soccer/football worldcup
<DeathCode> and dont understand cricket too much
sdothum has joined #ruby
<DeathCode> sorry, watch*
<DeathCode> dont watch cricket too much
bruno- has joined #ruby
<gregf_> DeathCode: cricket is not a game for the chicken hearted. the only bird in there is a duck :/
<arup_r_> There is nothing to understand Cricket.. too amt advertise in between ...
haxrbyte has joined #ruby
<arup_r_> gregf_: hehehehe
<hectortrope> jhass: I need to write a ruby script
<DeathCode> gregf_ was that a joke cause *cricket* *cricket*
<hectortrope> jhass: yes
SouL_ has quit [Ping timeout: 272 seconds]
<jhass> hectortrope: who says you need to? a shell is much better at "running a bunch of linux commands" than ruby is
gfawcettpq has joined #ruby
rayleigh415 has joined #ruby
<hectortrope> jhass: I have a Java based software installed. So i want to execute run many commands like "which java" then path of java then users like that many. Everytime i do manually but now I want to perform all tasks at a time
<jhass> yeah, sounds like a job for shellscript
<hectortrope> jhass: yess
<hectortrope> but can i do it in ruby/
<hectortrope> So that I can take help of chef
sevenseacat has quit [Remote host closed the connection]
sevenseacat has joined #ruby
<DeathCode> careful, dont bring java into this channel
<jhass> well, then do it in ruby if you think that's better (I'm still not convinced)
<jhass> look at Kernel#`, Kernel#system and Kernel#spawn
<hectortrope> jhass: i don't even know basics of shell scripting
<hectortrope> what kernel a channel or a book?
serivich has quit [Quit: Leaving]
<jhass> ?
<jhass> I thought you wanted to write a ruby script?
<hectortrope> jhass: Yes
<jhass> shellscript != ruby script
<sevenseacat> theyre ruby methods.
rsavage has joined #ruby
<hectortrope> I know
<sevenseacat> so thats what kernel.
rsavage is now known as r3dking
rayleigh415 has quit [Ping timeout: 265 seconds]
<hectortrope> jhass thts not what I wanted* r u from India?
govg has quit [Ping timeout: 252 seconds]
Takle has quit [Remote host closed the connection]
rdark has joined #ruby
govg has joined #ruby
<jhass> no
<sevenseacat> o.O
Mia has joined #ruby
Stichoza has joined #ruby
Takle has joined #ruby
basex_ has quit [Ping timeout: 252 seconds]
<sevenseacat> :D
<jhass> arup_r_: what's wrong about that?
<arup_r_> No.. I don't know how to use it here in this channel.. What's the command ?
<jhass> sorry?
<arup_r_> BTW.. I never knew that IRCs are built top of Rails..
sandelius has joined #ruby
<zly> they're not ;]
<sevenseacat> wut...?
<jhass> oO? why do you think... I don't even
<arup_r_> jhass: as per your SLIM line if someone write **In Rails, how can I …?**.. something like that.. BOT will answer like *Please ask in #RubyOnRails.*.. Am I correct ?
<jhass> no
<zly> he's drunk or his english-fu is bit weak
astrobun_ has quit [Remote host closed the connection]
jmignault has joined #ruby
<arup_r_> zly: I don't drink.. my english is bad..
astrobun_ has joined #ruby
nettoweb has joined #ruby
<DeathCode> ok good bye guys
<arup_r_> jhass: ok.. then what is the use of the line.. just trying to understand the feature..
DeathCode has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
AlphaTech has joined #ruby
<jhass> arup_r_: it's an entry for FAQ on http://ruby-community.com/faq, apeiros just hid the General section until it's more polished
<arup_r_> jhass: O I see
<arup_r_> wow very nice..
workmad3 has quit [Ping timeout: 250 seconds]
serivichi has quit [Ping timeout: 252 seconds]
phutchins has joined #ruby
astrobun_ has quit [Ping timeout: 252 seconds]
govg has quit [Ping timeout: 252 seconds]
jheg has quit [Quit: jheg]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
govg has joined #ruby
ralku has joined #ruby
govg is now known as Guest83620
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hectortrope> hi guys can some one explain what this code is actually doing https://bpaste.net/show/150998b79aed ???
<arup_r_> why not?
<arup_r_> what is the Gem name ?
rodfersou has joined #ruby
<arup_r_> hectortrope: ^^
jefus__ has quit [Read error: Connection reset by peer]
<kaspergrubbe> Looks like Chef
Stichoza has quit [Quit: Lingo: www.lingoirc.com]
<hectortrope> arup_r_: what?
startupality has joined #ruby
<hectortrope> kaspergrubbe: yes
<hectortrope> kaspergrubbe: I just need explanation what's happening with that code then i can rewrite my own code with different language or same
<jhass> hectortrope: what's wrong with the #chef channel?
Guest83620 has quit [Ping timeout: 264 seconds]
ghr has quit [Ping timeout: 264 seconds]
senayar has joined #ruby
senayar has joined #ruby
govg_ has joined #ruby
startupality has quit [Quit: startupality]
davidhq has joined #ruby
ayaz has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
codecop has joined #ruby
nii2361 has joined #ruby
startupality has joined #ruby
martinbmadsen has quit [Quit: Bye!]
martinbmadsen has joined #ruby
mhib has joined #ruby
haxrbyte has quit [Ping timeout: 265 seconds]
unshadow has joined #ruby
charliesome has quit [Quit: zzz]
jefus has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
Pupeno has joined #ruby
martinbmadsen has quit [Client Quit]
<unshadow> Hi guys, I need some advice, I created a proxy which does URL rewrite using data.gsub, what is the overhead of gsub ? is there a better why to manipulate the data so it will be faster (or consume less resources) ? thanks
martinbmadsen has joined #ruby
MatthewsFace has joined #ruby
nii2361 has quit [Ping timeout: 244 seconds]
<jhass> unshadow: if it's a single replacement consider .sub and if it doesn't need a regexp consider String#[]=, other than that you won't get better
oo_ has quit [Remote host closed the connection]
<unshadow> I see, thanks jhass
nii2361 has joined #ruby
Pharaoh2_ is now known as Pharaoh2
Pupeno has quit [Ping timeout: 265 seconds]
Asher has quit [Quit: Leaving.]
MatthewsFace has quit [Ping timeout: 250 seconds]
Asher has joined #ruby
Asher has quit [Client Quit]
senayar has quit [Remote host closed the connection]
SouL_ has joined #ruby
oo_ has joined #ruby
govg_ has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
govg_ has joined #ruby
robbyoconnor has joined #ruby
Asher has joined #ruby
Pupeno has joined #ruby
nii2361 has quit [Ping timeout: 245 seconds]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
rdark has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Ping timeout: 252 seconds]
serivichi has joined #ruby
rdark has joined #ruby
<hs366> unless arg[0].nil! puts "not nill" is it ok if use this
nettoweb has joined #ruby
<hs366> kinda hart to use unless
stef2 has joined #ruby
RegulationD has joined #ruby
<jhass> hs366: what's .nil!?
<jhass> >> nil.nil!
<eval-in_> jhass => undefined method `nil!' for nil:NilClass (NoMethodError) ... (https://eval.in/307437)
Axy has joined #ruby
stef2 has quit [Client Quit]
mbeasley_ has joined #ruby
mbeasley_ has quit [Client Quit]
jerematic has joined #ruby
<hs366> if arg[0].nil puts "nil"
t_p has quit [Quit: Computer has gone to sleep.]
<jhass> >> nil.nil
<eval-in_> jhass => undefined method `nil' for nil:NilClass (NoMethodError) ... (https://eval.in/307438)
<hanmac> jhass: String#[]= works with regexp too ;P
djbkd has joined #ruby
<jhass> hanmac: I know I know :P
<jhass> hs366: still not a Ruby core method
reinaldob has joined #ruby
<hanmac> jhass: did you know that Symbol#[] works with regexp too? ;P
<jhass> doesn't all that stuff just delegate to to_s ?
<arup_r_> hanmac: myself know
<arup_r_> jhass: yes .. it is
hpoydar has joined #ruby
<hs366> how can i use if arg[0] is empthy p "it's empty"
<unshadow> hanmac, so what's the difference between String#[]= and .gsub ?
nettoweb has quit [Ping timeout: 248 seconds]
Mia has quit [Ping timeout: 252 seconds]
<jhass> hs366: "empty" is not a well defined set of values
<hs366> empty = nil
<arup_r_> unshadow: gsub for multilple matches
<hs366> can i use this in my code
<arup_r_> unshadow: String#[] is like #sub
RegulationD has quit [Ping timeout: 250 seconds]
<jhass> hs366: unless false is a valid value you can just puts "it's empty" unless arg[0]
ahmetkapikiran has joined #ruby
Vivex has joined #ruby
<hanmac> unshadow: first: gsub does makes multiple, you mean sub ... and []= does return the value you set, while its also self changing like sub!
<arup_r_> hanmac: Any difference between String#sub and String#[]
<arup_r_> ?
bim has joined #ruby
<jhass> hs366: if you rely on the non-existing index returning nil there, another common and possibly more robust approach is to check the arrays .size
jerematic has quit [Ping timeout: 255 seconds]
<arup_r_> ok got it
djbkd has quit [Ping timeout: 256 seconds]
<arup_r_> hanmac: seems no difference between String#sub! and String#[]
stef204 has quit [Ping timeout: 250 seconds]
teddyp1cker has quit [Remote host closed the connection]
<arup_r_> Well.. my last statement is wrong.. I got it now.. no more questions..
<hanmac> arup_r_: you mean String#[]= and look at the return value
oo_ has quit [Remote host closed the connection]
hpoydar has quit [Ping timeout: 255 seconds]
<arup_r_> yes.. I meant that
<arup_r_> got it.. now
<hs366> jhass, i sue optionparser and i expected to have input from user , otherwise it ask the use for help menu again
<hs366> the input could be 1..4 param
nii2361 has joined #ruby
<jhass> poor optionparser, being sued all the time :(
<hs366> :))))
<unshadow> so, gsub is like text.each_line do |line| ; line['match'] = 'newword' ?
<hs366> my bad ruby knowledge
noname1 has quit [Ping timeout: 248 seconds]
bim has quit [Ping timeout: 250 seconds]
beilabs has quit [Ping timeout: 265 seconds]
<jhass> unshadow: not really, it doesn't operate linewise
dEPy has joined #ruby
<jhass> more like scan, it continues searching for matches after the previous match
noname1 has joined #ruby
sevvie has joined #ruby
rayleigh415 has joined #ruby
oo_ has joined #ruby
rdark has quit [Quit: leaving]
rdark has joined #ruby
ldnunes has joined #ruby
adriancb_ has quit [Ping timeout: 264 seconds]
rayleigh415 has quit [Ping timeout: 250 seconds]
agrinb has joined #ruby
fgo has joined #ruby
agrinb has quit [Ping timeout: 248 seconds]
krz has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
Zai00 has joined #ruby
ralku is now known as ralku[away]
Sgeo has quit [Ping timeout: 250 seconds]
Darryl___ has joined #ruby
ralku[away] is now known as ralku
symbol__ has joined #ruby
joined has joined #ruby
joined has left #ruby [#ruby]
livathin_ has joined #ruby
<certainty> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<certainty> #
<certainty> DeBot: #
<DeBot> ␣␣␣␣␣␣␣␣#␣␣␣␣ [] 0/12
<certainty> DeBot: ae
<DeBot> ␣␣␣␣␣␣␣␣#␣e␣␣ [a] 1/12
<certainty> DeBot: s
<DeBot> S␣␣␣␣␣␣␣#␣e␣s [a] 1/12
<certainty> DeBot: t
<DeBot> St␣␣␣␣␣␣#␣ets [a] 1/12
<certainty> DeBot: ring
<DeBot> StringI␣#gets [a] 1/12
nii2361 has quit [Ping timeout: 244 seconds]
<certainty> DeBot: O
<DeBot> StringIO#gets [a] 1/12 You won!
robertt_dex has joined #ruby
mostlybadfly has joined #ruby
<certainty> \o/
robertt_dex has quit [Remote host closed the connection]
livathinos has quit [Ping timeout: 248 seconds]
oo_ has joined #ruby
<certainty> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<certainty> DeBot: g
<DeBot> ␣␣␣␣g␣␣␣␣␣␣␣␣␣ [] 0/12
emptyspace has joined #ruby
<certainty> DeBot: #
<DeBot> ␣␣␣␣g␣␣#␣␣␣␣␣␣ [] 0/12
blankspace has quit [Ping timeout: 246 seconds]
<certainty> DeBot: o
<DeBot> ␣␣␣␣g␣␣#␣o␣␣␣o [] 0/12
<unshadow> DeBot: a
<DeBot> ␣␣␣␣g␣␣#␣o␣␣␣o [a] 1/12
<certainty> DeBot: n
<DeBot> ␣n␣␣g␣␣#␣o␣n␣o [a] 1/12
<unshadow> DeBot: m
<DeBot> ␣n␣␣g␣␣#␣o␣n␣o [am] 2/12
<certainty> DeBot: it
<DeBot> Int␣g␣␣#␣o␣nto [am] 2/12
<certainty> DeBot: er
<DeBot> Integer#␣o␣nto [am] 2/12
jenrzzz has joined #ruby
<certainty> DeBot: dw
<DeBot> Integer#downto [am] 2/12 You won!
<unshadow> hahah
<unshadow> nice :)
<ralku> lol
stef204 has joined #ruby
<certainty> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<certainty> DeBot: #
<DeBot> ␣␣␣␣␣␣␣#␣␣␣␣␣␣␣ [] 0/12
<certainty> DeBot: s
<DeBot> ␣␣␣␣␣␣␣#␣␣␣␣␣␣␣ [s] 1/12
<ahmetkapikiran> Debot: 21
<ahmetkapikiran> lol
<certainty> DeBot: a
<DeBot> ␣␣␣␣␣␣␣#␣␣␣␣␣␣␣ [sa] 2/12
<unshadow> performance wise, does gsub! is better then text = text.gsub ?
joonty has quit [Quit: joonty]
<unshadow> DeBot: f
<DeBot> ␣␣␣␣␣␣␣#␣␣␣␣␣␣␣ [saf] 3/12
krz has joined #ruby
<unshadow> DeBot: I
<DeBot> ␣␣␣␣␣␣␣#␣␣␣␣␣␣␣ [safi] 4/12
<unshadow> DeBot: l
<DeBot> ␣␣␣␣␣␣␣#␣␣␣l␣␣␣ [safi] 4/12
<unshadow> DeBot: d
<DeBot> ␣␣␣␣␣␣␣#␣␣␣l␣␣␣ [safid] 5/12
astrobun_ has joined #ruby
<ahmetkapikiran> DeBot: 21
<DeBot> ␣␣␣␣␣␣␣#␣␣␣l␣␣␣ [safid21] 7/12
<hectortrope> DeBot:
blankspace has joined #ruby
blankspace has quit [Max SendQ exceeded]
<unshadow> DeBot: \r\n
<DeBot> ␣␣␣␣␣␣␣#␣␣␣l␣␣␣ [safid21\rn] 10/12
<hectortrope> DeBot:
<hectortrope> DeBot:
aclearman037 has joined #ruby
<hectortrope> DeBot:
<unshadow> DeBot: ?
<DeBot> ␣␣␣␣␣␣␣#␣␣␣l␣␣␣ [safid21\rn?] 11/12
<unshadow> DeBot: g
<DeBot> Mutex_m#mu_lock [safid21\rn?g] 12/12 You lost!
<certainty> unshadow: i don't know but i suspect it's not better than #gsub if nothing gets substituted. If it does it is probably slightly better due to the copy operations
hectortrope has quit [Quit: WeeChat 0.4.2]
<certainty> oh you can ask with ?
livathin_ has quit [Remote host closed the connection]
<certainty> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<certainty> DeBot: ?
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣ [?] 1/12
<certainty> maybe not
<unshadow> DeBot: \?
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣ [?\] 2/12
<certainty> doesn't make sense anyway since methods can have ?
<unshadow> DeBot: #
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣ [?\#] 3/12
<unshadow> DeBot: .
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣ [?\#.] 4/12
<unshadow> DeBot: f
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣ [?\#.f] 5/12
<unshadow> DeBot: t
<DeBot> ␣t␣␣␣␣␣t␣␣␣␣t [?\#.f] 5/12
<unshadow> nice !
<unshadow> 3 xt
nii2361 has joined #ruby
livathin_ has joined #ruby
<certainty> DeBot: o
<DeBot> ␣t␣␣␣␣␣t␣␣␣␣t [?\#.fo] 6/12
<certainty> DeBot: s
<DeBot> ␣t␣␣␣␣␣t␣␣␣␣t [?\#.fos] 7/12
brb3 has joined #ruby
<certainty> erm
<certainty> DeBot: e
<DeBot> Et␣␣␣␣et␣␣e␣t [?\#.fos] 7/12
<hanmac> DeBot: :
<DeBot> Et␣::␣et␣␣e␣t [?\#.fos] 7/12
<certainty> DeBot: c
<DeBot> Etc::␣et␣␣e␣t [?\#.fos] 7/12
<certainty> DeBot: g
<DeBot> Etc::get␣␣e␣t [?\#.fos] 7/12
<certainty> DeBot: p
<DeBot> Etc::getp␣e␣t [?\#.fos] 7/12
<certainty> DeBot: w
<DeBot> Etc::getpwe␣t [?\#.fos] 7/12
<certainty> DeBot: n
<DeBot> Etc::getpwent [?\#.fos] 7/12 You won!
<oz> :)
<unshadow> lol, da hell is this Etc
emptyspace has quit [Ping timeout: 272 seconds]
<oz> check the stdlib
astrobun_ has quit [Ping timeout: 255 seconds]
<certainty> ok last round
<certainty> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<certainty> (for me at least)
<certainty> DeBot: #
<DeBot> ␣␣␣␣␣␣␣␣#␣␣␣␣ [] 0/12
<certainty> DeBot: s
<DeBot> ␣␣␣␣␣␣␣␣#␣␣␣␣ [s] 1/12
<certainty> DeBot: e
<DeBot> ␣␣␣␣␣␣␣␣#␣␣␣␣ [se] 2/12
<certainty> DeBot: a
<DeBot> ␣a␣␣␣␣a␣#␣␣␣␣ [se] 2/12
<ralku> hehe Etc:getpwned ;)
<certainty> hmm
<certainty> DeBot: n
<DeBot> ␣a␣␣␣na␣#␣␣␣␣ [se] 2/12
<certainty> DeBot: m
<DeBot> ␣a␣␣␣na␣#␣␣␣␣ [sem] 3/12
<certainty> DeBot: t
<DeBot> ␣at␣␣na␣#t␣␣␣ [sem] 3/12
<certainty> DeBot: o
<DeBot> ␣at␣ona␣#to␣␣ [sem] 3/12
<certainty> DeBot: ri
<DeBot> Rationa␣#to␣␣ [sem] 3/12
<certainty> DeBot: l_f
<DeBot> Rational#to_f [sem] 3/12 You won!
mistermocha has joined #ruby
nii2361 has quit [Ping timeout: 252 seconds]
<certainty> i should write a bot that solves those hangmans from DeBot xD
jerematic has joined #ruby
sevenseacat has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<certainty> sevenseacat: perfect timing
<ralku> then this channel will be unusable ;)
<certainty> it's hangman time
<sevenseacat> ooooooh
<sevenseacat> i like hangman
<certainty> ralku: of course it would only be used when no one's talking
<certainty> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
banister has joined #ruby
<certainty> DeBot: #
<DeBot> ␣␣␣␣␣␣#␣␣␣␣ [] 0/12
<certainty> DeBot: to
<DeBot> ␣␣␣␣␣␣#to␣␣ [] 0/12
freerobby has joined #ruby
<certainty> DeBot: in
<DeBot> I␣␣␣␣␣#to␣i [n] 1/12
<certainty> DeBot: _
<DeBot> I␣␣␣␣␣#to_i [n] 1/12
antlong has joined #ruby
<certainty> DeBot: o
<DeBot> I␣␣␣␣␣#to_i [n] 1/12
<certainty> erm silly me
<sevenseacat> DeBot: rs
<DeBot> I␣␣␣␣r#to_i [ns] 2/12
startupality has quit [Quit: startupality]
<sevenseacat> DeBot: l
<DeBot> I␣␣␣␣r#to_i [nsl] 3/12
<jhass> DeBot: nteg
<DeBot> I␣␣␣␣r#to_i [nsleg] 5/12
<sevenseacat> DeBot: p
<DeBot> IP␣␣␣r#to_i [nsleg] 5/12
<certainty> DeBot: add
<DeBot> IPAddr#to_i [nsleg] 5/12 You won!
<sevenseacat> DeBot:ad
ghostpl_ has quit [Remote host closed the connection]
jottr_ has joined #ruby
<sevenseacat> \o/
<certainty> \o/
<ralku> cheers ;)
<certainty> damn i need to work
<certainty> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣ [] 0/12
<certainty> DeBot: #
<DeBot> ␣␣␣␣#␣␣␣␣ [] 0/12
<certainty> DeBot: o
<DeBot> ␣␣␣␣#␣o␣␣ [] 0/12
<sevenseacat> DeBot: rste
<DeBot> T␣␣e#to␣␣ [rs] 2/12
<certainty> DeBot: _
<DeBot> T␣␣e#to_␣ [rs] 2/12
<sevenseacat> DeBot: im
<DeBot> Time#to_i [rs] 2/12 You won!
<certainty> \o/
* sevenseacat breakdances
<certainty> alright my tests are still running
mistermocha has quit [Ping timeout: 265 seconds]
<certainty> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<certainty> DeBot: #
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣#␣␣␣␣␣␣␣␣␣␣ [] 0/12
<sevenseacat> DeBot: openssl
<DeBot> S␣␣␣n␣S␣␣nne␣#pos␣␣␣␣␣␣␣ [l] 1/12
<certainty> hehe
<sevenseacat> damn
<sevenseacat> DeBot: :
<DeBot> S␣␣␣n␣S␣␣nne␣#pos␣␣␣␣␣␣␣ [l:] 2/12
<certainty> DeBot: it
<DeBot> St␣in␣S␣␣nne␣#post␣␣␣t␣␣ [l:] 2/12
<sevenseacat> DeBot: d
<DeBot> St␣in␣S␣␣nne␣#post␣␣␣t␣␣ [l:d] 3/12
<jhass> DeBot: i
<DeBot> St␣in␣S␣␣nne␣#post␣␣␣t␣␣ [l:d] 3/12
<certainty> DeBot: u
<DeBot> St␣in␣S␣␣nne␣#post␣␣␣t␣␣ [l:du] 4/12
<sevenseacat> DeBot: r
<DeBot> Strin␣S␣␣nner#post␣␣␣t␣␣ [l:du] 4/12
<sevenseacat> DeBot: g
<DeBot> StringS␣␣nner#post␣␣␣t␣␣ [l:du] 4/12
<certainty> DeBot: ca
<DeBot> StringScanner#post␣␣atc␣ [l:du] 4/12
<sevenseacat> DeBot: ca
<DeBot> StringScanner#post␣␣atc␣ [l:du] 4/12
<jhass> DeBot: _
<DeBot> StringScanner#post_␣atc␣ [l:du] 4/12
<sevenseacat> DeBot: _
<DeBot> StringScanner#post_␣atc␣ [l:du] 4/12
konsolebox has joined #ruby
<sevenseacat> DeBot: h
<DeBot> StringScanner#post_␣atch [l:du] 4/12
<certainty> DeBot: c
<DeBot> StringScanner#post_␣atch [l:du] 4/12
<sevenseacat> i dont know what letter that is
<certainty> ah we ad that before
<jhass> DeBot: h
<DeBot> StringScanner#post_␣atch [l:du] 4/12
<sevenseacat> DeBot: m
<DeBot> StringScanner#post_match [l:du] 4/12 You won!
<sevenseacat> yay!
<jhass> lol
<certainty> lol
<jhass> anyone besides apeiros ever used StringScanner? :D
Takle has quit [Remote host closed the connection]
<apeiros> stringscanner is da bomb!
<certainty> yeah some years back when i was working on coderay
jheg has joined #ruby
<jhass> it reminds of Java, maybe that's why I never consider it :/
startupality has joined #ruby
adriancb has joined #ruby
<certainty> damn tests finished and they're failing. no more hangman for poor certainty
Lewix has joined #ruby
<sevenseacat> aww
mrbond has joined #ruby
* sevenseacat working on R4IA while fiance watches South Park in the background
joonty has joined #ruby
charliesome has quit [Quit: zzz]
<antlong> I'm looking for any input on how to connect to a redis instance hosted on Elasticache from Heroku without using SSH. TLS and spiped were mentioned, would anyone know of anything else I can investigate?
livathin_ has quit [Remote host closed the connection]
lanemeyer has quit [Ping timeout: 255 seconds]
Hounddog has quit [Ping timeout: 272 seconds]
livathinos has joined #ruby
<jhass> mmh, heroku blocks ssh?
<antlong> no, we implemented ssh initially but the latency was too great.
lkba_ has joined #ruby
<unshadow> Ok, it seems that text.gsub! is much faster then text = text.gsub
<jhass> ah
Hounddog has joined #ruby
<jhass> unshadow: well yes, it doesn't need to allocate a new string ;)
livathin_ has joined #ruby
<certainty> if nothing is updated it shouldn't matter because of cow
lkba has quit [Ping timeout: 252 seconds]
<unshadow> certainty and I talked about it before, just wanted to see how much faster, so I created a small test
<unshadow> and it seems its much faster
<certainty> unshadow: how did you test?
<certainty> ah ok
<certainty> let me quickly throw a benchmark-ips together
silkfox has joined #ruby
livathinos has quit [Ping timeout: 264 seconds]
<unshadow> cool :) I tried doing a benchmark but I have 0 expireance with it
blackmesa has quit [Ping timeout: 244 seconds]
AlexRussia has quit [Ping timeout: 244 seconds]
<certainty> unshadow: the thing is that you have to create a fresh string for every iteration in the gsub! branch. which impacts the result
<unshadow> yeha. but its the same for both, so what we care which is faster , not overall how much time it takes
joonty has quit [Quit: joonty]
govg_ has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
<certainty> i wonder if one could simply use a literal
bim has joined #ruby
<certainty> that saves the manual work of recreating the string but idk if ruby optimizes in any way
hanmac has quit [Ping timeout: 248 seconds]
govg has joined #ruby
joonty has joined #ruby
jottr_ has quit [Read error: Connection reset by peer]
kiri has quit [Ping timeout: 252 seconds]
<unshadow> I wonder if that will work XD
Takle has joined #ruby
m3nTe_ has joined #ruby
bim has quit [Ping timeout: 252 seconds]
<unshadow> SUPER_STRING = "cat dog whaaaa"; SUPER_STRNIG.gsub!('car', 'two cats')
ghostpl_ has joined #ruby
agrinb has joined #ruby
<unshadow> gsub! is slower ?!
rayleigh415 has joined #ruby
<certainty> :)
govg has quit [Quit: leaving]
dstarh has joined #ruby
m3nTe has quit [Ping timeout: 250 seconds]
govg has joined #ruby
<unshadow> wait, the test isn't good
<certainty> small literal string, doing nothing with it. that may impact the results
<unshadow> unused = "literalstring".gsub!(/era/,'o')
<unshadow> shuold be only "literalstring".gsub!(/era/,'o')
<unshadow> thats the all point
<unshadow> as it changes the value itself
RegulationD has joined #ruby
<certainty> that doesn't change much
agrinb has quit [Ping timeout: 256 seconds]
<certainty> the string has been updated in place before it is assigned. ruby has copy on write so that assignment doesn't hurt
spyderman4g63 has joined #ruby
kp666 has quit [Read error: Connection reset by peer]
<certainty> you can run the benchmark without the assignment and it doesn't change
startupality has quit [Quit: startupality]
rayleigh415 has quit [Ping timeout: 246 seconds]
<bradland> whether it's faster or not, it's still a poor style choice
mwmnj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
startupality has joined #ruby
_hollywood has joined #ruby
hpoydar has joined #ruby
<unshadow> true, not so much chages
<unshadow> from 1.03 to 1.01
<unshadow> intresting to know why
<unshadow> jhass, what's your take on this ?
<jhass> mh?
<certainty> bradland: depends if you have a fresh string it might make sense to use it, especially if you have an otherwise somewhat pure interface around it
RegulationD has quit [Ping timeout: 244 seconds]
<certainty> but generally i avoid it as well
MasterPiece has joined #ruby
sgambino has joined #ruby
<certainty> jhass: i think he means the runtime of #gsub vs. #gsub! in that little benchmark. The results appear to be a bit strange.
musashi1 has quit [Ping timeout: 272 seconds]
* jhass shrugs
<jhass> I don't give much to micro benchs tbh :)
hpoydar has quit [Ping timeout: 264 seconds]
<unshadow> certainty, when chaning this to work with a large file full of strings the pic looks different
<certainty> unshadow: i suspect that since the allocation work is bigger
amystephen has joined #ruby
krz has quit [Ping timeout: 255 seconds]
<certainty> it should perform better with bigger input
hectortrope has joined #ruby
<certainty> compared to the non-destructive version
tus has joined #ruby
tier has joined #ruby
sankaber has joined #ruby
<unshadow> and got
<unshadow> Comparison:
<unshadow> #gsub!: 94622.7 i/s
<unshadow> #gsub: 94210.8 i/s - 1.00x slower
Rapier- has joined #ruby
laudo has joined #ruby
armyriad has quit [Ping timeout: 252 seconds]
<certainty> unshadow: beware though that you didn't dup
<certainty> >> buf = "string"; not_a_copy = buf; not_a_copy.gsub!('i','o'); buf
<eval-in_> certainty => "strong" (https://eval.in/307609)
<unshadow> yeha, I did that :) so no dup
armyriad has joined #ruby
<unshadow> the bigger the file it seems the faster gsub! compares to gsub = gsub
ralku has quit [Quit: Textual IRC Client: www.textualapp.com]
<certainty> yeah that is expected
AlexRussia has joined #ruby
hanmac has joined #ruby
workmad3 has joined #ruby
workmad3 has quit [Client Quit]
urbanmonk has joined #ruby
krz has joined #ruby
christiandsg has joined #ruby
workmad3 has joined #ruby
slackbotgz has quit [Remote host closed the connection]
senayar has quit [Read error: No route to host]
slackbotgz has joined #ruby
unshadow has quit [Quit: leaving]
JDiPierro has joined #ruby
noname1 has quit [Ping timeout: 272 seconds]
startupality has quit [Quit: startupality]
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
agrinb has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
<r3dking> say I have an array that has elements like array[3] = "["", "37.145.136.226\n"]" but I only want the ipaddres in array[3], what an easy waht to flatten that?
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
jerius has joined #ruby
<r3dking> nevermind I figured it out
urbanmonk has quit [Quit: urbanmonk]
<colorados> diaspora interesting project
roolo_ has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
<ddv> r3dking: why do you have a such a weird array in the first place?
nettoweb has joined #ruby
<ddv> r3dking: maybe map it out to a struct or class
dblessing has joined #ruby
<r3dking> ddv: yep, that's exactly what I did, I fixed it first :)
amortimer has joined #ruby
roolo has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
delianides has joined #ruby
Soda has joined #ruby
xenokiller has quit [Ping timeout: 244 seconds]
haxrbyte has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
hiyosi has joined #ruby
michael_mbp has quit [Excess Flood]
shadoi1 has joined #ruby
livathin_ has quit [Remote host closed the connection]
ZJvandeWeg has joined #ruby
michael_mbp has joined #ruby
Dragonai has quit [Ping timeout: 246 seconds]
livathin_ has joined #ruby
haxrbyte has quit [Remote host closed the connection]
tvw has joined #ruby
RegulationD has joined #ruby
duggiefresh has joined #ruby
zenith_ has joined #ruby
freerobby has quit [Quit: Leaving.]
ahmetkapikiran has joined #ruby
laudo has quit [Quit: Page closed]
zcreative has joined #ruby
lavros has joined #ruby
symbol__ has quit [Ping timeout: 250 seconds]
yqt has joined #ruby
AlphaTech has quit [Quit: Connection closed for inactivity]
yalue has joined #ruby
_honning_ has joined #ruby
Megtastique has joined #ruby
thebatu1 has joined #ruby
<thebatu1> can someone tell me please what is << means in ruby ?
Channel6 has joined #ruby
<bradland> thebatu1: << is an operator that can do different things depending on the receiver
<bradland> thebatu1: if you go here, you can find << in the list of methods: http://ruby-doc.org/core-2.2.1/
shredding has joined #ruby
<bradland> as an aside, does anyone know why typing '<<' in to the method filter box fails to find any << methods?
konsolebox has quit [Quit: Leaving]
<bradland> thebatu1: you can use your browsers "find on page" feature to search for <<
<bradland> << is defined for Array, Bignum, Fixnum, IO, Queue, SizedQueue, and String
<bradland> in Core anyway
<thebatu1> lets say in this context """ product.posters << create(:poster, product: product) """" ?
jottr_ has joined #ruby
<bradland> so, product.posters is a variable with a method call
hgl has quit [Ping timeout: 250 seconds]
<bradland> product is the variable, and posters is the method call
adriancb has quit [Remote host closed the connection]
<bradland> what << does will depend on the return value of the posters method in this case
<bradland> in most cases, << is used for appending
<bradland> what type of project is this? rails?
<thebatu1> I see I see. most helpful ty
davispuh has joined #ruby
<thebatu1> yes its rails
<adaedra> choo choo
<thebatu1> this code is taken from a factoryGirl code
<bradland> ok, so product is probably an ActiveRecord query result, and posters is an association, which would also make it an ActiveRecord object
<bradland> that's a guess though
<bradland> you can know for sure by logging the output of 'product.posters.inspect' just before that line
delianides has quit [Remote host closed the connection]
<bradland> there's a nice guide to logging on the debugging rails applications page: http://guides.rubyonrails.org/debugging_rails_applications.html
<bradland> also, the channel #rubyonrails has lots of very knowledgable Rails folks
hgl has joined #ruby
<bradland> this channel tends to focus more on generalized ruby questions
livathin_ is now known as livathinos
<thebatu1> @ bradland thanks, that was clear.
<bradland> sure thing
delianides has joined #ruby
kyrylo has joined #ruby
<certainty> thinking of it php is actually a pretty good language to teach
<certainty> i mean to teach how a programming language should not work
<adaedra> if you want to teach bad practice…
O_the_Del has joined #ruby
triple_b has joined #ruby
lanemeyer has joined #ruby
Takle has quit [Remote host closed the connection]
dfinninger has joined #ruby
serivichi has quit [Ping timeout: 255 seconds]
dfinninger has quit [Remote host closed the connection]
triple_b_ has joined #ruby
serivichi has joined #ruby
teddyp1cker has joined #ruby
kyrylo_ has joined #ruby
triple_b has quit [Ping timeout: 246 seconds]
kyrylo has quit [Ping timeout: 265 seconds]
Takle has joined #ruby
<amortimer> Is there a road map for Ruby to support HTTP 2?
enebo has joined #ruby
huddy has joined #ruby
riotjones has joined #ruby
<amortimer> I’m concerned with how Ruby will handle HTTP 2 multiplexing
Juanchito has joined #ruby
fryguy9 has joined #ruby
_maes_ has joined #ruby
shazaum has joined #ruby
teddyp1cker has quit [Ping timeout: 248 seconds]
jconnolly has joined #ruby
arup_r_ has quit [Remote host closed the connection]
symbol__ has joined #ruby
teddyp1cker has joined #ruby
albedoa has joined #ruby
nfk|laptop has joined #ruby
ChasedSpade has quit [Quit: No reason specified.]
noname1 has joined #ruby
symbol__ has quit [Client Quit]
riotjones has quit [Ping timeout: 272 seconds]
elfuego has joined #ruby
symbol has joined #ruby
<elfuego> I have api application, and I want to document the functionality of each endpoint, I came across rdoc, but I was wondering if there was a more specialized tool for documenting ruby api applications.
ArchRogem has quit [Read error: Connection reset by peer]
awwaiid has joined #ruby
ChasedSpade has joined #ruby
<awwaiid> er... does anyone know what the gem is that makes it _look_ like all rspec tests are passing? com.google is failing me.
teddyp1cker has quit [Ping timeout: 246 seconds]
tagrudev has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
lolmaus has quit [Quit: Konversation terminated!]
aganov has quit [Remote host closed the connection]
shazaum has quit [Ping timeout: 248 seconds]
hiyosi has quit [Quit: Textual IRC Client: www.textualapp.com]
paulcsmith_ has joined #ruby
yqt has quit [Ping timeout: 272 seconds]
<thebatu1> I find my self unable to understand the synatx and code of a rails application. to solve this, I decided to purchase a book "lean ruby the hard way" , but I dont really have time and I want some advanced crash course on ruby, any recommendations ?
noname1 has quit [Ping timeout: 265 seconds]
Feyn has quit [Quit: Leaving]
last_staff has quit [Quit: last_staff]
fgo has quit [Quit: WeeChat 1.1.1]
ghr has quit [Read error: No route to host]
ghr has joined #ruby
<adaedra> Look at ruby projects
willharrison has joined #ruby
kyrylo__ has joined #ruby
jwinder has joined #ruby
lolmaus has joined #ruby
kyrylo_ has quit [Ping timeout: 264 seconds]
<thebatu1> yea good idea I will have a look in github
nettoweb_ has joined #ruby
wicope has joined #ruby
davedev2_ has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
Flowrhent has joined #ruby
nettoweb has quit [Ping timeout: 255 seconds]
Channel6 has quit [Quit: Leaving]
hpoydar has joined #ruby
agarie has joined #ruby
iamjarvo has joined #ruby
aclearma_ has joined #ruby
dEPy has quit [Ping timeout: 252 seconds]
<r3dking> Question
<wasamasa> amortimer: way too early for that
<wasamasa> amortimer: heck, http2 could be a failure
marr has quit [Ping timeout: 256 seconds]
aclearman037 has quit [Ping timeout: 250 seconds]
<r3dking> I have a hash which has an instance number as the key, and then a time stamp, and ip address as the value.... basically want I want to do, is figure out a way to count all of occrances of uniq ip address in a one hour time frame
mistermocha has joined #ruby
<r3dking> this is my code so far
<r3dking> anyone got any ideas?
<wasamasa> sounds like someone's reinventing SQL
chthon has quit [Ping timeout: 244 seconds]
<sweeper> sounds like a good plan
<sweeper> r3dking: if for some reason you don't want to use a data store that provides this sort of thing, what you would need is another hash, prolly with the ip as key
jlast has joined #ruby
<agarie> hmm, how about in-memory SQLite?
<jhass> r3dking: you can turn on syntax highlighting on gist by naming your files something.rb and you can add multiple files to a gist
Beliq has joined #ruby
<r3dking> sweeper: thanks, but how can I have the ip as the key if the ip repeats?
startupality has joined #ruby
<sweeper> r3dking: the value would be an array
livathinos has quit []
mistermocha has quit [Ping timeout: 256 seconds]
haxrbyte has joined #ruby
paulfm has joined #ruby
<r3dking> sweeper: the value would be an array of what?
<agarie> maybe the timestamp?
<agarie> ip => [timestamp]
O_the_Del has left #ruby ["Leaving..."]
ekaleido has joined #ruby
nettoweb has joined #ruby
<wasamasa> r3dking: I'd group the data by hour, then select all unique IP-adresses of each group
<jhass> ^
nettoweb_ has quit [Ping timeout: 265 seconds]
<r3dking> I am dealing with alot of hits, the timestamp and ip might be the same over and over again
<wasamasa> r3dking: that kind of operation is pretty common for a relational database
startupality has quit [Client Quit]
<jhass> r3dking: and if you did that, please, please come back for a style review :)
ghostpl_ has quit [Remote host closed the connection]
icedp has quit [Remote host closed the connection]
<sweeper> r3dking: an array of {instance number, timestamp}, sorted by timestamp
<wasamasa> some people feel uncomfortable with letting a disk-backed database handle that and put redis between it and their server
<wasamasa> for ZOMGSPEED
<r3dking> sweeper the data is already stored by instance number, if you think about it
User458764 has joined #ruby
<User458764> Hi, how do I 'rescue' an error like this one: File exists @ sys_fail2 - ?
<jhass> User458764: full error message and we can dissect it together ;)
shadoi1 has quit [Quit: Leaving.]
JDiPierro has joined #ruby
ghostpl_ has joined #ruby
OtterCoder has joined #ruby
<sweeper> r3dking: right, so what I'm saying is you need to pivot your data to do what you want, OR just use a store that supports this operation
<User458764> jhass, thanks :) here is the error log http://pastie.org/10067352
<r3dking> sweeper: I think I understand you, the problem is, the machines I have to run this on can't have anymore "stuff" installed on them
<sweeper> r3dking: ok, then just use a second hash, structured the way you need it
<jhass> User458764: uh, I expected some more output for some reason, does it change with --trace ?
<sweeper> r3dking: although I'd be surprised if you couldn't get sqlite in there somehow
haxrbyte has quit [Remote host closed the connection]
<r3dking> sweeper I got ya, but my manager is strict
<r3dking> uber secure due to the student data we deal with
<User458764> jhass, here with the trace argument http://pastie.org/10067359
nii2361 has joined #ruby
thebatu1 has quit [Ping timeout: 264 seconds]
rbennacer has joined #ruby
<wasamasa> doesn't ruby have sqlite3 as dependency?
<wasamasa> or a dbm-style key-value store?
<jhass> User458764: mkay weird. So the even more generic way to find out the class would be to do an open rescue => e; p(e.class); end
<wasamasa> well, python should definitely have sqlite3 as dependency
paulfm has quit [Quit: Zzzzz...]
<User458764> jhass right :) I will do that
<jhass> User458764: but! Now you would be doing control flow with exceptions, there are two better solutions here
<jhass> User458764: 1) Use File.exist before attempting the symlink
<r3dking> sweeper: so if I created a second hash, say with the "ip" as the key, and the "instance and timestamp" as value... what would I do with the two hashes next?
JDiPierro has quit []
<jhass> User458764: or 2) use a Rake rule which won't run if the target file already exists
DigitallyBorn has joined #ruby
<User458764> jhass, ok good I will use a simple File.exists? good
bMalum has joined #ruby
chthon has joined #ruby
<jhass> r3dking: I seem to have missed it, why doesn't wasamasas suggestion work again?
<jhass> simply group by the hour and uniq the ips?
Kricir has joined #ruby
quimrstorres has joined #ruby
OtterCoder has quit [Quit: No Ping reply in 180 seconds.]
OtterCoder has joined #ruby
mitchellhenke has joined #ruby
<wasamasa> jhass: it's too easy!
<r3dking> jhass: which suggestion by wasamasa? I can't use a relational database, everything has to be done in plain jane ruby
quimrstorres has quit [Remote host closed the connection]
<jhass> r3dking: the one I just restated
quimrstorres has joined #ruby
<wasamasa> r3dking: just because GROUP BY and UNIQUE are sql things doesn't mean you can't do them in plain ruby
paulfm has joined #ruby
<r3dking> wasamasa: oh
<r3dking> wasamasa: could you point me in the reight direction then? https://gist.github.com/rcsavage/37cd3c8747a28a9cf0b4
<wasamasa> though, Enumerable#group_by should do something slightly different :P
anarang has quit [Quit: Leaving]
mbeasley has quit [Quit: WeeChat 0.4.2]
<wasamasa> oh, it actually does the right thing
<agarie> yep
<wasamasa> well, that's nice
<agarie> I've used it yesterday as a matter of fact :)
<wasamasa> and instead of UNIQUE it's uniq
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
<User458764> How do I delete a file interactively?
<r3dking> Alright, I'll give it a shot, so how can I group my current data by hour? I have never done that before
<jhass> r3dking: .group_by {|timestamp, ip| timestamp.hour } ?
jayeshsolanki has joined #ruby
<jhass> User458764: nothing inbuilt, gotta code that up yourself with gets
<r3dking> jhass: I am not using a real timestamp function to get the time/date
<jhass> but you could
<r3dking> it's read in from the log file I am parsing
startupality has joined #ruby
<jhass> strptime is great
<wasamasa> r3dking: well, dissect the timestamp yourself then
<wasamasa> r3dking: I recommend using something like `pry` for interactive experimentation
jenrzzz has quit [Ping timeout: 256 seconds]
jayeshsolanki has quit [Max SendQ exceeded]
<r3dking> 22/Mar/2015:13:38:34 thats what my time string looks like
jayeshsolanki has joined #ruby
<adaedra> What a nice time string
<adaedra> I prefer the YYYY-MM-DD HH:MM:SS format, personnaly.
<wasamasa> aka almost iso 8601
<adaedra> What’s missing?
<r3dking> adaedra I didn't make the format
<amortimer> Thanks wasamasa, I’m just really concerned about it.
<adaedra> I didn’t say you did
jayeshsolanki has quit [Max SendQ exceeded]
<wasamasa> adaedra: a T between the date and time
<adaedra> ah
<User458764> jhass thanks what means 'chomp' in gets.chomp?
jayeshsolanki has joined #ruby
<adaedra> !doc String#chomp
<agarie> I prefer UNIX time, I hate dealing with timezones =/
<jhass> User458764: check the docs ;)
<wasamasa> no clue why it's present in canonical timestamps of that format, but it is and if you use something different, parsers trip up
<agarie> (I work with data from several different countries)
<r3dking> ok thx evry1 ill mess around with these now
mbeasley has joined #ruby
<adaedra> I’m not sure UNIX time will free you from timezones
<wasamasa> ^
<wasamasa> time fucks everyone over :>
<adaedra> Time zone are horrible, man.
<adaedra> zones*
<adaedra> Well, time as a whole, is horrible to manage.
<adaedra> Between times zones, DST, February 29th, different formats for different countries, america using MDY, leap seconds, and many other things
<adaedra> You’re on for a wild ride.
<agarie> indeed, it doesn't fix the problem, but if I change everything to unix time, at least I don't have to think about it
<agarie> yep
<agarie> time is a MESS
<workmad3> agarie: unix time doesn't always cope with leap seconds nicely
haxrbyte has joined #ruby
<adaedra> What if I tell you 2015-06-31 23:59:60 is a valid time?
chinmay_dd has joined #ruby
andikr has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
<workmad3> adaedra: depends on which timezone you're in, and how they deal with leapseconds ;)
<agarie> I'll open the whiskey in my drawer
* wasamasa shakes fist at leap seconds
bal has quit [Read error: Connection reset by peer]
<wasamasa> worst of it all is that they're real
<adaedra> ^
<workmad3> adaedra: it's valid in UTC, for example, but in GMT it wouldn't be... instead they just 'tick twice' on 23:59:59
<adaedra> fascinating
* workmad3 hands adaedra the top-shelf liquor
<agarie> workmad3: do you have more info on that? I didn't know about it :P
christiandsg has quit [Quit: Leaving...]
* adaedra gets a bottle of milk
<workmad3> agarie: best advice I can give? just use date and time libraries and trust them to deal with things correctly
<amortimer> wasamasa: Is HTTP 2 multiplexing something that Ruby can handle?
<workmad3> agarie: they won't... but they'll do a better job than you would!
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<agarie> that does make sense!
<wasamasa> amortimer: I don't see why it shouldn't
ndrei has quit [Ping timeout: 264 seconds]
matadoer has quit [Ping timeout: 252 seconds]
<wasamasa> amortimer: most likely an external C library will do the job
<workmad3> agarie: someone flagged up a really weird edge-case in singapore's timezone from near the start of the 20th century last week :)
sevvie has quit [Remote host closed the connection]
noname1 has joined #ruby
sevvie has joined #ruby
<workmad3> agarie: where there's just some skipped seconds... and when they 'happened' keeps on getting revised
cpt_yossarian has quit [Ping timeout: 272 seconds]
<wasamasa> amortimer: similiar to how `curl` does it: http://curl.haxx.se/dev/readme-http2.html
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<wasamasa> amortimer: though, hmm, they don't do multiplexing yet
DexterLB has joined #ruby
haxrbyte has quit [Remote host closed the connection]
matadoer has joined #ruby
<workmad3> gah, my memory isn't what it used to be... s/singapore/shanghai
alex88 has joined #ruby
<agarie> holy shit...
lxsameer has quit [Quit: Leaving]
d10n-work has joined #ruby
<wasamasa> tl;dr: timezone madness happens for political reasons
<amortimer> Thanks wasamasa, I’m still trying to wrap my head around all of it .
znst has joined #ruby
Zai00 has quit [Quit: Zai00]
<workmad3> agarie: and then there's bombay, which used a timezone of +0451 until 1955... https://en.wikipedia.org/wiki/UTC%2B04:51
Deckon has joined #ruby
<Deckon> hello
<jhass> hi
<workmad3> agarie: samoa 'skipped' december 30th, 2011 too... ;)
bline79 has quit [Quit: Lost terminal]
bMalum has quit [Quit: bMalum]
rayleigh415 has joined #ruby
<workmad3> as wasamasa said, timezones are a weird, political, economic and historical mess
chinmay_dd has quit [Ping timeout: 250 seconds]
<Deckon> I'm cheking the squared binomial, but I get diferent results(by tenths) using floating data, someone knows why?
<wasamasa> let's celebrate by reinventing time handling with a self-written calendar application!
<wasamasa> Deckon: don't use floats for CAS
sevvie has quit [Ping timeout: 252 seconds]
<workmad3> wasamasa: only if it can use a sane calendar... maybe something like federation stardates?
<Deckon> warreng, sorry, what is a CAS?
<wasamasa> Deckon: or at the very least, keep track of calculation errors since these add up
crueber has joined #ruby
<wasamasa> computer-algebra-system
haxrbyte has joined #ruby
<wasamasa> it's less obvious for general calculations, but you need to be aware that floats are approximate
iamninja has quit [Read error: Connection reset by peer]
<Deckon> ok
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Deckon> thanks wasamasa
einarj has quit [Remote host closed the connection]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<wasamasa> for a quick fix, you can use the Decimal class in ruby
iamninja has joined #ruby
einarj has joined #ruby
<jhass> for the background
<wasamasa> which I'd generally do for anything involving critical stuff like currencies :P
ahmetkapikiran has quit [Quit: ahmetkapikiran]
stef204 has joined #ruby
jefus_ has joined #ruby
ujjain has joined #ruby
joonty has quit [Quit: joonty]
rayleigh415 has quit [Ping timeout: 250 seconds]
lolmaus has quit [Ping timeout: 246 seconds]
joonty has joined #ruby
sevenseacat has quit [Quit: Textual IRC Client: www.textualapp.com]
delianides has quit [Remote host closed the connection]
jefus has quit [Ping timeout: 252 seconds]
ojacobson has left #ruby ["Linkinus - http://linkinus.com"]
hs366 has quit [Quit: Leaving]
bMalum has joined #ruby
<Deckon> ok, thanks for the explanation,
Tomasso has joined #ruby
sevvie has joined #ruby
hpoydar has quit []
<Tomasso> hey I get a json via rest client api, and there is one spanish word for example "opción" , the thing is that I got it as "opci\xE2\x94\x9C\xE2\x94\x82n" and there are manymany examples like that, my json parsing is failiing and I think is due to that. I try to autodetect encoding pasting text on the internet and it say KO :S what should i do ?
dfinninger has joined #ruby
MatthewsFace has joined #ruby
<bradland> Tomasso: going to need to understand your problem description a little bit better.
agrinb has quit [Remote host closed the connection]
<bradland> When you say "I get a json via rest client api", who controls this API? They should tell you the text encoding you expect.
<bradland> Rather than guessing.
agrinb has joined #ruby
<bradland> Guessing at text encoding is difficult.
<Tomasso> bradland: the problem is that i control it myself xD
<bradland> haha, ok
haxrbyte has quit [Remote host closed the connection]
<bradland> so what you need to do is make your encoding consistent throughout the application
vyorkin has joined #ruby
<bradland> UTF-8 is recommended in most cases.
<bradland> you start at the client and work your way up through the stack.
<Tomasso> yeahh,, gotta check that..
axl_ has joined #ruby
MatthewsFace has quit [Ping timeout: 256 seconds]
Mon_Ouie has joined #ruby
ahmetkapikiran has joined #ruby
milesmatthias has joined #ruby
sevvie has quit [Remote host closed the connection]
<bradland> looks like you might still have to force_encoding('UTF-8')
agrinb has quit [Ping timeout: 265 seconds]
<bradland> because of Net::HTTP (which underlies restclient)
paulfm_ has joined #ruby
<bradland> depending on your ruby version
chinmay_dd has joined #ruby
<bradland> welcome to text encoding hell
<bradland> lol
paulfm has quit [Read error: Connection reset by peer]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bMalum has quit [Quit: bMalum]
bMalum has joined #ruby
Zai00 has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
startupality has quit [Quit: startupality]
paulfm_ has quit [Client Quit]
f3lp has quit [Ping timeout: 248 seconds]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
sevvie has joined #ruby
gr33n7007h has quit [Quit: WeeChat 1.1.1]
Rodya_ has joined #ruby
milesmatthias has quit [Remote host closed the connection]
User458764 has joined #ruby
Rephiax has joined #ruby
senayar has quit [Remote host closed the connection]
lolmaus has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
startupality has joined #ruby
startupality has quit [Client Quit]
_ixti_ is now known as ixti
kyrylo has joined #ruby
spyderma_ has joined #ruby
paulfm has joined #ruby
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
milesmatthias has joined #ruby
spyderman4g63 has quit [Ping timeout: 246 seconds]
agrinb has joined #ruby
kyrylo__ has quit [Ping timeout: 250 seconds]
m3nTe_ is now known as m3nTe
_ixti_ has joined #ruby
chthon has quit [Ping timeout: 244 seconds]
spyderman4g63 has joined #ruby
User458764 has quit [Ping timeout: 256 seconds]
ixti has quit [Ping timeout: 244 seconds]
Pharaoh2_ has joined #ruby
User458764 has joined #ruby
willharrison has joined #ruby
spyderma_ has quit [Ping timeout: 265 seconds]
gsd has joined #ruby
sevvie has quit [Ping timeout: 244 seconds]
User458764 has quit [Client Quit]
senayar has joined #ruby
senayar has joined #ruby
delianides has joined #ruby
Pharaoh2 has quit [Ping timeout: 265 seconds]
closures999 has joined #ruby
endash has quit [Quit: endash]
endash has joined #ruby
fryguy9 has quit [Quit: Leaving.]
kaspernj has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
ekaleido has quit [Ping timeout: 252 seconds]
fryguy9 has joined #ruby
Morkel has quit [Quit: Morkel]
jaequery has joined #ruby
Rodya_ has quit [Remote host closed the connection]
spyderman4g63 has quit [Remote host closed the connection]
<jhass> DeBot: !hangman gems
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<jhass> DeBot: _-
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣-␣␣␣␣␣␣ [_] 1/12
ascarter has joined #ruby
<crowell> DeBot: e
<DeBot> ␣e␣␣␣␣␣␣␣␣␣-␣␣␣␣e␣ [_] 1/12
chthon has joined #ruby
<jhass> DeBot: onsta
<DeBot> testa␣␣␣␣t␣-␣␣␣␣e␣ [_on] 3/12
<crowell> DeBot: data
<DeBot> testa␣␣␣␣t␣-d␣␣␣e␣ [_on] 3/12
spyderman4g63 has joined #ruby
<jhass> DeBot: i
<DeBot> testa␣i␣it␣-d␣i␣e␣ [_on] 3/12
<bradland> oh
<bradland> i know it
ascarter has quit [Max SendQ exceeded]
<jhass> :o
ascarter has joined #ruby
<bradland> care if i throw a guess at it?
<jhass> go ahead
<bradland> DeBot: r
<DeBot> testa␣i␣it␣-dri␣er [_on] 3/12
<jhass> I still have no idea :P
<bradland> haha :)
<bradland> DeBot: by
<DeBot> testabi␣ity-dri␣er [_on] 3/12
<jhass> DeBot: lv
<DeBot> testability-driver [_on] 3/12 You won!
ascarter has quit [Max SendQ exceeded]
<colorados> prefer pop music
<bradland> o/
Parker0 has joined #ruby
milesmatthias has quit [Remote host closed the connection]
ascarter has joined #ruby
ekaleido has joined #ruby
<shevy> blender-2.74.tar.xz 31M
ndrei has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<bradland> huzzah
<shevy> good software must be huge
<bradland> that's actually pretty small considering what blender is
<shevy> one day I shall reach a ruby project with 1M
<shevy> bradland yeah you are actually right
paulfm has quit [Quit: Goodbye]
<bradland> i bet there are texture libraries and such included in there
<shevy> they did a few animated movies too I think, through blender
<bradland> yep
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> The rails gem is: rails-4.1.1.gem Size: 1_436_672
<shevy> so one and a half MB
<bradland> gems are gzip'd, yeah?
jheg has quit [Quit: jheg]
<shevy> that's pretty small too, though of course a lot of functionality is distributed into other gems like the active* ones
<shevy> I think so
triple_b_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> I guess if it were .tar.xz too, it would be a bit smaller, perhaps 20%? or something like that
lennae has joined #ruby
Takle has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
<bradland> depends on what settings are used when packing a gem
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Filete has joined #ruby
zenith__ has joined #ruby
<bradland> generall, recompressing compressed files won't get you 20%
<bradland> unless someone really preferred speed over compression
serivichi has quit [Ping timeout: 255 seconds]
Dude007 has joined #ruby
ahmetkapikiran has quit [Client Quit]
agarie has quit [Remote host closed the connection]
zenith_ has quit [Ping timeout: 256 seconds]
Crisix has joined #ruby
Crisix has quit [Client Quit]
Deckon has quit [Quit: Leaving]
Flowrhent has quit [Remote host closed the connection]
tobago has quit [Remote host closed the connection]
Flowrhent has joined #ruby
basiclaser has quit [Quit: Connection closed for inactivity]
djbkd has joined #ruby
tercenya_ is now known as tercenya
<jhass> I think .gem's are .zip's like .jar's are, no?
Tomasso has quit [Quit: Page closed]
_ixti_ is now known as ixti
<bradland> good info on what a .gem file actually is
ki0 has quit [Ping timeout: 244 seconds]
<jhass> and yeah, even most of the meat of Rails that isn't in active* is in railtie
closures999 has quit []
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_maes_ has joined #ruby
<bradland> anyone have a pneumonic they use for remembering to use 'stat -x' for labeled output on BSD systems?
roshanavand has joined #ruby
<bradland> not OT or anything....
rippa has joined #ruby
armyriad has quit [Ping timeout: 264 seconds]
cittatva has joined #ruby
_blizzy_ has quit [Ping timeout: 272 seconds]
jimms has joined #ruby
beneggett has joined #ruby
OtterCoder has quit [Read error: Connection reset by peer]
Biopandemic has joined #ruby
Biopandemic has joined #ruby
Takle has joined #ruby
bigmac has quit [Ping timeout: 256 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
haxrbyte has joined #ruby
<bradland> shevy: heh, i't smostly markdown files. very large markdown files. http://i.imgur.com/KxKP6fq.png
User458764 has joined #ruby
beneggett has quit [Client Quit]
roshanavand has quit [Ping timeout: 255 seconds]
hanmac has quit [Ping timeout: 265 seconds]
OtterCoder has joined #ruby
davedev24_ has joined #ruby
teddyp1cker has joined #ruby
duggiefresh has quit [Remote host closed the connection]
duggiefresh has joined #ruby
<DigitallyBorn> To avoid db calls in a loop, I would like to fetch the results from a lookup table into a variable and locate a row. What's the best way to do this?
jaequery has joined #ruby
<jhass> DigitallyBorn: what ORM?
mleung has joined #ruby
teddyp1cker has quit [Ping timeout: 244 seconds]
msgodf has quit [Ping timeout: 244 seconds]
adriancb has joined #ruby
<DigitallyBorn> jhass: ActiveRecord
<jhass> can't you use eager loading?
Jackneill has joined #ruby
Takle has quit [Remote host closed the connection]
<DigitallyBorn> jhass: Forgive me .. I'm a week into ruby (after flushing 15 years as a MS developer :D )
<DigitallyBorn> jhass: Can you elaborate or blog post link me?
Takle has joined #ruby
kaffepanna has quit [Ping timeout: 245 seconds]
<jhass> also make sure to ask Rails related questions in #RubyOnRails ;)
<DigitallyBorn> jhass: Will do. Thanks.
jaequery has quit [Ping timeout: 256 seconds]
duggiefresh has quit [Ping timeout: 272 seconds]
mistermocha has joined #ruby
vtunka has joined #ruby
rayleigh415 has joined #ruby
jottr_ has quit [Ping timeout: 272 seconds]
haxrbyte has quit [Remote host closed the connection]
mistermo_ has joined #ruby
GnuYawk has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dx7 has joined #ruby
MatthewsFace has joined #ruby
jwinder has quit [Ping timeout: 264 seconds]
GnuYawk has quit [Client Quit]
milesmatthias has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
<yh> DigitallyBorn: don't know how someone can spend 15 years doing that
bricker has joined #ruby
<yh> I mean, I wouldn't even know how to get started with MS stuff, it feels a lot more effort (and a lot less return)
rayleigh415 has quit [Ping timeout: 252 seconds]
<yh> You must have been indoctrinated young
sevvie has joined #ruby
hanmac has joined #ruby
kblake has joined #ruby
bigmac has joined #ruby
<bradland> meh, of all the things microsoft produces, their development tools are some of the better elements of their line up
<mikecmpbll> >> [1,2,3].find{|i| i==0}
<eval-in_> mikecmpbll => nil (https://eval.in/307690)
GnuYawk has joined #ruby
shellfu has joined #ruby
MatthewsFace has quit [Ping timeout: 255 seconds]
<bradland> mikecmpbll: what were you expecting?
FF_ has joined #ruby
<mikecmpbll> bradland: exactly that :)
<bradland> ah
<bradland> irc as irb :)
<mikecmpbll> just producing the copy-paste for a discussion in #rubyonrails
<mikecmpbll> ;)
Hijiri has quit [Quit: WeeChat 1.0.1]
lennae has quit [Ping timeout: 255 seconds]
Flowrhent has quit [Ping timeout: 272 seconds]
<m3nTe> hi guys, ActionDispatch::ParamsParser is slow actually, on new relic I can saw it takes 2,470I 99.84% ActionDispatch::ParamsParser/call
<m3nTe> there's any way/trick to optimize that?
<jhass> m3nTe: #RubyOnRails
<m3nTe> jhass: thx
<jhass> yw
chinmay_dd has quit [Ping timeout: 244 seconds]
terlar has quit [Ping timeout: 248 seconds]
nettoweb has joined #ruby
<m3nTe> jhass: lol, the channel is moderated actually
<m3nTe> I can't even talk :)
n80 has joined #ruby
cjim has joined #ruby
<jhass> m3nTe: /msg NickServ help ;)
GnuYawk has quit [Quit: WeeChat 1.0]
<m3nTe> I see
<m3nTe> ..
GnuYawk has joined #ruby
<m3nTe> I don't even remember my password
<m3nTe> ;)
<jhass> heh
<jhass> there's a password reset thingy :P
<bradland> what's the dealio with that anyway? was there some kind of event that precipitated the nickserv requirement?
<jhass> iirc
<bradland> or just everyone got tired of the abuse
<jhass> bradland: probably the later, it keeps the webchatters out
<bradland> so we get them here. heh.
<jhass> yeah
<bradland> no offense m3nTe
<jhass> !rails
<helpa> RIP
<jhass> mh
<bradland> lmao
icebourg has joined #ruby
<jhass> does anybody need that in #ror or can I override that? :P
<jhass> ah, wait, actually I can't override
<jhass> mmh
<jhass> any ideas for another good key?
<jhass> !ror
<helpa> Please ask Ruby on Rails questions in the #rubyonrails channel.
<jhass> \o/
<bradland> /o/
<jhass> I wanted one explaining nickserv though :/
<jhass> I got as a local macro:
<jhass> : Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
<bradland> i only got the first sentence
Takle has quit [Remote host closed the connection]
<bradland> well, not even. what's a local macro?
zenith__ has quit [Ping timeout: 250 seconds]
<jhass> something I made up
<bradland> you have your client configured to remind you? lol ;)
<jhass> weechat has a way to create aliases
<jhass> so I made an alias for that :D
<bradland> ah
<jhass> /rails nick and I say that :D
Mives has joined #ruby
GnuYawk has quit [Quit: WeeChat 1.0]
ki0 has joined #ruby
GnuYawk has joined #ruby
paulcsmith_ has quit [Quit: Be back later ...]
Pharaoh2_ is now known as Pharaoh2
tier_ has joined #ruby
joonty has quit [Quit: joonty]
HakN99 has joined #ruby
selu has quit [Quit: Textual IRC Client: www.textualapp.com]
mjuszczak has joined #ruby
tier has quit [Ping timeout: 252 seconds]
mistermocha has joined #ruby
Takle has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
oo_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
vyorkin has quit [Ping timeout: 256 seconds]
mistermo_ has quit [Ping timeout: 252 seconds]
spider-mario has joined #ruby
agarie has joined #ruby
ghostpl_ has joined #ruby
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
ndrei has quit [Ping timeout: 272 seconds]
senayar has quit []
enterprisedc has joined #ruby
HakN99 has quit [Quit: Peace!]
oo_ has quit [Ping timeout: 252 seconds]
mjuszczak has quit []
beneggett has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
HakN99 has joined #ruby
lioninawhat has joined #ruby
HakN99 has quit [Client Quit]
beneggett has quit [Client Quit]
jaequery has joined #ruby
rbennacer has joined #ruby
leslie has quit [Quit: Have you ever tried to eat a clock? It's very time consuming.]
blackmesa has joined #ruby
lemur has joined #ruby
leslie has joined #ruby
leslie has quit [Changing host]
leslie has joined #ruby
GaryOak_ has joined #ruby
Hobogrammer has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
alex88 has quit []
Zai00 has quit [Quit: Zai00]
chinmay_dd has joined #ruby
zenith_ has joined #ruby
bigmac has quit [Ping timeout: 252 seconds]
ekaleido has quit [Ping timeout: 256 seconds]
ekaleido has joined #ruby
ekaleido has quit [Changing host]
ekaleido has joined #ruby
bigmac has joined #ruby
aswen has quit [Ping timeout: 248 seconds]
havenwood has joined #ruby
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
ndrei has joined #ruby
Asher has quit [Remote host closed the connection]
ascarter has joined #ruby
paulcsmith_ has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
MatthewsFace has joined #ruby
ascarter has quit [Max SendQ exceeded]
LudicrousMango has joined #ruby
MatthewsFace has quit [Read error: Connection reset by peer]
edwinvdgraaf has quit [Ping timeout: 250 seconds]
MatthewsFace has joined #ruby
ascarter has joined #ruby
zenith_ has quit [Remote host closed the connection]
ebbflowgo has quit [Read error: Connection reset by peer]
allenn has quit [Remote host closed the connection]
fryguy9 has quit [Quit: Leaving.]
ebbflowgo has joined #ruby
Dude007 has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 272 seconds]
Cache_Money has joined #ruby
bim has joined #ruby
rikai has quit [Read error: Connection reset by peer]
nfk|laptop has quit [Quit: yawn]
it_tard has joined #ruby
S` has quit [Ping timeout: 248 seconds]
rikai has joined #ruby
S` has joined #ruby
elfuego has quit [Quit: elfuego]
vtunka has quit [Quit: Leaving]
Cust0sL1men has quit [Ping timeout: 272 seconds]
tus has quit [Ping timeout: 248 seconds]
colorados has quit [Quit: colorados]
ebbflowgo has quit [Read error: Connection reset by peer]
colorisco has joined #ruby
chthon has quit [Ping timeout: 244 seconds]
ebbflowgo has joined #ruby
jimms has quit [Ping timeout: 245 seconds]
Mives has quit [Quit: WeeChat 1.1.1]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
devoldmx_ has joined #ruby
jerematic has quit [Remote host closed the connection]
JimmyNeutron has joined #ruby
mitchellhenke has joined #ruby
spider-mario has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby
spider-mario has joined #ruby
milesmatthias has quit [Remote host closed the connection]
tomeara has joined #ruby
freerobby has joined #ruby
Takle has quit [Remote host closed the connection]
nettoweb_ has joined #ruby
jerematic has joined #ruby
sigurding has joined #ruby
niftylettuce has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Ping timeout: 252 seconds]
nettoweb has quit [Ping timeout: 252 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
piotrj has joined #ruby
noname1 has quit [Ping timeout: 244 seconds]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
paulcsmith_ has quit [Quit: Be back later ...]
albedoa has quit [Ping timeout: 265 seconds]
Takle has joined #ruby
jottr_ has joined #ruby
The_Phoenix has joined #ruby
iliketurtles has joined #ruby
paulcsmith_ has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
milesmatthias has joined #ruby
Soda has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
yh__ has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
lemur has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
Hijiri has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
RegulationD has quit [Remote host closed the connection]
shadeslayer has quit [Ping timeout: 264 seconds]
The_Phoenix has joined #ruby
jayeshsolanki has quit [Quit: bye!]
yh has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
shadeslayer has joined #ruby
jonatin has joined #ruby
gfawcettpq has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
Takle has joined #ruby
B1n4r10 has joined #ruby
GnuYawk has quit [Ping timeout: 248 seconds]
B1n4r10 has quit [Client Quit]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yh__ has quit [Ping timeout: 248 seconds]
B1n4r10 has joined #ruby
civim has joined #ruby
B1n4r10 has quit [Client Quit]
Aswebb_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
davidhq has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
ghr has joined #ruby
ghr has quit [Read error: Connection reset by peer]
lanemeyer has quit []
jheg has joined #ruby
spyderman4g63 has joined #ruby
lanemeyer has joined #ruby
Takle has quit [Ping timeout: 246 seconds]
c0m0 has quit [Ping timeout: 250 seconds]
elfuego has joined #ruby
cjim has quit [Quit: (null)]
edwinvdgraaf has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
workmad3 has quit [Ping timeout: 255 seconds]
cjim has joined #ruby
zcreative has quit [Quit: (null)]
fryguy9 has joined #ruby
rdark has quit [Quit: leaving]
josephleon has joined #ruby
krisquigley has quit [Remote host closed the connection]
wallerdev has joined #ruby
x1337807x has joined #ruby
krisquigley has joined #ruby
gsd has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
gfawcettpq has joined #ruby
graydot has joined #ruby
albedoa has joined #ruby
bMalum has quit [Quit: bMalum]
centrx has joined #ruby
tus has joined #ruby
benjwadams has joined #ruby
einarj has quit [Remote host closed the connection]
pothibo has joined #ruby
chinmay_dd has quit [Ping timeout: 248 seconds]
sigurding has quit [Ping timeout: 244 seconds]
iamjarvo has joined #ruby
<benjwadams> Hi, I inherited a legacy rails app that works with a lot of observation data. Most of our stack is python and uses numpy and pandas and the like for data analysis on the backend. Does ruby have any libraries filling a similar niche?
towski_ has joined #ruby
chinmay_dd has joined #ruby
krisquigley has quit [Ping timeout: 245 seconds]
eonbluez has joined #ruby
thumpba has joined #ruby
<eonbluez> does sslmode = verify-full not work in Rails 3?
<jhass> eonbluez: I think the OpenSSL library is about the only thing ActiveSupport doesn't touch
sigurding has joined #ruby
sigurding has quit [Client Quit]
<jokke> hi
<jokke> is Enumerator#next thread safe?
AlexRussia has joined #ruby
<agarie> benjwadams: NMatrix and Daru
<agarie> NMatrix works quite well and has a sparse storage type built-in
civim has quit [Quit: This computer has gone to sleep]
stevechiagozie has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<sweeper> any way for an ensure block to know that an error has been caught?
<jhass> put the code into a rescue
<benjwadams> thanks, daru looks interesting. I'll have to take a look.
kirun has joined #ruby
<sweeper> jhass: looks like else is actually the way to do it
<jhass> well yeah, depends on what you want ;)
<jhass> was preparing an example of else actually :)
<agarie> we're working to improve the installation procedure for NMatrix in this google summer of code :)
<agarie> there are several projects to make it compatible with various BLAS/LAPACK implementations as backends (openblas, lapacke, apple's accelerate framework, etc)
havenn has joined #ruby
<agarie> benjwadams: daru's author is also quite approachable, he'll be sure to answer issues if you have any
krisquigley has joined #ruby
patrick99e99 has quit [Quit: leaving]
patrick99e99 has joined #ruby
piotrj_ has joined #ruby
MatthewsFace has quit [Read error: Connection reset by peer]
ZJvandeWeg has quit [Ping timeout: 256 seconds]
delianides has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
DexterLB has quit [Quit: So long and thanks for all the fish]
duracrisis has quit [Quit: http://www.kiwiirc.com/ - A hand-crafted IRC client]
piotrj has quit [Ping timeout: 248 seconds]
delianides has joined #ruby
jmignault has quit [Quit: leaving]
havenwood has quit [Ping timeout: 256 seconds]
Biopandemic has quit [Quit: Leaving]
basiclaser has joined #ruby
deol has joined #ruby
eonbluez has quit [Ping timeout: 272 seconds]
gfawcettpq has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
Notte has joined #ruby
thiagovsk has joined #ruby
zenith_ has joined #ruby
wildroman2 has joined #ruby
triple_b has joined #ruby
zorak8 has joined #ruby
blahwoop has joined #ruby
cittatva has left #ruby [#ruby]
piotrj_ has quit [Remote host closed the connection]
c355E3B has joined #ruby
rayleigh415 has joined #ruby
it_tard is now known as nfk|laptop
<blahwoop> i'm trying to sort a list first by the points and then if they are tied then they are sorted by name
nettoweb_ has quit [Quit: Textual IRC Client: www.textualapp.com]
gfawcettpq has joined #ruby
sephilix has joined #ruby
Notte has quit [Client Quit]
nettoweb has joined #ruby
<apeiros> blahwoop: sort_by with an array as return value
<apeiros> list.sort_by { |item| [item.points, item.name] }
shredding has quit [Ping timeout: 272 seconds]
<blahwoop> i went with list_by_name = team_list.sort_by {|team| team.name}
lennae has joined #ruby
<blahwoop> list_by_name.sort {|a,b| b.league_points <=> a.league_points}
rayleigh415 has quit [Client Quit]
<blahwoop> and it works sometimes but not all the time
<blahwoop> which is weird. the ties doesn't work well
towski_ has quit [Remote host closed the connection]
<apeiros> that's not guaranteed to work.
ZJvandeWeg has joined #ruby
<apeiros> ruby's sort is not guaranteed to be stable
<blahwoop> ah got it
lioninawhat has quit [Read error: Connection reset by peer]
<blahwoop> i was wondering why it was wacky sometimes
teddyp1cker has joined #ruby
lioninawhat has joined #ruby
v0dro has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
lolmaus has quit [Ping timeout: 252 seconds]
Hijiri has quit [Quit: WeeChat 1.0.1]
teddyp1cker has quit [Ping timeout: 256 seconds]
<blahwoop> apeiros: how would i use a comparable with that sort_by
<blahwoop> because i need the highest score first
jimms has joined #ruby
<jhass> [-team.points, team.name]
bMalum has joined #ruby
wildroman2 has quit [Ping timeout: 272 seconds]
bim has quit [Remote host closed the connection]
wildroman2 has joined #ruby
RegulationD has joined #ruby
Takle has joined #ruby
<blahwoop> thanks jhass
<blahwoop> thats easy lol
noname1 has joined #ruby
zenith_ has quit [Ping timeout: 256 seconds]
jeromelanteri has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
krz has joined #ruby
blahwoop has quit [Remote host closed the connection]
ghostpl_ has quit [Remote host closed the connection]
sandelius has joined #ruby
dfinninger has joined #ruby
piotrj has joined #ruby
DerisiveLogic has joined #ruby
existensil has quit [Ping timeout: 255 seconds]
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
pothibo has quit [Quit: pothibo]
aclearma_ has quit [Quit: I'm out!]
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
Ellis has joined #ruby
duggiefresh has joined #ruby
ghr has joined #ruby
noname1 has quit [Ping timeout: 264 seconds]
fryguy9 has quit [Ping timeout: 245 seconds]
fryguy9 has joined #ruby
piotrj has quit [Remote host closed the connection]
lennae has quit [Ping timeout: 255 seconds]
piotrj has joined #ruby
leafybas_ has joined #ruby
<Ellis> : i’ve searched the internet for when to use a hash instead of an array but i didn’t find anything besides “hashes don’t used numbers as keys”, can someone give an example of when you would use a hash in rails instead of an array and when you would use an array in rails instead of a hash
fryguy9 has quit [Client Quit]
towski_ has joined #ruby
Hijiri has joined #ruby
<jhass> no, we're not #RubyOnRails
umby24|offline has quit [Ping timeout: 244 seconds]
<jhass> we can try to come up with examples for Ruby in general though
<jhass> Array is for when you need an ordered list of things, most likely similar things, let's say the lines in textfile
krisquigley has quit [Ping timeout: 250 seconds]
umby24|offline has joined #ruby
<jhass> Hash is for when you need to map one value to another, let's say month name abbreviations to their full names {"Jan" => "January", "Feb" => "February", ...}
<Ellis> by map does that also mean bind
leafybasil has quit [Ping timeout: 252 seconds]
AlphaTech has joined #ruby
<jhass> what does bind mean to you?
<Ellis> associate them i guess
<Ellis> connect them
Aswebb_ has quit []
<jhass> I guess that's what I meant with map
<ekaleido> >> a = "b"; p a
<eval-in_> ekaleido => "b" ... (https://eval.in/307723)
<Ellis> gotcha
<ekaleido> im so pro
<jhass> a Hash defines an unidirectional mapping between two values
leafybas_ has quit [Ping timeout: 256 seconds]
bMalum has quit [Quit: bMalum]
<bradland> i prefer the term associate with hash key values because map has such a specific meaning in ruby
<jhass> the general name for that datastructure across languages is in fact Map
postmodern has joined #ruby
<jhass> ah, good point I guess
<sandelius> if you remove template rendering and use ruby just as a json api it's pretty darn fast :)
<bradland> PHP has "associative arrays", which look similar as well
<apeiros> and rubys implementation is a hash map
<Ellis> so in hashes the key is more than just a location
<apeiros> bradland: not sure php's associative arrays are actually hash maps.
<bradland> they're not
<bradland> they just look similar
<bradland> Ellis: you have to be careful about saying "location"
shadoi1 has joined #ruby
<bradland> because it implies order
<hanmac> Ellis: in ruby a key in a Hash can litteraly be anything ... even the object itself ;P
<bradland> ruby is convenient, because it's Hashes are ordered.
<sandelius> I've always wondered why PHP (Rasmus) chose to combine array and hash into "associative array"
<hanmac> >> a = {}; a[a] = a; a
<eval-in_> hanmac => {{...}=>{...}} (https://eval.in/307724)
<bradland> but as a general construct, hash maps are not ordered.
MatthewsFace has quit [Remote host closed the connection]
<bradland> or rather, not assumed to be ordered
<agarie> well, I guess it just turned out like that (like most of PHP)
<havenn> >> a = {}; a[a] = a; a.sort
<eval-in_> havenn => [[{{...}=>{...}}, {{...}=>{...}}]] (https://eval.in/307725)
<apeiros> eh, right. since 1.9 I should not say "hash map" but "ordered hash map"
<jhass> I guess we're going way over Ellis head right now :)
<bradland> yeah, sorry ellis
<bradland> from a practical perspective, think of a hash as a way to define keys and values, which are associated
<jhass> Ellis: don't worry too much, it'll click once you use them and maybe one or two times somebody points out "use the other one instead"
attamusc has joined #ruby
<Ellis> so i guess i’m wondering what are the benefits for using referencing “january” with a hash key :jan instead of with an array index [0]
<bradland> well, that's a bit of a contrived example
bim has joined #ruby
<apeiros> Ellis: given you have the short name, how do you get the long name in your array?
Hijiri has quit [Quit: WeeChat 1.0.1]
<Ellis> No i understand how they work, i just have to explain it for an assignment and i haven’t found any explanations on the web
<centrx> ...
<bradland> what do you have to explain? the difference between a hash and an array?
<bradland> or when to use them?
huddy has quit [Quit: Connection closed for inactivity]
<Ellis> what the differences are, so i’m trying to figure out the pros and cons
baweaver has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
<bradland> differences are not the same as pros and cons
<bradland> pros/cons are context specific
ndrei has joined #ruby
sephilix has quit [Quit: Konversation terminated!]
<Ellis> gotcha. so what determines whether you use a hash or array
<bradland> your use case
<bradland> need to store key/value pairs? use a hash.
ghr has quit [Ping timeout: 264 seconds]
<apeiros> Ellis: try to answer my question and you'll notice…
<bradland> just need a list of items? use an array.
<centrx> list vs dictionary
<centrx> not actually that complicated
blackmesa has joined #ruby
f3lp has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
<Ellis> centrx: so hashes simply the lookup process? instead of flooking up the meaning of television in a dictionary using the an index 38209, hashes allow you to look it up using the key word television.
MatthewsFace has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
jimms_ has joined #ruby
jimms_ has quit [Client Quit]
<centrx> Ellis, Yes
<jhass> Ellis: assuming you had it in array, where would you get the index from?
baweaver has quit [Remote host closed the connection]
meschiv2 has quit [Ping timeout: 246 seconds]
jimms has quit [Ping timeout: 264 seconds]
<Ellis> jhass: from your memory, so hashes simplify the lookup process by giving the value a memorable key?
yeticry has quit [Ping timeout: 265 seconds]
ndrei has quit [Quit: Lost terminal]
<jhass> let's say you don't have television, you have a value that you read from user input
<jhass> you write a dictionary program, the user can enter a keyword and you display its definition
<jhass> if you stored your dictionary in an Array, where would you get the index from?
Pharaoh2 has quit [Read error: Connection reset by peer]
<Ellis> ah ok there’s an example that makes sense
jonatin has quit [Quit: Textual IRC Client: www.textualapp.com]
yeticry has joined #ruby
Pharaoh2 has joined #ruby
senayar has joined #ruby
piotrj has quit [Remote host closed the connection]
jonatin has joined #ruby
Pharaoh2 has quit [Disconnected by services]
<apeiros> somehow I think you people are doing Ellis' homework. I think it's them who should come up with the use-cases.
bMalum has joined #ruby
<Ellis> so if i had a blog site, could i create a hash with a key called :health, and that corresponds to a tag so when people search the tag they get all the blog posts that are associated with that key
<jhass> Ellis: yeah, if you use any of the examples we've done so far we will come and make you fail the assignment :P
<Ellis> apeiros: i dont really care about the assignment, i just want to clarify this stuff
JDiPierro has joined #ruby
duncannz has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
f3lp has quit [Ping timeout: 245 seconds]
storagedragon has joined #ruby
<agarie> specifically, Ellis, http://stackoverflow.com/a/371149/1015273
<jhass> well, in theory yes, it assumes a few things that makes it impractical in the real world, but we can disregard that here
adamholt has quit [Ping timeout: 244 seconds]
chrishough has joined #ruby
<jhass> agarie: mh, Array is neither a linked list nor a binary tree though
<Ellis> jhass: got it. i read a ruby book, then a rails book, and now i’m going over ruby again trying to relate all the concepts to rails, so that’s why i’m asking. i appreciate you clarifying these things
baweaver has joined #ruby
<storagedragon> I am doing the codecadamy tutorial to help learn ruby, but I am not getting the expected prompts with this code http://repl.it/gZr/15 Is it me or something missing in the code?
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<agarie> it isn't, but thinking about it in these terms was useful when I first studied the subject :P
<jhass> storagedragon: can you clarify? what do you get, what do you expect?
<agarie> but good point, I should've been more explicit about it
<Ellis> storagedragon: use puts instead of print
teddyp1cker has joined #ruby
<storagedragon> It outputs the first print = section and allows input of others but doesnt print subsequent prints
<storagedragon> I was wondering about the print vs puts but I was trying to follow tutorial. lol
<Ellis> ah that doesn’t work i tried it
colorisco has quit [Quit: colorisco]
<Ellis> put it in a method maybe
ki0 has quit [Remote host closed the connection]
m8 has joined #ruby
<jhass> storagedragon: print should be fine
colorisco has joined #ruby
<Ellis> nvm that didn’t work
kadoppe has quit [Ping timeout: 248 seconds]
<jhass> storagedragon: I think that site is crap, try locally
<storagedragon> o.O <--- Very new. You really don't want ot have to explain all that to me. lol I gues really wondering if tut was bunk or I was just doing it wrong. lol
<jhass> repl.it that is
adamholt has joined #ruby
baweaver has quit [Remote host closed the connection]
<storagedragon> ah. Should I install the atom plugin to run locally or use irb then?
<jhass> irb is fine
<jhass> pry (pryrepl.org, gem install pry) is an even better irb
Hijiri has joined #ruby
kadoppe has joined #ruby
ki0 has joined #ruby
DexterLB has joined #ruby
<storagedragon> Thank you very much. I appreciate all the help. Hopefully poort tuts don't kill it for me. lmao
Ellis has left #ruby [#ruby]
storagedragon is now known as stgdrgn|away
c355E3B has quit [Ping timeout: 272 seconds]
theberlin has joined #ruby
stgdrgn|away has quit [Quit: Leaving]
gr33n7007h has joined #ruby
quimrstorres has quit [Remote host closed the connection]
FF_ has quit [Quit: FF_]
User458764 has joined #ruby
delianides has quit [Remote host closed the connection]
Hounddog has quit [Ping timeout: 264 seconds]
jheg has joined #ruby
baroquebobcat has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
Hounddog has joined #ruby
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
ghr has joined #ruby
stef204 has joined #ruby
dfinninger has quit [Ping timeout: 265 seconds]
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adriancb has quit [Remote host closed the connection]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
deol has quit [Quit: Textual IRC Client: www.textualapp.com]
krz has quit [Quit: WeeChat 1.0.1]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
adriancb has joined #ruby
delianides has joined #ruby
gluten_hell_ has joined #ruby
noname1 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hounddog has quit [Read error: Connection reset by peer]
Rephiax has quit [Ping timeout: 264 seconds]
braincrash has quit [Ping timeout: 256 seconds]
leafybasil has joined #ruby
dfinninger has joined #ruby
ojacobson has joined #ruby
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
ojacobson has left #ruby ["Linkinus - http://linkinus.com"]
<gr33n7007h> shevy: you here?
jimms has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
Hijiri has quit [Ping timeout: 256 seconds]
naftilos76 has joined #ruby
haxrbyte has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
cpt_yossarian has joined #ruby
teddyp1cker has joined #ruby
Hijiri has joined #ruby
pengin has quit [Ping timeout: 255 seconds]
lordkryss has quit [Quit: Connection closed for inactivity]
Spami has joined #ruby
lavros has quit [Quit: leaving]
gr33n7007h has quit [Quit: WeeChat 1.1.1]
haxrbyte has quit [Ping timeout: 265 seconds]
teddyp1cker has quit [Ping timeout: 264 seconds]
Dreamer3 has quit [Quit: Leaving...]
<atmosx> aloha
ghr has joined #ruby
fryguy9 has joined #ruby
fryguy9 has quit [Read error: Connection reset by peer]
fryguy9 has joined #ruby
nfk|laptop has quit [Ping timeout: 252 seconds]
spyderman4g63 has quit [Remote host closed the connection]
ekaleido has quit [Quit: Leaving]
sigurding has joined #ruby
spyderman4g63 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jimms has quit [Read error: Connection reset by peer]
jimms_ has joined #ruby
ghr has quit [Max SendQ exceeded]
Hijiri has quit [Quit: WeeChat 1.0.1]
ghr has joined #ruby
gr33n7007h has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nfk|laptop has joined #ruby
krz has joined #ruby
colorisco has quit [Quit: colorisco]
colorisco has joined #ruby
dmbennett has joined #ruby
riotjones has joined #ruby
yqt has joined #ruby
pengin has joined #ruby
tester007 has joined #ruby
jimms_ has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 252 seconds]
teddyp1cker has joined #ruby
HotTopic has joined #ruby
ping-pong has quit [Ping timeout: 272 seconds]
Soda has joined #ruby
iamjarvo has joined #ruby
patrick99e99 has quit [Read error: Connection reset by peer]
iamjarvo has quit [Max SendQ exceeded]
kyrylo_ has joined #ruby
ghr has joined #ruby
krisquigley has joined #ruby
freerobby has quit [Ping timeout: 265 seconds]
iamjarvo has joined #ruby
freerobby has joined #ruby
riotjones has quit [Ping timeout: 248 seconds]
HotTopic has left #ruby [#ruby]
bradleyprice has quit [Remote host closed the connection]
kyrylo has quit [Ping timeout: 252 seconds]
gregf1 has quit [Quit: WeeChat 1.0.1]
Zai00 has joined #ruby
ghostpl_ has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
ghostpl_ has joined #ruby
lolmaus has joined #ruby
DavidDudson has joined #ruby
patrick99e99 has joined #ruby
pietr0 has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
iliketurtles has quit [Quit: zzzzz…..]
v0dro has quit [Quit: Leaving.]
Kricir has quit []
MatthewsFace has quit [Remote host closed the connection]
kyrylo__ has joined #ruby
DavidDudson has quit [Client Quit]
gfawcettpq has quit [Ping timeout: 272 seconds]
GaryOak_ has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
kyrylo_ has quit [Ping timeout: 250 seconds]
shadoi2 has joined #ruby
rbennacer has quit [Remote host closed the connection]
Zai00 has quit [Client Quit]
xcombelle has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
dpatel has joined #ruby
mrbond has quit [Ping timeout: 250 seconds]
shadoi1 has quit [Ping timeout: 244 seconds]
Zai00 has joined #ruby
jenrzzz has joined #ruby
<mcpierce> Hi, all. I have a question. I'm working on a Ruby extension and in the C code I tuck away an object in a Ruby Hash using a key created with rb_str_new.
ping-pong has joined #ruby
<mcpierce> Later when I try to get that object back from the same hash (I've verified the hash has the object) using another call to rb_str_new I'm getting back Qnil.
matadoer has quit [Ping timeout: 248 seconds]
<mcpierce> I've verified that both calls to rb_str_new are using the same string value (they're using the same char*) but I'm not getting my object back. What could I be doing wrong?
bradleyprice has joined #ruby
lanemeyer has quit [Ping timeout: 252 seconds]
gregf1 has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
ghr has quit [Ping timeout: 256 seconds]
rbennacer has joined #ruby
bim has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
stef204 has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
stef204 has joined #ruby
Axy has quit [Read error: Connection reset by peer]
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
sevvie has quit [Ping timeout: 244 seconds]
ki0 has quit []
naftilos76 has quit [Remote host closed the connection]
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
iliketurtles has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
<atmosx> mcpierce: I'm no C expert, but if you share your code might be easier to spot something.
<atmosx> mcpierce: e.g. a gist
ZJvandeWeg has quit [Quit: WeeChat 1.1.1]
spyderman4g63 has quit [Read error: Connection reset by peer]
teddyp1cker has joined #ruby
<mcpierce> The method "pni_rbdispatch" is called by library code and passed a struct with a char*, the same one used by pn_rbhandler to register a Ruby object.
matadoer has joined #ruby
<mcpierce> lines 661-701
wallerdev has quit [Quit: wallerdev]
brb3 has quit [Quit: ZZZzzz…]
elaptics is now known as elaptics_away
yfeldblu_ has quit [Ping timeout: 256 seconds]
quimrstorres has joined #ruby
dmbennett has quit [Remote host closed the connection]
<atmosx> mcpierce: nah, can't help. Try the mailing list.
<mcpierce> atmosx: kk thanks anyway.
zarubin_ has joined #ruby
<mcpierce> atmosx: I think it boils down to this: what does ::Hash use to find a key, ==, .eql? or .equal?
braincrash has joined #ruby
<eam> mcpierce: uhm, where you construct your registry
<eam> you're using rb_gv_get()
jenrzzz has quit [Ping timeout: 252 seconds]
<eam> but you're not getting a global?
mjuszczak has joined #ruby
<eam> that's probably your problem
<mcpierce> eam: It's a global: $proton_registry is a global var.
<eam> yes but you're not getting "$proton_registry", you're getting "proton_registry"
bradleyprice has quit [Remote host closed the connection]
<mcpierce> eam: Inside of the app I can print the contents of $proton_global and I can see the object I stored from the C extension.
<eam> so that's going to create a new registry every call
r3dking has quit [Quit: Konversation terminated!]
cefkamcau has quit [Ping timeout: 256 seconds]
<mcpierce> eam: $ is optional in rb_gv_{get,set} according to the docs.
<eam> is it? I thought it was mandatory
<mcpierce> eam: Maybe it's changed with 2.0? With 1.9.3 it was optional.
<heftig> mcpierce: btw, rb_str_new2(ptr) is a shortcut for rb_str_new(ptr, strlen(ptr))
<atmosx> mcpierce: more specifically http://stackoverflow.com/a/7157051/577133
cefkamcau has joined #ruby
jenrzzz has joined #ruby
mjuszczak has quit [Client Quit]
baweaver has joined #ruby
<mcpierce> heftig: rb_str_new2 was giving us problems before.
quimrstorres has quit [Ping timeout: 264 seconds]
<mcpierce> eam: From "Programming Ruby": Sets the global variable name (the $ prefix is optional) to value. Returns
<mcpierce> value.
<mcpierce> Sorry, for rb_gv_set
bMalum_ has joined #ruby
<mcpierce> And it reads for rb_gv_get as well. This is the 2009 edition.
Rapier- has quit [Quit: (null)]
bMalum has quit [Ping timeout: 244 seconds]
bMalum_ is now known as bMalum
<mcpierce> But I'll try making it consistent and see if that changes things.
DavidDudson has joined #ruby
nym has joined #ruby
<mcpierce> atmosx: Thanks for the links. I'm aware of the differences between ==. eql? and equal? which is why I mention that. My issue is I'm not sure which (though I suspect equal?) is used by hash to find a key.
<eam> mcpierce: hm interesting, I could've sworn I've seen otherwise
greenbagels has joined #ruby
<mcpierce> eam: It's possible the book's not correct.
<mcpierce> eam: Though re-reading my code, it's internally consistent and I did see the global var in my runtime so that's not it.
vyorkin has joined #ruby
<eam> nah I'm sure you're right
<mcpierce> I do think, though, that hash is likely using .equal? to test for keys and have verified that "foo".equal? "foo" returns false.
<mcpierce> irb(main):001:0> "foo".equal? "foo"
<mcpierce> => false
OrbitalKitten has joined #ruby
mhib has quit [Quit: Leaving]
DeathCode has joined #ruby
brb3 has joined #ruby
sevvie has joined #ruby
<apeiros> mcpierce: it uses eql?, not equal?
mjuszczak has joined #ruby
phutchins has quit [Ping timeout: 250 seconds]
DavidDudson has quit [Client Quit]
<apeiros> == is order equality (iow, a == b when a <=> b # => 0), eql? is hash-key equality and equal? is identity (same object)
<mcpierce> apeiros: Based on what I'm seeing,though, it's acting like it used .equal? in that the same string does not equal itself on lookup. Do you have a reference into the Ruby codebase?
stef204 has quit [Ping timeout: 246 seconds]
<apeiros> mcpierce: you're misinterpreting what you see then.
<apeiros> you can read the docs if you don't believe me.
<apeiros> and if you don't believe the docs, you can read the source.
<mcpierce> apeiros: It's possible (I'm misreading). And I don't disblieve you. :D
stef204 has joined #ruby
tomeara has quit [Read error: Connection reset by peer]
<apeiros> from `ri Hash`: "See also Object#hash and Object#eql?"
DeathCode has left #ruby [#ruby]
<mcpierce> apeiros: Do you have Matz's number in case I doubt the source code? :D
<apeiros> from `ri Object#eql?`: "The eql? method returns true if obj and other refer to the same hash key."
<apeiros> as for the source: left as an exercise to the reader :-p
mitchellhenke has joined #ruby
<apeiros> if it used equal?, string lookups would not work.
<apeiros> so no idea how you come to that conclusion.
<havenn> mcpierce: Phone number: (03) 3834-5577
<mcpierce> havenn: Ha.
<havenn> mcpierce: Or... is that the Tokyo Metro Lost & Found? I guess you'll have to call it to see! :P
edwinvdgraaf has joined #ruby
<apeiros> >> key = "key"; look = "key"; hash = {key => "value"}; [key.equal?(look), hash[look]]
<eval-in_> apeiros => [false, "value"] (https://eval.in/307778)
<apeiros> mcpierce: ^
<mcpierce> apeiros: Just based on what I'm seeing in my code. I'm nearly certain the rb_str_new is creating the same string value (it's using hte same char*) to fetch the value as it did to store it in the hash.
<apeiros> explain that if Hash uses equal?
bim has joined #ruby
<atmosx> mcpierce: Matz answers to +819022313381
<apeiros> mcpierce: sure, if a string is equal?, it *necessarily* also is eql?
tenseiten is now known as seitensei
krz has quit [Quit: WeeChat 1.0.1]
<mcpierce> apeiros: Whoa, dude, not challening you. Just saying based on what I'm seeing I thought it was working differently than expected. I'm certainly open to my being wrong in what I'm seeing/interpreting.
<apeiros> the other way round is what's not true.
<atmosx> havenn: at least I looked up for Japan's phonecall code :-P
<apeiros> o0
<apeiros> I don't feel challenged
startupality has joined #ruby
cyrus_mc has joined #ruby
<havenn> atmosx: Wait, you're not calling from Japan?
<mcpierce> apeiros: Okay, sorry. Just feeling like I said something inappropriate here to get flooded.
sevvie has quit [Ping timeout: 244 seconds]
<heftig> >> a = 0/0.0; [a.equal?(a), a.eql?(a)]
<eval-in_> heftig => [true, false] (https://eval.in/307779)
edwinvdgraaf has quit [Remote host closed the connection]
<heftig> NaN wins again
startupality has quit [Client Quit]
<cyrus_mc> Trying to compile ruby with SSL support on a RHEL 4.x system (as I need to run puppet on there). The version of openssl that comes with RHEL 4 appears to have an issue with the self signed certificate that puppet uses (gives a certificate signature failure error). Therefore I compiled the latest version of openssl. How can I instruct ruby to use this version of the library when building the SSL extension?
<havenn> >> 0.upto(Float::NAN).take 3
<eval-in_> havenn => [0, 1, 2] (https://eval.in/307780)
sevvie has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenn> cyrus_mc: ./configure --with-opt-dir=
matadoer has quit [Ping timeout: 256 seconds]
<heftig> hash seems to test object equality first before trying eql?
<apeiros> heftig: makes sense. identity check is cheap.
<apeiros> hash key equality check may be expensive
<cyrus_mc> havenn: just to make sure I am doing this right, I initiially compiled ruby and installed, then went into ext/openssl; ruby extconf.rb; make; make install
ebbflowgo has quit [Read error: Connection reset by peer]
<eam> >> a = b = "foo"; a.instance_eval { def eql?(x) false; end }; [a.equal?(b), a.eql?(b)]
<eval-in_> eam => [true, false] (https://eval.in/307781)
<cyrus_mc> haveenn: so would I add that --with-opt-dir when doing the main config and make of ruby
<heftig> you can create many instances of NaN and each will be a distinct hash key
ebbflowgo has joined #ruby
<apeiros> heftig: interesting. I sure hope NaN is the sole exception with regards to equal? implies eql?
<eam> apeiros: it is not
DEA7TH has quit [Ping timeout: 246 seconds]
<apeiros> eam: which other cases do you know?
_honning_ has quit [Ping timeout: 245 seconds]
<eam> it looks like NaN and Infinity both create a new object_id for every instance -- uniquely out of all Float values AFAICT
<eam> I'm not sure why they do -- I don't think they ought to
musashi1 has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
<apeiros> eam: but Infinity.eql?(Infinity), unlike NaN
n008f4g_ has joined #ruby
<heftig> apeiros: though they all have the same hash, so all land in the same bucket and screw up the performance
<apeiros> >> a = 1/0.0; b = 1/0.0; a.eql?(b)
<eval-in_> apeiros => true (https://eval.in/307785)
<eam> yes, NaN will always be False for eql? equality
<havenn> cyrus_mc: hmm, or actually i think there's a: --with-openssl-dir
<eam> for any numeric equality
<eam> the weird thing is any numeric value ought to equal? itself
<eam> and that's true except for Inf/NaN
<heftig> apeiros: there's a case for giving NaN a random hash: http://research.swtch.com/randhash
<atmosx> havenn: nope
<atmosx> havenn: are you calling from Japan? :-P
<cyrus_mc> havenn: ya, I googled that and most suggested that option, but if I supplied that to configure it said unknown option
* atmosx Big in Japan
zenith_ has joined #ruby
<heftig> ("random" in this case could mean that NaN just mixes its object id into its hash)
Affix has quit [Max SendQ exceeded]
cefkamcau has quit [Read error: Connection reset by peer]
matadoer has joined #ruby
jottr_ has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
bim has quit [Remote host closed the connection]
<eam> >> [Array.new(3) {(1 / 1.0).object_id}, Array.new(3) {(1 / 0.0).object_id}, Array.new(3) {(0/1/0.0).object_id}]
<eval-in_> eam => [[551042660, 551042650, 551042640], [551042620, 551042610, 551042600], [551042580, 551042570, 551042560]] (https://eval.in/307789)
edwinvdgraaf has joined #ruby
<eam> I found one more value in float, negative zero
kyrylo has joined #ruby
<eam> super weird
<apeiros> I think neg zero is hanmac's favorite
OrbitalKitten has joined #ruby
MatthewsFace has joined #ruby
kyrylo__ has quit [Ping timeout: 252 seconds]
startupality has joined #ruby
<cyrus_mc> havenn: I will look at that. Thanks
x1337807x has joined #ruby
<eam> however, even though negative zero has variable object_id, it is eql?
<eam> with itself
<eam> unlike nan
<eam> >> [(0.0).equal?(0.0), (-0.0).equal?(-0.0), (1/0.0).equal?(1/0.0), (0/1/0.0).equal?(0/1/0.0)]
<eval-in_> eam => [false, false, false, false] (https://eval.in/307790)
<eam> whoooa
<havenn> cyrus_mc: it's `--with-opt-dir` that i'm accustomed to, but just confirmed that this seems to run: ./configure --with-openssl-dir="$(brew --prefix openssl)"
<eam> (0.0).equal?(0.0) is true on my system
Cache_Money has joined #ruby
<eam> why's it false in eval-in?
<hanmac> apeiros: even more funny is that ruby does know about silent and non-quiet nan, but has no methods to check that
<hanmac> eam: 32 vs 64 bit
jottr_ has quit [Ping timeout: 252 seconds]
<cyrus_mc> havenn: and this configure was run in the main ruby source directory? And what version of Ruby
dmbennett has joined #ruby
dmbennett has quit [Remote host closed the connection]
<apeiros> new flonums I guess
<heftig> 64-bit ruby has large enough values to make most floats immediate
<eam> hanmac: why would that change an IEEE float behavior?
<apeiros> equal? isn't part of IEEE
zenith_ has quit [Ping timeout: 255 seconds]
<apeiros> == is
<eam> integer width ought to be irrelevant
<havenn> cyrus_mc: yeah, root dir. latest head.
<hanmac> eam because Flonum only works with 64bit
yfeldblum has joined #ruby
<apeiros> eam: ruby inlines the actual value of some objects into the C VALUE
<heftig> eam: it's pointer width that matters
<hanmac> and yeah i also voted for that negative zero gets fixed object id too, but it doesnt get implmented yet
<eam> aah
chinmay_dd has quit [Ping timeout: 272 seconds]
<eam> well that's super weird
<havenn> cyrus_mc: What version of Ruby are you building?
pengin has joined #ruby
<cyrus_mc> 1.8.7-p358
Jackneill has quit [Remote host closed the connection]
tvw has quit [Read error: Connection reset by peer]
bim has joined #ruby
bim has quit [Read error: Connection reset by peer]
bim has joined #ruby
wildroman2 has quit [Remote host closed the connection]
palms has joined #ruby
wildroman2 has joined #ruby
shazaum has joined #ruby
sevvie has joined #ruby
djbkd has quit [Remote host closed the connection]
<cyrus_mc> havenn: that config option works in 2.2.1.. but not prior
<jhass> yay for actually supported Ruby versions \o/
jefus_ is now known as jefus
GnuYawk has joined #ruby
<apeiros> yay for ruby versions you don't have to exhume from their well deserved grave
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> you forgot the "\o/"
<apeiros> \o/\o/\o/
shadoi2 has quit [Quit: Leaving.]
* apeiros watches an episode of it crowd again
<apeiros> forgot how brilliant those were :D
<havenn> ruby 2.3.0dev successfully built against OpenSSL 1.0.2a \o/
existensil has joined #ruby
kyrylo_ has joined #ruby
<jhass> anything exciting 2.3 will bring?
DavidDudson has joined #ruby
<kaleido> code that writes itself
<kaleido> !!!
n80 has quit [Quit: n80]
<apeiros> Net::Neural
DavidDudson has quit [Remote host closed the connection]
kyrylo has quit [Ping timeout: 255 seconds]
<shevy> ack
<jhass> kaleido: Crystal has that actually http://crystal-lang.org/2015/04/01/auto.html
<shevy> I have not even explored 2.2.x yet
Jiyuhen has quit [Ping timeout: 256 seconds]
Jiyuhen has joined #ruby
<shevy> what is matz doing these days? not a lot of activity on mruby since a while
<apeiros> ah right… I keep forgetting how much I dislike this day in the year…
<kaleido> heh
bradleyprice has joined #ruby
<shevy> oh damn
<shevy> yeah ... first april
dh64 has quit [Quit: Konversation terminated!]
<shevy> they even had a link that systemd now includes the linux kernel
m8 has quit [Quit: Sto andando via]
<shevy> TWO days before first april
<shevy> it is spreading like a virus
<havenn> jhass: ;)
<apeiros> hey jhass, didn't you investigate those _N_nick things and said it was something which pretends to be social?
mjuszczak has quit []
<shevy> a bot!
shevy is now known as _1_shevy
<_1_shevy> hi
<_1_shevy> jhass is a potato
yeticry has quit [Ping timeout: 246 seconds]
nettoweb has joined #ruby
<jhass> apeiros: yup, it's an android app
<jhass> looks like a crappy version of WhatsApp
<apeiros> ah, whatschat
<_1_shevy> cool, how did you find out?
_1_shevy is now known as shevy
<apeiros> why the hell do they put people into #ruby/#ruby-lang?
<jhass> setup is like what's your name, what gender do you have
<jhass> and then it lets you pick a server to connect to, with Freenode at the top
<jhass> and then lists rooms my user count
palms has quit [Ping timeout: 265 seconds]
<jhass> *by
OtterCoder has quit [Ping timeout: 250 seconds]
yeticry has joined #ruby
<jhass> oh and puts _1_ in front of the name you've chosen
x1337807x has joined #ruby
<jhass> (it lists all the other IRC networks in the server dialog too)
<apeiros> so should I preemptively ban _1_*?
<jhass> :D
<jhass> I wrote the dev a mail, let's see if they respond
mjuszczak has joined #ruby
<jhass> !whatschat
<havenn> shevy: As of today I've totally switched all my shells from zsh/bash to streem.
<jhass> !add whatschat Please remove this app, it's crap
<helpa> The !whatschat command is now available.
<acl777> havenn - how's streem ?
<jhass> I think this will do for now
CorySimmons has joined #ruby
Affix has joined #ruby
CorySimmons has quit [Client Quit]
<jhass> oh, did I mention it lags as hell, the actual message display that is
<havenn> acl777: It runs commands very quickly with absolutely no side effects!
Affix is now known as Guest57834
baweaver has quit [Remote host closed the connection]
<havenn> I like the `cat` command implemented in streem: STDIN | STDOUT
<acl777> i just switched to zsh recently. loving it. but a friend told me about fish
MatthewsFace has quit [Remote host closed the connection]
<shevy> havenn I wonder if that is possible
<shevy> isn't streem more like a pipe-token based mini language?
chinmay_dd has joined #ruby
MatthewsFace has joined #ruby
<shevy> fish had many nice new ideas
<shevy> I liked the colour-syntax help
<shevy> they should combine zsh with fish
<shevy> zish
<acl777> lol
<acl777> i like zsh a lot, but i hate how heavy it is.
sigurding has quit [Quit: sigurding]
<shevy> zsh RPROMPT is awesome
<acl777> esp oh-my-zsh
<acl777> rprompt++
<shevy> I still use bash simply because I was too lazy to switch
diegoviola has joined #ruby
<acl777> zsh partial expansions rock, especially when individually committing files to git from a rails project.
startupality has quit [Quit: startupality]
<havenn> acl777: I do really use zsh but I don't care for oh-my-zsh.
<shevy> cool
devoldmx_ has quit [Ping timeout: 256 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
<shevy> if I understand it correctly, it tries to rework the pipe concept right?
xcombelle has quit [Remote host closed the connection]
MatthewsFace has quit [Ping timeout: 244 seconds]
niftylettuce has quit [Quit: Connection closed for inactivity]
baroquebobcat has joined #ruby
MatthewsFace has joined #ruby
<shevy> matz did not comment on it
<shevy> he has no time to read all issues!
jheg has quit [Quit: jheg]
<havenn> acl777: I ran into oh-my-zsh bugs and was disappointed when I actually looked at the plugins. I mostly like their ideas for prompts. It's easy to setopts yourself, and zsh even helps you pick em.
Darryl___ has quit [Quit: Connection closed for inactivity]
yh has joined #ruby
juanpaucar has joined #ruby
<acl777> havenn: yeah, i'll have to get off oh-my-zsh one day...
milesmatthias has quit [Remote host closed the connection]
CorySimmons has joined #ruby
milesmatthias has joined #ruby
<havenn> acl777: I think it's worth ditching when you have a chance to manually configure it the way you like it. :)
baweaver has joined #ruby
<acl777> havenn: true. i just went with oh-my-zsh since i wanted all the pretty themes... :-)
cyrus_mc has quit [Quit: Page closed]
Guest57834 has quit [Max SendQ exceeded]
zarubin_ has quit [Remote host closed the connection]
znst has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
quimrstorres has joined #ruby
palms has joined #ruby
icedp has joined #ruby
mjuszczak has quit []
agarie has quit [Remote host closed the connection]
GnuYawk has quit [Quit: WeeChat 1.0]
baweaver has quit [Remote host closed the connection]
LudicrousMango has quit []
_hollywood has quit [Quit: Leaving]
startupality has joined #ruby
milesmatthias has quit [Ping timeout: 256 seconds]
quimrstorres has quit [Ping timeout: 256 seconds]
quimrstorres has joined #ruby
mjuszczak has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DavidDudson has joined #ruby
e_w has joined #ruby
agarie has joined #ruby
rbennace_ has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
iliketurtles has quit [Quit: zzzzz…..]
djbkd has joined #ruby
adriancb has quit [Remote host closed the connection]
teddyp1cker has quit []
adriancb has joined #ruby
rbennacer has quit [Ping timeout: 252 seconds]
jottr_ has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
e_w has quit [Quit: Bye]
jheg has joined #ruby
diego__ has joined #ruby
diego__ has quit [Changing host]
diego__ has joined #ruby
iliketurtles has joined #ruby
djbkd has quit [Ping timeout: 252 seconds]
<shevy> hmm anyone knows if there is a ruby library that allows one to download a .swf file? in the html code, there is src="player.swf". problem is, the site is authenticated... hmm
sevvie has joined #ruby
<shevy> I can watch it in the browser just fine though
diegoviola has quit [Ping timeout: 252 seconds]
<jhass> mechanize?
zarubin_ has joined #ruby
<shevy> hmm
lioninawhat has quit [Remote host closed the connection]
<jhass> or plain faraday + faraday-cookiejar I guess
a5i has quit [Quit: Connection closed for inactivity]
lanemeyer has joined #ruby
DigitallyBorn has quit [Quit: leaving]
<jhass> or even just doing the cookie handling yourself
einarj has joined #ruby
shazaum has quit [Quit: Leaving]
yh has quit [Ping timeout: 272 seconds]
kaleido has quit [Ping timeout: 256 seconds]
diego__ has quit [Read error: Connection reset by peer]
<adaedra> go lower and use curb.
<wasamasa> kick reason to the curb
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<colorisco> what means such regex "(.+?)"?
baweaver has joined #ruby
yh has joined #ruby
<wasamasa> group a non-greedy match of at least one character
rodfersou has quit [Quit: leaving]
momomomomo has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
tier_ has quit [Ping timeout: 244 seconds]
ebbflowgo has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
riotjones has joined #ruby
delianides has quit [Remote host closed the connection]
havenn is now known as havenwood
kaspernj has quit [Remote host closed the connection]
jottr_ has joined #ruby
Axy has quit [Read error: Connection reset by peer]
wildroman2 has quit [Remote host closed the connection]
_honning_ has joined #ruby
symbol has quit [Ping timeout: 264 seconds]
GaryOak_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Affix has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
Affix is now known as Guest32166
lioninawhat has joined #ruby
krisquigley has joined #ruby
kyrylo_ is now known as kyrylo
silkfox has quit [Ping timeout: 265 seconds]
riotjones has quit [Ping timeout: 245 seconds]
<rbennace_> colorisco: where did you find that?
enebo has quit [Quit: enebo]
relix has joined #ruby
<rbennace_> colorisco: i literally had to use it 2 hours ago
Soda has quit [Remote host closed the connection]
<rbennace_> heeh
Guest32166 is now known as Affix
Lewix has quit [Remote host closed the connection]
Affix has quit [Changing host]
Affix has joined #ruby
einarj has quit [Read error: Connection reset by peer]
Limix has joined #ruby
einarj has joined #ruby
brb3 has quit [Quit: <.<]
wildroman2 has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
<colorisco> i found in my code
krisquigley has quit [Ping timeout: 256 seconds]
mjuszczak has quit []
wallerdev has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
li0ninawhat has joined #ruby
lioninawhat has quit [Ping timeout: 250 seconds]
wildroman2 has quit [Remote host closed the connection]
longfeet has joined #ruby
wildroman2 has joined #ruby
JDiPierro has quit []
OtterCoder has joined #ruby
ramfjord has joined #ruby
wicope has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
jerius has quit [Ping timeout: 244 seconds]
iliketurtles has quit [Quit: zzzzz…..]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agarie has quit [Remote host closed the connection]
zarubin_ has quit [Remote host closed the connection]
<shevy> lol
duncannz has joined #ruby
<shevy> ghost programmers
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
duncannz has quit [Max SendQ exceeded]
elfuego has quit [Quit: elfuego]
ghr has joined #ruby
ldnunes has quit [Quit: Leaving]
duncannz has joined #ruby
Hijiri has joined #ruby
iliketurtles has joined #ruby
palms has quit [Ping timeout: 272 seconds]
mistermo_ has joined #ruby
triple_b has quit [Ping timeout: 256 seconds]
jheg has quit [Quit: jheg]
Megtastique has quit []
reinaldob has quit [Remote host closed the connection]
deol has joined #ruby
<colorisco> simply copied code from sample
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
mistermo_ has quit [Ping timeout: 248 seconds]
sevvie has quit [Ping timeout: 252 seconds]
lennae has joined #ruby
longfeet has quit [Ping timeout: 252 seconds]
GaryOak_ has quit [Remote host closed the connection]
sgambino has quit [Remote host closed the connection]
cefkamcau has joined #ruby
pengin has quit [Remote host closed the connection]
stevechiagozie has quit [Quit: Computer has gone to sleep.]
pengin has joined #ruby
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
Megtastique has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
Megtastique has joined #ruby
pandaant has quit [Remote host closed the connection]
nobitanobi has joined #ruby
milesmatthias has joined #ruby
duncannz has quit [Ping timeout: 250 seconds]
tmoor has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
agarie has joined #ruby
mjuszczak has joined #ruby
<nobitanobi> If I have a number, how can I get the sum of all the previous numbers (integers), included that number? So, 3 would be 0+1+2+3?
chinmay_dd has quit [Ping timeout: 272 seconds]
<wallerdev> >> 3.downto(0).reduce(:+)
<eval-in_> wallerdev => 6 (https://eval.in/307798)
Megtastique has quit [Ping timeout: 244 seconds]
ghr has quit [Ping timeout: 245 seconds]
Limix has quit [Quit: Limix]
bMalum has quit [Quit: bMalum]
<jhass> >> (3*(3+1))/2
<eval-in_> jhass => 6 (https://eval.in/307799)
<wallerdev> math, who needs it
<jhass> yeah
<jhass> I have wikipedia :P
marr has joined #ruby
<wallerdev> i knew there was a formula but i tried a couple things in my head and they didnt work
Hijiri_ has joined #ruby
nfk|laptop has quit [Quit: yawn]
Hijiri has quit [Ping timeout: 265 seconds]
<shevy> "Stilton is an English cheese"
<shevy> Got a question. Anyone knows of this is common to write English capitalized there?
<shevy> *if this
_honning_ has quit [Ping timeout: 256 seconds]
<jhass> yes
<jhass> English is the only correct spelling
<jhass> afaik
<wallerdev> yeah i think it's always capitalized
<shevy> hmm. that would also mean one would have to write "Brunzlbrecher is a German beer" would also be capitalized
<shevy> okies
<wallerdev> kinda like Monday Tuesday Wednesday
<jhass> shevy: yep
<shevy> ok thanks!
cjim has quit [Quit: (null)]
<jhass> I think there's an #English or ##English btw
Hijiri_ is now known as Hijiri
Limix has joined #ruby
<gr33n7007h> shevy: capitilize proper nouns :)
<shevy> they scare me there
<shevy> they are professional linguits
<jhass> heh, just like you
<shevy> erm *linguist
<jhass> Ruby is a language after all!
<shevy> well, it's sort of simpler
<shevy> like, you need to have some kind of goal there
glenab has joined #ruby
<shevy> I often talk without having any goal, just like now!
fryguy9 has quit [Read error: Connection reset by peer]
fryguy91 has joined #ruby
cjim has joined #ruby
cjim has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
zzing has joined #ruby
cjim has joined #ruby
spyderman4g63 has joined #ruby
<shevy> if ruby could be like thoughts
toertore has quit [Quit: This computer has gone to sleep]
<pipework> Just think in ruby and then hold that up to a mirror.
mitchellhenke has quit [Quit: Computer has gone to sleep.]
longfeet has joined #ruby
cjim has quit [Client Quit]
codecop has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
govg has quit [Quit: leaving]
iliketurtles has joined #ruby
<GaryOak_> just only read ruby code and forget english
<GaryOak_> oh god are compilers like little brains!
zemlya has quit [Ping timeout: 256 seconds]
paulcsmith_ has quit [Quit: Be back later ...]
<GaryOak_> that can only speak a single language?
phutchins has joined #ruby
<GaryOak_> compilers or interpreters
momomomomo has quit [Quit: momomomomo]
rbennace_ has quit [Remote host closed the connection]
sevvie has joined #ruby
josephleon has quit [Quit: Leaving...]
zemlya has joined #ruby
govg has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
lordkryss has joined #ruby
edwinvdgraaf has joined #ruby
baweaver has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
iamjarvo has quit [Client Quit]
VBlizzard has joined #ruby
zemlya has quit [Ping timeout: 256 seconds]
jbeeze has joined #ruby
Limix has quit [Quit: Limix]
VBlizzard is now known as _blizzy_
mjuszczak has quit []
zemlya has joined #ruby
decoponyo has quit [Read error: Connection reset by peer]
DrShoggoth has joined #ruby
Limix has joined #ruby
lennae has quit [Ping timeout: 252 seconds]
decoponio has joined #ruby
baweaver has joined #ruby
Limix has quit [Client Quit]
edwinvdg_ has joined #ruby
sevvie has quit [Ping timeout: 252 seconds]
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
Limix has joined #ruby
agarie has quit []
edwinvdgraaf has quit [Ping timeout: 264 seconds]
a5i has joined #ruby
iamjarvo has joined #ruby
freerobby has quit [Quit: Leaving.]
iamjarvo has quit [Remote host closed the connection]
jerematic has quit [Remote host closed the connection]
cefkamcau has quit [Quit: Leaving]
jonr22 has joined #ruby
fryguy91 has quit [Quit: Leaving.]
baweaver has quit [Ping timeout: 264 seconds]
borodin has quit [Quit: Page closed]
shellfu has quit [Quit: Leaving]
sevvie has joined #ruby
wildroman2 has quit [Remote host closed the connection]
zarubin_ has joined #ruby
duggiefresh has quit []
baroquebobcat has quit [Quit: baroquebobcat]
josephleon has joined #ruby
baweaver has joined #ruby
Soda has joined #ruby
zarubin_ has quit [Ping timeout: 264 seconds]
tester007 has quit [Quit: Page closed]
Vile` has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 244 seconds]
<a5i> >> "test"
<eval-in_> a5i => "test" (https://eval.in/307800)
<a5i> >> 10.times do |i=1|; "hello"; end;
<eval-in_> a5i => 10 (https://eval.in/307801)
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<a5i> >> 10.times do |i=1|; i; end;
<eval-in_> a5i => 10 (https://eval.in/307802)
stevechiagozie has joined #ruby
li0ninawhat has quit [Remote host closed the connection]
<a5i> >> 10.times do |i|; i; end;
<eval-in_> a5i => 10 (https://eval.in/307803)
jconnolly has quit [Ping timeout: 252 seconds]
Asher has joined #ruby
Vile` has joined #ruby
dfinninger has quit [Remote host closed the connection]
robbyoconnor is now known as ]
<a5i> How do we make i equals 1 at the start of the loop ?
albedoa has quit [Ping timeout: 264 seconds]
benjwadams has quit [Quit: WeeChat 0.4.2]
<rim-k> i=1
<a5i> in between the || ?
sparch has joined #ruby
jlast has quit [Remote host closed the connection]
<jhass> a5i: please use your local irb for experiments
postmodern has quit [Quit: Leaving]
bayed has quit [Quit: Connection closed for inactivity]
<a5i> jhass: I did afterwards :P
ebbflowgo has quit [Read error: Connection reset by peer]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> and 1.upto(10) do |i|
] is now known as robbyoconnor
ebbflowgo has joined #ruby
<a5i> o
babykosh has joined #ruby
dx7 has quit [Ping timeout: 255 seconds]
sparch has quit [Ping timeout: 256 seconds]
mikecmpbll has quit [Quit: ciao.]
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
chupacabra_ has joined #ruby
icebourg has quit []
lennae has joined #ruby
Limix has quit [Quit: Limix]
relix has joined #ruby
jonr22 has quit [Ping timeout: 272 seconds]
mjuszczak has joined #ruby
Aswebb_ has joined #ruby
mjuszczak has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
<chupacabra_> quick question- is a class constant shared by all instances?
yqt has quit [Read error: Connection reset by peer]
yqt has joined #ruby
DrShoggoth has quit [Quit: Leaving]
davispuh has quit [Remote host closed the connection]
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> there's no such thing as a "class constant", just constants. And relating them to instances doesn't make much sense, but I guess the answer is yes
davispuh has joined #ruby
DrShoggoth has joined #ruby
senayar has quit []
<apeiros> chupacabra_: constants are lexically scoped, not by object
Zai00 has quit [Quit: Zai00]
kirun has quit [Quit: Client exiting]
<chupacabra_> apeiros: ok thank you
gluten_hell_ has joined #ruby
lennae has quit [Ping timeout: 244 seconds]
x1337807x has joined #ruby
Crazy_Atheist has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
lennae has joined #ruby
mjuszczak has joined #ruby
kaleido has joined #ruby
albedoa has joined #ruby
_honning_ has joined #ruby
antlong has quit []
riotjones has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
iasoon has quit [Ping timeout: 264 seconds]
Limix has joined #ruby
krisquigley has joined #ruby
Rephiax has joined #ruby
chupacabra_ has quit [Quit: Page closed]
riotjones has quit [Ping timeout: 248 seconds]
milesmatthias has quit [Remote host closed the connection]
<banister> apeiros sup
milesmatthias has joined #ruby
banister is now known as banisterfiend
jottr_ has joined #ruby
crueber has quit [Quit: Leaving.]
krisquigley has quit [Ping timeout: 250 seconds]
vyorkin has quit [Ping timeout: 250 seconds]
graydot has quit [Quit: graydot]
neanderslob has joined #ruby
phroa has joined #ruby
<phroa> hey there. small question, I see regex case-insensitivity used in different ways, [a-zA-Z] here https://github.com/ruby/ruby/blob/trunk/lib/rubygems/version.rb#L156 yet /i used here https://github.com/ruby/ruby/blob/trunk/lib/ipaddr.rb#L221
<phroa> is there any reasoning or is it just a result of different people writing the code?
MasterPiece has quit [Read error: Connection reset by peer]
<phroa> (wondering if maybe there's a speed increase with one of those methods or something)
<Radar> phroa: Different people
graydot has joined #ruby
<phroa> okay, thanks :P
<phroa> any personal recommendation of which to use? (or even (?i), who knows)
mjuszczak has quit []
dfinninger has joined #ruby
startupality has quit [Quit: startupality]
nobitanobi has quit []
duncannz has joined #ruby
freerobby has joined #ruby
duncannz has quit [Max SendQ exceeded]
<havenwood> phroa: /[[:alpha:]]/
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
<jhass> mh, I think I'd use /i for when I really don't care about the case, like if I later normalize it and I explicitly list if I want to match both cases but handle them differently in the code
glenab has quit [Remote host closed the connection]
<jhass> not that it matters, more an intent thing
jamto11 has joined #ruby
cefkamcau has joined #ruby
<havenwood> >> '234kafj02FJDSOIJ23???sSDd?????#@?#$!%$'.scan /[[:alpha:]]+/
<eval-in_> havenwood => ["kafj", "FJDSOIJ", "sSDd"] (https://eval.in/307813)
dpatel has quit [Quit: dpatel]
jefus_ has joined #ruby
lennae has quit [Ping timeout: 244 seconds]
Crazy_Atheist is now known as ZeeNoodleyGamer
lennae has joined #ruby
<havenwood> >> 'å' =~ /[[:alpha:]]/
<havenwood> >> 'å' =~ /[a-zA-Z]/
<havenwood> ^ depends which you want, though
<havenwood> #=> 0
<havenwood> #=> nil
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
keen_ has joined #ruby
jefus has quit [Ping timeout: 256 seconds]
thumpba has quit [Remote host closed the connection]
thumpba has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
elfuego has joined #ruby
max96at is now known as max96at|off
sevvie has quit [Remote host closed the connection]
lennae has quit [Ping timeout: 252 seconds]
<havenwood> do your a's wear hats?
ejnahc has quit [Remote host closed the connection]
neanderslob has quit [Read error: Connection reset by peer]
rayleigh415 has joined #ruby
sevvie has joined #ruby
ejnahc has joined #ruby
kyrylo_ has joined #ruby
ejnahc has quit [Client Quit]
ejnahc has joined #ruby
jonr22 has joined #ruby
kyrylo has quit [Ping timeout: 244 seconds]
iasoon has joined #ruby
Azure has quit [Max SendQ exceeded]
juanpaucar has quit [Remote host closed the connection]
n_blownapart has joined #ruby
mjuszczak has joined #ruby
paulcsmith_ has joined #ruby
Azure has joined #ruby
thumpba has quit [Remote host closed the connection]
thumpba_ has joined #ruby
_honning_ has quit [Ping timeout: 255 seconds]
zzing has quit [Quit: Textual IRC Client: www.textualapp.com]
tvw has joined #ruby
Rephiax has quit []
beneggett has joined #ruby
neanderslob has joined #ruby
jlast has joined #ruby
adriancb has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
adriancb has joined #ruby
n_blownapart has quit [Remote host closed the connection]
tkuchiki has joined #ruby
nilobject has joined #ruby
wallerdev has quit [Quit: wallerdev]
jeramy_s has joined #ruby
nilobject has quit [Client Quit]
RegulationD has quit [Remote host closed the connection]
ascarter has joined #ruby
cocotton has joined #ruby
sevvie has quit [Ping timeout: 255 seconds]
n_blownapart has joined #ruby
troyready has quit [Remote host closed the connection]
cfengineers has quit [Quit: Connection closed for inactivity]
neanderslob_ has joined #ruby
neanderslob has quit [Ping timeout: 250 seconds]
roolo_ has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
troyready has joined #ruby
graydot has quit [Quit: graydot]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Senjai> havenwood: <3
baweaver has joined #ruby
sevvie has joined #ruby
beilabs_ has joined #ruby
beilabs_ has quit [Client Quit]
graydot has joined #ruby
startupality has joined #ruby
jbeeze has quit []
einarj has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
MatthewsFace has quit [Remote host closed the connection]
ixti has quit [Read error: Connection reset by peer]
ixti has joined #ruby
Rapier- has joined #ruby
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
duncannz has joined #ruby
keen__ has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
keen_ has quit [Ping timeout: 252 seconds]
graydot has quit [Quit: graydot]
djbkd has joined #ruby
x1337807x has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]