havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
<aspiers> hah! yeah, it works, and very nicely too
<postmodern> aspiers, i believe so yes
Silox| has quit [Quit: Connection closed for inactivity]
<aspiers> when handling conflicts, would be nice if it let you do a manual merge
Devalo has joined #ruby
bry4n_ has joined #ruby
<postmodern> aspiers, that's an option, i believe e
<aspiers> couldn't see it
<aspiers> [Ynaqdh]
<aspiers> d for diff was the closest
Renich has quit [Quit: leaving]
marcdel has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
gnufied has quit [Quit: Leaving]
jgpawletko has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
marcdel has quit [Ping timeout: 260 seconds]
djbkd_ has joined #ruby
Amnez777 has quit [Ping timeout: 264 seconds]
whathappens has quit [Remote host closed the connection]
aeontech has quit [Quit: aeontech]
Amnez777 has joined #ruby
djbkd_ has quit [Ping timeout: 244 seconds]
<aspiers> postmodern: sent a PR
Alayde has quit [Ping timeout: 250 seconds]
jenrzzz_ has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
rake_db_migrate has joined #ruby
yohle has joined #ruby
yohle has quit [Client Quit]
yohle has joined #ruby
jorum has joined #ruby
shmuli has quit [Remote host closed the connection]
tax has quit [Ping timeout: 240 seconds]
rake_db_migrate has quit [Ping timeout: 264 seconds]
yohle has quit [Client Quit]
Snowy has quit [Remote host closed the connection]
yohle has joined #ruby
entropie has quit [Excess Flood]
entropie has joined #ruby
jorum has quit [Ping timeout: 264 seconds]
yohle has quit [Client Quit]
agentmeerkat has joined #ruby
dravine has quit [Read error: Connection reset by peer]
dravine has joined #ruby
shmuli has joined #ruby
LaT0rtue_ has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 260 seconds]
LaT0rtue has quit [Ping timeout: 244 seconds]
GodFather has joined #ruby
symm- has quit [Ping timeout: 248 seconds]
agentmeerkat has quit [Ping timeout: 244 seconds]
agentmeerkat has joined #ruby
jgpawletko has left #ruby [#ruby]
rcvalle has quit [Quit: rcvalle]
_blizzy_ has quit [Quit: Leaving]
baweaver has quit [Remote host closed the connection]
marr has quit [Ping timeout: 244 seconds]
aeontech has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
jt__ has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
OTORelic2 has quit [Ping timeout: 268 seconds]
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
devbug has joined #ruby
nettoweb has joined #ruby
aibot has quit [Remote host closed the connection]
agentmeerkat has quit [Ping timeout: 244 seconds]
aibot has joined #ruby
Zai00 has quit [Quit: Zai00]
agentmeerkat has joined #ruby
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
smathy has joined #ruby
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
Musashi007 has joined #ruby
mistermocha has joined #ruby
n008f4g_ has quit [Ping timeout: 244 seconds]
ramfjord has joined #ruby
agentmeerkat has quit [Ping timeout: 240 seconds]
mistermocha has quit [Remote host closed the connection]
agentmeerkat has joined #ruby
elifoster has quit [Ping timeout: 260 seconds]
alexherbo2 has quit [Ping timeout: 264 seconds]
crank1988 has quit [Ping timeout: 276 seconds]
alexherbo2 has joined #ruby
crank1988 has joined #ruby
mistermocha has joined #ruby
devbug has quit [Read error: Connection reset by peer]
AnoHito_ has quit [Quit: Leaving]
agentmeerkat has quit [Ping timeout: 252 seconds]
mistermocha has quit [Ping timeout: 248 seconds]
LaT0rtue_ has quit [Ping timeout: 240 seconds]
agentmeerkat has joined #ruby
Musashi007 has quit [Quit: Musashi007]
brent_ has quit [Quit: Connection closed for inactivity]
marcdel has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
pifon has joined #ruby
<darix> omg it is aspiers
<aspiers> :)
cdg has quit [Remote host closed the connection]
marcdel has quit [Ping timeout: 240 seconds]
djbkd_ has joined #ruby
godzillaenlacasa has quit [Quit: Peace Out Peeps!]
ekinmur has joined #ruby
agentmeerkat has quit [Ping timeout: 252 seconds]
agentmeerkat has joined #ruby
agent_white has quit [Quit: leavinwork]
djbkd_ has quit [Ping timeout: 264 seconds]
gh has joined #ruby
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
mistermocha has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Phanes has joined #ruby
neanderslob has quit [Ping timeout: 252 seconds]
ur5us has quit [Remote host closed the connection]
B1n4r10 has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
AnoHito has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
magikid has quit [Quit: Leaving.]
agentmeerkat has quit [Ping timeout: 276 seconds]
agentmeerkat has joined #ruby
GodFather has joined #ruby
jorum has joined #ruby
spikeheadon has quit [Ping timeout: 244 seconds]
Ropeney has joined #ruby
rubie has quit [Remote host closed the connection]
diego2 has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
diegoviola has quit [Ping timeout: 250 seconds]
jorum has quit [Ping timeout: 264 seconds]
pifon has quit [Quit: Leaving]
duckpuppy has joined #ruby
grill has joined #ruby
ericlee has quit [Ping timeout: 248 seconds]
agentmeerkat has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Remote host closed the connection]
vdamewood has quit [Quit: Life beckons.]
gh has quit [Quit: Leaving]
duckpuppy has quit [Ping timeout: 244 seconds]
bkxd has joined #ruby
sami has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
GnuYawk has joined #ruby
GnuYawk has quit [Changing host]
GnuYawk has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
agentmeerkat has joined #ruby
deadlock has joined #ruby
houhoulis has quit [Remote host closed the connection]
torandu has joined #ruby
myntcake has quit [Ping timeout: 252 seconds]
x77686d has quit [Quit: x77686d]
mistermocha has quit [Remote host closed the connection]
crazydiamond has quit [Ping timeout: 246 seconds]
Musashi007 has quit [Quit: Musashi007]
B1n4r10 has joined #ruby
B1n4r10 has quit [Client Quit]
smathy has joined #ruby
aeontech has quit [Quit: aeontech]
rbennacer has joined #ruby
zapata has quit [Ping timeout: 260 seconds]
belkins has joined #ruby
A124 has quit [Read error: Connection reset by peer]
Digpig has joined #ruby
rbennacer has quit [Remote host closed the connection]
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
numdig has joined #ruby
sami has joined #ruby
marcdel has joined #ruby
A124 has joined #ruby
rbennacer has joined #ruby
araujo has quit [Ping timeout: 244 seconds]
araujo has joined #ruby
dstarh has joined #ruby
zapata has joined #ruby
marcdel has quit [Ping timeout: 276 seconds]
numdig has left #ruby ["I'm a happy Miranda IM user! Get it here: http://miranda-im.org"]
dvinciguerra__ has quit [Ping timeout: 264 seconds]
djbkd_ has joined #ruby
tvon has quit [Remote host closed the connection]
tvon has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
barajasfab has joined #ruby
karmatr0n has quit [Ping timeout: 264 seconds]
ensyde__ has joined #ruby
Xiti has quit [Quit: Xiti]
crank1988 has quit [Ping timeout: 268 seconds]
djbkd_ has quit [Ping timeout: 244 seconds]
HouseMD has joined #ruby
ensyde_ has quit [Ping timeout: 268 seconds]
Rickmasta has quit [Ping timeout: 268 seconds]
ekinmur_ has joined #ruby
hooinator has quit [Ping timeout: 268 seconds]
r4z3r has quit [Max SendQ exceeded]
neanderslob_ has joined #ruby
swills has quit [Ping timeout: 250 seconds]
r4z3r has joined #ruby
Rickmasta has joined #ruby
ekinmur has quit [Ping timeout: 250 seconds]
diego2 has quit [Quit: WeeChat 1.4]
tristanp has quit [Ping timeout: 250 seconds]
crank1988 has joined #ruby
HouseMD is now known as GG
FooMunki has quit [Quit: FooMunki]
r4z3r has quit [Max SendQ exceeded]
tristanp has joined #ruby
r4z3r has joined #ruby
greenride has left #ruby [#ruby]
shmuli has quit [Ping timeout: 250 seconds]
swills has joined #ruby
jorum has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
deadlock has quit [Quit: Saindo]
Chagel has joined #ruby
cdg has joined #ruby
shmuli_ has joined #ruby
jorum has quit [Ping timeout: 244 seconds]
neanderslob_ has quit [Ping timeout: 248 seconds]
LuckyABA has joined #ruby
Luna_Moonfang has quit [Ping timeout: 250 seconds]
LuckyABA has quit [Client Quit]
duckpuppy has joined #ruby
smathy has joined #ruby
bronson has joined #ruby
CausaMortis has quit [Ping timeout: 248 seconds]
duckpuppy has quit [Ping timeout: 276 seconds]
sdwrage has joined #ruby
Vile` has quit [Ping timeout: 244 seconds]
cpup has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 248 seconds]
yqt has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
Luna_Moonfang has joined #ruby
cpup has joined #ruby
wolffles has quit [Quit: wolffles]
mhoungbo has quit [Ping timeout: 268 seconds]
belkins has quit [Quit: What is gone today, may still be gone tomorrow]
mhoungbo has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xiti has joined #ruby
tildes has joined #ruby
p0p0pr37 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
shmuli_ has quit [Remote host closed the connection]
p0p0pr37 has joined #ruby
solocshaw has joined #ruby
crameth has joined #ruby
rubie has joined #ruby
wsk has joined #ruby
joaumg has quit [Changing host]
joaumg has joined #ruby
Chagel_ has joined #ruby
jenrzzz has joined #ruby
Chagel has quit [Ping timeout: 248 seconds]
Chagel_ has quit [Remote host closed the connection]
Chagel has joined #ruby
shmuli has joined #ruby
mistermocha has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
Chagel has quit [Remote host closed the connection]
Djole has quit [Remote host closed the connection]
tax has joined #ruby
mistermocha has quit [Ping timeout: 268 seconds]
Chagel has joined #ruby
chipotle has joined #ruby
kam270 has quit [Ping timeout: 244 seconds]
PaulCape_ has joined #ruby
marcdel has joined #ruby
braincrash has quit [Quit: bye bye]
jenrzzz has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Ping timeout: 260 seconds]
_djbkd has quit [Quit: My people need me...]
zast has joined #ruby
marcdel has quit [Ping timeout: 250 seconds]
djbkd_ has joined #ruby
ekinmur_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
chipotle has quit [Quit: cheerio]
chipotle has joined #ruby
djbkd_ has quit [Ping timeout: 248 seconds]
braincras has joined #ruby
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
nodejunkie has joined #ruby
astrobunny has joined #ruby
Chagel has quit [Remote host closed the connection]
jorum has joined #ruby
<A124> Is there anything wrong with this, when using it on queue and callback proc 'cb'? q.pop &cb
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
cpruitt has joined #ruby
chipotle has quit [Quit: cheerio]
<benzrf> A124: does pop take a callback
limon_ has joined #ruby
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
limon_ is now known as limono7
gix has quit [Ping timeout: 240 seconds]
Chagel has joined #ruby
<A124> benzrf, well it is everywhere on net with EventMachine examples, but Rubocop warns me about Ambiguous block operator. Parenthesize the method arguments if it's surely a block operator, or add a whitespace to the right of the `&` if it should be a binary AND. (Lint/AmbiguousOperator)at line 22 col 11
<A124> If I add () it yells with error, so got confused
bruno- has quit [Read error: Connection reset by peer]
jorum has quit [Ping timeout: 248 seconds]
tmtwd has joined #ruby
gix has joined #ruby
OTORelic2 has joined #ruby
<benzrf> oh
<benzrf> it means, like
<benzrf> wait no
<A124> Trying to make EM client that does work on itself as well as takes user input, no luck on keyboard so far.
<benzrf> hmm, odd
<A124> Did not use the actuall snippet, I should try though.
pifon has joined #ruby
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
bkxd has joined #ruby
OTORelic2 has quit [Ping timeout: 268 seconds]
cdg has quit [Remote host closed the connection]
AnoHito has quit [Quit: Leaving]
chipotle has joined #ruby
snoobydoo has joined #ruby
wsk has quit [Quit: Leaving]
bkxd has quit [Ping timeout: 268 seconds]
AnoHito has joined #ruby
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Yeomra has quit [Ping timeout: 276 seconds]
snoobydo1 has joined #ruby
shinnya has quit [Ping timeout: 244 seconds]
dvinciguerra__ has joined #ruby
snoobydoo has quit [Ping timeout: 276 seconds]
wsk has joined #ruby
wsk has left #ruby [#ruby]
wsk has joined #ruby
solocshaw has quit [Quit: solocshaw]
LuckyABA has joined #ruby
tvon has quit [Quit: Peace out, y'all!]
Inside has joined #ruby
Inside has quit [Changing host]
Inside has joined #ruby
ensyde__ has quit [Ping timeout: 244 seconds]
* A124 got it running, IDK even what was wrong. Still wonder about the proper syntax of the proc callback though
x77686d has joined #ruby
pawnbox has joined #ruby
pifon has quit [Quit: Leaving]
jackjackdripper has joined #ruby
Devalo has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
<Ox0dea> A124: https://eval.in/549619
solocshaw has joined #ruby
shmuli has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 250 seconds]
djbkd_ has joined #ruby
<A124> Ox0dea Thank you. That enlightened me a lot more, valuable reference. .. I have to guess its problem with the linter. *me had no idea what linter is mere week ago*
rbennacer has quit [Remote host closed the connection]
kareeoleez has joined #ruby
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
djbkd_ has quit [Ping timeout: 246 seconds]
DLSteve has joined #ruby
DLSteve has quit [Client Quit]
marcdel has joined #ruby
pawnbox has quit [Remote host closed the connection]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
<Ox0dea> A124: I've never seen the complaint about the ambiguous `&` be relevant. It whines because #& is a method, so maybe you meant to do a Boolean AND instead of pass a block, but that's vanishingly unlikely.
duncannz has joined #ruby
pawnbox has joined #ruby
bluOxigen has joined #ruby
<A124> No, I did not, But it said to use parenthesis, but if I do q.pop (&cb) it gives error.
<Ox0dea> Nix that space.
rbennacer has joined #ruby
<Ox0dea> With it in, the `(&cb)` gets interpreted as a standalone expression, but passing a block is only a valid thing to do when you're invoking a method.
<A124> Oooh. So both ruby itself and rubocop thinks this is the proper way to write it. Ok. So now got to know a lot more on blocks and some on syntax, thank again.
cpruitt has quit [Read error: Connection reset by peer]
jorum has joined #ruby
cpruitt has joined #ruby
<Ox0dea> No problem. Ruby's parser is pretty lenient, but its only real option is to bail if it can't unambiguously determine what you meant to do.
hxegon has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
<Ox0dea> *MRI's parser, technically.
ssiris has quit [Quit: End of Line]
<A124> Well, the linter does use ruby -s -w or something to check the syntax.
kam270 has joined #ruby
<A124> As I was new into the IDE and linters and tools and stuff I tried and installed both, so sometimes they yell both, but mostly only rubocop complaining at coding style xD
<A124> Luckily, in most cases the autocorrect does fix stuff without screwing what I do not like. So not bad.
<Ox0dea> No, not really bad, just noisy. :P
<Ox0dea> Are you using Reek for your linter?
jorum has quit [Ping timeout: 246 seconds]
skade has joined #ruby
<A124> No.
diegoaguilar has quit [Remote host closed the connection]
OTORelic2 has joined #ruby
ramfjord has joined #ruby
agentmeerkat has quit [Ping timeout: 248 seconds]
tmtwd has quit [Ping timeout: 244 seconds]
* A124 looked, added one more.
zast has quit [Remote host closed the connection]
OTORelic2 has quit [Ping timeout: 250 seconds]
bkxd has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
wsk has quit [Quit: Leaving]
agentmeerkat has joined #ruby
karmatr0n has joined #ruby
bkxd has quit [Ping timeout: 244 seconds]
astrobunny has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
pifon has joined #ruby
_djbkd has joined #ruby
iamvery has quit [Ping timeout: 240 seconds]
karmatr0n has quit [Ping timeout: 244 seconds]
tmtwd has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
freerobby has quit [Client Quit]
freerobby has joined #ruby
freerobby has quit [Client Quit]
freerobby has joined #ruby
kies has joined #ruby
freerobby has quit [Client Quit]
shmuli has joined #ruby
hinbody has joined #ruby
Musashi007 has joined #ruby
noService has quit [Ping timeout: 246 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
kareeoleez has quit [Remote host closed the connection]
matp has quit [Remote host closed the connection]
fedexo has joined #ruby
LaT0rtue has joined #ruby
matp has joined #ruby
kareeoleez has joined #ruby
iamvery has joined #ruby
sami has quit [Ping timeout: 248 seconds]
ascarter has joined #ruby
Spami_ has joined #ruby
sami has joined #ruby
kareeoleez has quit [Remote host closed the connection]
hk238 has joined #ruby
Spami has quit [Ping timeout: 248 seconds]
skade has quit [Quit: Computer has gone to sleep.]
roger_rabbit has quit [Ping timeout: 276 seconds]
pifon has quit [Quit: Leaving]
cpruitt has quit [Quit: cpruitt]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rake_db_migrate has joined #ruby
ascarter has joined #ruby
Inside has quit [Ping timeout: 260 seconds]
ascarter has quit [Read error: Connection reset by peer]
shmuli has quit [Remote host closed the connection]
ascarter has joined #ruby
kam270 has quit [Ping timeout: 268 seconds]
djbkd_ has joined #ruby
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
rake_db_migrate has quit [Ping timeout: 268 seconds]
last_staff has joined #ruby
Musashi007 has quit [Quit: Musashi007]
goglosh has joined #ruby
Chagel has quit [Remote host closed the connection]
phredus has quit [Ping timeout: 268 seconds]
djbkd_ has quit [Ping timeout: 276 seconds]
phredus has joined #ruby
tildes has quit [Ping timeout: 240 seconds]
Chagel has joined #ruby
goglosh has quit [Quit: leaving]
sauvin has joined #ruby
shmuli has joined #ruby
jero_ has joined #ruby
nartes has joined #ruby
sudoubuntu has joined #ruby
postmodern has quit [Quit: Leaving]
tristanp has quit [Ping timeout: 250 seconds]
jorum has joined #ruby
shmuli has quit [Remote host closed the connection]
cdg has joined #ruby
tristanp has joined #ruby
Chagel has quit [Remote host closed the connection]
jero_ has quit [Ping timeout: 260 seconds]
jorum has quit [Ping timeout: 244 seconds]
cdg has quit [Ping timeout: 268 seconds]
jero_ has joined #ruby
infra-red has joined #ruby
shmuli has joined #ruby
rubie has quit [Remote host closed the connection]
Devalo has joined #ruby
shmuli has quit [Remote host closed the connection]
Musashi007 has joined #ruby
elifoster has joined #ruby
IrishGringo has quit [Ping timeout: 268 seconds]
ceej has quit [Remote host closed the connection]
kies has quit [Ping timeout: 244 seconds]
juria_roberts has joined #ruby
ceej has joined #ruby
auzty has joined #ruby
rubie has joined #ruby
<juria_roberts> How can i avoid adding nil to the array? https://repl.it/CD30
karmatr0n has joined #ruby
yfeldblum has joined #ruby
<havenwood> juria_roberts: steps << 'b' if 'a' == 'c'
noService has joined #ruby
<juria_roberts> havenwood: that makes the array nil
<juria_roberts> havenwood: I wanna keep the previous value
agit0 has quit [Quit: zzzZZZ….]
joonty has joined #ruby
Cohedrin has quit [Ping timeout: 276 seconds]
karmatr0n has quit [Ping timeout: 248 seconds]
<havenwood> >> steps = []; steps << 'stuff'; steps << 'nope' if false; steps
<ruby[bot]> havenwood: # => ["stuff"] (https://eval.in/549707)
jorum has joined #ruby
<havenwood> juria_roberts: ^ that seem right? have an example of the missing previous value?
Cohedrin has joined #ruby
Spami has joined #ruby
joonty has quit [Ping timeout: 244 seconds]
nartes has quit [Ping timeout: 260 seconds]
Spami_ has quit [Ping timeout: 276 seconds]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<juria_roberts> havenwood: sorry...i guess if its in a function it will return nil if i dont put steps in the end...do you know an elegant way of appending to an array if a condition is satisfied?
bob434 has quit [Quit: This computer has gone to sleep]
rubie has quit [Remote host closed the connection]
Chagel has joined #ruby
<havenwood> >> true if false
<ruby[bot]> havenwood: # => nil (https://eval.in/549713)
<klka> >> true if false else true
LaT0rtue has quit [Ping timeout: 244 seconds]
<havenwood> klka: #!> SyntaxError: unexpected keyword_else
saneax_AFK is now known as saneax
amclain has quit [Quit: Leaving]
<juria_roberts> havenwood: didn't understand...can you edit this example and show? https://repl.it/CD30
czerasz has joined #ruby
moeabdol has joined #ruby
<havenwood> juria_roberts: https://repl.it/CD30/1
LaT0rtue has joined #ruby
<juria_roberts> havenwood: i don't want the extra steps at the end
<Ox0dea> >> double double, toil and trouble if $hakespeare
moeabdol1 has joined #ruby
<ruby[bot]> Ox0dea: # => nil (https://eval.in/549716)
aufi has joined #ruby
Swey_Hey has quit [Quit: Leaving]
kareeoleez has joined #ruby
<Ox0dea> juria_roberts: https://eval.in/549717
<Ox0dea> But there's not much good reason to do that.
moeabdol has quit [Ping timeout: 244 seconds]
<juria_roberts> Ox0dea: is there a simpler way?
<Ox0dea> juria_roberts: You're optimizing for the wrong thing.
nartes has joined #ruby
<Ox0dea> You're not entering your code into some sort of beauty pageant, are you?
abyx has joined #ruby
<juria_roberts> Ox0dea: haha no...its gonna be code reviewed and i just want it to be easy to understand for a person who doesnt know ruby ( I don't know ruby as well)
<Ox0dea> Ruby methods implicitly return the last expression in their bodies, and conditional branches which don't get taken evaluate to `nil`. These are both Good Things.
jaruga__ has joined #ruby
<Radar> except exit. exit doesn't return anything.
ratazzi has joined #ruby
<Ox0dea> juria_roberts: Looking for a way to not have to repeat `steps` at the end there is barking up the wrong tree.
Chagel_ has joined #ruby
<Ox0dea> The alternative is #tap.
infra-red has quit [Remote host closed the connection]
codecop has joined #ruby
codecop_ has joined #ruby
codecop has quit [Remote host closed the connection]
Chagel has quit [Ping timeout: 248 seconds]
<juria_roberts> Ox0dea: Cool...i think i will stick to putting the steps at the end
<Ox0dea> juria_roberts: Smaht. :)
joonty has joined #ruby
joonty has quit [Client Quit]
* baweaver considers pulling out select_map
krz has joined #ruby
tonini has joined #ruby
nartes has quit [Ping timeout: 260 seconds]
<Ox0dea> From Reducible?
djbkd_ has joined #ruby
<Ox0dea> Oh.
fedexo has quit [Ping timeout: 268 seconds]
ratazzi has quit [Quit: WeeChat 1.3]
_djbkd has quit [Remote host closed the connection]
sapslaj has joined #ruby
sapslaj_ has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sapslaj has quit [Remote host closed the connection]
Devalo has quit [Remote host closed the connection]
sapslaj_ is now known as sapslaj
<baweaver> >> def select_map(c) c.reduce([]){|a,i|v=yield(i);a<<v if v;a } end; select_map(1..10) { |v| v ** 2 if v.even? }
djbkd_ has quit [Ping timeout: 260 seconds]
<ruby[bot]> baweaver: # => [4, 16, 36, 64, 100] (https://eval.in/549720)
<baweaver> essentially only take values which are not nil
<baweaver> well, falsy
krz has quit [Ping timeout: 260 seconds]
tildes has joined #ruby
aeterne has quit [Remote host closed the connection]
Suntzu has quit [Read error: Connection reset by peer]
<Ox0dea> Er, that was a bad example.
<Ox0dea> The point was to have the pruning done on the new value.
djbkd_ has joined #ruby
Chagel_ has quit [Remote host closed the connection]
Chagel has joined #ruby
mhoungbo has quit [Remote host closed the connection]
dopie has quit [Quit: Leaving]
agit0 has joined #ruby
jas02 has joined #ruby
Spami_ has joined #ruby
Spami has quit [Ping timeout: 244 seconds]
andikr has joined #ruby
<Ox0dea> baweaver: Do you reckon you could say definitively whether #select->#map sees more use than #map->#select?
<baweaver> map select for me
<baweaver> though there have been inverse cases
pawnbox has quit [Remote host closed the connection]
polyidus has joined #ruby
pawnbox has joined #ruby
Musashi007 has quit [Quit: Musashi007]
LaT0rtue has quit [Ping timeout: 240 seconds]
rkazak has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OTORelic2 has joined #ruby
klka has quit [Read error: Connection reset by peer]
krz has joined #ruby
ascarter has joined #ruby
sdwrage has quit [Quit: Leaving]
bronson has joined #ruby
Macaveli has joined #ruby
bkxd has joined #ruby
symm- has joined #ruby
OTORelic2 has quit [Ping timeout: 246 seconds]
jorum has quit [Ping timeout: 276 seconds]
agentmee1kat has joined #ruby
hxegon has quit [Quit: BRB]
agentmeerkat has quit [Ping timeout: 248 seconds]
yfeldblum has quit [Ping timeout: 248 seconds]
mark2 has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
GnuYawk has quit [Ping timeout: 250 seconds]
bkxd has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
ljames has quit []
<djellemah> baweaver: Out of curiosity, I did some performance testing on select_map and friends a little while ago. Turns out map{}.compact is faster in most useful cases. I was sad.
<baweaver> reduce is probably slower
<baweaver> do it with each in the background and it'd be faster
<Ox0dea> djellemah: #compact won't drop `false`s, though.
<djellemah> That might be worth trying. But I think the slowdown is because of the reallocations of the array as its being built up.
ur5us has quit [Remote host closed the connection]
nartes has joined #ruby
jorum has joined #ruby
bry4n_ has quit [Ping timeout: 250 seconds]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
<djellemah> Ox0dea: I had a go at finding a generic way to handle falsy, but I gave up when I realised that I also couldn't think of any realworldish uses.
pawnbox has quit [Remote host closed the connection]
aeontech has joined #ruby
pawnbox has joined #ruby
<Ox0dea> djellemah: Fair enough. I do wonder if allocating a large enough return Array just the once and returning a slice of it would be optimal.
spikeheadon has joined #ruby
<Ox0dea> MRI does use structural sharing, but that doesn't help much with growth reallocations.
aeontech has quit [Client Quit]
<djellemah> I couldn't think of a way to track the end of such an array. But Doh! you just keep an index and increment it.
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Welcome back to C. :P
infra-red has joined #ruby
infra-red has quit [Remote host closed the connection]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
<djellemah> turns out random access structures can be quite useful...
Suntzu has joined #ruby
infra-red has joined #ruby
nartes has quit [Ping timeout: 276 seconds]
bry4n_ has joined #ruby
abyx has quit [Quit: This computer has gone to sleep]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
infra-red has quit [Remote host closed the connection]
ascarter has joined #ruby
leksster has joined #ruby
solars has joined #ruby
<djellemah> I'm looking for solid information on DRb reliability. I'm not finding much - I'm guessing because the material I'm looking for is in Japanese. I asked last night, and I'm asking again to see if anyone on the other side of the planet knows of anything?
<ag4ve> is there a way to automagically define variable types w/in a hash so i can do: h[thing].push(foo)
<ag4ve> w/o first doing h[thing] = Array.new
infra-red has joined #ruby
<djellemah> ag4ve: see Hash#default_proc, also Hash.new
<Ox0dea> djellemah: I vaguely recall seeing some RubyConf talk that centered on DRb.
<Ox0dea> ag4ve: I trust you're familiar with Perl's autovivification semantics?
bohr has joined #ruby
<ag4ve> err, right Hash.new :)
<Ox0dea> Ah, I jumped the shark a bit, then.
<ag4ve> i mean, in perl, push(@{$h[thing]}, foo); would work on a new 'thing'
<ag4ve> blah, ruby got me using [] vs {}... w/e
<Ox0dea> >> auto = Hash.new { |h, k| h[k] = Hash.new &h.default_proc }; auto[1][2][3] = 4; auto
<ruby[bot]> Ox0dea: # => {1=>{2=>{3=>4}}} (https://eval.in/549747)
<Ox0dea> For when you just want to be able to shove things into a "tree".
<ag4ve> ty
<Ox0dea> No problem.
TomyWork has joined #ruby
<Ox0dea> >> h = Hash.new([]); h[:a] << :oops; h[:b] # Be mindful of reference types.
<ruby[bot]> Ox0dea: # => [:oops] (https://eval.in/549748)
nartes has joined #ruby
vdamewood has joined #ruby
<ag4ve> not sure what that's doing?
<Ox0dea> The default Array is being shared by all keys.
<Ox0dea> That's almost never what you'd want.
<ag4ve> ah right
terlar has joined #ruby
charlemagne has joined #ruby
bohr has left #ruby ["bye"]
bohr has joined #ruby
bohr has left #ruby ["bye"]
Chagel has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 276 seconds]
Chagel has joined #ruby
Chagel has quit [Remote host closed the connection]
vondruch has joined #ruby
elifoster has quit [Ping timeout: 244 seconds]
Devalo has joined #ruby
futilegames has joined #ruby
djbkd_ has quit [Remote host closed the connection]
kits has joined #ruby
Devalo has quit [Ping timeout: 244 seconds]
polyidus has quit [Quit: Later]
pandaant has joined #ruby
ur5us has joined #ruby
futilegames has quit [Client Quit]
karmatr0n has joined #ruby
futilegames has joined #ruby
rbennacer has joined #ruby
ferr has joined #ruby
Musashi007 has joined #ruby
Couch has joined #ruby
Musashi007 has quit [Client Quit]
kies has joined #ruby
tmtwd has quit [Ping timeout: 244 seconds]
ur5us has quit [Ping timeout: 244 seconds]
rbennacer has quit [Ping timeout: 244 seconds]
karmatr0n has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
rbennacer has joined #ruby
futilegames has quit [Quit: futilegames]
ramfjord has quit [Ping timeout: 244 seconds]
rake_db_migrate has joined #ruby
SCHAAP137 has joined #ruby
bkxd has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
danielpclark has joined #ruby
Guest84241 has joined #ruby
rbennacer has joined #ruby
<chridal> Has there been any indication when Ruby 3 might be coming out?
dn` has joined #ruby
tmtwd has joined #ruby
Chagel has joined #ruby
dn` has quit [Client Quit]
rake_db_migrate has quit [Ping timeout: 268 seconds]
pifon has joined #ruby
solars has quit [Read error: Connection reset by peer]
mosez has quit [Quit: Switching back to real life]
bkxd has quit [Ping timeout: 276 seconds]
colegatron has joined #ruby
PedramT has joined #ruby
madgen has joined #ruby
ur5us has joined #ruby
<Ox0dea> chridal: Christmas 20xx.
<chridal> Right. They always release at Christmas. Cheers.
solars has joined #ruby
petertretyakov has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
nhhc has joined #ruby
mikecmpbll has joined #ruby
ur5us has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 268 seconds]
rbennacer has quit [Ping timeout: 276 seconds]
x77686d has quit [Quit: x77686d]
symm- has quit [Ping timeout: 246 seconds]
nodejunkie has quit [Ping timeout: 252 seconds]
monsieurp has joined #ruby
monsieurp has joined #ruby
monsieurp has left #ruby [#ruby]
monsieur1 has joined #ruby
monsieur1 has left #ruby [#ruby]
rbennacer has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Couch has quit [Quit: Leaving]
troulouliou_div2 has joined #ruby
bry4n_ has quit [Ping timeout: 250 seconds]
Mia has quit [Read error: Connection reset by peer]
rbennacer has quit [Ping timeout: 252 seconds]
x77686d has joined #ruby
_blizzy_ has joined #ruby
blt has quit [Quit: WeeChat 1.4]
jero_ has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
jt__ has joined #ruby
bruce_lee has joined #ruby
nartes has quit [Ping timeout: 276 seconds]
rbennacer has joined #ruby
charlemagne has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
pawnbox has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
biberu has joined #ruby
marr has joined #ruby
PedramT has quit [Remote host closed the connection]
DrCode has joined #ruby
dc4 has joined #ruby
rbennacer has joined #ruby
nuck has quit [Ping timeout: 244 seconds]
kam270 has joined #ruby
dubidubi has joined #ruby
dubidubi is now known as mmok
mmok has left #ruby [#ruby]
d0nn1e has quit [Ping timeout: 264 seconds]
d0nn1e has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
charlemagne has joined #ruby
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 252 seconds]
nuck has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
nuck is now known as Guest48934
rbennacer has quit [Ping timeout: 252 seconds]
charlemagne has quit [Ping timeout: 250 seconds]
x77686d has quit [Quit: x77686d]
charlemagne has joined #ruby
rbennacer has joined #ruby
jmorgado has joined #ruby
reprazent has joined #ruby
baweaver has joined #ruby
juria_roberts has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
kareeoleez has quit [Remote host closed the connection]
pifon has quit [Quit: Leaving]
rbennacer has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
sepp2k has joined #ruby
baweaver has quit [Ping timeout: 244 seconds]
kareeoleez has joined #ruby
OTORelic2 has joined #ruby
benlieb has joined #ruby
mosez has joined #ruby
rbennacer has joined #ruby
Anderson69s has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
charlemagne has quit [Ping timeout: 244 seconds]
OTORelic2 has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
danand has joined #ruby
skislak has joined #ruby
Anderson69s has quit [Client Quit]
rbennacer has quit [Ping timeout: 248 seconds]
Anderson69s has joined #ruby
charlemagne has joined #ruby
petertretyakov has quit [Read error: Connection reset by peer]
petertretyakov has joined #ruby
rbennacer has joined #ruby
Snowy has joined #ruby
snoobydo1 has quit [Ping timeout: 250 seconds]
rbennacer has quit [Ping timeout: 248 seconds]
troulouliou_div2 has quit [Quit: Leaving]
charlemagne has quit [Read error: No route to host]
Chagel has quit [Remote host closed the connection]
charlemagne has joined #ruby
Chagel has joined #ruby
emilkarl has joined #ruby
Chagel has quit [Remote host closed the connection]
moeabdol1 has quit [Ping timeout: 276 seconds]
rbennacer has joined #ruby
evidex has joined #ruby
davee_ has joined #ruby
Chagel has joined #ruby
bruce_lee has quit [Ping timeout: 276 seconds]
bruce_lee has joined #ruby
kies has quit [Ping timeout: 246 seconds]
senayar has joined #ruby
mosez has quit [Quit: Changing server]
tildes has quit [Ping timeout: 240 seconds]
saneax is now known as saneax_AFK
rbennacer has quit [Ping timeout: 244 seconds]
rbennacer has joined #ruby
jgt4 has joined #ruby
charlemagne has quit [Ping timeout: 276 seconds]
tildes has joined #ruby
mdw has joined #ruby
tvw has joined #ruby
skade has joined #ruby
<atmosx> Is there any better way to create this kind of string: https://gist.github.com/atmosx/68f5a6f4606ae9510eb7221c10552773 ? I can't use interpolation
rbennacer has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
<Ox0dea> atmosx: Use %Q.
robbyoconnor has joined #ruby
<Ox0dea> It supports interpolation and doesn't require quotes of either style to be escaped.
charlemagne has joined #ruby
mdw has quit [Ping timeout: 244 seconds]
<atmosx> Ox0dea thanks!
<Ox0dea> atmosx: Happy to help.
madgen has quit [Ping timeout: 276 seconds]
jt__ has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt4 has quit [Ping timeout: 248 seconds]
astrobunny has quit [Remote host closed the connection]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
corl has joined #ruby
charlema_ has joined #ruby
petertretyakov has quit [Quit: Be back later ...]
charlemagne has quit [Ping timeout: 276 seconds]
raeoks has joined #ruby
akkmaxon has joined #ruby
charlemagne has joined #ruby
charlema_ has quit [Read error: No route to host]
joonty has joined #ruby
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
jdm has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
Zai00 has joined #ruby
<atmosx> Do we have an inverse function of Capitalize ? like turn Hello to hello
tmtwd has quit [Ping timeout: 260 seconds]
<atmosx> s/function/method
<atmosx> I can use downcase
Swey_Hey has joined #ruby
charlemagne has quit [Read error: No route to host]
charlemagne has joined #ruby
rake_db_migrate has joined #ruby
benlieb has quit [Quit: benlieb]
rolha has joined #ruby
bry4n_ has joined #ruby
TheHodge has joined #ruby
mosez has joined #ruby
merida has joined #ruby
moeabdol has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
rake_db_migrate has quit [Ping timeout: 250 seconds]
charlemagne has quit [Ping timeout: 276 seconds]
leksster has quit [Ping timeout: 244 seconds]
shmoon_ has joined #ruby
bry4n_ has quit [Ping timeout: 250 seconds]
troulouliou_div2 has joined #ruby
workmad3 has joined #ruby
ramfjord has joined #ruby
Digpig has quit [Quit: Konversation terminated!]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
PedramT has joined #ruby
Ropeney has joined #ruby
agentmee1kat has quit [Ping timeout: 268 seconds]
Swey_Hey has quit [Ping timeout: 240 seconds]
Anderson69s has quit [Quit: Time to EAT, SLEEP OR WHATEVER BYE!!!!!]
deavid has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
dionysus69 has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
deavid has joined #ruby
PedramT has quit [Ping timeout: 250 seconds]
mosez has quit [Quit: Switching back to real life]
leksster has joined #ruby
madgen has joined #ruby
charlemagne has joined #ruby
colegatron has quit [Ping timeout: 268 seconds]
mosez has joined #ruby
OTORelic2 has joined #ruby
reprazent has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
colegatron has joined #ruby
reprazent has joined #ruby
toretore has quit [Ping timeout: 276 seconds]
rbennacer has joined #ruby
corl has quit [Quit: leaving]
ur5us has quit [Remote host closed the connection]
reprazen_ has joined #ruby
charlemagne has quit [Ping timeout: 244 seconds]
<Ox0dea> atmosx: https://eval.in/549924
sonOfRa has quit [Quit: Bye!]
OTORelic2 has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Ping timeout: 246 seconds]
<atmosx> Ox0dea hehe magic, ty
snoobydoo has joined #ruby
reprazent has quit [Ping timeout: 248 seconds]
abrausch has joined #ruby
rbennacer has quit [Ping timeout: 246 seconds]
rbennacer has joined #ruby
<Ox0dea> atmosx: That's apparently called "studly caps", but I like "roller coaster case" better ('cause it goes up and down).
robbyoconnor has quit [Ping timeout: 276 seconds]
eprasad has joined #ruby
sonOfRa has joined #ruby
<atmosx> Ox0dea makes more sense
<Ox0dea> I reckon so.
ocbtec has joined #ruby
<Ox0dea> My favorite #gsub trick:
<Ox0dea> >> trans = {'1' => 'one', '2' => 'two', '3' => 'three'}; '1 2 3 2 1'.gsub /\d/, trans
<ruby[bot]> Ox0dea: # => "one two three two one" (https://eval.in/549925)
chipotle has quit [Quit: cheerio]
Regulati_ has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
rbennacer has joined #ruby
myntcake has joined #ruby
jdm has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 250 seconds]
skade has quit [Quit: Computer has gone to sleep.]
GodFather has quit [Ping timeout: 246 seconds]
emilkarl has quit [Read error: Connection reset by peer]
emilkarl has joined #ruby
rbennacer has quit [Ping timeout: 264 seconds]
rarruda has joined #ruby
nhhc has quit [Read error: No route to host]
crameth has quit [Quit: crameth]
moeabdol has quit [Ping timeout: 248 seconds]
kits has quit [Quit: Leaving]
terlar has quit [Ping timeout: 246 seconds]
GodFather has joined #ruby
Chagel has quit [Remote host closed the connection]
emilkarl has quit [Read error: Connection reset by peer]
tax has quit [Ping timeout: 252 seconds]
rbennacer has joined #ruby
jdm has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
emilkarl has joined #ruby
blackgoat has quit [Quit: WeeChat 1.4]
Chagel has joined #ruby
cpup has quit [Ping timeout: 248 seconds]
cpup has joined #ruby
LaT0rtue has joined #ruby
pawnbox has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 250 seconds]
bry4n_ has joined #ruby
rbennacer has joined #ruby
bronson has joined #ruby
jdm has quit [Remote host closed the connection]
bry4n_ has quit [Ping timeout: 264 seconds]
rbennacer has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 264 seconds]
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cdg has joined #ruby
rbennacer has joined #ruby
jdm has joined #ruby
reprazen_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
triangles has joined #ruby
kam270 has quit [Ping timeout: 244 seconds]
Yeomra has joined #ruby
pawnbox has joined #ruby
moeabdol has joined #ruby
rbennacer has quit [Ping timeout: 276 seconds]
cdg has quit [Remote host closed the connection]
dionysus69 has joined #ruby
cdg has joined #ruby
AimlessRaven has joined #ruby
<AimlessRaven> can anyone help me to transform this sql request https://gist.github.com/anonymous/7c7556a85ec357cd476947bbe37d32bc to rails active-record request
nfk|laptop has joined #ruby
rbennacer has joined #ruby
nibbo has quit [Ping timeout: 240 seconds]
spikeheadon has quit [Read error: Connection reset by peer]
sthns has joined #ruby
sthns has quit [Max SendQ exceeded]
Vile` has joined #ruby
LaT0rtue has quit [Ping timeout: 240 seconds]
<hanmac> AimlessRaven: go to #rubyOnRails
rbennacer has quit [Ping timeout: 244 seconds]
Rickmasta has quit [Read error: Connection reset by peer]
Rickmast_ has joined #ruby
<AimlessRaven> hanmac: yea im there but noone write :)
<AimlessRaven> sorry for that
soc42 has joined #ruby
<shevy> hehe
<shevy> they don't have anything to talk about!
Chagel_ has joined #ruby
mosez has quit [Quit: Switching back to real life]
rbennacer has joined #ruby
nettoweb has joined #ruby
Chagel has quit [Ping timeout: 246 seconds]
troulouliou_div2 has quit [Ping timeout: 276 seconds]
mosez has joined #ruby
davee_ has quit [Ping timeout: 268 seconds]
solars has quit [Ping timeout: 250 seconds]
bob434 has joined #ruby
merida has quit [Remote host closed the connection]
Chagel_ has quit [Remote host closed the connection]
Chagel has joined #ruby
merida has joined #ruby
auzty has quit [Quit: Leaving]
jdm has quit [Quit: Leaving]
sapslaj has quit [Ping timeout: 240 seconds]
sapslaj has joined #ruby
<shevy> and neither do we :(
danand has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
antgel has quit [Remote host closed the connection]
sapslaj has quit [Client Quit]
sapslaj has joined #ruby
karmatr0n has joined #ruby
cdg has quit [Remote host closed the connection]
gnufied has joined #ruby
antgel has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
saneax_AFK is now known as saneax
saneax is now known as saneax_AFK
saneax_AFK is now known as saneax
karmatr0n has quit [Ping timeout: 244 seconds]
madgen has quit [Ping timeout: 276 seconds]
Chagel has quit [Ping timeout: 252 seconds]
drptbl_ has joined #ruby
nhhc has joined #ruby
nibbo has joined #ruby
bohr has joined #ruby
drptbl has quit [Ping timeout: 244 seconds]
xfbs has joined #ruby
kimegede has joined #ruby
sonOfRa has quit [Quit: Bye!]
krz has quit [Ping timeout: 268 seconds]
emilkarl has joined #ruby
shibly has joined #ruby
rbennacer has quit [Ping timeout: 276 seconds]
rbennace_ has joined #ruby
nerium has joined #ruby
shibly has left #ruby [#ruby]
diegoaguilar has joined #ruby
ldnunes has joined #ruby
bkxd has quit [Ping timeout: 244 seconds]
jas02 has left #ruby [#ruby]
antgel has quit [Remote host closed the connection]
danand has joined #ruby
lyoshajapan has joined #ruby
saneax is now known as saneax_AFK
AimlessRaven has quit [Quit: Page closed]
Yeomra has quit [Ping timeout: 248 seconds]
rbennace_ has quit [Ping timeout: 244 seconds]
Vile` has quit [Ping timeout: 250 seconds]
antgel has joined #ruby
sonOfRa has joined #ruby
joonty has quit [Ping timeout: 268 seconds]
charlemagne has joined #ruby
skade has joined #ruby
n008f4g_ has joined #ruby
charlemagne has quit [Read error: No route to host]
charlemagne has joined #ruby
rbennacer has joined #ruby
terlar has joined #ruby
charlemagne has quit [Read error: Connection reset by peer]
charlemagne has joined #ruby
Zai00 has quit [Quit: Zai00]
lyoshajapan has quit [Remote host closed the connection]
jorum has quit [Read error: Connection reset by peer]
lyoshajapan has joined #ruby
nhhc has quit [Ping timeout: 244 seconds]
charlemagne has quit [Ping timeout: 244 seconds]
nartes has joined #ruby
codecop_ has quit [Quit: Išeinu]
jorum has joined #ruby
rbennacer has quit [Ping timeout: 276 seconds]
antgel has quit [Ping timeout: 248 seconds]
soc42 has quit [Remote host closed the connection]
antgel has joined #ruby
charlemagne has joined #ruby
antgel has quit [Client Quit]
abyx has joined #ruby
rbennacer has joined #ruby
abyx has quit [Client Quit]
charlema_ has joined #ruby
reprazent has joined #ruby
joonty has joined #ruby
triangles3 has joined #ruby
charlemagne has quit [Ping timeout: 276 seconds]
johnmilton has joined #ruby
nfk|laptop has quit [Ping timeout: 248 seconds]
nartes has quit [Ping timeout: 244 seconds]
tonini has quit [Quit: Connection closed for inactivity]
rbennacer has quit [Ping timeout: 240 seconds]
triangles has quit [Ping timeout: 240 seconds]
madgen has joined #ruby
someish has joined #ruby
dn` has joined #ruby
n008f4g_ has quit [Ping timeout: 260 seconds]
drptbl_ has quit [Quit: My MAC has gone to sleep. zZz..]
agit0 has quit [Quit: zzzZZZ….]
charlema_ has quit [Ping timeout: 276 seconds]
hanmac has quit [Ping timeout: 268 seconds]
drptbl has joined #ruby
eprasad has quit [Read error: Connection reset by peer]
eprasad_ has joined #ruby
Zai00 has joined #ruby
sudoubuntu has joined #ruby
nerium has quit [Read error: Connection reset by peer]
nerium has joined #ruby
akkmaxon has quit [Ping timeout: 248 seconds]
davee_ has joined #ruby
rbennacer has joined #ruby
tubuliferous has quit [Ping timeout: 276 seconds]
Snowy has quit [Remote host closed the connection]
nerium has quit [Read error: Connection reset by peer]
nerium has joined #ruby
kam270 has joined #ruby
nartes has joined #ruby
rbennacer has quit [Read error: Connection reset by peer]
madgen has quit [Ping timeout: 252 seconds]
rbennacer has joined #ruby
banister has quit [Remote host closed the connection]
rodfersou has joined #ruby
hanmac has joined #ruby
banister has joined #ruby
LinuxDave has joined #ruby
BSaboia has joined #ruby
<LinuxDave> Anyone used to pulling files from gridfs?
agit0 has joined #ruby
bohr has left #ruby ["bye"]
whiteline has quit [Read error: Connection reset by peer]
whiteline has joined #ruby
Snowy has joined #ruby
charlemagne has joined #ruby
madgen has joined #ruby
whiteline has quit [Read error: Connection reset by peer]
whiteline has joined #ruby
armyriad has quit [Ping timeout: 244 seconds]
pawnbox_ has joined #ruby
kimegede has quit [Quit: Linkinus - http://linkinus.com]
<LinuxDave> I am looking for help pulling files of a certain age from Gridfs.
pawnbox has quit [Ping timeout: 248 seconds]
chouhoulis has joined #ruby
bry4n_ has joined #ruby
lyoshajapan has quit []
zapata has quit [Ping timeout: 260 seconds]
dc4 has quit [Ping timeout: 248 seconds]
rbennacer has quit [Ping timeout: 276 seconds]
Zai00 has quit [Quit: Zai00]
LinuxDave has quit [Quit: [BX] Tone Loc uses BitchX, and funky cold medina.]
charlemagne has quit [Ping timeout: 244 seconds]
djellemah_ has joined #ruby
bry4n_ has quit [Ping timeout: 260 seconds]
araujo has quit [Quit: Leaving]
rbennacer has joined #ruby
djellemah has quit [Disconnected by services]
Marsupermammal has joined #ruby
djellemah_ is now known as djellemah
swills has quit [Ping timeout: 244 seconds]
noService has quit [Ping timeout: 246 seconds]
rbennacer has quit [Ping timeout: 246 seconds]
charlemagne has joined #ruby
sdothum has joined #ruby
armyriad has joined #ruby
zapata has joined #ruby
Marsupermammal has quit [Quit: Textual IRC Client: www.textualapp.com]
merida has quit [Remote host closed the connection]
magikid has joined #ruby
reprazen_ has joined #ruby
rbennacer has joined #ruby
aupadhye has joined #ruby
kobain has joined #ruby
roelof has joined #ruby
Amnez777 has quit [Ping timeout: 260 seconds]
<roelof> I thought with instance_methods I only see the functions provided by the class itself and not the inherited ones
reprazent has quit [Ping timeout: 250 seconds]
<workmad3> roelof: no, that`s `instance_methods(false)`
<workmad3> roelof: just a call to `instance_methods` gives you all instance methods, inherited and directly defined on that class
<roelof> oke, then that's the problem
<roelof> how can I get only the functions provided by the class itself in a function
magikid has quit [Quit: Leaving.]
<workmad3> roelof: first, method not function in ruby
<shevy> roelof didn't workmad3 just say how :)
<workmad3> and also ^ :)
<roelof> yes, he did, I over read it
<roelof> sorry
<shevy> nobody reads workmad3 anymore
OTORelic2 has joined #ruby
Amnez777 has joined #ruby
<roelof> I do but sometimes I want to fast :(
Zai00 has joined #ruby
charlemagne has quit [Ping timeout: 240 seconds]
rbennacer has quit [Remote host closed the connection]
<banister> roflmao: you might need to also tack on + private_instance_method() + protected_instance_methods to get the full suite
rbennacer has joined #ruby
<banister> roelof*
<banister> methods*
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dstarh has joined #ruby
andywojo has quit [Quit: leaving]
Yeomra has joined #ruby
OTORelic2 has quit [Ping timeout: 248 seconds]
aqoom has joined #ruby
<roelof> but still no pass :(
<roelof> maybe something wrong with this part : answer = all_classes.select { |klas| klas.instance_methods(false).include? (method) }
<roelof> all_classes comes from here : all_classes = object.class.ancestors
eljimbo has joined #ruby
rake_db_migrate has joined #ruby
karmatr0n has joined #ruby
kareeoleez has quit [Read error: Connection reset by peer]
kareeoleez has joined #ruby
charlemagne has joined #ruby
nartes has quit [Ping timeout: 260 seconds]
pawnbox_ has quit [Remote host closed the connection]
mosez has quit [Quit: Switching back to real life]
pawnbox has joined #ruby
decoponyo has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<roelof> Can someone then help me figure out why my code gives the wrong answer : https://gist.github.com/rwobben/4077834fff5be74edf530328c0ac3c6b
n008f4g_ has joined #ruby
diegoaguilar has quit [Ping timeout: 244 seconds]
decoponio has quit [Ping timeout: 260 seconds]
krz has joined #ruby
aegis3121 has joined #ruby
<shevy> codemonk sucks
chouhoulis has quit [Remote host closed the connection]
charlemagne has quit [Ping timeout: 276 seconds]
<shevy> something is wrong with your code anyway
<shevy> even if you put the argument to true, your array has [Kernel, Object, String]
<shevy> expected Numeric got Comparable - not sure how you can get from there, there
perlgod has joined #ruby
noService has joined #ruby
ChiefAlexander has joined #ruby
Kanibal has quit [Quit: WeeChat 1.1.1]
<roelof> shevy: im also not. IM trying to learn ruby by using ruby monk and never see this before
mosez has joined #ruby
<workmad3> roelof: there's two annoyances that aren't being made clear there - 1: it only wants classes, not modules (both appear in ancestors), 2: it wants the first class that the method appears under, which means that for stuff defined in a module you need to find the first class after it in the chain
cdg has joined #ruby
fourq has left #ruby ["twip"]
elaptics`away is now known as elaptics
_stu_ has joined #ruby
<roelof> workmad3: so I cannot use ancestors to find the answer
<workmad3> roelof: you can, but you need to be a bit more careful about it
<roelof> then I have to rewrite it using superclass
<workmad3> roelof: again, you can use ancestors, but you need to be a bit more careful
openstruct has joined #ruby
sesquipedalian has quit [Read error: Connection reset by peer]
<roelof> oke, how can I solve this so modules are not part of it
chipotle has joined #ruby
jero_ has joined #ruby
someish has quit [Quit: someish]
ekinmur has joined #ruby
madgen has quit [Ping timeout: 240 seconds]
griffindy has joined #ruby
diegoaguilar has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
diegoaguilar has quit [Max SendQ exceeded]
diegoaguilar has joined #ruby
crameth has joined #ruby
madgen has joined #ruby
triangles has joined #ruby
malconis has joined #ruby
vdamewood has quit [Ping timeout: 244 seconds]
triangles3 has quit [Ping timeout: 252 seconds]
charlemagne has joined #ruby
noway_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
roelof has quit [Quit: Page closed]
emilkarl_ has joined #ruby
akkmaxon has joined #ruby
pawnbox has joined #ruby
pifon has joined #ruby
emilkarl has quit [Ping timeout: 244 seconds]
madgen has quit [Ping timeout: 260 seconds]
andywojo has joined #ruby
jorum has quit [Quit: Lost terminal]
pawnbox has quit [Remote host closed the connection]
swills has joined #ruby
CloCkWeRX has quit [Ping timeout: 276 seconds]
sgambino has joined #ruby
bry4n_ has joined #ruby
platzhirsch has joined #ruby
pifon1 has joined #ruby
imperator has joined #ruby
madgen has joined #ruby
pifon has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
guardian has joined #ruby
skweek has joined #ruby
rippa has joined #ruby
bob434 has quit [Quit: Leaving]
JesseH2 has quit [Quit: Leaving]
Begi has joined #ruby
CloCkWeRX has joined #ruby
n008f4g_ has quit [Ping timeout: 244 seconds]
moeabdol has quit [Ping timeout: 264 seconds]
limono7 has quit [Quit: leaving]
nanoz has joined #ruby
pawnbox has joined #ruby
merida has joined #ruby
marcoecc has quit [Ping timeout: 248 seconds]
LaT0rtue has joined #ruby
dvinciguerra__ has quit [Ping timeout: 244 seconds]
Yeomra has quit [Quit: WeeChat 1.4]
sesquipedalian has joined #ruby
noService has quit [Ping timeout: 246 seconds]
tubuliferous has joined #ruby
JesseH has joined #ruby
jmorgado1 has joined #ruby
danand has quit [Ping timeout: 252 seconds]
dvinciguerra__ has joined #ruby
rolha has quit [Ping timeout: 248 seconds]
jmorgado has quit [Ping timeout: 264 seconds]
dvinciguerra__ has quit [Max SendQ exceeded]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
davee_ has quit [Quit: Leaving]
dvinciguerra__ has joined #ruby
emilkarl has joined #ruby
dvinciguerra__ has quit [Max SendQ exceeded]
kareeoleez has quit [Remote host closed the connection]
chouhoulis has joined #ruby
dvinciguerra__ has joined #ruby
kareeoleez has joined #ruby
saneax_AFK is now known as saneax
reprazent has joined #ruby
tubuliferous has quit [Ping timeout: 276 seconds]
freerobby has quit [Quit: Leaving.]
whippythellama has joined #ruby
hxegon has joined #ruby
freerobby has joined #ruby
emilkarl_ has quit [Ping timeout: 248 seconds]
pifon1 has quit [Ping timeout: 244 seconds]
reprazen_ has quit [Ping timeout: 246 seconds]
treehug88 has joined #ruby
emilkarl has quit [Quit: Textual IRC Client: www.textualapp.com]
chouhoulis has quit [Remote host closed the connection]
madgen has quit [Ping timeout: 248 seconds]
merida has quit [Remote host closed the connection]
Waqas has joined #ruby
tubuliferous has joined #ruby
prestorium has joined #ruby
grill has joined #ruby
freerobby has quit [Quit: Leaving.]
rake_db__ has joined #ruby
troulouliou_div2 has joined #ruby
troulouliou_div2 has quit [Max SendQ exceeded]
M-shine has quit [Remote host closed the connection]
M-Kodo has quit [Remote host closed the connection]
M-mistake has quit [Remote host closed the connection]
freerobby has joined #ruby
patrick-sartent has quit [Quit: .]
LastWhisper____ has joined #ruby
noway_ has quit [Ping timeout: 246 seconds]
Rodya_ has joined #ruby
madgen has joined #ruby
cpup has quit [Ping timeout: 244 seconds]
rake_db_migrate has quit [Ping timeout: 248 seconds]
dravine has quit [Ping timeout: 264 seconds]
cpup has joined #ruby
pawnbox has quit [Remote host closed the connection]
charlemagne has quit []
VeryBewitching has joined #ruby
<VeryBewitching> o/
xfbs has quit []
workmad3 has quit [Ping timeout: 240 seconds]
ferr has quit [Quit: WeeChat 1.4]
binaryplease1 has joined #ruby
darkf has quit [Quit: Leaving]
crime has joined #ruby
<Begi> VeryBewitching: /o
<shevy> damn, witch magic happening again
<shevy> curse onto the yorickpeterse !
<VeryBewitching> That... makes no sense.
Zai00 has quit [Quit: Zai00]
<shevy> App\PayrollPeriod:
<shevy> hey is this php
<VeryBewitching> Yes, and I apologize for polluting your eyes shevy, but I've been laughing about this since I started work this morning.
jt__ has joined #ruby
<VeryBewitching> A query with limit 1 that returns a count of 2
<shevy> yes this makes me violent... they had to pick \ :(
<shevy> lol
<VeryBewitching> Ya, the namespace separator is terribad
<shevy> php knows better than you how to count!
nofacade has joined #ruby
binaryplease has quit [Ping timeout: 276 seconds]
andikr has quit [Remote host closed the connection]
prestorium has quit [Quit: Leaving]
emilkarl has joined #ruby
pawnbox has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
marcdel has quit [Ping timeout: 248 seconds]
dANOKELOFF has joined #ruby
M-shine has joined #ruby
evidex has quit [Ping timeout: 240 seconds]
agit0 has quit [Quit: zzzZZZ….]
binaryplease1 is now known as binaryplease
dravine has joined #ruby
marcdel has joined #ruby
bronson has joined #ruby
kareeoleez has quit []
djbkd_ has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
weemsledeux has joined #ruby
OTORelic2 has joined #ruby
cpruitt has joined #ruby
<yorickpeterse> Coming from PHP that doesn't surprise me
<yorickpeterse> ᕕ(ᐛ)ᕗ
tmtwd has joined #ruby
IrishGringo has joined #ruby
tildes has quit [Remote host closed the connection]
M-Kodo has joined #ruby
Suntzu has quit [Read error: Connection reset by peer]
cpruitt has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
platzhirsch has quit [Quit: Leaving.]
LastWhisper____ has quit [Ping timeout: 276 seconds]
<havenwood> \
Rodya_ has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
rubie has joined #ruby
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
karmatr0n has joined #ruby
Guest84241 has quit [Remote host closed the connection]
djbkd_ has quit [Remote host closed the connection]
neohunter has joined #ruby
codecop has joined #ruby
codecop_ has joined #ruby
blandflakes has joined #ruby
codecop_ has quit [Client Quit]
tmtwd has quit [Ping timeout: 264 seconds]
Devalo has joined #ruby
fmcgeough has joined #ruby
dANOKELOFF has quit [Remote host closed the connection]
polishdub has joined #ruby
pifon has joined #ruby
aegis3121 has quit [Ping timeout: 244 seconds]
eprasad_ has quit [Quit: Leaving]
workmad3 has joined #ruby
pifon has quit [Max SendQ exceeded]
pifon has joined #ruby
pifon has quit [Max SendQ exceeded]
Guest71601 has joined #ruby
pifon has joined #ruby
pifon has quit [Max SendQ exceeded]
pifon has joined #ruby
pifon has quit [Max SendQ exceeded]
pifon has joined #ruby
neohunter has quit [Quit: Textual IRC Client: www.textualapp.com]
dionysus69 has quit [Ping timeout: 264 seconds]
PedramT has joined #ruby
chouhoulis has joined #ruby
smathy has joined #ruby
diegoaguilar has quit [Ping timeout: 252 seconds]
raeoks has quit [Quit: Textual IRC Client: www.textualapp.com]
wmoxam has joined #ruby
reprazent has quit [Ping timeout: 264 seconds]
Suntzu has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
danand has joined #ruby
nettoweb has joined #ruby
pifon has quit [Ping timeout: 244 seconds]
nettoweb has quit [Client Quit]
czerasz_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
jt__ has quit [Remote host closed the connection]
marcdel has quit [Ping timeout: 260 seconds]
jt__ has joined #ruby
x77686d has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
evidex has joined #ruby
nartes has joined #ruby
bruno- has joined #ruby
aegis3121 has joined #ruby
czerasz has quit [Ping timeout: 260 seconds]
nartes has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
<VeryBewitching> Concatenating strings with . is probably the worst offense I can think of in it's history.
nartes has joined #ruby
GnuYawk has joined #ruby
marcdel has joined #ruby
pawnbox has joined #ruby
nartes has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
GnuYawk has quit [Changing host]
GnuYawk has joined #ruby
nartes has joined #ruby
jt__ has quit [Ping timeout: 260 seconds]
nartes has quit [Read error: Connection reset by peer]
<yorickpeterse> period?
* yorickpeterse runs
nartes has joined #ruby
nartes has quit [Read error: Connection reset by peer]
evidex has quit [Ping timeout: 240 seconds]
* VeryBewitching pets ~/.rubies/ruby-2.3.0/bin/ruby
nartes has joined #ruby
M-Kodo has quit [Ping timeout: 246 seconds]
skade has quit [Quit: Computer has gone to sleep.]
dANOKELOFF has joined #ruby
diegoaguilar has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
kareeoleez has joined #ruby
PedramT has quit [Remote host closed the connection]
M-shine has quit [Ping timeout: 260 seconds]
myntcake has quit [Ping timeout: 246 seconds]
jschoolcraft has joined #ruby
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
borodin has joined #ruby
Suntzu has quit [Read error: Connection reset by peer]
<OTORelic2> exit
OTORelic2 has quit [Quit: WeeChat 1.4]
frem has joined #ruby
OTORelic has joined #ruby
skislak has quit [Remote host closed the connection]
millerti has joined #ruby
jmorgado1 has quit [Quit: Leaving]
nfk|laptop has joined #ruby
senayar has quit []
neohunter has joined #ruby
aufi has quit [Quit: Konversation terminated!]
platzhirsch has joined #ruby
petertretyakov has joined #ruby
<yorickpeterse> OTORelic: command not found
<crime> yorickpeterse: try <exit></exit>
M-shine has joined #ruby
<irick> So i'm looking for some advice. I've read through The Well Grounded Rubyist, I've done the codecademy ruby course, I'm working through the ruby koans, I've got Practical Object Oriented Design and Design Patterns In Ruby. Are there any other steps I can be taking to really drill the language and some of the best practices into my head?
platzhirsch has quit [Quit: Leaving.]
infra-red has quit [Remote host closed the connection]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saneax is now known as saneax_AFK
jdm has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
[Butch] has joined #ruby
Guest71601 has quit [Remote host closed the connection]
Zai00 has joined #ruby
symm- has joined #ruby
noService has joined #ruby
<workmad3> irick: write some code :P
<workmad3> (sorry, it's friday afternoon, my sarcasm circuits are dialed to full)
platzhirsch has joined #ruby
<apeiros> workmad3: nice to see that your dial maxes out at "tame" ;-p
<irick> I am. I don't think i'm going to learn best practices by banging out C style ruby though.
<apeiros> irick: ask for reviews here
<apeiros> make sure you make small examples, ideally still runnable/reproducible
<havenwood> irick: What you listed is good stuff. Reading lots of code is also well worthwhile.
<workmad3> apeiros: there wasn't a huge amount of source to build decent sarcasm on :(
TomyWork has quit [Ping timeout: 244 seconds]
hxegon has quit [Quit: BRB]
M-Kodo has joined #ruby
w0jtas has quit [Quit: Leaving.]
GG is now known as sexytime
sudoubuntu has joined #ruby
zast has joined #ruby
kareeoleez has quit [Remote host closed the connection]
nartes has quit [Read error: Connection reset by peer]
saneax_AFK is now known as saneax
nartes has joined #ruby
evidex has joined #ruby
petertretyakov has quit [Quit: Lingo: www.lingoirc.com]
GnuYawk has quit [Ping timeout: 248 seconds]
fedexo has joined #ruby
LuckyABA has joined #ruby
<irick> havenwood: any projects you'd suggest looking through?
sudoubuntu has quit [Client Quit]
neohunter has quit [Quit: Textual IRC Client: www.textualapp.com]
lagweezle has joined #ruby
<Waqas> You only know ruby or ROR also?
ta_ has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 244 seconds]
troulouliou_div2 has joined #ruby
troulouliou_div2 has quit [Max SendQ exceeded]
<irick> I know some rails, I did a few interactive primers and i'm reading through Rails 4 In Action.
<Waqas> try this, Microblogger with ruby: http://tutorials.jumpstartlab.com/projects/microblogger.html
jdm has quit [Ping timeout: 244 seconds]
<irick> thanks havenwood, Waqas.'
nartes has quit [Read error: Connection reset by peer]
tubuliferous has joined #ruby
<Waqas> And if you are feeling ambitious, go through all of the projects in this page, they are all in Ruby, only: http://www.theodinproject.com/ruby-programming
Suntzu has joined #ruby
kareeoleez has joined #ruby
<irick> i heard of the odin project.
<Waqas> it is very good
amclain has joined #ruby
marcdel has quit [Ping timeout: 248 seconds]
CausaMortis has joined #ruby
jgt4 has joined #ruby
jhack has joined #ruby
roger_rabbit has joined #ruby
bmf has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
rolha has joined #ruby
<irick> It's kinda funny, I'm at ACR right now and there have been very few ruby talks. Thought it would be a better learning experience but it seems a lot more a social experience.
CausaMortis has quit [Read error: Connection reset by peer]
merida has joined #ruby
djellemah_ has joined #ruby
gizmore has joined #ruby
aegis3121 has quit [Ping timeout: 276 seconds]
skweek has quit [Ping timeout: 276 seconds]
marxarelli has joined #ruby
Suntzu has quit [Read error: Connection reset by peer]
jdm has joined #ruby
KnownSyntax has quit [Ping timeout: 240 seconds]
drptbl has quit [Ping timeout: 276 seconds]
kareeoleez has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
djellemah has quit [Ping timeout: 260 seconds]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
merida has quit [Remote host closed the connection]
Blaguvest has joined #ruby
BSaboia has quit [Ping timeout: 240 seconds]
KensoDev has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
tubuliferous has quit [Ping timeout: 244 seconds]
nfk|laptop has quit [Ping timeout: 264 seconds]
joonty has quit [Ping timeout: 264 seconds]
rkazak has quit [Ping timeout: 252 seconds]
tubuliferous has joined #ruby
M-mistake has joined #ruby
baweaver has joined #ruby
davedev24 has joined #ruby
bogn has joined #ruby
sexytime is now known as GitGud
Xeago has joined #ruby
dANOKELOFF has quit []
bluOxigen_ has joined #ruby
danand has quit [Read error: Connection reset by peer]
bogn has quit [Client Quit]
danand has joined #ruby
jdm_ has joined #ruby
jdm has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 264 seconds]
sudoubuntu has joined #ruby
sudoubuntu has quit [Client Quit]
floatingpoint has joined #ruby
jgt4 has quit [Ping timeout: 248 seconds]
tubuliferous has quit [Ping timeout: 240 seconds]
norc has joined #ruby
kareeoleez has joined #ruby
platzhirsch has left #ruby [#ruby]
gnufied has quit [Quit: Leaving]
grill has quit [Ping timeout: 276 seconds]
ascarter has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
ascarter has quit [Read error: Connection reset by peer]
jdm_ has quit [Ping timeout: 244 seconds]
Suntzu has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
Snowy has quit [Quit: ragequit]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
ramfjord has joined #ruby
madgen has quit [Ping timeout: 240 seconds]
_djbkd has joined #ruby
Alayde has joined #ruby
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
hxegon has joined #ruby
wsk has joined #ruby
platzhirsch has joined #ruby
<platzhirsch> With an array of tuples [[Time, Integer]] and Time contains days, for instance 2016-03-01, 2016-03-02 and so on
wsk has quit [Client Quit]
<platzhirsch> there are gaps in between, what's the neatest way to fill them with [_, 0] ?
<platzhirsch> is there a way with zip?
<havenwood> platzhirsch: gaps?
<platzhirsch> havenwood: gaps as in missing days
hinbody has quit [Ping timeout: 244 seconds]
nanoz has quit [Read error: Connection reset by peer]
<apeiros> platzhirsch: are they sorted?
<platzhirsch> yep
PedramT has joined #ruby
jackjackdripper has joined #ruby
<apeiros> then you can use lut=ary.to_h; (ary.first.first.to_date..aray.last.first.to_date).map { |d| [d, lut[h] || 0] }
<apeiros> might need some parens
<platzhirsch> ahh sweet
<apeiros> plain ruby might not have .to_date
crime has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
lsmola has quit [Ping timeout: 252 seconds]
platzhirsch has left #ruby [#ruby]
tomchapin has joined #ruby
<apeiros> oh, right, needs h.to_time in the lookup
<apeiros> and at least ruby 2.3 has Time#to_date and Date#to_time :)
<apeiros> though IMO you should use Date instead of Time anyway there.
skweek has joined #ruby
Begi has left #ruby [#ruby]
tildes has joined #ruby
evidex has quit [Ping timeout: 240 seconds]
rake_db__ has quit [Remote host closed the connection]
dionysus69 has joined #ruby
kareeoleez has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 252 seconds]
symm- has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
knopkodav has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
rcvalle has joined #ruby
trinaldi has joined #ruby
PedramT has quit [Remote host closed the connection]
hakunin has quit [Remote host closed the connection]
kareeoleez has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
knopkodav has quit [Client Quit]
The_Phoenix has joined #ruby
shinnya has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
rbennacer has quit [Remote host closed the connection]
<norc> apeiros, to_date is probably one of the most widely used 2.3 features then in my applications. ;-)
<apeiros> norc: I'm actually not sure when it was added to plain ruby. I just remember at least 1.8 not having them. and it was PITA.
DoubleMalt has joined #ruby
The_Phoenix has joined #ruby
rbennacer has joined #ruby
_stu_ has quit [Quit: _stu_]
baweaver has quit [Remote host closed the connection]
The_Phoenix has quit [Max SendQ exceeded]
kareeoleez has quit [Ping timeout: 250 seconds]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
freerobby has quit [Quit: Leaving.]
elifoster has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
mark2 has quit [Remote host closed the connection]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has quit [Quit: Zai00]
freerobby has joined #ruby
tubuliferous has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
tomchapin has joined #ruby
merida has joined #ruby
Devalo has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
veloutin has quit [Ping timeout: 244 seconds]
The_Phoenix has quit [Max SendQ exceeded]
rbennacer has quit [Remote host closed the connection]
gregf has quit [Read error: No route to host]
abyx has joined #ruby
The_Phoenix has joined #ruby
abyx has quit [Client Quit]
The_Phoenix has quit [Max SendQ exceeded]
Zai00 has joined #ruby
kadoppe has quit [Ping timeout: 260 seconds]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
GodFather has quit [Ping timeout: 248 seconds]
The_Phoenix has joined #ruby
kadoppe has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
n008f4g_ has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
abrausch has quit []
bb010g has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
benlieb has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
codecop has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
karmatr0n has quit [Ping timeout: 246 seconds]
The_Phoenix has quit [Max SendQ exceeded]
kareeoleez has joined #ruby
aegis3121 has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<gizmore> how could i check if two objects overlap in class hierarchy.... eg: check_compatible(4, 4.0) # => true
<gizmore> hmm... all inherit from object :/
<norc> gizmore, use composition, not inheritance.
The_Phoenix has joined #ruby
<norc> Oh silly me.
<norc> My head failed to parse that sentence.
aegis312_ has joined #ruby
<norc> gizmore, be more specific what you mean.
The_Phoenix has quit [Max SendQ exceeded]
chocoelho has left #ruby [#ruby]
kadoppe has quit [Ping timeout: 244 seconds]
noService has quit [Read error: Connection reset by peer]
noService has joined #ruby
noService has joined #ruby
aegis3121 has quit [Read error: Connection reset by peer]
noService has quit [Changing host]
<norc> gizmore, what are you trying to do?
<gizmore> background: i have some merge_options function, and want to check if the option is valid... thought checking classA == classB is cool
polyidus has joined #ruby
GodFather has joined #ruby
<gizmore> i guess it´s not a good idea :)
<norc> gizmore, if you gist some code it would be easier to tell how it can be solved elegantly.
stannard has quit [Remote host closed the connection]
<apeiros> gizmore: option.is_a?(LowestCommonAncestor)
kareeoleez has quit [Ping timeout: 276 seconds]
madgen has joined #ruby
stannard has joined #ruby
norc has left #ruby ["Leaving"]
chosen1 has joined #ruby
terlar has quit [Quit: WeeChat 1.4]
<gizmore> apeiros: both objects are arbitrary :)
norc has joined #ruby
FooMunki has joined #ruby
<apeiros> well, code can't do "arbitrary". either you have an algorithm, or bust.
<gizmore> norc: too lazy for a gist... here is the code https://github.com/gizmore/activerecord-magic/blob/master/lib/active_record/magic/setting/arm-options.rb ... checking if arbitrary objects are compatible is unpossible, so i will just force floats for the option in question
openstruct has quit []
<havenwood> >> def gizmorable? a, b; ((a.class.ancestors & b.class.ancestors).grep(Class) - [Object, BasicObject]).any? end; [gizmorable?(4, 'hi'), gizmorable?(4, 0.4)]
<ruby[bot]> havenwood: # => [false, true] (https://eval.in/550076)
<gizmore> Oo
<gizmore> havenwood: you are a genius
<norc> Though testing for both Object and BasicObject seems a bit silly.
PedramT has joined #ruby
<norc> Oh wait, today I really suck at this.
madgen has quit [Ping timeout: 240 seconds]
elaptics is now known as elaptics`away
fedexo has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
<gizmore> havenwood: haha... it complains about 7.seconds vs 8.0 now
ChiefAlexander has joined #ruby
kareeoleez has joined #ruby
BSaboia has joined #ruby
PedramT has quit [Remote host closed the connection]
jmacdonald has joined #ruby
<jmacdonald> hi. ruby-nuby here.
<havenwood> jmacdonald: welcome!
<gizmore> puts "Hello jmacdonald"
gregf has joined #ruby
Karix has joined #ruby
<jmacdonald> actually i know zero ruby. I just know that i'm trying to run bundle exec rake test on a puppet repo.. and i keep getting this : Rake Aborted \n NameError: uninitialized constant Syck
<jmacdonald> so i installed the gem syck
<jmacdonald> still no go
<gizmore> jmacdonald: probably put it in your Gemfile?
nerium has quit [Quit: nerium]
huyderman has quit [Ping timeout: 248 seconds]
<jmacdonald> touche.
<jmacdonald> i'll read into that some. tks
<gizmore> very welcome
sudoubuntu has joined #ruby
sudoubuntu has quit [Client Quit]
<havenwood> jmacdonald: prefixing `bundle exec` runs it "in the context of your bundle," meaning only with the exact gems from your Gemfile.lock file
<havenwood> jmacdonald: putting new gems in your Gemfile and running `bundle install` will update the Gemfile.lock
ljd has joined #ruby
kareeoleez has quit [Ping timeout: 264 seconds]
ChiefAlexander has quit [Ping timeout: 240 seconds]
<jmacdonald> Thanks!
<ljd> In ruby 2.3.0 > d = {}; d[:a][:b] = :foo returns nill instead of raising an error
<ljd> Is that intended?
<norc> >> d = {}; d[:a][:b] = :foo
<ruby[bot]> norc: # => nil (https://eval.in/550079)
<norc> 22>> d = {}; d[:a][:b] = :foo
<adaedra> I think it's a known bug
<ruby[bot]> norc: # => undefined method `[]=' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/550080)
<adaedra> Ox0dea ?
postmodern has joined #ruby
<jmacdonald> okie, i added gem 'syck', '~>1.1.0' to my Gemfile, ran bundle install it installed. same error still.
<adaedra> thank you norc
rbennacer has joined #ruby
Yiota has joined #ruby
huyderman has joined #ruby
Suntzu has quit [Read error: Connection reset by peer]
rake_db_migrate has joined #ruby
rake_db_migrate has quit [Remote host closed the connection]
<gizmore> is yield async if you use threads? Oo
rake_db_migrate has joined #ruby
kadoppe has joined #ruby
<norc> gizmore, what do you mean?
<gizmore> i wanna turn an async function to sync, wrapping it... one sec
ljd has quit [Quit: ChatZilla 0.9.92 [Firefox 45.0/20160304114936]]
<havenwood> jmacdonald: Add a `require 'syck'` to the top of the files where you use `Syck`.
abyx has joined #ruby
eljimmy has quit [Disconnected by services]
DANI111 has joined #ruby
PedramT has joined #ruby
eljimmy has joined #ruby
eljimmy has quit [Disconnected by services]
<gizmore> norc: the command will open a thread, and when it finished triggers the arm_subscribe thingy.... i thought wrapping with the above function is enough to wait for the result
eljimmy has joined #ruby
PedramT has quit [Remote host closed the connection]
kadoppe has quit [Ping timeout: 248 seconds]
kareeoleez has joined #ruby
huyderman has quit [Ping timeout: 246 seconds]
<norc> gizmore, nope, yield is just a fancy way of saying "call that block"
stannard has quit [Read error: Connection reset by peer]
tubuliferous has quit [Ping timeout: 244 seconds]
<norc> gizmore, the trick will lie in the implementation of arm_subscribe that makes this asynchronous.
<norc> So you will have to look at whatever library lies behind that to figure out how you can get notified. Maybe it implements a Deferred object.
<gizmore> i want to turn the async into sync
<norc> gizmore, generally you dont.
<gizmore> so wait with my func for the result
<gizmore> for my spec i want :)
<norc> Mock it.
<norc> Dont write custom code to satisfy your specs.
aegis312_ has quit [Ping timeout: 240 seconds]
<gizmore> i need that async to sync there generally
<norc> I doubt that.
<gizmore> it will be possible to call plugins from command line
<gizmore> and the command has to finish before it can return results
<norc> Go write some JavaScript code with lots of XHR - after a day you will begin to realize how awesome writing async code is.
kareeoleez has quit [Ping timeout: 260 seconds]
<gizmore> you are not helping by saying don´t do what you want :D
<norc> gizmore, you are solving the problem in the wrong way.
<gizmore> i just wanna write a function that waits for the command and returns the output then
<norc> And by locking your mind into a solution you are effectively preventing from actually tackling the problem.
veloutin has joined #ruby
<norc> gizmore, what library are you using?
PedramT has joined #ruby
<gizmore> none/mine... activerecord-magic/events
<gizmore> and ricer4 :P
gnufied has joined #ruby
<norc> gizmore, well without knowing how it works and what it does nobody here can help you.
<chosen1> @gizmore I think what you are looking for is to join the threads.
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
<gizmore> chosen1: yeah :(
PedramT has quit [Ping timeout: 268 seconds]
<gizmore> i think i have to look into that one lib...
<norc> chosen1, unless of course its async because of IO..
kadoppe has joined #ruby
<gizmore> ruby-concurrency
jaruga__ has quit [Quit: jaruga__]
<norc> Or some completely different mechanism.
<chosen1> gizmore the function is called join, I belive.
<gizmore> chosen1: the general design does not feature to know if a plugin uses threads or not
<chosen1> I'm new myself so I can't provide a working poc for you.
<gizmore> so i don´t know how many and which thread to join
<gizmore> i just have to wait for an event in the subscribe... ruby-concurrency seems to feature that, but looked complicated
ldnunes has quit [Read error: Connection reset by peer]
merida has quit [Remote host closed the connection]
<norc> gizmore, it sounds like your library already uses a publish/subscribe from the methods being used.
<gizmore> yes
ldnunes has joined #ruby
Cohedrin has joined #ruby
<gizmore> but how could i wait inside a func for the publish?
<norc> Stacking another ontop to derail the asynchronous behavior. Im fairly certain that you should rethink your goals.
Zai00 has quit [Quit: Zai00]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
icedp has quit [Quit: _]
[Butch] has joined #ruby
adgtl has quit [Read error: Connection reset by peer]
raeoks has joined #ruby
jmacdonald has left #ruby [#ruby]
<norc> Its a lightweight solution that lets you derail the async code of your library entirely.
chipotle has joined #ruby
baweaver has quit [Ping timeout: 260 seconds]
<gizmore> thanks... will look at it
<gizmore> lunchtime :)
<norc> Of course.
<norc> It wont do what you expect it to.
stannard has joined #ruby
cdg has quit [Remote host closed the connection]
kareeoleez has joined #ruby
kadoppe has quit [Ping timeout: 260 seconds]
dmr8 has joined #ruby
<norc> gizmore, in a nutshell your callback needs to emit a signal/message, and your controlling code needs to continuously poll until it seems that message.
workmad3 has quit [Ping timeout: 244 seconds]
n008f4g_ has quit [Ping timeout: 264 seconds]
Devalo has joined #ruby
polyidus has quit [Quit: Later]
chouhoul_ has joined #ruby
Xeago has quit [Remote host closed the connection]
emilkarl has joined #ruby
Suntzu has joined #ruby
Xeago has joined #ruby
Devalo has quit [Remote host closed the connection]
polyidus has joined #ruby
kareeoleez has quit [Ping timeout: 276 seconds]
codecop has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
Xeago has quit [Ping timeout: 276 seconds]
aegis3121 has joined #ruby
emilkarl has quit [Quit: Textual IRC Client: www.textualapp.com]
ChiefAlexander has joined #ruby
Mia has joined #ruby
kareeoleez has joined #ruby
baweaver has joined #ruby
sauvin has quit [Remote host closed the connection]
Yiota has quit [Ping timeout: 244 seconds]
danand has quit [Ping timeout: 276 seconds]
DANI111 has quit []
madgen has joined #ruby
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
rcvalle has quit [Quit: rcvalle]
IrishGringo has quit [Remote host closed the connection]
DANI111 has joined #ruby
zeroDivisible has joined #ruby
edwinvdgraaf has joined #ruby
kareeoleez has quit [Ping timeout: 240 seconds]
zast has quit [Remote host closed the connection]
ekinmur has joined #ruby
Giauzar has joined #ruby
tubuliferous has joined #ruby
postmodern has quit [Quit: Leaving]
edwinvdg_ has joined #ruby
yuung has joined #ruby
Musashi007 has joined #ruby
tubuliferous is now known as Guest67383
davee_ has joined #ruby
drptbl has joined #ruby
kareeoleez has joined #ruby
sepp2k has quit [Quit: Leaving.]
edwinvdgraaf has quit [Ping timeout: 250 seconds]
Guest67383 has quit [Ping timeout: 246 seconds]
drptbl has quit [Client Quit]
rcvalle has joined #ruby
<yuung> silly q: why does ruby pass by reference? i always thought most scripting languages did pass by value.
<apeiros> no. passing by value would be silly for almost all OO languages.
<norc> yuung, strictly speaking ruby is pass by value.
<apeiros> you'd have to copy potentially large objects
ocbtec has quit [Quit: leaving]
<yuung> apeiros, why is that? isn't java pass by value?
SCHAAP137 has joined #ruby
<yuung> norc, how so?
<norc> >> def foo(bar); bar = 23 end; q = 42; foo(q); puts q
<ruby[bot]> norc: # => 42 ...check link for more (https://eval.in/550084)
hxegon is now known as hxegon_AFK
<apeiros> yuung: no. iirc java works the same way as ruby there. which might cause confusion - see norc's explanation (hoping he'll explain properly :D)
hxegon_AFK has quit [Quit: BRB]
<yuung> >> s = "a"; def foo(a); a = "b"; end; foo(s); p s
<ruby[bot]> yuung: # => "a" ...check link for more (https://eval.in/550085)
<norc> And then locally compile this C++ program and execute it: #include <iostream> void q(int &x) { x++; } int main() { int a = 1; q(a); std::cout << a << std::endl ;}
<norc> That is pass by reference as a comparison.
bronson has joined #ruby
Guest38 has joined #ruby
madgen has quit [Ping timeout: 260 seconds]
<yuung> norc, that's so weird; i literally did the same thing in IRB (gist here https://gist.github.com/johnmarinelli/c45e5440a42c0e78f7853df33a62b19d) and i got something different
<yuung> norc okay nvm don't look at that i had a brainfart
<gizmore> yuung: java is pass by reference, except for primitives.... same as ruby. but in ruby: There are no primitives \o/
<norc> yuung, the method foo returns its last expression, which is an assignment, which returns the assignment expression, which is "john"
<norc> gizmore, java is pass by value, sorry.
<gizmore> no... it´s pass by ref
<gizmore> they say the ref is a value
<norc> gizmore, that still makes it pass by value.
<norc> gizmore, its just pointers renamed to references.
tildes has quit [Ping timeout: 260 seconds]
<gizmore> everything is a value then
<norc> gizmore, look at my C++ example.
<norc> That is pass by reference.
baweaver has quit [Remote host closed the connection]
<norc> gizmore, only very few langauges have pass by reference, mostly because its difficult to implement and hard to use right.
tjohnson has joined #ruby
hxegon has joined #ruby
polyidus has quit [Quit: Later]
<norc> Especially since pointers provide a really easy workaround to modify things outside your function.
<gizmore> ruby is pass by reference... it does not copy values
bronson has quit [Ping timeout: 276 seconds]
<gizmore> java the same
freerobby has quit [Quit: Leaving.]
<norc> gizmore, if you have the need to redefine the terminology then fine.
chouhoul_ has quit [Remote host closed the connection]
freerobby has joined #ruby
<norc> But both Java and Ruby are 100% pass-by-value.
<norc> I have shown you examples.
<yuung> norc got it. ty :)
<norc> Either show me proof or accept it.
<gizmore> if you confuse reference and value then java is pass by value
chouhoulis has joined #ruby
polyidus has joined #ruby
<norc> gizmore, java has that tendency to name things differently. What Java calls a reference is a pointer in reality.
<norc> The difference is really important.
<gizmore> yes... and you pass pointers
<norc> #include <iostream> void q(int &x) { x++; } int main() { int a = 1; q(a); std::cout << a << std::endl ;}
<gizmore> it does not do a copy of an object, if you pass it
<norc> That is not a pointer.
<gizmore> i see
crameth has quit [Quit: crameth]
<norc> Let me show you what how a pointer works instead
<gizmore> that´s ugly!
<norc> void q(int *x) { x++; } int main() { int a = 1; q(a); std::cout << a << std::endl ;}
<gizmore> a refernce is a hidden pointer?
<norc> No.
<norc> A reference is just that - an actual reference to the object.
<gizmore> what is a pointer then?
<norc> A memory address.
<norc> A number if you want.
<gizmore> :)
<norc> And in my last snipped I modified that pointer.
<gizmore> and a reference is in fact just a pointer too
<gizmore> but i got your point... thanks
<norc> No it is not.
<norc> They are so inherently different in so many ways.
<shevy> this is fun
<norc> But
<norc> I dont have time to explain this to you.
<norc> Go read a book or something.
duckpuppy has joined #ruby
<gizmore> i understood the namings now, thanks
rake_db__ has joined #ruby
<gizmore> under the hood, a reference is just a number too.... kinda pointer as well :P but whatever
Spami_ has quit [Quit: This computer has gone to sleep]
<norc> Ignore what happens under the hood.
<norc> The important thing is the behavior.
<norc> References provide an absolutely elegant solution in C++ to do a lot of things that pointers can do, without the bugs.
<norc> Without the crashes.
<gizmore> because a reference can´t be null?
jgt4 has joined #ruby
<norc> Pointers mean you need to manage memory, which leads to null ptr deferencings, access violations, double freeing, overflows errors
<norc> Memory leaking
<norc> All kinds of nasty things.
rake_db_migrate has quit [Ping timeout: 260 seconds]
duckpuppy has quit [Ping timeout: 260 seconds]
Musashi007 has quit [Quit: Musashi007]
rake_db_migrate has joined #ruby
<norc> yuung, I kind of have hidden one important thing about this whole though.
Suntzu has quit [Read error: Connection reset by peer]
<benzrf> hold on
stannard has quit [Remote host closed the connection]
brendan- has quit [Ping timeout: 244 seconds]
<yuung> norc yes?
<benzrf> i thought references were a feature where you could pass a sort of "reference to a variable", so that you can assign to the variable which you have a reference to
<norc> >> def a(q); q.replace('42'); end; str = "23"; q(str); puts str
<ruby[bot]> norc: # => undefined method `q' for main:Object (NoMethodError) ...check link for more (https://eval.in/550086)
<norc> >> def a(q); q.replace('42'); end; str = "23"; a(str); puts str
<ruby[bot]> norc: # => 42 ...check link for more (https://eval.in/550087)
ssiris has joined #ruby
<norc> yuung, the relevant bit here is that variables are basically like "pointers" to objects.
stannard has joined #ruby
<gizmore> benzrf: in c++ (and C#, others?) there are indeed "references" ... which is a pointer with another syntax
rake_db__ has quit [Ping timeout: 250 seconds]
stannard has quit [Remote host closed the connection]
<norc> And when you call a method with an argument, it effectively passes the value of that pointer.
madgen has joined #ruby
stannard has joined #ruby
<norc> yuung, but it still is pass by value - but you can still wreck havocs on external objects by using destructive methods
<benzrf> honestly, all this confusion becomes irrelevant when you go purely functional
<benzrf> #haskell4lyfe
<gizmore> a function is just a pointer!!!
<gizmore> ;D
<gizmore> terminology fml
mr_oh has joined #ruby
Xeago has joined #ruby
DANI111 has quit []
<mr_oh> mr. weaver?
Zai00 has joined #ruby
Xeago has quit [Remote host closed the connection]
workmad3 has joined #ruby
<shevy> benzrf is a monad like a pointer?
<norc> yuung, so in summary: Variables are pointers to objects. Arguments are passed by value (giving you access to the same object without copying it). Assignment does not change the object, but changes the pointer of your variable.
alexherbo2 has quit [Quit: WeeChat 1.4]
<norc> That also shows how Ruby objects die. Once there is no variable or object pointing at a given object, it will get marked and sweeped.
<norc> By the garbage collector.
dionysus69 has joined #ruby
<benzrf> shevy: not even slightly
Es0teric has joined #ruby
devbug has joined #ruby
<mr_oh> as far as I could figure, when I read about them, monad is a funnel with its own scope
rcvalle has quit [Quit: rcvalle]
idletask has quit [Quit: .]
rake_db__ has joined #ruby
dvinciguerra__ has quit [Ping timeout: 246 seconds]
mr_oh has quit [Ping timeout: 250 seconds]
rake_db_migrate has quit [Ping timeout: 276 seconds]
rake_db__ has quit [Remote host closed the connection]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rcvalle has joined #ruby
yuung has quit [Ping timeout: 244 seconds]
rcvalle has quit [Client Quit]
rake_db_migrate has joined #ruby
symm- has joined #ruby
Devalo has joined #ruby
aqoom has quit [Ping timeout: 264 seconds]
dvinciguerra__ has joined #ruby
rcvalle has joined #ruby
renatosilva has joined #ruby
<renatosilva> hi, I have deleted old versions of some gems but they keep appearing in version list, how can I remove these ghost references?
<norc> renatosilva, how did you delete them, what are you doing to think they are there?
<renatosilva> norc: can't recall, accessing gem page
<renatosilva> norc: note that I don't think the gem is there
rake_db_migrate has quit [Remote host closed the connection]
<norc> renatosilva, what command are you using that tells you the gem is still there
<norc> The exact command please.
<renatosilva> norc: command? no, browser
ekinmur has joined #ruby
rake_db_migrate has joined #ruby
<renatosilva> ^example
cpruitt has quit [Quit: cpruitt]
<norc> renatosilva, are you trying to delete a gem from rubygems?
rake_db_migrate has quit [Read error: Connection reset by peer]
<renatosilva> norc: again, I don't think the gem is there, neither do I know whether the page is saying the gem is there
rake_db_migrate has joined #ruby
Suntzu has joined #ruby
<renatosilva> norc: no, I am not trying, I did in the past
boboc has joined #ruby
<renatosilva> norc: then recently I noticed these old versions still referenced
<norc> renatosilva, Well I did not gather that from your initial couple sentences.
<shevy> renatosilva how did you delete these old versions?
<renatosilva> shevy: as I said, can't recall
<norc> renatosilva, anyhow, use gem yank to get rid of them
<renatosilva> shevy: probably the documented way at the time
<norc> renatosilva, the gem is still there. Just use gem yank and it will get pulled off rubygems for you.
rcvalle has quit [Quit: rcvalle]
<gizmore> chosen1: It was Thread.list.tap({|t|t.shift;}).map({|t|t.join} indeed
<majuscule> bundler is telling me it can't find Chef, but I see chef (12.8.1 ruby universal-mingw32, 12.3.0 x86-mingw32) with `gem search chef`
adgtl has joined #ruby
<majuscule> what might i be doing wrong?
Pumukel has joined #ruby
rake_db_migrate has quit [Remote host closed the connection]
<majuscule> chef*, no capital
<norc> majuscule, bundler does not use your system gem store, but rather a separate.
<norc> majuscule, specify Chef in your Gemfile if you want to use it.
<shevy> renatosilva ah; "gem yank repman -v 2014.12.4"
rcvalle has joined #ruby
<majuscule> norc: 'chef' is in my gemfile, that's the point? i think i'm confused
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rcvalle has quit [Client Quit]
<norc> majuscule, gist the part from your Gemfile, and give us your command that complains that Chef is missing.
cpruitt has joined #ruby
krz has quit [Read error: Connection reset by peer]
<majuscule> norc: http://sprunge.us/VjBd
<majuscule> bundler install --path vendor/bundle
jt__ has joined #ruby
<norc> majuscule, and the error message?
rcvalle has joined #ruby
ur5us has joined #ruby
<majuscule> Could not find gem 'chef' in any of the gem sources listed in your Gemfile or available on this machine.
yuung has joined #ruby
<gizmore> majuscule: the gem is not available in source rubygems.net
<gizmore> or whatever your source is
<gizmore> try gem 'chef', git: 'foo/chef'
<majuscule> gizmore: it is: https://rubygems.org/gems/chef
<gizmore> funny
<norc> majuscule, that is bizarre.
<gizmore> majuscule: what is your source(s) in Gemfile?
<majuscule> fwiw this is using rvm and ruby 2.3.0p0
<gizmore> usually you have only rubygems.org
<norc> gizmore, do yourself a favour and click on the link above.
<norc> And read
<majuscule> gizmore: the entire gemfile is that paste
baweaver has joined #ruby
marxarelli is now known as marxarelli|afk
<norc> majuscule, is there a chance you have a mismatch between your ruby executable and bundle?
elifoster has quit [Ping timeout: 260 seconds]
<majuscule> which bundle gives ~/.rvm/gems/ruby-2.3.0/bin/bundle
ur5us has quit [Remote host closed the connection]
<norc> and which ruby?
<renatosilva> norc, shevy: not effective, ghost versions still show up https://rubygems.org/gems/repman/versions
<majuscule> ruby 2.3.0p0
swills has quit [Ping timeout: 248 seconds]
<norc> renatosilva, ah. Use gem cleanup repman
<majuscule> norc: one odd thing i noticed - when i do this from another project, i see it saying Fetching gem metadata from https://rubygems.org/........ etc
<norc> Oh wait
<norc> Silly me again
<norc> .I give up.
<majuscule> it does not do that here, it just immediately errors
<shevy> renatosilva these are not ghost versions, they are gone
<norc> majuscule, is that your entire Gemfile?
karmatr0n has joined #ruby
<majuscule> norc: yes
<renatosilva> shevy: name it as you like
<norc> majuscule, Id say delete your entire bundle directory and reinstall for good measure.
<shevy> you only have to read the description there
<renatosilva> shevy: I'm sorry?
baweaver has quit [Remote host closed the connection]
<shevy> sorry for what?
<renatosilva> hahaha
<shevy> "This gem has been yanked, and it is not available for download directly or for other gems that may have depended on it."
<majuscule> norc: .rvm/gems/ruby-2.3.0/gems/bundler-1.11.2 and .rvm/gems/ruby-2.3.0/bin/bundle ?
mdw has joined #ruby
<norc> majuscule, no your vendor/bundle
<renatosilva> I want the references to be completely deleted, like this one https://rubygems.org/gems/repman/versions/2016.4.8
<renatosilva> page not found ;)
<majuscule> norc: i've tried that :-( no change
<majuscule> rm'd the gemfile.lock too
<shevy> has 2016.4.8 ever existed?
<gizmore> >> Thread.list.tap{|t|t.shift;}.map{|t|t.join}
<ruby[bot]> gizmore: # => [] (https://eval.in/550091)
<majuscule> erm, actually the lock file never was created in the first place as it keeps failing
<renatosilva> shevy: no, which is the effect I want
<norc> majuscule, do you have a .rmvrc in your project?
Meow-J has quit [Quit: Connection closed for inactivity]
<majuscule> norc: holy shit wait i think i figured it out
<majuscule> norc: bundle install works, bundler install doesn't
<norc> majuscule, please let me know if you do.
<shevy> renatosilva I guess the proper answer is that this is not possible because the feature is not available. You'd have to suggest this to the rubygems.org issue tracker: https://github.com/rubygems/rubygems.org/issues
<majuscule> i didn't realize they were even different things
diegoviola has joined #ruby
<norc> majuscule, oh my, I didnt spot that.
<renatosilva> shevy: thanks for sharing your thought with the world
<shevy> I am simply stating how it is
<renatosilva> I never said you are not
<norc> majuscule, well one is for managing bundles (bundler), while the other one allows you to work inside a specific bundle.
elifoster has joined #ruby
mdw has quit [Ping timeout: 246 seconds]
Devalo has quit [Remote host closed the connection]
<majuscule> norc: bundler{,r} --help give the exact same man page...
<majuscule> lol
<renatosilva> is there a concept of deleting/yanking "the gem itself" so that when you access its page there's a 404?
<norc> majuscule, Im thinking now.
infernix has quit [Ping timeout: 260 seconds]
<renatosilva> ...so that I reach my goal, if anyone knows of a way please tell me, thanks :)
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zapata has quit [Ping timeout: 260 seconds]
mr_oh has joined #ruby
<norc> majuscule, sorry again Im confused.
<norc> majuscule, this should not happen.
ekinmur has joined #ruby
<norc> They are identical.
Musashi007 has joined #ruby
<norc> majuscule, use which on both
<norc> see what happens
ged has quit [Read error: Connection reset by peer]
mahlon has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
<majuscule> norc: they are both ruby_executable_hooks script text executable .rvm/gems/ruby-2.3.0/bin/bundle{,r}
ged has joined #ruby
<majuscule> which are identical except one does load Gem.bin_path('bundler', 'bundler', version)
<majuscule> and the other loads bundle...
mahlon has joined #ruby
<norc> majuscule, and both executables are 100% identical.
<norc> Ive dug into bundler a minute ago.
<majuscule> except one works and one doesn't :D
<norc> This makes no sense at all.
<majuscule> agreed
<norc> majuscule, Im really thinking RVM is to blame.
<majuscule> i believe it
<norc> Which is another reason why I use chruby. ;-)
mdw has joined #ruby
<majuscule> haha, i have no affiliation. just trying to get a setup working
<majuscule> i'd heard of rvm in the past
<majuscule> thought it might help another dev who's osx el capitan ruby install is broken
<norc> majuscule, I just dislike how highly intrusive RVM is. Its a recipe for bugs and problems.
_djbkd has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
<renatosilva> "We will be removing previously yanked gems over the next few weeks."
jt__ has quit [Remote host closed the connection]
pawnbox has joined #ruby
jt__ has joined #ruby
Waqas has quit [Ping timeout: 276 seconds]
<majuscule> how can i pass some build instructions to a gem i'm trying to install into vendor/bundle?
<majuscule> aka i need --use-system-libraries etc to build nokogiri
Waqas has joined #ruby
<shevy> the "yanked" tag will remain
<majuscule> which is fine to install on it's own, but fails through bundler
pawnbox has quit [Remote host closed the connection]
zapata has joined #ruby
pawnbox has joined #ruby
abyx has quit [Quit: This computer has gone to sleep]
marxarelli|afk is now known as marxarelli
borodin has quit [Ping timeout: 250 seconds]
polyidus has quit [Quit: Later]
renatosilva has left #ruby ["http://pidgin.renatosilva.net - Pidgin++"]
<workmad3> majuscule: the nokogiri README tells you how to do that, iirc
<gizmore> it("produces predictable random numbers") do ......
baweaver has joined #ruby
<gizmore> funny name for a test, in 1984
elifoster has quit [Ping timeout: 244 seconds]
polyidus has joined #ruby
<shevy> lol
trinaldi has quit [Quit: tgif/s]
Don_John has joined #ruby
Don_John has quit [Remote host closed the connection]
polyidus has quit [Client Quit]
<mr_oh> I can't quite figure out why this will not write @title and "---" separator to file. It only writes the list of items.
snoobydoo has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
polyidus has joined #ruby
sepp2k has joined #ruby
<norc> mr_oh, puts like that writes to stdout and returns the string printed.
<norc> mr_oh, since you invoke a couple puts in succession, the last puts returns the printed list, which is then passed to write_to_file
Junaos_ has quit [Ping timeout: 252 seconds]
abyx has joined #ruby
<darix> majuscule: there is an env var too
Sou|cutter has quit [Ping timeout: 244 seconds]
rcvalle has quit [Quit: rcvalle]
<darix> majuscule: export NOKOGIRI_USE_SYSTEM_LIBRARIES=1
skade has joined #ruby
majuscule has quit [Ping timeout: 264 seconds]
kenichi has quit [Ping timeout: 260 seconds]
rcvalle has joined #ruby
lemur has joined #ruby
<norc> gizmore, that test makes perfect sense. ;-)
th__ has left #ruby ["blaa"]
<norc> predictable because a predictable seed is used.
papercode has quit [Ping timeout: 276 seconds]
tristanp_ has joined #ruby
miah has quit [Ping timeout: 240 seconds]
federales is now known as ^
shadoi has joined #ruby
bmn has quit [Ping timeout: 260 seconds]
postmodern has quit [Quit: Leaving]
Liothen has quit [Ping timeout: 276 seconds]
<gizmore> norc: that´s what i´m testing
tristanp_ has quit [Read error: Connection reset by peer]
zeroDi has joined #ruby
abyx has quit [Client Quit]
Nawn has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
miah has joined #ruby
rbennacer has quit [Remote host closed the connection]
Xeago has joined #ruby
cdg has joined #ruby
tristanp has joined #ruby
dangerousdave has joined #ruby
lemur has quit [Ping timeout: 268 seconds]
Junaos has joined #ruby
norc has quit [Read error: Connection reset by peer]
zeroDi has quit [Client Quit]
Liothen has joined #ruby
<shevy> it's random - and predictable!
Liothen has quit [Changing host]
Liothen has joined #ruby
zeroDi has joined #ruby
kenichi has joined #ruby
bmf has quit [Remote host closed the connection]
sudoubuntu has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
_stu_ has joined #ruby
yuung_ has joined #ruby
yuung has quit [Read error: Connection reset by peer]
johnmilton has quit [Quit: Namaste]
rcvalle has quit [Quit: rcvalle]
infra-red has joined #ruby
davee_ has quit [Quit: Leaving]
codezomb has joined #ruby
<gizmore> shevy: i am still working on IRC RPG ... and of course random is crucial for an rpg
<gizmore> shevy: that´s the rpg server: https://www.youtube.com/watch?v=7n8LNxGbZbs
imperator has left #ruby ["Leaving"]
rcvalle has joined #ruby
perlgod has quit [Ping timeout: 250 seconds]
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 45.0.1/20160315153207]]
Sou|cutter has joined #ruby
Begi has joined #ruby
majuscule has joined #ruby
papercode has joined #ruby
jdm has joined #ruby
<shevy> hah
<shevy> that reminds me of the marble piano
workmad3 has joined #ruby
bmn has joined #ruby
<gizmore> ricer4 bot is the 4th ruby version of my irc bot :)
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt4 has quit [Ping timeout: 248 seconds]
<gizmore> it speaks netcat,websockets,irc,libpurple and tty
infernix has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mr_oh> don't really get it
BrunoSaboia has joined #ruby
Begi1 has joined #ruby
<gizmore> mr_oh: me?
Begi has quit [Ping timeout: 250 seconds]
Begi1 is now known as Begi
<gizmore> nvm
<mr_oh> No. The puts thing with writing to file
<gizmore> mr_oh: which line?
treehug88 has quit [Read error: Connection reset by peer]
ekinmur has joined #ruby
<mr_oh> In my gist? Line 36... and the write to file on line 124
Giauzar has quit [Ping timeout: 244 seconds]
rcvalle has quit [Quit: rcvalle]
BSaboia has quit [Ping timeout: 268 seconds]
abyx has joined #ruby
rcvalle has joined #ruby
BrunoSaboia has quit [Ping timeout: 252 seconds]
gheegh has joined #ruby
jt__ has quit [Remote host closed the connection]
<mr_oh> Or maybe it is writing it all, but the last items overwrite the previous text
polyidus has quit [Quit: Later]
<shevy> have you tried append mode?
CloCkWeRX has quit [Quit: Leaving.]
rcvalle has quit [Client Quit]
<weaksauce> mr_oh puts returns nil and prints to stdout not to a file stream
ethnologic has quit [Ping timeout: 248 seconds]
<mr_oh> yeah but it emits the text that I can feed to write
x77686d has quit [Quit: x77686d]
Shidash has joined #ruby
polyidus has joined #ruby
ur5us has joined #ruby
pawnbox has quit [Remote host closed the connection]
quakephil has joined #ruby
SCHAAP137 has quit [Ping timeout: 276 seconds]
<quakephil> I have an object like this: [{"text"=>"test"}, {"text"=>"hello"}] what's the coolest way I can combine it to result in something like this: "test hello"
<quakephil> (ruby noob)
dhollinger has joined #ruby
<Ox0dea> >> [{"text"=>"test"}, {"text"=>"hello"}].map { |h| h['text'] } * ' ' # quakephil
<ruby[bot]> Ox0dea: # => "test hello" (https://eval.in/550107)
<quakephil> Nice... thanks
<Ox0dea> Sure.
mdw has quit [Ping timeout: 248 seconds]
stannard has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
codecop has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
<weaksauce> mr_oh f.puts is different than puts... f.puts is operating on the file stream that you opened up. the blank puts is operating on the stdout stream that is implicitly opened when you have a program running.
<OTORelic> >>puts "test"
mistermocha has joined #ruby
<OTORelic> >> puts "test"
<havenwood> OTORelic: #>> "test"
<weaksauce> >> x = puts("test"); x
<ruby[bot]> weaksauce: # => test ...check link for more (https://eval.in/550108)
<weaksauce> >> x = puts("test"); puts(x == nil)
<ruby[bot]> weaksauce: # => test ...check link for more (https://eval.in/550109)
<OTORelic> interesting little bot
infra-re_ has joined #ruby
tomchapin has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
metalic has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
infra-red has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
Es0teric has joined #ruby
_stu_ has quit [Quit: _stu_]
retro_ has joined #ruby
cdg has quit [Remote host closed the connection]
<Ox0dea> weaksauce: More specifically: https://eval.in/550111
itzjulien has joined #ruby
PedramT has joined #ruby
mdw has joined #ruby
SCHAAP137 has joined #ruby
itzjulien has left #ruby [#ruby]
skweek has quit [Ping timeout: 264 seconds]
mdw has quit [Max SendQ exceeded]
<mr_oh> I wanto to take the results as displayed in stdout and write it to file
mdw has joined #ruby
mdw has quit [Max SendQ exceeded]
Begi has left #ruby [#ruby]
devbug has quit [Read error: Connection reset by peer]
<shevy> yeah that is easy
PedramT has quit [Remote host closed the connection]
_djbkd has joined #ruby
mdw has joined #ruby
<weaksauce> you have to write to a file, build up the result as a string and write to a file or redirect your shell output into a file from the command line mr_oh
infernix has quit [Ping timeout: 260 seconds]
duckpuppy has joined #ruby
<weaksauce> shevy mr_oh is already doing that but not for all outputs.
PedramT has joined #ruby
ramfjord has joined #ruby
sgambino has quit [Quit: Textual IRC Client: www.textualapp.com]
barajasfab has quit [Ping timeout: 248 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Xeago has quit [Remote host closed the connection]
woodruffw has joined #ruby
mdw has quit [Ping timeout: 250 seconds]
stannard has joined #ruby
_djbkd has quit [Ping timeout: 250 seconds]
slappy16 has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
Saint_Philomena has joined #ruby
<Saint_Philomena> Hello. :)
djcp has quit [Ping timeout: 250 seconds]
Xeago has joined #ruby
barajasfab has joined #ruby
gnufied has quit [Quit: Leaving]
mistermocha has quit [Remote host closed the connection]
postmodern has joined #ruby
<baweaver> Saint_Philomena: welcome to #ruby
Macaveli has joined #ruby
mistermocha has joined #ruby
yfeldblum has joined #ruby
rcvalle has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
gnufied has joined #ruby
yos7ph has joined #ruby
blackmesa has joined #ruby
<Saint_Philomena> baweaver thank you :)
mistermocha has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
aeterne has joined #ruby
skweek has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hakunin has joined #ruby
aegis3121 has quit [Ping timeout: 264 seconds]
eljimbo has quit [Quit: This computer has gone to sleep]
PedramT_ has joined #ruby
mistermocha has quit [Remote host closed the connection]
GitGud is now known as TheGreatGudsby
Es0teric has quit [Quit: Computer has gone to sleep.]
dopie has joined #ruby
Giauzar has joined #ruby
PedramT__ has joined #ruby
<mr_oh> So i can make a variable -- a switch -- to go from stdout to the file ?
PedramT has quit [Ping timeout: 260 seconds]
dopie has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
rcvalle has quit [Quit: rcvalle]
<Ox0dea> mr_oh: You just need to invoke #puts twice (once on $stdout and again on your log file) wherever you want to write to both streams.
rcvalle has joined #ruby
mistermocha has joined #ruby
_djbkd has joined #ruby
rcvalle has quit [Client Quit]
mistermocha has quit [Remote host closed the connection]
tjohnson has quit [Quit: Connection closed for inactivity]
<Ox0dea> If you're doing that more than once, it's a pretty good candidate for method extraction.
mistermocha has joined #ruby
PedramT_ has quit [Ping timeout: 260 seconds]
yuung_ has quit [Read error: Connection reset by peer]
yuung has joined #ruby
PedramT__ has quit [Read error: Connection reset by peer]
skweek has quit [Ping timeout: 276 seconds]
chipotle has quit [Quit: cheerio]
<smathy> There's a tee gem too.
PedramT has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
kadoppe has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
dmr8 has quit [Quit: Leaving]
cpruitt has quit [Quit: cpruitt]
<mr_oh> Seems like this should be simple...
<shevy> very
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mr_oh> but I'm dumb!
<smathy> mr_oh, use the tee gem.
<Ox0dea> smathy pls
<smathy> I think it's a nice API actually.
x77686d has joined #ruby
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agit0 has joined #ruby
Rodya_ has quit [Quit: Leaving...]
jdm has quit [Remote host closed the connection]
jdm has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
rkazak has joined #ruby
ldnunes has quit [Quit: Leaving]
_mak has joined #ruby
<_mak> is it possible to require a gem only if the file is being executed on linux:
<_mak> ?
infernix has joined #ruby
kadoppe has quit [Ping timeout: 244 seconds]
ramfjord has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Ox0dea> _mak: `require 'foo' if RUBY_PLATFORM[/linux/]` or some such.
swills has joined #ruby
stannard has quit [Remote host closed the connection]
<VeryBewitching> You know, I still haven't been able to get Ruby working well on a Windows box.
<shevy> I used to just throw in the rubyinstaller
<_mak> Ox0dea: thanks!
<shevy> even ruby-gtk worked on it
<Ox0dea> _mak: Sure thing.
<_mak> ruby works fine on windows for me
nettoweb has quit [Read error: Connection reset by peer]
<Ox0dea> Famous last words.
OTORelic has quit [Ping timeout: 264 seconds]
stannard has joined #ruby
stannard has quit [Remote host closed the connection]
<VeryBewitching> shevy: Last time I tried to get it running under Windows I was trying to get a Rails env on Windows; 5 hours and some pain later I gave up.
nettoweb has joined #ruby
mistermocha has joined #ruby
stannard has joined #ruby
<mr_oh> Got it. clunky, but I got it
moeabdol has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skweek has joined #ruby
<smathy> VeryBewitching, you're saying the expected thing as if it's unexpected.
biberu has quit []
<shevy> can't recall having tried rails but I found rails got increasingly more annoying to install and get running over the years, just that javascript addon extra step, that wasn't necessary in the older days
<VeryBewitching> smathy: I was following a HOWTO at the time :D
<VeryBewitching> I expected that someone else who got it working would benefit my situation at the time, it didn't
<smathy> VeryBewitching, :) Just might be better to save the announcements for if you ever DO get it to work on Windows.
yos7ph has quit [Quit: Leaving]
<VeryBewitching> Nah, I use Windows for games exclusively these days.
mistermocha has quit [Ping timeout: 246 seconds]
<smathy> Windows has just never been a friendly software dev platform, unless its your target platform.
<VeryBewitching> That's some truth right there.
kadoppe has joined #ruby
<VeryBewitching> I don't even know how I'd compiled native extensions on Win64
pawnbox has joined #ruby
<VeryBewitching> Does the free version of VS include everything required for most gems?
<VeryBewitching> wrt to build environment
camilasan has quit [Remote host closed the connection]
mhoungbo has joined #ruby
chipotle has quit [Quit: cheerio]
ChiefAlexander has quit [Quit: Leaving...]
<smathy> VeryBewitching, no clue.
jhack has quit [Quit: jhack]
camilasan has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jdm has quit [Ping timeout: 244 seconds]
aupadhye has quit [Quit: Leaving]
pawnbox has quit [Ping timeout: 244 seconds]
polyidus has quit [Quit: Later]
shmoon_ has quit [Quit: Connection closed for inactivity]
Karix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
akkmaxon has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
polyidus has joined #ruby
hxegon is now known as hxegon_AFK
ramfjord has quit [Ping timeout: 244 seconds]
gheegh has quit [Ping timeout: 246 seconds]
BD8 has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
moeabdol has joined #ruby
ramfjord has joined #ruby
dunpeal has joined #ruby
kadoppe has quit [Ping timeout: 276 seconds]
jdm has joined #ruby
postmodern has quit [Quit: Leaving]
hxegon_AFK is now known as hxegon
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BD8 has quit [Client Quit]
Xeago has joined #ruby
PedramT has quit [Remote host closed the connection]
<dunpeal> Hi. I want to render a dependency graph; i.e. which file requires which other files. How do I do that?
chipotle has joined #ruby
bluOxigen_ has quit [Ping timeout: 250 seconds]
kareeoleez has quit [Remote host closed the connection]
jt__ has joined #ruby
Xeago has quit [Remote host closed the connection]
[Butch] has quit [Quit: I'm out . . .]
rkazak has quit [Ping timeout: 268 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
jt__ has quit [Read error: No route to host]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
jt__ has joined #ruby
Es0teric has joined #ruby
<VeryBewitching> dunpeal: This may help http://railroad.rubyforge.org/
chouhoul_ has joined #ruby
<havenwood> dunpeal: bundle viz
neanderslob_ has joined #ruby
millerti has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> or hanmac wrote one, hmm where is it...
<dunpeal> VeryBewitching: thanks! exaxtly what I needed
<dunpeal> havenwood: bundle viz is just for bundle, right?
workmad3 has joined #ruby
sp4rrow has joined #ruby
<havenwood> dunpeal: Rails apps ship with a Gemfile.
nofacade has quit [Quit: Textual IRC Client: www.textualapp.com]
andywojo has quit [Quit: leaving]
<havenwood> dunpeal: But yup, just for apps with Gemfiles.
neanderslob_ has quit [Client Quit]
baweaver has joined #ruby
neanderslob has joined #ruby
Antiarc is now known as TriggerBot
chouhoulis has quit [Ping timeout: 268 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Es0teric has quit [Client Quit]
<VeryBewitching> bundle viz crashes for me.
mr_oh has quit [Quit: Page closed]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> VeryBewitching: it makes a gem_graph.png for me (the default)
Cohedrin has joined #ruby
_djbkd has quit [Remote host closed the connection]
<havenwood> or maybe crashing is the default and I have the exception :P
<VeryBewitching> haha
polyidus has quit [Quit: Later]
d0nn1e has quit [Ping timeout: 260 seconds]
TriggerBot is now known as Antiarc
<VeryBewitching> Looks like it can't find GraphViz (though, the gem is installed, and so is ruby-graphviz)
Musashi007 has quit [Ping timeout: 252 seconds]
<VeryBewitching> NameError: uninitialized constant GraphViz
lemur has joined #ruby
Es0teric has joined #ruby
<havenwood> VeryBewitching: Do you have the graphviz package installed with your package manager?
I has joined #ruby
<havenwood> Dunno!
<VeryBewitching> I use ruby-install/chruby and I installed both of those gems.
polyidus has joined #ruby
baweaver has quit [Ping timeout: 248 seconds]
dvinciguerra_ has joined #ruby
I is now known as Guest17044
_djbkd has joined #ruby
<VeryBewitching> It's searching the correct gem path, too (so says the diagnostic output)
<havenwood> VeryBewitching: Like on OS X: brew install graphviz
Guest17044 has quit [Client Quit]
<VeryBewitching> Oh, maybe not? But the gems installed, there's no native extensions?
<VeryBewitching> Lemme see..
dopie has joined #ruby
<VeryBewitching> And no I didn't, interesting.
d0nn1e has joined #ruby
<VeryBewitching> Nope, still crashes.
polyidus has quit [Client Quit]
<VeryBewitching> (K)ubuntu 15.10
mistermocha has joined #ruby
diegoviola has quit [Ping timeout: 244 seconds]
edwinvdg_ has quit [Remote host closed the connection]
polyidus has joined #ruby
dvinciguerra__ has quit [Ping timeout: 248 seconds]
nettoweb has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leksster has quit [Remote host closed the connection]
lemur has quit [Ping timeout: 252 seconds]
<VeryBewitching> RubyMine does that work for me though, luckily.
Gasher has joined #ruby
jenrzzz_ has joined #ruby
rodfersou is now known as rodfersou|dinner
mistermocha has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
dhollinger has quit [Quit: WeeChat 1.4]
stannard has quit [Ping timeout: 244 seconds]
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
czerasz_ has quit [Ping timeout: 248 seconds]
TheGreatGudsby has quit [Quit: find me ping me, if you wanna reach me]
HouseMD has joined #ruby
HouseMD has quit [Excess Flood]
workmad3 has quit [Ping timeout: 250 seconds]
HouseMD has joined #ruby
HouseMD has quit [Excess Flood]
HouseMD has joined #ruby
HouseMD has quit [Excess Flood]
HouseMD has joined #ruby
HouseMD has quit [Excess Flood]
boboc has quit []
HouseMD has joined #ruby
pawnbox has joined #ruby
HouseMD is now known as GG
sepp2k has quit [Read error: Connection reset by peer]
Es0teric has quit [Quit: Computer has gone to sleep.]
diegoviola has joined #ruby
postmodern has joined #ruby
infra-re_ has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 276 seconds]
trinaldi has joined #ruby
rake_db_migrate has joined #ruby
Spami has joined #ruby
cpup has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
rake_db__ has joined #ruby
diegoviola has quit [Quit: WeeChat 1.4]
yohle has joined #ruby
cpup has joined #ruby
toretore has joined #ruby
dunpeal has quit [Ping timeout: 244 seconds]
kadoppe has joined #ruby
toretore has quit [Client Quit]
chipotle has quit [Quit: cheerio]
rake_db_migrate has quit [Ping timeout: 268 seconds]
firstdayonthejob has quit [Ping timeout: 264 seconds]
chipotle has joined #ruby
Madplatypus has joined #ruby
shmuli has joined #ruby
mhoungbo has quit [Ping timeout: 248 seconds]
polyidus has quit [Quit: Later]
polyidus has joined #ruby
rake_db__ has quit [Remote host closed the connection]
polishdub has quit [Quit: Leaving]
rake_db_migrate has joined #ruby
karmatr0n has quit [Ping timeout: 260 seconds]
freerobby has quit [Quit: Leaving.]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Nawn has quit [Quit: Leaving]
Spami has quit [Remote host closed the connection]
Waqas has quit [Ping timeout: 244 seconds]
millerti has quit [Read error: Connection reset by peer]
Spami has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
chouhoul_ has quit [Remote host closed the connection]
Spami has quit [Max SendQ exceeded]
Spami has joined #ruby
chouhoulis has joined #ruby
kadoppe has quit [Ping timeout: 248 seconds]
zenlot6 has joined #ruby
Spami has quit [Client Quit]
rolha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenlot has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Ping timeout: 276 seconds]
_djbkd has quit [Remote host closed the connection]
DoubleMalt has quit [Remote host closed the connection]
mhoungbo has joined #ruby
BSaboia has joined #ruby
duckpuppy has joined #ruby
benlieb has quit [Quit: benlieb]
BSaboia has quit [Max SendQ exceeded]
BSaboia has joined #ruby
moeabdol1 has joined #ruby
GG is now known as TheGreatGudsby
gnufied has quit [Quit: Leaving]
moeabdol has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
andywojo has joined #ruby
rodfersou|dinner has quit [Quit: leaving]
eljimbo has joined #ruby
chosen1_ has joined #ruby
rake_db_migrate has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 244 seconds]
_djbkd has joined #ruby
Xeago has joined #ruby
JesseH has quit [Remote host closed the connection]
chosen1 has quit [Ping timeout: 248 seconds]
shadoi has quit [Quit: Leaving.]
jt__ has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 260 seconds]
kadoppe has joined #ruby
moei has quit [Quit: Leaving...]
diegoaguilar has quit [Read error: Connection reset by peer]
Kallis has joined #ruby
dunpeal has joined #ruby
diegoaguilar has joined #ruby
darkf has joined #ruby
Gasher has quit [Quit: Leaving]
jero_ has quit [Ping timeout: 248 seconds]
chouhoulis has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
polyidus has quit [Quit: Later]
yohle has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
mistermocha has joined #ruby
yohle has joined #ruby
Blaguvest has quit [Remote host closed the connection]
yohle has quit [Client Quit]
IrishGringo has joined #ruby
polyidus has joined #ruby
last_staff has quit [Quit: last_staff]
Xiti has quit [Quit: Xiti]
freerobby has joined #ruby
nando293921 has joined #ruby
tubuliferous has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
hxegon is now known as hxegon_AFK
hxegon_AFK is now known as hxegon
gizless has joined #ruby
aeterne has quit [Remote host closed the connection]
skweek has quit [Remote host closed the connection]
aegis3121 has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gizmore has quit [Ping timeout: 252 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkazak has joined #ruby
pawnbox has joined #ruby
GodFather has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
jgt4 has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
rake_db_migrate has joined #ruby
GodFather has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdgraaf has quit [Ping timeout: 252 seconds]
jgt4 has quit [Ping timeout: 248 seconds]
rkazak has quit [Quit: rkazak]
chosen1_ is now known as chosen1
chosen1 has quit [Changing host]
chosen1 has joined #ruby
polyidus has quit [Quit: Textual IRC Client: www.textualapp.com]
<irick> okay, so I know this is not a good solution, i'm going to refactor later, but I don't get anywhere near the correct values so... what am I missing here? http://pastebin.com/UnvpDr1L
<ruby[bot]> irick: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
magikid has joined #ruby
tubuliferous has quit [Ping timeout: 248 seconds]
Ikzi has quit [Quit: No Ping reply in 180 seconds.]
sp4rrow has joined #ruby
sp4rrow has quit [Client Quit]
Ikri has joined #ruby
swills has quit [Remote host closed the connection]
rake_db_migrate has quit [Remote host closed the connection]
whippythellama has quit [Quit: WeeChat 1.4]
iwaffles has joined #ruby
iwaffles has quit [Client Quit]
aegis3121 has quit [Ping timeout: 246 seconds]
huyderman has joined #ruby
<Ox0dea> irick: && and || don't work like that.
pawnbox has joined #ruby
dfockler has joined #ruby
zenspider has quit [Remote host closed the connection]
metalic has quit [Quit: Leaving]
<Ox0dea> You can't say `(1 && 2) < 3`; you have to say `1 < 3 && 2 < 3`.
<Ox0dea> >> [1, 2, 3].all? { |x| x < 4 } # Or do this.
<ruby[bot]> Ox0dea: # => true (https://eval.in/550128)
aegis3121 has joined #ruby
moei has joined #ruby
Vile` has joined #ruby
swills has joined #ruby
johnny56 has joined #ruby
rkazak has joined #ruby
aegis312_ has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
kadoppe has quit [Ping timeout: 264 seconds]
zenspider has joined #ruby
Regulati_ has quit [Remote host closed the connection]
_stu_ has joined #ruby
johnny56_ has quit [Ping timeout: 264 seconds]
aegis3121 has quit [Ping timeout: 260 seconds]
smathy is now known as smathy_afk
Alayde has quit [Ping timeout: 244 seconds]
kadoppe has joined #ruby
zenspider has quit [Client Quit]
Outlastsheep has quit [Ping timeout: 244 seconds]
kadoppe has quit [Ping timeout: 268 seconds]
abyx has quit [Quit: This computer has gone to sleep]
marr has quit [Ping timeout: 248 seconds]
krobzaur_ has joined #ruby
TheGreatGudsby has quit [Quit: find me ping me, if you wanna reach me]
aegis312_ has quit [Read error: Connection reset by peer]
yuung has quit [Quit: leaving]
ur5us has joined #ruby
lemur has joined #ruby
karmatr0n has joined #ruby