apeiros changed the topic of #ruby to: Ruby 2.1.3; 2.0.0-p576; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
mikepack has quit [Ping timeout: 260 seconds]
VanillaGoat_ has quit [Ping timeout: 246 seconds]
skolman_ has quit [Remote host closed the connection]
boombadaroomba has quit [Remote host closed the connection]
monkeypatch has joined #ruby
monkeypatch has quit [Max SendQ exceeded]
skolman_ has joined #ruby
ramfjord has quit [Quit: leaving]
BadQuanta has quit [Ping timeout: 265 seconds]
ki0 has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
justinmburrous has joined #ruby
francisfish has quit [Ping timeout: 250 seconds]
francisfish has joined #ruby
nonks has joined #ruby
cicloid is now known as aCicloid
skolman_ has quit [Ping timeout: 246 seconds]
robbyoconnor has joined #ruby
ki0 has quit [Ping timeout: 255 seconds]
t_mmyv has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
jimbach has joined #ruby
robbyoconnor has quit [Client Quit]
justinmburrous has quit [Ping timeout: 260 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
wildharvest has joined #ruby
wolves_cs has joined #ruby
t_mmyv has joined #ruby
c107 has quit [Remote host closed the connection]
nonks has quit [Ping timeout: 272 seconds]
Haiiro_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djstorm has quit [Ping timeout: 255 seconds]
BadQuanta has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doodlehaus has joined #ruby
ghr has joined #ruby
musl has joined #ruby
Takle has joined #ruby
spicerack has joined #ruby
musl has quit [Client Quit]
rostam has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
monkeypatch has joined #ruby
BadQuanta1 has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
<eam> >> eval ?? + ?c + "[0]"*7079
<eval-in_> eam => "c" (https://eval.in/206059)
<eam> >> eval ?? + ?c + "[0]"*7080
<eval-in_> eam => "c" (https://eval.in/206060)
<eam> >> eval ?? + ?c + "[0]"*10_000
<eval-in_> eam => "c" (https://eval.in/206061)
<eam> hm neat
BadQuanta has quit [Quit: Leaving.]
wethu has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eam> that's a segv on my box
<eam> maybe an osx issue
havenwood has quit [Remote host closed the connection]
<eam> >> eval ?? + ?c + "[0]"*100_000
<eval-in_> eam => failed to allocate memory (NoMemoryError) ... (https://eval.in/206064)
<zenspider> stack level too deep for me
robustus has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
<eam> ulimits are too low for me to hit it on eval_in
<eam> I get a [bug] with 100k on linux and over 7080 on osx
sepp2k1 has joined #ruby
beef-wellington has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
lolmaus has quit [Ping timeout: 240 seconds]
St_Marx has quit [Ping timeout: 264 seconds]
arescorpio has joined #ruby
sepp2k has quit [Ping timeout: 244 seconds]
thagomizer has quit [Quit: Leaving.]
mary5030 has joined #ruby
nfk has quit [Quit: yawn]
<eam> zenspider: ah, /usr/bin/ruby on osx doesn't repro
lukevinc has quit [Quit: ChatZilla 0.9.91 [Firefox 24.8.0/20000101000000]]
<eam> but my rvm'd rubies do
hanjianwei has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
musl has joined #ruby
musl has quit [Client Quit]
cndiv has quit [Ping timeout: 260 seconds]
<zenspider> interesting...
jottr has joined #ruby
Scotteh has quit [Ping timeout: 258 seconds]
tier has quit [Remote host closed the connection]
ldnunes has joined #ruby
x77686d has quit [Quit: x77686d]
jdj_dk has quit [Ping timeout: 255 seconds]
chrisseaton has left #ruby [#ruby]
GriffinHeart has quit [Remote host closed the connection]
Wolland_ has quit [Remote host closed the connection]
ldnunes has quit [Client Quit]
<apeiros> toretore: you do
jottr has quit [Ping timeout: 245 seconds]
Wolland has joined #ruby
ldnunes has joined #ruby
MCDev has joined #ruby
<apeiros> toretore: oh, wait, isbn - no, I wrote an iban lib
St_Marx has joined #ruby
<apeiros> last time I had to do with isbn is >10y ago :D
<apeiros> (and that was with perl)
axl_ has joined #ruby
stantona has quit [Ping timeout: 255 seconds]
mjwhitta has joined #ruby
brandonshowers has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
dx7_ has joined #ruby
brandonshowers has quit [Client Quit]
levisbakalinsky has joined #ruby
levisbakalinsky has quit [Max SendQ exceeded]
levisbakalinsky has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
larissa has joined #ruby
tokik has joined #ruby
danijoo has joined #ruby
cleopatra has joined #ruby
dx7 has quit [Ping timeout: 245 seconds]
dx7_ has quit [Ping timeout: 246 seconds]
musl has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
insaneinside has joined #ruby
doodlehaus has quit [Remote host closed the connection]
sarlalian has quit [Quit: WeeChat 0.4.2]
sarlalian has joined #ruby
<insaneinside> How widely is dRuby (DRb) used? Anyone want to argue that it's a very useful utility?
i_s has quit [Remote host closed the connection]
wildharvest has quit []
i_s has joined #ruby
<volty> is it possible & easy to define a lazy product enumerator ?
<volty> s/define/code/
nonks has joined #ruby
carif has joined #ruby
<insaneinside> volty: well, i was about to say "bored television salesman."
<insaneinside> :P
<insaneinside> volty: what do you mean by "product"?
freerobby has joined #ruby
<volty> the same as Array#product
<volty> I cannot do it with arrays since in ruby they are not lazy
i_s has quit [Ping timeout: 244 seconds]
lolmaus has joined #ruby
tjbiddle has joined #ruby
<volty> i've done in the past similar things,just asking to see if something new & lazy is there
<insaneinside> ah, i see what you mean -- you want deferred calculation/evaluation...
<cleopatra> hello ruby people
<volty> yes - for list comprehensions
oo_ has joined #ruby
hamakn has joined #ruby
sevenseacat has joined #ruby
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<insaneinside> well, my take would be to look up the source code for Array#product and create an array subclass that yields instead of appending each sub-result to the output array...
<volty> no, i want to pull from many arrays | enums
mjwhitta has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
charliesome_ has joined #ruby
<insaneinside> what do you mean?
ghostmoth has joined #ruby
doodlehaus has joined #ruby
hamakn has quit [Ping timeout: 255 seconds]
<volty> all of the args should be lazy --- lazy product of (lazy) enums // if you do it with arrays and the first one is very very big ...
charliesome has quit [Ping timeout: 255 seconds]
<toretore> apeiros: ah right, iban != isbn :P
<toretore> i ended up writing a simple ISBN class
<toretore> it's not very complicated
<volty> going to lay down over it, gn
volty has quit [Quit: Konversation terminated!]
ldnunes has quit [Quit: Leaving]
axl_ has quit [Quit: axl_]
<toretore> i just found out the various parts of an isbn are variable in length .. :/
krisquigley has joined #ruby
<arrubin> There is more than one type of ISBN.
<toretore> there is only one, with 13 and 10 digit representations
<toretore> the isbn itself is 9 digits
Lewix has joined #ruby
Lewix has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ki0 has joined #ruby
cirn0 has quit [Quit: Leaving]
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
Chinaski has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
jespada has quit [Quit: Leaving]
Wolland has joined #ruby
justinmburrous has joined #ruby
reinaldob has quit [Remote host closed the connection]
oo_ has quit [Read error: Connection reset by peer]
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
<arrubin> I see.
oo_ has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
_ixti_ has quit [Ping timeout: 272 seconds]
Wolland has joined #ruby
ki0 has quit [Ping timeout: 260 seconds]
lampd1_ has joined #ruby
x77686d has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
Blizzy has quit [Ping timeout: 244 seconds]
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
monkeypatch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adamnbowen has quit [Ping timeout: 244 seconds]
justinmburrous has quit [Ping timeout: 246 seconds]
livathinos has joined #ruby
BadQuanta1 has quit [Ping timeout: 272 seconds]
goodenough has joined #ruby
<toretore> well, technically they're two types, but the 10-digit version can be converted to a 13-digit one
krisquigley has joined #ruby
linojon has joined #ruby
axl_ has joined #ruby
axl_ has quit [Client Quit]
krisquig_ has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
justin_pdx has joined #ruby
Kricir has joined #ruby
mary5030 has quit [Remote host closed the connection]
x77686d has quit [Client Quit]
livathin_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
lampd1_ has quit [Ping timeout: 258 seconds]
tylersmith has joined #ruby
livathin_ has quit [Client Quit]
krisquig_ has joined #ruby
xymbol has joined #ruby
tkuchiki has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
hanjianwei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cya]
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
Asher has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
livathinos has quit [Ping timeout: 258 seconds]
jonr22 has quit [Remote host closed the connection]
krisquigley has joined #ruby
mary5030 has joined #ruby
GriffinHeart has quit [Ping timeout: 250 seconds]
<xymbol> Quick question: is there a way to do mruby on ruby?
jasooon has joined #ruby
izzol has quit [Ping timeout: 245 seconds]
<xymbol> -- i.e. calling an mruby interpreter from a host ruby app.
jonr22 has joined #ruby
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krisquigley has quit [Read error: Connection reset by peer]
Lewix has quit [Remote host closed the connection]
krisquigley has joined #ruby
troyready has quit [Ping timeout: 260 seconds]
Wolland has quit [Ping timeout: 255 seconds]
djbkd has quit [Quit: My people need me...]
monkeypatch has joined #ruby
reinaldob has joined #ruby
lw has quit [Quit: s]
krisquigley has quit [Read error: Connection reset by peer]
krisquig_ has joined #ruby
<benzrf> xymbol: why
ghostmoth has quit [Quit: ghostmoth]
<benzrf> fun fact: in haskell ALL THINGS ARE LAZY ALL THE TIME FOREVER
<benzrf> toretore: iban
<benzrf> isnt that a runescape dude
phutchins has quit [Ping timeout: 265 seconds]
<xymbol> benzrf: In order to have user-supplied algorithms in Ruby that don't share the host app's context.
<benzrf> i bet jruby would be good at that
<xymbol> If the purpose of mruby is to be embeddable, why not within a ruby app? :-)
bricker`work has quit [Ping timeout: 240 seconds]
krisquigley has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
<benzrf> heck if i know!!
thumpba_ has quit [Ping timeout: 260 seconds]
<xymbol> Not having a "full" ruby would also be a plus.
<xymbol> I mean, w/o the standard library and so on.
<xymbol> Anyway, will keep asking.
<insaneinside> xymbol: somehow I doubt the C-level data types are compatible -- so sharing data would be somewhat problematic unless you wanted to recreate it.
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
xcyclist has quit [Quit: Page closed]
dvabr has quit [Ping timeout: 272 seconds]
thumpba has joined #ruby
<xymbol> insaneinside: I'm fine recreating. There's johnson and therubyracer so I'm sure this is doable.
krisquig_ has quit [Read error: Connection reset by peer]
_whitelogger has joined #ruby
xenomorph has joined #ruby
drPoggs has joined #ruby
charliesome_ has quit [Ping timeout: 260 seconds]
machty_ has joined #ruby
SpaceKookie has joined #ruby
leslie has joined #ruby
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
iaj_ has joined #ruby
_chs__ has joined #ruby
daxroc_ has joined #ruby
musicmatze1 has joined #ruby
ohcibi has joined #ruby
jasooon_ has joined #ruby
BraddBitt has joined #ruby
lemur_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
mayamai has joined #ruby
adambeynon_ has joined #ruby
n1ftyn8_ has joined #ruby
HashNuke_ has joined #ruby
casual_ has joined #ruby
krisquigley has joined #ruby
Tranquility____ has joined #ruby
patric100e99 has joined #ruby
ionelmc-not-here has joined #ruby
troter__ has joined #ruby
endash_ has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
Hightower_ has quit [Ping timeout: 272 seconds]
iamayam has quit [Ping timeout: 272 seconds]
iaj has quit [Read error: Connection reset by peer]
musicmatze has quit [Ping timeout: 272 seconds]
Nigel_ has joined #ruby
sparr_ has joined #ruby
samflores_ has joined #ruby
skmp_ has joined #ruby
bluehavana_ has joined #ruby
MiracleBlue_ has joined #ruby
poguez_ has joined #ruby
kalleth_ has joined #ruby
andrewstewart_ has joined #ruby
thesheff17_ has joined #ruby
charles81___ has joined #ruby
akitada___ has joined #ruby
blz37 has quit [Ping timeout: 272 seconds]
mayamai is now known as iamayam
BraddPitt has quit [Ping timeout: 272 seconds]
endash_ is now known as endash
pmarreck has joined #ruby
machty_ has joined #ruby
im0b has joined #ruby
kapowaz has joined #ruby
ckrailo_ has joined #ruby
Trieste has joined #ruby
leslie has joined #ruby
xenomorph has joined #ruby
pmarreck has quit [Changing host]
kapowaz has quit [Changing host]
machty_ has quit [Changing host]
im0b has quit [Changing host]
ckrailo_ has quit [Changing host]
xenomorph has quit [Changing host]
Trieste has quit [Changing host]
leslie has quit [Changing host]
ikanobori_ has joined #ruby
incomprehensibly has joined #ruby
heftig has joined #ruby
Hightower_ has joined #ruby
ndrst_ has joined #ruby
jasooon has quit [Ping timeout: 260 seconds]
HashNuke_ is now known as HashNuke
vcoinminer______ has joined #ruby
reprazent has joined #ruby
casual_ is now known as casual
jhass|off has joined #ruby
JStoker has joined #ruby
adambeynon_ is now known as adambeynon
krisquigley has quit [Read error: Connection reset by peer]
ceej has joined #ruby
freerobby has quit [Quit: Leaving.]
elektronaut has joined #ruby
troter__ is now known as troter_
daxroc_ is now known as daxroc
_chs__ is now known as _chs_
jhass|off is now known as jhass
Jello_Raptor has joined #ruby
tekacs has joined #ruby
phrozen77 has joined #ruby
krisquigley has joined #ruby
jokke has joined #ruby
n1ftyn8_ is now known as n1ftyn8
charliesome has joined #ruby
poguez_ is now known as poguez
skmp_ is now known as skmp
andrewstewart_ is now known as andrewstewart
Affix_ has joined #ruby
Tranquility____ is now known as Tranquility___
Affix_ is now known as Affix
gccostabr has quit [Ping timeout: 272 seconds]
bluehavana_ is now known as bluehavana
lele has joined #ruby
SegFaultAX has joined #ruby
az has joined #ruby
ionelmc-not-here is now known as ionelmc
reinaldob has quit [Ping timeout: 272 seconds]
ionelmc is now known as Guest75861
charles81___ is now known as charles81__
thesheff17_ is now known as thesheff17
echooo has quit [Ping timeout: 262 seconds]
echooo has joined #ruby
freerobby has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
heyimwill has joined #ruby
Mia has quit [Read error: Connection reset by peer]
MiracleBlue_ is now known as MiracleBlue
krisquigley has joined #ruby
gccostabr has joined #ruby
unclouded has joined #ruby
end_guy has quit [Remote host closed the connection]
phutchins has joined #ruby
justin_pdx has joined #ruby
_whitelogger_ has joined #ruby
Trieste has joined #ruby
snath has quit [Ping timeout: 260 seconds]
eval-in_ has quit [Ping timeout: 260 seconds]
nanoyak has quit [Ping timeout: 260 seconds]
_KaszpiR_ has quit [Ping timeout: 260 seconds]
matchaw has quit [Ping timeout: 260 seconds]
msx has quit [Ping timeout: 260 seconds]
tzero has quit [Ping timeout: 260 seconds]
Gnubie_ has quit [Ping timeout: 260 seconds]
rblackwe_ has quit [Ping timeout: 260 seconds]
frankS2 has joined #ruby
ruisantos has joined #ruby
teejar has joined #ruby
mclee has quit [Ping timeout: 260 seconds]
bbloom_ has joined #ruby
oinkon has joined #ruby
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
<oinkon> In ruby are classes themselves objects?
gccostabr has quit [Client Quit]
sepp2k has joined #ruby
<insaneinside> oinkon: if you don't look too closely, yes.
Norrin has joined #ruby
Guest75861 has quit []
<benzrf> oinkon: forget your primitive java notions of clsases
ckrailo__ has joined #ruby
hamakn has joined #ruby
<benzrf> oinkon: ruby classes are just objects that are instances of Class
<benzrf> and it so happens that there's a nice syntax for creating the
_KaszpiR__ has joined #ruby
maZtah_ has joined #ruby
<benzrf> m
iiinzg has quit [Ping timeout: 255 seconds]
musl_ has joined #ruby
eval-in__ has joined #ruby
<insaneinside> so what's a Class?
<insaneinside> (THAT'S LOOKING TOO CLOSELY GO AWAY!)
ericwood_ has joined #ruby
im0b_ has joined #ruby
iinzg has joined #ruby
krisquigley has joined #ruby
vieq has quit [Ping timeout: 250 seconds]
queequeg2 has joined #ruby
cbetta_ has joined #ruby
<oinkon> benzrf: i'm coming from javascript not java. there really is no such thing as a class. we fake it sometimes with objects and prototypes
ionelmc_ has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
SegFaultAX_ has joined #ruby
kapowaz_ has joined #ruby
end_guy has joined #ruby
Gnubie__ has joined #ruby
orionstein_ has joined #ruby
pmarreck_ has joined #ruby
benlakey_ has joined #ruby
flagg0204_ has joined #ruby
matchaw_ has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
gremax_ has joined #ruby
DanKnox_ has joined #ruby
napcae_ has joined #ruby
RaCx_ has joined #ruby
SirCmpwn_ has joined #ruby
nanoyak_ has joined #ruby
multi_io has joined #ruby
pasv has joined #ruby
duncan1 has joined #ruby
Maxdaman1us has joined #ruby
machty__ has joined #ruby
echooo has quit [Quit: echooo]
drjfreez1 has joined #ruby
<benzrf> oh o k
kobain has quit [Ping timeout: 272 seconds]
rblackwe has joined #ruby
echooo has joined #ruby
mumblet has joined #ruby
frankS2 has joined #ruby
<benzrf> >> Class.class.equal? Class
dr_toboggan has joined #ruby
karupas has joined #ruby
ballPointPenguin has quit [Ping timeout: 272 seconds]
chrishou_ has joined #ruby
frankS2 has joined #ruby
jerematic_ has joined #ruby
<eval-in__> benzrf => true (https://eval.in/206082)
queequeg1 has quit [Ping timeout: 272 seconds]
_2easy has quit [Ping timeout: 272 seconds]
mumblerit has quit [Ping timeout: 272 seconds]
napcae has quit [Ping timeout: 272 seconds]
justin_pdx has quit [Ping timeout: 272 seconds]
RaCx has quit [Ping timeout: 272 seconds]
Cimelide_ has quit [Ping timeout: 272 seconds]
Maxdamantus has quit [Ping timeout: 272 seconds]
dr_toboggan has quit [Ping timeout: 272 seconds]
bbloom has quit [Ping timeout: 272 seconds]
orionstein has quit [Ping timeout: 272 seconds]
tiguser has quit [Ping timeout: 272 seconds]
ctrlrsf has quit [Ping timeout: 272 seconds]
multi_io_ has quit [Ping timeout: 272 seconds]
RaCx_ is now known as RaCx
orionstein_ is now known as orionstein
DanKnox_ is now known as DanKnox
SegFaultAX_ is now known as SegFaultAX
frankS2 has quit [Changing host]
frankS2 has quit [Changing host]
peeja_ has joined #ruby
gremax_ is now known as gremax
<benzrf> trippy maan
nug has joined #ruby
incomprehensibly has joined #ruby
tiguser has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
heftig has joined #ruby
<insaneinside> Turtles. *All* the way down.
Trieste has quit [Changing host]
Trieste has joined #ruby
ballPointPenguin has joined #ruby
cbetta_ is now known as cbetta
mumblerit is now known as Guest19762
<arrubin> >> foo = Class.new; bar = foo.new
<eval-in__> arrubin => #<#<Class:0x420dcf7c>:0x420dcf54> (https://eval.in/206083)
peeja_ is now known as peeja
lele has joined #ruby
krisquigley has joined #ruby
Cimelide_ has joined #ruby
phrozen77 has joined #ruby
benlakey_ is now known as benlakey
amitchellbullard has joined #ruby
SpaceKookie has joined #ruby
ckrailo__ is now known as ckrailo_
tzero has joined #ruby
ujjain has joined #ruby
kapowaz_ is now known as kapowaz
jeregrine has joined #ruby
nemesit|znc has joined #ruby
xenomorph has joined #ruby
rshetty has joined #ruby
_2easy has joined #ruby
Wolland has joined #ruby
SirCmpwn_ is now known as SirCmpwn
<oinkon> functions aren't objects though right? i'd have to use Proc or lambda to create something like a function object?
im0b_ is now known as im0b
maZtah_ is now known as maZtah
<benzrf> only methods
kalz has joined #ruby
<benzrf> and they are not first-class!
<benzrf> oinkon: ruby has no "functions" sadly
ceej has joined #ruby
<sevenseacat> theyre not?
<benzrf> >> def foo(n); n + 1; end; foo = 4; foo(6)
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
<eval-in__> benzrf => 7 (https://eval.in/206084)
Cimelide_ has quit [Client Quit]
<benzrf> oinkon: note the separate namespaces ;-;
aspires has quit []
<eval-in__> insaneinside => 42 (https://eval.in/206085)
<insaneinside> >> def foo=(n); puts("Hi!"); end; foo = 42
omosoj has quit [Quit: leaving]
<insaneinside> erp?
ctrlrsf has joined #ruby
<arrubin> >> foo = "asdf".public_method :size; foo.class
<eval-in__> arrubin => Method (https://eval.in/206086)
msx has joined #ruby
<benzrf> partiallllllly
<oinkon> is that a consequence of ruby trying to get a way without the parenthesis? :-)
<insaneinside> oinkon: it's horrible, isn't it?
<benzrf> but mostly just a design choice
<benzrf> smalltalk worked the same way and ruby bit off smalltalk
<arrubin> It is called uniform access. http://en.wikipedia.org/wiki/Uniform_access_principle#Ruby
vieq has joined #ruby
<benzrf> insaneinside: otherwise it's a local var
<insaneinside> awww, that's disappointing.
<benzrf> insaneinside: foo= methods only get called when u say obj.foo=
krisquig_ has joined #ruby
Guest4753 has joined #ruby
ckrailo_ is now known as ckrailo
<benzrf> oinkon: ruby is not what i would call "elegantly designed"
<benzrf> what it IS is fun(ish) and convenient (for some tasks)
nanoyak_ has quit [Quit: Computer has gone to sleep.]
krisquigley has quit [Read error: Connection reset by peer]
Wolland has quit [Ping timeout: 258 seconds]
<oinkon> i won't judge. like i said i'm coming from javascript. :). i don't think brandon eich had time to even design
<benzrf> *brendan isnt it
rshetty has joined #ruby
<oinkon> benzrf: you're right
<benzrf> ( ͡° ͜ʖ ͡°)
<benzrf> it's not at all surprising that js has weird notions of equality when u consider who made it
<insaneinside> Ruby: good enough for many things, perfect for very few. But still better than PHP.
echooo has quit [Quit: echooo]
<benzrf> anyway if you like you your first-class-functions i recommend looking into haskell eventually
krisquigley has joined #ruby
* benzrf is a shill
_5kg has joined #ruby
<oinkon> that lazy evaluation by default is a bit rough on me
krisquig_ has quit [Read error: Connection reset by peer]
<benzrf> u never realize how great static typing is until you try it in a language that didn't descend from C
<benzrf> how so?
_2easy has joined #ruby
cndiv has joined #ruby
xenomorph has joined #ruby
rshetty is now known as 6A4AA2FID
_2easy has quit [Changing host]
xenomorph has quit [Changing host]
echooo1 has joined #ruby
Asher has quit [Quit: Leaving.]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
6A4AA2FID has quit [Ping timeout: 260 seconds]
kobain has joined #ruby
davispuh has quit [Ping timeout: 240 seconds]
<sevenseacat> benzrf: seems like some uncalled-for cheap shots.
BLuEGoD has joined #ruby
snath has joined #ruby
bentanweihao has joined #ruby
<benzrf> sevenseacat: huh?
xymbol has quit [Read error: Connection reset by peer]
<sevenseacat> about js equality
xymbol has joined #ruby
krisquig_ has joined #ruby
<benzrf> oh poo
krisquigley has quit [Read error: Connection reset by peer]
kobain has quit [Max SendQ exceeded]
nanoyak has joined #ruby
badhatter_ has quit [Read error: Connection reset by peer]
kobain has joined #ruby
kobain has quit [Changing host]
kobain has joined #ruby
jimmyy has quit [Ping timeout: 240 seconds]
<oinkon> cheap shot at the man or the language?
<oinkon> ah nevermind. we're drifting way off topic and dangerously into politics.
<benzrf> POLITICS 8D
<benzrf> 09:52 < oinkon> that lazy evaluation by default is a bit rough on me
<benzrf> 09:52 < benzrf> how so?
blz37 has joined #ruby
krisquigley has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
<oinkon> benzrf: it's just hard for me to get my head around. i'm to afraid of picking the wrong fold and swallowing up memory
lampd1 has joined #ruby
__main__ has joined #ruby
<benzrf> trust me dude
<benzrf> just dont worry about it
<benzrf> if you care so much about perf why are you using ruby ?
<benzrf> :p
Maxdaman1us is now known as Maxdamantus
BadQuanta has joined #ruby
krisquig_ has joined #ruby
MSY has joined #ruby
echevemaster has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
MSY is now known as Guest19507
jonr22 has quit [Remote host closed the connection]
tyll_ has joined #ruby
boombadaroomba has joined #ruby
* insaneinside goes back to his C programs...
charliesome has quit [Quit: zzz]
krisquigley has joined #ruby
rshetty has quit [Remote host closed the connection]
krisquig_ has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
aspiringflaneur has joined #ruby
Hanmac has joined #ruby
yetanotherdave has quit [Ping timeout: 272 seconds]
tyll has quit [Ping timeout: 244 seconds]
bentanweihao has quit [Remote host closed the connection]
krisquigley has quit [Read error: Connection reset by peer]
paulfm has joined #ruby
krisquigley has joined #ruby
GriffinHeart has joined #ruby
justinmburrous has joined #ruby
boombadaroomba has quit [Ping timeout: 255 seconds]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
charliesome has joined #ruby
rshetty has quit [Ping timeout: 260 seconds]
<sterns> att
bentanwe_ has joined #ruby
klmlfl has joined #ruby
sambao21 has joined #ruby
GriffinHeart has quit [Ping timeout: 246 seconds]
jnollett_ has quit [Quit: Leaving...]
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
Cache_Money has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
justinmburrous has quit [Ping timeout: 272 seconds]
goshdarnyou has joined #ruby
adamsilver has joined #ruby
<adamsilver> why this is selecting the first zz: instead of the second zzz: ? http://rubular.com/r/lmUjKJ2rYY
dorei has quit []
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
rshetty has joined #ruby
sambao21 has quit [Ping timeout: 255 seconds]
doodlehaus has joined #ruby
Peter has joined #ruby
lw has joined #ruby
paulfm has quit []
Peter is now known as Guest86024
oinkon has quit [Ping timeout: 245 seconds]
krisquig_ has joined #ruby
jimbach has quit [Remote host closed the connection]
chipotle has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
jimbach has joined #ruby
doodlehaus has quit [Remote host closed the connection]
lw has quit [Client Quit]
paulfm has joined #ruby
oinkon has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
beef-wellington has quit [Ping timeout: 272 seconds]
krisquigley has joined #ruby
bentanwe_ has quit []
nanoyak has quit [Quit: Computer has gone to sleep.]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
jimbach has quit [Ping timeout: 244 seconds]
oinkon has quit [Ping timeout: 246 seconds]
phutchins has quit [Ping timeout: 260 seconds]
krisquig_ has joined #ruby
sevvie has quit [Quit: leaving]
krisquigley has quit [Read error: Connection reset by peer]
aspiringflaneur has quit [Quit: ZZZzzz…]
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
agent_white has joined #ruby
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimmyy has joined #ruby
levisbakalinsky is now known as levisbakalinsky|
justinmburrous has joined #ruby
<agent_white> Evenin'
jimmyy has quit [Max SendQ exceeded]
jimmyy has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
Lutece has joined #ruby
aspiringflaneur has joined #ruby
aspiringflaneur has quit [Max SendQ exceeded]
jzigmund has quit [Ping timeout: 240 seconds]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
levisbakalinsky| has quit [Ping timeout: 255 seconds]
paulfm has quit []
krisquigley has quit [Read error: Connection reset by peer]
krisquig_ has joined #ruby
jimms has joined #ruby
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
Wolland has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
rshetty has quit [Remote host closed the connection]
jnollette has joined #ruby
mark06 has joined #ruby
bricker`work has joined #ruby
rshetty has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
fuhgeddaboudit has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
klmlfl has quit [Remote host closed the connection]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
xymbol has quit [Quit: Be back later ...]
threesixes has quit [Remote host closed the connection]
mary5030 has joined #ruby
rshetty has quit [Ping timeout: 244 seconds]
krz has joined #ruby
Guest86024 has quit [Remote host closed the connection]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
brahmadpk has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krisquig_ has joined #ruby
GriffinHeart has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
GriffinHeart has quit [Remote host closed the connection]
krisquigley has joined #ruby
GriffinHeart has joined #ruby
chipotle has quit [Quit: cya]
Asher has joined #ruby
freezey has joined #ruby
ndrei has joined #ruby
ericwood_ is now known as ericwood
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
yfeldblu_ has quit [Ping timeout: 260 seconds]
bentanweihao has joined #ruby
radic has quit [Disconnected by services]
jdj_dk has quit [Read error: Connection reset by peer]
radic_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
iamjarvo has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
krisquigley has joined #ruby
Kricir has joined #ruby
aquatty has quit [Ping timeout: 245 seconds]
IceDragon has quit [Quit: Space~~~]
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
BadQuanta1 has joined #ruby
krisquigley has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
Kricir has quit [Ping timeout: 255 seconds]
backsorry has joined #ruby
BadQuanta has quit [Ping timeout: 265 seconds]
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
dg11 has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
patric100e99 has quit [Ping timeout: 260 seconds]
jimbach has joined #ruby
krisquigley has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
c107 has joined #ruby
Radar has quit [Quit: ZNC - http://znc.in]
helpa has quit [Remote host closed the connection]
alvaro_o has quit [Quit: Ex-Chat]
krisquigley has quit [Read error: Connection reset by peer]
krisquig_ has joined #ruby
Guest19762 is now known as mumblerit
braincrash has joined #ruby
jimbach has quit [Ping timeout: 245 seconds]
oinkon has joined #ruby
iamdoo2 has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
justinmburrous has quit [Remote host closed the connection]
cpruitt has joined #ruby
cpruitt has quit [Client Quit]
justin_pdx has joined #ruby
Takle has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
aquatty has joined #ruby
justin_pdx has quit [Client Quit]
xymbol has joined #ruby
justin_pdx has joined #ruby
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
Takle has quit [Ping timeout: 258 seconds]
benzrf is now known as benzrf|offline
sepp2k has quit [Read error: Connection reset by peer]
lw has joined #ruby
Kricir has joined #ruby
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
aquatty has quit [Ping timeout: 265 seconds]
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
jdj_dk has joined #ruby
it0a has joined #ruby
aquatty has joined #ruby
Scotteh has joined #ruby
x77686d has joined #ruby
x77686d has quit [Client Quit]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
fuhgeddaboudit has quit [Quit: Ex-Chat]
tylersmith has quit []
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
Scotteh has quit [Ping timeout: 244 seconds]
psy has joined #ruby
arup_r has joined #ruby
krisquigley has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
<jeaye> Is there a nice way to get this in one line?
<jeaye> bits = l.match(/from='(\w+)@/) { |m| m.captures }
<jeaye> bits ||= ["unknown"]
<insaneinside> >> nil || true
<eval-in__> insaneinside => true (https://eval.in/206089)
<jeaye> ah
<insaneinside> jeaye: so put || ['unknown'] after the block
<jeaye> Yeah, that's nice.
jimms has quit [Remote host closed the connection]
<jeaye> Thanks, insaneinside
<insaneinside> np
jimms has joined #ruby
Wolland has joined #ruby
krisquigley has quit [Ping timeout: 255 seconds]
kith_ has joined #ruby
Sammael has joined #ruby
chipotle has joined #ruby
bentanweihao has quit []
Lewix has quit [Quit: Leaving...]
gsd has joined #ruby
Wolland has quit [Ping timeout: 245 seconds]
JBreit has joined #ruby
kith has quit [Ping timeout: 240 seconds]
JBreit has left #ruby [#ruby]
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mclee has joined #ruby
musl_ has quit [Quit: WeeChat 0.4.3]
musl has joined #ruby
justinmburrous has joined #ruby
astav has joined #ruby
omosoj has joined #ruby
rshetty has joined #ruby
gabriel-artigue has quit [Remote host closed the connection]
jimms has quit [Remote host closed the connection]
Radar has joined #ruby
levisbakalinsky has joined #ruby
Radar is now known as Guest20623
helpa has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
it0a has quit [Ping timeout: 258 seconds]
Lutece has quit [Quit: .]
Guest20623 is now known as Radar
justinmb_ has joined #ruby
astav has quit [Quit: astav]
malcolmva has quit [Ping timeout: 246 seconds]
justinmburrous has quit [Ping timeout: 255 seconds]
mescoda has joined #ruby
havenwood has joined #ruby
mescoda has quit [Client Quit]
jimbach has joined #ruby
soulcake has quit [Ping timeout: 260 seconds]
soulcake has joined #ruby
scruple has joined #ruby
maxmachine has joined #ruby
jimbach has quit [Ping timeout: 260 seconds]
echevemaster_ has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tlarevo has joined #ruby
oo_ has quit [Remote host closed the connection]
anaeem1 has joined #ruby
oo_ has joined #ruby
wolves_cs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
malcolmva has joined #ruby
Peter has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
maxmachine has left #ruby [#ruby]
Peter is now known as Guest3611
hmsimha has joined #ruby
Guest3611 has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
oo_ has joined #ruby
havenwood has joined #ruby
bthesorceror has joined #ruby
gsd has joined #ruby
omosoj has quit [Ping timeout: 265 seconds]
top4o has joined #ruby
kies has joined #ruby
adamsilver has left #ruby [#ruby]
omosoj has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
Channel6 has joined #ruby
koderok has joined #ruby
echooo1 has quit [Read error: Connection reset by peer]
echooo has joined #ruby
linojon has quit [Quit: linojon]
linojon has joined #ruby
it0a has joined #ruby
brahmadpk has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
echooo1 has joined #ruby
echooo has quit [Ping timeout: 245 seconds]
echooo has joined #ruby
JeffBonds has quit [Quit: JeffBonds]
echooo1 has quit [Ping timeout: 244 seconds]
schaerli has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nonks has quit [Ping timeout: 272 seconds]
Wolland has joined #ruby
schaerli has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving.]
Wolland has quit [Ping timeout: 240 seconds]
Xiti has quit [Quit: Leaving]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mercwithamouth has joined #ruby
mistermocha has joined #ruby
brahmadpk has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arescorpio has quit [Excess Flood]
justin_pdx has joined #ruby
Kricir has quit [Remote host closed the connection]
goshdarnyou has quit [Quit: Connection closed for inactivity]
Kricir has joined #ruby
echooo1 has joined #ruby
echevemaster_ has quit [Quit: Leaving]
maxmachine has joined #ruby
rgs_ is now known as rgs
echooo has quit [Ping timeout: 260 seconds]
dope has joined #ruby
lemur_ has quit [Read error: Connection reset by peer]
Kricir has quit [Ping timeout: 245 seconds]
lemur has joined #ruby
aspires has joined #ruby
MasterPiece has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
jimbach has joined #ruby
shortCircuit__ has joined #ruby
Peter has joined #ruby
jdj_dk has quit [Ping timeout: 255 seconds]
Peter is now known as Guest85888
koderok has quit [Ping timeout: 255 seconds]
jimbach has quit [Ping timeout: 260 seconds]
dope has left #ruby [#ruby]
<shevy> Gtk::IconSize::BUTTON
maestrojed has joined #ruby
levisbakalinsky is now known as levisbakalinsky|
brahmadpk has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Channel6 has quit [Quit: Leaving]
patrick99e99 has joined #ruby
atmosx has joined #ruby
bmurt has joined #ruby
jasooon_ has quit [Ping timeout: 255 seconds]
bmurt has quit [Client Quit]
freezey has quit [Remote host closed the connection]
levisbakalinsky| has quit [Ping timeout: 250 seconds]
justin_pdx has quit [Quit: justin_pdx]
patrick99e99 has quit [Ping timeout: 255 seconds]
crazydiamond has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
spastorino has quit [Quit: Connection closed for inactivity]
duncannz has joined #ruby
lxsameer has joined #ruby
GriffinH_ has joined #ruby
larissa has quit [Quit: Leaving]
rubie has quit [Ping timeout: 246 seconds]
bricker`work has quit [Ping timeout: 255 seconds]
GriffinHeart has quit [Ping timeout: 250 seconds]
justinmb_ has quit [Remote host closed the connection]
Xiti has joined #ruby
justinmburrous has joined #ruby
monkeypatch has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has joined #ruby
sinequanon has joined #ruby
emocakes has quit [Ping timeout: 255 seconds]
oleo__ has quit [Quit: Verlassend]
noop has joined #ruby
linojon has quit [Quit: linojon]
duncannz has quit [Read error: No route to host]
duncan_ has joined #ruby
krisquigley has joined #ruby
brahmadpk has joined #ruby
emocakes has joined #ruby
t_mmyv has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
echevemaster has quit [Quit: Leaving]
narcan has joined #ruby
techsethi has joined #ruby
duncan_ has quit [Remote host closed the connection]
lfox has joined #ruby
lfox has quit [Max SendQ exceeded]
twoshot_ has joined #ruby
<twoshot_> so i'm getting a method not found error
<twoshot_> and i must be doing something really dumb
<twoshot_> i have a simple test case..... i'll upload it to code bin
codecop has joined #ruby
<twoshot_> but i'm basically creating a module and then trying to access it
krisquigley has quit [Ping timeout: 260 seconds]
duncannz has joined #ruby
aspires has quit []
<twoshot_> why do i get that error with that code? (error is in the comments)
techsethi has quit [Quit: techsethi]
<twoshot_> i don't think "include" is what i'm looking for, because i don't want to do a mixin
starkhalo has quit [Ping timeout: 240 seconds]
Xiti has quit [Quit: Leaving]
Wolland has joined #ruby
Xiti has joined #ruby
mistermocha has quit [Remote host closed the connection]
<tmoore> twoshot_: def self.do_something
<tmoore> that tells it to make it a class method, instead of an instance method
<twoshot_> i swear i just read something that said modules had no instance methods lol
<tmoore> the way you have it now, it would be defined on instances that include the module, rather than on the module object itself
<twoshot_> but then again, it said they did about two sentences later, so i don't think the author did a wonderful job
<tmoore> twoshot_: you can't make an instance from a module directly
<tmoore> maybe that's what you read
<twoshot_> i think that's what he meant
<tmoore> or what the author meant
<tmoore> yep :-)
justin_pdx has joined #ruby
<twoshot_> thanks. i'll go try your solution
<shevy> twoshot_ both modules and classes can have "class" methods
<shevy> >> module Foo; def self.bar; puts 'yo from bar'; end; end; Foo.bar()
<eval-in__> shevy => yo from bar ... (https://eval.in/206099)
<twoshot_> awesome thanks guys :)
mistermocha has joined #ruby
<twoshot_> it works now
<shevy> you can also have both a class method and an instance (instantiable) method from a module, upon inclusing into a class; e. g. module Foo; def bar; puts 'bar'; end; module_function :bar; end; class Ble; include Foo; end
duncannz has quit [Ping timeout: 240 seconds]
<shevy> *upon inclusion
<shevy> it's way too early here to type :(
freezey has joined #ruby
badhatter has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
justinmburrous has quit [Remote host closed the connection]
neoxquick has quit [Read error: Connection reset by peer]
justinmburrous has joined #ruby
<twoshot_> i didn't fully follow that
<twoshot_> i would think that what you said would be intuitively true
<twoshot_> but they all look like class methods
<twoshot_> and i don't understand :bar or "def bar;" (specifically the semicolon)
mistermocha has quit [Ping timeout: 260 seconds]
bricker`work has joined #ruby
freezey has quit [Ping timeout: 246 seconds]
x77686d has joined #ruby
x77686d has quit [Client Quit]
<sinequanon> :bar is a symbol, def bar; ...; end; is a one-line instance method
<sinequanon> twoshot_: ^
Guest19507 has quit [Quit: Leaving]
<shevy> twoshot_ well the thing is - there is not much difference between a class and a module in ruby. a module is basically a crippled class
MSY has joined #ruby
MSY is now known as Guest62689
doug1 has joined #ruby
insaneinside has quit [Ping timeout: 244 seconds]
<shevy> twoshot_ all methods will return their names as a symbol, unless they can return something meaningful
<shevy> >> result = def foo; end; p result
<eval-in__> shevy => :foo ... (https://eval.in/206100)
<shevy> oh
justinmburrous has quit [Ping timeout: 272 seconds]
<shevy> actually, the def always returns the name of that method
<twoshot_> hm. interesting
tagrudev has joined #ruby
<twoshot_> so why would one use a module as opposed to a class?
<shevy> it's an artificial separation
<twoshot_> to enforce the crippling constraints peut-etre/
<twoshot_> ?*
jnollett_ has joined #ruby
<shevy> matz wanted multiple inheritance without C++ multiple inheritance style
<tmoore> you can include modules, not classes
<shevy> yeah
<twoshot_> ah ok
<twoshot_> thanks
<shevy> but you can subclass from a class
<tmoore> and sometimes you don't want your module to be instantiable
<shevy> so you basically have very similar functionality
<tmoore> like if you're using it for namespacing only
<shevy> if you ask me, a module is simply more lightweight and less restrictive than the subclass-hierarchy
<shevy> right but you can also use a class for namespacing
<shevy> class Foo; class Bar
<shevy> module Foo; class Bar
<shevy> in the first example, you get the option to use Foo.new on the top namespace though
<shevy> what I typically end up doing is like do this:
<shevy> mkdir foobar # new project foobar
<shevy> inside there, mkdir constants, touch constants/constants.rb <--- and here I put most of the main constants of that project
<shevy> common namespace would usually be module Foobar
<shevy> in constants.rb, I make a sub namespace called module Constants, that will reside within Foobar
jnollette has quit [Ping timeout: 255 seconds]
<sinequanon> why? does Foobar::MY_CONSTANT not suffice?
oinkon has quit [Ping timeout: 258 seconds]
jimbach has joined #ruby
<shevy> sinequanon what is your largest project so far?
rippa has joined #ruby
freezey has joined #ruby
<shevy> once you have several hundred constants you tend to group things differently
justin_pdx has quit [Quit: justin_pdx]
<sinequanon> it's a genuine question
<shevy> it's a genuine answer
<sinequanon> extrapolating your example, presumably every module would have a Constants submodule then?
<shevy> nah
<sinequanon> then why is Foobar different?
<shevy> because it is a large project
duncannz has joined #ruby
nb_bez___ has quit [Quit: Connection closed for inactivity]
<sinequanon> can you elaborate, give a few more examples?
sandelius has joined #ruby
<shevy> sinequanon how would you use this: http://pastie.org/9648909
justinmburrous has joined #ruby
jimbach has quit [Ping timeout: 272 seconds]
<sinequanon> what do you mean how would i use it?
freezey has quit [Ping timeout: 272 seconds]
<shevy> well you said that you would not use a constant submodule
<shevy> yet there are plenty of constants
<shevy> so how would you use them?
<sinequanon> right, i'm suggesting that'd I'd have MyModule::RPL_WELCOME
<tmoore> IMO if you're putting all of your constants into one Contants module... that's not that good
<sinequanon> vs. MyModule::Constants::RPL_WELCOME
<shevy> k so you put them all into what file exactly?
<shevy> nope
<shevy> I don't have to type the above; I include it of course
<tmoore> put each constant with the code that uses it
<sinequanon> ^
<shevy> so if you have 100 .rb file
<tmoore> if you have lots of code all over the place sharing a constant, that's a design problem
<shevy> how do you solve that?
nheinrich has joined #ruby
<twoshot_> what about database connection strings?
<twoshot_> that's not a design problem, and lots of code all over the place will use it
<tmoore> doesn't matter if it's 10 files, 100 files or 1000 files... you need some degree of modularity in your code or all hope is lost
<tmoore> I challenge your assumption that code all over the place should be using a database connection string :-)
<shevy> well you did not answer the question - if different files require different constants, how do you make use of that? do you put individual constants into separate .rb files and only load those constants?
<tmoore> you want one class that manages your database connection
Macaveli has joined #ruby
<tmoore> "4:56 PM <tmoore> put each constant with the code that uses it"
<sinequanon> i'm sorta confused why you'd include constants, rather than just declaring them
bthesorceror has quit [Ping timeout: 255 seconds]
<shevy> tmoore that does not solve the issue that different part of the code can require different and multiple constants
<twoshot_> well, for instance, in c#, i suppose you could wrap creation of a database connection
<shevy> sinequanon they are already "declared" - in their own namespace
<twoshot_> ok, yeah, i think you're right
<twoshot_> i think i've been looking at too much terrible asp code from the company that bought us :)
<tmoore> shevy: I don't understand what the issue is
<sinequanon> shevy: i'm not understanding either
<shevy> k you guys show me your big projects?
<sinequanon> pass
<sinequanon> the size of the project is irrelevant
<shevy> k so you don't have anything to show
<sinequanon> haha
<shevy> what is the maximum amount of constants you have used in any of your projects so far?
<sinequanon> i think you're missing the point
<sevenseacat> yeah shevy's kind of a troll.
<shevy> i think you are like 5 constant guys
<tmoore> shevy: don't be rude. I've worked on big projects.
<shevy> ok link?
<tmoore> Not open source
<shevy> ohhhh ;-)
<sinequanon> i'm at 7.5 constant guy
<sinequanon> a*
<tmoore> OK assuming that you're trolling and going back to work
<shevy> you can assume all you want - as a factual statement: you don't have a big project to show where you use lots of constants.
<tmoore> well and actually, here's one that I have worked on that is open source https://github.com/bundler/bundler
<sevenseacat> sexist, and a troll.
<shevy> come on - you didn't write that project on your own
mistermocha has joined #ruby
<tmoore> if you are working on projects on your own, they are by definition not big projects
<shevy> what logic is that?
schaerli has joined #ruby
<shevy> a single person can not create something big?
<sinequanon> can we get back on topic?
bricker`work has quit [Ping timeout: 244 seconds]
<shevy> I only want to see how you guys use lots of constants in your projects
<sinequanon> if there's something to this Foobar::Constants::MY_CONSTANT stuff, i'd like to know
<shevy> sinequanon so where are your projects?
<sinequanon> in private repos?
<shevy> omg
<shevy> you secret folks
Wolland has joined #ruby
<sinequanon> much secret, very CIA, wow
justin_pdx has joined #ruby
<shevy> awesome
<sinequanon> good talk
<shevy> good secret points
<sinequanon> thanks for the help....i guess...
<shevy> thanks for the references to your projects ... i guess
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sinequanon> lol
arup_r has joined #ruby
oinkon has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
larsam has left #ruby [#ruby]
Xeago has joined #ruby
Wolland has quit [Ping timeout: 245 seconds]
<twoshot_> linus created linux by himself at first, did he not?
Xeago has quit [Remote host closed the connection]
<twoshot_> how do we define "big"
<shevy> yeah
<shevy> just as a hobby
justin_pdx has quit [Quit: justin_pdx]
<twoshot_> @sinequanon: "if there's something to this Foobar::Constants::MY_CONSTANT stuff, i'd like to know"
<shevy> twoshot_ by the definition above, linus could have never been doing a big project :-)
<twoshot_> just playing devil's advocate all day... but that could be used for searching for the usage of constants in a project
<twoshot_> especially in a dynamic language like ruby
<shevy> unless they are secret
<twoshot_> and it would make it waaaay easier than writing a regex
<twoshot_> though i suppose maybe you could use "::"
<twoshot_> or "Foobar::"
<twoshot_> lol yeah
<shevy> the IRC constants aren't mine actually
<sinequanon> sure, i suppose, but in my mind that doesn't warrant it's own module
<shevy> I think they were from rbot or the predecessor
Guest85888 has quit [Remote host closed the connection]
<shevy> ok here I found another example
bal has joined #ruby
<shevy> from the cinch bot
<shevy> those are all in: cinch-2.0.3/lib/cinch/constants.rb
<shevy> that's not even many constants!
yfeldblum has quit [Remote host closed the connection]
<sinequanon> i see the point of having a constants.rb -- they have to live somewhere afterall -- but i still don't understand the benefits of the Constants module
govg has joined #ruby
<shevy> grouping is lovely
ad_boot has joined #ruby
<sinequanon> MyApp::Modules::MyModule::Classes::MyClass::NoForRealsThisTime::HahaJustKidding.new
lw has quit [Quit: s]
<sevenseacat> thats like the enterprise java version of fizzbuzz
brahmadpk has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
oinkon has quit [Ping timeout: 246 seconds]
havenwood has quit [Ping timeout: 264 seconds]
omosoj has quit [Quit: leaving]
dumdedum has joined #ruby
nheinrich has quit []
Morkel has joined #ruby
gauke has joined #ruby
justin_pdx has joined #ruby
justin_pdx has quit [Client Quit]
doug1 has quit [Ping timeout: 260 seconds]
aganov has joined #ruby
Xeago has joined #ruby
fabrice31 has joined #ruby
schaerli has quit [Remote host closed the connection]
maestrojed has quit [Quit: Computer has gone to sleep.]
codecop has quit [Remote host closed the connection]
schaerli has joined #ruby
<jeaye> Ideas on a good way to turn "12:22:28:5" into "12:22:28:005"?
gauke has quit [Quit: gauke]
<Hanmac> jeaye is there a shema in that ?
dave_1734 has joined #ruby
<dave_1734> Hey.. anyone know where the rails channel went?
<jeaye> Hanmac: The last component should always be 3 digits and, in the input, it may be 3, 2, or 1.
<Hanmac> dave_1734: #rubyonrails
<dave_1734> cool thanks
jimbach has joined #ruby
freezey has joined #ruby
<dave_1734> Hey Hanmac.. That doesn't seem to be a real channel.
<Hanmac> hm maybe rails is not real and it was a illusion all along?
larsam has joined #ruby
brahmadpk has joined #ruby
shredding has joined #ruby
<Hanmac> jeaye:
<Hanmac> >> "%d:%d:%d:%03d" % "12:22:28:5".split(':').map(&:to_i)
<eval-in__> Hanmac => "12:22:28:005" (https://eval.in/206107)
<sevenseacat> it most definitely is a real channel.
<dave_1734> ODD..
<Hanmac> sevenseacat: psst dont tell him that ... i was only shortly before he belives that rails is not real ;P
<jeaye> Hanmac: Ah, this is better than what I was trying (match, capture, rjust(3, "0"))
<jeaye> Thanks.
raddy has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
AlexRussia has quit [Remote host closed the connection]
<raddy> Hello
<raddy> Anybody uses sonarqube here?
jimbach has quit [Ping timeout: 260 seconds]
freezey has quit [Ping timeout: 245 seconds]
bricker`work has joined #ruby
<sevenseacat> i mean, what is rails
<sevenseacat> how is rails formed
AlexRussia has joined #ruby
<shevy> by driving over some cats
<dave_1734> Ah.. sorry.. that seems to do it.. I need auth to get into it.
kaspergrubbe_ has quit [Remote host closed the connection]
<dave_1734> private as.
<shevy> it's a channel for the elites, after all
Darryl has joined #ruby
<shevy> unlike #ruby, which is free for all
it0a has quit [Ping timeout: 258 seconds]
ephemerian has joined #ruby
<dave_1734> I'd argue the revers shevy
Macaveli has joined #ruby
<sevenseacat> its not for elites, and never will be
<dave_1734> but then I like c over the other nasty things that followed :)
<sevenseacat> its to help keep out anonymous trolls and other wankers
<shevy> because C like conquered the web
<dave_1734> well you're using it right now.. so it didn't do to bad :)
<dave_1734> Humm..
<dave_1734> religion.. lets not go there :)
<shevy> I'd argue I would be using machine code
<Hanmac> sevenseacat: so that WE need to take care of the trolls because #rubyonrails is to "hippster" to do that?
gauke has joined #ruby
<dave_1734> Ha ha..
<dave_1734> Ha ha.. that was to hanmac.
<sevenseacat> well if you to filter them out too, you can do that
<shevy> #rubyonrails is more like a prison
<sevenseacat> *if you want to
<dave_1734> :)
<shevy> they think they keep others away but in fact they have put themselves into a jail
<sevenseacat> or just tell people to register, and send them there
<sevenseacat> easy done
User458764 has joined #ruby
jdj_dk has joined #ruby
<dave_1734> Anyone use resque-scheduler here?
<shevy> not here but on #rubyonrails
<shevy> :)
<dave_1734> this is not the room for the argument is it?
<dave_1734> Wait.. you already told me once.
<shevy> dunno
<shevy> as a rule of thumb, if it is part of the rails ecosystem, people on #rubyonrails should know. though some railsers like sevenseacat are also here on #ruby
<dave_1734> Ha ha.
<shevy> dave_1734 yup
<shevy> for the elite
<shevy> think of it as a low level entry barrier
<shevy> if you don't overcome it, you were not worthy :-)
<pontiki> ignoring that crap
<sevenseacat> good idea
Wolland has joined #ruby
<raddy> anybody uses sonarqube /
pu22l3r_ has joined #ruby
jdj_dk has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Ping timeout: 246 seconds]
raddy_ has joined #ruby
raddy_ has quit [Client Quit]
jdj_dk has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Guest4753 is now known as lnong
BadQuanta has joined #ruby
jottr has joined #ruby
agent_white has joined #ruby
Wolland_ has joined #ruby
BadQuanta1 has quit [Ping timeout: 240 seconds]
raddy has quit [Ping timeout: 240 seconds]
klaut has joined #ruby
bal has quit [Ping timeout: 250 seconds]
terlar has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
Photism has quit [Quit: Leaving]
bal has joined #ruby
Advocation has joined #ruby
krisquigley has joined #ruby
ad_boot has quit [Quit: ad_boot]
Advocation has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
terlar has quit [Quit: WeeChat 1.0.1]
shredding has quit [Quit: shredding]
terlar has joined #ruby
ad_boot has joined #ruby
echooo has joined #ruby
charliesome has joined #ruby
mityaz has joined #ruby
echooo1 has quit [Ping timeout: 272 seconds]
Advocation has joined #ruby
jnollette has joined #ruby
rshetty has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 272 seconds]
Advocation has quit [Client Quit]
francisfish has quit [Remote host closed the connection]
dave_1734 has quit [Ping timeout: 246 seconds]
charliesome has quit [Client Quit]
AlexRussia has quit [Ping timeout: 245 seconds]
jnollett_ has quit [Ping timeout: 244 seconds]
sk87 has joined #ruby
timonv_ has joined #ruby
Advocation has joined #ruby
francisfish has joined #ruby
ki0 has joined #ruby
chipotle has quit [Quit: cya]
ghr has joined #ruby
bal has quit [Ping timeout: 250 seconds]
Juanchito has joined #ruby
francisfish has quit [Ping timeout: 240 seconds]
oinkon has joined #ruby
havenwood has joined #ruby
echooo1 has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
Xeago has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
alem0lars has joined #ruby
echooo has quit [Ping timeout: 255 seconds]
oinkon has quit [Ping timeout: 272 seconds]
cndiv has quit [Ping timeout: 245 seconds]
echooo has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
echooo1 has quit [Ping timeout: 260 seconds]
kwd has joined #ruby
maxmachine has quit [Quit: maxmachine]
Skeit has joined #ruby
Skeit_ has joined #ruby
doug1 has joined #ruby
Calcifer has joined #ruby
xymbol has quit [Quit: Be back later ...]
arup_r_ has joined #ruby
matcouto has joined #ruby
king313 has joined #ruby
king313 has joined #ruby
Macaveli has quit [Ping timeout: 272 seconds]
Skeit has quit [Ping timeout: 250 seconds]
arup_r has quit [Ping timeout: 272 seconds]
nrsk has joined #ruby
blackmesa has joined #ruby
rshetty has joined #ruby
govg has quit [Ping timeout: 260 seconds]
jimbach has joined #ruby
freezey has joined #ruby
yfeldblum has joined #ruby
govg has joined #ruby
threesixes has joined #ruby
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
jimbach has quit [Ping timeout: 265 seconds]
bentanweihao has joined #ruby
freezey has quit [Ping timeout: 240 seconds]
arup_r_ has quit [Remote host closed the connection]
aspiers has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Remote host closed the connection]
justinmburrous has quit [Remote host closed the connection]
havenwood has joined #ruby
timonv_ has quit [Remote host closed the connection]
justinmburrous has joined #ruby
timonv_ has joined #ruby
yfeldblum has joined #ruby
Takle has joined #ruby
doev has joined #ruby
havenwood has quit [Remote host closed the connection]
Guest62689 has quit [Quit: Leaving]
mkaesz has joined #ruby
justin_pdx has joined #ruby
hmsimha has quit [Ping timeout: 260 seconds]
justinmburrous has quit [Read error: No route to host]
arup_r has joined #ruby
mengu has joined #ruby
justinmburrous has joined #ruby
justinmburrous has quit [Read error: Connection reset by peer]
justinmburrous has joined #ruby
mskaesz has joined #ruby
timonv_ has quit [Ping timeout: 250 seconds]
HelperW has joined #ruby
justin_pdx has quit [Client Quit]
kaspergrubbe has joined #ruby
kith_ is now known as kith
mkaesz has quit [Ping timeout: 258 seconds]
x77686d has joined #ruby
x77686d has quit [Client Quit]
Takle has quit [Ping timeout: 258 seconds]
justinmburrous has quit [Ping timeout: 244 seconds]
bweston92 has joined #ruby
doug1 has quit [Ping timeout: 272 seconds]
doev2 has joined #ruby
cleopatra has quit [Ping timeout: 244 seconds]
mxrguspxrt has joined #ruby
doev has quit [Ping timeout: 240 seconds]
kith has quit [Quit: kith]
oinkon has joined #ruby
<krz> i have a (1..100).to_a.each loop. how do i chech for the following sequence 2,5,8,11
Skeit_ has quit [Quit: Be back later ...]
qba73 has joined #ruby
kith has joined #ruby
alex88 has joined #ruby
mistermocha has joined #ruby
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
<gregf_> >> start = 2; (1..20).to_a.each { |val| begin puts val; start+=3; end if val == start; }
<eval-in__> gregf_ => 2 ... (https://eval.in/206133)
<gregf_> theres much easier ways tho :/
francisfish has joined #ruby
AFKGeek has joined #ruby
marr has joined #ruby
ghr has joined #ruby
<Mattias> Try to find the nth-term from the sequence instead. :)
Takle has joined #ruby
<Hanmac> krz & gregf_ ?
<Hanmac> >> 2.step(11,3).to_a
<eval-in__> Hanmac => [2, 5, 8, 11] (https://eval.in/206135)
mistermocha has quit [Ping timeout: 260 seconds]
Deejay_ has joined #ruby
gregwittman has joined #ruby
<gregwittman> close
<gregf_> there you go. it takes patience and determination to read those docs :/
kenndel_ has quit [Read error: Connection reset by peer]
gregwittman has left #ruby [#ruby]
AFKGeek has quit [Client Quit]
Deejay_ has quit [Client Quit]
kenndel_ has joined #ruby
AFKGeek has joined #ruby
ctp has joined #ruby
sinequanon has quit []
mikecmpbll has joined #ruby
charliesome has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker`work has quit [Ping timeout: 244 seconds]
bricker`work has joined #ruby
blackmesa has quit [Quit: WeeChat 1.0.1]
timonv_ has joined #ruby
joonty has joined #ruby
kennet___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
top4o has quit [Quit: ChatZilla 0.9.91 [Firefox 32.0.3/20140923175406]]
blackmesa has joined #ruby
rdark has joined #ruby
cleopatra has joined #ruby
jdj_dk has quit [Remote host closed the connection]
roolo has joined #ruby
jbueza has joined #ruby
KC9YDN has joined #ruby
rkalfane has joined #ruby
rkalfane has quit [Client Quit]
realDAB has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
davedev24_ has quit [Remote host closed the connection]
Aaaal has joined #ruby
ionelmc_ is now known as ionelmc
justinmburrous has joined #ruby
virtualize has quit []
GriffinH_ has quit [Remote host closed the connection]
kyb3r_ has joined #ruby
realDAB has quit [Client Quit]
NovapaX has joined #ruby
W0rmDr1nk has quit [Ping timeout: 250 seconds]
nonks has joined #ruby
ad_boot has quit [Quit: ad_boot]
elaptics`away is now known as elaptics
justinmburrous has quit [Ping timeout: 244 seconds]
Advocation has quit [Quit: Advocation]
alem0lars has quit [Quit: alem0lars]
jimbach has joined #ruby
<shevy> what docs
freezey has joined #ruby
Skeit__ has joined #ruby
Advocation has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker`work has quit [Ping timeout: 250 seconds]
bal has joined #ruby
theRoUS|abest has quit [Quit: Coyote finally caught me]
Skeit__ has quit [Ping timeout: 250 seconds]
Macaveli has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
jimbach has quit [Ping timeout: 272 seconds]
freezey has quit [Ping timeout: 260 seconds]
matcouto has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
arup_r has quit [Remote host closed the connection]
brahmadpk has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Guest10424 has joined #ruby
olivier_bK has joined #ruby
bMalum has joined #ruby
JohnBat26 has joined #ruby
Peter has joined #ruby
shortCircuit__ has quit [Remote host closed the connection]
Peter is now known as Guest1589
shortCircuit__ has joined #ruby
lolmaus has joined #ruby
echooo has quit [Ping timeout: 265 seconds]
c107 has quit [Remote host closed the connection]
havenwood has joined #ruby
Guest1589 has quit [Ping timeout: 255 seconds]
echooo has joined #ruby
ctp has joined #ruby
lxsameer has quit [Ping timeout: 265 seconds]
mengu has quit [Remote host closed the connection]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
jack_rabbit has quit [Ping timeout: 245 seconds]
Skeit__ has joined #ruby
jdj_dk has joined #ruby
ad_boot has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Macaveli has joined #ruby
mocchi has quit [Ping timeout: 240 seconds]
W0rmDr1nk has joined #ruby
_JamieD_ has quit [Quit: _JamieD_]
mocchi has joined #ruby
jdj_dk has quit [Remote host closed the connection]
jdj_dk has joined #ruby
krisquigley has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
mxrguspxrt has quit []
weeb1e has joined #ruby
noop has quit [Ping timeout: 244 seconds]
kwd_ has joined #ruby
kwd has quit [Read error: Connection reset by peer]
krisquigley has quit [Ping timeout: 240 seconds]
sevenseacat has quit [Remote host closed the connection]
krisquigley has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
ta has quit [Ping timeout: 240 seconds]
<pontiki> wth. step works with Floats???
<pontiki> >> Math::E.step(to: Math::PI, by: 0.2) { |f| print f, " " }
<eval-in__> pontiki => 2.718281828459045 2.9182818284590453 3.118281828459045 2.718281828459045 (https://eval.in/206170)
<shevy> \o/
<pontiki> that's just uncanny!
einarj has joined #ruby
postmodern has quit [Quit: Leaving]
echooo has quit [Ping timeout: 246 seconds]
ta has joined #ruby
andrewlio has joined #ruby
chipotle has joined #ruby
vyrus001 has joined #ruby
<vyrus001> Zip::InputStream.open(StringIO.new(zipdata)) do |io| ... end => uninitialized constant Zip::InputStream ?
AlSquire has joined #ruby
<pontiki> vyrus001: did you mean Zip::ZipInputStream?
nonks has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: zzz]
Takle has quit [Remote host closed the connection]
BadQuanta has quit [Ping timeout: 260 seconds]
<vyrus001> pontiki: borrowed the line of code from stackoverflow
<vyrus001> perhaps i did :)
Atttwww has joined #ruby
Vile` has quit [Quit: brb]
timonv_ has joined #ruby
Xeago_ has joined #ruby
arup_r has joined #ruby
charliesome has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
mengu has quit [Remote host closed the connection]
Lucky___ has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
Xeago has quit [Ping timeout: 250 seconds]
<vyrus001> pontiki: hmmm, new problem
<vyrus001> convert StringIO into String
<vyrus001> i thought inputstream.open could take blocks?
Vile` has joined #ruby
Takle has joined #ruby
livathinos has joined #ruby
<pontiki> vyrus001: all i did was look at the docs: http://www.rubydoc.info/gems/zip/Zip/ZipInputStream
goodenough has quit [Remote host closed the connection]
matcouto has quit [Quit: Textual IRC Client: www.textualapp.com]
<pontiki> if you're creating the stream from StringIO, my guess is you don't want to use ZipInputStream, but i don't have any experience with that gem
freezey has joined #ruby
jimbach has joined #ruby
justinmburrous has joined #ruby
echooo has joined #ruby
lsmola has quit [Ping timeout: 250 seconds]
<vyrus001> pontiki: hm, guess ill keep reading the manual then, i have zip data in a var
<vyrus001> trying to unzip it to a file
freezey has quit [Read error: Connection reset by peer]
freezey has joined #ruby
<pontiki> maybe look at zlib instead?
<pontiki> idk
mercwithamouth has quit [Ping timeout: 258 seconds]
<pontiki> Zlib::Deflate#deflate just reads a string
backsorry has quit [Remote host closed the connection]
Wolland_ has quit [Remote host closed the connection]
alem0lars has joined #ruby
<vyrus001> pontiki: have to use zip/zip. long story
havenwood has quit [Remote host closed the connection]
Wolland has joined #ruby
jimbach has quit [Ping timeout: 265 seconds]
justinmburrous has quit [Ping timeout: 260 seconds]
<shevy> unzip!
freezey has quit [Ping timeout: 245 seconds]
jheg has joined #ruby
<jheg> o/
echooo has quit [Ping timeout: 272 seconds]
Snowstormer has quit [Ping timeout: 258 seconds]
jdj_dk has quit [Remote host closed the connection]
<jheg> I’m trying to learn about OOP in ruby and the tutorial I’m following states ….
decoponio has joined #ruby
<jheg> The second use case for modules we'll look at is using modules as a container for methods, called module methods. This involves using modules to house other methods. This is very useful for methods that seem out of place within your code. Let's use our Mammal module to demonstrate:
Wolland has quit [Ping timeout: 246 seconds]
<jheg> the code they use to demonstrate is ....
<jheg> module Mammal
<jheg> ...
<jheg> def self.some_out_of_place_method(num)
<jheg> num ** 2
<jheg> end
<jheg> end
<jheg> which can be called like value = Mammal.some_out_of_place_method(4)
<jheg> I don’t understand what the ‘self’ part in the method within the module is for
Snowstormer has joined #ruby
<jheg> up until now my methods have been declared def method_name() … end
workmad3 has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> jheg: define the method as singleton/class method on the Module
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<jheg> so self is part of ruby standard ( class? )
jacobat has joined #ruby
arup_r has quit [Remote host closed the connection]
alem0lars has quit [Quit: AFK..]
lsmola has joined #ruby
threesixes has quit [Ping timeout: 258 seconds]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nonks has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
<workmad3> jheg: 'self' is part of the ruby syntax and obtains the current implicit object that methods will be called on
lolmaus has joined #ruby
Peter has joined #ruby
Peter is now known as Guest57702
kyb3r_ has quit [Read error: Connection reset by peer]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<workmad3> jheg: in the context of a method definition, 'def self.method_name' means you define the method on the singleton class of 'self', which has the effect of defining a method you can call on the class or module itself, rather than on instances of a class or objects that have mixed the object in
<jheg> thanks Hanmac workmad3
noop has joined #ruby
<workmad3> jheg: you can replace 'self' with a constant or a local variable there and you'll define the method on the singleton class of that object
<jheg> ok thanks think I get it. going from procedural to OOP is a bit of a jump ha
karupa is now known as zz_karupa
<workmad3> ;)
lolmaus has quit [Client Quit]
<jheg> I’m sure it will sink in more once I written a few more examples - all of a sudden in the space of one page I now have
lolmaus has joined #ruby
<jheg> modules, classes, objects, class instances, mixins :)
<jheg> its just understanding how these all work together
claymore has joined #ruby
Guest57702 has quit [Ping timeout: 272 seconds]
<pontiki> it takes some time, for sure
bayed has joined #ruby
maasha has joined #ruby
govg has quit [Ping timeout: 240 seconds]
<maasha> I am reading in data from a table and guessing if content is numeric: https://gist.github.com/maasha/f217b07b43b5a94184d8
<maasha> Am I going to hell?
jdj_dk has joined #ruby
doodlehaus has joined #ruby
<pontiki> probably :D
mercwithamouth has joined #ruby
_ixti_ has joined #ruby
sk87 has joined #ruby
hellangel7 has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
lolmaus has joined #ruby
aspiers has joined #ruby
<pontiki> i *think* lines 9 and 13 are redundant
<shevy> with pontiki
hellangel7 has quit [Max SendQ exceeded]
<Hanmac> maasha: you can add Rational and Complex too
ad_boot has quit [Quit: ad_boot]
hellangel7 has joined #ruby
x77686d has joined #ruby
x77686d has quit [Client Quit]
kalleth_ is now known as kalleth
<maasha> Hanmac: which I dont use, but let say I did - what order should Integer, Float, Rational, Complex be resolved in?
Takle has quit [Remote host closed the connection]
<Hanmac> this order
MCDev has quit [Quit: HydraIRC -> http://www.hydrairc.com <- The professional IRC Client :D]
brahmadpk has joined #ruby
<Hanmac> >>s = "1+2i"; [:Integer,:Float,:Rational,:Complex].each {|m| begin; break Kernel.public_send(m,s); rescue; end}
<eval-in__> Hanmac => (1+2i) (https://eval.in/206178)
tokik has quit [Ping timeout: 250 seconds]
<maasha> Right
naftilos76 has joined #ruby
mike32 has joined #ruby
<naftilos76> hiyosi, can i use 'require' to load a gem from a custom path?
<naftilos76> I have been having trouble requiring gems in my remote host
<shevy> require is used to load a .rb file
<shevy> which can load other .rb files
<shevy> whether you can then require those .rb depends on your $: $LOAD_PATH variable
<naftilos76> in the case of gems, what kind of file should i load?
<naftilos76> i am trying to load 'daemons'
<shevy> the simplest convention is: require 'name_of_gem'
<naftilos76> to daemonize a ruby script
<shevy> yes, this will work if the file daemons.rb can be found
<naftilos76> that does not work for all gems
<naftilos76> there are system installed gems and user use based
<naftilos76> user based
<shevy> on my system, daemons 1.1.8 is at: /Programs/Ruby/Current/lib/ruby/gems/2.1.0/gems/daemons-1.1.8/
<shevy> when I install it via gem
davedev24_ has joined #ruby
<naftilos76> i can do i.e require 'rubygems' which works
hackeron has quit [Ping timeout: 258 seconds]
<shevy> if I don't install it through gem then it will be at /Programs/Ruby/Current/lib/ruby/site_ruby/2.1.0/
<naftilos76> but i cannot do require 'daemons'
<naftilos76> and the gem is installed in my /home/user/ruby/gems
hackeron has joined #ruby
<naftilos76> how am i supposed to require that gem?
arup_r has joined #ruby
Takle has joined #ruby
davedev24_ has quit [Ping timeout: 240 seconds]
sandelius has joined #ruby
ad_boot has joined #ruby
roolo has quit [Remote host closed the connection]
jimbach has joined #ruby
roolo has joined #ruby
NovapaX has joined #ruby
arup_r_ has joined #ruby
mengu has joined #ruby
<shevy> you installed it via --user-install daemons ?
freezey has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
User458764 has quit [Ping timeout: 255 seconds]
emocakes has quit [Ping timeout: 272 seconds]
kamilc__ has quit [Quit: Leaving...]
jimbach has quit [Ping timeout: 246 seconds]
roolo has quit [Ping timeout: 260 seconds]
Mohan has quit [Ping timeout: 245 seconds]
claymore has quit [Quit: Leaving]
bentanweihao has quit [Remote host closed the connection]
justinmburrous has joined #ruby
freezey has quit [Ping timeout: 272 seconds]
Wolland has joined #ruby
davedev24_ has joined #ruby
Wolland_ has joined #ruby
emocakes has joined #ruby
gja has joined #ruby
gja has joined #ruby
tejas has joined #ruby
tejas has quit [Client Quit]
justinmburrous has quit [Ping timeout: 255 seconds]
govg has joined #ruby
<jheg> what is the namung convention for modules where the name of the module is more than one word?
Mohan has joined #ruby
<jheg> is it the same as classes …. MyModule
Mohan is now known as Guest38505
Wolland has quit [Ping timeout: 255 seconds]
<shevy> jheg file foo_bar.rb to module FooBar
nrsk has quit [Read error: Connection reset by peer]
<jheg> thanks shevy
radic_ has quit [Ping timeout: 258 seconds]
radic has joined #ruby
<apeiros> and Foo::BarBaz -> foo/bar_baz.rb
duncannz has quit [Remote host closed the connection]
aspiers has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
jacobat has quit [Ping timeout: 250 seconds]
hellangel7 has quit [Max SendQ exceeded]
nrsk has joined #ruby
roolo has joined #ruby
<alex88> having a string like 'Post' what's the shortest way to call Post.some_method ?
Morkel has quit [Ping timeout: 260 seconds]
nonks has quit [Ping timeout: 260 seconds]
Hobogrammer has quit [Ping timeout: 258 seconds]
jacobat has joined #ruby
bMalum has quit [Quit: bMalum]
<apeiros> Object.const_get("Post").some_method
<alex88> thanks apeiros!
<apeiros> alex88: user input?
<alex88> nope! local array
<apeiros> why do you have it as a string? you know you can store classes in arrays directly, right?
<apeiros> >> [Array, Hash, String].map { |klass| klass.new }
<eval-in__> apeiros => [[], {}, ""] (https://eval.in/206199)
<alex88> I have an array of strings, each string should be used to get the class name and the parameter name in rails
<alex88> I have now, @model = %w[team player tournament].detect { |model| model.classify.constantize.find_by_id(params["#{model}_id"]) }
<alex88> problem is, that I need to get the first proc output that's not nil looping through the classes names
<alex88> not the class name
noop has quit [Ping timeout: 260 seconds]
nfk has joined #ruby
kamilc__ has joined #ruby
nonks has joined #ruby
<workmad3> alex88: I'd probably do it with [Team, Player, Tournament].detect{|model| model.find_by_id(params["#{model.name.underscore}_id"]} personally
Peter has joined #ruby
Peter is now known as Guest59365
<workmad3> alex88: although I'd probably also do a check to see if the parameter is blank first too
gccostabr has joined #ruby
<pontiki> alex88: do you want the model, or do you want the record found?
<workmad3> alex88: so that you avoid queries for id IS NULL or other forms of blank id
<alex88> workmad3: what's the difference? you basically just move the transformation from string to class to class to string
<alex88> just asking out of curiosity
<Hanmac> hm also using userinput with classify and constantize might be complicated ...
<workmad3> alex88: class to string is reliable, string to class can throw exceptions
thsig has joined #ruby
<alex88> pontiki: the record found
tadayoshi has joined #ruby
<alex88> workmad3: good point, thanks
<pontiki> alex88: .detect will return the model name
<apeiros> with as little as 3 classes I'd probably not go all meta but just copy & paste. the whole thing seems smelly to me, but I don't know what you're doing.
<alex88> pontiki: yup that's what I wanted to fix
<apeiros> re no meta: @model = Team.find_by_id(params["team_id"]) || Player.find_by_id(params["player_id"]) || …
<alex88> apeiros: was just to make it smaller, maybe I'm going to add more classes later in the project
<alex88> that's nice too
<workmad3> alex88: so clean it up at that point
<apeiros> indirection adds a) complexity which turns into b) harder read- and maintainability and c) increased vulnerability
<workmad3> alex88: i.e. once you know what it should look like, whether there's a better place to put the code, etc. ;)
anaeem___ has joined #ruby
chipotle has quit [Quit: cya]
* workmad3 waits for some english pedant to jump on him for using 'i.e.' and 'etc.' together ;)
<pontiki> e.g.?
<alex88> kk thanks for the advices, I'll go with the || ;)
Guest59365 has quit [Ping timeout: 240 seconds]
<workmad3> pontiki: yeah, I probably should have used e.g. and dropped the etc ;)
<apeiros> workmad3: why'd that be wrong?
<banister> workmad3 sup workie
<pontiki> workmad3: cf.
bMalum has joined #ruby
* apeiros thinks "id est" is suitable in that sentence and sees no collision with etc.
anaeem1 has quit [Ping timeout: 245 seconds]
tokik has joined #ruby
<pontiki> isn't the usual complaint about using e.g. and etc. ?
<workmad3> apeiros: I suspect some pedant would dislike the use of the vaguaries of an open-ended 'etc.' with what should essentially be 'in other words'
<pontiki> h8rs gonna h9
<apeiros> workmad3: meh, pedant would be wrong imo.
reinaldob has joined #ruby
<workmad3> apeiros: tbh, if anything is wrong, it's me using 'i.e.' there instead of 'e.g.'
Skeit__ has quit [Ping timeout: 258 seconds]
<apeiros> e.g. means "given the example". I don't think that fits here
<workmad3> apeiros: but meh, I was being somewhat flippant anyway
<naftilos76> i am trying to run a ruby script as daemon but it does not seem to execute the code in the target .rb . I use this way of doing thing: ruby file.rb start . The file file.rb has a couple of lines of code like require 'rubygems' , require 'daemons' , Daemons.run(target_filename.rb) . Can anybody help?
anaeem___ has quit [Remote host closed the connection]
<apeiros> you didn't give an example, you made a clarification. so <pedant mode>i.e. is a better fit. but whatever :)
anaeem1 has joined #ruby
<workmad3> apeiros: yeah, ok... the pedant would probably have jumped on 'advices' before that anyway ;)
* workmad3 drags alex88 into the dispute :)
<shevy> workmad3 I used to use i.e. a lot; in german it seems more prevalent than in english. When I write in english though, I adopted the e. g. - it's a bit strange because my brain has to switch different thinking modes
tadayoshi has quit []
<pontiki> alex88: RUN!
<alex88> workmad3: I'm italian, I would be even worse writing english :D if you want my opinion, we never use i.e., just etc. almost everywhere :D
<workmad3> shevy: a problem I've never encountered :) I'm very mono-lingual
arup_r_ has quit []
<shevy> italian are funny people with good cuisine arts
<workmad3> but yeah, most people I've met don't really use i.e. and instead (mis-)use e.g. everywhere :)
arup_r has joined #ruby
<shevy> e. g. like right now
patrick99e99 has joined #ruby
<workmad3> shevy: that's a correct use ;)
<workmad3> shevy: making it an incorrect example
<alex88> shevy: thanks for the stereotipe :D we usually also talk very loud and gesticulate a lot while talking
<workmad3> alex88: it's all the strong coffee :P
<shevy> alex88 you do! I've heard a bunch of you lately in the subway, one guy was very loud
<apeiros> alex88: and you live with your mothers until you're 40 and then your wife replace the mother :)
<shevy> but at least it is italian and not northern germany german
<alex88> btw, I'm trying to improve my english since I'm moving to US next year :)
* apeiros wonders what other stereotypes exist about italian
<shevy> apeiros hey at least they can cook! try self-cooking!
iamdoo2 has quit [Remote host closed the connection]
<alex88> ahhha workmad3, could be, there are people having about 6 of them every day!
<alex88> apeiros: mafia? :D
<alex88> corrupted?
<shevy> in northern italy they are not called mafia but business men
<workmad3> alex88: just do what English speakers do instead... speak very slowly, very loudly in Italian at people who don't understand you and expect them to get it
<apeiros> and now I wonder what stereotypes exist about swiss people. I guess we all eat chocolate and cheese all day, drinking milk to it with pockets full of money
iamdoo2 has joined #ruby
charliesome has quit [Quit: zzz]
<alex88> shevy: yeah, when I was traveling abroad I identify italians very quickly
<shevy> swiss are very much on time for a date
<shevy> don't be late ever!
iamdoo2 has quit [Read error: Connection reset by peer]
<apeiros> alex88: funny, yeah, mafia is a stereotype I guess, but I think it's become a far less dominant stereotype the last few years. which is good, I think :)
<shevy> apeiros ah don't forget the swiss army knife
max96at|off is now known as max96at
<alex88> apeiros: about the mother thing, yeah, but that's most in south of italy
iamdoo2 has joined #ruby
<shevy> and I think part of the food-stuff in switzerland had to do with nestle
<alex88> apeiros: just because of what shevy said, business just got to a next level, they don't need to kill someone anymore
<shevy> northern italy really does not look like southern italy at all
phutchins has joined #ruby
<workmad3> apeiros: I think my prevailing view of switzerland is that you guys are crazy-paranoid about your country's defence ;)
<alex88> shevy: definitely, people are different, habits are different, working is different
<shevy> yeah
tadayoshi has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
<shevy> workmad3 they have it easy - mountains everywhere for defence!
jheg has quit [Quit: jheg]
<alex88> small example, my ex girlfriend, working in a gym, north italy she was getting 22€/hour, in Rome (middle italy), she was lucky getting 12€/hour and that's the best she found
Blizzy has joined #ruby
<shevy> austria is open on its east side, only the west has mountains... so we made a clever thing, we gave up on military de-facto!
iamdoo2 has quit [Client Quit]
<ddv> I don't like nationalism, stop it guys
mkaesz has joined #ruby
<shevy> ddv from which country are you?
<alex88> lol
<ddv> north korea
<shevy> nah
<workmad3> shevy: aiui, pretty much every bridge, road and tunnel in switzerland is designed and built to be easily detonated in the case of invasion
<shevy> workmad3 well that's easy if you got a mountain on top of you to collapse downwards!
<workmad3> shevy: :)
danijoo has quit [Remote host closed the connection]
<shevy> one of the more hilarious defence strategies here was "ok we don't defend the east if russia invades... we simply move westwards into the mountaineous area and defend that"
danijoo has joined #ruby
<banister> apeiros is that true?
<workmad3> shevy: time-tested defence strategy :D
<shevy> workmad3 well your area is surrounded by water, which works almost as well as mountains!
anaeem___ has joined #ruby
<workmad3> shevy: not really... water doesn't really restrict avenues of attack once the other side has boats :P
autonomousdev has joined #ruby
mskaesz has quit [Ping timeout: 265 seconds]
tadayoshi has quit []
jimbach has joined #ruby
anaeem___ has quit [Remote host closed the connection]
anaeem1 has quit [Read error: Connection reset by peer]
Bacta has joined #ruby
<shevy> the swiss image is that of toughmen
<banister> apeiros your country is cute.
<Bacta> Ruby is dead
anaeem1__ has joined #ruby
<shevy> in Tolkien, the swiss would be like the dwarves
charliesome has joined #ruby
<banister> Bacta lol @ dice.com
<shevy> Bacta man we have been saying that since years. why have you come only now?
<Bacta> And Rails is bloated
<shevy> so is Java
<banister> Bacta what do you use? node.js?
tadayoshi has joined #ruby
mike32 has quit [Quit: Leaving]
mercwithamouth has quit [Ping timeout: 272 seconds]
<Bacta> Well Node is used by wankers who think they're f'ing Google architects and must scale
<Bacta> I write Python in my day job
<deepy> I'd say Java is in a better state than Rails
<thsig> the Twitter argument isn't very good
<thsig> in that dice.com article
<banister> Bacta ugh, python is kinda boring
jimbach has quit [Ping timeout: 272 seconds]
<thsig> AFAIK they still use Rails for (at least parts of) their front end, and rewrote performance-critical backend processes in Scala
<thsig> and if I recall, the original bottleneck was their MySQL setup more than ruby
<thsig> (I might be wrong though)
Xeago has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<shevy> yeah
<Bacta> IIRC they ended up moving away entirely but this was recent
tadayoshi has quit [Ping timeout: 260 seconds]
<thsig> see the quote from Blaine Cook there
<thsig> "For us, it’s really about scaling horizontally - to that end, Rails and Ruby haven’t been stumbling blocks, compared to any other language or framework. The performance boosts associated with a “faster” language would give us a 10-20% improvement, but thanks to architectural changes that Ruby and Rails happily accommodated, Twitter is 10000% faster than it was in January."
<Bacta> So why is it that people blame it on Ruby and not MySQL?
bw_ has left #ruby [#ruby]
<banister> Bacta and has some seriously messed up behaviour, default args are only evaluated once at function definition time (lol) - lambdas can only be one expression (lol), this/self argument is explicit (lol), useless ':' to signal the start of a method definition (lol), non-uniform access to object members, generators/methods using exactly the same syntax yet being semantically very different -- the only way you can identify one from teh
<banister> other is to look for the presence of a 'yield' keyword somewhere in the code (lol)
<banister> pythong^
tlarevo has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.0.1]
<shevy> Bacta why have they not been using python
tlarevo has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
<thsig> Bacta: Dunno. Maybe it was "Twitter is showing the fail whale a lot" and "ruby/rails are relatively slow" => it's because of ruby/rails.
<Bacta> Not a clue. Doesn't really bother me.
<Bacta> My issue is with people like DHH who really enjoy blowing their own trumpet
<shevy> wait a moment
<mikecmpbll> my issue is with you.
<shevy> you talk about rails
<Bacta> Hipsters like him - a lot of Rails folk
<shevy> in #ruby?
<mikecmpbll> :'d
<shevy> do you know that there is #rubyonrails?
Xeago_ has quit [Ping timeout: 265 seconds]
<Bacta> Not going in there.
<mikecmpbll> !troll
<Bacta> Would lose brain cells
<helpa> TROLL DETECTED!
<shevy> well I don't understand it
<mikecmpbll> quarantine this chat room.
<shevy> is your argument against ruby or rails
* Bacta has Ebola
p0sixpscl has joined #ruby
<banister> Bacta too early in the morning for this stuff, pls stfu
<mikecmpbll> lol @ a website that displays code in italics.
krz has joined #ruby
<thsig> Bacta: Maybe this all comes back to the simplistic view that simple benchmarks are a good indicator of production performance in non-trivial setups, which they usually aren't. Systems written mainly in ruby can be quite performant, given the right algorithms, caching etc.
tadayoshi has joined #ruby
<Bacta> lol at a website that gets hundreds of thousands of visitors
<shevy> lol at randomly making numbers up
tlarevo has quit [Ping timeout: 250 seconds]
<mikecmpbll> hundreds of thousands? lol.
<Bacta> 99% of statistics are made up
<shevy> I think Bacta is an ad-bot
<Hanmac> mikecmpbll: and with a ugly line spacing ... imo code should only be shown in some kind of blockquote or similar
<mikecmpbll> Hanmac: no, italics is the best way
<shevy> Bacta do you like TIOBE
<mikecmpbll> how dare you
justinmburrous has joined #ruby
<mikecmpbll> 2*line spacing + arial + italics
<mikecmpbll> it's industry standard.
tadayoshi has quit [Client Quit]
Blizzy has quit [Read error: Connection reset by peer]
<Bacta> The rankings that show Ruby in 16th place?
<shevy> was that an answer?
<Bacta> Yep
<Bacta> Wish it showed frameworks
<shevy> I still don't know whether you like TIOBE or not
<Bacta> Would be interesting to see Rails and Node side by side
Takle has quit [Remote host closed the connection]
<ddv> TIOBE is bullshit
<Bacta> The ranking site? I've got no issue with it
<Bacta> I also don't have any issues with bukkake porn
krz has quit [Quit: WeeChat 1.0.1]
justinmburrous has quit [Ping timeout: 246 seconds]
<Wolland_> can someone kick this thing
<shevy> Bacta do you have a python repository?
tadayoshi has joined #ruby
<Bacta> With my own code?
<shevy> yeah
jimbach has joined #ruby
<Bacta> I've got a Git server running on my RaspberryPi
<Bacta> So yes, but it's not externally viewable
<mikecmpbll> hooray for /ignore.
KC9YDN has quit [Ping timeout: 258 seconds]
<Bacta> Honestly even if I did I wouldn't care if you thought my code was shit ;)
<shevy> that is not the main point
<shevy> you could be critical of xyz but have not written anything
<shevy> or you could be critical of xyz but have written a lot
<shevy> but I see the non-public part there, everybody is closed source these days
doodlehaus has quit [Remote host closed the connection]
noop has joined #ruby
<Bacta> I write a lot of code that I don't deem polished enough for putting up on Github
<Bacta> Some people say Github is like a resume
<shevy> doesn't python have some thing like cpan or rubygems?
<Bacta> PyPi
<Bacta> aka "The Cheese Shop"
blackmesa has joined #ruby
top4o has joined #ruby
<Bacta> But just to be clear
<Bacta> I didn't come here to troll
<workmad3> Bacta: #fail then? :P
<Bacta> I just wanted perspectives on that article, it appeared on Slashdot so would be reasonably well read
<Wolland_> yet here you are trolling
<Bacta> But as for Rails I've met so many devs that swear by it and come across as being incredibly arrogant. Perhaps I've just had bad luck?
shlomo has joined #ruby
<shevy> Bacta well the thing is - not all of the ruby community are part of the rails community
<Bacta> I have no issue with Ruby and really respect the guy who wrote it
<workmad3> Bacta: regarding that specific article - Twitter *repeatedly* said that ruby and rails *weren't* responsible for their scaling issues
<shevy> so you could gain e. g. +25% in 4 years in rails, then suddenly it might drop by -40% there, whereas for those who use ruby the fluctuation is not similar to that
<Bacta> I was in Tokyo recently and went to an electronics store. The book section was exclusively Ruby. He must be some kind of national hero over there.
<workmad3> Bacta: their problems were entirely architectural, and the tools they ended up using to solve those issues ended up being best-written on a java stack
<ddv> companies like Twitter, Facebook etc are pretty unique, most people (95%) don't even have to scale to that level
<shevy> hey
<shevy> are you saying I can't become as big as twitter ddv
<Bacta> Yet the Rails community are constantly, consistently trying to sell it as the solution to everything.
<ddv> yes!
<ddv> :)
<shevy> ddv I just need ONE great idea ...
<workmad3> Bacta: err, as part of the rails community, I have to disagree :P
<ddv> well it's not the idea alone right, it's the execution of it, before facebook you had myspace remember
<workmad3> Bacta: dhh may constantly try that, but dhh is an overly loud, opinionated git, IMO :)
<Bacta> DHH is a c--word I can't say
<shevy> is ddh using irc?
<workmad3> (and I doubt he'd necessarily disagree with that either, tbh...)
<shevy> I mean DHH
<Wolland_> every community is selling its thing as solution to everything, should rails community sell wordpress as a solution?
<Bacta> He once wrote an article writing off *all* developers who don't code on a Mac
<Bacta> Someone who says something like that is retarded
<shevy> workmad3 is using a Mac :>
<shevy> apeiros is using a Mac too!
<workmad3> shevy: yeah, but I use it like a linux machine ;)
<arup_r> I have issue with this regex ^\\d[\\d.]*$. It matches 12 or say 12.22.. Both is OK.. But it also matched with 12.22a something like this.. Which I don't want.. I want integers and floats...
<arup_r> How to fix this ?
thsig_ has joined #ruby
<Bacta> Err
<shevy> I think linus is also using a mac
<workmad3> arup_r: \. ;)
<Bacta> I think the . matches anything in a regexp
startupality has joined #ruby
<ddv> bram molenaar of vim fame uses a mac btw
<Bacta> Well I use Linux
<workmad3> Bacta: the rails community is larger than DHH though... please don't tar us all with the same brush ;)
<Bacta> So I'm obviously a shitty developer according to DHH
<Wolland_> true
<workmad3> Bacta: and remember that the more moderate people in a community also tend to be less vocal :P
<Bacta> But there are so *many* hipsters
<Bacta> I was at a conference a few years back where some Rubyist got up on stage and declared that Ruby had won
<workmad3> Bacta: yeah, but a good chunk of them jumped off into node.js projects ;)
<Bacta> Won what? I still don't know
KC9YDN has joined #ruby
<Bacta> It's not a competition.
<arup_r> workmad3: still not correct
<workmad3> Bacta: idiots say stupid stuff... doesn't matter what language they use ;)
mskaesz has joined #ruby
<workmad3> arup_r: your rubular there is missing anchors
<workmad3> arup_r: so if you'll notice, the 'a' isn't part of the match... but the string as a whole matches
Peter has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
Peter is now known as Guest88162
tadayoshi has quit []
<arup_r> No... I want only integer or float.. string.. any other thing has to be rejected
thsig has quit [Ping timeout: 260 seconds]
<arup_r> 12 ,.12, 12.12 all are valid match
<arup_r> except all are incorrect
gja has quit [Quit: This computer has gone to sleep]
<arup_r> how to make it correct ?
<gregf_> arup_r you need a ^regex$ <== start to end
oinkon has quit [Ping timeout: 255 seconds]
<workmad3> arup_r: yeah... I was pointing out how your regexp was wrong
<gregf_> something like /^\d*\.?\d*$/?
mkaesz has quit [Ping timeout: 260 seconds]
<workmad3> arup_r: /^\d(\d|.)+$/ <-- that does it
<arup_r> http://rubular.com/r/GRGDhwtWhe not matching .22
<gregf_> >> "12.2d" =~ /^\d*\.?\d*$/ ? " matches " : " does not match"
<eval-in__> gregf_ => " does not match" (https://eval.in/206209)
Deejay_ has joined #ruby
<Bacta> </rant>
<gregf_> >> "12.0" =~ /^\d*\.?\d*$/ ? " matches " : " does not match"
<eval-in__> gregf_ => " matches " (https://eval.in/206210)
Bacta has quit [Quit: Leaving]
<arup_r> gregf_: Thanks
<workmad3> arup_r: ^\d+(\.\d+)?$ for a more complete one
<gregf_> you can try this: %w{ .10 10. 12 12.22 12.22a foo10 10bar . }.each{ |val| puts "#{val}" + (val =~ /^\d*\.?\d*$/ ? " matches " : " does not match") };
<workmad3> arup_r: that will match 12.1, 12, 1, etc. but not a malformed .12 or 12.
Advocation has quit [Quit: Advocation]
Guest88162 has quit [Ping timeout: 240 seconds]
<arup_r> workmad3: which one? Yours ?
nonks has quit [Ping timeout: 272 seconds]
<workmad3> arup_r: mine, yes
<arup_r> testing
<arup_r> :-)
fsapo has joined #ruby
<arup_r> workmad3: Thanks... It is Great!
<arup_r> Thank you guys
<arup_r> I am bad in Regec
<arup_r> Regecx
<Hanmac> workmad3: interesting point is that
<Hanmac> >> Float(".10")
<eval-in__> Hanmac => 0.1 (https://eval.in/206211)
<workmad3> Hanmac: yeah, I wasn't gonna comment on stuff like that ;)
<workmad3> right, time for lunch for me, anyway
workmad3 is now known as wm3|away
<arup_r> That's why I considered ".10" as a valid stringified number...
ldnunes has joined #ruby
<arup_r> >> ".10".to_f
<wm3|away> arup_r: if you want to allow that, switch the first + to a *
<eval-in__> arup_r => 0.1 (https://eval.in/206212)
<wm3|away> so it would be ^\d*(\.\d+)?$
VanillaGoat_ has joined #ruby
<arup_r> Thanks.. have your lunch please
<wm3|away> arup_r: that way you still disallow just a plain '.' and '10.', but allow '.12' ;)
<Hanmac> wm3|away: hm nope:
<Hanmac> >> "" =~ /^\d*(\.\d+)?$/
<eval-in__> Hanmac => 0 (https://eval.in/206213)
<wm3|away> Hanmac: ah crap good point
<wm3|away> empty string :(
startupality_ has joined #ruby
startupality has quit [Ping timeout: 260 seconds]
startupality_ is now known as startupality
<Hanmac> or like that ;P %w{ .10 10. 12 12.22 12.22a foo10 10bar . }.each{ |val| puts "#{val} does " + ((Float(val) rescue nil) ? "match" : "not match") }
<waxjar> >> "" =~ /(?:^\d*(\.\d+)?)+$/
<eval-in__> waxjar => 0 (https://eval.in/206214)
<waxjar> right
<maasha> elegant way to check if a hash contains a list of keys?
Ankhers has quit [Ping timeout: 264 seconds]
<waxjar> what would the list of keys look like?
<Hanmac> waxjar: hm what about: /^(\d+|\d*\.\d+)$/ ?
VanillaGoat__ has quit [Ping timeout: 246 seconds]
AlSquirrel has joined #ruby
<maasha> if hash.include_keys?(["foo", "bar"])
<wm3|away> maasha: hash.keys.include?
Morkel has joined #ruby
iamjarvo has joined #ruby
<Hanmac> maasha: like that? requirement_keys.all? {|k| hash.include?(k) }
<maasha> wm3|away: but that is only for a single object at a time?
<wm3|away> true
<wm3|away> ok, lunch
<maasha> Hanmac: yeah, I saw a similar one on Stack Overflow, but I find that convoluted ...
<wm3|away> maasha: if (required_keys - hash.keys).empty?
rbrs has joined #ruby
<maasha> wm3|away: yup, thats better
AlSquire has quit [Ping timeout: 240 seconds]
<Hanmac> wm3|away: if you come back later, the string/float problem might be solved with ^(\d+|\d*\.\d+)$/
<Hanmac> >> %w{ .10 10. 12 12.22 12.22a foo10 10bar . }.group_by {|s| !!(/^(\d+|\d*\.\d+)$/ =~ s) }
<eval-in__> Hanmac => {true=>[".10", "12", "12.22"], false=>["10.", "12.22a", "foo10", "10bar", "."]} (https://eval.in/206216)
<Wolland_> maasha: you mean if it includes all keys or some of keys
<gregf_> maasha: h = {"one" => 1, "two" => 2, "foo" => 3, "bar" => 4}; p (h.keys - %w{baz quux}).length == h.keys.length
<gregf_> er, well, dont bother, thats too many method calls :/
spyderman4g63 has joined #ruby
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Wolland_> some: (hash & keys).empty? or all: (hash & keys) == keys
Xeago has quit [Remote host closed the connection]
<maasha> Wolland_: now that is elegant
Xeago has joined #ruby
<Wolland_> hash.keys not hash, sorry
<waxjar> [:a, :b].all? { |k| hash.key? k } is the best imo, doesn't create all those intermediate arrays
carif has quit [Ping timeout: 258 seconds]
Takle has joined #ruby
<shevy> hmm how do I get Time.parse
<wm3|away> shevy: require 'date' iirc
<shevy> hmm
<shevy> I thought so too
thsig_ has quit [Remote host closed the connection]
<shevy> perhaps require 'time'
x77686d has joined #ruby
<waxjar> that'd be most logical :p
x77686d has quit [Client Quit]
drawingthesun has joined #ruby
ki9a has joined #ruby
oinkon has joined #ruby
<shevy> hehe
<shevy> ok now I have ... 726110.937346173 seconds into the future
nettoweb_ has joined #ruby
<shevy> how to most easily turn this into ... how many days is that again?
<ki9a> How do I get the original filename of a file on windows? ie if I have c:\MyFile.txt but it's really called c:\MYFILE.txt, how do I get the latter out of it?
<shevy> oh wait
<shevy> I will simply divide by 24 * 60 * 60
<shevy> oh cool
tokik has quit [Ping timeout: 260 seconds]
xymbol has joined #ruby
<shevy> 32888 days into the future
<shevy> then I realized I typed 2104 rather than 2014 ...
havenwood has joined #ruby
paulfm has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Wolland has joined #ruby
Wolland_ has quit [Ping timeout: 265 seconds]
Wolland__ has joined #ruby
oinkon has quit [Ping timeout: 246 seconds]
danijoo has quit [Remote host closed the connection]
danijoo has joined #ruby
tokik has joined #ruby
fsapo has quit [Remote host closed the connection]
<totimkopf> anybody know of any good text-based RPGs written in ruby?
nonks has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
Vivekananda has joined #ruby
cleopatra has quit [Ping timeout: 258 seconds]
<shevy> don't think there is any
<shevy> I think writing games is very hard
codecop has joined #ruby
benzrf|offline is now known as benzrf
pu22l3r_ has quit [Remote host closed the connection]
nettoweb_ has quit [Ping timeout: 255 seconds]
<ddv> I hate text based shit
<ddv> make a real game
fsapo has joined #ruby
hellangel7 has joined #ruby
<totimkopf> ddv: what's a *real* game?
<ddv> something isn't entirely text based
<ddv> +that
<totimkopf> what if it had ansi graphics instead?
<ddv> that's fine I guess
jasooon has joined #ruby
justinmburrous has joined #ruby
MasterPiece has quit [Quit: Leaving]
luckyruby has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
<shevy> hehe
jzigmund has joined #ruby
<shevy> well you could always design a game to be modular
<shevy> and offer all of that - text based, graphics, web-based
<shevy> but games are really a lot of work, I don't know why
autonomousdev has joined #ruby
alem0lars has joined #ruby
brahmadpk has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<deepy> That's becuase we're always re-inventing the wheel
jasooon has quit [Ping timeout: 244 seconds]
tvw has joined #ruby
thoolihan has quit [Quit: out]
t_mmyv has joined #ruby
justinmburrous has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
jY has left #ruby ["Linkinus - http://linkinus.com"]
livingstn has joined #ruby
nonks has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
Tricon has quit [Ping timeout: 258 seconds]
<ddv> I would create a nice entity component system first, maybe some gem already exists
gja has joined #ruby
startupality has quit [Quit: startupality]
Deejay_ has quit [Quit: Computer has gone to sleep.]
wolves_cs has joined #ruby
alem0lars has quit [Ping timeout: 258 seconds]
sevenseacat has joined #ruby
psy has quit [Ping timeout: 246 seconds]
oo_ has quit [Ping timeout: 244 seconds]
thsig has joined #ruby
Xeago_ has joined #ruby
The_NetZ has joined #ruby
thoolihan has joined #ruby
<tmoore> totimkopf: maybe not what you're looking for, but still fun https://www.bloc.io/ruby-warrior/#/
psy has joined #ruby
<The_NetZ> hrm.
<shevy> lol
<totimkopf> awesome!
<shevy> "Select your warrior!"
jheg has joined #ruby
<shevy> we can select from a total pool of
<shevy> 1
<tmoore> check out the original github repo too https://github.com/ryanb/ruby-warrior
thsig has quit [Remote host closed the connection]
<shevy> the idea is actually creative
malcolmva has quit [Ping timeout: 258 seconds]
Xeago has quit [Ping timeout: 260 seconds]
Peter has joined #ruby
<The_NetZ> there we go.
<The_NetZ> so, how does one iterate over an array backwards in ruby?
Peter is now known as Guest72058
<havenwood> The_NetZ: reverse_each
Guest72058 has quit [Read error: Connection reset by peer]
<shevy> hmm
manzo has joined #ruby
<shevy> I suppose this is faster than .reverse.each ?
Morkel has quit [Ping timeout: 260 seconds]
max96at is now known as max96at|off
startupality has joined #ruby
<The_NetZ> yay.
<The_NetZ> shevy: it doesn't make a copy :)
kaspergrubbe has quit [Remote host closed the connection]
<totimkopf> "It's too dark to see anything but you smell sludge nearby"
<The_NetZ> ick.
<shevy> lol
krisquigley has quit []
<shevy> are you again explore the dark parts totimkopf
Xeago_ has quit [Remote host closed the connection]
<shevy> told you you should have stayed in the tavern
larissa has joined #ruby
<The_NetZ> reminds me of my job XD
Xeago has joined #ruby
benzrf is now known as benzrf|offline
<The_NetZ> but no, you just *had* to join up with three other random strangers and go sewer searching XD
roolo has quit [Ping timeout: 258 seconds]
<totimkopf> p
<totimkopf> :p
Guest38505 is now known as Mohan
tourne has joined #ruby
Mohan is now known as Guest98370
Guest98370 has quit [Changing host]
Guest98370 has joined #ruby
<shevy> yeah
<shevy> java brogrammers
zlude has joined #ruby
Guest98370 is now known as Mohan
agjacome has joined #ruby
<totimkopf> I'm nearly done with The Well-grounded Rubyist
rbrs has quit [Remote host closed the connection]
xymbol has quit [Quit: Lingo: www.lingoirc.com]
sonOfRa has quit [Quit: Bye!]
wm3|away has quit [Ping timeout: 272 seconds]
anaeem1__ has quit [Remote host closed the connection]
_KaszpiR__ is now known as _KaszpiR_
sonOfRa has joined #ruby
p0sixpscl has quit [Ping timeout: 260 seconds]
aclearman037 has joined #ruby
freezey has joined #ruby
max96at|off is now known as max96at
naquad has left #ruby [#ruby]
brahmadpk has joined #ruby
freezey has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 272 seconds]
bMalum has quit [Ping timeout: 260 seconds]
freezey has joined #ruby
zarubin has joined #ruby
ki9a has left #ruby ["WeeChat 0.4.2"]
zarubin has quit [Client Quit]
<The_NetZ> wat, I like this.
bMalum has joined #ruby
klmlfl has joined #ruby
zarubin has joined #ruby
coderdad has joined #ruby
patrick99e99 has joined #ruby
zarubin has quit [Client Quit]
wm3|away has joined #ruby
klmlfl has quit [Remote host closed the connection]
malcolmva has joined #ruby
tier has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tier has quit [Remote host closed the connection]
User458764 has joined #ruby
tier has joined #ruby
mistermocha has joined #ruby
roolo has joined #ruby
coderdad has quit [Ping timeout: 272 seconds]
taptapdan has quit [Quit: taptapdan]
Wolland__ is now known as Wolland
bMalum has quit [Quit: bMalum]
patrick99e99 has quit [Ping timeout: 260 seconds]
twohlix has joined #ruby
allcentu1 has joined #ruby
coderdad has joined #ruby
bMalum has joined #ruby
Trynemjoel2 has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
noop has quit [Quit: Leaving]
kamilc__ has quit [Quit: Leaving...]
Trynemjoel has quit [Ping timeout: 265 seconds]
coderdad has quit [Ping timeout: 250 seconds]
coderdad_ has joined #ruby
Hanmac has joined #ruby
bmurt has joined #ruby
it0a has joined #ruby
startupality has quit [Quit: startupality]
dblessing has joined #ruby
sevenseacat has left #ruby [#ruby]
spastorino has joined #ruby
coderdad has joined #ruby
coderdad_ has quit [Ping timeout: 250 seconds]
rshetty has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
mleone has joined #ruby
Xeago has quit [Remote host closed the connection]
aganov has quit [Quit: Leaving]
paulfm has quit []
jerius has joined #ruby
samflores_ is now known as samflores
timonv_ has joined #ruby
doodlehaus has joined #ruby
timonv_ has quit [Remote host closed the connection]
jasooon has joined #ruby
sysTemz- has joined #ruby
danijoo_ has joined #ruby
oleo has joined #ruby
paulfm has joined #ruby
Xeago has joined #ruby
freezey has joined #ruby
AFKGeek has quit [Quit: Leaving]
Xeago_ has joined #ruby
mleone_ has joined #ruby
danijoo has quit [Ping timeout: 250 seconds]
aCicloid is now known as cicloid
oinkon has joined #ruby
sailias has joined #ruby
davedev24_ has quit [Remote host closed the connection]
slap_stick has joined #ruby
jasooon has quit [Ping timeout: 260 seconds]
Takle has quit [Remote host closed the connection]
ad_boot has quit [Quit: ad_boot]
<slap_stick> hi , i am trying to use rake and i pass it a pattern, (expecting it to glob), which worked on 3.0.4 but i've upgraded rspec and now the pattern doesn't seem to return the spec files. If i do a Dir.glob("**/*_spec.rb") they return yet not when the same glob pattern is passed to rake
mleone has quit [Ping timeout: 244 seconds]
Takle has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
blackmesa has quit [Quit: WeeChat 1.0.1]
oinkon has quit [Ping timeout: 260 seconds]
diegoviola has joined #ruby
larissa has quit [Ping timeout: 272 seconds]
xymbol has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 260 seconds]
dp__ is now known as dp
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
GHemsley has joined #ruby
geekbri has joined #ruby
slap_stick has quit [Quit: This computer has gone to sleep]
chrishou_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Fire-Dragon-DoL has joined #ruby
julieeharshaw has quit [Remote host closed the connection]
slap_stick has joined #ruby
dumdedum has quit [Quit: foo]
arup_r has quit [Remote host closed the connection]
a_ has joined #ruby
<a_> what is the default visibility of instance variables?
<a_> public, or some strange "default" that isn't either public/private/protected ?
devdazed has joined #ruby
slap_stick has quit [Client Quit]
oleo has quit [Quit: Verlassend]
jthomp has joined #ruby
The_NetZ has quit [Ping timeout: 240 seconds]
julieeharshaw has joined #ruby
Takle has joined #ruby
attamusc has joined #ruby
allcentu1 has quit [Ping timeout: 255 seconds]
The_NetZ has joined #ruby
linojon has joined #ruby
Peter has joined #ruby
timonv_ has joined #ruby
Peter is now known as Guest56423
<teotwaki> a_: some strange default
sepp2k has joined #ruby
<teotwaki> a_ but they can never be anything else than private, AFAICT
jdj_dk has quit [Ping timeout: 260 seconds]
oleo has joined #ruby
<teotwaki> even though they are protected in the sense that a subclass can access them.
<a_> teotwaki: what's the difference between public and strange-default ?
Guest56423 has quit [Read error: Connection reset by peer]
manzo has quit [Ping timeout: 272 seconds]
<a_> sorry, private and strange-default
blackmesa has joined #ruby
<a_> Oh, it can be accessed by children. Sounds like protected :/
max96at is now known as max96at|off
agent_white has quit [Read error: Connection reset by peer]
enebo has joined #ruby
tier_ has joined #ruby
Ankhers has joined #ruby
bweston92 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<jheg> why are setter methods used in classes?
<jheg> like this ...
<jheg> class BadDog
<jheg> def set_name= (name)
<jheg> @name = name
<jheg> end
<jheg> end
<jheg> ...
<jheg> doesnt this do the same?
alem0lars has joined #ruby
<DefV> poor BadDog
<teotwaki> jheg: please don't paste
kamilc__ has joined #ruby
<jheg> sorry ang on
jottr has joined #ruby
<DefV> jheg: you can't access an instance variable if there's no setter/getter
pu22l3r has joined #ruby
<teotwaki> sure you can
<teotwaki> with instance_variable_get
agent_white has joined #ruby
slap_stick has joined #ruby
beef-wellington has joined #ruby
tier has quit [Ping timeout: 260 seconds]
<jheg> both examples seem to do the same thing in restting the instance variable
<jheg> *resetting
<DefV> teotwaki: :-|
<slap_stick> hi , i am trying to use rake and i pass it a pattern, (expecting it to glob), which worked on 3.0.4 but i've upgraded rspec and now the pattern doesn't seem to return the spec files. If i do a Dir.glob("**/*_spec.rb") they return yet not when the same glob pattern is passed to rake
<pontiki> accessors allow you to give and get attribute information without requiring you to know how the attribute is implemented internally to the object
<slap_stick> does anyone know why that might be?
<slap_stick> it's almost like ** is no longer meaning recursive in rspec
doev2 has quit [Quit: Verlassend]
<pontiki> how are you "giving" it to rake? on the command line?
ursooperduper has joined #ruby
_5kg has quit [Ping timeout: 260 seconds]
tlarevo has joined #ruby
<DefV> jheg: it's not customary in rails to call your setter/getters set/get
<teotwaki> jheg: if you blindly trust input from other objects, just use attr_writer
<slap_stick> nope in the rakefile itself to the object created when i create a new task, wchih is |t| so t.pattern = "**/*_spec.rb" however reading the dogs it defaults to that anyway
<DefV> We prefer def name; end, and def name=(name); end
Macaveli has quit [Ping timeout: 240 seconds]
<DefV> and just calling dog.name and dog.name = "bad"
<slap_stick> i haven't modified the file and it was working literally before i upgraded rspec to the latest versino, if i remove the latest version it works again
<jheg> ah thanks for the tip DefV
<pontiki> slap_stick: gist your rake task, pls
<teotwaki> DefV: so attr_reader and attr_writer, attr_accessor?
<DefV> when I said "rails" I meant "ruby"
<tobiasvl> DefV: SHAME!!!
<DefV> ik
<DefV> teotwaki: sure, but that's the next step, i suppose
<teotwaki> next step?
<DefV> in learning about ruby
<DefV> which I guess he's doing
<pontiki> slap_stick: rspec 3.x command line has changed
shlomo has quit [Quit: WeeChat 1.0.1]
<jheg> yes i’m trying to :)
anaeem1 has joined #ruby
<DefV> if you'd just say "just use attr_accessor" he wouldn't be a lot wiser
<DefV> he'd just know an extra method :-)
The_NetZ has quit [Remote host closed the connection]
<pontiki> slap_stick: hmm, yeah, i'd have expected that to work, too :/
<jheg> DefV: We prefer def name; end, and def name=(name); end
<jheg> [2:59pm] Macaveli left the chat room. (Ping timeout: 240 seconds)
<jheg> [2:59pm] DefV: and just calling dog.name and dog.name = "bad"
<jheg> sorry i dont follow
levisbakalinsky has joined #ruby
<teotwaki> jheg: please stop pasting into the channel
<jheg> how else do i reference a specific line of chat?
The_NetZ has joined #ruby
aspiers has joined #ruby
grepwood has joined #ruby
<jheg> but OK sorry again
<DefV> jheg: I simplified the methods a bit
<DefV> it'd be
<DefV> def name; @name; end; def name=(name); @name = name; end
wm3|away has quit [Ping timeout: 245 seconds]
<DefV> read the ; as newlines
<jheg> ah gotcha thanks
<slap_stick> pontiki: yeh it's a bit odd not sur ewhy it doesn't work
<slap_stick> it's with 3.1.7
<olivier_bK> theyre is something i dont understand
tlarevo has quit [Read error: Connection reset by peer]
<olivier_bK> when i try to parse with nokogiri in irb
<olivier_bK> it's work
<DefV> olivier_bK: there is*
tlarevo_ has joined #ruby
<DefV> theyre => they are is
sevenseacat has joined #ruby
<DefV> which makes no sense :-)
<olivier_bK> but when i execute the script i get an error
<olivier_bK> DefV, sorry
boombadaroomba has joined #ruby
zarubin has joined #ruby
crunk_bear has joined #ruby
Kricir has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
timonv_ has quit [Remote host closed the connection]
gregf has joined #ruby
zarubin has quit [Client Quit]
timonv_ has joined #ruby
crunk_bear is now known as flute_booth
<pontiki> maybe you'd care to share the error?
alem0lars has quit [Quit: AFK..]
vt102 has quit [Quit: Leaving]
<xymbol> olivier_bK: Maybe you can extract this into a separate gist.
allcentu1 has joined #ruby
lkba has joined #ruby
devdazed has quit [Ping timeout: 250 seconds]
timonv_ has quit [Remote host closed the connection]
tlarevo_ has quit [Ping timeout: 265 seconds]
boombadaroomba has quit [Ping timeout: 244 seconds]
devdazed has joined #ruby
max96at|off is now known as max96at
kaspertidemann has joined #ruby
sanguisdex has joined #ruby
weemsledeux has joined #ruby
oinkon has joined #ruby
devdazed has quit [Client Quit]
<olivier_bK> /home/xxx/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/open-uri.rb:35:in `initialize': No such file or directory - http://www.xxxx.albea.com/xx)
drawingthesun has quit [Ping timeout: 260 seconds]
shortCircuit__ has quit [Remote host closed the connection]
<sanguisdex> when referencing a (yaml) file inside of a gem/bin/FILE how do I refrence the path of the gem, as will be running the script for a location that has little to do with the actual location of the gem files
<sanguisdex> ?
<pontiki> olivier_bK: is there such a url?
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1__ has joined #ruby
<pontiki> olivier_bK: gist up your whole script, not the irb session
<olivier_bK> pontiki, give me 2s
djstorm has joined #ruby
<pontiki> take your time
banister has quit [Ping timeout: 272 seconds]
<waxjar> sanguisdex: just a relative path doesn't work?
monkeypatch has joined #ruby
KC9YDN has quit [Ping timeout: 246 seconds]
<olivier_bK> the error
monkeypatch has quit [Max SendQ exceeded]
devdazed has joined #ruby
<pontiki> olivier_bK: i asked you to gist your script
mary5030 has joined #ruby
freezey has quit [Remote host closed the connection]
<olivier_bK> it's coming
<waxjar> anyway, that URI leads to nothing :)
<pontiki> olivier_bK: !gist-usage
<helpa> olivier_bK: How to use Gist properly: https://github.com/radar/guides/blob/master/using-gist.markdown
p0sixpscl has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
<pontiki> i'm guessing you never require open-uri in the script
mengu has quit []
devdazed_ has joined #ruby
devdazed has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
<sanguisdex> waxjar: I was about to do that and it felt funny but I will try
<sanguisdex> new languges and funny feelings
<olivier_bK> pontiki, i require open-uri
<olivier_bK> and nokogiri
<pontiki> olivier_bK: that is the *entire* script? because you don't show *any* requires there *at all*
<waxjar> olivier_bK: is this a site that requires a log in?
<sanguisdex> is there a standared location in gem structure for a yaml based settings file?
Ankhers has quit [Ping timeout: 264 seconds]
<olivier_bK> no log in for the site
The_NetZ has quit [Ping timeout: 245 seconds]
gja has quit [Quit: This computer has gone to sleep]
<olivier_bK> pontiki, i can't give you all the script
freezey has joined #ruby
<pontiki> then i can't help any more
<waxjar> lol
tier_ has quit [Remote host closed the connection]
sysTemz- has quit [Quit: oooooh]
ad_boot has joined #ruby
<olivier_bK> ok thanks
lxsameer has quit [Quit: Leaving]
AlexRussia has joined #ruby
<jheg> DefV: teotwaki I just learnt about attr_* :)
<jheg> much less code
timonv_ has joined #ruby
jasooon has joined #ruby
tagrudev has quit [Remote host closed the connection]
x77686d has joined #ruby
x77686d has quit [Client Quit]
<DefV> jheg: indeed
timonv_ has quit [Remote host closed the connection]
<DefV> attr_* is also a lot faster
juni0r has quit [Ping timeout: 272 seconds]
<DefV> code-wize
timonv_ has joined #ruby
Ankhers has joined #ruby
<jheg> So am I right in assuming that name= (name) would get used very rarely if ever?
maasha has quit [Quit: Page closed]
a_ has quit [Ping timeout: 260 seconds]
<ddv> I would rename f to something more descriptive
<pontiki> olivier_bK: please examine carefully this gist: https://gist.github.com/tamouse/df0e3db3034c11d9223c which shows what sort of error you can expect when you require open-uri and when you don't
spider-mario has joined #ruby
AFKGeek has joined #ruby
<DefV> jheg: no, I still use name=(name) quite often, when the implementation is more complex then setting a instance variable
<DefV> for example def ttl=seconds; @expires_at = Time.now + seconds; end
justinmburrous has joined #ruby
nheinrich has joined #ruby
joonty1 has joined #ruby
thsig has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jheg> so I guess as I learn more complex programs that will make more sense
jasooon has quit [Ping timeout: 260 seconds]
<DefV> indeed
davedev24_ has joined #ruby
weemsledeux has joined #ruby
joonty has quit [Ping timeout: 272 seconds]
dx7 has joined #ruby
allcentu1 has quit [Ping timeout: 244 seconds]
paulfm has quit [Ping timeout: 260 seconds]
aclearman037 has quit [Ping timeout: 272 seconds]
justinmburrous has quit [Ping timeout: 250 seconds]
thsig has quit [Ping timeout: 255 seconds]
Pete_____ has joined #ruby
a_ has joined #ruby
Techguy305 has joined #ruby
aspiers has quit [Ping timeout: 260 seconds]
levisbakalinsky is now known as levisbakalinsky|
Pete_____ has quit [Read error: Connection reset by peer]
adac has joined #ruby
dx7 has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
jimmyy has quit [Ping timeout: 272 seconds]
dx7 has joined #ruby
Kricir has quit [Remote host closed the connection]
coderdad has quit [Remote host closed the connection]
Kricir has joined #ruby
coderdad has joined #ruby
aclearman037 has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
<adac> Guys, this: "DateTime.strptime("10/09/2014 04:31 PM", "%m/%d/%Y %I:%M %p")" gets as a result: "2014-10-15T16:36:00+00:00". Now i'm wondering hos to do it vice versa so that I get the format "%m/%d/%Y %I:%M %p" out of "2014-10-15T16:36:00+00:00"?
bentanweihao has joined #ruby
Kricir has joined #ruby
levisbakalinsky| has quit [Ping timeout: 240 seconds]
gsd has joined #ruby
oinkon has quit [Ping timeout: 246 seconds]
brahmadpk has quit [Ping timeout: 255 seconds]
i_s has joined #ruby
<waxjar> if that was possible, strptime was unneccesary
_5kg has joined #ruby
msmith_ has joined #ruby
kenneth has joined #ruby
alem0lars has joined #ruby
IceDragon has joined #ruby
startupality has joined #ruby
<ddv> adac: convert it to a datetime object?
Pete_____ has joined #ruby
<waxjar> without any context "2014-01-02" could both mean Jan, 2 and Feb, 2 for example
taptapdan has joined #ruby
oo_ has joined #ruby
Pete_____ has quit [Read error: Connection reset by peer]
wang has quit [Ping timeout: 240 seconds]
<toretore> adac: strftime
wang has joined #ruby
allcentu1 has joined #ruby
<Hanmac> adac for that datetime format you can use DateTime.parse("10/09/2014 04:31 PM")
klmlfl has joined #ruby
<waxjar> oh i see, i thought you wanted a format string from a date :|
cicloid is now known as aCicloid
<toretore> don't use parse, use strptime
<toretore> be specific
xaxisx has joined #ruby
Pete_____ has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
Pete_____ has quit [Read error: Connection reset by peer]
cleopatra has joined #ruby
AFKGeek has quit [Quit: Leaving]
aspiers has joined #ruby
renderful has joined #ruby
bal has quit [Quit: bal]
mrgrieves has quit [Quit: leaving]
kamilc__ has quit [Quit: Leaving...]
echevemaster has joined #ruby
bal has joined #ruby
Kricir has quit [Remote host closed the connection]
ghostmoth has joined #ruby
Kricir has joined #ruby
bal has quit [Client Quit]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RaCx_ has joined #ruby
Xeago has joined #ruby
grepwood has quit [Quit: Leaving]
fsapo has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: zzz]
sevenseacat has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 272 seconds]
RaCx_ is now known as RaCx
Pete_____ has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pete_____ has quit [Read error: Connection reset by peer]
tier has joined #ruby
luckyruby has joined #ruby
oinkon has joined #ruby
nheinrich has quit []
bthesorceror has joined #ruby
patrick99e99 has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
anaeem1__ has quit [Ping timeout: 265 seconds]
anaeem1 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
startupality has quit [Quit: startupality]
startupality has joined #ruby
WillAmes has joined #ruby
kenneth has joined #ruby
wm3|away has joined #ruby
<olivier_bK> how can i read file and send the data in array ?
freezey has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 255 seconds]
mistermocha has joined #ruby
<pontiki> .readlines
freezey has joined #ruby
lolmaus has quit [Remote host closed the connection]
lolmaus has joined #ruby
HelperW has quit [Ping timeout: 244 seconds]
startupality has quit [Client Quit]
Pete_____ has joined #ruby
aCicloid is now known as cicloid
Pete_____ has quit [Read error: Connection reset by peer]
slap_stick has quit [Quit: This computer has gone to sleep]
a_ has quit [Ping timeout: 272 seconds]
bentanweihao has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 260 seconds]
fabrice31 has quit [Remote host closed the connection]
abuzze has quit [Ping timeout: 246 seconds]
fabrice31 has joined #ruby
anicet has joined #ruby
anicet is now known as juni0r
tier_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
icebourg has joined #ruby
ad_boot has quit [Quit: ad_boot]
fabrice31 has quit [Ping timeout: 240 seconds]
Pete_____ has joined #ruby
banister has joined #ruby
doev has joined #ruby
Pete_____ has quit [Read error: Connection reset by peer]
tier has quit [Ping timeout: 265 seconds]
ad_boot has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0.1]
Wolland_ has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
tier_ has quit [Remote host closed the connection]
Wolland_ is now known as Wolland-afk
iamjarvo has joined #ruby
iamjarvo has quit [Client Quit]
tier has joined #ruby
iamjarvo has joined #ruby
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
jhass is now known as jhass|off
Stalkr_ has joined #ruby
<GeorgesLeYeti> Hi
GeorgesLeYeti has joined #ruby
monkeypatch has joined #ruby
jasooon has joined #ruby
neoxquick has joined #ruby
a_ has joined #ruby
phrozen77 has joined #ruby
SouL has joined #ruby
Wolland has quit [Ping timeout: 265 seconds]
iamjarvo has quit [Client Quit]
phrozen77 has quit [Changing host]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elektronaut has quit [Ping timeout: 260 seconds]
leslie has quit [Ping timeout: 260 seconds]
kaspergrubbe has joined #ruby
iamjarvo has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
Stalkr_ has quit [Read error: Connection reset by peer]
Stalkr^ has joined #ruby
Pete_____ has joined #ruby
leslie has joined #ruby
leslie has quit [Changing host]
leslie has joined #ruby
jasooon has quit [Ping timeout: 255 seconds]
xaxisx has quit [Quit: xaxisx]
Stalkr^ has quit [Changing host]
Stalkr^ has joined #ruby
elektronaut has joined #ruby
Pete_____ has quit [Read error: Connection reset by peer]
starkhalo has joined #ruby
joonty1 is now known as joonty
manzo has joined #ruby
arup_r has joined #ruby
cassianoleal has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
devdazed_ has quit [Read error: Connection reset by peer]
Pete_____ has joined #ruby
devdazed has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
_ixti_ is now known as ixti
Pete_____ has quit [Read error: Connection reset by peer]
regedarek has quit [Remote host closed the connection]
Pete_____ has joined #ruby
regedarek has joined #ruby
SpaceKookie has joined #ruby
schaerli has joined #ruby
atmosx has joined #ruby
pdtpatrick has joined #ruby
jheg has quit [Quit: jheg]
livathinos has quit []
skolman_ has joined #ruby
Pet______ has joined #ruby
arup_r_ has joined #ruby
chrishough has joined #ruby
Pete_____ has quit [Read error: Connection reset by peer]
skolman_ has quit [Remote host closed the connection]
gauke has quit [Quit: gauke]
skolman_ has joined #ruby
wm3|away is now known as workmad3
bMalum has quit [Quit: bMalum]
ad_boot has quit [Quit: ad_boot]
Wolland-afk is now known as Wolland
kenneth has joined #ruby
tokik has quit [Ping timeout: 240 seconds]
dorei has joined #ruby
justinmburrous has joined #ruby
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
arup_r_ has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
Akagi201_ has quit [Remote host closed the connection]
Akagi201 has joined #ruby
bMalum has joined #ruby
allcentu1 has quit [Ping timeout: 240 seconds]
IceDragon has quit [Ping timeout: 255 seconds]
IceDragon has joined #ruby
alem0lars has quit [Quit: AFK..]
maletor has joined #ruby
weeb1e has joined #ruby
threesixes has joined #ruby
lele has quit [Ping timeout: 260 seconds]
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
justinmburrous has quit [Ping timeout: 246 seconds]
brahmadpk has joined #ruby
sailias has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emocakes has quit []
sailias has joined #ruby
oo_ has joined #ruby
xaxisx has joined #ruby
<sanguisdex> GeorgesLeYeti: hi there
drPoggs has quit [Ping timeout: 260 seconds]
multi_io_ has joined #ruby
freerobby has joined #ruby
xaxisx has quit [Client Quit]
tier_ has joined #ruby
<GeorgesLeYeti> hi sanguisdex
tier has quit [Read error: Connection reset by peer]
tier has joined #ruby
Photism has joined #ruby
xaxisx has joined #ruby
drPoggs has joined #ruby
centrx has joined #ruby
charliesome has joined #ruby
multi_io has quit [Ping timeout: 260 seconds]
<shevy> olivier_bK array = File.readlines('/tmp/test.txt'), but you can also turn a string into an array at any time you know? string.split("\n")
kwd_ has quit [Quit: Sleeping now. ZZZzzz…]
xaxisx has quit [Client Quit]
<olivier_bK> shevy, i found my solution thanks men
lele has joined #ruby
<shevy> \o/
terlar has quit [Ping timeout: 260 seconds]
oo_ has quit [Ping timeout: 258 seconds]
a_ has quit [Read error: Connection reset by peer]
kamil has joined #ruby
jarto has joined #ruby
elektronaut has quit [Ping timeout: 260 seconds]
xaxisx has joined #ruby
troyready has joined #ruby
renderful has quit [Remote host closed the connection]
cndiv has joined #ruby
beneggett has joined #ruby
lkba has joined #ruby
tier has quit [Read error: Connection reset by peer]
tier has joined #ruby
elektronaut has joined #ruby
aspires has joined #ruby
a_ has joined #ruby
brahmadpk has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
a_ has quit [Client Quit]
treehug88 has joined #ruby
jobewan has joined #ruby
jacobat_ has joined #ruby
blackmesa has joined #ruby
larsam has quit [Read error: Connection reset by peer]
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
tejas has joined #ruby
tejas has joined #ruby
brahmadpk has joined #ruby
doev has quit [Ping timeout: 240 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jacobat has quit [Ping timeout: 258 seconds]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
jacobat_ has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
rodfersou has joined #ruby
mikepack has joined #ruby
ohwhoa has joined #ruby
tvw has quit []
Haiiro_ has joined #ruby
mistermocha has joined #ruby
olivier_bK has quit [Ping timeout: 260 seconds]
schaerli has quit [Remote host closed the connection]
jhass|off is now known as jhass
fsapo has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
renderful has joined #ruby
spyderman4g63 has quit [Ping timeout: 260 seconds]
Takle has joined #ruby
mrsolo has joined #ruby
GeraldoRamos has joined #ruby
kwd has joined #ruby
aspiers has quit [Ping timeout: 240 seconds]
timonv_ has quit [Remote host closed the connection]
schaerli has joined #ruby
CodyStringham has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
alex88 has quit [Quit: Leaving...]
bricker`work has joined #ruby
GeraldoRamos has quit [Client Quit]
joonty has quit [Quit: Leaving]
CodyStringham has quit []
xaxisx has quit [Quit: xaxisx]
CodyStringham has joined #ruby
CodyStringham is now known as [stringy]
roolo has quit [Remote host closed the connection]
roolo has joined #ruby
GeraldoRamos has joined #ruby
g0bl1n has joined #ruby
thagomizer has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chrisja has joined #ruby
Fire-Dragon-DoL has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elektronaut has quit [Ping timeout: 260 seconds]
Techguy305 has quit [Ping timeout: 255 seconds]
monkeypatch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ohwhoa has quit [Quit: woah!]
kaspertidemann has quit []
endash has quit [Ping timeout: 265 seconds]
roolo has quit [Ping timeout: 250 seconds]
endash has joined #ruby
abuzze has joined #ruby
phrozen77 has quit [Ping timeout: 260 seconds]
oinkon has quit [Ping timeout: 255 seconds]
elektronaut has joined #ruby
jasooon has joined #ruby
Haiiro_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Haiiro has joined #ruby
renderful has quit [Remote host closed the connection]
phrozen77 has joined #ruby
Vivekananda has quit [Quit: Ex-Chat]
einarj has quit [Remote host closed the connection]
abuzze has quit [Ping timeout: 255 seconds]
stunder has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
IceDragon has quit [Ping timeout: 246 seconds]
jasooon has quit [Ping timeout: 260 seconds]
Ankhers has quit [Remote host closed the connection]
Pet______ has quit [Remote host closed the connection]
beneggett has joined #ruby
brahmadpk has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
beef-wellington has quit [Ping timeout: 260 seconds]
IceDragon has joined #ruby
patrick99e99 has joined #ruby
claymore has joined #ruby
oinkon has joined #ruby
ptrrr has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Ping timeout: 245 seconds]
Hobogrammer has joined #ruby
mikesplain has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
sandelius has joined #ruby
Xeago has joined #ruby
endash has quit [Remote host closed the connection]
endash has joined #ruby
xaxisx has joined #ruby
allcentu1 has joined #ruby
x77686d has joined #ruby
x77686d has quit [Client Quit]
goodenough has joined #ruby
Haiiro is now known as Haiiro|Away
mercwithamouth has joined #ruby
Haiiro|Away is now known as Haiiro
klaut_ has joined #ruby
lw has joined #ruby
beef-wellington has joined #ruby
lw has quit [Read error: Connection reset by peer]
francisfish has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
lw has joined #ruby
hellangel7 has quit [Ping timeout: 260 seconds]
klaut has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
gigetoo has joined #ruby
gigetoo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
doug1 has joined #ruby
francisfish has joined #ruby
Xeago has quit [Remote host closed the connection]
maestrojed has joined #ruby
wolves_cs has quit [Quit: Textual IRC Client: www.textualapp.com]
mikepack has joined #ruby
freezey has quit [Remote host closed the connection]
Stalkr^ has quit [Quit: Leaving...]
mercwithamouth has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
x1337807x has joined #ruby
Xeago has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
anaeem1 has quit [Remote host closed the connection]
oso|away is now known as oso96_2000
Pete_____ has joined #ruby
francisfish has quit [Ping timeout: 255 seconds]
Tricon has joined #ruby
W0rmDr1nk has quit [Ping timeout: 260 seconds]
ats has joined #ruby
napcae_ is now known as napcae
Eiam has joined #ruby
Xeago has quit [Ping timeout: 246 seconds]
oleo has quit [Ping timeout: 244 seconds]
yxhuvud has quit [Remote host closed the connection]
boombadaroomba has joined #ruby
<shevy> zed is often bored
AmBienCeD_ has joined #ruby
Xeago has joined #ruby
yxhuvud has joined #ruby
ZaRDaK has joined #ruby
qba73 has quit []
timonv_ has joined #ruby
<jhass> shevy: .split("\n") == .lines
banister has joined #ruby
<jhass> well, almost :P
drPoggs has quit [Ping timeout: 260 seconds]
<shevy> I don't know what is .lines
drPoggs has joined #ruby
<jhass> >> "foo\nbar\nbaz".lines
<eval-in__> jhass => ["foo\n", "bar\n", "baz"] (https://eval.in/206354)
AmBienCeD has quit [Ping timeout: 258 seconds]
IceDragon has quit [Ping timeout: 255 seconds]
ki0 has quit [Ping timeout: 272 seconds]
charliesome has quit [Quit: zzz]
Guest10424 has quit [Remote host closed the connection]
renderful has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ats has left #ruby [#ruby]
IceDragon has joined #ruby
tylersmith has joined #ruby
evvel2 has joined #ruby
klaut_ has quit [Remote host closed the connection]
krisquigley has joined #ruby
NovapaX has joined #ruby
Kricir has quit [Remote host closed the connection]
xenomorph has quit [Ping timeout: 260 seconds]
brahmadpk has joined #ruby
blueOxigen has joined #ruby
xenomorph has joined #ruby
xenomorph has quit [Changing host]
xenomorph has joined #ruby
Kricir has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
oleo has joined #ruby
Kricir has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stunder has joined #ruby
jheg has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
stunder has quit [Quit: Screw you guys I'm going home]
SpaceKookie has quit [Ping timeout: 260 seconds]
mskaesz has quit [Remote host closed the connection]
tjsousa has joined #ruby
mkaesz has joined #ruby
mikesplain has quit [Ping timeout: 245 seconds]
max96at is now known as max96at|off
GeorgesLeYeti has quit [Quit: Leaving]
echevemaster has quit [Read error: Connection reset by peer]
SpaceKookie has joined #ruby
IceDragon has quit [Ping timeout: 272 seconds]
xcyclist has joined #ruby
oinkon has quit [Ping timeout: 240 seconds]
drkyro has quit [Quit: Textual IRC Client: www.textualapp.com]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
IceDragon has joined #ruby
p0sixpscl has joined #ruby
drkyro has joined #ruby
allcentu1 has quit [Ping timeout: 255 seconds]
anaeem1_ has joined #ruby
fabrice31 has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CoutLassa is now known as cout
mkaesz has quit [Ping timeout: 244 seconds]
anaeem1 has joined #ruby
banister has joined #ruby
sigurding has joined #ruby
kaspertidemann has joined #ruby
melik has joined #ruby
hamakn has quit [Remote host closed the connection]
machty__ is now known as machty
weemsledeux has joined #ruby
IceDragon has quit [Ping timeout: 255 seconds]
weemsledeux has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1 has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Ping timeout: 272 seconds]
KC9YDN has joined #ruby
Aaaal has quit [Quit: Aaaal]
oinkon has joined #ruby
spyderman4g63 has joined #ruby
hmsimha has joined #ruby
goodenough has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
AlSquirrel has quit [Quit: This computer has gone to sleep]
levisbakalinsky has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
pdtpatrick has quit [Quit: pdtpatrick]
armyriad has quit [Ping timeout: 255 seconds]
armyriad has joined #ruby
timonv_ has quit [Remote host closed the connection]
ZaRDaK has quit [Quit: Leaving]
freezey has joined #ruby
kwd has quit [Quit: Sleeping now. ZZZzzz…]
tejas has quit [Quit: This computer has gone to sleep]
gja has quit [Quit: This computer has gone to sleep]
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
sparr_ is now known as sparr
sparr has quit [Changing host]
sparr has joined #ruby
tejas has joined #ruby
max96at|off is now known as max96at
tvw has joined #ruby
gja has joined #ruby
thsig has joined #ruby
g0bl1n has quit [Quit: g0bl1n]
levisbakalinsky has quit [Ping timeout: 244 seconds]
awestroke has joined #ruby
elaptics is now known as elaptics`away
mleone_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drPoggs has quit [Ping timeout: 260 seconds]
otherj has joined #ruby
jottr_ has joined #ruby
stantona has joined #ruby
drPoggs has joined #ruby
mikecmpbll has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IceDragon has joined #ruby
goodenough has joined #ruby
nanoyak has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
TejasDinkar has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has joined #ruby
doodlehaus has quit [Remote host closed the connection]
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
tejas has quit [Ping timeout: 240 seconds]
gja has quit [Ping timeout: 250 seconds]
jasooon has joined #ruby
gja has joined #ruby
freezey has quit [Remote host closed the connection]
gja has joined #ruby
Xeago has quit [Remote host closed the connection]
xaxisx has quit [Quit: xaxisx]
drPoggs has quit [Ping timeout: 260 seconds]
elektronaut has quit [Ping timeout: 260 seconds]
mijicd has joined #ruby
elektronaut has joined #ruby
ptrrr has quit [Quit: ptrrr]
doodlehaus has joined #ruby
drPoggs has joined #ruby
Synthead has joined #ruby
kirun has joined #ruby
jheg has quit [Quit: jheg]
jasooon has quit [Ping timeout: 240 seconds]
carraroj has joined #ruby
mrsolo has joined #ruby
mikesplain has joined #ruby
mijicd has quit [Remote host closed the connection]
jheg has joined #ruby
hamakn has joined #ruby
mijicd has joined #ruby
wallerdev has joined #ruby
xaxisx has joined #ruby
last_staff has joined #ruby
levisbakalinsky has joined #ruby
coderdad has quit [Remote host closed the connection]
xenomorph has quit [Ping timeout: 260 seconds]
xenomorph has joined #ruby
coderdad has joined #ruby
xenomorph has quit [Changing host]
xenomorph has joined #ruby
iamjarvo has joined #ruby
gja has quit [Ping timeout: 260 seconds]
TejasDinkar has quit [Ping timeout: 258 seconds]
goodenough has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 255 seconds]
Pete_____ has quit [Remote host closed the connection]
goodenough has joined #ruby
OffTheRails has joined #ruby
bMalum has quit [Quit: bMalum]
coderdad_ has joined #ruby
xaxisx has quit [Quit: xaxisx]
ndrei has quit [Ping timeout: 260 seconds]
SpaceKookie has quit [Ping timeout: 260 seconds]
thumpba has quit [Ping timeout: 246 seconds]
benzrf|offline is now known as benzrf
thumpba has joined #ruby
bMalum has joined #ruby
phrozen77 has quit [Ping timeout: 260 seconds]
heftig has quit [Ping timeout: 260 seconds]
St_Marx has quit [Quit: Ex-Chat]
phrozen77 has joined #ruby
coderdad has quit [Ping timeout: 244 seconds]
Xiti has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
yetanotherdave has joined #ruby
heftig has joined #ruby
goodenough has quit [Ping timeout: 240 seconds]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phrozen77 has quit [Excess Flood]
SpaceKookie has joined #ruby
oo_ has joined #ruby
gja has joined #ruby
tejas has joined #ruby
tejas has quit [Changing host]
tejas has joined #ruby
vt102 has joined #ruby
wldcordeiro has joined #ruby
Silent__ has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
ctp has joined #ruby
p0sixpsc_ has joined #ruby
p0sixpsc_ has joined #ruby
icarus has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
carraroj has quit [Ping timeout: 240 seconds]
p0sixpscl has quit [Ping timeout: 250 seconds]
elektronaut has quit [Ping timeout: 260 seconds]
_whitelogger_ has quit [Ping timeout: 260 seconds]
_whitelogger_ has joined #ruby
nonks has joined #ruby
jbueza has joined #ruby
GHemsley is now known as GPH|work
francisfish has joined #ruby
workmad3 has joined #ruby
chrishough has quit [Ping timeout: 240 seconds]
wasamasa has joined #ruby
wasamasa has quit [Quit: ZNC - http://znc.in]
jhc76 has quit [Quit: Leaving]
Kilo`byte has quit [Ping timeout: 240 seconds]
chrishough has joined #ruby
maletor has joined #ruby
centrx has joined #ruby
carraroj has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<sterns> Hello, my model builds a hash based on an XML file and sorts by a date field. I am working on paginating using my view displaying 50 records per page. How can I do this without rebuilding my hash for each page view?
wallerdev has quit [Quit: wallerdev]
nonks has quit [Ping timeout: 260 seconds]
Kilo`byte has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wasamasa has joined #ruby
wasamasa has quit [Changing host]
wasamasa is now known as {{{
{{{ is now known as wasamasa
_whitelogger_ has joined #ruby
wasamasa has quit [Client Quit]
wallerdev has joined #ruby
wasamasa has joined #ruby
Pete_____ has joined #ruby
sk87 has joined #ruby
Takle has joined #ruby
<sterns> jhass: will do
rismoney1_ has quit [Remote host closed the connection]
<havenwood> >> {aim: true, today: :wed, number: 42, example: Hash, letter: ?x, cut_of_meat: :salami}.each_slice(3).map(&:to_h)
<eval-in__> havenwood => [{:aim=>true, :today=>:wed, :number=>42}, {:example=>Hash, :letter=>"x", :cut_of_meat=>:salami}] (https://eval.in/206370)
rismoney1 has joined #ruby
chrishough has quit [Read error: Connection reset by peer]
freezey has joined #ruby
francisfish has quit [Remote host closed the connection]
<nrsk> hi all! How to make a mock in rspec? I have class A. It calls C::B.method. I have tests for class A, and C::B.method here should return stubbed data
nanoyak has quit [Quit: Computer has gone to sleep.]
<nrsk> 2.3.1 v
User458764 has quit [Ping timeout: 260 seconds]
chrishough has joined #ruby
<jhass> nrsk: that's a quite old version
<jhass> why don't you update to 2.14 at least?
kireevco has joined #ruby
rdark has quit [Quit: leaving]
<nrsk> sorry, it mistake, 2.1.3 of ruby)
tyll_ has quit [Ping timeout: 250 seconds]
<jhass> is it C::B::method or C::B#method ?
<nrsk> C::B.method
<jhass> so a class/singleton method?
<jhass> C::B is hardcoded into A?
<nrsk> instance method
chrishou_ has joined #ruby
tyll has joined #ruby
<jhass> so C::B#method ;)
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vyorkin has joined #ruby
_whitelogger__ has joined #ruby
<nrsk> module SomeModule; class A; def foo; C::B.new.method
otherj has quit []
postmodern has joined #ruby
<wasamasa> vyorkin: rbenv's job is to give you a recent ruby to work with (and optionally switching to a different one)
<jhass> nrsk: you could do allow(C::B).to receive(:new).and_return(double(method: 'data')) then
alem0lars has joined #ruby
<havenwood> vyorkin: shims. nasty brutish little shims
<nrsk> thank you, I'll try it that now
Soda has joined #ruby
wallerdev has quit [Quit: wallerdev]
<jhass> vyorkin: the first version is the namespace chosen by rbenv, the second version is the ABI version of that ruby, which is different from the interpreter version
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
bthesorceror has quit [Ping timeout: 258 seconds]
alem0lars has quit [Client Quit]
<wasamasa> vyorkin: to manage the gems you use `gem` and in projects `bundle`
NovapaX has joined #ruby
Haiiro has quit [Ping timeout: 260 seconds]
allcentu1 has joined #ruby
jfran has joined #ruby
<havenwood> vyorkin: if you're just starting rbenv i'd recommend opting for chruby or RVM instead
Affix has quit [Ping timeout: 260 seconds]
kobain has joined #ruby
jbw has quit [Ping timeout: 245 seconds]
<wasamasa> vyorkin: what linux distro are you on?
freezey has quit [Ping timeout: 255 seconds]
<havenwood> vyorkin: chruby is a similar but simpler switcher: https://github.com/postmodern/chruby#readme
jbw has joined #ruby
Affix has joined #ruby
Haiiro has joined #ruby
<vyorkin> jhass: i really don't understand why they are different
<havenwood> well, not similar working, but i mean similar in it's goal to be a minimalist Ruby switcher
<wasamasa> vyorkin: and what ruby version does it provide?
<jhass> vyorkin: because then you don't have to rebuild C ext gems across minor updates
<vyorkin> wasamasa: i'm on mac os x
lw has joined #ruby
<wasamasa> vyorkin: oh well
<jhass> vyorkin: for example the ABI version is the same for Ruby 2.1.0, 2.1.2 and 2.1.3
<wasamasa> vyorkin: if you don't need switching, you could use brew to install a sufficiently recent ruby
<havenwood> vyorkin: brew uninstall rbenv && brew install chruby # :P
xenomorph has quit [Ping timeout: 260 seconds]
<benzrf> quit
<havenwood> wasamasa: good point, the brew Ruby package is latest stable
<benzrf> oups
<havenwood> can't leave so easily!
ghr has joined #ruby
<wasamasa> vyorkin: if you do need switching, chruby sounds like the simplest one to go for
danijoo_ has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
beef-wellington has quit [Ping timeout: 260 seconds]
danijoo has joined #ruby
<wasamasa> vyorkin: I hope you do use brew on your osx machine :P
geggam has joined #ruby
timonv_ has joined #ruby
benzrf is now known as benzrf|offline
ad_boot has joined #ruby
marr has quit [Ping timeout: 258 seconds]
<vyorkin> wasamasa: of course i do (:
<vyorkin> wasamasa: i have a big (deprecated) Brewfile with bunch of stuff in it (:
<vyorkin> havenwood: ok, i think i've got the basic idea
claymore has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 258 seconds]
tejas has quit [Quit: This computer has gone to sleep]
gja has quit [Quit: This computer has gone to sleep]
AmBienCeD_ has quit [Quit: http://quassel-irc.org - Chatee cómodamente donde sea.]
xenomorph has joined #ruby
xenomorph is now known as {xenomorph}
AmBienCeD has joined #ruby
claymore has joined #ruby
maasha has joined #ruby
iamjarvo has quit [Quit: Textual IRC Client: www.textualapp.com]
<maasha> I am looking to parse a huge table into a hash per row as fast as possible. Now, columns can be strings, floats or integers and I don't know beforehand. Ideas?
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tejas has joined #ruby
<havenwood> maasha: Gist example input and desired output?
W0rmDr1nk has joined #ruby
<maasha> I feel like testing a single row and generate a template for some scanf like method to process the remaining rows.
monkeypatch has joined #ruby
lw has quit [Read error: Connection reset by peer]
<havenwood> maasha: Can you give an example of a single row?
<vyrus001> please god tell me somebody here is familuar with zipinputstream
alem0lars has joined #ruby
renderful has quit [Remote host closed the connection]
lw has joined #ruby
<vyrus001> the following line of code is breaking saying my "IOStream is not a string"
<vyrus001> Zip::ZipInputStream.open(open(s3Link['url'])) do |io|
<havenwood> vyrus001: try #jruby
<vyrus001> havenwood: wait... its a jruby lib?
<vyrus001> not a ruby lib?
WormDrink has quit [Ping timeout: 260 seconds]
<havenwood> i don't know of the Ruby lib
<havenwood> nvm me
<vyrus001> havenwood: zip/zip
ursooperduper has joined #ruby
timonv_ has quit [Remote host closed the connection]
<maasha> havenwood: here is an example, but I am looking to parse any number of columns of unspecified type: https://gist.github.com/maasha/30894fd4659fda19b59e
<havenwood> ah, then not java.util.zip.ZipInputStream
timonv_ has joined #ruby
<vyrus001> im trying to do this
<vyrus001> which is pretty much ripped off this chunk of code from... but it dosent work
<vyrus001> it seems to expect a string (filename) not an iostream, even though im calling it in the way thats supposed to make it take an iostring as a param
banister has quit [Read error: Connection reset by peer]
banister has joined #ruby
ptrrr has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
ptrrr has joined #ruby
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
beef-wellington has joined #ruby
AlSquire has joined #ruby
emmesswhy has joined #ruby
freezey has joined #ruby
NoNMaDDeN has joined #ruby
<evvel2> Hi all so im trying to do some work with ec2 and the aws-sdk gem. So what im having an issue with is that ive created a class which handles all the ec2 security groups, but onething that I need to be able todo is generate the ec2 call that creates the security group based on a hash(egree/ingress), but when I call the class i see the variable(ingress/egress) is not being placed in the line to complete the request. Sorry its so long. here is the code it
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
jbueza has joined #ruby
Techguy305 has joined #ruby
<evvel2> Any insight on my the reason why I cant complete ec2_client_authorize_security_group_"#{value['type']}""(:group_id => #{group_id} :ip_permissions=>[ { :ip_protocol => #{value['proto']}, :from_port => #{k}, :to_port => #{k} }], :ip_ranges => [{:cidr_ip => #{ip} }] )", when Its ran it get: ec2_client_authorize_security_group_' for #<Amazon:0x0000010116a060> (NoMethodError)
<evvel2> as you can see ec2_client_authorize_security_group_"ingress/egress" is missing
ta has quit [Ping timeout: 240 seconds]
<havenwood> maasha: File.open('table.txt') { |table| headers = table.readline.scan(/\w+/); rows = table.readlines.map(&:split); rows.map { |row| headers.zip(row).to_h } }
[stringy] has quit [Remote host closed the connection]
<havenwood> maasha: not efficient though
<maasha> havenwood: you noticed that COUNT is parsed as intergers?
<havenwood> maasha: nope
jrhe_ has joined #ruby
KanKava has joined #ruby
<havenwood> maasha: nor that You converted the strings to Symbols
centrx has quit [Ping timeout: 246 seconds]
<havenwood> maasha: might as well downcase em while you're at it :P
<maasha> havenwood: "Human ATACGTCAG 23524".scanf("%s\t%s\t%d")
<maasha> if scanf is as efficient as in C this could be it.
<maasha> I analyze the first record and compose a format string for scanf and then we go ...
tier_ has joined #ruby
<havenwood> maasha: nice
sepp2k has quit [Quit: Konversation terminated!]
banister has quit [Ping timeout: 240 seconds]
sandelius has joined #ruby
Joel has joined #ruby
<Joel> does https://github.com/opscode/mixlib-cli support array of options? am I missing something? Like --bucket 1 2 3 4
NovapaX has quit [Quit: Textual IRC Client: www.textualapp.com]
mattmcclure has joined #ruby
tier has quit [Ping timeout: 246 seconds]
xaxisx has joined #ruby
monkeypatch has quit [Quit: Textual IRC Client: www.textualapp.com]
Synthead has quit [Remote host closed the connection]
<Joel> I see cli.cli_arguments in the doc, but those aren't tied to a specific option it seems
benzrf|offline is now known as benzrf
sepp2k has joined #ruby
omosoj has joined #ruby
jdj_dk has joined #ruby
teddyp1cker has joined #ruby
xaxisx has quit [Client Quit]
djbkd has joined #ruby
oo_ has joined #ruby
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xaxisx has joined #ruby
tier_ has quit [Remote host closed the connection]
centrx has joined #ruby
centrx has quit [Client Quit]
skolman_ has quit [Remote host closed the connection]
tier has joined #ruby
monkeypatch has joined #ruby
skolman_ has joined #ruby
levisbakalinsky is now known as levisbakalinsky|
omosoj has quit [Ping timeout: 272 seconds]
ARCADIVS has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
oso96_2000 is now known as oso|away
cicloid is now known as aCicloid
DLSteve has joined #ruby
omosoj has joined #ruby
lw has quit [Quit: s]
NullEntity_ has joined #ruby
x77686d has joined #ruby
x77686d has quit [Client Quit]
bthesorceror has joined #ruby
levisbakalinsky| is now known as levisbakalinsky
skolman_ has quit [Ping timeout: 265 seconds]
rkalfane has joined #ruby
User458764 has joined #ruby
pu22l3r_ has joined #ruby
genta has quit [Read error: Connection reset by peer]
otherj has joined #ruby
pu22l3r__ has joined #ruby
chrishou_ has quit [Read error: Connection reset by peer]
AngryEgret has quit [Ping timeout: 246 seconds]
carraroj has quit [Ping timeout: 246 seconds]
samuelkadolph has quit [Ping timeout: 246 seconds]
carraroj has joined #ruby
Ulrike_Rayne has quit [Ping timeout: 246 seconds]
NullEntity has quit [Ping timeout: 246 seconds]
aboudreault has quit [Ping timeout: 246 seconds]
cephalostrum has quit [Ping timeout: 246 seconds]
ad_boot has quit [Quit: ad_boot]
gja has quit [Quit: This computer has gone to sleep]
tejas has quit [Quit: This computer has gone to sleep]
flughafen has quit [Ping timeout: 246 seconds]
banister has joined #ruby
fella7s has joined #ruby
kireevco has left #ruby [#ruby]
C0deMaver1ck has quit [Ping timeout: 246 seconds]
ArchBeOS has quit [Ping timeout: 246 seconds]
b1nd has quit [Ping timeout: 246 seconds]
jnylen has quit [Ping timeout: 246 seconds]
oinkon has quit [Ping timeout: 250 seconds]
ArchBeOS has joined #ruby
icarus has quit [Ping timeout: 246 seconds]
fella6s has quit [Ping timeout: 246 seconds]
ArchBeOS is now known as Guest70315
fabrice31 has joined #ruby
pu22l3r has quit [Ping timeout: 246 seconds]
Cope has quit [Ping timeout: 246 seconds]
kedare has quit [Ping timeout: 246 seconds]
michael_mbp has quit [Ping timeout: 246 seconds]
mikepack has joined #ruby
gja has joined #ruby
dopiee has joined #ruby
zenspider has quit [Ping timeout: 246 seconds]
rodfersou has quit [Ping timeout: 246 seconds]
pu22l3r_ has quit [Remote host closed the connection]
msmith__ has joined #ruby
bmn has quit [Ping timeout: 246 seconds]
blackgoat has quit [Ping timeout: 246 seconds]
Anarch has quit [Ping timeout: 246 seconds]
Cope has joined #ruby
[stringy] has joined #ruby
rodfersou has joined #ruby
wallerdev has joined #ruby
manzo has quit [Quit: Leaving]
icarus has joined #ruby
xaxisx has quit [Quit: xaxisx]
Anarch has joined #ruby
tejas has joined #ruby
omosoj has quit [Ping timeout: 265 seconds]
RaCx has quit [Ping timeout: 246 seconds]
kies has quit [Ping timeout: 246 seconds]
machete has quit [Ping timeout: 246 seconds]
vyrus001 has quit [Ping timeout: 246 seconds]
Takumo has quit [Ping timeout: 246 seconds]
BradPitt_ has joined #ruby
bricker`1ork has joined #ruby
michael_mbp has joined #ruby
beef-wellington has quit [Ping timeout: 260 seconds]
bricker`work has quit [Ping timeout: 246 seconds]
decoponio has quit [Ping timeout: 246 seconds]
BraddBitt has quit [Ping timeout: 246 seconds]
sterns has quit [Ping timeout: 246 seconds]
tommylommykins has quit [Ping timeout: 246 seconds]
lynxman has quit [Ping timeout: 246 seconds]
ged has quit [Ping timeout: 246 seconds]
timmmaaaayyy has quit [Ping timeout: 246 seconds]
x77686d has joined #ruby
Scotteh has joined #ruby
aspires has quit []
vyrus001 has joined #ruby
jbw has quit [Ping timeout: 246 seconds]
msmith_ has quit [Ping timeout: 246 seconds]
nug has quit [Ping timeout: 246 seconds]
DanKnox has quit [Ping timeout: 246 seconds]
sarlalian has quit [Ping timeout: 246 seconds]
rostam has quit [Ping timeout: 246 seconds]
dopie has quit [Ping timeout: 246 seconds]
pontiki has quit [Ping timeout: 246 seconds]
emdub has quit [Ping timeout: 246 seconds]
bhaak has quit [Ping timeout: 246 seconds]
MuffinPimp has quit [Ping timeout: 246 seconds]
finges has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
jamo_ has quit [Ping timeout: 246 seconds]
emdub has joined #ruby
chrishough has joined #ruby
AngryEgret has joined #ruby
bhaak has joined #ruby
pu22l3r__ has quit [Remote host closed the connection]
RaCx has joined #ruby
aCicloid is now known as cicloid
jamo_ has joined #ruby
pu22l3r has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
oinkon has joined #ruby
lynxman has joined #ruby
pontiki has joined #ruby
marr has joined #ruby
justin_pdx has joined #ruby
zenspider has joined #ruby
decoponio has joined #ruby
samuelkadolph has joined #ruby
levisbakalinsky has quit [Ping timeout: 272 seconds]
ged has joined #ruby
schaerli has quit [Remote host closed the connection]
genta has joined #ruby
Pete_____ has quit []
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skolman_ has joined #ruby
rostam has joined #ruby
levisbakalinsky has joined #ruby
C0deMaver1ck_ has joined #ruby
aboudreault has joined #ruby
Takumo has joined #ruby
machete has joined #ruby
gnarld_ has joined #ruby
DanKnox has joined #ruby
mary5030 has quit [Remote host closed the connection]
bmn has joined #ruby
xaxisx has joined #ruby
cephalostrum has joined #ruby
bluOxigen has joined #ruby
claymore has quit [Ping timeout: 272 seconds]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
kamil has quit [Quit: Linkinus - http://linkinus.com]
tommylommykins has joined #ruby
awestroke has quit [Remote host closed the connection]
jbueza has quit [Ping timeout: 255 seconds]
blueOxigen has quit [Ping timeout: 272 seconds]
chrishough has quit [Ping timeout: 255 seconds]
flughafen has joined #ruby
otherj has quit []
blueOxigen has joined #ruby
beef-wellington has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
chrishough has joined #ruby
jnylen has joined #ruby
claymore has joined #ruby
b1nd has joined #ruby
wallerdev has quit [Quit: wallerdev]
benzrf is now known as benzrf|offline
kies has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
Kricir has quit [Ping timeout: 245 seconds]
blackgoat has joined #ruby
gja has quit [Read error: Connection reset by peer]
genta has quit [Quit: Quit]
jbueza has joined #ruby
freezey has quit [Remote host closed the connection]
jbw has joined #ruby
RaCx has joined #ruby
sarlalian has joined #ruby
DouglasCunha_ has joined #ruby
finges has joined #ruby
RaCx has quit [Client Quit]
Smujo has joined #ruby
sterns has joined #ruby
Techguy305 has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
tjsousa has quit [Remote host closed the connection]
gja has joined #ruby
tjsousa has joined #ruby
krisquigley has quit []
tejas has quit [Ping timeout: 272 seconds]
tejas has joined #ruby
tejas has quit [Changing host]
tejas has joined #ruby
DouglasCunha has quit [Ping timeout: 265 seconds]
ta has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
mistermocha has joined #ruby
anaeem1_ has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 272 seconds]
anaeem1_ has joined #ruby
emmesswhy has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
claymore has quit [Ping timeout: 272 seconds]
ki0 has joined #ruby
sigurding has quit [Ping timeout: 255 seconds]
anaeem1_ has joined #ruby
mary5030 has joined #ruby
levisbakalinsky has quit [Read error: Connection reset by peer]
levisbakalinsky has joined #ruby
genta has joined #ruby
djbkd has quit [Remote host closed the connection]
sigurding has joined #ruby
renderful has joined #ruby
paulfm has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
KC9YDN has quit [Ping timeout: 258 seconds]
mistermocha has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby
claymore has joined #ruby
chrishough has quit [Ping timeout: 255 seconds]
sigurding has quit [Client Quit]
tejas has quit [Ping timeout: 260 seconds]
threesixes has quit [Remote host closed the connection]
gja has quit [Ping timeout: 272 seconds]
rshetty has quit [Remote host closed the connection]
chrishough has joined #ruby
aspiers has joined #ruby
Lewix has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
jasooon has joined #ruby
larsam has joined #ruby
emmesswhy has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tier has quit [Remote host closed the connection]
carraroj has quit [Ping timeout: 244 seconds]
gvenkat has joined #ruby
jasooon has quit [Ping timeout: 255 seconds]
klaut has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
kantakt has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
tejas has joined #ruby
tjsousa has quit [Quit: (null)]
jottr_ is now known as jottr
benzrf|offline is now known as benzrf
kobain has quit [Read error: Connection timed out]
kobain has joined #ruby
ewilliam has joined #ruby
<maasha> oh horror
kobain has quit [Max SendQ exceeded]
tbrock has joined #ruby
<maasha> scanf is slow
kobain has joined #ruby
freezey has joined #ruby
kobain has quit [Max SendQ exceeded]
Deejay_ has joined #ruby
kobain has joined #ruby
<benzrf> is that like scanl
<maasha> scanf is implemented in pure Ruby and is using regexes and not C scanf :o( ?
<benzrf> eek!
justin_pdx has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
tejas has quit [Quit: This computer has gone to sleep]
oo_ has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
workmad3 has quit [Quit: Lost terminal]
OffTheRails has quit [Ping timeout: 265 seconds]
ki0 has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving.]
j_mcnally has joined #ruby
adac has quit [Ping timeout: 255 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
levisbakalinsky is now known as levisbakalinsky|
mijicd has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
oo_ has quit [Ping timeout: 244 seconds]
nonks has joined #ruby
Ulrike_Rayne has joined #ruby
RaCx has joined #ruby
mijicd has joined #ruby
rkalfane has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
alem0lars_ has joined #ruby
claymore has quit [Ping timeout: 255 seconds]
bricker`1ork is now known as bricker`work
maletor has quit [Quit: Computer has gone to sleep.]
lw has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
levisbakalinsky| has quit [Ping timeout: 265 seconds]
alem0lars has quit [Ping timeout: 244 seconds]
alem0lars_ is now known as alem0lars
Ulrike_Rayne has joined #ruby
djbkd has joined #ruby
freezey has quit []
claymore has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crazydiamond has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gnarld_ is now known as nug
djbkd has quit [Remote host closed the connection]
ndrei has joined #ruby
djbkd has joined #ruby
Skeit has joined #ruby
Skeit_ has joined #ruby
emmesswhy has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
Eiam has joined #ruby
macberrypro has joined #ruby
macberrypro has left #ruby [#ruby]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
Skeit has quit [Ping timeout: 240 seconds]
atmosx has joined #ruby
ivmx has joined #ruby
atmosx has quit [Max SendQ exceeded]
<banister> apeiros sup
banister is now known as banisterfiend
<jheg> I’ve hit a wall trying to understand some ruby syntax
<banisterfiend> jheg ask
<jheg> Its the self. method I’m not sure what it is/does
<banisterfiend> jheg it's not a method, it's a keyword
<banisterfiend> it just returns the current object that's in scope
AngryEgret has quit [Ping timeout: 272 seconds]
codecop has quit [Remote host closed the connection]
monkeypatch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
justin_pdx has quit [Quit: justin_pdx]
<jheg> so why would you use self.ivar rather than @ivar ?
wallerdev has joined #ruby
pu22l3r has quit [Ping timeout: 250 seconds]
jack_rabbit has joined #ruby
decoponio has quit [Quit: Leaving...]
pu22l3r has joined #ruby
<banisterfiend> jheg well, you don't only use it for invoking methods, sometimes you have to pass the current object to a method belonging to another object
<banisterfiend> in that case you'd go: other_object.method(self)
atma has joined #ruby
RaCx has quit [Ping timeout: 240 seconds]
atma is now known as atmosx
manzo has joined #ruby
aspires has joined #ruby
AngryEgret has joined #ruby
<crome> jheg: in that specific case you can use self.ivar (or just ivar) if ivar is a) a public method that returns @ivar, or b) an accessor
<jheg> thanks guys
<jheg> this is the example used in the tutorial im following ...
chrishough has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
spyderman4g63 has joined #ruby
teddyp1c_ has joined #ruby
danman has joined #ruby
alvaro_o has joined #ruby
<jheg> its a method within a class that allows you to change the attribute of the instance variable
diegoviola has joined #ruby
<jheg> I think that’s the correct terminology :)
lw has quit [Quit: s]
<jheg> the tutorial ^
<crome> just create a small script with a class and play around with setting and getting instance variables using different ways
andrew_ has joined #ruby
<jheg> yeah perhaps it wil become clearer once I written a few programs eh?
andrew_ has quit [Client Quit]
teddyp1cker has quit [Ping timeout: 244 seconds]
awarner has joined #ruby
<crome> I personally don't like using self for accessing instance variables or methods
RaCx has joined #ruby
tier has joined #ruby
GriffinHeart has joined #ruby
ixti has quit [Ping timeout: 250 seconds]
renderful has quit [Remote host closed the connection]
<jheg> “We can actually use the setter method instead of accessing the instance variable directly”
ghr has joined #ruby
<jheg> at which point he changed @color = color to self.color = color
<jheg> but he didnt state why accessing it via the setter method was better than accessign it directly
<atmosx> would you guys accept wages in bitcoins?
<jheg> therein lies my confusion
<jheg> nope
<atmosx> and if you were employers would you pay your employees in btc?
<jheg> too volatile unless you were going to trade out right away
<jheg> even more defo not :)
<crome> atmosx: I would lough and would suggest it was a good joke to keep up the mood
<crome> laugh*
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
chrishough has joined #ruby
<atmosx> jheg: exactly, is there any hard-concept to grasp here? I wonder.
<atmosx> People are so stupid it makes wanna scream.
<jheg> sounds like madness to me
<atmosx> A startup based on bitcoin payrol automation, as if there as thousand of lunatics paying their employees in a currency that might worth 1.000.000USD or nothing in 10 years, and the employees accepting that thing.
<atmosx> blah
<crome> jheg: quite often there are heated discussions about accessing instance variables directly vs accessing them through setters/getters/accessors
<crome> jheg: I wouldn't care about it for now
<atmosx> crome: what is the difference?
<jheg> ^ ha thats what i’ve been trying to grasp all afternoon atmosx :)
ki0 has joined #ruby
<crome> from the end result's point of view, nothing really
<atmosx> jheg: can you show me a code sample of technique one and two because I seriously don't know what you guys are talking about.
<jheg> thanks crome I at least feel better about it being no so important
TripTastic has joined #ruby
<atmosx> using self.whatever you're accesing them directly
<atmosx> ?
User458764 has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 272 seconds]
<jheg> @name is accessing directly I think
<atmosx> ahahahaha
<atmosx> cool, we totally don't know what we're talking about :-P
<jheg> :)
<crome> jheg: correct
<atmosx> anyway, that's for people who wanna master the language deeply probably. I don't really care (until I hit a wall)
genta has quit [Quit: Quit]
GriffinHeart has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
mijicd has quit [Remote host closed the connection]
<crome> for the purpose of learning ruby you can safely assume that @balls = 2, self.balls = 2 (if there is a getter or accessor defined) are the same
jdj_dk has quit [Ping timeout: 260 seconds]
<crome> setter*
ocx has joined #ruby
x1337807x has joined #ruby
<jheg> cool, ta
claymore has quit [Ping timeout: 265 seconds]
<atmosx> I was confused when I saw the module_function :method_name approach in a Module
<atmosx> so much that I never forgot it lol
x1337807x has quit [Max SendQ exceeded]
<atmosx> I liked the style better than using self.method;blah;end
<atmosx> ruby is full of this stuff
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
levisbakalinsky has joined #ruby
jdj_dk has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
ivmx has left #ruby [#ruby]
<ocx> hi guys i am trying to send to sinatra a get request similar to http://test,com?keyField=1&valueField=A&keyFiled=2&valueField=Y&keyField=3&valuField=3 ; how can i accept all this in sinatra and store them in an hash
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
pu22l3r has quit [Remote host closed the connection]
bklane has quit [Remote host closed the connection]
<crome> sinatra gives you the request parameters in the params hash
x1337807x has joined #ruby
<ocx> crome: correct but i need to store the first 2 in 1 hash
Deejay_ has quit [Quit: Computer has gone to sleep.]
pu22l3r has joined #ruby
bklane has joined #ruby
<ocx> and the next 2 in another jash
<crome> first 2 what?
x1337807x has quit [Max SendQ exceeded]
teddyp1c_ has quit []
<ocx> like for instance in the example i gave it should give you 1=A
<ocx> 2=Y
benzrf is now known as benzrf|offline
x1337807x has joined #ruby
danman has quit [Quit: danman]
claymore has joined #ruby
<ocx> crome: in the end i want to write these in a yaml file
geekbri has quit []
<crome> ah, so you want to match the keyfields with the valuefields?
<ocx> the yaml file will contain: line1: 1=A line2: 2=Y line3: 3=3
<ocx> yes sir
<crome> sending different parameters with the same name is not a very smart idea
<ocx> what would be smart?
<crome> some web server simply overwrite the previous parameter with the same name when they process the request
<ocx> ok but i mean how can i make it a couple of pairs
mrsolo has joined #ruby
Skeit_ has quit [Ping timeout: 250 seconds]
Haiiro is now known as Haiiro|Away
genta has joined #ruby
bklane has quit [Ping timeout: 260 seconds]
<crome> I'm wondering, what does the params hash contain when you send that request to sinatra?
ixti has joined #ruby
VictorVR has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ocx> crome: for example i want to do : http://test.com?ip=1234&subnet=255&gateway=254
<VictorVR> what is the software development big question?
<ocx> and then write ip=123 subnet=255 and gateway=254 in a yaml file
<crome> ocx: now that's a lot better example
RaCx has quit [Quit: Computer has gone to sleep.]
RaCx has joined #ruby
ki0 has quit [Remote host closed the connection]
<crome> you could do something like File.open('somefile', 'w+') { |f| params.to_a.each { |param| f.puts param.join('=') } }
phutchins has joined #ruby
spicerack has joined #ruby
levisbakalinsky is now known as levisbakalinsky|
<crome> what is it that gives you the problem? writing to file? iterating through a hash?
<crome> a couple of minutes on google can help you with both
weemsledeux has joined #ruby
Haiiro|Away is now known as Haiiro
emmesswhy has quit [Quit: This computer has gone to sleep]
xymbol has quit [Quit: Be back later ...]
TripTastic has left #ruby ["Leaving"]
maletor has joined #ruby
levisbakalinsky| has quit [Ping timeout: 244 seconds]
<ocx> crome i am doing it now for 1 key/value like this: data[targetKey] = targetValue File.write("current_general_config.yml",YAML.dump(data))
havenwood has quit [Remote host closed the connection]
pmarreck_ is now known as pmarreck
havenwood has joined #ruby
bklane has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
<ocx> crome: can i do something like: params.to_a.each { |param| File.write("current_general_config.yml",YAML.dump(param)) ?
Stalkr_ has joined #ruby
<crome> doing so would overwrite the contents of the file in each iteration
DouglasCunha has joined #ruby
Notte has joined #ruby
<crome> leaving you with only the last entry in the params hash
matchaw has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
blueOxigen has quit [Ping timeout: 265 seconds]
AlexRussia has quit [Ping timeout: 258 seconds]
fabrice31 has joined #ruby
nanoyak has joined #ruby
<ocx> hmm ok how should i do it then?
skolman_ has quit [Remote host closed the connection]
matchaw_ has quit [Ping timeout: 258 seconds]
benzrf|offline is now known as benzrf
<crome> I think I just showed you a way (or at least something you can use) a couple of minutes ago
skolman has joined #ruby
levisbakalinsky has joined #ruby
Soda has quit [Remote host closed the connection]
bmurt has quit []
spider-mario has quit [Remote host closed the connection]
DouglasCunha_ has quit [Ping timeout: 244 seconds]
havenwood has quit [Ping timeout: 264 seconds]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Excess Flood]
SCHAAP137 has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
<ocx> crome how about this? File.open('somefile', 'w+') { |f| params.to_a.each { |param| f.puts param.to_yaml } }
skolman has quit [Remote host closed the connection]
skolman_ has joined #ruby
<crome> ocx: how about trying it?
renderful has joined #ruby
rbrs has joined #ruby
justin_pdx has joined #ruby
boombadaroomba has joined #ruby
allcentu1 has quit [Ping timeout: 260 seconds]
freerobby has quit [Quit: Leaving.]
tbrock has quit [Quit: Computer has gone to sleep.]
sepp2k has quit [Quit: Konversation terminated!]
freerobby has joined #ruby
Lewix has quit [Remote host closed the connection]
GHemsley has joined #ruby
rubie has joined #ruby
xaxisx has quit [Quit: xaxisx]
Lewix has joined #ruby
<ocx> crome: doesnt work undefined method `bytesize' for ["name", "blah"]:Array
omosoj has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<rubie> hi all: could someone take a look not sure why im getting an error with the map method here https://gist.github.com/gabrie30/ce18e606d52664ff24cd
GHemsley is now known as GPH|work
alem0lars has quit [Quit: alem0lars]
GPH|work has quit [Disconnected by services]
mary5030 has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 272 seconds]
pu22l3r has joined #ruby
<Stalkr_> rubie: You are using map on a string
havenwood has joined #ruby
<Stalkr_> For some reason
<rubie> its an array of strings tho
<eval-in__> crome => 9 (https://eval.in/206414)
<rubie> can't do that
<crome> >> 3 ** 2
<crome> I'm not sure what you want to do by splitting it
<rubie> i want to get each number into the array
<rubie> so 10 ** 2 = 100
<rubie> i want [1,0,0]
<crome> ah
mikesplain has quit []
ptrrr has quit [Quit: ptrrr]
<ocx> crome: if i do writeAll?name=test it is writing name on a line and test on another line
ki0 has joined #ruby
aclearman037 has quit []
<havenwood> >> (10 ** 2).to_s.each_char.map(&:to_i)
<eval-in__> havenwood => [1, 0, 0] (https://eval.in/206415)
paulfm has quit []
Br0keN has joined #ruby
<crome> rubie: sqrd is a string, you cant just turn it into an array in-place
tier has quit [Remote host closed the connection]
<eval-in__> havenwood => ["4", "2"] (https://eval.in/206416)
<crome> Stalkr_: I'm pretty sure string doesn't have a split! method
jacobat has joined #ruby
<crome> numbers = sqrd.split(//)
ad_boot has joined #ruby
Br0keN is now known as VictorVR
<Stalkr_> rubie: You are not actually splitting it
<havenwood> >> '42'.chars
Haiiro is now known as Haiiro|Away
<Stalkr_> rubie: You should use split! instead
emmesswhy has joined #ruby
<havenwood> numbers = sqrd.chars
VictorVR has quit [Disconnected by services]
nfk has quit [Quit: yawn]
pu22l3r has quit [Ping timeout: 255 seconds]
<rubie> yes no split!
<Stalkr_> crome: You are write, definitely thought it had. Then need to save to a new (or same) variable
<crome> Stalkr_: split returns an array, it wouldn't make any sense to change the original object to the return value of split since it is a whole new object, which happens to be also a different type
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Stalkr_> I guess that makes sense, thanks
OffTheRails has joined #ruby
<eval-in__> havenwood => 6 (https://eval.in/206417)
<havenwood> >> '42'.each_char.map(&:to_i).inject(:+)
wallerdev has joined #ruby
wallerdev has quit [Ping timeout: 255 seconds]
maasha has quit [Ping timeout: 246 seconds]
rodfersou has quit [Quit: leaving]
<rubie> haven aren't we doing the same thing, but mine is in two lines instead of one
mrsolo has quit [Quit: This computer has gone to sleep]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<crome> rubie: the problem we tried to point at is that you call split on sqrd but you don't save the return value of split
Synthead has joined #ruby
<rubie> ahh okay
<rubie> thankyou
<havenwood> rubie: chars is better than split(//)
<rubie> okay i will look at that, never seen chars before
<havenwood> rubie: (:+) is better than (0) { |sum, i| sum += i }
<havenwood> less to think about, faster
<havenwood> >> [1, 2, 3].inject :+
<eval-in__> havenwood => 6 (https://eval.in/206418)
<rubie> yes it is
<rubie> i'll try to get more comfortable with that
Haiiro|Away is now known as Haiiro
tourne has quit [Ping timeout: 260 seconds]
Pumukel has quit [Quit: ChatZilla 0.9.91 [Firefox 33.0/20141011015303]]
rkalfane has joined #ruby
<havenwood> and `&:to_i` instead of `{ |i| i.to_i }` is also faster, not that that'd matter particularly
sepp2k has joined #ruby
omosoj has joined #ruby
hamakn has joined #ruby
<rubie> hehehe okay
<havenwood> rubie: most importantly, name your variables nicely and don't have them lie about what they are!
p0sixpsc_ has quit [Quit: bye]
_whitelogger__ has quit [Ping timeout: 260 seconds]
omosoj has quit [Ping timeout: 255 seconds]
_whitelogger__ has joined #ruby
Affix has quit [Ping timeout: 260 seconds]
badhatter has quit [Read error: Connection reset by peer]
Lucky___ has joined #ruby
badhatter has joined #ruby
adac has joined #ruby
Affix has joined #ruby
ghr has joined #ruby
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 240 seconds]
DouglasCunha has quit [Quit: Fui embora]
ldnunes has quit [Quit: Leaving]
mary5030 has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
jheg has quit [Quit: jheg]
x1337807x has joined #ruby
x1337807x has joined #ruby
Pupeno has quit [Remote host closed the connection]
claymore has quit [Ping timeout: 250 seconds]
jacobat has quit [Ping timeout: 244 seconds]
bklane has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 255 seconds]
_whitelogger__ has quit [Excess Flood]
_whitelogger__ has joined #ruby
bklane has joined #ruby
jerius has quit []
claymore has joined #ruby
it0a has quit [Quit: WeeChat 1.0.1]
softaco_s has joined #ruby
fsapo has quit [Remote host closed the connection]
aspires has quit []
weemsledeux has joined #ruby
weemsledeux has joined #ruby
bklane has quit [Remote host closed the connection]
emocakes has joined #ruby
end_guy has quit [Ping timeout: 264 seconds]
bklane has joined #ruby
jimmyy has joined #ruby
aspires has joined #ruby
softaco_s has left #ruby [#ruby]
nb_bez___ has joined #ruby
end_guy has joined #ruby
jasooon has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
KC9YDN has joined #ruby
last_staff has quit [Quit: last_staff]
claymore has quit [Ping timeout: 265 seconds]
mary5030 has quit [Remote host closed the connection]
softaco_s has joined #ruby
skolman_ has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
Tuxero has joined #ruby
skolman_ has joined #ruby
claymore has joined #ruby
wallerdev has joined #ruby
GriffinHeart has joined #ruby
wallerdev has quit [Client Quit]
wallerdev has joined #ruby
patrick99e99 has joined #ruby
x77686d has quit [Quit: x77686d]
jasooon has quit [Ping timeout: 265 seconds]
Kricir has joined #ruby
Lewix has quit [Remote host closed the connection]
skolman_ has quit [Ping timeout: 255 seconds]
x77686d has joined #ruby
Joel has left #ruby ["Leaving"]
_whitelogger__ has joined #ruby
djbkd has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
omosoj has quit [Ping timeout: 240 seconds]
brahmadpk has quit [Quit: Textual IRC Client: www.textualapp.com]
kaspergrubbe has joined #ruby
doodlehaus has quit [Remote host closed the connection]
ocx has quit [Ping timeout: 246 seconds]
ajk1 has quit [Quit: Leaving.]
iamayam has quit [Ping timeout: 250 seconds]
omosoj has joined #ruby
OffTheRails has quit [Ping timeout: 258 seconds]
ursooperduper has quit [Quit: Textual IRC Client: www.textualapp.com]
jdj_dk has quit [Remote host closed the connection]
max96at is now known as max96at|off
djbkd has joined #ruby
<j2p2> inject?
b1nd has quit [Ping timeout: 255 seconds]
<j2p2> is that basically reduce then?
<wallerdev> yeah theyre aliases
<j2p2> gotcha, thanks
beef-wellington has quit [Ping timeout: 258 seconds]
levisbakalinsky is now known as levisbakalinsky|
aspires has quit []
Azure has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
[stringy] has quit [Remote host closed the connection]
[stringy] has joined #ruby
levisbakalinsky| has quit [Read error: Connection reset by peer]
iamayam has joined #ruby
livingstn has quit []
levisbakalinsky has joined #ruby
timonv_ has joined #ruby
geggam has quit [Remote host closed the connection]
hmsimha has quit [Ping timeout: 258 seconds]
skolman_ has joined #ruby
tiguser has quit [Ping timeout: 250 seconds]
KC9YDN has quit [Quit: Windows 8.1 LoL]
sysTemz-_ has joined #ruby
tiguser has joined #ruby
x1337807x has joined #ruby
klaut_ has joined #ruby
pandaant has quit [Remote host closed the connection]
klaut has quit [Ping timeout: 258 seconds]
_whitelogger__ has quit [Excess Flood]
_whitelogger__ has joined #ruby
nanoyak has joined #ruby
aspires has joined #ruby
monkeypatch has joined #ruby
timonv_ has quit [Ping timeout: 255 seconds]
_whitelogger__ has joined #ruby
Notte has quit [Remote host closed the connection]
geggam has joined #ruby
b1nd has joined #ruby
claymore has quit [Ping timeout: 272 seconds]
VictorVR has quit [Quit: CyberScript - já pegou o seu? (www.cyberscript.org)]
iamjarvo has joined #ruby
drPoggs has quit [Ping timeout: 260 seconds]
drPoggs has joined #ruby
sailias has quit [Quit: Leaving.]
claymore has joined #ruby
St_Marx has joined #ruby
_whitelogger__ has joined #ruby
gvenkat has quit [Quit: This computer has gone to sleep]
kiely has joined #ruby
ki0 has quit [Remote host closed the connection]
badhatter has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
sysTemz-_ has quit [Quit: oooooh]
emocakes has quit []
sysTemz- has joined #ruby
klmlfl has quit [Ping timeout: 260 seconds]
freerobby has quit [Quit: Leaving.]
_whitelogger__ has quit [Excess Flood]
_whitelogger__ has joined #ruby
adac has quit [Ping timeout: 260 seconds]
kantakt has quit []
crunk_bear has joined #ruby
startupality has joined #ruby
jheg has joined #ruby
flute_booth has quit [Read error: Connection reset by peer]
rubie has quit [Quit: Page closed]
crunk_bear has quit [Client Quit]
b1nd has quit [Ping timeout: 260 seconds]
claymore has quit [Quit: Leaving]
baash05 has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
<baash05> Can someone here tell me how to join the rubyonrails channel?
geggam has quit [Remote host closed the connection]
RaCx_ has joined #ruby
sysTemz- has quit [Quit: oooooh]
mary5030 has quit [Remote host closed the connection]
ocx has joined #ruby
jheg has quit [Client Quit]
qmfnp has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 265 seconds]
RaCx_ is now known as RaCx
spyderman4g63 has joined #ruby
<ocx> crome: File.open('/vaml', 'w+') { |f| params.to_a.each { |param| f.puts param.to_yaml } } <-- this writes key on a line and value on another line :/
aspires has quit []
<crome> >> [1, 2].to_yaml
<eval-in__> crome => undefined method `to_yaml' for [1, 2]:Array (NoMethodError) ... (https://eval.in/206423)
<crome> >> require 'yaml'; [1, 2].to_yaml
<eval-in__> crome => "---\n- 1\n- 2\n" (https://eval.in/206424)
<crome> ocx: are you sure you want to use yaml?
<crome> have you even checked what an array in yaml looks like?
<ocx> i wanted to go back in log to see what u suggested, but my connection is poort and i lost it
iamayam has quit [Ping timeout: 272 seconds]
_shrine has joined #ruby
kaspertidemann has quit []
iamayam has joined #ruby
geggam has joined #ruby
<ocx> crome: can you paste?
spyderman4g63 has quit [Ping timeout: 255 seconds]
<baash05> <ocx> consider json.. yaml is dependant on which version of the yamlizer you using.
<baash05> the file is not portable.. sending it to another ruby app might not be as smooth as you'd like.
aspires has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
rbrs has quit [Remote host closed the connection]
lektricity has joined #ruby
Pupeno has joined #ruby
_cake has quit [Ping timeout: 260 seconds]
_whitelogger__ has joined #ruby
Alina-malina has joined #ruby
jdj_dk has joined #ruby
iamayam has quit [Ping timeout: 245 seconds]
Haiiro is now known as Haiiro|Away
aspires has quit [Client Quit]
monkeypatch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<crome> baash05: do you mean /join #rubyonrails does not work?
Pupeno_ has joined #ruby
yfeldblum has joined #ruby
<crome> baash05: I think it secretly hinted at the solution
aspires has joined #ruby
<_ylliad> hi
<[stringy]> you have to register your nickname
ghr has joined #ruby
_ylliad has joined #ruby
<crome> what did it do instead?
<[stringy]> msg NickServ identify PASSWORD
last_staff has joined #ruby
<baash05> It bumps me because I'm not registered.
jthomp has quit [Quit: Textual IRC Client: www.textualapp.com]
Azure has joined #ruby
<Tuxero> hello o/
<baash05> that didn't do it.
<wallerdev> hmm interesting
Channel6 has joined #ruby
lektrik has quit [Ping timeout: 260 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
lektricity has quit [Ping timeout: 260 seconds]
Pupeno has quit [Ping timeout: 265 seconds]
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baash05> No.. untill a few seconds ago I'd never considered registering my nic.
<[stringy]> then you can't join that channel :(
_whitelogger__ has joined #ruby
<crome> so you knew you had to register but you didn't want to but you kept asking how to join the channel. correct?
<baash05> I started the registration.
<baash05> I didn't know I had to register.. I didn't know how to register either.
jbueza has joined #ruby
timonv_ has joined #ruby
jbueza has quit [Read error: Connection reset by peer]
<ocx> crome: should i wait or ?
goodenough has joined #ruby
<baash05> I'm not a frequent IRC guy..
<crome> ocx: no, you should definitely not wait. yo should figure out what you want to do and do a bit of reading
<[stringy]> baash05: look up nickserv register
bMalum has quit [Quit: bMalum]
<baash05> I only started a while ago.. when I managed to get work to let me use linux.
geggam has quit [Remote host closed the connection]
<zwischenzug> hello. i'm trying to split a string into equal length blocks. something like "teststringgoesboom".split(/.{4}/) => ["test","string","goes","boom"]. can i use split to do this?
geggam__ has joined #ruby
<[stringy]> baash05: once you register, you can identify, then join
dorei has quit []
<baash05> Yeah.. I have to wait..
<baash05> :)
ghr has quit [Ping timeout: 255 seconds]
<ocx> crome: why teasing me? paste me what u suggested
iamayam has joined #ruby
<crome> 21:34:46 < crome> you could do something like File.open('somefile', 'w+') { |f| params.to_a.each { |param| f.puts param.join('=') } }
<ocx> thanks
<baash05> zwischenzug: that's not split into equal parts.
JoshGlzBrk has joined #ruby
<zwischenzug> baash05, yea, i just realized that
<baash05> the word string has 6 letters
stormy3 is now known as stormy98
msmith__ has quit [Remote host closed the connection]
<baash05> does each_slice work with strings?
<zwischenzug> so....."teststringgoesboom".split(/.{4}/) => ["test","stri","nggo","esbo", "om"]
<crome> zwischenzug: check each_slice and related methods in Enumerable
<apeiros> >> "teststringgoesboom".scan(/.{4}/)
<eval-in__> apeiros => ["test", "stri", "nggo", "esbo"] (https://eval.in/206427)
Asher has joined #ruby
<apeiros> >> "teststringgoesboom".scan(/.{1,4}/)
geggam__ has quit [Remote host closed the connection]
<eval-in__> apeiros => ["test", "stri", "nggo", "esbo", "om"] (https://eval.in/206428)
<apeiros> but as you can see, it requires a correctly sized string
BTRE has quit [Ping timeout: 260 seconds]
<apeiros> also note: . without the m flag won't match newlines
<apeiros> >> "te\nststringgoesboom".scan(/.{1,4}/)
<eval-in__> apeiros => ["te", "stst", "ring", "goes", "boom"] (https://eval.in/206429)
<apeiros> vs.:
<apeiros> >> "te\nststringgoesboom".scan(/.{1,4}/m)
<eval-in__> apeiros => ["te\ns", "tstr", "ingg", "oesb", "oom"] (https://eval.in/206430)
<zwischenzug> apeiros, perfect. thanks
<apeiros> yw
<baash05> "te\nststringgoesboom".scan(/.{1,4}/) SyntaxError: unexpected tIDENTIFIER, expecting end-of-input "te\nststringgoesboom".scan(/.{1,4}/)
<ocx> crome: how did your code know to skip lines?
Blizzy has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
coderdad_ has quit [Remote host closed the connection]
SpaceKookie has quit [Ping timeout: 260 seconds]
<crome> um
<crome> it doesn't skip any lines
<baash05> each_slice doesn't work either..
iamayam has quit [Ping timeout: 272 seconds]
tiguser has quit [Ping timeout: 260 seconds]
<crome> baash05: not on the string but on string.chars for example
* apeiros wants a smack bot, which smacks people every time they say "X does not work"
tiguser has joined #ruby
top4o has quit [Quit: ChatZilla 0.9.91 [Firefox 32.0.3/20140923175406]]
Wolland_ has joined #ruby
SpaceKookie has joined #ruby
beowuff has joined #ruby
treehug88 has quit []
<last_staff> the program I'm trying to make is not working. What do I do?
_whitelogger__ has joined #ruby
<apeiros> last_staff: you fix it
<crome> change the faulty lines of code to correct ones
anaeem1_ has quit [Remote host closed the connection]
<[stringy]> na na na, you have to apply for government assistance
<apeiros> you can also opt to just give up and throw it away
Kricir has quit [Remote host closed the connection]
<ocx> crome: how this f.puts combines 2 by line and returned \n
Kricir has joined #ruby
<last_staff> apeiros: Heh, that _would_ be cool; to literally crumble together code and actually throwing it away
<apeiros> last_staff: there's this new invention, it's called "printers" :-p
Wolland has quit [Ping timeout: 272 seconds]
<last_staff> (;-.-) .....you got me
monkeypatch has joined #ruby
fabrice31 has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
<last_staff> but seriously: Hologram instead of a screen, put your hand in, then start crumbling away
<ocx> crome: i am finding hard time understand your code
blackmes1 has joined #ruby
<crome> ocx: break it down and see what the different parts do
ad_boot has quit [Quit: ad_boot]
wallerdev_ has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
djstorm has quit [Ping timeout: 260 seconds]
wallerdev has quit [Ping timeout: 260 seconds]
wallerdev_ is now known as wallerdev
<ocx> crome: for example ?name=test&age=20 ; in this case param = name for each l then param is test ; then it is age then 20 ; how did you combine name=test in your code it is really smart but not understandable for me
Kricir has quit [Ping timeout: 255 seconds]
jobewan has quit [Quit: Leaving]
<ocx> the join worked on the first 2
aspires has quit []
Lucky__ has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
<ocx> why didnt it go name=test=age=20
Zesty has joined #ruby
aspires has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renderful has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
fabrice31 has quit [Ping timeout: 272 seconds]
ocx has quit [Quit: Page closed]
<crome> because param is ['name', 'test'] in the first iteration, ['age', '20'] in the second. join('=') then turns them into 'name=test' and 'age=20'
a_ has joined #ruby
lw has joined #ruby
Kricir has joined #ruby
tiguser has quit [Ping timeout: 260 seconds]
Takle has joined #ruby
<crome> which are, btw, the entries in your params hash
renderful has quit [Remote host closed the connection]
tiguser has joined #ruby
[stringy] has quit []
jottr has joined #ruby
djbkd has quit [Remote host closed the connection]
nonks has quit [Ping timeout: 260 seconds]
MeMoCooL has joined #ruby
pu22l3r has joined #ruby
timonv_ has quit [Ping timeout: 250 seconds]
twohlix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
tiguser has quit [Ping timeout: 272 seconds]
KC9YDN has joined #ruby
jdj_dk has quit [Ping timeout: 250 seconds]
tiguser has joined #ruby
blackmes1 has quit [Ping timeout: 265 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
startupality has quit [Quit: startupality]
* Zesty can someone please help me with this? this is driving me so insane.. http://pastie.org/private/4z6u8dzik1rvalwr0cykq
<Zesty> this works in my rails app for new users... then randomly it will fail on TOTP.config returning nil
<Zesty> i cant see any problems with my code
renderful has joined #ruby
<Zesty> i fuond someone on SO who i think may hvae the same problem, but the chosen answer doesnt have any reason
badhatter has joined #ruby
badhatter has joined #ruby
tier has joined #ruby
BTRE has joined #ruby
ki0 has joined #ruby
renderful has quit [Remote host closed the connection]
{xenomorph} has quit [Ping timeout: 260 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
_whitelogger__ has quit [Excess Flood]
_whitelogger__ has joined #ruby
Kricir has quit [Remote host closed the connection]
<baash05> Ha ha..
<baash05> x = "te\nststringgoesboom".chars.each_slice(4).map(&:join)
last_staff has quit [Quit: last_staff]
goodenough has quit [Remote host closed the connection]
tanema has joined #ruby
<baash05> ugly.. but it works
tanema has quit [Remote host closed the connection]
Kricir has joined #ruby
tanema has joined #ruby
davidpk has joined #ruby
{xenomorph} has joined #ruby
<apeiros> baash05: scan is more efficient
Wolland_ has quit [Remote host closed the connection]
<baash05> but it doesn't seem to catch the pre \n characters
SCHAAP137 has quit [Remote host closed the connection]
<baash05> x = "te\nststringgoesboom".scan(/(....)/)
AlSquire has joined #ruby
<apeiros> I told you to use the m flag. I even showed you how to.
andrewlio has quit [Quit: Leaving.]
emmesswhy has quit [Quit: This computer has gone to sleep]
pu22l3r has quit [Remote host closed the connection]
aspires has quit []
<baash05> Oh.. must have missed it..
beowuff has quit [Quit: leaving]
<apeiros> I'd reread all four examples then.
spyderman4g63 has joined #ruby
<apeiros> I explained all minutiae
timmmaaaayyy has joined #ruby
MuffinPimp has joined #ruby
i_s has quit [Remote host closed the connection]
stantona has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
<baash05> Ah.. it drifted too high.
nanoyak has joined #ruby
<baash05> cool
<banisterfiend> apeiros wassup my swiss homie
emmesswhy has joined #ruby
JoshGlzBrk has quit [Read error: Connection reset by peer]
softaco_s has quit [Remote host closed the connection]
emmesswhy has quit [Client Quit]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> banisterfiend: not much, what are you up to?
<baash05> x = "te\nststringgoesboom".scan(/(....)/m).flatten
<baash05> cool.
<apeiros> baash05: um, why? just drop the () and then you don't need flatten
<baash05> Oh.. true.
<baash05> I'm not to hot with regex.
phutchins has quit [Ping timeout: 265 seconds]
<banisterfiend> apeiros watching deer hunter
<apeiros> also .... --> .{4}. requires precisely 4 chars. which is where I said that it needs a precisely fitting string. .{1,4} instead of .{4} changes that.
jdj_dk has joined #ruby
lw has quit [Quit: s]
tiguser has quit [Quit: ZNC - http://znc.in]
tier has quit [Remote host closed the connection]
<baash05> they never come up at work.
tiguser has joined #ruby
<banisterfiend> apeiros ?
<banisterfiend> oh :)
<apeiros> my head. diving into a pillow.
<apeiros> ;-)
<apeiros> banisterfiend: I'm soon watching pillow diver ;-)
agjacome has quit [Quit: leaving]
rkalfane has joined #ruby
<banisterfiend> apeiros btw do u have a wii u?
_whitelogger__ has quit [Excess Flood]
_whitelogger__ has joined #ruby
<banisterfiend> awesome, i'm looking for someone to play in mario kart
<banisterfiend> mk8 is incredible, though without any friends to play against it's getting pretty old fast..
mekhami has joined #ruby
davidpk has quit [Quit: Ceci n'est pas une broken pipe.]
<banisterfiend> battle is lame in mk8
<banisterfiend> race
<apeiros> sure
<a_> battle got progressively worse since N64
<banisterfiend> if you're interested, ping me :)
<apeiros> I can imagine
<mekhami> hey dudes. i'm running into optimization problems in a method which is creating a few thousand hashes. this is the method in question: https://gist.github.com/mekhami/fbb585f3c69982ad13c4
blackmes1 has joined #ruby
<apeiros> heh
<apeiros> race or battle?
<apeiros> but I'm not good in the new one (yet)
<apeiros> I only ever liked battle in SNES MK
<apeiros> just played MK8 today
<apeiros> but there it was awesome
_whitelogger__ has joined #ruby
<a_> oh i didn't know snes even had battle
<banisterfiend> it was pretty good in double dash too, but now they have no specialist battle arenas
<apeiros> not sure how nintendo failed to reproduce the awesomeness of snes mk battle
<mekhami> but that block in the middle takes over half a second to execute
Zesty has quit [Quit: Linkinus - http://linkinus.com]
<mekhami> and that's becoming problematic
<banisterfiend> apeiros what other games do u have for wii u?
<banisterfiend> it's just the normal tracks, which sucks
<mekhami> listeners is a long list of area codes, in this case about 1100 area codes. it returns state, area code, latitude, and longitude value for those area codes
<apeiros> banisterfiend: only wind waker. I just bought it recently.
_ylliad has left #ruby [#ruby]
<mekhami> yes
<banisterfiend> i can't get into pikmin 3 for some reason
<apeiros> mekhami: AreaCodes an AR model?
<a_> mekhami: how are you measuring what's taking so long?
<banisterfiend> apeiros ah ok, i have pikmin 3, but i really wanna get super mario 3d world
samuelkadolph has quit [Quit: Quitting]
_whitelogger__ has quit [Excess Flood]
_whitelogger__ has joined #ruby
<apeiros> mekhami: read http://brainspec.com/blog/2012/09/28/lightning-json-in-rails/ - some parts might be outdated, but still relevant.
<apeiros> mekhami: also if you're using pg or another sufficiently advanced db, consider transforming the data to json in the db directly. alternatively, store json partials in the db if that's a common task.
<mekhami> a_ did benchmarking?
<apeiros> banisterfiend: sidekiq
Scotteh_ has joined #ruby
<banisterfiend> apeiros but not using it for anything where it's not just an implementation detail?
<banisterfiend> apeiros btw have you used redis for anything in production?
<mekhami> apeiros, unfortunately using MySQL
djbkd has quit [Remote host closed the connection]
<a_> mekhami: yes, was wondering how
<apeiros> but our queue does not have lots to do, so I ponder switching to a pg based.
afhammad has joined #ruby
<apeiros> banisterfiend: no, nothing where we explicitly wanted redis.
djbkd has joined #ruby
<apeiros> we don't have the loads where it'd become interesting
<apeiros> so our emphasis is on ease of maintenance, limiting complexity. hence pondering to switch to a pg based queue. we already use pg and I intend to replace all db related stuff with pg -> one db we have to know how to deal with instead of the current 5
<banisterfiend> 5, heh
<mekhami> thanks apeiros
<apeiros> banisterfiend: so you can't recommend pikmin?
<mekhami> that link is great i'll work on that
Scotteh has quit [Ping timeout: 260 seconds]
nonks has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<banisterfiend> apeiros i guess i can, it's a personal failing that i can't get into it
AlexRussia has joined #ruby
<apeiros> banisterfiend: ok. because I considered buying it :)
<apeiros> sm3d world i want to buy too
<banisterfiend> i like to play it on the game pad, and unfortunately the resolution on that thing is pretty crappy
<banisterfiend> i wish it was a little better
aspires has quit []
<banisterfiend> how long have you had your wii u?
<DLSteve> I have never played pikmin
<apeiros> 2 or 3 weeks I think
jottr has quit [Ping timeout: 272 seconds]
<banisterfiend> apeiros haha, me too
boombadaroomba has quit [Remote host closed the connection]
<DLSteve> I got the Wii U on launch :-(
<apeiros> banisterfiend: nice :) so I still have a chance to beat you in mk8. I might be up for a game tomorrow (I'm still in holidays, but this week at home)
<DLSteve> Should have waited.
_whitelogger__ has joined #ruby
_whitelogger__ has joined #ruby
ad_boot has joined #ruby
echevemaster has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thsig has quit [Remote host closed the connection]
* apeiros is not sure whether the diff is only 8x for his gaming pc 0:-)
<DLSteve> banisterfiend, but you can always justify a PC for other things :-D
mark06 has joined #ruby
ghr has joined #ruby
<apeiros> anyway, time for me to go to bed. n8 boys & girls
thsig has joined #ruby
devdazed has joined #ruby
<mark06> hi all, I published a gem yesterday and it has ~80 downloads already, why? I couldn't find anything like a new gems feed or something in rubygems.org
lw has joined #ruby
<banisterfiend> i have a laptop that works for everything except gaming
monkeypatch has joined #ruby
<banisterfiend> DLSteve like what? :)
mordocai has joined #ruby
ashdr0 has joined #ruby
softaco_s has joined #ruby
oinkon has quit [Ping timeout: 260 seconds]
_whitelogger__ has quit [Excess Flood]
_whitelogger__ has joined #ruby
<banisterfiend> DLSteve do u have a rift?
<DLSteve> well I justified it to myself by geting into 3D work and video as a hobby. Maybe some extra income down the road. With the Unity/UE4 asset stores you can make some good money just by modeling stuff or writing plug-ins.
emmesswhy has joined #ruby
nonks has joined #ruby
kobain has quit [Read error: Connection timed out]
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
_whitelogger__ has joined #ruby
thsig has quit [Ping timeout: 250 seconds]
<DLSteve> banisterfiend, Not yet, I would like to get one though to mess around. I'd like to try one first as I'm partially blind in one eye so I get motion sick easy.
ghr has quit [Ping timeout: 260 seconds]
kobain has joined #ruby
mek_ has joined #ruby
mekhami has quit [Disconnected by services]
mek_ is now known as mekhami
matchaw has quit [Remote host closed the connection]
Pupeno_ has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
kobain has joined #ruby
mg^ has quit [Quit: Leaving]
matchaw has joined #ruby
tiguser has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
Pupeno has joined #ruby
tiguser has quit [Ping timeout: 240 seconds]
kobain has quit [Max SendQ exceeded]
nonks has quit [Ping timeout: 240 seconds]
_whitelogger__ has quit [Excess Flood]
_whitelogger__ has joined #ruby
<davidcelis> https://github.com/bundler/bundler/issues/3216 cool story bundler
jasooon has joined #ruby
Pupeno has quit [Ping timeout: 260 seconds]
DLSteve has quit [Quit: Leaving]
oleo__ has joined #ruby
oleo is now known as Guest36041
msmith_ has joined #ruby
bmurt has joined #ruby
livingstn has joined #ruby
bmurt has quit [Max SendQ exceeded]
Guest36041 has quit [Ping timeout: 240 seconds]
jasooon has quit [Ping timeout: 240 seconds]
mekhami has quit [Ping timeout: 240 seconds]
cndiv has quit [Ping timeout: 255 seconds]
kobain has quit [Max SendQ exceeded]
Smujo has quit [Ping timeout: 244 seconds]
jottr has joined #ruby
ramfjord has joined #ruby
doug1 has quit [Ping timeout: 272 seconds]
_whitelogger__ has quit [Excess Flood]
Lewix has quit [Remote host closed the connection]
Mia has quit [Read error: Connection reset by peer]
_whitelogger__ has joined #ruby
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
mark06 has joined #ruby
kobain has joined #ruby
msmith_ has quit [Remote host closed the connection]
dx7_ has joined #ruby
kobain has quit [Max SendQ exceeded]
Eiam has joined #ruby
tiguser has quit [Ping timeout: 260 seconds]
kobain has joined #ruby
jordsmi has joined #ruby
aspires has joined #ruby
dx7 has quit [Ping timeout: 258 seconds]
jottr has quit [Ping timeout: 255 seconds]
RaCx has quit [Ping timeout: 272 seconds]
RaCx_ has joined #ruby
stunder has quit [Quit: Screw you guys I'm going home]
kobain has quit [Max SendQ exceeded]
nb_bez___ has quit [Quit: Connection closed for inactivity]
kobain has joined #ruby
dx7_ has quit [Ping timeout: 244 seconds]
tiguser has joined #ruby
goodenough has joined #ruby
lw has quit [Quit: s]
Spami has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
doodlehaus has joined #ruby
kobain has joined #ruby
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
ph8 has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby
kobain has quit [Max SendQ exceeded]
Kricir_ has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
tylersmith has quit [Remote host closed the connection]
xvq17 has quit [Ping timeout: 245 seconds]
aquatty has quit [Ping timeout: 244 seconds]
kobain has joined #ruby
mekhami has joined #ruby
tiguser has quit [Ping timeout: 240 seconds]
cndiv has joined #ruby
xvq17 has joined #ruby
<totimkopf> http://pastebin.com/yxvju422 am I missing anything here? getting NameObject error...I've copied it from The Well-grounded Rubyist book, too :S
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
aquatty has joined #ruby
Tuxero has left #ruby [#ruby]
<shevy> davidcelis bundler loves some gems more than others so this is why it has to repeat its loved family
marr has quit [Ping timeout: 272 seconds]
<davidcelis> oh
larissa has joined #ruby
nonks has joined #ruby
lw has joined #ruby
mikecmpbll has quit [Quit: ciao.]
<shevy> ;P
<shevy> it's funny that it repeats some lines without versions
Wolland has joined #ruby
goodenough has quit [Remote host closed the connection]
<shevy> and then adds some more lines with versions
_whitelogger__ has quit [Excess Flood]
_whitelogger__ has joined #ruby
goodenough has joined #ruby
ph8 has joined #ruby
x77686d has quit [Quit: x77686d]
Wolland has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
j_mcnally has quit [Ping timeout: 245 seconds]
oinkon has joined #ruby
drPoggs has quit [Ping timeout: 260 seconds]
drPoggs has joined #ruby
VanillaGoat__ has joined #ruby
alexherbo2 has quit [Ping timeout: 272 seconds]
goodenough has quit [Ping timeout: 272 seconds]
Wolland has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #ruby