jhass changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
tsou has quit [Quit: off]
sharpmachine has quit [Remote host closed the connection]
ScriptGeek has quit [Quit: Leaving.]
havenwood has joined #ruby
ziikutv has joined #ruby
sharpmachine has joined #ruby
<ziikutv> Hello any Ruby windows users? I cannot install Jekyll, it is saying something about building. Can soneone help? I tried using devkit but I get nothing.. Says [INFO] Skipping existing gem override for 'C:/Ruby22-x64'
GeissT has joined #ruby
<jesterfraud> ziikutv: I'm one of those people that gave up on Ruby in Windows - I just run it in a VM now (using Vagrant)
<jesterfraud> too many headaches around versions and building gems and having Windows specific builds of gems and...
<ziikutv> yeah
<ziikutv> I cannot belive proper support has not been made
htmldrum has quit [Ping timeout: 246 seconds]
ziikutv has left #ruby [#ruby]
whiteline has quit [Read error: Connection reset by peer]
whiteline has joined #ruby
balazs_ has joined #ruby
<ytti> i honestly think msft has chance now
Aswebb_ has joined #ruby
<ytti> becoming relevant to programming community at large
<ytti> obviously it always was for game developers
_blizzy_ has quit [Ping timeout: 248 seconds]
<ytti> but i'm really impressed that powershell guys are implement openssh out and in
<ytti> ssh'ign into windows box and getting powershell, seems pretty cool to me
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby
astrobun_ has joined #ruby
Aswebb_ has quit [Ping timeout: 240 seconds]
symbol has joined #ruby
WillAmes has quit [Remote host closed the connection]
bungoman has joined #ruby
marr has quit []
centrx has joined #ruby
sinkensabe has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
charliesome has quit [Quit: zzz]
ledestin has joined #ruby
senayar has joined #ruby
j4cknewt has quit [Remote host closed the connection]
ohaibbq has quit [Quit: Leaving...]
sinkensabe has quit [Ping timeout: 256 seconds]
woodruffw has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
tjbiddle has joined #ruby
woodruffw has joined #ruby
l0oky has quit [Ping timeout: 244 seconds]
WillAmes has joined #ruby
jbw__ has joined #ruby
christiandsg has joined #ruby
jbw_ has quit [Ping timeout: 244 seconds]
dtcristo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sharpmachine has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
serivich has joined #ruby
jimmychimms has quit [Ping timeout: 255 seconds]
ruby835 has joined #ruby
tjbiddle has quit [Ping timeout: 250 seconds]
ruby835 has quit [Client Quit]
itissid1 has joined #ruby
itissid1 has left #ruby [#ruby]
tsou has joined #ruby
jenrzzz has joined #ruby
Blaguvest has quit []
l0oky has joined #ruby
mack25 has joined #ruby
<jesterfraud> while true, I still have no plans to run a Windows server ytti
htmldrum has joined #ruby
houhoulis has joined #ruby
tjbiddle has joined #ruby
Volsus has quit [Ping timeout: 248 seconds]
Kalov has quit []
Volsus has joined #ruby
goodcodeguy has joined #ruby
chipotle has quit [Quit: cheerio]
jbw__ has quit [Ping timeout: 240 seconds]
jbw__ has joined #ruby
symbol has quit [Ping timeout: 240 seconds]
S3thc0n has quit [Remote host closed the connection]
sepp2k has quit [Read error: Connection reset by peer]
pwnz0r has joined #ruby
charliesome has quit [Ping timeout: 264 seconds]
allcentury has joined #ruby
jbw_ has joined #ruby
rubie has joined #ruby
zacstewart has joined #ruby
jbw__ has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
Tristan-Speccy has joined #ruby
radialneon has joined #ruby
pwnz0r has quit [Ping timeout: 248 seconds]
Musashi007 has quit [Quit: Musashi007]
kinda has quit [Remote host closed the connection]
rubie has quit [Ping timeout: 265 seconds]
senayar has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 256 seconds]
emergion has joined #ruby
endash has quit [Quit: endash]
tsou has quit [Quit: off]
dgutierrez1287 has joined #ruby
Musashi007 has joined #ruby
jpfuentes2 has joined #ruby
yuuvee has quit [Quit: Leaving...]
tsou has joined #ruby
dgutierrez1287 has quit [Ping timeout: 265 seconds]
bruno- has quit [Ping timeout: 246 seconds]
keen__________25 has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
junegunn has joined #ruby
havenwood has joined #ruby
keen__________25 has joined #ruby
EllisTAA has joined #ruby
sharpmachine has joined #ruby
tmtwd has quit [Ping timeout: 256 seconds]
zacstewart has quit [Ping timeout: 248 seconds]
drewvanstone has quit [Ping timeout: 240 seconds]
oddraisin has joined #ruby
charliesome has joined #ruby
bruno- has joined #ruby
Lilian` has joined #ruby
eshy has quit [Max SendQ exceeded]
eshy has joined #ruby
eshy has quit [Client Quit]
Lilian` has left #ruby [#ruby]
bruno- has quit [Ping timeout: 244 seconds]
njection has quit [Ping timeout: 248 seconds]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
zacstewart has joined #ruby
EllisTAA has quit [Ping timeout: 250 seconds]
leat has joined #ruby
eggoez has quit [Ping timeout: 244 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Adran has quit [Remote host closed the connection]
j4cknewt has joined #ruby
han_ has joined #ruby
fabrice31 has joined #ruby
eggoez has joined #ruby
jesterfraud has quit [Quit: Textual IRC Client: www.textualapp.com]
sinkensabe has quit [Ping timeout: 248 seconds]
leat has quit [Ping timeout: 252 seconds]
<han_> hello
<han_> this is quite basic, but it's bothering me
<han_> .
<han_> logic says this: loop do / ..... next if (CONDITION IS TRUE)--> DO CODE
tubuliferous_ has joined #ruby
<han_> but instead it works with, next unless
j4cknewt has quit [Ping timeout: 244 seconds]
dyulax has joined #ruby
<han_> next unless (CONDITION IS TRUE) --> DO CODE
fabrice31 has quit [Ping timeout: 240 seconds]
<centrx> 'unless' is equivalent to 'if not'
<han_> but i am doing a loop of digits starting from 0 to 100
<han_> with this line: next unless x % 10 == 0
<han_> and it prints me 10 20 30 40..
<han_> but it should print that when condition is true
Mendenhall has quit [Ping timeout: 260 seconds]
<centrx> Put the code on gist.github.com
<pontiki> it's working the way you're telling it to
Adran has joined #ruby
<centrx> it sounds like it skips when x is divisible by 10
<centrx> exactly
swgillespie has joined #ruby
<centrx> Computer does what you say
<toretore> han_: `next` means skip the rest of the block and go to the next iteration
<han_> next if x % 10 == 0, this should work for 10 20 30 40 50 right?
<toretore> thus the `puts` after `next` will not run when the condition is true
<pontiki> han_: !code
tubuliferous_ has quit [Ping timeout: 246 seconds]
<toretore> ?code han_
<ruboto> han_, We can't help you without your code, please post it to https://gist.github.com
phutchins has quit [Ping timeout: 244 seconds]
Agoldfish has quit [Quit: G'Bye]
Yiota has joined #ruby
peter_paule has joined #ruby
<pontiki> and which of those is the behaviour you want?
<han_> i think it should work the opposite way
<pontiki> then you do not understand `next`
Yiota has quit [Client Quit]
<Bloodshot> han_, next means 'skip everything else, go on to the *next* loop'
<han_> ahhhhh ok
<han_> now it makes sense
framling has joined #ruby
<han_> the code works with an if/end inside the loop
braincra- has joined #ruby
<han_> or next unless
<han_> thank you guys
lkba_ has joined #ruby
<toretore> you should probably use an if block instead, this type of short circuiting is easily overlooked when reading the code
braincrash has quit [Ping timeout: 252 seconds]
houhoulis has quit [Remote host closed the connection]
afrianska has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
EllisTAA has joined #ruby
pengin has joined #ruby
nettoweb has joined #ruby
Mendenhall has joined #ruby
balazs_ has quit [Remote host closed the connection]
bungoman has quit [Remote host closed the connection]
domgetter has joined #ruby
AlexAltea has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
bungoman has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
pengin has quit [Remote host closed the connection]
Stratege has quit [Ping timeout: 240 seconds]
Stratege has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Volsus has quit [Ping timeout: 248 seconds]
sharpmachine has quit [Remote host closed the connection]
<domgetter> Hello, all
Aswebb_ has joined #ruby
<Aeyrix> Hello, domgetter.
l0oky has quit [Read error: Connection reset by peer]
laurentide has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
EllisTAA has joined #ruby
Aswebb_ has quit [Ping timeout: 256 seconds]
sickmate has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
sevenseacat has joined #ruby
leat has joined #ruby
nettoweb has joined #ruby
Muhannad has joined #ruby
casadei_ has joined #ruby
icebourg has joined #ruby
leat has joined #ruby
nettoweb has quit [Client Quit]
qiukun has joined #ruby
iateadonut has joined #ruby
bruno- has joined #ruby
GitGud has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
t0rrieri has quit [Ping timeout: 252 seconds]
bruno- has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
pwnz0r has joined #ruby
leat has quit [Remote host closed the connection]
domgetter has quit [Ping timeout: 246 seconds]
t0rrieri has joined #ruby
balazs_ has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
EllisTAA has joined #ruby
hal_9000_ has joined #ruby
qiukun has quit [Quit: qiukun]
sinkensabe has joined #ruby
julieeharshaw has quit [Ping timeout: 265 seconds]
julieeharshaw has joined #ruby
EllisTAA has quit [Client Quit]
qiukun has joined #ruby
chipotle has joined #ruby
hal_9000 has quit [Ping timeout: 265 seconds]
hal_9000_ is now known as hal_9000
chipotle has quit [Read error: Connection reset by peer]
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
toretore has quit [Ping timeout: 250 seconds]
Volsus has joined #ruby
sinkensabe has quit [Ping timeout: 240 seconds]
scripore has joined #ruby
tmtwd has joined #ruby
swgillespie has joined #ruby
swgillespie has quit [Max SendQ exceeded]
swgillespie has joined #ruby
balazs_ has quit [Ping timeout: 250 seconds]
finisherr_ has joined #ruby
finisherr_ has quit [Client Quit]
serivich has quit [Ping timeout: 248 seconds]
finisherr has quit [Ping timeout: 255 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<han_> check that out, is cool
<han_> got math table for numbers untill they reach 100
amystephen has quit [Quit: amystephen]
varunwachaspati has joined #ruby
devbug has quit [Ping timeout: 250 seconds]
bungoman has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 244 seconds]
benlovell has joined #ruby
cpg|away is now known as cpg
davedev24 has quit []
jaygen has joined #ruby
Volsus has quit [Ping timeout: 248 seconds]
miwood has joined #ruby
varunwachaspati has quit [Ping timeout: 250 seconds]
goodcodeguy has joined #ruby
jaygen_ has quit [Ping timeout: 264 seconds]
toretore has joined #ruby
Musashi007 has quit [Quit: Musashi007]
houhoulis has joined #ruby
varunwachaspati has joined #ruby
Vile` has quit [Read error: Connection reset by peer]
Caius has quit [Ping timeout: 256 seconds]
benlovell has quit [Ping timeout: 252 seconds]
zacstewart has quit [Remote host closed the connection]
zacstewart has joined #ruby
pwnz0r has quit [Remote host closed the connection]
arooni-mobile has joined #ruby
pwnz0r has joined #ruby
serivich has joined #ruby
kkeuning has joined #ruby
Caius has joined #ruby
kkeuning has quit [Max SendQ exceeded]
zacstewart has quit [Ping timeout: 250 seconds]
kkeuning has joined #ruby
Musashi007 has joined #ruby
icebourg has quit []
devbug has joined #ruby
Vile` has joined #ruby
zacstewart has joined #ruby
pwnz0r has quit [Ping timeout: 248 seconds]
allcentury has quit [Ping timeout: 244 seconds]
Vile` has quit [Remote host closed the connection]
christiandsg has quit [Remote host closed the connection]
EllisTAA has joined #ruby
Vile` has joined #ruby
tmtwd has quit [Remote host closed the connection]
EllisTAA has quit [Ping timeout: 256 seconds]
bakednotfried has joined #ruby
bakednotfried has joined #ruby
Volsus has joined #ruby
<Bloodshot> han_: A more idiomatic example would look like this: http://ix.io/jQ9
icebourg has joined #ruby
Mendenhall has quit [Ping timeout: 256 seconds]
houhoulis has quit [Remote host closed the connection]
dtcristo has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
braincra- has quit [Quit: bye bye]
Vile` has quit [Remote host closed the connection]
Rodya_ has quit [Quit: Leaving...]
braincrash has joined #ruby
Volsus has quit [Ping timeout: 248 seconds]
kiriappeee has joined #ruby
tubuliferous_ has joined #ruby
RobertBirnie has joined #ruby
alicanyilmaz has joined #ruby
<alicanyilmaz> hello everyone! :)
<Bloodshot> Hey!
tubuliferous_ has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
maletor has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
cibs has quit [Quit: leaving]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
happy_dev has joined #ruby
Vile` has joined #ruby
sinkensabe has quit [Ping timeout: 250 seconds]
alicanyilmaz has quit [Quit: alicanyilmaz]
EasyCo has joined #ruby
Volsus has joined #ruby
balazs_ has joined #ruby
bffff_ has joined #ruby
darkf has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
xcesariox has joined #ruby
dtcristo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
peter_paule has quit [Ping timeout: 265 seconds]
Musashi007 has quit [Quit: Musashi007]
xkickflip has quit [Quit: xkickflip]
kies^ has joined #ruby
Vile` has quit [Ping timeout: 255 seconds]
afrianska has quit [Ping timeout: 260 seconds]
Spami has quit [Quit: This computer has gone to sleep]
j4cknewt has joined #ruby
fallen_ has quit [Ping timeout: 252 seconds]
Aswebb_ has joined #ruby
jenrzzz has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
gix has quit [Ping timeout: 248 seconds]
mikenovikov has joined #ruby
bungoman has joined #ruby
cdrage has quit [Remote host closed the connection]
Musashi007 has joined #ruby
Aswebb_ has quit [Ping timeout: 246 seconds]
Crazy_Atheist has joined #ruby
gix has joined #ruby
leat has joined #ruby
leat has quit [Remote host closed the connection]
sevenseacat has quit [Quit: Me dun like you no more.]
Vile` has joined #ruby
emergion has quit [Quit: Connection closed for inactivity]
radialneon has quit [Remote host closed the connection]
kiriappeee has quit [Ping timeout: 246 seconds]
fallen_ has joined #ruby
havenwood has quit [Ping timeout: 256 seconds]
serivich has quit [Ping timeout: 246 seconds]
mack25 has quit [Ping timeout: 244 seconds]
arooni-mobile has quit [Ping timeout: 248 seconds]
serivich has joined #ruby
blue_deref has quit [Ping timeout: 264 seconds]
icebourg has quit []
riotjones has joined #ruby
mistermocha has joined #ruby
bungoman has quit [Remote host closed the connection]
eggoez has quit [Ping timeout: 244 seconds]
dyulax has quit [Quit: Saindo]
tjbiddle has quit [Quit: tjbiddle]
bruno- has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
bungoman has joined #ruby
bronson has joined #ruby
mistermocha has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 240 seconds]
crunk_bear has joined #ruby
arescorpio has quit [Quit: Leaving.]
drewvanstone has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
eggoez has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
maletor has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
cornerma1 has joined #ruby
cornerman has quit [Ping timeout: 250 seconds]
sinkensabe has joined #ruby
cornerma1 is now known as cornerman
happy_dev has quit []
bungoman has quit [Remote host closed the connection]
icebourg has joined #ruby
amystephen has joined #ruby
miwood has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
miwood has joined #ruby
afrianska has joined #ruby
afrianska has quit [Remote host closed the connection]
ScriptGeek has joined #ruby
sinkensabe has quit [Ping timeout: 264 seconds]
amystephen has quit [Ping timeout: 264 seconds]
kalleth_ is now known as kalleth
miwood has quit [Ping timeout: 248 seconds]
Musashi007 has quit [Quit: Musashi007]
Asher has quit [Quit: Leaving.]
RobertBirnie has quit [Ping timeout: 244 seconds]
Asher has joined #ruby
lxsameer has joined #ruby
RobertBirnie has joined #ruby
varunwachaspati has quit [Ping timeout: 240 seconds]
dopie has joined #ruby
mistermocha has joined #ruby
serivich has quit [Ping timeout: 240 seconds]
CorySimmons has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
kkeuning has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Volsus has quit [Quit: Leaving]
mary5030 has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
Bquick has joined #ruby
junegunn has quit [Quit: WeeChat 1.2]
kalleth has quit [Remote host closed the connection]
kalleth has joined #ruby
revath has joined #ruby
kalleth has quit [Remote host closed the connection]
kalleth has joined #ruby
mistermo_ has joined #ruby
mistermocha has quit [Read error: No route to host]
qiukun has quit [Quit: qiukun]
_blizzy_ has quit [Read error: Connection reset by peer]
schaerli has joined #ruby
biik has quit [Quit: WeeChat 1.2]
_blizzy_ has joined #ruby
maletor has joined #ruby
bigmac has joined #ruby
mistermo_ has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
andikr has joined #ruby
dtcristo has joined #ruby
lorikeet has quit [Ping timeout: 248 seconds]
andikr has quit [Remote host closed the connection]
countryHick has quit [Ping timeout: 248 seconds]
pmarreck has quit [Ping timeout: 248 seconds]
thesheff17 has quit [Ping timeout: 256 seconds]
culturelabs has quit [Ping timeout: 246 seconds]
lancetw has quit [Ping timeout: 246 seconds]
zero7 has quit [Ping timeout: 244 seconds]
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrisseaton has quit [Ping timeout: 240 seconds]
Heero has quit [Ping timeout: 246 seconds]
vcoinminer has quit [Ping timeout: 246 seconds]
ttilley has joined #ruby
spastorino has quit [Ping timeout: 246 seconds]
charles81 has quit [Ping timeout: 244 seconds]
scripore has quit [Quit: This computer has gone to sleep]
pmarreck has joined #ruby
acke has joined #ruby
thesheff17 has joined #ruby
lancetw has joined #ruby
zero7 has joined #ruby
culturelabs has joined #ruby
n1ftyn8_ has quit [Ping timeout: 246 seconds]
duoi has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
iamdevnul has quit [Ping timeout: 248 seconds]
mjc_ has quit [Ping timeout: 240 seconds]
bove has quit [Ping timeout: 240 seconds]
rflot has quit [Ping timeout: 240 seconds]
benlakey has quit [Ping timeout: 240 seconds]
ckrailo has quit [Ping timeout: 244 seconds]
akitada has quit [Ping timeout: 240 seconds]
ggherdov has quit [Ping timeout: 240 seconds]
charles81 has joined #ruby
codeitagile has quit [Ping timeout: 248 seconds]
glowcoil has quit [Ping timeout: 248 seconds]
chrisseaton has joined #ruby
krainboltgreene has quit [Ping timeout: 240 seconds]
_ht has joined #ruby
jmcc has quit [Ping timeout: 248 seconds]
Guest85414______ has quit [Ping timeout: 240 seconds]
saintcajetan has quit [Ping timeout: 240 seconds]
spastorino has joined #ruby
ckrailo has joined #ruby
acke has quit [Remote host closed the connection]
rflot has joined #ruby
benlakey has joined #ruby
akitada has joined #ruby
acke has joined #ruby
icebourg has quit []
Heero has joined #ruby
vcoinminer has joined #ruby
mjc_ has joined #ruby
iamdevnul has joined #ruby
krainboltgreene has joined #ruby
tubuliferous_ has quit [Ping timeout: 244 seconds]
allomov has joined #ruby
astrobun_ has joined #ruby
Guest85414______ has joined #ruby
bove has joined #ruby
RobertBirnie has quit [Ping timeout: 255 seconds]
n1ftyn8_ has joined #ruby
glowcoil has joined #ruby
poguez_ has joined #ruby
RobertBirnie has joined #ruby
j4cknewt has joined #ruby
chrissonar has joined #ruby
scripore has joined #ruby
countryHick has joined #ruby
jenrzzz has joined #ruby
qiukun has joined #ruby
xkickflip has joined #ruby
laurentide has quit [Quit: Leaving]
poguez_ has quit [Read error: Connection timed out]
casadei_ has quit [Remote host closed the connection]
leat has joined #ruby
poguez_ has joined #ruby
zacstewart has quit [Remote host closed the connection]
konsolebox has joined #ruby
jmcc has joined #ruby
saintcajetan has joined #ruby
<baweaver> Radar: Forget to put Mjolnir up again, or waiting to bestow the wrath of Thor on someone?
codeitagile has joined #ruby
* Radar puts the hammer down
<Radar> so to speak
schaerli has quit [Remote host closed the connection]
<baweaver> I was half expecting to get kicked out of spite :D
<Radar> Aeyrix warned me that someone might spam this channel
<baweaver> ah
<baweaver> odd
<Radar> In hindsight, it would've been a good test for the spam protection I built into helpa last week.
WillAmes has quit [Ping timeout: 264 seconds]
<Aeyrix> I thought I already tested that.
<Radar> Aeyrix: A proper test :)
<baweaver> I didn't think they announced those things, do they think they're the man with 1000 faces now?
<Aeyrix> I can proper test it. :^)
<Radar> I get a couple of highlights overnight now from the spam protection because newbies paste controller actions and other shit into the channels
RobertBirnie has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
fallen_ is now known as atesec
<baweaver> so what you're saying
kidoz has quit [Quit: Ухожу я от вас]
<baweaver> is that it has the added benefit of banning non gist-ers?
<baweaver> XD
ScriptGeek has quit [Quit: Leaving.]
fabrice31 has joined #ruby
RobertBirnie has joined #ruby
<Radar> it doesn't ban yet. it just PMs me to let me know someone is breaking the speed limit
ggherdov has joined #ruby
<Aeyrix> 88 jimmies rustled per hour is the current limit
leat has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
leat has joined #ruby
sinkensabe has quit [Ping timeout: 256 seconds]
sp1rs has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
aganov has joined #ruby
CorySimmons has quit [Quit: Bye!]
scripore has quit [Quit: This computer has gone to sleep]
yardenbar has joined #ruby
drewvanstone has quit [Ping timeout: 240 seconds]
deimos has quit [Ping timeout: 240 seconds]
jimbeaudoin has quit [Ping timeout: 240 seconds]
Heero has quit [Ping timeout: 244 seconds]
cardoni_ has quit [Ping timeout: 256 seconds]
jeregrine has quit [Ping timeout: 246 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlakey has quit [Ping timeout: 248 seconds]
ckrailo has quit [Ping timeout: 248 seconds]
jlyndon has quit [Ping timeout: 248 seconds]
petems has quit [Ping timeout: 248 seconds]
lacrosse has quit [Ping timeout: 240 seconds]
whoojemaflip has quit [Ping timeout: 240 seconds]
machty has quit [Ping timeout: 240 seconds]
mroth has quit [Ping timeout: 240 seconds]
chrisseaton has quit [Ping timeout: 246 seconds]
rfv has quit [Ping timeout: 246 seconds]
frankS2 has quit [Ping timeout: 246 seconds]
zero7 has quit [Ping timeout: 244 seconds]
Aswebb_ has joined #ruby
riotjones has joined #ruby
zemmihates has quit [Ping timeout: 248 seconds]
coderkevin has quit [Ping timeout: 248 seconds]
yo61 has quit [Ping timeout: 248 seconds]
harleypig has quit [Ping timeout: 248 seconds]
kapowaz has quit [Ping timeout: 248 seconds]
codeitagile has quit [Ping timeout: 246 seconds]
adambeynon has quit [Ping timeout: 246 seconds]
bryancp has quit [Ping timeout: 246 seconds]
dukedave has quit [Ping timeout: 246 seconds]
lala has quit [Ping timeout: 240 seconds]
pmarreck has quit [Ping timeout: 240 seconds]
daxroc has quit [Ping timeout: 240 seconds]
bjeanes has quit [Ping timeout: 240 seconds]
troter___ has quit [Ping timeout: 252 seconds]
hoey_ has quit [Ping timeout: 252 seconds]
krainboltgreene has quit [Ping timeout: 244 seconds]
bffff_ has quit [Ping timeout: 244 seconds]
ggherdov has quit [Ping timeout: 246 seconds]
cbednarski has quit [Ping timeout: 256 seconds]
pizzaops has quit [Ping timeout: 252 seconds]
charles81 has quit [Ping timeout: 248 seconds]
cstrahan has quit [Ping timeout: 248 seconds]
mjc_ has quit [Ping timeout: 240 seconds]
prosodyContext has quit [Ping timeout: 240 seconds]
neersighted has quit [Ping timeout: 240 seconds]
zrl has quit [Ping timeout: 240 seconds]
featheryahn_ has quit [Ping timeout: 240 seconds]
countryHick has quit [Ping timeout: 244 seconds]
dmoe has quit [Ping timeout: 246 seconds]
AdamMeghji has quit [Ping timeout: 246 seconds]
bttf has quit [Ping timeout: 246 seconds]
jxf has quit [Ping timeout: 246 seconds]
shelling__ has quit [Ping timeout: 246 seconds]
holsee_ has quit [Ping timeout: 246 seconds]
djbender has quit [Ping timeout: 246 seconds]
HashNuke has quit [Ping timeout: 256 seconds]
maZtah has quit [Ping timeout: 256 seconds]
jevs has quit [Ping timeout: 256 seconds]
im0b has quit [Ping timeout: 248 seconds]
bestie has quit [Ping timeout: 248 seconds]
PhilK has quit [Ping timeout: 248 seconds]
varunwachaspati has joined #ruby
knowtheory has quit [Ping timeout: 248 seconds]
nickfausnight has quit [Ping timeout: 248 seconds]
MiracleBlue has quit [Ping timeout: 240 seconds]
heidar has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
EasyCo has quit [Ping timeout: 246 seconds]
ELLIOTTCABLE has quit [Ping timeout: 246 seconds]
leat has quit [Remote host closed the connection]
Crazy_Atheist has quit [Ping timeout: 252 seconds]
bove has quit [Ping timeout: 256 seconds]
leat has joined #ruby
kies^ has quit [Ping timeout: 244 seconds]
acke has quit [Remote host closed the connection]
PlasmaStar has quit [Ping timeout: 244 seconds]
jgpawletko_ has joined #ruby
Gadgetoid has quit [Ping timeout: 244 seconds]
lxsameer has quit [Remote host closed the connection]
noethics has quit [Ping timeout: 244 seconds]
allomov has quit [Remote host closed the connection]
jgpawletko has quit [Ping timeout: 260 seconds]
jgpawletko_ is now known as jgpawletko
maletor has quit [Quit: Computer has gone to sleep.]
deimos has joined #ruby
Gadgetoid has joined #ruby
Feyn has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
ukd1_ has quit [Remote host closed the connection]
noethics has joined #ruby
ukd1 has joined #ruby
jeregrine has joined #ruby
djbender has joined #ruby
PlasmaStar has joined #ruby
Aswebb_ has quit [Ping timeout: 260 seconds]
charles81 has joined #ruby
adambeynon has joined #ruby
chrisseaton has joined #ruby
daxroc has joined #ruby
Heero has joined #ruby
jlyndon has joined #ruby
zero7 has joined #ruby
michael_mbp has quit [Excess Flood]
krainboltgreene has joined #ruby
pmarreck has joined #ruby
countryHick has joined #ruby
im0b has joined #ruby
coderkevin has joined #ruby
HashNuke has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
<flughafen> morning everybody
<_blizzy_> morning.
MiracleBlue has joined #ruby
RobertBirnie has joined #ruby
codeitagile has joined #ruby
RobertBirnie has quit [Max SendQ exceeded]
roolo has joined #ruby
mjc_ has joined #ruby
frankS2 has joined #ruby
bryancp has joined #ruby
Mendenhall has joined #ruby
rfv has joined #ruby
benlakey has joined #ruby
jenrzzz has joined #ruby
shelling__ has joined #ruby
harleypig has joined #ruby
<flughafen> hey shevy
yo61 has joined #ruby
bffff_ has joined #ruby
whoojemaflip has joined #ruby
<flughafen> nothing is taking off
michael_mbp has joined #ruby
RobertBirnie has joined #ruby
dmoe has joined #ruby
knowtheory has joined #ruby
dtcristo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bestie has joined #ruby
bjeanes has joined #ruby
lacrosse has joined #ruby
petems has joined #ruby
zemmihates has joined #ruby
maZtah has joined #ruby
dhjondoh has joined #ruby
bttf has joined #ruby
holsee_ has joined #ruby
jevs has joined #ruby
mroth has joined #ruby
machty has joined #ruby
hoey_ has joined #ruby
nickfausnight has joined #ruby
kapowaz has joined #ruby
AdamMeghji has joined #ruby
bove has joined #ruby
revath has quit [Ping timeout: 252 seconds]
ELLIOTTCABLE has joined #ruby
jxf has joined #ruby
ckrailo has joined #ruby
cardoni_ has joined #ruby
cbednarski has joined #ruby
neersighted has joined #ruby
cstrahan has joined #ruby
featheryahn_ has joined #ruby
jimbeaudoin has joined #ruby
EasyCo has joined #ruby
atomi has quit [Quit: brb]
ZYPP is now known as hool
duncannz has joined #ruby
PhilK has joined #ruby
<ElSif> is using irccloud to mess with channels something new or have just been out of the loop?
heidar has joined #ruby
<ElSif> i*
atomi has joined #ruby
tagrudev has joined #ruby
pizzaops has joined #ruby
dukedave has joined #ruby
troter___ has joined #ruby
fgo has joined #ruby
cibs has joined #ruby
eggoez has quit [Ping timeout: 256 seconds]
ggherdov has joined #ruby
maletor has joined #ruby
prosodyContext has joined #ruby
<Aeyrix> ElSif: They have a HTTP API
<Aeyrix> making it really easy to be a dickass
<ElSif> well hopefully they at least use ruby scripts to be a dickass
<ElSif> :)
zrl has joined #ruby
jack_rabbit has joined #ruby
acke has joined #ruby
<Aeyrix> Heh.
lala has joined #ruby
hool is now known as ZYPP
noethics has quit [Ping timeout: 256 seconds]
finisherr has joined #ruby
<finisherr> If I’m using Nokogiri, how would I get the full path to a found node?
<finisherr> I’m looking in the docs but having some trouble finding the answer
lsmola has joined #ruby
<Aeyrix> node.path
eggoez has joined #ruby
freezevee has joined #ruby
julieeharshaw has quit [Ping timeout: 244 seconds]
dtcristo has joined #ruby
duoi has joined #ruby
cjk101010 has quit [Ping timeout: 248 seconds]
simplyianm has joined #ruby
revath has joined #ruby
<finisherr> ok
<finisherr> cool
<certainty> moin
cjk101010 has joined #ruby
<Aeyrix> moin
julieeharshaw has joined #ruby
dtcristo has quit [Client Quit]
<certainty> headius: thanks again for the clarification on concurrent-ruby thins morning :)
<certainty> this, even
eGGsha has joined #ruby
ohaibbq has joined #ruby
DoubleMalt has joined #ruby
prefixed has joined #ruby
bronson has joined #ruby
Bquick has quit [Ping timeout: 252 seconds]
symm- has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
han_ has quit [Ping timeout: 252 seconds]
zacstewart has joined #ruby
simplyianm has quit [Ping timeout: 248 seconds]
djbkd_ has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
prefixed has quit [Ping timeout: 248 seconds]
ScriptGeek has joined #ruby
veekay has joined #ruby
ndrei has quit [Ping timeout: 248 seconds]
riotjones has joined #ruby
peter_paule has joined #ruby
Musashi007 has joined #ruby
benlovell has joined #ruby
_lazarevsky has joined #ruby
<_lazarevsky> good morning all
<_lazarevsky> I want to check whether a variable I've populated using Time.now
maletor has quit [Quit: Computer has gone to sleep.]
<_lazarevsky> was generated more than half an hour ago
<_lazarevsky> Time.now and 30.minutes.ago give me drastically different times
charliesome has quit [Quit: zzz]
sinkensabe has joined #ruby
benlovell has quit [Ping timeout: 244 seconds]
andikr has joined #ruby
<ElSif> roughly how drasticly far?
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
freezevee has quit [Remote host closed the connection]
ohaibbq has quit [Quit: Leaving...]
bricker_ has joined #ruby
veekay has quit [Quit: Page closed]
timonv has joined #ruby
<ElSif> does `Time.now + 30*60` give you the same strangely offset time?
_lazarevsky has quit [Ping timeout: 246 seconds]
bricker has quit [Ping timeout: 265 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dede has joined #ruby
dtcristo has joined #ruby
ScriptGeek has left #ruby [#ruby]
<ElSif> well, that should have read `- 30*60` i suppose, but hes gone now T_T
<Radar> ElSif: I solved it for them in #rubyonrails
fabrice31 has joined #ruby
<ElSif> oh nvm
<Radar> It's a Time.now vs Time.current problem.
<ElSif> sure, makes sense
whoojemaflip has left #ruby [#ruby]
peter_paule has quit [Ping timeout: 246 seconds]
zacstewart has quit [Ping timeout: 246 seconds]
tubulife- has joined #ruby
simplyianm has joined #ruby
Macaveli has joined #ruby
Macaveli has quit [Client Quit]
troulouliou_div2 has joined #ruby
tubulife- has quit [Ping timeout: 248 seconds]
GeissT has quit [Ping timeout: 255 seconds]
niemcu has joined #ruby
kwd has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
AlphaAtom has joined #ruby
timonv has quit [Quit: WeeChat 1.2]
stan has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
astrobun_ has quit [Ping timeout: 244 seconds]
timonv has joined #ruby
simplyianm has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
timonv has quit [Remote host closed the connection]
AlphaAtom has quit [Client Quit]
hanine has quit [Read error: No route to host]
dumdedum has joined #ruby
cpg has left #ruby [#ruby]
simplyianm has joined #ruby
AlexAltea has joined #ruby
astrobun_ has joined #ruby
ZYPP is now known as hool
Mendenhall has quit [Ping timeout: 244 seconds]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
toretore has quit [Quit: This computer has gone to sleep]
gagrio has joined #ruby
zacstewart has joined #ruby
statu has quit [Quit: Leaving]
Aswebb_ has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
dhjondoh has quit [Remote host closed the connection]
TomyWork has joined #ruby
djbkd_ has quit [Remote host closed the connection]
Aswebb_ has quit []
eGGsha has joined #ruby
Mendenhall has joined #ruby
Ilyas has joined #ruby
keen__________26 has joined #ruby
dtcristo has quit [Quit: Textual IRC Client: www.textualapp.com]
dtcristo has joined #ruby
erowlin has joined #ruby
dede has quit [Ping timeout: 244 seconds]
featheryahn_ has quit [Ping timeout: 244 seconds]
jimbeaudoin has quit [Ping timeout: 252 seconds]
machty has quit [Ping timeout: 252 seconds]
knowtheory has quit [Ping timeout: 252 seconds]
dmoe has quit [Ping timeout: 252 seconds]
frankS2 has quit [Ping timeout: 252 seconds]
vcoinminer has quit [Ping timeout: 252 seconds]
joonty has joined #ruby
glowcoil has quit [Ping timeout: 256 seconds]
harleypig has quit [Ping timeout: 244 seconds]
rfv has quit [Ping timeout: 244 seconds]
prosodyContext has quit [Ping timeout: 252 seconds]
akitada has quit [Ping timeout: 252 seconds]
jpinnix______ has quit [Ping timeout: 252 seconds]
spastorino has quit [Ping timeout: 256 seconds]
thesheff17 has quit [Ping timeout: 256 seconds]
ljen has quit [Ping timeout: 256 seconds]
avdi has quit [Ping timeout: 256 seconds]
erowlin has quit [Client Quit]
j4cknewt has quit [Remote host closed the connection]
neektza has quit [Read error: Connection reset by peer]
cbednarski has quit [Read error: Connection reset by peer]
pizzaops has quit [Read error: Connection reset by peer]
ramblinpeck has quit [Read error: Connection reset by peer]
Guest85414______ has quit [Read error: Connection reset by peer]
halfdan has quit [Read error: Connection reset by peer]
bove has quit [Read error: Connection reset by peer]
chrisseaton has quit [Read error: Connection reset by peer]
jeregrine has quit [Read error: Connection reset by peer]
ckrailo has quit [Read error: Connection reset by peer]
ELLIOTTCABLE has quit [Read error: Connection reset by peer]
holsee_ has quit [Read error: Connection reset by peer]
pmarreck has quit [Read error: Connection reset by peer]
tonini has quit [Read error: Connection reset by peer]
bcavileer has quit [Read error: Connection reset by peer]
adambeynon has quit [Read error: Connection reset by peer]
djbender has quit [Read error: Connection reset by peer]
krainboltgreene has quit [Write error: Connection reset by peer]
coderkevin has quit [Write error: Connection reset by peer]
poguez_ has quit [Write error: Connection reset by peer]
mjc_ has quit [Read error: Connection reset by peer]
cstrahan has quit [Read error: Connection reset by peer]
Heero has quit [Read error: Connection reset by peer]
Lloyd has quit [Read error: Connection reset by peer]
n1ftyn8_ has quit [Read error: Connection reset by peer]
dukedave has quit [Read error: Connection reset by peer]
nickfausnight has quit [Read error: Connection reset by peer]
heidar has quit [Write error: Connection reset by peer]
alxndr has quit [Write error: Connection reset by peer]
hashrocket has quit [Read error: Connection reset by peer]
neersighted has quit [Write error: Connection reset by peer]
iamdevnul has quit [Write error: Connection reset by peer]
lacrosse has quit [Read error: Connection reset by peer]
hoey_ has quit [Read error: Connection reset by peer]
HashNuke has quit [Read error: Connection reset by peer]
MiracleBlue has quit [Read error: Connection reset by peer]
bffff_ has quit [Write error: Connection reset by peer]
keen__________25 has quit [Ping timeout: 255 seconds]
jlyndon has quit [Read error: Connection reset by peer]
lancetw has quit [Write error: Connection reset by peer]
daxroc has quit [Read error: Connection reset by peer]
im0b has quit [Read error: Connection reset by peer]
petems has quit [Read error: Connection reset by peer]
deimos has quit [Read error: Connection reset by peer]
yo61 has quit [Read error: Connection reset by peer]
countryHick has quit [Read error: Connection reset by peer]
zipkid has quit [Read error: Connection reset by peer]
rflot has quit [Read error: Connection reset by peer]
akahn has quit [Read error: Connection reset by peer]
amitchellbullard has quit [Write error: Connection reset by peer]
hellschreiber has quit [Read error: Connection reset by peer]
firevolt has quit [Read error: Connection reset by peer]
shelling__ has quit [Read error: Connection reset by peer]
manveru has quit [Write error: Connection reset by peer]
charles81 has quit [Read error: Connection reset by peer]
jxf has quit [Read error: Connection reset by peer]
Limezacore has quit [Read error: Connection reset by peer]
Hounddog has joined #ruby
j4cknewt has joined #ruby
mrsolow has quit [Ping timeout: 265 seconds]
schaerli has joined #ruby
bjeanes has quit [Read error: Connection reset by peer]
ggherdov has quit [Ping timeout: 244 seconds]
Tritone_ has joined #ruby
Kharma has quit [Read error: Connection reset by peer]
dtcristo has quit [Client Quit]
AdamMeghji has quit [Read error: Connection reset by peer]
dtcristo has joined #ruby
joaomdmoura has quit [Ping timeout: 252 seconds]
arup_r has joined #ruby
Tritone has quit [Ping timeout: 240 seconds]
Tritone_ has quit [Client Quit]
ta has quit [Remote host closed the connection]
Tritone has joined #ruby
dhjondoh has joined #ruby
djbkd_ has joined #ruby
vondruch has joined #ruby
simplyianm has quit [Remote host closed the connection]
haxrbyte has joined #ruby
dtcristo has quit [Quit: Textual IRC Client: www.textualapp.com]
rdark has joined #ruby
dtcristo has joined #ruby
ndrei has joined #ruby
haxrbyte_ has joined #ruby
zacstewart has quit [Ping timeout: 248 seconds]
astrobun_ has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
pwnz0r has joined #ruby
michael_mbp has joined #ruby
doertedev has joined #ruby
haxrbyte has quit [Ping timeout: 244 seconds]
Averna has joined #ruby
allomov has joined #ruby
<adaedra> Hi
senayar has joined #ruby
pwnz0r has quit [Ping timeout: 248 seconds]
featheryahn_ has joined #ruby
halfdan has joined #ruby
bcavileer has joined #ruby
adambeynon has joined #ruby
harleypig has joined #ruby
djbender has joined #ruby
tonini has joined #ruby
chrisseaton has joined #ruby
pizzaops has joined #ruby
jeregrine has joined #ruby
<zenspider> I forget... how do you page ops in a normal channel?
bigkevmcd has joined #ruby
dtcristo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> list them?
alxndr has joined #ruby
Musashi007 has quit [Quit: Musashi007]
cstrahan has joined #ruby
n1ftyn8_ has joined #ruby
<adaedra> /msg ChanServ ACCESS LIST #...
<zenspider> hrm... /stats p says 0 staff :/
neektza has joined #ruby
ckrailo has joined #ruby
ramblinpeck has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
tkuchiki has joined #ruby
<zenspider> hrm... and that says that it is Halabund and freenode staff. and halabund isn't even listed on /whowas
<zenspider> so, it is a dead channel. :/
Mendenhall has quit [Ping timeout: 244 seconds]
<zenspider> there's a student throwing a shit fit
MiracleBlue has joined #ruby
<zenspider> didn't do his homework on time I'm guessing
wpp has joined #ruby
<adaedra> /msg ChanServ INFO`
dhjondoh has joined #ruby
deimos has joined #ruby
<adaedra> should tell you state of the channel
avdi has joined #ruby
manveru has joined #ruby
firevolt has joined #ruby
revath has quit [Ping timeout: 256 seconds]
<zenspider> yup. basically dead.
<zenspider> welcome back irccloud members! :P
nickfausnight has joined #ruby
heidar has joined #ruby
hellschreiber has joined #ruby
rfv has joined #ruby
spastorino has joined #ruby
dukedave has joined #ruby
<zenspider> wow... they're all just sloooowly trickling in
astrobun_ has joined #ruby
devbug has quit [Ping timeout: 244 seconds]
<adaedra> good thing joins are hidden I get?
timonv has joined #ruby
needyou has joined #ruby
<needyou> hey
Axy has joined #ruby
<needyou> how can i create 2 level ruby array like Array -> Date => Time ?
joonty has quit [Quit: joonty]
petems has joined #ruby
charles81 has joined #ruby
vcoinminer has joined #ruby
<needyou> and then compare this array with another one for same Date , Time ?
akahn has joined #ruby
rflot has joined #ruby
Mia has quit [Ping timeout: 244 seconds]
amitchellbullard has joined #ruby
<adaedra> How would you use that? A little bit of code sample with expected results?
<needyou> Will show u
joonty has joined #ruby
senayar has quit [Remote host closed the connection]
* apeiros suspects needyou means Hash, not array, with Date as key and Time as value
coderkevin has joined #ruby
krainboltgreene has joined #ruby
white_bear has joined #ruby
bove has joined #ruby
mikecmpbll has joined #ruby
<adaedra> apeiros: I do to, but better be sure?
pmarreck has joined #ruby
<apeiros> but not sure, since that "Date => Time" part doesn't make too much sense to me
_blizzy_ has quit [Ping timeout: 265 seconds]
Guest85414______ has joined #ruby
<apeiros> adaedra: certainly!
<apeiros> I'd have asked, if you hadn't :)
<adaedra> apeiros: apropos, guten morgen
astrobun_ has quit [Read error: Connection reset by peer]
ELLIOTTCABLE has joined #ruby
<apeiros> ah, oui, bonjour adaedra
<jhass> perhaps Date => [Time, Time, ...], who knows
<konsolebox> apeiros: but he may need the keys non-unique and in order
cbednarski has joined #ruby
<apeiros> jhass: *sob*, so now we need to also have somebody who's "who".
knowtheory has joined #ruby
jpinnix______ has joined #ruby
schaerli has quit [Remote host closed the connection]
dmoe has joined #ruby
poguez_ has joined #ruby
holsee_ has joined #ruby
<adaedra> We're doomed.
<jhass> mmh
<konsolebox> needyou: maybe you want a struct/class/openstruct instance or similar, or a = [[date, time], [date, time], ...]
<jhass> apeiros: must it be a doctor?
<needyou> pastebin.com/adpRMwQ7
<ruboto> needyou, 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
<apeiros> konsolebox: I suggest we just patiently wait for needyou to show us as they said they would.
bjeanes has joined #ruby
<konsolebox> apeiros: but you weren't ;)
varunwachaspati has quit [Ping timeout: 252 seconds]
ryba has quit [Remote host closed the connection]
<needyou> check the pastebin link i send in channel
<apeiros> jhass: huh? when does ruboto use this reponse instead of reposting it?
<adaedra> that's... a lot of code
<apeiros> we need ?minimalexample
glowcoil has joined #ruby
mjc_ has joined #ruby
max_v has joined #ruby
mrsolow has joined #ruby
<jhass> apeiros: if crossposting fails for whatever reason
<apeiros> needyou: pleaes, phrase your question in a way that's helpful to understand what you have and what you need
<needyou> i want to run this as cron, check if new pending calndar events are presented, and compare if the pending one is conflicting with some accepted one.
ljen has joined #ruby
<apeiros> needyou: just dumping a pile of code doesn't cut it.
ljarvis has joined #ruby
<apeiros> jhass: I see
<apeiros> makes sense
einarj has joined #ruby
<ljarvis> moin
astrobun_ has joined #ruby
<needyou> so i need to build an array with 2 levels, date, time
<adaedra> salut ljarvis
CustosLimen has quit [Read error: Connection timed out]
<needyou> check the responsestatus and compare if it conflicts with another event.
jimbeaudoin has joined #ruby
iamdevnul has joined #ruby
hashrocket has joined #ruby
HashNuke has joined #ruby
Lloyd has joined #ruby
lacrosse has joined #ruby
<apeiros> moin ljarvis
Heero has joined #ruby
<needyou> so i can accept of drop the event
<adaedra> needyou: so you can do something like `var[date][time]`?
zacstewart has joined #ruby
<apeiros> what's up with irccloud today? seems flakey…
<needyou> some example ? i am not so familar with ruby
<needyou> how must i build the var
neersighted has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
AdamMeghji has joined #ruby
<jhass> needyou: do you realize that Time represents a fixed point in all Time, not just of any day?
<jhass> >> Time.now
<ruboto> jhass # => 2015-07-20 08:07:59 +0000 (https://eval.in/401376)
bffff_ has joined #ruby
<needyou> i know
<adaedra> aw, 1 second close to round time
<pontiki> time is just an illusion
daxroc has joined #ruby
Axy has quit [Ping timeout: 255 seconds]
jlyndon has joined #ruby
timonv has quit [Read error: Connection reset by peer]
<jhass> ?xy needyou
<ruboto> needyou, it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
Iskarlar has joined #ruby
CustosLimen has joined #ruby
zipkid has joined #ruby
hoey_ has joined #ruby
lancetw has joined #ruby
im0b has joined #ruby
bruno- has joined #ruby
last_staff has joined #ruby
heidar has quit []
astrobun_ has quit [Read error: No route to host]
<needyou> jhass: i only want to build an array or var with the Date, Time of upcoming events, (LIST EVENT) part of the code. then compare these array -> start => dateTime / attendees => responseStatus if a responseStatus Date (NeedsAction) is conflicting with a Date / Time where the response Status is accepted, i can update the responseStatus to drop it.
<jhass> needyou: I don't get why you need a Date and a Time
arup_r_ has joined #ruby
atomi has quit [Remote host closed the connection]
<needyou> jhass: you got what i want to do ? : P
frankS2 has joined #ruby
countryHick has joined #ruby
dede has joined #ruby
shelling__ has joined #ruby
<needyou> simply want to check the calendar events for conflicts, and drop the new event with responseStatus Needsaction if there is already a event on the same day / time presented with responsestatus accepcted jhass
akitada has joined #ruby
valkyrka has joined #ruby
arup_r_ has quit [Client Quit]
tonini has quit []
manveru has quit []
jxf has joined #ruby
harleypig has quit []
atomi has joined #ruby
thesheff17 has joined #ruby
djbkd_ has quit [Remote host closed the connection]
yo61 has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
manveru has joined #ruby
arup_r has quit [Ping timeout: 264 seconds]
<adaedra> if you have a list of events, just go through it and check if start/end times are between even't start/end times
machty has joined #ruby
heidar has joined #ruby
<needyou> and how can i do it adaedra
arup_r has joined #ruby
<jhass> not sure. I'd probably start by .group_by'ing by status, then iterating over all events in NeedsAction and then .select out all conflicting ones out of the other groups and then do stuff with them
Averna has quit [Ping timeout: 240 seconds]
<needyou> jhass: can you provide me some exampe code ?
senayar has joined #ruby
Limezacore has joined #ruby
<jhass> not really since I don't get how to get the status from your code
<ljarvis> needyou: are you learning Ruby?
Kharma has joined #ruby
<jhass> .map'ping into a class Event; might help since then you have a place where you can neatly place some logic like .overlaps?(other_event)
<needyou> jhass: there is an example , line 60
<needyou> in the code
GitGud has quit [Ping timeout: 240 seconds]
<needyou> event.attendees[0].responseStatus
intinig has joined #ruby
<jhass> results.data.items.group_by {|event| event.attendees.first.responseStatus } then I guess?
<jhass> might need some logic to find the highest among all attendees I guess
dtcristo has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
axl_ has joined #ruby
darxun has joined #ruby
CustosLimen has quit [Read error: Connection timed out]
joaomdmoura has joined #ruby
last_staff has quit [Remote host closed the connection]
haxrbyte_ has quit [Read error: Connection reset by peer]
dhjondoh has quit [Quit: dhjondoh]
codecop has joined #ruby
codecop_ has joined #ruby
haxrbyte has joined #ruby
ggherdov has joined #ruby
codecop__ has joined #ruby
Philipp_ has joined #ruby
<Philipp_> why does it take at least 10 seconds to install any gem file?
<needyou> jhass: all events are written in the calendar automaticaly, even if date conflicts, so i can get 2 events at the same time, i need to compare if there are 2 events at the same time , date and drop the one with responseStatus NeedsAction
<jhass> and then by_status["needs_action"].each do |important_event| by_status["accepted"].select {|event| event.start.dateTime.between?(important_event.start.dateTime, important_event.end.dateTime) || event.end.between?(...) }.each do |conflicting_event| stuff(conflicting_event); or whatever
<needyou> ah :D
prosodyContext has joined #ruby
<jhass> well, then the other way around or idk
leat has quit [Remote host closed the connection]
leat has joined #ruby
tkuchiki has quit [Remote host closed the connection]
dhjondoh has joined #ruby
<jhass> Philipp_: perhaps your connection to rubygems.org lacks
<jhass> *lags
arup_r has quit [Read error: No route to host]
arup_r_ has joined #ruby
zacstewart has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
marr has joined #ruby
qiukun has quit [Quit: qiukun]
Musashi007 has joined #ruby
schaerli has joined #ruby
arup_r_ has quit [Client Quit]
<jhass> Philipp_: you can run gem install -V whatever and see where it hangs
<Philipp_> jhass how long does it take to install sensu-plugins-http?
<zenspider> Philipp_: it doesn't. I just installed one in 0m2.835s cold, 0.787s hot, and 1.9 hot w/ rdoc generation
Iskarlar has quit [Ping timeout: 246 seconds]
<apeiros> maybe a gem with native extension?
Igorshp has joined #ruby
<jhass> Philipp_: 5s here, pulled in 3 or 4 more gems though
<jhass> so roughly 1s per gem
<Philipp_> jhass why does it load 6 mixlib cli gems?
<Philipp_> with different versions?
tkuchiki has quit [Ping timeout: 264 seconds]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
<jhass> it doesn't?
<Philipp_> the -V output ships me it is requesting mixlib1.1, 1.2, 1.22, ...
haxrbyte has quit [Quit: Leaving...]
<jhass> not overhere
Avat has joined #ruby
<jhass> what's your gem -v ?
livathinos has joined #ruby
matcouto has joined #ruby
lkba_ has quit [Ping timeout: 246 seconds]
codecop_ has quit [Quit: Išeinu]
statu has joined #ruby
qiukun has joined #ruby
codecop__ has quit [Quit: Išeinu]
<Philipp_> jhass gem -v => 2.0.14 (embeded with sensu)
<jhass> that's really ancient
<jhass> you should update to the 2.4 series
serivich has joined #ruby
noethics has joined #ruby
<statu> Hi! I am trying Sinatra but I don't know how to pass variables to the views :/ I use erb as templates. The instruction that I use is "erb :index, :locals => {:test_sentence => "test sentence!"}" and then the template is rendered but nothing is displayed. The template code is "<%= @test_sentence %>". Any idea? Thanks!
tubulife- has joined #ruby
revath has joined #ruby
<jhass> statu: @test_sentence is an instance variable, you're passing a local_variable
<jhass> (remove the @)
<zenspider> jhass: shouldn't affect the install time at all
<zenspider> what does "embedded with sensu" mean?
<Philipp_> there is an ruby installation within sensu /opt/sensu/embeded/...
<statu> jhass: thanks!!
<Philipp_> that's the same with chef
<zenspider> do they know they misspelled embedded? :P
<jhass> zenspider: you're sure? didn't the latter versions start to use the dependency API?
<Philipp_> I did :/
<Philipp_> it is called embedded sorry for that
<zenspider> jhass: it'll look up deps a _bit_ faster, but not by much really. but the bottleneck will always be the download followed by the unpack & possibly build
schaerli has quit [Remote host closed the connection]
<zenspider> Philipp_: just pokin at ya
tvw has joined #ruby
Muhannad has quit [Remote host closed the connection]
<zenspider> Philipp_: what is the gem in question?
tubulife- has quit [Ping timeout: 260 seconds]
<Philipp_> sensu-plugins-http
<Philipp_> takes real0m11.470s
chussenot has joined #ruby
Siyfion has joined #ruby
wpp has quit [Ping timeout: 240 seconds]
Igorshp has quit [Remote host closed the connection]
krz has joined #ruby
Igorshp has joined #ruby
<zenspider> json... is a binary gem
schaerli has joined #ruby
howdoi has joined #ruby
<zenspider> I wind up with json-1.8.3 sensu-plugin-1.2.0 mixlib-cli-1.5.0 sensu-plugins-http-0.1.1 in 6.5 seconds
<jhass> Philipp_: and where is it spending most of the time?
<zenspider> the json gem needs to compile to work
<zenspider> yeah. the rest are pure ruby and install quickly
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> hot it is 4.7 sec
ta has joined #ruby
<zenspider> I'm getting mine from aws-eu-cache01.rubygems.org
<zenspider> oops
lkba has joined #ruby
<zenspider> no... Im' getting mine from fastly
<zenspider> he's getting from aws-eu-cache01.rubygems.org. pulled the trigger too soon
<zenspider> so, that can definitely play a part
jenrzzz has joined #ruby
<zenspider> Philipp_: `sudo gem update --system` will update your rubygems (maybe--some distros fuck with it)
<jhass> but anyway, as long as my last question is unanswered we can only blindly guess
<apeiros> Philipp_: why the question btw.? 10s doesn't strike me as a worrisome duration
<Philipp_> it is spending the most of the time downloading the gemspec files
Igorshp has quit [Ping timeout: 250 seconds]
<jhass> well, then my initial guess was right :P
<zenspider> and caching them... so...
<Philipp_> the real download and installation is very fast
<jhass> get a better connection to AWS S3
<Philipp_> my connection to aws is ok
<zenspider> l ~/.gem/specs/
<zenspider> s/l/ls/
Andreas-Jx has joined #ruby
<jhass> and suggestion stays, update rubygems
<Andreas-Jx> -n- New Steam Game http://yoliece463.itch.io/aeon-ball
<jhass> !ban Andreas-Jx !T 1d spam
Andreas-Jx was banned on #ruby by ChanServ [Andreas-Jx!*@*]
Andreas-Jx was kicked from #ruby by ChanServ [Banned: spam]
<Philipp_> I wonder why is see so many 302 requests
<zenspider> wow. faster than me
<zenspider> that's how it works
<Philipp_> the problem is not that a single gem is to slow, I have to install about 10 of these... so this adds up
<jhass> I think you've been giving a suggestion to try out
<jhass> basically restating your problem won't change it
<jhass> *given
serivich has quit [Ping timeout: 260 seconds]
<yorickpeterse> morning
[k- has joined #ruby
<Philipp_> ok thanks for your help
anisha has joined #ruby
dubkoidragon has quit [Read error: Connection reset by peer]
serivich has joined #ruby
leat has quit [Remote host closed the connection]
leat has joined #ruby
zacstewart has joined #ruby
zacstewart has quit [Remote host closed the connection]
zacstewart has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
matcouto has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 246 seconds]
schaerli has quit [Remote host closed the connection]
serivich has quit [Ping timeout: 256 seconds]
posixpascal has joined #ruby
waka has joined #ruby
posixpascal has quit [Max SendQ exceeded]
chussenot has quit [Quit: chussenot]
tjbiddle has joined #ruby
quimrstorres has joined #ruby
dtcristo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker_ has quit [Ping timeout: 248 seconds]
troulouliou_div2 has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
eGGsha has joined #ruby
gagrio has quit [Ping timeout: 256 seconds]
Kharma has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
fella5s has joined #ruby
lkba has quit [Remote host closed the connection]
Igorshp has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
senayar has quit [Remote host closed the connection]
astrobun_ has joined #ruby
yuuvee has joined #ruby
Igorshp has quit [Remote host closed the connection]
chussenot has joined #ruby
dtcristo has joined #ruby
GeissT has joined #ruby
zacstewart has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 265 seconds]
krz has quit [Read error: Connection reset by peer]
quazimodo has quit [Ping timeout: 244 seconds]
intinig has quit []
Igorshp has joined #ruby
cheeti has joined #ruby
<cheeti> hi
revath has quit [Remote host closed the connection]
<apeiros> hi cheeti
<cheeti> hi, how to convert pdf to csv using ruby code
max_v has quit [Ping timeout: 248 seconds]
djbkd_ has joined #ruby
senayar has joined #ruby
<bnagy> cheeti: I suggest not doing that
<cheeti> apeiros hi, how to convert pdf to csv using ruby code
<bnagy> try wrapping something like pdftotext
<apeiros> cheeti: that's rather vague
<apeiros> cheeti: you do realize that a pdf can contain anything and is just a bunch of "painting" instructions?
<apeiros> in other words: there are no generic solutions to convert a pdf to a csv at all, whether ruby or not. it'd always be a case specific solution.
PierreRambaud has joined #ruby
gagrio has joined #ruby
<cheeti> bnagy my client requirment is like that only. i converted using tabula gem it's working but i have some conditions
ta has joined #ruby
djbkd_ has quit [Ping timeout: 240 seconds]
<canton7> cheeti, presumably you've got a sample PDF you need to convert?
krz has joined #ruby
lokulin has quit [Changing host]
lokulin has joined #ruby
htmldrum has quit [Ping timeout: 260 seconds]
matcouto has joined #ruby
<shevy> cheeti try to convert it into html then parse that :D
tonini has joined #ruby
<bnagy> cheeti: uh that seems to be some terrifying bundled legacy java jar
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bnagy> I would be completely floored if you find a pdf parser in native ruby
<apeiros> bnagy: I want that pic of you floored :D
<bnagy> hahahah hahaha
<apeiros> too sad though that this reader can't extract JBIG (or whatever that format name was) images
<bnagy> that person is a maniac :)
workmad3 has joined #ruby
<yorickpeterse> yay quarterly reports
<yorickpeterse> yay investors
arup_r has joined #ruby
<bnagy> ah ok it got moved up
schaerli has joined #ruby
<bnagy> ljarvis: thanks :)
icosa1 has joined #ruby
<flughafen> shevy: have you shevy'd anyhthing today?
<shevy> not really, not feeling super awake, damn heatwave :(
<flughafen> shevy: how warm is it?
symm- has quit [Ping timeout: 244 seconds]
<flughafen> it's only 24 here right now
<zenspider> I would kill for 24... that sounds about perfect. I'd throw snowballs and smash ice in potholes
_blizzy_ has joined #ruby
eGGsha has joined #ruby
<zenspider> :D
<shevy> 26.4° and rising, it's still early, but I am near the top of the building so it's hotter inside
<flughafen> the high here wiill be 28. but we have klima in our office!
railsraider has joined #ruby
<zenspider> for the record, it was 35 here today
<needyou> hey jhass
<zenspider> C
<flughafen> sounds like you should make an igloo zenspider
lordkryss has joined #ruby
<zenspider> and is prolly 24C outside right now, at 2:40AM
<zenspider> I would LOVE an igloo right now.
<adaedra> 23°C here
<zenspider> until it melted
<needyou> can someone help me ?
<needyou> :D
galeido has quit [Remote host closed the connection]
<flughafen> sure needyou
<zenspider> I thought jhass did help?
<needyou> jeah running in some error
<needyou> pastebin.com/yRYTXdXY
<ruboto> needyou, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/568de67a2a1add2e8407
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
hectortrope has joined #ruby
dfockler has joined #ruby
sevenseacat has joined #ruby
bffff_ has quit [Quit: Connection closed for inactivity]
stamina has joined #ruby
<adaedra> what's the error?
<needyou> just a second
ndrei has quit [Ping timeout: 240 seconds]
<adaedra> Also
<adaedra> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<needyou> syntax error, unexpected ..., expecting ')'
<needyou> at (...)
<flughafen> needyou: paste it
timonv has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
hool is now known as ZYPP
ndrei has joined #ruby
<needyou> pastebin.com/eQzL0spb
<ruboto> needyou, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/478f32f938900aec490c
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<needyou> flughafen:
<adaedra> grmbl
<flughafen> ?gist needyou
<ruboto> needyou, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<zenspider> unexpected "..."
<zenspider> cmon
<needyou> :o
<adaedra> well, you need to replace ... by something meaningful
<apeiros> the art of ignoring a hint
<adaedra> indeed
dfockler has quit [Ping timeout: 255 seconds]
<flughafen> the error is clear here, but for future reference upload your code also to gist.github.com
schaerli has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
allomov has quit [Remote host closed the connection]
<needyou> okay fixed
<needyou> undefined local variable or method 'by_status' for main:Object (NameError ) ???
<needyou> :D
<needyou> ah lol
simplyianm has joined #ruby
fabrice31 has quit [Remote host closed the connection]
allomov_ has joined #ruby
fabrice31 has joined #ruby
<jhass> apeiros: why didn't it track that it already informed :( Should've been a bit more snarky the second time
fabrice31_ has joined #ruby
simplyianm has quit [Ping timeout: 248 seconds]
astrobun_ has quit [Remote host closed the connection]
fgo has joined #ruby
workmad3_ has joined #ruby
allomov has joined #ruby
allomov_ has quit [Read error: Connection reset by peer]
chussenot has quit [Quit: chussenot]
sdothum has joined #ruby
bruno- has joined #ruby
workmad3_ has quit [Client Quit]
fabrice31 has quit [Ping timeout: 248 seconds]
yuuvee is now known as yuuvee|away
yuuvee|away is now known as yuuvee
msgodf has joined #ruby
allomov has quit [Read error: Connection reset by peer]
allomov has joined #ruby
Soda has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 244 seconds]
ndrei has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 248 seconds]
<needyou> jhass: how can i realise the status_by function thought of parsing the event id and the responseStatus of the current event
duncannz has quit [Ping timeout: 248 seconds]
lkba has joined #ruby
lkba_ has joined #ruby
<jhass> needyou: don't blindly copy paste the snippets I gave you, understand what they would do, look at the docs of the involved methods
<jhass> then that question will resolve itself
tesuji has joined #ruby
Bloodshot has quit [Ping timeout: 256 seconds]
bodgix has joined #ruby
ta has quit [Remote host closed the connection]
bricker has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
dionysus69 has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
hashrocket has quit [Quit: Connection closed for inactivity]
bricker has quit [Ping timeout: 246 seconds]
valkyrka has quit [Quit: valkyrka]
ta has joined #ruby
yuuvee is now known as yuuvee|away
senayar has quit [Remote host closed the connection]
valkyrka has joined #ruby
quimrstorres has quit [Remote host closed the connection]
peter_paule has joined #ruby
senayar has joined #ruby
sickmate has quit [Ping timeout: 260 seconds]
mcnesium has joined #ruby
<mcnesium> can anyone point me to what is the problem with installing the rugged gem? http://pastie.org/private/camhpx5zqihik8uwigyfha
j4cknewt has quit [Remote host closed the connection]
<jhass> quote "Check the mkmf.log file for more details."
<mcnesium> i can't find that one though
Avat has quit [Quit: Page closed]
Silox| has quit [Quit: Connection closed for inactivity]
peter_paule has quit [Ping timeout: 252 seconds]
Avat has joined #ruby
<jhass> "Gem files will remain installed in /usr/local/lib/ruby/gems/2.2.0/gems/rugged-0.22.2 for inspection"
ArchRogem has joined #ruby
zacstewart has joined #ruby
<mcnesium> no mkmf.log in there either
serivich has joined #ruby
<zenspider> find /usr/local/lib/ruby/gems/2.2.0 -name mkmf.log
<zenspider> I think they got moved to ext
zacstewart has quit [Remote host closed the connection]
tubulife- has joined #ruby
zacstewart has joined #ruby
<mcnesium> ah got it :)
<mcnesium> great
<mcnesium> Error: /usr/bin/xcode-select returned unexpected error.
nyuszika7h has joined #ruby
<jhass> I hope that's not all it says
<mcnesium> no, it says cmake couldnt find the compiler
<mcnesium> which is weird, because I use homebrew all the time and this is ruby as well, right?
tubulife- has quit [Ping timeout: 240 seconds]
schaerli has joined #ruby
max_v has joined #ruby
htmldrum has joined #ruby
<mcnesium> here is the full output with extended error files http://pastie.org/pastes/10302197/text?key=keedmm17p0lbo9xki4atwg
<adaedra> looks like Xcode is not installed though
<adaedra> ah no wait, misread
<adaedra> mcnesium: could run `brew doctor` once to see if there isn't any issue with the installation
Tritone has quit [Remote host closed the connection]
arturaz has joined #ruby
<mcnesium> its actually not a homebrew issue, I am trying to get diaspora running
arturaz has quit [Client Quit]
<adaedra> yeah, I know
Musashi007 has quit [Quit: Musashi007]
<adaedra> but this could highlight a problem in the build environment
<mcnesium> ok ill check
ZYPP is now known as hool
phutchins has joined #ruby
dubkoidragon has joined #ruby
<dubkoidragon> herrrro
<mcnesium> it only complained about not being updated within 24h and about non-prefixed findutils (which is python-related, but also obsolete)
<adaedra> ok
ta has quit [Remote host closed the connection]
judofyr has joined #ruby
ndrei has joined #ruby
Tritone has joined #ruby
ta has joined #ruby
senayar has quit [Remote host closed the connection]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quimrstorres has joined #ruby
<mcnesium> hm wouldnt tell homebrew if xcode is not up to date?
<jhass> that's all I kind find on google
granthatcher has joined #ruby
granthatcher has quit [Max SendQ exceeded]
<adaedra> mcnesium: should, but go look in the mac app store, it will tell ya
<mcnesium> I dont have the full Xcode package, just the command line tools
granthatcher has joined #ruby
<adaedra> ah
<adaedra> that changes things
<mcnesium> and i am on osx lion :)
<shevy> come to linux!
<mcnesium> lol is that a bot?
<adaedra> L O L
fabrice31 has joined #ruby
<adaedra> lion, that begins to be old
quimrstorres has quit [Ping timeout: 255 seconds]
sp1rs has quit [Ping timeout: 256 seconds]
eGGsha has joined #ruby
granthatcher has left #ruby [#ruby]
<mcnesium> right, but this is on an mbp 3,1 2,2GHz and I dont trust apple when they say their newer OS wont slow down the system
phutchins has quit [Ping timeout: 248 seconds]
<adaedra> you may want to try setting the c compiler manually like proposed in thre trace
ta has quit [Remote host closed the connection]
sp1rs has joined #ruby
leat has quit [Remote host closed the connection]
<shevy> adaedra do you use linux
<adaedra> shevy: depends. Right now, yes.
htmldrum has quit [Ping timeout: 244 seconds]
<shevy> \o/
tjbiddle has quit [Quit: tjbiddle]
leat has joined #ruby
tmtwd has joined #ruby
postmodern has quit [Quit: Leaving]
<adaedra> [k-: sorry to have a life besides #ruby
judofyr has quit [Remote host closed the connection]
al2o3-cr has quit [Ping timeout: 260 seconds]
htmldrum has joined #ruby
decoponyo has joined #ruby
<mcnesium> adaedra: you mean when trying to install the rugged gem I can set the compiler manually?
<mcnesium> looks like I cannot upgrade xcode CLT anymore on lion
decoponio has quit [Ping timeout: 260 seconds]
<adaedra> “Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH."
<adaedra> s/"/”/
tkuchiki has joined #ruby
user1138 has quit [Ping timeout: 246 seconds]
<mcnesium> I dont know how to do that…
<adaedra> setting the env variable CC should do it
lkba_ has quit [Remote host closed the connection]
yuuvee|away is now known as yuuvee
<mcnesium> and what do I set it to? I dont know where I have to look for the right compiler
fabrice31 has quit [Remote host closed the connection]
<adaedra> usually it's gcc
fabrice31 has joined #ruby
<adaedra> so
<adaedra> export CC="gcc"
<mcnesium> ok got it
bruno- has joined #ruby
Igorshp has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
Lucky_ is now known as Guest5387
<mcnesium> but it didnt change the error message :(
yfeldblum has quit [Ping timeout: 248 seconds]
<mcnesium> also tried export CC="/usr/bin/gcc"
<mcnesium> same no difference
tkuchiki has quit [Read error: Connection reset by peer]
olblak has quit [Quit: leaving]
al2o3-cr has joined #ruby
fabrice31_ has joined #ruby
tkuchiki has joined #ruby
tomaz_b has joined #ruby
olblak has joined #ruby
AlexAltea has quit [Ping timeout: 250 seconds]
Igorshp has joined #ruby
Jeff_D has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
<mcnesium> is it really necessary to dist-upgrade osx to get a later CLT to have this one gem compiled correctly to get diaspora running ?
<adaedra> I won't say so
<mcnesium> good, I assume this would open more issues than it would fix
<Jeff_D> MiniTest::Matchers question: is there an accepted way to pass multiple parameters, a la #chain in RSpec? Or is it customary to create a standalone class not matching the Matchers API, and then just use something like `test_instance.must be_valid` ?
Igorshp has quit [Ping timeout: 246 seconds]
Shidash has quit [Quit: ZNC - http://znc.in]
sarkyniin has joined #ruby
woodruffw has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
c355E3B has joined #ruby
Kharma has joined #ruby
mikenovikov has quit [Ping timeout: 265 seconds]
<[k-> I thought I got pinged for something special
<[k-> it's just you, adaedra >:3
<adaedra> [k-: same reaction this morning opening my client
<[k-> good for you! pings from me are always good!
<adaedra> mcnesium: just have to find the way of supplying it the right compiler. Don't know exactly how though. Read the trace well, there may be clues.
tkuchiki has joined #ruby
quimrstorres has joined #ruby
thiagovsk has joined #ruby
haxrbyte has joined #ruby
Blaguvest has joined #ruby
Igorshp has joined #ruby
<[k-> xcode was available on lion
<[k-> however apple just made it available on Yosemite only
kp666 has joined #ruby
<adaedra> not the problem, should be able to build without it
Igorshp has quit [Remote host closed the connection]
barkerd427 is now known as zz_barkerd427
Shidash has joined #ruby
<[k-> there's no gcc without it
<[k-> I have the whole darn thing installed
lala has quit [Quit: Connection closed for inactivity]
schaerli has quit [Remote host closed the connection]
<[k-> it hijacks all the dem file extensions :(
tjbiddle has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
<needyou> hmmm
<mcnesium> gcc -v gives gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
timonv has quit [Ping timeout: 260 seconds]
symm- has joined #ruby
<mcnesium> without having xcode installed
<[k-> Yosemite drains battery much faster :c
<mcnesium> also yosemite is ugly as hell
sp1rs has quit [Ping timeout: 255 seconds]
exadeci has joined #ruby
Jeff_D has quit [Quit: JMP $]
tjbiddle has quit [Ping timeout: 244 seconds]
woodruffw has joined #ruby
hool is now known as ZYPP
DoubleMalt has quit [Remote host closed the connection]
Igorshp has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
<adaedra> [k-: there's totally gcc without xcode. You can use command line tools alone, or use a 3rd party gcc.
Avat has quit [Quit: Page closed]
<adaedra> And yeah, Yosemite looks like shit, but at least I can send SMSs from my computer! \o/
schaerli has joined #ruby
<[k-> it looks worse :(
pwnz0r has joined #ruby
<mcnesium> adaedra: lol thats a killer feature
scripore has joined #ruby
<adaedra> exactly!
tkuchiki has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
sankaber has joined #ruby
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
Rutix has quit []
tkuchiki has joined #ruby
atomical has quit [Ping timeout: 248 seconds]
pwnz0r has quit [Ping timeout: 248 seconds]
fabrice31_ has quit [Read error: No route to host]
fabrice31 has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
axl__ has joined #ruby
diegoviola has joined #ruby
arturmartins has joined #ruby
crunk_bear has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
schaerli has quit [Remote host closed the connection]
endash has joined #ruby
fabrice31 has quit [Remote host closed the connection]
valkyrka has quit [Quit: valkyrka]
fabrice31 has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crunk_bear has quit [Client Quit]
ybian has quit [Ping timeout: 272 seconds]
ybian has joined #ruby
zz_barkerd427 is now known as barkerd427
schaerli has joined #ruby
serivich has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
Papierkorb has joined #ruby
centrx has joined #ruby
griffindy has joined #ruby
yuuvee has quit [Quit: Leaving...]
<centrx> Good morning ladies, and shevy
rideh has joined #ruby
yuuvee has joined #ruby
<shevy> YAY
<[k-> you need to be more inclusive, centrx
<[k-> --shevy
<shevy> ++shevy
<shevy> --[k-
<adaedra> free(shevy);
<shevy> let loose the beast!
<centrx> memory not found
<shevy> what do you guys think of configuration files kept in yaml files only, in a directory, with the convention of one yaml file per configuratable option?
<Silex> shevy: surely you mean one yaml per configurable "logical set of options"?
<adaedra> no no, one file per option, like gconf does.
<adaedra> because it makes so much sense.
<[k-> I would cry if there was one yaml file for one configuratable option
<[k-> adaedra: indeed
<Silex> if the configuration files each contain one line I'd cry too yes
<shevy> hmm... doesn't gconf use xml?
mary5030 has joined #ruby
<shevy> Silex yes! one option only
<Silex> it's not even yaml as this point
<Silex> the file name is the key
<[k-> ^
<Silex> and the content is the value
eGGsha has joined #ruby
<[k-> json!
<shevy> yes :)
Zai00 has joined #ruby
barkerd427 is now known as zz_barkerd427
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
timonv_ has joined #ruby
Spami has joined #ruby
cubicool has joined #ruby
crunk_bear has joined #ruby
axl__ has quit [Quit: Leaving]
<cubicool> Hey folks. I find myself needing to programmatically generate single strings from data within hashes, and I'm looking for syntactic alternatives to doing it imperatively. In Python, for example, I can pass a generator to ''.join(). Can anyone provide any hints on this?
qiukun has quit [Quit: qiukun]
<centrx> cubicool, Can you give an example? A Ruby Enumerator is like a generator
<cubicool> Something like: hash.each { |k, v| v }.values.join ' ' should work for small cases, I think.
<centrx> hash.values is the same as hash.each { |k,v| v } right?
<[k-> so you want to grab the values only?
prestorium has joined #ruby
<cubicool> That example was too simple, sorry.
<cubicool> Something more complicated is where I build a new value using the key and value...
allcentury has joined #ruby
<[k-> Hash#map
<[k-> this will return a associative array though
mary5030 has quit [Remote host closed the connection]
<cubicool> hash.each { |k, v| "#{k}=#{v}" }.values.join ' / '
<centrx> Yeah you're looking for map
<centrx> not sure what the values is in there for
<[k-> cubicool: Hash#map
<cubicool> [k-: Perfect, thanks. How did I miss that.
<[k-> cubicool you should read messages even if they don't prefix your name :)
DEA7TH_ has joined #ruby
revath has joined #ruby
tubulife- has joined #ruby
victortyau has joined #ruby
tomaz_b has quit [Quit: Leaving]
arturmartins has quit [Quit: Leaving...]
schaerli has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3> centrx: it would be the same as hash.map { |k,v| v }
<workmad3> but got there :)
serivich has joined #ruby
balazs_ has quit []
tubulife- has quit [Ping timeout: 248 seconds]
schaerli has joined #ruby
<needyou> can someone explain or show me how i can clean up the code i mean how would u use a class for this code ? pastebin.com/ETzQ0Gh7
<ruboto> needyou, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/0461d16cb01b79a72056
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
juanpaucar has joined #ruby
sp1rs has joined #ruby
_ht has quit [Remote host closed the connection]
_ht has joined #ruby
<jhass> needyou: how many more times do you want to trigger ^ ?
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pepperbreath has quit [Ping timeout: 248 seconds]
centrx has quit [Quit: 'Get out, and all the people who follow you!' Then he went out from Pharaoh in great anger.]
pepperbreath has joined #ruby
<jhass> needyou: also properly indent code and remove comment cruft before submitting it to review
centrx has joined #ruby
<jhass> the group_by doesn't do anything if you ignore its return value, so again read up on what I could've meant with it, why it might be useful
krz has quit [Read error: Connection reset by peer]
icosa1 has quit [Quit: Leaving]
<jhass> keep your lines below 120 characters, Ruby is pretty liberal on where it accepts newlines
Tritone_ has joined #ruby
christiandsg has joined #ruby
mary5030 has joined #ruby
stopbyte has joined #ruby
mary5030 has quit [Remote host closed the connection]
timonv_ has quit [Quit: Leaving...]
<[k-> needyou: this is proof that jhass spoke the truth: https://eval.in/392793
Tritone has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
davejlong has joined #ruby
leat has quit [Remote host closed the connection]
sankaber has quit [Ping timeout: 240 seconds]
<[k-> I should bookmark that link
leat has joined #ruby
<[k-> it is a great example on how to write code!
<jhass> [k-: I like the output. It reflects my feelings about the code
statu has quit [Remote host closed the connection]
desigx has joined #ruby
sgambino has joined #ruby
<[k-> I predicted that before hand and made the code do it :3
scripore has quit [Quit: This computer has gone to sleep]
dionysus69 has quit [Ping timeout: 256 seconds]
Kully3xf has joined #ruby
dhjondoh has quit [Remote host closed the connection]
christiandsg has quit [Remote host closed the connection]
cheeti has quit [Quit: Page closed]
<needyou> jhass: i only want to get the main initalize stuff in some classes
<dubkoidragon> hey i need some help with some code only 31 lines how and where can i post it
<needyou> and may convert some stuff to yield blocks
d10n-work has joined #ruby
<al2o3-cr> ?gist dubkoidragon
<ruboto> dubkoidragon, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<cubicool> [k-: If I have a multiline block of code, how can I use map() with Rubocop's default settings? It works, but it complains about using "{...} multi-line blocks"
<dubkoidragon> ok so where
bayed has joined #ruby
WildBamboo-Josh has quit [Read error: Connection reset by peer]
helpa has quit [Remote host closed the connection]
kkeuning has joined #ruby
<dubkoidragon> i got 2 answers
d10n-work has quit [Changing host]
d10n-work has joined #ruby
joshbamboo1 has joined #ruby
bayed has quit [Changing host]
bayed has joined #ruby
<dubkoidragon> somewhere where i can do it quick
helpa has joined #ruby
<ljarvis> cubicool: use do..end
pandaant has quit [Remote host closed the connection]
<jhass> dubkoidragon: I see only one answer
<dubkoidragon> oh
<cubicool> ljarvis: I'm having trouble seeing how to use that syntax. I keep getting an Enumerator, so its just misuse on my part clearly. :)
DoubleMalt has joined #ruby
kkeuning has quit [Max SendQ exceeded]
t0rrieri has quit [Read error: Connection reset by peer]
<needyou> someone got a good online curse for learning ruby basics ? class, yield blocks etc ?
dhjondoh has joined #ruby
<ljarvis> cubicool: could you show me your code?
t0rrieri has joined #ruby
tesuji has quit [Ping timeout: 250 seconds]
<centrx> needyou, tryruby.org, Ruby Monk, Ruby Koans
kkeuning has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
tesuji has joined #ruby
<jhass> dubkoidragon: click edit, activate syntax highlighting
<[k-> he wants a curse
<jhass> dubkoidragon: also fix you indention, Ruby community standard is 2 spaces but yours is not even consistently indented
kkeuning has quit [Max SendQ exceeded]
<dubkoidragon> jhass i hit edit where is thsi syntax highlighting
<jhass> top left next to the filename
<al2o3-cr> dubkoidragon: you're not assigning
but3k4 has joined #ruby
krz has joined #ruby
<jhass> or just name it whatever.rb
<awk> Please can someone help the ruby noob... http://pastebin.com/2RZCW0BA ... when it runs that git, it failed because it doesn't exist ... so I want to use if $? = 1 ... tell me it may be missing... if I remove the whole if .... and I run the script and then do a echo $? I get a 1, so I knoww it's failing.. just not sure why it's not doing the if $? after it's run ?
<ruboto> awk, as I told you already, please use https://gist.github.com
amystephen has joined #ruby
kkeuning has joined #ruby
dtcristo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<centrx> needyou, Curse: May you forever be unable to learn Ruby, or to learn anything it all. In the name of Satan, FU
<dubkoidragon> i dontk now how to do any of this
zacstewart has quit [Remote host closed the connection]
<cubicool> ljarvis: Yes, one sec. :)
<jhass> dubkoidragon: it's where we all started. Purge that thought
kkeuning has quit [Max SendQ exceeded]
<dubkoidragon> ok so basically im unhelpable hey
<ljarvis> awk: what library are you using?
<jhass> dubkoidragon: just do as I said, two simple things to make it easy for people to help you
<dubkoidragon> ok
<dubkoidragon> i ficxed it
<dubkoidragon> i think
kkeuning has joined #ruby
<dubkoidragon> i made it .rb
<jhass> syntax highlighting, yes. Indentation not so much
<awk> require 'git'
<awk> @ljarvis:
<jhass> dubkoidragon: so, why do you use @@class_vars in the first place?
<dubkoidragon> becasue thats what im learning right now
polpy has joined #ruby
dhjondoh has quit [Client Quit]
<bnagy> who is teaching you this?
allcentury has quit [Ping timeout: 244 seconds]
<jhass> and what are they arguing why it fits the usecase?
<bnagy> they are bad and they should feel bad
<dubkoidragon> myself,, just please this is a small part of what i need and its bother me that i get this error and i cant ifgure it out
polpy has left #ruby [#ruby]
<cubicool> ljarvis: https://gist.github.com/cubicool/392373afbc9c77984389 Obviously the 2nd syntax won't work, I'm reading some docs now to see what I need though.
<dubkoidragon> shit i think im retarded
<jhass> well, those @@class_vars really really want to be CONSTANTS
segfalt has joined #ruby
<dubkoidragon> yah i forgot the =
<ljarvis> cubicool: that's the example you've been given?
<cubicool> It's what I just pasted to help demonstrate my question.
<dubkoidragon> ok that part is fixed now it has another bug, ill see ifi can figure it out
<ljarvis> cubicool: basically `end.foo` is generally not ideal. You should use { } if you're chaining methods
<[k-> ljarvis: I totally used end.foo in my example code ;)
balazs_ has joined #ruby
<ljarvis> [k-: you also post 90% awful code so that's not surprising
<ljarvis> give or take 10%
<mikecmpbll> lol
<[k-> you can make that 100%, everyone believes so anyway
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cubicool> ljarvis: Why does Rubocop warn me about multi-line bodies when using {}?
<mikecmpbll> cubicool: because it's against the rubocop style guide?
<cubicool> Clealry, but.
<mikecmpbll> do .. end ..
quimrstorres has quit [Remote host closed the connection]
<[k-> its the current convention to use {} for single lines
cochise has joined #ruby
<cubicool> I'm giving it enough credit and assuming it knows something I don't. :)
<jhass> cubicool: I turned that off because I follow Weirichs rule
<ljarvis> cubicool: if you use {} for multi-line blocks it's fine if there's method chaining, otherwise you should use do..end
coffeeju1 is now known as coffeejunk
segfalt_ has joined #ruby
<ljarvis> does it actually promote using do..end and method chaining? (surely not)
fgo has joined #ruby
<jhass> ljarvis: no it yells at you if you change it to that
<ljarvis> which?
<jhass> end.foo
<ljarvis> ah
<ljarvis> that's ok with me
<mikecmpbll> i suspect it tells you not to use multiline body with { } regardless of chaining
segfalt has quit [Ping timeout: 246 seconds]
segfalt_ is now known as segfalt
<jhass> yeah, but annoying if you change your perfectly fine multiline }.foo to that
<ljarvis> cubicool: you should just tweak the settings to make it match what you want. It's about consistency, not confirmity (imo)
<ljarvis> conformity*
<dubkoidragon> holy moly that had so many holes in it but i figured it out, thx for the help
bruno- has joined #ruby
<jhass> Rubocop config sharing party? Rubocop config sharing party! https://gist.github.com/jhass/a5ae80d87f18e53e7b56
<ljarvis> Max: 120
<shevy> lol
<ljarvis> stopped reading
bhorn1|away is now known as bhorn1
<ljarvis> /s
<jhass> heh
DEA7TH_ has quit [Quit: DEA7TH_]
<cubicool> It wants "leading dots"... hmmm.
<shevy> I cheer for cheerleaders so I cheer for jhass \o/
htmldrum has quit [Ping timeout: 240 seconds]
<shevy> one day the world will run out of dots
chussenot has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<jhass> ljarvis: you're running a 90s terminal still?
<shevy> let me run rubocop with jhass style
<ljarvis> jhass: :D
<shevy> it works if I create .rubocop.yml in my home dir yes?
<jhass> shevy: note I stole half of it from apeiros
<jhass> yeah
valkyrka has joined #ruby
<jhass> unless you have one in your project which overrides it again
<shevy> well I assume it will be distinct to the "official" style
<shevy> and the official style gives me about a million warnings
fgo has quit [Ping timeout: 244 seconds]
<[k->  
<[k-> # Too short methods lead to extraction of single-use methods, which can make
<[k-> Metrics
<[k-> # the code easier to read (by naming things), but can also clutter the class
<[k-> we write short methods in Haskell
<[k-> and we compose them together
<shevy> huh
christiandsg has joined #ruby
<shevy> jhass is that rubocop file valid?
simplyianm has joined #ruby
<mikecmpbll> rubocop it.
<cubicool> Here is the justification (according to Rubocop): https://github.com/bbatsov/ruby-style-guide#single-line-blocks
<shevy> perhaps I made a mistake but the last entry seems weird
<ljarvis> [k-: the next time you talk about Haskell you're getting a timeout for a day
<shevy> ok last "Enabled: false" should probably be " Enabled: false", now it works
zacstewart has joined #ruby
<shevy> "12826 offenses detected" hmmmmm
<mikecmpbll> lol!
<[k-> we need to promote it so that there is further adoption
prefixed has joined #ruby
<[k-> it's a nice language to know
<[k-> I love it more than ruby
<[k-> I still write a lil Ruby tho
chussenot has quit [Client Quit]
<ljarvis> [k-: yes, but it's offtopic and this is not the place to discuss it. So please stop
<[k-> I wonder if I can make graphs with ruby
<[k-> alright, ljarvis
<shevy> graphviz + gruff
<[k-> but that isn't written in Ruby or is it
<shevy> I think it uses graphviz underneath
schaerli has quit [Remote host closed the connection]
<shevy> but the charts are fancy!
<[k-> I need scattered graphs tho
<shevy> mikecmpbll it actually finds some minor typos and such... "Space inside parentheses detected." indeed... I had one line like this: -> copy( input
<mikecmpbll> ah, when i took over this codebase every method call was like that
<mikecmpbll> ._.
simplyianm has quit [Ping timeout: 248 seconds]
tkuchiki has joined #ruby
lxsameer has quit [Remote host closed the connection]
<[k-> so did you refactor or did you continue?
linuxboytoo has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
<mikecmpbll> refactorized™ with regex replace
<[k-> :>
zr2d2 has quit [Ping timeout: 252 seconds]
krz has quit [Quit: WeeChat 1.0.1]
Igorshp has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
Igorshp has joined #ruby
leat has quit [Remote host closed the connection]
rubie has joined #ruby
Igorshp has quit [Remote host closed the connection]
dhjondoh has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chussenot has quit [Client Quit]
leat has joined #ruby
devbug has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
desigx has quit [Ping timeout: 244 seconds]
adegre has joined #ruby
adegre has quit [Client Quit]
christiandsg has quit [Remote host closed the connection]
atomical has joined #ruby
bricker has joined #ruby
devbug has quit [Ping timeout: 250 seconds]
max_v has quit [Ping timeout: 244 seconds]
bungoman has joined #ruby
lavros has joined #ruby
bmurt has joined #ruby
eGGsha has joined #ruby
yuuvee has quit [Ping timeout: 265 seconds]
Pupeno has quit [Remote host closed the connection]
whiteline has quit [Quit: Leaving]
quimrstorres has joined #ruby
chussenot has joined #ruby
bricker has quit [Ping timeout: 256 seconds]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
monstordh has joined #ruby
chussenot has quit [Client Quit]
fumihiro has joined #ruby
lkba has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
mandarinkin has quit [Ping timeout: 265 seconds]
zz_barkerd427 is now known as barkerd427
ndrei has joined #ruby
malconis has joined #ruby
chussenot has joined #ruby
cochise has quit [Remote host closed the connection]
malconis has quit [Remote host closed the connection]
malconis has joined #ruby
arup_r_ has joined #ruby
fabrice31_ has joined #ruby
scripore has joined #ruby
jgpawletko has joined #ruby
desigx has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
arup_r has quit [Ping timeout: 248 seconds]
mhib has joined #ruby
<shevy> is ['a','b','c'] called the Array literal method?
DEA7TH_ has joined #ruby
<[k-> yes
leat has quit [Remote host closed the connection]
leat has joined #ruby
infinitestate has joined #ruby
ruurd has joined #ruby
<adaedra> ['a','b','c'] = %w[a b c]
<[k-> that's the percent literal
<adaedra> that's shorter
ruurd has quit [Read error: Connection reset by peer]
bronson has joined #ruby
<mikecmpbll> "Adjacent string literals are automatically concatenated by the interpreter: "foo" "bar" #=> "foobar"
<mikecmpbll> TIL^
ruurd has joined #ruby
cochise has joined #ruby
<shevy> hmmm
<mikecmpbll> i wonder how they're concatenated internally
<shevy> -> is the proc literal?
<mikecmpbll> shevy: yep
<[k-> I learnt that awhile ago but I don't use it
<[k-> no
<adaedra> mikecmpbll: so you can write it on multiple lines. That comes from C.
<[k-> it's the lambda literal
<mikecmpbll> adaedra: interesting
gwendall has joined #ruby
<shevy> but that pages says so
<[k-> if you puts a -> you will see its a lambda
schaerli_ has joined #ruby
chussenot has quit [Quit: chussenot]
fabrice31 has joined #ruby
<mikecmpbll> but a lambda is a proc, right? :p
fabrice31_ has quit [Read error: Connection reset by peer]
<mikecmpbll> >> ->{}.class
<ruboto> mikecmpbll # => Proc (https://eval.in/401552)
allcentury has joined #ruby
<mikecmpbll> >> lambda{}.class
<ruboto> mikecmpbll # => Proc (https://eval.in/401553)
chussenot has joined #ruby
<adaedra> >> ->{}.inspect
<ruboto> adaedra # => "#<Proc:0x405045fc@/tmp/execpad-4e17039c3d41/source-4e17039c3d41:2 (lambda)>" (https://eval.in/401554)
dhjondoh has quit [Quit: dhjondoh]
<adaedra> it's the stabby literal
<[k-> see the (lambda) at the end
sp1rs has quit [Ping timeout: 256 seconds]
<[k-> >> (lambda {}).inspect
<ruboto> [k- # => "#<Proc:0x4179840c@/tmp/execpad-fc3b2f7b2796/source-fc3b2f7b2796:2 (lambda)>" (https://eval.in/401555)
<[k-> that's how lambdas are represented as well
mandarinkin has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
<needyou> okay will shoot myself :D
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
rdar has joined #ruby
* adaedra *pang*
codecop has quit [Remote host closed the connection]
[k-_ has joined #ruby
Feyn has quit [Quit: Leaving]
masteraka has joined #ruby
failshell has joined #ruby
atomical has quit [Read error: No route to host]
arup_r_ has quit [Remote host closed the connection]
atomical has joined #ruby
jhass has quit [Quit: and then /msg *status connect then I'm afraid]
jhass has joined #ruby
juanpaucar has quit [Remote host closed the connection]
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
presto has joined #ruby
prestorium has quit [Ping timeout: 256 seconds]
chussenot has quit [Quit: chussenot]
benlovell has joined #ruby
vondruch has quit [Remote host closed the connection]
revath has quit [Quit: Leaving.]
damnman has joined #ruby
Igorshp has joined #ruby
<damnman> is !duh.method the same ad !(duh.method) in all cases
revath has joined #ruby
<[k-> yes, I believe so
<[k-> . has highest precedence
<[k-> even zenspider says so
masteraka has quit [Quit: Leaving.]
<damnman> [k-: ok as long ad apeiros say so
chussenot has joined #ruby
<[k-> zenspider is not apeiros :(
<[k-> apeiros, look what you have done
<mikecmpbll> they'll love you for all the pointless highlights though.
<mikecmpbll> ;)
mary5030 has joined #ruby
<damnman> [k-_: seems like they forgot the . http://ruby-doc.org/core-2.2.2/doc/syntax/precedence_rdoc.html
<[k-> they are very magnanimous people
nettoweb has joined #ruby
<[k-> damnman see my link
chussenot has quit [Client Quit]
Igorshp has quit [Ping timeout: 264 seconds]
kfpratt has joined #ruby
<damnman> [k-: what if you have baba,method && !duh.method .....would it still be the same? yes
chussenot has joined #ruby
khando_ has joined #ruby
<mikecmpbll> syntax error
bruno- has quit [Ping timeout: 250 seconds]
<adaedra> if you think it's ambigous, add parenthesis.
<adaedra> ambiguous?
<mikecmpbll> that one
<[k-> yes adaedra
<[k-> damnman, yes it works that way
<[k-> that's how people write their code as well
<damnman> adaedra: i have a bug im trying to reproduce..and i suspect that might be related
<[k-> >> !nil.nil?
<ruboto> [k- # => false (https://eval.in/401563)
<[k-> see ^
mary5030 has quit [Ping timeout: 248 seconds]
<damnman> in my example above...&& would have highest priority right? then "." then !
arup_r has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
JoshL has joined #ruby
monstordh has quit [Quit: good night to all...and to all a good night.]
<[k-> no, . followed by !
<[k-> so (blah) && (!blah)
<adaedra> so like he said?
<[k-> && is the lowest in this case
<[k-> . is the highest
<[k-> so what he said is wrong
<[k-> . > ! > &&
fgo has joined #ruby
dubkoidragon has quit [Ping timeout: 244 seconds]
Igorshp has joined #ruby
Tritone_ has quit []
<damnman> yup so (!claim).declined? is the only way to negate the receiver
<al2o3-cr> . highest precedence?
benlovel1 has joined #ruby
<ljarvis> damnman: that code makes no sense, it'll call declined? or true or false
<[k-> there is a declined? on booleans?
<damnman> too bad then not related to my issue
sarkyniin has quit [Ping timeout: 240 seconds]
rikkipitt has joined #ruby
niemcu has quit [Ping timeout: 244 seconds]
<[k-> it will evaluate !claim first and call declined on the result
<[k-> ?code damnman
<ruboto> damnman, We can't help you without your code, please post it to https://gist.github.com
<damnman> ljarvis: which one? i was just giving random examples
prefixed has quit [Ping timeout: 264 seconds]
<ljarvis> damnman: do you actually have some problematic code?
dopie has quit [Ping timeout: 265 seconds]
benlovell has quit [Ping timeout: 252 seconds]
<[k-> he seems to have a precedence issue
<damnman> ljarvis: nope...im not sure what part is problematic..im debuggin still...i suspected it could have been a precedence thing but nope since !(dub.method?) is the same as !dub.method? in all situations...ill continue investigating
<damnman> thanks guys
fgo has quit [Ping timeout: 256 seconds]
<ljarvis> i mean.. if you showed us code we could probably help you
prefixed has joined #ruby
kp666 has quit [Quit: Leaving]
rbennacer has joined #ruby
niemcu has joined #ruby
bffff_ has joined #ruby
<damnman> ljarvis: dude im aware of that..its useless until i reduce the scope... its 1000000000000lines of code
mikecmpbll has quit [Ping timeout: 240 seconds]
t0rrieri has quit [Quit: Be back later ...]
sarkyniin has joined #ruby
t0rrieri has joined #ruby
<[k-> thanks!
<[k-> less work!
<[k-> look jhass, the perfect one!
shredding has joined #ruby
aryaching has joined #ruby
<ljarvis> one trillion lines of code
<ljarvis> impressive
<ljarvis> >> require 'base64'; Base64.decode64(" aG$*Vs \t\rbG*(@8g*#@($#d2 __)9::ybG~~Q \t")
<ruboto> ljarvis # => "hello world" (https://eval.in/401609)
miwood has joined #ruby
schaerli_ has quit [Remote host closed the connection]
benlovel1 has quit [Ping timeout: 264 seconds]
paulcsmith has joined #ruby
atomical has quit [Remote host closed the connection]
<[k-> thanks for the contribution to libobf
jpfuentes2 has joined #ruby
benlovell has joined #ruby
atomical has joined #ruby
segfalt has quit [Quit: segfalt]
<apeiros> damnman: zenspider was here before me. I learned ruby's precedence from his quickref ;-)
tesuji has quit [Ping timeout: 240 seconds]
t0rrieri has quit [Ping timeout: 264 seconds]
masteraka has joined #ruby
allcentury has quit [Ping timeout: 265 seconds]
<masteraka> hi there, I'm looking for some help with debugging Ruby C Extensions
<masteraka> is there a way to debug a c extension in e.g. Eclipse?
cubicool has left #ruby [#ruby]
balazs_ has quit [Remote host closed the connection]
vondruch has joined #ruby
<[k-> masteraka, just wait a little, eventually someone who has debugged c extensions before will come to your aid :)
DEA7TH_ has quit [Quit: DEA7TH_]
choppington has joined #ruby
<masteraka> :)
greedo has joined #ruby
j4cknewt has joined #ruby
jamesaxl has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
tubulife- has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
ragingcake_ has joined #ruby
benlovell has quit [Ping timeout: 246 seconds]
tagrudev has quit [Remote host closed the connection]
troulouliou_div2 has joined #ruby
max_v has joined #ruby
arup_r has quit [Remote host closed the connection]
barkerd427 is now known as zz_barkerd427
ragingcake_ has quit [Client Quit]
kkeuning has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
senayar has quit [Remote host closed the connection]
havenwood has joined #ruby
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in great anger.]
scripore has quit [Quit: This computer has gone to sleep]
max_v has quit [Remote host closed the connection]
senayar has joined #ruby
fabrice31_ has joined #ruby
tubulife- has quit [Ping timeout: 260 seconds]
CloCkWeRX has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
ruurd has quit [Quit: ZZZzzz…]
damnman has quit [Ping timeout: 246 seconds]
troulouliou_div2 has quit [Remote host closed the connection]
Pupeno has quit [Quit: Leaving...]
dorei has joined #ruby
csmb has joined #ruby
ruurd has joined #ruby
CloCkWeRX has quit [Ping timeout: 246 seconds]
juanpaucar has joined #ruby
msnyon has joined #ruby
treehug88 has joined #ruby
chrissonar has quit [Remote host closed the connection]
ragingcake has joined #ruby
chouhoulis has joined #ruby
ragingcake has quit [Client Quit]
bruno- has joined #ruby
ragingcake has joined #ruby
bruno- is now known as Guest84030
DEA7TH_ has joined #ruby
ragingcake has quit [Client Quit]
fabrice31 has joined #ruby
fabrice31_ has quit [Read error: No route to host]
tkuchiki has quit [Remote host closed the connection]
dopie has joined #ruby
freerobby has joined #ruby
jerius has joined #ruby
needyou has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
scripore has joined #ruby
ragingcake has joined #ruby
<mandarinkin> how to find index of charachter from end in string?
segfalt has joined #ruby
eggoez has quit [Ping timeout: 240 seconds]
gamename has quit [Remote host closed the connection]
allcentury has joined #ruby
<mandarinkin> my variant but thibk its ugly
<adaedra> &ri String#rindex
<ElSif> materaka: are you in linux or mac?
FenrirReturns has quit [Quit: leaving]
presto has quit [Quit: Konversation terminated!]
yardenbar has quit [Quit: Leaving]
presto has joined #ruby
podman has joined #ruby
<adaedra> mandarinkin: ^
<jhass> I think masteraka ^
pdoherty has joined #ruby
<adaedra> nono
<jhass> ah, bad timing :D
<ElSif> yea my timing is very bad T_T
<jhass> your clients tab completion is too I guess :P
<ElSif> lol so bad it doesn't exist
<jhass> what a shitty client
<ElSif> meh, i dont mind
<adaedra> >2015
<adaedra> >no tab completion
futilegames has joined #ruby
<ElSif> what if i want tabs in ma stuff?
<jhass> this is IRC, just don't
<jhass> also your spelling skills say otherwise :
<jhass> :P
revath has quit [Ping timeout: 248 seconds]
<apeiros> *speling, ftfy
<jhass> that's too red to submit here
riotjones has quit [Remote host closed the connection]
<apeiros> grah, seems mail-gpg's Hkp class was broken :(
<jhass> broken, unusable stuff around gpg? impossibru!
<apeiros> so much for "webmail in ruby? should be easy…"
hashrocket has joined #ruby
<ElSif> but they got all those monies!!
<apeiros> who got what now?
<jhass> gpg did some crowdfunding
ThaiWood has joined #ruby
<[k-_> >2015 > with IRC
* adaedra slaps [k-_
melter_ has joined #ruby
<[k-_> wat
<jhass> I'm much more curious what keybase is going to do with their recently acquired $10 million though
j4cknewt_ has joined #ruby
<ElSif> probably a lot less than gpg will do with their ~100 thousand :)
workmad3_ has joined #ruby
chussenot has quit [Quit: chussenot]
troulouliou_div2 has joined #ruby
freerobby1 has joined #ruby
<adaedra> And probably a lot more than the 0,10€ I found in my pocket
brendan- has joined #ruby
schaerli has joined #ruby
<adaedra> *+with
<ElSif> i dont know...
<adaedra> oh, blood
AccordsLTN has joined #ruby
einarj_ has joined #ruby
fromthedepths1 has joined #ruby
chussenot has joined #ruby
ged_ has joined #ruby
doodleha_ has joined #ruby
<jhass> you found blood in your pocket next to the 0.10€?
nateberkopec has joined #ruby
bungoman has quit [Remote host closed the connection]
valeri_uF0 has joined #ruby
alxndr_ has joined #ruby
MiracleBlue_ has joined #ruby
spastorino_ has joined #ruby
<adaedra> no, this one was in my nose
Killerkeksdose has joined #ruby
eggoez has joined #ruby
<[k-_> you transferred the coin into your nose?
crdpink2 has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> that would explain the bleed, but no.
<adaedra> I put it into my bank account.
<adaedra> At this speed, I'll be part of the 1% in no time.
hashrocket_ has joined #ruby
howdoi_ has joined #ruby
leat has quit [Ping timeout: 250 seconds]
troulouliou_div2 has quit [Read error: Connection reset by peer]
<[k-_> the interest will amplify in no time!
tvl has joined #ruby
jtdowney_ has joined #ruby
ltd has joined #ruby
Centrixx has joined #ruby
brandon has joined #ruby
ptierno_ has joined #ruby
constantinexvi_ has joined #ruby
miah_ has joined #ruby
needyou2 has joined #ruby
crankharder has joined #ruby
cj__ has joined #ruby
<needyou2> hey how can i add two ariables to an array, multilevel ? like Array X Date -> Time
brandon is now known as Guest46239
bungoman has joined #ruby
thoraxe_ has joined #ruby
<adaedra> I wonder if it were a smart move to hide my bank account in Greece though.
scripore has quit [Quit: This computer has gone to sleep]
<adaedra> Welcome back needyou2
fumduq- has joined #ruby
marcoamo1 has joined #ruby
joevandy1 has joined #ruby
Nirgali43 has joined #ruby
connor_g1odwolf has joined #ruby
<needyou2> :)
dijikul has joined #ruby
Olipro_ has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
omninonsense has joined #ruby
<ElSif> im not quite sure i understand, are you just looking to append two vars to an existing array?
Olipro_ is now known as Guest97629
mcnesium_ has joined #ruby
sorah_ has joined #ruby
connor_g1odwolf has quit [Client Quit]
ss_ss_ has joined #ruby
Voker57|2 has joined #ruby
jack_rabbit has quit [Ping timeout: 248 seconds]
phat4life has quit [Ping timeout: 248 seconds]
freerobby has quit [Ping timeout: 248 seconds]
einarj has quit [Ping timeout: 248 seconds]
alxndr has quit [Ping timeout: 248 seconds]
wookiehangover has quit [Ping timeout: 248 seconds]
DrCode has quit [Ping timeout: 248 seconds]
ChasedSpade has quit [Ping timeout: 248 seconds]
Klumben has quit [Ping timeout: 248 seconds]
johnhamelink has quit [Ping timeout: 248 seconds]
hollywood has quit [Ping timeout: 248 seconds]
AccordLTN has quit [Ping timeout: 248 seconds]
jacky has quit [Ping timeout: 248 seconds]
epochwolf has quit [Ping timeout: 248 seconds]
spastorino has quit [Ping timeout: 248 seconds]
Tratos has quit [Ping timeout: 248 seconds]
* jhass ponders copy pasting the earlier conversation to needyou2
clamstar has quit [Ping timeout: 248 seconds]
levifig has quit [Ping timeout: 248 seconds]
cliffstah has quit [Ping timeout: 248 seconds]
Nightmare has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Ping timeout: 248 seconds]
george2 has quit [Ping timeout: 248 seconds]
zack6849 has quit [Ping timeout: 248 seconds]
Guest63957 has quit [Ping timeout: 248 seconds]
KC9YDN has quit [Ping timeout: 248 seconds]
universa1 has quit [Ping timeout: 248 seconds]
sfr^ has quit [Ping timeout: 248 seconds]
nullwarp has quit [Ping timeout: 248 seconds]
terrellt has quit [Ping timeout: 248 seconds]
skarn_ has quit [Ping timeout: 248 seconds]
mjmac_ has quit [Ping timeout: 248 seconds]
zz_barkerd427 has quit [Ping timeout: 248 seconds]
j4cknewt has quit [Ping timeout: 248 seconds]
miwood has quit [Ping timeout: 248 seconds]
lkba has quit [Ping timeout: 248 seconds]
howdoi has quit [Ping timeout: 248 seconds]
heidar has quit [Ping timeout: 248 seconds]
dede has quit [Ping timeout: 248 seconds]
cbednarski has quit [Ping timeout: 248 seconds]
MiracleBlue has quit [Ping timeout: 248 seconds]
znz_jp has quit [Ping timeout: 248 seconds]
Guest5387 has quit [Ping timeout: 248 seconds]
mcnesium has quit [Ping timeout: 248 seconds]
Guest50994 has quit [Ping timeout: 248 seconds]
[spoiler] has quit [Ping timeout: 248 seconds]
leslie has quit [Ping timeout: 248 seconds]
fumduq has quit [Ping timeout: 248 seconds]
gthank has quit [Ping timeout: 248 seconds]
DanKnox has quit [Ping timeout: 248 seconds]
waxjar has quit [Ping timeout: 248 seconds]
chris2 has quit [Ping timeout: 248 seconds]
marcoamorales has quit [Ping timeout: 248 seconds]
davidcelis has quit [Ping timeout: 248 seconds]
tobiasvl has quit [Ping timeout: 248 seconds]
ltd_ has quit [Ping timeout: 248 seconds]
linc01n has quit [Ping timeout: 248 seconds]
mistym has quit [Ping timeout: 248 seconds]
tvl is now known as tobiasvl
tylersmith has quit [Ping timeout: 248 seconds]
sorah has quit [Ping timeout: 248 seconds]
hashrocket has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
jxf has quit [Ping timeout: 248 seconds]
zipkid has quit [Ping timeout: 248 seconds]
dmoe has quit [Ping timeout: 248 seconds]
duoi has quit [Ping timeout: 248 seconds]
Alina-malina has quit [Ping timeout: 248 seconds]
fromthedepths has quit [Ping timeout: 248 seconds]
Guest91133 has quit [Ping timeout: 248 seconds]
drewdavis has quit [Ping timeout: 248 seconds]
miah has quit [Ping timeout: 248 seconds]
farn has quit [Ping timeout: 248 seconds]
segv has quit [Ping timeout: 248 seconds]
psyprus has quit [Ping timeout: 248 seconds]
ujjain has quit [Ping timeout: 248 seconds]
dfoolz has quit [Ping timeout: 248 seconds]
ptierno has quit [Ping timeout: 248 seconds]
Liam` has quit [Ping timeout: 248 seconds]
ss_ss has quit [Ping timeout: 248 seconds]
joast has quit [Ping timeout: 248 seconds]
cj has quit [Ping timeout: 248 seconds]
mburns has quit [Ping timeout: 248 seconds]
crankhar1er has quit [Ping timeout: 248 seconds]
avelldiroll has quit [Ping timeout: 248 seconds]
constantinexvi has quit [Ping timeout: 248 seconds]
nemesit|znc has quit [Ping timeout: 248 seconds]
jtdowney has quit [Ping timeout: 248 seconds]
blackjid has quit [Ping timeout: 248 seconds]
LBRapid has quit [Ping timeout: 248 seconds]
Seich has quit [Ping timeout: 248 seconds]
DarkBushido has quit [Ping timeout: 248 seconds]
larissa has quit [Ping timeout: 248 seconds]
sfiggins has quit [Ping timeout: 248 seconds]
atomical has quit [Ping timeout: 248 seconds]
darkf has quit [Ping timeout: 248 seconds]
darithorn has quit [Ping timeout: 248 seconds]
zenguy_pc has quit [Ping timeout: 248 seconds]
psy_ has quit [Ping timeout: 248 seconds]
crdpink has quit [Ping timeout: 248 seconds]
C0deMaver1ck has joined #ruby
Killerkeksdose_ has quit [Ping timeout: 248 seconds]
jenksy has quit [Ping timeout: 248 seconds]
thelastinuit has quit [Ping timeout: 248 seconds]
Voker57 has quit [Ping timeout: 248 seconds]
connor_goodwolf has quit [Ping timeout: 248 seconds]
asi_ has quit [Ping timeout: 248 seconds]
joevandyk has quit [Ping timeout: 248 seconds]
Ankhers has quit [Ping timeout: 248 seconds]
valeri_ufo has quit [Ping timeout: 248 seconds]
bauruine has quit [Ping timeout: 248 seconds]
bmurt-home has quit [Ping timeout: 248 seconds]
tuor has quit [Ping timeout: 248 seconds]
Nirgali42 has quit [Ping timeout: 248 seconds]
hostess has quit [Ping timeout: 248 seconds]
Kellin has quit [Ping timeout: 248 seconds]
Guest66344 has quit [Ping timeout: 248 seconds]
ged has quit [Ping timeout: 248 seconds]
thoraxe has quit [Ping timeout: 248 seconds]
saaki has quit [Ping timeout: 248 seconds]
leslie has joined #ruby
Seich has joined #ruby
asi_ has joined #ruby
epochwolf has joined #ruby
hollywood has joined #ruby
Nightmare has joined #ruby
larissa has joined #ruby
tylersmith has joined #ruby
wookiehangover has joined #ruby
mjmac has joined #ruby
bf4 has joined #ruby
sfr^ has joined #ruby
mistym has joined #ruby
universa1 has joined #ruby
DarkBushido has joined #ruby
nullwarp has joined #ruby
waxjar has joined #ruby
LBRapid has joined #ruby
drewdavis has joined #ruby
miwood has joined #ruby
duoi has joined #ruby
cbednarski has joined #ruby
saaki_ has joined #ruby
Nightmare has joined #ruby
epochwolf has joined #ruby
connor_g1odwolf has joined #ruby
mistym has joined #ruby
leslie has joined #ruby
DarkBushido has joined #ruby
duoi has joined #ruby
epochwolf has quit [Changing host]
Nightmare has quit [Changing host]
valeri_uF0 is now known as valeri_ufo
mistym has quit [Changing host]
leslie has quit [Changing host]
DarkBushido has quit [Changing host]
duoi has quit [Changing host]
jxf has joined #ruby
alxndr_ is now known as alxndr
cbednarski has joined #ruby
jxf has joined #ruby
cbednarski has quit [Changing host]
jxf has quit [Changing host]
gthank has joined #ruby
gthank has quit [Changing host]
gthank has joined #ruby
hostess has joined #ruby
zenguy_pc has joined #ruby
jalcine has joined #ruby
nemesit_ has joined #ruby
phat4life has joined #ruby
george2 has joined #ruby
<ElSif> wow! such activity
atomical has joined #ruby
linc01n has joined #ruby
C0deMaver1ck is now known as Guest20928
bf4 is now known as Guest6069
ruurd has joined #ruby
psyprus has joined #ruby
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
<adaedra> jhass: the link to logs should be enough?
niemcu has quit [Ping timeout: 246 seconds]
connor_g1odwolf has quit [Client Quit]
DanKnox has joined #ruby
farn has joined #ruby
spastorino_ is now known as spastorino
psy_ has joined #ruby
Urocyon has joined #ruby
Ankhers has joined #ruby
<jhass> I'm not sure
heidar has joined #ruby
connor_goodwolf has joined #ruby
zz_barkerd427 has joined #ruby
Tratos has joined #ruby
ujjain has joined #ruby
ujjain has quit [Changing host]
ujjain has joined #ruby
scripore has joined #ruby
dhruvasagar has joined #ruby
chris2_ has joined #ruby
segv has joined #ruby
mburns has joined #ruby
darithorn has joined #ruby
troulouliou_div2 has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
dfoolz has joined #ruby
cliffstah has joined #ruby
blackjid has joined #ruby
Liam` has joined #ruby
MiracleBlue_ is now known as MiracleBlue
tuor has joined #ruby
chussenot has quit [Quit: chussenot]
levifig has joined #ruby
zack6849 has joined #ruby
zack6849 has quit [Changing host]
zack6849 has joined #ruby
terrellt has joined #ruby
ValicekB has quit [Ping timeout: 261 seconds]
chussenot has joined #ruby
avelldiroll has joined #ruby
PpPyg has quit [Ping timeout: 264 seconds]
skarn has joined #ruby
mary5030 has joined #ruby
presto has quit [Quit: Konversation terminated!]
fumihiro_ has joined #ruby
presto has joined #ruby
hemanth has quit [Ping timeout: 260 seconds]
Kellin has joined #ruby
bauruine has joined #ruby
guillaume-rb has joined #ruby
danman has joined #ruby
sepp2k has joined #ruby
vexter has joined #ruby
vexter has left #ruby [#ruby]
aganov has quit [Quit: Leaving]
schaerli has quit [Remote host closed the connection]
gambl0re has quit [Ping timeout: 244 seconds]
hashrocket_ is now known as hashrocket
troulouliou_div2 has joined #ruby
troulouliou_div2 has quit [Changing host]
troulouliou_div2 has joined #ruby
fumihiro has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
ttilley has quit [Ping timeout: 250 seconds]
jgpawletko has quit [Quit: jgpawletko]
chris2_ is now known as chris2
ragingcake has quit [Quit: ragingcake]
symm- has quit [Ping timeout: 244 seconds]
dede has joined #ruby
Unicorn| has joined #ruby
guillaume-rb has quit [Client Quit]
sinkensabe has quit [Remote host closed the connection]
needyou2 has quit [Ping timeout: 246 seconds]
chouhoulis has quit [Read error: Connection reset by peer]
zipkid has joined #ruby
leat has joined #ruby
PpPyg has joined #ruby
leat has quit [Remote host closed the connection]
chouhoulis has joined #ruby
clamstar has joined #ruby
leat has joined #ruby
sshuff|gone is now known as sshuff
ValicekB has joined #ruby
lkba has quit [Remote host closed the connection]
troulouliou_div2 has quit [Remote host closed the connection]
dede has quit [Client Quit]
ragingcake has joined #ruby
dmoe has joined #ruby
KC9YDN has joined #ruby
KC9YDN has joined #ruby
chussenot has quit [Quit: chussenot]
benlovell has joined #ruby
lkba has joined #ruby
haxrbyte has quit [Quit: Leaving...]
casadei_ has joined #ruby
dabradley has quit [Quit: WeeChat 0.4.2]
chussenot has joined #ruby
Agoldfish has joined #ruby
rippa has joined #ruby
Klumben has joined #ruby
bricker has joined #ruby
rikkipitt has quit [Quit: Leaving...]
mikecmpbll has joined #ruby
bootstrappm has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<diegoviola> I need to generate a bunch of random dates with dd/mm/yyyy
<diegoviola> I know I can use strftime for that
<diegoviola> how do I make it random though?
ixti has joined #ruby
benlovell has quit [Ping timeout: 252 seconds]
<bootstrappm> morning all
<jhass> diegoviola: any borders?
<diegoviola> jhass: what?
<jhass> date range
<wasamasa> diegoviola: https://github.com/stympy/faker
<diegoviola> 1980 and up
ragingcake has quit [Quit: ragingcake]
<chris2> rand Date.today..(Date.today+7)
schaerli has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
valkyrka has quit [Quit: valkyrka]
joast has joined #ruby
<chris2> that works even properly. nice :)
allcentury has quit [Ping timeout: 255 seconds]
ragingcake has joined #ruby
schaerli has quit [Remote host closed the connection]
<jhass> mmh, what's the maximum date Date can handle? Do we have Date::MAX? :D
<[k-_> i would .sample, but i realised you cant .to_a for dates
<chris2> i think it uses bignums at some point
sharpmachine has joined #ruby
<jhass> [k-_: I think you can?
matp has quit [Ping timeout: 256 seconds]
<adaedra> why would you do that [k-_
<chris2> but the range approach is efficient
<chris2> ok, date uses floats
<[k-_> adaedra: rand Date.today..(Date.today+7)
<chris2> >> require 'date'; Date.today+1e308
<ruboto> chris2 # => #<Date: 27379070069885077586246583451002161049059090341586289742119381817887024005617660270389263404 ...check link for more (https://eval.in/401680)
DrCode has joined #ruby
<[k-_> :o
Guest20928 is now known as C0deMaver1ck
<jhass> >> Date.today + 10**2048
<ruboto> jhass # => uninitialized constant Date (NameError) ...check link for more (https://eval.in/401681)
nfk has joined #ruby
<jhass> >>require "date" Date.today + 10**2048
<ruboto> jhass # => /tmp/execpad-ee157ebeca76/source-ee157ebeca76:2: syntax error, unexpected tCONSTANT, expecting keywo ...check link for more (https://eval.in/401682)
<jhass> though
<jhass> anyway, ^ works
<chris2> oh
<adaedra> [k-_: yes, and?
nettoweb_ has joined #ruby
<jhass> diegoviola: so you better have an upper bound too
<chris2> good point
<[k-_> sample gets a random item in the array?
<chris2> of course only the float literal overflowed
<adaedra> rand does too, without the array
<[k-_> now to benchmark both of them :>
kirun has joined #ruby
white_bear has quit [Quit: leaving]
<adaedra> what if you want a number between 0 and today? Generate an array of 365.25*2015 different value, then take one?
<adaedra> values*
sarkyniin has quit [Quit: Quit]
kwd has quit [Quit: kwd]
nettoweb has quit [Ping timeout: 265 seconds]
sarkyniin has joined #ruby
<jhass> yeah, Range#sample would be neat
<jhass> but slow anyhow I guess
<[k-_> i agree with your logic
<eam> adaedra: I think you're making calendar assumptions
<chris2> >> require 'date'; rand Date.parse('0001-1-1')..Date.today
<ruboto> chris2 # => #<Date: 0303-05-08 ((1831856j,0s,0n),+0s,2299161j)> (https://eval.in/401683)
<adaedra> eam: I'm simplifying
scripore has quit [Quit: This computer has gone to sleep]
<eam> the weird thing about time (both calendar, and H:M:S) is that it's non-linear over long periods
t0rrieri has joined #ruby
<eam> because the definitions change
<chris2> Date knows that, tho :)
<chris2> at least partially
charliesome has joined #ruby
<eam> I bet it doesn't :)
dabradley has joined #ruby
Sypheren has quit [Ping timeout: 252 seconds]
johnhamelink has joined #ruby
juanpaucar has quit [Remote host closed the connection]
ragingcake has quit [Quit: ragingcake]
<chris2> oh, hum
<chris2> >> require 'date'; Date.parse('1752-09-02') + 1
<ruboto> chris2 # => #<Date: 1752-09-03 ((2361211j,0s,0n),+0s,2299161j)> (https://eval.in/401691)
<chris2> sigh
acke has quit [Remote host closed the connection]
greydog has joined #ruby
<greydog> Are their any recommended books for beginners in ruby? I come from a bash background.
scripore has joined #ruby
<greydog> Well Bash and C++
livathinos has quit []
ragingcake has joined #ruby
<chris2> >> require 'date'; Date.new(1752,9,2, Date::ENGLAND) + 1
<ruboto> chris2 # => #<Date: 1752-09-14 ((2361222j,0s,0n),+0s,2361222j)> (https://eval.in/401693)
<[k-_> we need to start adding a list of books to the faq section, apeiros
_blizzy_ has quit [Ping timeout: 244 seconds]
<adaedra> >> require 'date'; Date.parse('1582-10-15') + 1
<ruboto> adaedra # => #<Date: 1582-10-16 ((2299162j,0s,0n),+0s,2299161j)> (https://eval.in/401698)
gamename has joined #ruby
eGGsha has joined #ruby
<chris2> it defaults to italian calendar for some reason
<[k-_> greydog: someone recommended eloquent ruby a while ago
<[k-_> you can try that
<eam> chris2: now that's interesting
<[k-_> >> Locale.get_default
<ruboto> [k-_ # => uninitialized constant Locale (NameError) ...check link for more (https://eval.in/401704)
Philipp_ has quit [Read error: Connection reset by peer]
<[k-_> i thought that would exist for some reason
<chris2> and it actually avoids year 0
<adaedra> wait, I misread
<adaedra> >> require 'date'; Date.parse('1582-10-15') - 1
<ruboto> adaedra # => #<Date: 1582-10-04 ((2299160j,0s,0n),+0s,2299161j)> (https://eval.in/401707)
<adaedra> nice
<greydog> Alright
<eam> is date's logic specific to ruby, or does it mostly just hand off to libc/system?
gamename has quit [Remote host closed the connection]
<chris2> its in ext/date
Centrixx is now known as ChasedSpade
<[k-_> oh, its a rails thing, I18n.get_locale
<chris2> posix doesnt do such stuff
senayar_ has joined #ruby
sarkyniin has quit [Ping timeout: 246 seconds]
<[k-_> s/get_/locale
<adaedra> greydog: you can look official website, there are some guides, including guides from other languages
senayar has quit [Read error: Connection reset by peer]
<[k-_> wait thats wrong again too
gamename has joined #ruby
<chris2> outside of cal(1p) at least
RobertBirnie has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<konsolebox> greydog: you're greycat? :)
symm- has joined #ruby
<shevy> a dog is not a cat!
<[k-_> 23:17:18 greycat There was no such nickname
<[k-_> 23:17:18 greycat End of WHOWAS
<[k-_> konsolebox: you lie
simplyianm has joined #ruby
<eam> chris2: well there's struct tm
<konsolebox> [k-_: do /j #bash :)
<eam> and related functions
<greydog> No
chouhoulis has quit [Remote host closed the connection]
stan has quit [Ping timeout: 246 seconds]
<chris2> yeah, but no function for computations
<konsolebox> greydog: well ok
<eam> chris2: ah
<greydog> greycat is far superior than me. He would wipe the floor with me in anything.
troulouliou_div2 has joined #ruby
yardenbar has joined #ruby
<jhass> [k-_: http://ruby-community.com/pages/links you mean like at the bottom there?
gagrio has quit [Ping timeout: 250 seconds]
troulouliou_div2 has quit [Read error: Connection reset by peer]
peter_paule has joined #ruby
<[k-_> yes, perfect, now we need a /pages/links#books
<[k-_> i just remembered those things are called fragments :D
theRoUS has quit [Read error: Connection reset by peer]
<[k-_> and we can have a ?books!
s2013 has joined #ruby
<[k-_> hmmm what kind of sorcery is this
<jhass> slim
simplyianm has quit [Ping timeout: 248 seconds]
* [k-_ does some research on fragments
joonty has quit [Quit: joonty]
<adaedra> you could have let him guess jhass
<adaedra> he had a slim chance to get it right
Siyfion has joined #ruby
gamename has quit [Remote host closed the connection]
gamename has joined #ruby
_blizzy_ has joined #ruby
<[k-_> EBDPUN
joonty has joined #ruby
<masteraka> ElSif hello
<olas> is there a way to turn a string like "1 minute" to "60"?
<masteraka> ElSif I'm on Mac
<olas> basically convert human input to seconds
chouhoulis has joined #ruby
<[k-_> you either do it yourself or get a library
<olas> it doesn't seem like Time can do it
dblessin_ has joined #ruby
<shevy> anyone knows of a project in ruby that does 3D creation of objects? ideally automated, with a 3D mesh that could be loaded up into modeller software
<masteraka> ElSif: sorry, was afk
<olas> jhass: thanks
dgutierrez1287 has joined #ruby
<ElSif> masteraka: that's cool, do you use xcode?
TomyWork has quit [Ping timeout: 264 seconds]
<masteraka> not really
maletor has joined #ruby
<masteraka> i've used eclipse before
finisherr has quit [Quit: finisherr]
_blizzy_ has quit [Read error: Connection reset by peer]
<masteraka> i came across a post on how to set up xcode with ruby
<[k-_> i do not like xcode
<[k-_> it takes way too long to start up
<[k-_> in ruby, we have repls
<[k-_> i cant stand the slowness >.>
<masteraka> had some problems with dy_ld loading or s.th.
<[k-_> slowness is a common factor of ides
<shevy> use linux!
<adaedra> -_-
endash has quit [Quit: endash]
<ElSif> lol, so helpful ;)
_blizzy_ has joined #ruby
<masteraka> ElSif: were you going to point me to this article? http://www.emilsoman.com/blog/2014/08/06/debugging-ruby-c-extensions-in-xcode/
ragingcake has quit [Quit: ragingcake]
dgutierrez1287 has quit [Ping timeout: 256 seconds]
<ElSif> masteraka: maybe, was still reading through it :) the basic general idea is in there, easiest way is to put together a makefile to let you get into the C with a debugger
<masteraka> so i tried to do the same thing with Eclipse
<masteraka> I just couldn't get the underlying gdb to load the source files
sarkyniin has joined #ruby
<masteraka> plus, I suspect there is a whole can of worms with gdb on Yosemite - I had to use codesign with a created certificate
<shevy> when I google for "ruby 3d" Mon_Ouie comes up first https://github.com/Mon-Ouie/ray
prestorium has joined #ruby
<masteraka> plus stackoverflow metnioned that you may have to run Eclipse as root
symm- has quit [Ping timeout: 256 seconds]
riotjones has joined #ruby
<masteraka> was wondering whether anyone actually had successfully gone through all those steps :)
<masteraka> I'll try the XCode route one more time I guess....
presto has quit [Ping timeout: 264 seconds]
andikr has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
cochise has quit [Remote host closed the connection]
Casty has joined #ruby
<ElSif> i have no idea :P seems like a bit of overkill really, though IDEs can sometimes make things easier
f0ster has joined #ruby
miwood has quit [Remote host closed the connection]
<masteraka> unfortunately I've never worked with gdb directly
<masteraka> :-(
atomical has quit [Ping timeout: 248 seconds]
<[k-_> you only need an ide for java, really
<masteraka> was hoping I could get a visual debugger going somehow
<masteraka> [k-_: what about C and all its variants!
jschoolcraft has joined #ruby
<[k-_> hmm, some consideration is to be done
<f0ster> ide makes programming in any language easier
<adaedra> masteraka: time to learn gdb then!
<f0ster> people who don't know how to use debuggers are fools
<ElSif> terminals have visuals ;)
jpfuentes2 has joined #ruby
<ElSif> yea, i would suggest trying to go at it with gdb, will be a fun learning experience i promise :)
<masteraka> f0ster: you get comfortable using visual debuggers....
<masteraka> i do want to take a stab at gdb
<masteraka> however, I have limited time to solve my issue
Hounddog has quit [Read error: Connection reset by peer]
jschoolcraft has quit [Max SendQ exceeded]
<f0ster> masteraka: yeah.. I started with GDB. I still think visual studio is the best programming environment ever, but I never use it because I rarely code on windows
rehat has joined #ruby
<f0ster> I use all the jetbrains ones for ruby/python/java et al on osx
miwood has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
<masteraka> f0ster: VS + ReSharper was the best I used
balazs_ has joined #ruby
<masteraka> it's basically VS with all the JetBrains stuff
<ElSif> i like VS as an ide, gets a lot right, maybe someday MS will port it to linux :D
<f0ster> masteraka: nice, using mono or something ?
timonv has quit [Ping timeout: 244 seconds]
<masteraka> actually, I wonder whether JetBrains has a good IDE for Ruby :)
futilegames has quit [Quit: futilegames]
<masteraka> i used .NET a few years abck
<f0ster> ElSif: yeah probably.. since they open sourced .NET and made VS free it's only a matter of time
<f0ster> masteraka: yeah rubymine
<ElSif> i don't know if i would call it 'good'...
<ElSif> if you like their other ides will will probably like it though
<masteraka> my guess is it won't support ruby c extensions out of the box though...
<f0ster> meh, I used it because it's really the only option, it's fine
<f0ster> I've used it for coding and debuggin my rails projects
<masteraka> in ruby land i'm perfectly happy using pry for my debugging
<ElSif> thats the spirit :D
<f0ster> I've never had consistent luck with pry.. between different versions of ruby etc pry debug and pry byebug have rarely worked 100%
AlexAltea has joined #ruby
<masteraka> yeah
<ElSif> as in they crash on your machine? I've only ever had issues if i was trying to get pry to do something strange.
<masteraka> i haven't used ruby in a couple of years
<masteraka> and then everything got upgraded
<masteraka> and what used to work before doesn't work now
<ElSif> if you are using it within an ide i would first think it was the ide's fault :)
<masteraka> but relearning things is usually quicker than learning them for the first time
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
atomical has joined #ruby
<giuseppesolinas_> hello
<ElSif> hola
scripore has joined #ruby
balazs_ has quit [Ping timeout: 240 seconds]
<giuseppesolinas_> I'm developing an application in which the logged superuser can create new users with a form, setting their username and password for the log-in
Igorshp has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
<giuseppesolinas_> needless to say that those username and password are not the superuser's but of the new user
<ElSif> that sounds fun
<jhass> that sounds like rails
davedev24 has joined #ruby
icebourg has joined #ruby
<ElSif> i think he means system users, though that is an assumption
gambl0re has joined #ruby
<f0ster> ElSif: no like they always step in even when I execute a step over
<f0ster> that was my prob with ruby 2.1.x
<giuseppesolinas_> but my browser keeps ignoring this fact and even if I set autocomplete to "off" it keeps filling it in with the logged user's informations
<ElSif> oh
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ElSif> you win again jhass :)
<jhass> ;)
<giuseppesolinas_> oh wow I thought I was typing in ##html
<giuseppesolinas_> sorry
<giuseppesolinas_> xD
<jhass> lol
<ElSif> i just choked T_T
<giuseppesolinas_> plz forgib me
<jhass> nevar
symm- has joined #ruby
radialneon has joined #ruby
giuseppesolinas_ has quit [Client Quit]
railsraider has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
bricker has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
rubie has joined #ruby
<ElSif> ah, i think it might be that you are thinking of pry's binding context as a little different than it is, it is a little different than some other debugger semantics
sharpmachine has quit [Remote host closed the connection]
tubulife- has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
anisha has quit [Quit: Leaving]
syath has joined #ruby
<ElSif> a good practice when you're not sure how it will step is to put binding.pry's where you think you might want to stop (even in gems, though you will want to remove those later)
<f0ster> ElSif: no I used it for a year before that and it worked fine
serivich has quit [Ping timeout: 244 seconds]
<f0ster> ElSif: but next and step do the same thing in one of the versions I had
<ElSif> oh, nvm then, system issue??
<f0ster> yeah idk, I was using pry-byebug
radialneon has quit [Read error: Connection reset by peer]
<f0ster> because I had issues with pry and pry-debug when I was on ruby 2.0 and rails 3.29
rehat has quit [Read error: Connection reset by peer]
<ElSif> yea, ive only ever had system issues with pry-debugger, usual because something in my environment was bad that i hadn't noticed :)
cochise has joined #ruby
<ElSif> on Mac that happened more than it ever did on linux...
symm- has quit [Ping timeout: 246 seconds]
ixti has quit [Ping timeout: 246 seconds]
rehat has joined #ruby
ixti has joined #ruby
dfockler has joined #ruby
prefixed has quit [Remote host closed the connection]
rubie has quit [Ping timeout: 265 seconds]
ruurd has joined #ruby
prefixed has joined #ruby
prefixed has quit [Client Quit]
allomov has quit [Remote host closed the connection]
ragingcake has joined #ruby
<f0ster> masteraka: I even use webstorm for js/php stuff
<f0ster> ElSif: I wonder if it has to do with c bindings.. I do most of my dev on osx
Igorshp has joined #ruby
peter_paule has quit [Ping timeout: 240 seconds]
_blizzy_ has quit [Ping timeout: 255 seconds]
<ElSif> maybe, though it's just as likely that im just bad at configuring mac environments XD
code1o6 has joined #ruby
code1o6 is now known as arfvidse
<f0ster> ElSif: it's a little less nice than linux imo but mostly the same
arfvidse is now known as code1p6
code1p6 is now known as code1o6
maletor has quit [Quit: Computer has gone to sleep.]
<ElSif> i think a lot of the time it had to do with there being just more stuff running in the mac env, i run very minimal linux envs (archbang for instance)
gambl0re has quit [Ping timeout: 246 seconds]
mjmac has quit [Quit: ZNC - http://znc.sourceforge.net]
<dfockler> Homebrew on mac is nice, although some people don't like it on principle
mjmac has joined #ruby
<adaedra> you can't make everyone happy?
drewvanstone has joined #ruby
<adaedra> s/?/./
optikalmouse has joined #ruby
ndrei has joined #ruby
willywos has joined #ruby
<dfockler> no you can't
gambl0re has joined #ruby
leat has quit [Ping timeout: 246 seconds]
<ElSif> lol
optikalmouse has quit [Remote host closed the connection]
leat has joined #ruby
_djbkd has joined #ruby
sharpmachine has joined #ruby
bungoman has quit [Remote host closed the connection]
allcentury has joined #ruby
rideh has quit [Quit: zap]
Igorshp has quit [Remote host closed the connection]
<dfockler> although ruby-install and chruby work the same on both
amclain has joined #ruby
gwendall has quit [Remote host closed the connection]
finisherr has joined #ruby
Igorshp has joined #ruby
optikalmouse has joined #ruby
leat has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
leat has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
rideh has joined #ruby
Igorshp has quit [Remote host closed the connection]
<havenwood> pkgsrc has only more recently been made easily available on OS X, but it's nice as well: https://pkgsrc.joyent.com/install-on-osx/
Igorshp has joined #ruby
<havenwood> 2015Q2 packages fresh off the mint
Igorshp has quit [Remote host closed the connection]
galeido has joined #ruby
<havenwood> Install script with Ruby packages: https://gist.github.com/havenwood/d25276ec38fc6ac03685
<ElSif> ooo
<ElSif> i think ill have to give that a shot next time i have to use mac
<havenwood> ElSif: Works fine alongside Homebrew as well.
NeverDie has joined #ruby
joonty has quit [Quit: joonty]
niemcu has joined #ruby
valkyrka has joined #ruby
<masteraka> OK, I managed to get XCode to stop at a breakpoint in my C extension!
konsolebox has quit [Read error: Connection reset by peer]
<ElSif> yay! congrats
yqt has joined #ruby
<ElSif> havenwood: thanks!
<masteraka> basically had to springle some "-g"s inside the extconf generated Makefile manually
<ElSif> lol, you should make a blog post :D
ddarkpassenger has joined #ruby
<masteraka> I will at some point
<masteraka> just need to figure out how to load it in Eclipse
<masteraka> and in gdb
fgo has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
amystephen has quit [Quit: amystephen]
<masteraka> then that's probably worth a blogpost...
tkuchiki has quit [Remote host closed the connection]
<eam> masteraka: it'll be lldb on osx
<eam> it's not too different from gdb, but there are a few oddities
msnyon has quit [Read error: Connection reset by peer]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<masteraka> is that what XCode uses under the hood?
tkuchiki has joined #ruby
<eam> I assume? I've never actually used xcode
werelivinginthef has joined #ruby
sterlingcalder has joined #ruby
treehug88 has quit [Remote host closed the connection]
pietr0 has joined #ruby
<adaedra> masteraka: YES
eggoez has quit [Ping timeout: 256 seconds]
<adaedra> oops
<headius> certainty: no problem
rubie has joined #ruby
sterlingcalder has left #ruby [#ruby]
<masteraka> "LLDB is the default debugger in Xcode on Mac OS X and supports debugging C, Objective-C and C++ on the desktop and iOS devices and simulator."
gwendall has joined #ruby
crunk_bear has joined #ruby
apt-get_ has joined #ruby
<masteraka> yeah, should have RTFMed
bronson has joined #ruby
<code1o6> Anyone looking to do a simple and fun project on ssh? MSG me if you are interested
treehug88 has joined #ruby
<adaedra> masteraka: apple went on full llvm-based compile chain
<masteraka> eam: thanks!
leat has quit [Remote host closed the connection]
<eam> (I wrote an internal how-to-gdb-lldb ruby blog)
leat has joined #ruby
<masteraka> can you make it public?
bronson has quit [Remote host closed the connection]
<eam> yeah (given, you know, time to actually do it)
ruurd has quit [Quit: ZZZzzz…]
fgo has quit [Ping timeout: 264 seconds]
<masteraka> :)
sarkyniin has quit [Ping timeout: 260 seconds]
<masteraka> are lldb and gdb quite compatible?
<masteraka> hmm, apparently not
spider-mario has joined #ruby
rdar has quit [Quit: Leaving]
Jackneill has joined #ruby
mikeric has joined #ruby
nahtnam has joined #ruby
mikeric has quit [Client Quit]
matp has joined #ruby
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
EagleDelta has joined #ruby
baweaver has quit [Remote host closed the connection]
AugustoCesar has joined #ruby
<havenwood> code1o6: On ssh? Say more?
AugustoCesar has quit [Client Quit]
benlovell has joined #ruby
<jhass> code1o6: I think they mean pairing
<jhass> er, havenwood ^
benlieb has joined #ruby
stbenjam has left #ruby [#ruby]
chinmay_dd has joined #ruby
Igorshp has joined #ruby
<havenwood> jhass: aha, like tmux, got it!
prestorium has quit [Quit: Konversation terminated!]
senayar_ has quit []
prestorium has joined #ruby
eggoez has joined #ruby
symm- has joined #ruby
bungoman has joined #ruby
Crazy_Atheist has joined #ruby
tkuchiki has quit [Remote host closed the connection]
konsolebox has joined #ruby
howdoi_ has quit [Quit: Connection closed for inactivity]
ironhide_604 has joined #ruby
miwood has quit [Remote host closed the connection]
ironhide_604 has quit [Client Quit]
rbennacer has quit [Remote host closed the connection]
crunk_bear has joined #ruby
chinmay_dd has quit [Read error: Connection reset by peer]
optikalmouse has left #ruby [#ruby]
chinmay_dd has joined #ruby
scripore has joined #ruby
brianpWins has quit [Ping timeout: 252 seconds]
mleung has joined #ruby
miwood has joined #ruby
benlovell has quit [Ping timeout: 244 seconds]
pengin has joined #ruby
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
serivich has joined #ruby
araujo has joined #ruby
maletor has joined #ruby
ruurd has joined #ruby
rubie has quit [Remote host closed the connection]
workmad3_ is now known as workmad3
charliesome has joined #ruby
GitGud has joined #ruby
chinmay_dd has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
gambl0re has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 260 seconds]
douglasssss has joined #ruby
gambl0re has joined #ruby
rcvalle has joined #ruby
failshell has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
wprice has joined #ruby
DroidBurgundy has joined #ruby
devbug has joined #ruby
towski_ has joined #ruby
PyrexWyrex has joined #ruby
Crazy_Atheist is now known as ZeeNoodleyGamer
msgodf has quit [Ping timeout: 240 seconds]
benlovell has joined #ruby
rdark has quit [Ping timeout: 244 seconds]
Narzew has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
kriskropd has joined #ruby
rdark has joined #ruby
gambl0re has quit [Read error: Connection reset by peer]
pdoherty has quit [Ping timeout: 265 seconds]
gambl0re has joined #ruby
<eam> masteraka: sorry, was offline between the train/office -- I found this super helpful: http://lldb.llvm.org/lldb-gdb.html
benlovell has quit [Ping timeout: 240 seconds]
prestorium has quit [Ping timeout: 240 seconds]
<eam> mostly a 1:1 translation with different syntax, the only big thing missing I found was batch mode (which I think may be added now? And there's a python interface)
<eam> the xcode versions may be too old to support it though
gambl0re has quit [Remote host closed the connection]
freerobby1 has quit [Quit: Leaving.]
gambl0re has joined #ruby
chinmay_dd has quit [Read error: Connection reset by peer]
Lucky_ has joined #ruby
mcnesium_ has left #ruby ["Weechat part"]
bungoman has quit [Remote host closed the connection]
freerobby has joined #ruby
Siyfion has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chinmay_dd has joined #ruby
apfeluser has joined #ruby
tvw has quit []
arup_r has joined #ruby
paulcsmith has joined #ruby
cochise has quit [Read error: Connection reset by peer]
endash has joined #ruby
cochise has joined #ruby
mjmac has quit [Quit: ZNC - http://znc.sourceforge.net]
lordkryss has quit [Quit: Connection closed for inactivity]
drewo has joined #ruby
freerobby has quit [Client Quit]
[H]unt3r has joined #ruby
mjmac has joined #ruby
pengin has quit [Remote host closed the connection]
cornerma1 has joined #ruby
kaleido has joined #ruby
zz_barkerd427 is now known as barkerd427
mike___1234 has quit [Ping timeout: 246 seconds]
revath has joined #ruby
cornerman has quit [Ping timeout: 255 seconds]
khando_ has quit [Ping timeout: 264 seconds]
cornerma1 is now known as cornerman
serivich has quit [Ping timeout: 246 seconds]
`derpy has quit [Remote host closed the connection]
Authenticator has quit [Quit: leaving]
Guest97629 has quit [*.net *.split]
alem0lars has quit [*.net *.split]
Olipro has quit [*.net *.split]
silverdust has quit [*.net *.split]
Olipro has joined #ruby
Olipro is now known as Guest23359
Olipro_ has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
GitGud has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
GitGud has joined #ruby
freerobby has joined #ruby
chussenot has quit [Quit: chussenot]
balazs_ has joined #ruby
einarj_ has quit [Remote host closed the connection]
pengin has joined #ruby
felixr has joined #ruby
stamina has quit [Remote host closed the connection]
fabrice31 has joined #ruby
Igorshp has quit [Remote host closed the connection]
chussenot has joined #ruby
valkyrka has quit [Quit: valkyrka]
gambl0re has quit [Remote host closed the connection]
gambl0re has joined #ruby
gwendall has quit [Remote host closed the connection]
alem0lars has joined #ruby
msgodf has joined #ruby
silverdust has joined #ruby
simplyianm has joined #ruby
silverdust is now known as Guest51636
DEA7TH_ has quit [Quit: DEA7TH_]
fabrice31 has quit [Ping timeout: 265 seconds]
revath has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
eGGsha is now known as eGGshke
wallerdev has joined #ruby
eGGshke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
masteraka has quit [Quit: Leaving.]
mike___1234 has joined #ruby
Zai00 has quit [Quit: Zai00]
gwendall has joined #ruby
chinmay_dd has quit [Ping timeout: 265 seconds]
gambl0re has quit [Ping timeout: 244 seconds]
niemcu has quit [Ping timeout: 264 seconds]
aspiers has quit [Ping timeout: 244 seconds]
nemesit_ has quit [Quit: quit]
ruurd has quit [Quit: ZZZzzz…]
nemesit|znc has joined #ruby
bodgix has quit [Quit: Leaving.]
<shevy> long live ruby \o/
gambl0re has joined #ruby
felixrsmith has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
gwendall has quit [Remote host closed the connection]
gwendall has joined #ruby
bronson has joined #ruby
felixr has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
felixr has joined #ruby
jobewan has joined #ruby
xyzzy12 has joined #ruby
VonPyrex has joined #ruby
Narzew has quit [Ping timeout: 240 seconds]
miah_ is now known as miah
apt-get_ has quit [Ping timeout: 240 seconds]
chinmay_dd has joined #ruby
felixrsmith has quit [Ping timeout: 244 seconds]
apt-get_ has joined #ruby
chussenot has quit [Quit: chussenot]
barkerd427 is now known as zz_barkerd427
postmodern has joined #ruby
PyrexWyrex has quit [Ping timeout: 260 seconds]
felixrsmith has joined #ruby
towski_ has quit [Ping timeout: 244 seconds]
DEA7TH_ has joined #ruby
theRoUS has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
gguggi has joined #ruby
<hanmac> shevy checkout this: https://bugs.ruby-lang.org/issues/11372
<hanmac> apeiros: you too if you want to laugh ;P
DEA7TH_ has quit [Client Quit]
bubbys has quit [Ping timeout: 244 seconds]
<[k-_> funny
felixr has quit [Ping timeout: 260 seconds]
lavros has quit [Quit: leaving]
<[k-_> Rejected lel
felixr has joined #ruby
xyzzy12 has quit [Quit: Page closed]
<hanmac> [k-_ yeah i like to read the rejected ones because its funny
<[k-_> @Override(:eqlAsExpression, "I KNOW WHAT I AM DOING")
towski_ has joined #ruby
blaines has joined #ruby
<[k-_> oh it should be suppresswarnings
<[k-_> >_>
masteraka has joined #ruby
balazs_ has quit [Remote host closed the connection]
khando has joined #ruby
t0rrieri has quit [Quit: Be back later ...]
felixrsmith has quit [Ping timeout: 244 seconds]
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
zoo-zed has joined #ruby
t0rrieri has joined #ruby
hinbody has joined #ruby
Igorshp has joined #ruby
Mendenhall has joined #ruby
blaines_ has joined #ruby
momomomomo has joined #ruby
AlphaAtom has joined #ruby
axl_ has quit [Ping timeout: 245 seconds]
Guest84030 has quit [Ping timeout: 256 seconds]
danzilio has joined #ruby
msgodf has quit [Remote host closed the connection]
blaines has quit [Ping timeout: 240 seconds]
devbug has quit [Ping timeout: 250 seconds]
simplyianm has quit [Read error: Connection reset by peer]
EllisTAA has joined #ruby
failshell has joined #ruby
simplyia_ has joined #ruby
dumdedum is now known as blaxter
peter_paule has joined #ruby
d10n-work has joined #ruby
ZeeNoodleyGamer has quit [Quit: WeeChat 0.4.2]
t0rrieri has quit [Ping timeout: 264 seconds]
kidoz has joined #ruby
Eiam has joined #ruby
No_One has joined #ruby
konr has joined #ruby
axl_ has joined #ruby
schaerli has joined #ruby
No_One has quit [Quit: Aiyaiyai]
axl_ has quit [Client Quit]
ZeeNoodleyGamer has joined #ruby
<Antiarc> Matz' response is so delightful.
doodleha_ has quit [Ping timeout: 246 seconds]
<Antiarc> If that was me I would have been "RTFM"
<Antiarc> I need to be more MINSWAN
<workmad3> Antiarc: MINASWAN
EllisTAA has quit [Quit: EllisTAA]
user1138 has joined #ruby
<Antiarc> you know what I mean :P
<workmad3> well, *I* do... but I'm correcting you so that others can have a chance without needing my brilliance ;)
<eam> it'd be nice if ruby were to adopt use strict :)
gagrio has joined #ruby
<eam> IMO that's the best way to take an originally fast and loose language and make it strict and predictable
<dfockler> I'd like to see optional typing built in
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<eam> of course then everyone would have to stop making fun of perl for having that as near ubiquitous boiler-plate :)
chinmay_dd has quit [Quit: Leaving]
EllisTAA has joined #ruby
devbug has joined #ruby
tkuchiki has joined #ruby
evlute has joined #ruby
kedare has quit [Ping timeout: 256 seconds]
<evlute> hi i need some help with regexp. who do i set the global option?
imperator has joined #ruby
eGGsha has joined #ruby
<evlute> .match(/.*/g) - g is not working
<apeiros> evlute: in ruby, global is not part of the regex, but part of the method
michael_mbp has quit [Excess Flood]
EllisTAA has quit [Client Quit]
<apeiros> i.e., you use scan, not match if you want all matches
endash has quit [Quit: endash]
<evlute> apeiros: thank you apeiros
michael_mbp has joined #ruby
michael_mbp has quit [Excess Flood]
<shevy> apieros is a nice guy
schaerli has quit [Remote host closed the connection]
prefixed has joined #ruby
kedare has joined #ruby
blaxter has quit [Ping timeout: 265 seconds]
<shevy> hanmac well I think I suggested something similar about "def intialize"; now with rubocop becoming more popular, or at least I assume, "soft warnings" as option would not be bad in my opinion. I still don't think that ruby's warnings or error messages are always great, I recall bnagy complaining about -W0 not suppressing all warnings for instance
rubie has joined #ruby
tkuchiki has quit [Ping timeout: 248 seconds]
despai has joined #ruby
dubkoidragon has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
toretore has joined #ruby
EllisTAA has joined #ruby
<Senjai> Morning ruby
lkba has quit [Ping timeout: 265 seconds]
michael_mbp has joined #ruby
ndrei has joined #ruby
<imperator> there a good way to override a core class' allocation and deallocation functions?
yqt has quit [Ping timeout: 240 seconds]
icebourg has quit []
DoubleMalt has quit [Remote host closed the connection]
peter_paule has quit [Ping timeout: 264 seconds]
_djbkd has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
<workmad3> imperator: probably not... a lot of core doesn't invoke the `new` method on the appropriate classes if you create things through, e.g. a literal
soloone has joined #ruby
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
jerius has quit [Quit: /part]
casadei_ has quit [Remote host closed the connection]
despai has quit [Quit: Leaving]
drewvanstone has quit [Ping timeout: 264 seconds]
bungoman has joined #ruby
jerius has joined #ruby
casadei_ has joined #ruby
bronson has joined #ruby
<imperator> workmad3, basically want to override the free function to use _aligned_free on Windows for a custom string extension
Olipro_ is now known as Olipro
Rickmast_ has joined #ruby
segfalt_ has joined #ruby
Rickmasta has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
<workmad3> imperator: hmm... sounds like you'd probably need to fork and patch ruby... but I'll admit it's into territory that I know very little about :)
<imperator> eh, might be a bad idea - the deallocation code isn't simple
segfalt has quit [Ping timeout: 250 seconds]
segfalt_ is now known as segfalt
reset has joined #ruby
<workmad3> imperator: yeah, I should probably make it much clearer that when I say "probably need to fork and patch ruby" I mean "THIS IS A HORRIBLE IDEA, DON'T DO THIS, I'M MERELY FOLLOWING A TRAIN OF THOUGHT THROUGH SCARY, SCARY AREAS"
dseitz has joined #ruby
bungoman has quit [Ping timeout: 248 seconds]
kazoo has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
freerobby has quit [Quit: Leaving.]
dopie has quit [Quit: This computer has gone to sleep]
freerobby has joined #ruby
<imperator> lol
<imperator> i'm not sure how big of a deal it is if it calls free instead of aligned_free
casadei_ has quit [Read error: Connection reset by peer]
<imperator> might be nothing, might segfault the interpreter, we'll see
casadei_ has joined #ruby
danzilio has quit [Quit: My computer has fallen asleep!]
Igorshp has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
rdark has joined #ruby
<imperator> (seems to segfault)
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
amystephen has joined #ruby
danzilio has joined #ruby
Alayde has quit [Quit: WeeChat 1.1.1]
axl_ has joined #ruby
jackjackdripper has joined #ruby
peter_paule has joined #ruby
kidoz has quit [Ping timeout: 264 seconds]
Mendenhall has quit [Ping timeout: 265 seconds]
tomphp has joined #ruby
ryanpc has joined #ruby
jblancet1 has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.1.1]
ryanpc has quit [Max SendQ exceeded]
giuseppesolinas has joined #ruby
AlphaAtom has joined #ruby
giuseppesolinas has quit [Client Quit]
amystephen has quit [Ping timeout: 244 seconds]
_djbkd has quit [Remote host closed the connection]
kidoz has joined #ruby
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
bungoman has joined #ruby
Alayde has joined #ruby
pocketprotector has quit [Ping timeout: 264 seconds]
_djbkd has joined #ruby
Kully3xf_ has joined #ruby
icebourg has joined #ruby
ryanpc has joined #ruby
Kully3xf has quit [Ping timeout: 244 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bungoman has quit [Ping timeout: 246 seconds]
JoshL has quit [Read error: Connection reset by peer]
zz_barkerd427 is now known as barkerd427
JoshL has joined #ruby
evlute has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
bb010g has joined #ruby
ragingcake has quit [Quit: ragingcake]
axl_ has quit [Quit: axl_]
senayar has joined #ruby
senayar has joined #ruby
shinnya has quit [Ping timeout: 246 seconds]
treehug88 has quit [Ping timeout: 265 seconds]
jtdowney_ is now known as jtdowney
jtdowney has quit [Quit: ZNC]
jtdowney has joined #ruby
zoo-zed has quit [Quit: Textual IRC Client: www.textualapp.com]
jtdowney has quit [Changing host]
jtdowney has joined #ruby
shadoi has joined #ruby
axl_ has joined #ruby
momomomomo has quit [Ping timeout: 252 seconds]
user1138 has quit [Ping timeout: 246 seconds]
Kyhz has joined #ruby
eminence_ has joined #ruby
baweaver has joined #ruby
pocketprotector has joined #ruby
simplyia_ has quit [Read error: Connection reset by peer]
codecop has joined #ruby
schaerli has joined #ruby
simplyianm has joined #ruby
<eminence_> How can I turn a string into a dynamic object query? I want to call Model.object, dynamically using something like var = 1 , object = "object#{1}"
<eminence_> *** object = "object#{var}"
Alina-malina has joined #ruby
bungoman has joined #ruby
momomomomo has joined #ruby
<shevy> what is that
<shevy> anyway, you can use .send() to invoke any method
quimrstorres has quit [Remote host closed the connection]
<shevy> >> class Cat; def meow; puts 'garfield meows'; end; end; garfield = Cat.new; do_this = 'meow'; garfield.send do_this
<ruboto> shevy # => garfield meows ...check link for more (https://eval.in/401782)
m8 has joined #ruby
DLSteve has joined #ruby
<shevy> should work via Model.send(string) in your case, if it can respond to that
k3asd` has joined #ruby
user1138 has joined #ruby
CustosLimen has joined #ruby
prefixed has quit [Changing host]
prefixed has joined #ruby
Zai00 has joined #ruby
quimrstorres has joined #ruby
blaines_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xyzzy12 has joined #ruby
barkerd427 is now known as zz_barkerd427
mhib has quit [Remote host closed the connection]
<eminence_> I think i did a bad job of explaining. Say Model.first.object1 returns "value1". Model.first.object2 returns "value2". I want to make one dynamic query like: var = 2; Model.first.object(var) => "value2"
dgutierrez1287 has joined #ruby
freerobby has quit [Quit: Leaving.]
masteraka has quit [Ping timeout: 256 seconds]
<eminence_> or var = 1; Model.first.object(var) => "value1"
<eam> eminence_: you can do it just like that?
freerobby has joined #ruby
zz_barkerd427 is now known as barkerd427
riotjones has joined #ruby
freerobby has quit [Client Quit]
schaerli has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
dopie has joined #ruby
freerobby has joined #ruby
DoubleMalt has joined #ruby
peter_paule has quit [Ping timeout: 264 seconds]
<eminence_> eam: That doesn't seem to work.
_djbkd has quit [Remote host closed the connection]
<shevy> I don't get it
GitGud has quit [Quit: My name is your name]
<eam> eminence_: describe what "doesn't seem to work" means so we can help you
dgutierrez1287 has quit [Ping timeout: 240 seconds]
rdark has quit [Quit: leaving]
<eminence_> I am trying to tell a Model what object name to look for based on a variable. I cant seem to append the variable to the object name.
peter_paule has joined #ruby
<toretore> eminence_: use real code in your explanations
<toretore> better yet, gist some code
<eminence_> toretore: Ill gist it
riotjones has quit [Ping timeout: 246 seconds]
<shevy> you mean "based on the content of a variable"
<shevy> x = 'foo'; method(x) is the same as method('foo')
<shevy> so it really ought to work
gthank has quit [Quit: ZNC - http://znc.in]
blaines has joined #ruby
shadoi has quit [Quit: Leaving.]
shadoi has joined #ruby
<eminence_> shevy: I want it to return: Model.methodfoo
<jhass> eminence_: "some model"? ActiveRecord?
<shevy> right, you want to invoke the method called "methodfoo" on Model? .send will work
pdoherty has joined #ruby
symbol has joined #ruby
allomov has joined #ruby
quimrstorres has quit [Remote host closed the connection]
dblessin_ has quit [Remote host closed the connection]
doertedev has quit [Quit: Lost terminal]
Spami has quit [Quit: This computer has gone to sleep]
_djbkd has joined #ruby
schaerli has joined #ruby
swgillespie has joined #ruby
dblessin_ has joined #ruby
axl_ has quit [Quit: axl_]
zz_Outlastsheep is now known as Outlastsheep
schaerli has quit [Remote host closed the connection]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
axl_ has joined #ruby
AlphaAtom has joined #ruby
danman has quit [Quit: danman]
fumihiro_ has quit [Ping timeout: 256 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bungoman has quit [Remote host closed the connection]
yalue has joined #ruby
endash has joined #ruby
<eminence_> shevy: What If I want it to be appended in the middle of the object and not at the end?
tomphp has joined #ruby
<jhass> eminence_: could you answer my question?
<eminence_> jhass: Yes its active record
<eminence_> Sorry I was afk for a sec
bungoman has joined #ruby
<jhass> (and yes, it takes strings too)
eGGsha is now known as eGGshke
eGGshke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whiteline has joined #ruby
imperator has quit [Quit: This computer has gone to sleep]
<shevy> eminence_ what do you mean "middle of the object". I thought you send a string, right? and you can manipulate any string in any way as you see fit in ruby
<shevy> >> x = 'abcdef'; x[3,0] = ' hello world! '; x
<ruboto> shevy # => "abc hello world! def" (https://eval.in/401786)
<toretore> eminence_: so.. where's that gist?
barkerd427 is now known as zz_barkerd427
<toretore> code > human speak
<jhass> shevy: please don't continue suggesting to use .send to access an AR attribute now that we know it's an AR model ;)
lkba has quit [Ping timeout: 240 seconds]
<jhass> just in case
rehat has quit [Read error: Connection reset by peer]
<shevy> I have no idea what AR is
shredding has quit [Ping timeout: 246 seconds]
<wasamasa> active record, duh
marr has quit [Ping timeout: 264 seconds]
<shevy> now I know what it is, duh
ferret_guy has joined #ruby
<shevy> eminence_ did you use .send :)
<shevy> ohhhh
ivanf has quit [Quit: ZNC - http://znc.in]
<eminence_> shevy: I am told not to use send now.. .send doesnt seem to work in the middle
<shevy> that is a string that you have here right?
imperator has joined #ruby
<jhass> that looks like an awful schema
<ljarvis> oO
<shevy> school is a string right? so .send on that string would not work anyway
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ljarvis> no school is an AR model instance
<eminence_> shevy: School is a model
<jhass> but anyway, school["g#{group_number}start"]
<ljarvis> ^
<ljarvis> +1 to the schema being awful
weemsledeux has joined #ruby
ruurd has joined #ruby
user1138 has quit [Ping timeout: 246 seconds]
<ljarvis> also, why not School.find(...).group_times
orbitalo has quit [Remote host closed the connection]
nettoweb_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> yeah, drop get_ prefixes
orbitalo has joined #ruby
_blizzy_ has joined #ruby
<jhass> also no need for the return keyword there
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> mmh, probably not even a need to fetch it, just pluck it
<ferret_guy> I am getting this error ,https://gist.github.com/markomo/fbd00f66e8a5e950c402, when attempting to run this code, https://gist.github.com/markomo/e516e3443d7039405853, I am using this gem https://github.com/pjdavis/roart in an attempt to comunacate with rt and get the number of unassined tickets
<ljarvis> also probably no need to call to_i on the group number
gregf has joined #ruby
<jhass> where(id: school_id).pluck("g#{group_number}start")
<jhass> .first
<ljarvis> that's a worse query though
<ljarvis> aha
<ljarvis> good one
<ljarvis> actually it's still not good
<jhass> huh?
tomphp has joined #ruby
<shevy> are you guys making it worse
peter_paule has quit [Ping timeout: 252 seconds]
ivanf has joined #ruby
<ljarvis> nevermind
<jhass> ferret_guy: protip: gist supports multiple files
carlosoliveira has joined #ruby
<shevy> uninitialized constant Roart::Connection::WWW (NameError)
ringarin has joined #ruby
last_staff has joined #ruby
<ferret_guy> jhass never noticed that before
<eminence_> Thanks guys, that works exactly how I want. I will look into cleaning up the schema but its for a very particular use case.
<shevy> guess not all of roart is properly required
fabrice31 has joined #ruby
<ferret_guy> shevy does that mean that Roart is having trouble with a gem called Connection?
ringarin has quit [Client Quit]
<ferret_guy> how can I troubleshoot that? do I just need to require Connection?
ringarin has joined #ruby
<shevy> not sure... the constant Roart::Connection::WWW is not known in the file where you trigger that NameError
<ElSif> seems mildly reminiscent of a issue caused by not having spawned a connection/missing a setup step with the gem
<shevy> I looked through the roar gem but I can not find any constant called WWW ?
<ferret_guy> shevy what does the :: indicate a sub class?
<jhass> ferret_guy: I'd look for alternatives. If that's no option, that projects last commit is 3 years ago, the last release is 5 years ago and the version you're using is even older (3-4 releases since)
<shevy> you scope to it; for instance, module Roart; module Connection; class WWW
<jhass> so use the latest git version with bundler if you have to use it
<jhass> but it looks pretty dead
<shevy> then you could do Roart::Connection::WWW but I can not find any WWW
<shevy> does another gem extend on it?
<jhass> shevy: you'll need to browse the version they use for starters https://github.com/pjdavis/roart/tree/e36cec774e2f69eb586739100a90badf00f6f88f
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> yeah could you find it? I was unable to
<jhass> https://github.com/pjdavis/roart/blob/e36cec774e2f69eb586739100a90badf00f6f88f/lib/roart/connection.rb#L43 I guess the mechanize dependency restriction wasn't good enough there and it changed since
rcvalle has quit [Quit: rcvalle]
<ljarvis> yeah we don't use WWW::Mechanize anymore
<ljarvis> and we haven't for a long time
<jhass> basically suffering from the problems I mentioned first
<ferret_guy> jhass: all I need to do is make one http request
Lucky_ has joined #ruby
<ljarvis> ferret_guy: why are you using this gem?
<jhass> then do it, net/http is your friend
fabrice31 has quit [Ping timeout: 246 seconds]
eGGsha has joined #ruby
<ljarvis> ^
tomaz_b has joined #ruby
ringarin has quit [Ping timeout: 252 seconds]
symm- has quit [Ping timeout: 255 seconds]
rubie has joined #ruby
Channel6 has joined #ruby
bootstrappm has quit [Quit: bootstrappm]
xyzzy12 has left #ruby [#ruby]
syath_ has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
felltir has joined #ruby
wallerdev has quit [Quit: wallerdev]
syath has quit [Ping timeout: 264 seconds]
* dudedudeman likes protips
momomomomo has quit [Ping timeout: 240 seconds]
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j4cknewt_ has quit [Read error: Connection reset by peer]
mike___1234 has quit [Ping timeout: 240 seconds]
j4cknewt has joined #ruby
zz_barkerd427 is now known as barkerd427
Mendenhall has joined #ruby
chussenot has joined #ruby
momomomomo has joined #ruby
dfockler has quit [Remote host closed the connection]
nofxx has joined #ruby
nofxx has joined #ruby
pfish has joined #ruby
senayar has quit [Remote host closed the connection]
balazs_ has joined #ruby
<pfish> is newobj_of the place where variables get defined in the C library?
chipotles has joined #ruby
bungoman has quit [Remote host closed the connection]
yfeldblum has joined #ruby
syath_ has quit [Quit: WeeChat 1.2]
chadwtaylor has joined #ruby
poguez_ has joined #ruby
choke has joined #ruby
gix has quit [Quit: Client exiting]
bungoman has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
iateadonut has quit [Quit: Leaving.]
k3asd` has quit [Ping timeout: 248 seconds]
balazs_ has quit [Ping timeout: 264 seconds]
xkickflip has quit [Quit: xkickflip]
symbol_ has joined #ruby
dfockler has joined #ruby
kies^ has joined #ruby
<ferret_guy> whats the best way to phrase this information? https://gist.github.com/markomo/ccb58b08f5af0abfcf1b check for the second case, and if not split it at newlines and subtract the required amount?
dgutierrez1287 has joined #ruby
<ljarvis> ferret_guy: what are you trying to achieve?
t0rrieri has joined #ruby
msnyon has joined #ruby
DroidBur_ has joined #ruby
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ferret_guy> ljarvis: in my gist I have the two possible outputs one is when their are no results and on that I want to return 0, the other has 6 results and on that I want to return 6
crunk_bear has joined #ruby
jhack32 has joined #ruby
ta has joined #ruby
symbol has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
gix has joined #ruby
msnyon_ has joined #ruby
<ljarvis> ferret_guy: how it this data served to you? you're really not giving enough information (Or I'm just missing it)
<ferret_guy> ljarvis: ahh sorry it is the result of a gttp get request using net/http :)
crunk_bear has quit [Remote host closed the connection]
<shevy> if a file would have only include Foo statements, but let's say 10 of them... how would you call the .rb file that holds these statements?
<ljarvis> then I guess you just watch to split the lines as you expect, ferret_guy
<shevy> (Foo is just an example, it's of course 10 different names)
DroidBur_ has quit [Remote host closed the connection]
imperator has left #ruby ["Leaving"]
DroidBur_ has joined #ruby
DroidBurgundy has quit [Ping timeout: 264 seconds]
<ljarvis> shevy: depends what they're for
msnyon has quit [Ping timeout: 250 seconds]
<ljarvis> I have created a constants.rb as a dumping ground but it's bad for that reason exactly (and because in most cases, there's always a better place to put stuff). i.e categorising it
kadoppe has quit [Ping timeout: 256 seconds]
leat has quit [Ping timeout: 240 seconds]
khando__ has joined #ruby
Contigi has quit [Quit: Leaving]
DroidBur_ has quit [Client Quit]
kadoppe has joined #ruby
mike___1234 has joined #ruby
peter_paule has joined #ruby
barkerd427 is now known as zz_barkerd427
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jhack32 has quit [Remote host closed the connection]
<shevy> right but many projects already use some kind of categorizing such as when they follow a "one class per .rb file" approach
lala has joined #ruby
leat has joined #ruby
khando has quit [Ping timeout: 265 seconds]
Siyfion has joined #ruby
Siyfion has quit [Client Quit]
<ljarvis> that's correct..
dfockler has quit [Remote host closed the connection]
werelivinginthef has quit [Remote host closed the connection]
user1138 has joined #ruby
ruby-lang342 has joined #ruby
ruurd has joined #ruby
EagleDelta has quit [Remote host closed the connection]
peter_paule has quit [Ping timeout: 248 seconds]
leat has quit [Remote host closed the connection]
leat has joined #ruby
yqt has joined #ruby
msnyon_ is now known as msnyon
werelivinginthef has joined #ruby
momomomomo_ has joined #ruby
chussenot has quit [Quit: chussenot]
pocketprotector has quit [Ping timeout: 256 seconds]
marr has joined #ruby
ruby-lang342 has quit [Ping timeout: 246 seconds]
momomomomo has quit [Ping timeout: 260 seconds]
momomomomo_ is now known as momomomomo
dudedudeman has quit [Remote host closed the connection]
chussenot has joined #ruby
gix has quit [Quit: Client exiting]
nossidge has joined #ruby
chadwtaylor has quit [Quit: Leaving...]
<mandarinkin> i have array of int, how to find max with index?
<mandarinkin> [1,2,3,4,5] need outpu [5,5]
<mandarinkin> [1,2,3,4,5] need output [5,5]
[PRGA]mx has joined #ruby
<hanmac> >> [1,2,3,4,5].each_with_index.max_by(&:first)
<ruboto> hanmac # => [5, 4] (https://eval.in/401828)
<ljarvis> mandarinkin: what happens if 5 is in the array twice?
msnyon has quit [Ping timeout: 246 seconds]
<hanmac> >> [1,2,3,4,5].each.with_index(1).max_by(&:first)
<ruboto> hanmac # => [5, 5] (https://eval.in/401829)
<mandarinkin> need get 2 index
<ljarvis> index of them both?
<mandarinkin> for [1,2,3,4,5,6] output should be indexes: [5,6] max:5
<ljarvis> right but what about [1,2,5,3,4,5]
<mandarinkin> hanmac, it this shortest variant?
<mandarinkin> for [1,2,3,4,5,5] output should be indexes: [5,6] max:5
[PRGA]mx has quit []
gix has joined #ruby
dudedudeman has joined #ruby
allcentury has quit [Remote host closed the connection]
bungoman has quit [Remote host closed the connection]
allcentury has joined #ruby
lkba has joined #ruby
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
bungoman has joined #ruby
baweaver has quit [Remote host closed the connection]
symbol_ has quit [Ping timeout: 240 seconds]
uri_ has joined #ruby
_ht has quit [Quit: Konversation terminated!]
<ljarvis> >> [1,5,2,4,5].each_with_index.group_by(&:first).max
<ruboto> ljarvis # => [5, [[5, 1], [5, 4]]] (https://eval.in/401847)
tno has joined #ruby
<ljarvis> max value is 5, indexes are 1 and 4
pocketprotector has joined #ruby
<ljarvis> you could do this with a single iteration if you care about speed/object allocation
<ljarvis> but im guessing you dont
<pfish> how do you define method missing for a singleton class in c?
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has quit [Remote host closed the connection]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Papierkorb> For a rspec test, how do I fake a class name?
michael_mbp has quit [Excess Flood]
<ljarvis> ?context Papierkorb
<ruboto> Papierkorb, Please add more context to your question, what are you doing, why are you doing it, which libraries are involved. Post some code to gist if it clarifies your question.
Outlastsheep is now known as zz_Outlastsheep
amystephen has joined #ruby
baweaver has joined #ruby
uri_ has quit [Quit: Textual IRC Client: www.textualapp.com]
uri_ has joined #ruby
redteam has joined #ruby
michael_mbp has joined #ruby
felltir has quit []
radialneon has joined #ruby
pocketprotector has quit [Ping timeout: 260 seconds]
pengin has quit [Remote host closed the connection]
radialneon_ has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
EllisTAA has quit [Quit: EllisTAA]
<Papierkorb> already solved
<hanmac> ljarvis: hm one of the funkiest solutions i found is that:
<hanmac> >> d=[1,5,2,3,4,5]; d.each.with_index(1).max_by(d.count(d.max),&:first) # ;P
<ruboto> hanmac # => [[5, 2], [5, 6]] (https://eval.in/401854)
prefixed has quit [Remote host closed the connection]
cochise has quit []
khando__ has quit [Ping timeout: 246 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
radialneon__ has joined #ruby
radialneon__ has quit [Read error: Connection reset by peer]
Lucky_ has joined #ruby
radialneon__ has joined #ruby
radialneon has quit [Ping timeout: 246 seconds]
kies^ has quit [Ping timeout: 244 seconds]
radialneon_ has quit [Ping timeout: 240 seconds]
khando has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
blaines has joined #ruby
s2013 has joined #ruby
momomomomo has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
momomomomo has joined #ruby
freerobby has joined #ruby
clamstar has quit [Remote host closed the connection]
acke has joined #ruby
werelivinginthef has joined #ruby
thelastinuit has joined #ruby
tomphp has joined #ruby
blaines has quit [Ping timeout: 244 seconds]
psy_ has quit [Ping timeout: 256 seconds]
tsvenson has quit [Ping timeout: 252 seconds]
Bloodshot has joined #ruby
blaines has joined #ruby
radialneon__ is now known as radialneon
gambl0re has quit [Remote host closed the connection]
`derpy has joined #ruby
bodgix has joined #ruby
gambl0re has joined #ruby
thelastinuit has quit [Client Quit]
allcentury has quit [Ping timeout: 246 seconds]
pocketprotector has joined #ruby
m8 has quit [Quit: Sto andando via]
davedev24 has quit []
ERIK__ has joined #ruby
arescorpio has joined #ruby
gwendall has quit [Remote host closed the connection]
chipotles has quit [Ping timeout: 264 seconds]
Ox0dea has joined #ruby
psy_ has joined #ruby
symbol_ has joined #ruby
allcentury has joined #ruby
treehug88 has joined #ruby
<Ox0dea> pfish: rb_define_singleton_method() should work just fine?
<treehug88> what is people's favorite rest client library?
symbol_ has quit [Client Quit]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gambl0re has quit [Read error: Connection reset by peer]
<havenwood> treehug88: HTTP client?
gambl0re has joined #ruby
<treehug88> havenwood: yeah, specifically for REST services
code1o6 has quit [Ping timeout: 250 seconds]
<ljarvis> what is this http you speak of
<ljarvis> there is rest and there is unrest
<Ox0dea> And often the two shall meet.
<adaedra> and there is soap
<hanmac> ljarvis: thats something totally new, propably patented by apple
<havenwood> treehug88: Here's an option: https://github.com/httprb/http.rb#readme
<havenwood> treehug88: Or if you might want to switch adapters: https://github.com/lostisland/faraday
JoshL has quit []
<ljarvis> I like http.rb
<treehug88> I'm seeking something specifically for REST
<ljarvis> treehug88: you know REST is just HTTP requests right?
<treehug88> sigh, yes, I know
ruurd has joined #ruby
<havenwood> treehug88: Net::HTTP is in the stdlib.
<Ox0dea> havenwood: But no Net::REST!
<treehug88> rest_client it is
<havenwood> Ox0dea: hehe >.>
<havenwood> treehug88: rest_client is a Net::HTTP wrapper
<ljarvis> lol
<ljarvis> but it has rest in the name
<havenwood> ljarvis: ahhhh
<havenwood> i see
Soda has quit [Remote host closed the connection]
<havenwood> treehug88: Yeah, if you want REST in the name... that's limiting.
<pfish> Ox0dea: I am assuming that means something like this rb_define_singleton_method(rb_cPPR, "method_missing", ppr_yield, 0);
<treehug88> I'm hearing httparty here
<treehug88> thanks everyone
<havenwood> treehug88: That's another Net::HTTP client.
<havenwood> treehug88: Another wrapper.
<pfish> where ppr_yield is the funciton I want called?
<treehug88> havenwood: yup
rideh has quit [Quit: zap]
<havenwood> treehug88: Anything rest-client or httparty are doing is just Net::HTTP. As mentioned, checkout HTTP.rb.
pengin has joined #ruby
davedev24 has joined #ruby
user1138 has quit [Ping timeout: 255 seconds]
<havenwood> treehug88: Typhoeus is nice for parallel requests or HTTPClient Excon are nice pure Ruby options (not Net::HTTP wrappers).
<treehug88> cool, thanks again havenwood
<Ox0dea> pfish: Yes, ppr_yield() would be invoked if you called PPR.foobar.
<havenwood> HTTPClient and Excon*
nossidge has quit [Quit: Page closed]
<pfish> what if i called PPR
<Ox0dea> pfish: Isn't it a class?
<Ox0dea> If you want to be able to call PPR, you'll need to define it as a method.
<Antiarc> Manticore if you're on JRuby, but I'm biased, I wrote it :P
Musashi007 has joined #ruby
nettoweb has joined #ruby
hanmac has quit [Ping timeout: 244 seconds]
<pfish> Ox0dea: Ok the person who originally wrote this library had already figured it out so I am good. It ends up being rb_define_method(rb_mKernel, "PPR", ppr_yield, 0);
<Ox0dea> Aye, but that's quite different from defining method_missing on a singleton class.
xkickflip has joined #ruby
choppington has quit [Ping timeout: 252 seconds]
<Ox0dea> You had yourself a classic XY problem. :P
k3asd` has joined #ruby
dorei has quit [Ping timeout: 244 seconds]
codecop has quit [Remote host closed the connection]
user1138 has joined #ruby
pengin has quit [Remote host closed the connection]
choke has joined #ruby
dfockler has joined #ruby
eGGsha has joined #ruby
bronson has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
avitzurel has joined #ruby
ruurd has joined #ruby
choppington has joined #ruby
ruurd has quit [Client Quit]
ERIK__ has quit [Ping timeout: 246 seconds]
clamstar has joined #ruby
user1138 has quit [Ping timeout: 246 seconds]
felixr has quit [Ping timeout: 240 seconds]
pengin has joined #ruby
momomomomo_ has joined #ruby
momomomomo has quit [Ping timeout: 248 seconds]
momomomomo_ is now known as momomomomo
michaeldeol has joined #ruby
user1138 has joined #ruby
hanmac has joined #ruby
rbennacer has quit [Ping timeout: 256 seconds]
t0rrieri has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Remote host closed the connection]
desigx has quit [Ping timeout: 246 seconds]
dfockler has quit [Remote host closed the connection]
eggoez has quit [Ping timeout: 252 seconds]
tomaz_b has quit [Quit: Leaving]
baweaver has quit [Remote host closed the connection]
masteraka has joined #ruby
allomov has quit [Remote host closed the connection]
dfockler has joined #ruby
eggoez has joined #ruby
allomov has joined #ruby
ruurd has joined #ruby
endash has quit [Quit: endash]
<pfish> Ox0dea: Yeah lol.
<pfish> it works though
workmad3 has quit [Ping timeout: 246 seconds]
hinbody has quit [Quit: leaving]
pico-pete has quit [Read error: Connection reset by peer]
GitGud has joined #ruby
pico-pete has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
diegoviola has quit [Quit: WeeChat 1.2]
hahuang65 has joined #ruby
danzilio has quit [Quit: Baiii!]
allomov has quit [Ping timeout: 250 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gregf1 has joined #ruby
gregf has quit [Read error: Connection reset by peer]
chussenot_ has joined #ruby
devbug has quit [Ping timeout: 265 seconds]
chussenot has quit [Ping timeout: 240 seconds]
chussenot_ is now known as chussenot
lordkryss has joined #ruby
baweaver has joined #ruby
bmurt has quit []
michaeldeol has quit [Ping timeout: 264 seconds]
k3asd` has quit [Ping timeout: 244 seconds]
deol has joined #ruby
deol has quit [Client Quit]
decoponyo has quit [Quit: Leaving...]
allomov has joined #ruby
blkperl has quit [Ping timeout: 255 seconds]
niemcu has joined #ruby
failshell has quit [Remote host closed the connection]
michaeldeol has joined #ruby
eminence_ has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 256 seconds]
Mendenhall has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
eggoez has quit [Ping timeout: 240 seconds]
khando has quit [Ping timeout: 246 seconds]
DEA7TH_ has joined #ruby
pfish has quit [Quit: Page closed]
<shevy> we are writing more and more code every day
ndrei has joined #ruby
wallerdev has joined #ruby
<toretore> but loving less
<toretore> how is anything real if it's inside computers
FernandoBasso has joined #ruby
blkperl has joined #ruby
<shevy> well for now we have sort of limited interfaces, but things will get better eventually
<hanmac> shevy yeah just see there : https://www.openhub.net/p/rubywx
<slash_nick> toretore: by phase component being zero
endash has joined #ruby
user1138 has quit [Ping timeout: 255 seconds]
miwood has quit [Remote host closed the connection]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
<toretore> maybe the universe is a computer did you ever think about that
ldnunes has quit [Quit: Leaving]
sharpmachine has quit [Remote host closed the connection]
last_staff has quit [Remote host closed the connection]
<Ox0dea> toretore: The argument goes that we're a simulation inside a computer, not necessarily that the universe itself is a computer.
dabradley has quit [Ping timeout: 255 seconds]
<zenspider> you say tomato...
eggoez has joined #ruby
<hanmac> Ox0dea: why not both? ;P
<toretore> i'm taking us to unexplored philosophical territories
<hanmac> toretore: or to the next asylum ;P
<toretore> what even is reality
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> > Cogito ergo sum.
<shevy> hanmac did you have to register for the project description there?
chussenot has quit [Quit: chussenot]
<zenspider> toretore: I hope you don't believe your "unexplored" statement
gwendall has joined #ruby
<shevy> hanmac I see that you did not add a lot of info to the readme yet :D https://github.com/Hanmac/rwx
<hanmac> shevy to add projects you need to be registered to openhub
rcvalle has joined #ruby
[H]unt3r has quit []
<hanmac> shevy the graphs on openhub cant be added to the Readme in github as far as i did see
<toretore> zenspider: i don't know i'm pretty creative like what if faith doesn't exist
<Ox0dea> zenspider: Regarding tomatoes, surely a thing is not its container?
<Ox0dea> toretore: Do you frequent /r/iamverysmart?
<toretore> i probably should
<Ox0dea> Aye.
<toretore> teach everyone about the evils of yaldabaoth
<zenspider> the universe is now just a container?
baweaver has joined #ruby
<zenspider> sorry... no. n/m. I don't care to continue this BS
eminence_ has joined #ruby
<shevy> lol
<zenspider> ruby ruby ruby... bring it back
<toretore> docker run -ti universe
<toretore> --rm too, don't want to keep it around when it's done
<hanmac> Ox0dea: hm when its a container, is it compatible with mkv ? ;P
stantonnet has quit [Ping timeout: 264 seconds]
jerius has quit [Quit: /quit]
willharrison has joined #ruby
Blaguvest has quit []
AlphaAtom has joined #ruby
<willharrison> how can i do something like [1, 2, 3].select {|n| n == max_of_originial_array }
<Ox0dea> zenspider: You said "you say tomato" as if to imply that the universe being a computer would be the same as the universe being a simulation.
<Ox0dea> I find that argument dubious at best.
<willharrison> im not trying to actually get the max, thats just an example
<willharrison> is that possible?
CloCkWeRX has joined #ruby
tomphp has joined #ruby
<Ox0dea> willharrison: No, you'll need to store the array as a distinct object to which you can refer. :/
<willharrison> ah ok thats what i thought
<Ox0dea> That's really how it ought to be, though; `self` shouldn't become the Array in a call to #map, for instance.
arup_r has quit [Quit: Leaving]
Jackneill has quit [Remote host closed the connection]
<willharrison> yeah I understand
<Ox0dea> willharrison: There's always #tap.
<Ox0dea> foo.tap { |ary| ary.select { |n| n == ary.max }
<willharrison> hm I will check that out, I don't know about it
rubie has quit [Remote host closed the connection]
<Ox0dea> Plus another closing brace.
acke has quit [Quit: Leaving...]
<willharrison> ah interesting
davejlong has quit [Ping timeout: 265 seconds]
veduardo has joined #ruby
chussenot has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
tkuchiki has joined #ruby
dabradley has joined #ruby
senayar has joined #ruby
jhack32 has joined #ruby
<Ox0dea> willharrison: You've still got to use an intermediate, but at least you can keep it a "pipeline".
<willharrison> yeah
<willharrison> I think thats what I was wanting
<willharrison> I'm trying to reduce a simple program to 1 line
<willharrison> lol
<Ox0dea> Yay!
<willharrison> been trying to teach my brother ruby but we're still at while loops and if statements. i figure he wont get to see the cool stuff before he goes to college so i want to show him a one liner of a program i had him write
Synthead has joined #ruby
benlovell has joined #ruby
dblessin_ has quit [Quit: Textual IRC Client: www.textualapp.com]
kies^ has joined #ruby
veduardo has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 252 seconds]
<shevy> you can do a one liner loop
<Ox0dea> You can do a one-liner *.
<`derpy> You can do a **.
<shevy> loop { puts 'hello world!' } - not too useful though, so almost a one liner: loop { puts 'hello ruby!'; sleep 1; exit if rand(5) == 0 }
<`derpy> oops, wrong window
<shevy> You can do ***.
benlovell has quit [Ping timeout: 256 seconds]
<dfockler> after using .each I finally realize when you actually need a for loop
ruby-lang966 has joined #ruby
rubie has joined #ruby
<dfockler> maybe I don't, never mind
<Ox0dea> You only ever "need" a for loop if you actually want the loop variable(s) to leak.
chussenot has quit [Quit: chussenot]
yqt has quit [Ping timeout: 240 seconds]
sinkensabe has joined #ruby
_djbkd has quit [Remote host closed the connection]
<adaedra> And remember that if your variables leak, Julian Assange will publish them.
carlosoliveira has quit [Quit: Connection closed for inactivity]
uri_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby-lang360 has joined #ruby
yqt has joined #ruby
otertore has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> shevy: [->{puts 'Hello, world.'}, ->{exit}].sample.call while sleep 1 # No semicolons.
psy_ has quit [Ping timeout: 244 seconds]
<shevy> Ox0dea we should write code for humans
zz_Outlastsheep is now known as Outlastsheep
radialneon has quit [Remote host closed the connection]
<pipework> And gingers too!
choke has joined #ruby
<adaedra> now that's mean
<Ox0dea> shevy: Only Siths deal in absolutes.
Kully3xf_ has quit [Ping timeout: 248 seconds]
DEA7TH_ has quit [Quit: DEA7TH_]
Musashi007 has quit [Quit: Musashi007]
<pipework> Only Shits deal in absolutes.
<shevy> adaedra Assange publishes only important stuff!
hahuang65 has quit [Ping timeout: 246 seconds]
<shevy> lol pipework
<shevy> pipework and Ox0dea make a great pair
<adaedra> pipework: :'D
<dfockler> forleaks.org
<shevy> eachleaks.org
<dfockler> wikileaks.gov
choppington has quit [Ping timeout: 240 seconds]
<Ox0dea> I'm phoning the authorities.
<adaedra> shevy: who said dfockler's variables are not important!?
GeissT has quit [Quit: Bye!]
<willharrison> gets.chomp.split.inject({}){|r,e|r[e]=e.scan(/[AEIOUYaeiouy]/).count;r}.tap{|h|p h.max_by{|k,v|v}}
<willharrison> this is the one liner
<dfockler> someone likes vowels
<Ox0dea> willharrison: /[aeiouy]/i
ruby-lang360 has quit [Ping timeout: 246 seconds]
<willharrison> you give it some words, it tells you which word has the most vowels
<willharrison> Ox0dea ah thanks
<pipework> willharrison: #each_with_object({}) is pretty cool too.
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
<willharrison> I will check that out
<shevy> gisthub changed something for pasting stuff
<shevy> I can no longer paste into the textarea field :(
<Aria> Oh dear
<Ox0dea> willharrison: gets.split.max_by { |word| word.downcase.count('aeiouy') }
<willharrison> damn
<shevy> oh... it works if I paste it into an intermediate buffer, without middle mouse button
devbug has joined #ruby
senayar has quit [Remote host closed the connection]
<adaedra> Ox0dea: if you need a number, try 36 65 65 65
spider-mario has quit [Remote host closed the connection]
<Ox0dea> adaedra: Hm?
<adaedra> for phoning the authorities.
<Ox0dea> Oh, right.
<Ox0dea> dfockler seems to have taken his anarchical tendencies elsewhere.
<dfockler> huh
<Ox0dea> Jokes.
<shevy> anarchy rules
polpak has joined #ruby
<shevy> it challenges authority!
<shevy> DOWN WITH THE OPS!!!
<pipework> I don't get the joke.
<pipework> shevy, are you the joke again?
<adaedra> anarchy?
<dfockler> authority uses splash, it's not effective
<adaedra> start9
<shevy> pipework nah but I fail to parse Ox0dea, I mean look at the nick alone
<Ox0dea> Authority used Totalitarianism; it's super-effective... for a while.
mary5030 has quit [Remote host closed the connection]
<adaedra> Authority uses vote. People has now illusion of choice. It's super effective!
<shevy> yeah, if you vote, you accept the system
<Ox0dea> shevy: What system? Democracy? /s
quimrstorres has joined #ruby
<shevy> any system you vote for!
<Ox0dea> People don't vote for systems.
veduardo has joined #ruby
<adaedra> Yes they do
paulcsmith has quit [Quit: Be back later ...]
GnuYawk has quit [Remote host closed the connection]
<adaedra> IIrc, there was a vote to include systemd in debian
<pipework> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<shevy> now pipework is angry
bootstrappm has joined #ruby
<pipework> Naw, I just like being a party pooper.
<shevy> all discussions shall be about ruby henceforthwith
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bootstrappm has left #ruby [#ruby]
_djbkd has joined #ruby
<dfockler> I wish some of the Enum methods were more functional
<Ox0dea> I wish Array#=== was deep.
<pipework> 'functional' in what way?
<dfockler> like zip is a.zip(b)
<dfockler> where is could be Enum.zip(a, b)
<adaedra> Hopefully, the hole I'm burying this body is deep enough.
<Ox0dea> dfockler: Wrong channel?
<adaedra> *+in
<havenwood> dfockler: require 'elixir'; Elixir::Enum.zip(a, b)
<Ox0dea> ^
sdothum has joined #ruby
<havenwood> :P
<pipework> dfockler: It can actually be pretty annoying not having the method as well.
amystephen has quit [Ping timeout: 244 seconds]
<pipework> I dislike Pathname.glob and have a silly gem that adds Pathname#glob
devbug has quit [Remote host closed the connection]
<Ox0dea> [Numeric, String] === [42, 'foo'] would be nice.
<Ox0dea> Right now Array#=== is just #==, and that's a shame.
devbug has joined #ruby
calleerlandsson has joined #ruby
<adaedra> Awww, poor Ox0dea
<adaedra> Make a PR to ruby
<havenwood> >> require 'rinda/tuplespace'; space = Rinda::TupleSpace.new; space.write [42, 'foo']; space.read [Numeric, String]
<ruboto> havenwood # => (https://eval.in/401870)
<havenwood> => [42, "foo"]
<ljarvis> how optimal
monstordh has joined #ruby
<shevy> who likes Pathname anyway
<dfockler> is === called set membership?
<pipework> Threequals, really.
<ElSif> threequals :D
<pipework> shevy: I do!
<havenwood> one less than fourquals
<Eiam> hmm. any suggestions on how to debug this issue? I have workers (resque) waiting for work, and resque-scheduler, saying its acknowledged the addition of a job to the schedule... but no workers pick up any work
<ElSif> 1 more the.. dequels?
<adaedra> shevy: pathname is nice
<dfockler> sequals
Guest51636 has quit [*.net *.split]
alem0lars has quit [*.net *.split]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
veduardo has quit [Ping timeout: 264 seconds]
chussenot has joined #ruby
nofxx has quit [Ping timeout: 265 seconds]
<havenwood> tooling \o/
nofxx has joined #ruby
AlphaAtom has joined #ruby
<Ox0dea> Hey, *that's* why he wrote faster_method_source.
<monstordh> Newb alert. Trying to get a SASS environment set up. I just found out that sass-globbing 1.1.1 has issues with relative paths and breaks for projects using things like: @import "../../variables/**/*". I have uninstalled and reinstalled -v 1.1.0, which works by all testimonies I have read. However, whenever I do a bundle install sass-globbing 1.1.1 is automatically RE-installed. How do I get this to stop? Am I using a version of sass version that can only
<monstordh> sass-globbing 1.1.1? Currently using 3.4.16 (Selective Steve)
<havenwood> Ox0dea: :D
<ElSif> did you only post that cause you got an @ mention in it? ;)
<dfockler> haha
<dfockler> that looks pretty snazzy
<havenwood> ElSif: Yes, that's what makes me tick. Without mentions I die.
<havenwood> ElSif: But no that's not why I posted it, heh.
<havenwood> ElSif: Give it a try...
<ElSif> i probably will :)
lannonbr has joined #ruby
<ElSif> with that and sublime text who needs rubymine?
<ElSif> (not that i ever use rubymine...)
aryaching has quit [Ping timeout: 240 seconds]
<havenwood> ElSif: Could do a Sublime plugin for it too, I'm sure.
<dfockler> I've always been using sublime, maybe I'm not getting my full ruby potential
victortyau has quit [Quit: Leaving]
<ElSif> ooo i was looking for a new python project, maybe thats it?
<dfockler> I used eclipse a while ago and I barely remember java
<havenwood> Load new stuff into Pry, and it automatically has access to it ^
<havenwood> Would be quite a handy tool for an editor as well
quimrstorres has quit [Remote host closed the connection]
Stratege has quit [Ping timeout: 246 seconds]
zz_barkerd427 is now known as barkerd427
quimrstorres has joined #ruby
baweaver has quit [Remote host closed the connection]
otertore has quit [Quit: Page closed]
lorikeet has joined #ruby
iceyec has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<ElSif> hmmm, ive never written a sublime text extension, seems like that could be fun
arescorpio has quit [Quit: Leaving.]
bruno- has joined #ruby
MasterPiece has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
<Ox0dea> ElSif: I vaguely recall the API being a little unpleasant.
<Ox0dea> Then again, Python.
* monstordh stepping away to clear my head and eat dinner
<Ox0dea> monstordh: Thanks.
njs126 has joined #ruby
<dfockler> monstordh: grilled cheese?
<monstordh> anything at this point
pepperbreath1 has joined #ruby
<Ox0dea> Gruyère best cheese.
<Ox0dea> Feel free to say why you're wrong.
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<ElSif> lol, hey now, don't go starting any more flame wars with python
<Ox0dea> ElSif: We're in #ruby, bud. Snakes die often here.
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
endash has quit [Quit: endash]
pepperbreath has quit [Ping timeout: 244 seconds]
gamename has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 244 seconds]
<ElSif> snake is delicious so i guess thats ok
gamename has joined #ruby
tsvenson has joined #ruby
momomomomo_ has joined #ruby
momomomomo has quit [Ping timeout: 246 seconds]
momomomomo_ is now known as momomomomo
CloCkWeRX has quit [Ping timeout: 256 seconds]
niemcu has quit [Read error: Connection reset by peer]
casadei_ has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
mikecmpbll has quit [Quit: i've nodded off.]
alem0lars has joined #ruby
c355E3B has quit [Quit: Connection closed for inactivity]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
barkerd427 is now known as zz_barkerd427
casadei_ has joined #ruby
monstordh has quit [Quit: monstordh]
silverdust has joined #ruby
silverdust is now known as Guest70108
ruby-lang589 has joined #ruby
dgutierrez1287 has joined #ruby
gamename has quit [Ping timeout: 256 seconds]
masteraka has quit [Quit: Leaving.]
Volsus has joined #ruby
sshuff is now known as sshuff|gone
j4cknewt has quit [Remote host closed the connection]
christiandsg has joined #ruby
baweaver has joined #ruby
balazs_ has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
axl_ has quit [Quit: axl_]
<[k-> Ox0dea!
dgutierrez1287 has quit [Ping timeout: 264 seconds]
dopie has quit [Quit: This computer has gone to sleep]
bungoman has quit [Remote host closed the connection]
<[k-> time to leave :(
[k- has quit [Quit: -a- IRC for Android 2.1.25]
momomomomo has quit [Quit: momomomomo]
willywos has quit [Ping timeout: 244 seconds]
mike___1234 has quit [Ping timeout: 244 seconds]
balazs_ has quit [Ping timeout: 256 seconds]
tno has quit [Remote host closed the connection]
EllisTAA has joined #ruby
kirun has quit [Quit: Client exiting]
EllisTAA has quit [Client Quit]
Spami has joined #ruby
<dfockler> I wonder why Ruby never got picked up by the scientific community
<dfockler> I guess python has a more orderly vibe to me
dopie has joined #ruby
<shevy> I think there are about at the least 2x as many python users out there
<dfockler> that's true
<shevy> #python has 1662 scaly friends
<dfockler> probably more RoR users than python users
<shevy> for C or C++ users, often they just pick one "scripting" language and then stick to it
<shevy> take relion (image processing of 3d cryoelectron microscopy datasets), it's written in C++ and the author knows python so that paved the way already
havenwood has quit [Ping timeout: 244 seconds]
masteraka has joined #ruby
yardenbar has quit [Quit: Leaving]
wallerdev has quit [Ping timeout: 264 seconds]
htmldrum has joined #ruby
hagabaka has quit [Ping timeout: 246 seconds]
hagabaka has joined #ruby
Musashi007 has joined #ruby
<ElSif> list comprehensions are cool :) especially if you like the word 'for'
<shevy> we hate for!
<dfockler> [for bean in beans]
<shevy> [for x in y in z over a]
sankaber has joined #ruby
allomov has quit [Remote host closed the connection]
maletor has quit []
ruurd has joined #ruby
allomov has joined #ruby
<jhass> back.chunk(&:crispy?)
<jhass> er, fail
<jhass> bacon.chunk(&:crispy?)
pdoherty has quit [Quit: Leaving]
albedoa has joined #ruby
<Ox0dea> jhass: Did you start with "bacon" and end with "speck"?
maletor has joined #ruby
<jhass> idk what happened, really
<jhass> my muscle memory is all messed up recently :/
allomov has quit [Ping timeout: 255 seconds]
<Ox0dea> range(float('inf')) # => TypeError
<Ox0dea> Python is awesome.
Torrieri has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
ascarter has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JoshL has joined #ruby
<Ox0dea> Gotta import a module just to iterate over N.
<shevy> jhass it comes naturally so - you are getting older
charliesome has quit [Quit: zzz]
Channel6 has quit [Quit: Leaving]
psy_ has joined #ruby
<Ox0dea> shevy: Everything is always getting older; do you even causality?
mike___1234 has joined #ruby
<shevy> age deteriorates matter
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<albedoa> stupid question: i see things like `if rand > 0.1` with the intent of resolving to 'true' 90% of the time. i know it's incredibly unlikely to affect anything, but shouldn't it technically be `>= 0.1` since it excludes 1.0 as an option?
ryanprior has joined #ruby
workmad3 has joined #ruby
<polpak> Ox0dea: I have to say that's not a situation I've ever needed
<Ox0dea> polpak: Pardon?
<polpak> Ox0dea: enumerating forever
choke has joined #ruby
pandaant has joined #ruby
<dfockler> Generators!
<dfockler> by any other name
<dfockler> Stream processing is like enumerating forever
<Ox0dea> dfockler: range() is a generator in Python 3, but you still can't tell it to enumerate indefinitely.
GnuYawk has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> polpak: The purpose of enumerating "forever" is to be able to stop at some point, but without explicitly defining an upper bound.
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<polpak> Ox0dea: sure, I've just never needed to count while I did it
[H]unt3r has joined #ruby
<ryanprior> I have an array A that's behaving in a way I don't understand. If I call `A.map { |a| a.foo.nil? }` then I get an array back like [False, True, False, False] but what I want is the entries in A for which it's False. So I then try `A.select { |a| a.foo.nil? }` but I get the error NoMethodError: undefined method `foo' for "e":String
<shevy> albedoa probably. although if you are sure you require 90% then I would use numbers that allow clear percentages towards that, rather than rand without arguments
<albedoa> shevy thank you
<ryanprior> Any idea why I wouldn't get a NoMethodError with `map` but then do get one with `select`?
<shevy> albedoa I think 0 is also excluded though
<Ox0dea> shevy: It's not.
Igorshp has joined #ruby
<albedoa> shevy "If called without an argument, or if max.to_i.abs == 0, rand returns a pseudo-random floating point number between 0.0 and 1.0, including 0.0 and excluding 1.0."
<shevy> Ox0dea how likely will rand give 0?
<albedoa> so incredibly unlikely
<dfockler> ryanprior: because map's 'a' is an array
<Ox0dea> shevy: It's as likely as it giving you any other number, more or less.
<albedoa> which is also why my question is nitty too
workmad3 has quit [Ping timeout: 256 seconds]
jhack32 has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Quit: Musashi007]
<albedoa> or: it is incredibly unlikely to affect whatever it is you are trying to do
<Ox0dea> >> loop until rand == 0
<ruboto> Ox0dea # => (https://eval.in/401875)
<albedoa> haha
<shevy> ruboto did not continue!
<Ox0dea> Shouldn't take more than a few hours.
<shevy> every time?
ndrei has quit [Ping timeout: 244 seconds]
<Ox0dea> No, it might never terminate.
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ryanprior> dfockler: if that's true, then why does `[1,2].map { |x| x }` yield [1,2] and not [[1],[2]]?
<dfockler> it's not an array, my bad
<Ox0dea> ryanprior: I suspect you're looking for the #reject method.
AlphaAtom has joined #ruby
<Ox0dea> > NoMethodError: undefined method `foo'
<Ox0dea> That hints at some powerful confusion.
mary5030 has joined #ruby
drewvanstone has joined #ruby
<ryanprior> Ox0dea: I know, I feel powerfully confused. If it works with map how does it error out with select.
pandaant has quit [Remote host closed the connection]
<polpak> ryanprior: the problem is you changed what's in A between the map and the select
<Ox0dea> ryanprior: Are you... actually calling #foo on a String?
<polpak> ryanprior: somehow you got a string in there
quimrstorres has quit [Remote host closed the connection]
<polpak> mutation ftl
<ryanprior> polpak: okay, how is it different? according to documentation it looks to me like map and select both pass each respective element into the block?
<Ox0dea> Yes, that's correct.
<polpak> ryanprior: that's correct
<Ox0dea> ryanprior: Are you simply trying to remove the nils from an Array?
<polpak> Ox0dea: no, he wants to know what a's have foo==Nil
ruby-lang589 has quit [Ping timeout: 246 seconds]
<ryanprior> no, I have an array of data structures and I want to keep only those which have non-nil in a particular field
<Ox0dea> A.select { |a| a.foo }, then.
<dfockler> and I want to know why map doesn't throw an error but select does!
<polpak> ryanprior: oh you want reject then
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chussenot has quit [Quit: chussenot]
<polpak> Ox0dea: that could remove things for which foo is false
<Ox0dea> I'm willing to wager that doesn't matter in this instance, but you're not wrong.
masteraka has left #ruby [#ruby]
<polpak> ryanprior: but either way the issue isn't reject/select it's that you've mutated A
<dfockler> ahhh! mutation! thanks polpak
apfeluser has quit [Ping timeout: 256 seconds]
<ryanprior> polpak: my strong gut feeling is that I am not mutating A. In any case, I am confident that I am not mutating it intentionally.
<Ox0dea> ryanprior: Post code?
mary5030 has quit [Ping timeout: 264 seconds]
bigkevmcd has quit [Ping timeout: 240 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
<polpak> ryanprior: it's unfortunately very easy to mutate things unintentionally
dopie has quit [Quit: This computer has gone to sleep]
quimrsto_ has joined #ruby
<Ox0dea> ryanprior: Did you inadvertently use #map! somewhere?
thiagovsk has joined #ruby
wallerdev has joined #ruby
<ryanprior> Ox0dea: not anywhere in my code. I'm using Pry to work on this, is it possible Pry is mutating something behind my back?
<Ox0dea> Doubtful.
<Coraline> What does the array look like right now?
<Ox0dea> Coraline: It's got some square brackets, a few commas, and an element or two.
drewvanstone has quit [Ping timeout: 244 seconds]
finisherr has quit [Quit: finisherr]
<ryanprior> I tried freezing A (`A.freeze; A.reject {...}`) and it still raises the NoMethodError, not a RuntimeError as I would expect when unintentionally mutating a frozen array.
<Coraline> Ox0dea: that's helpful, thanks!
bruno- has joined #ruby
<polpak> ryanprior: well if it's already been mutated, freezing it won't help
<polpak> ryanprior: you have a string in your array. when it encounters the string and calls .foo it bails
<polpak> ryanprior: make sure the Array has what you think it does
user1138 has joined #ruby
Ilyas has quit [Read error: Connection reset by peer]
Zai00 has quit [Quit: Zai00]
<ryanprior> polpak: that's what I was trying to do by using A.map {...} first
endash has joined #ruby
<ryanprior> I reasoned to myself, Ryan I said, you should use `map` to make sure your array's got what you really think it's got.
zacstewart has quit [Remote host closed the connection]
<polpak> ryanprior: bleh. where is the array coming from?
Mendenhall has joined #ruby
<ryanprior> It's a huge pile of commands built using the GLI gem.
baweaver has quit [Remote host closed the connection]
<polpak> ryanprior: where some of the commands are strings and some are some other object?
<ryanprior> none of them should be strings, I don't think
albedoa has quit [Quit: Textual IRC Client: www.textualapp.com]
zacstewart has joined #ruby
<polpak> ryanprior: well if none of them were strings it wouldn't tell you that String has no method .foo
<ryanprior> and if they were strings, then I would hope that `map` would also raise NoMethodError when I tried to call `foo` on the string which doesn't have `foo`
<polpak> ryanprior: that's true
<polpak> ryanprior: the strings were introduced after the map then
<ryanprior> but I don't understand how I did, because I froze the array and then tried map and it worked, then tried select and it didn't.
jobewan has quit [Quit: Leaving]
<Ox0dea> ?code
<ruboto> We can't help you without your code, please post it to https://gist.github.com
DoubleMalt has quit [Remote host closed the connection]
<ryanprior> is it possible for GLI to define a custom `select` on the array, and maybe the `select` I'm using is non-standard and broken?
<ryanprior> can I do something like A.select == [1,2].select
<ryanprior> to see if it's the exact same function?
<Ox0dea> ryanprior: Use Array.instance_method(:select).source_location.
zacstewart has quit [Ping timeout: 256 seconds]
<ryanprior> the array doesn't have instance_method defined. is that unusual?
<Ox0dea> ryanprior: I meant using `Array` explicitly, but yeah, just do A.method(:select).source_location.
hololeap has joined #ruby
douglasssss has quit [Quit: Leaving]
hololeap has quit [Client Quit]
roolo has quit [Remote host closed the connection]
<ryanprior> => nil
<Ox0dea> Then they're the same method.
quimrsto_ has quit [Remote host closed the connection]
<ryanprior> Okay, map and select are both standard.
<ryanprior> The code I'm working with is open source and available as a gem. https://rubygems.org/gems/conjur-cli
<ryanprior> and the array I've been calling A is `Conjur::CLI::commmands` provided by that gem
<Ox0dea> That's not the code that will help us arrive at a solution to your problem.
<Ox0dea> Oh, well, let's see, then.
drewo has quit [Ping timeout: 264 seconds]
Ox0dea has quit [Read error: Connection reset by peer]
Ox0dea has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
user1138 has quit [Ping timeout: 246 seconds]
<ryanprior> Here's a gist of a pry shell I just ran to demonstrate my confusion https://gist.github.com/ryanprior/f8f536f05efe4fbb1928
blue_deref has joined #ruby
<Coraline> Can you just type A and tell us what it spits out?
bungoman has joined #ruby
JoshL has quit []
<ryanprior> No, it's some 12k lines of data structure vomit.
<ryanprior> I mean I *can* if you're actually somehow interested in that. But yeah.
<Coraline> Well it's been infected with strings
<Coraline> Oh you did a[1] in the second example
<Coraline> Nevermind
Igorshp has quit [Remote host closed the connection]
<Coraline> Try clearing your pry session and starting over maybe
Stratege has joined #ruby
<ryanprior> Okay, I just did.
msnyon has joined #ruby
<ryanprior> I also just tried doing `A.map { |a| a.is_a? String }`
<Coraline> a[1]
<ryanprior> and `A.map { |a| a[1].is_a? String}`
<ryanprior> both yield arrays of False
bungoman has quit [Ping timeout: 248 seconds]
<Coraline> OK, so try the select again?
Ox0dea has quit [Read error: No route to host]
Igorshp has joined #ruby
<Coraline> I wonder if .nodoc was mutating a[1]
<ryanprior> A.select { |a| a[1].nodoc.nil? }
<ryanprior> NoMethodError: undefined method `nodoc' for "e":String
<ryanprior> from (pry):15:in `block in __pry__'
drewo has joined #ruby
<ryanprior> Some of the data structures in a[1] have nodoc defined to return true, others do not have it defined.
wallerdev_ has joined #ruby
wallerdev has quit [Ping timeout: 265 seconds]
wallerdev_ is now known as wallerdev
<ryanprior> What I want is to get an array of only those for which nodoc is *not* defined.
<ryanprior> Which is to say, reject all those for which nodoc is defined.
ruby-lang966 has quit [Ping timeout: 246 seconds]
<polpak> ryanprior: I would probably use respond_to for this myself, but it should work the way you are trying to do it I think
<polpak> ryanprior: err respond_to?
ferret_guy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<shevy> I have to convert x seconds into a hh:mm:ss format. Is there a proper name for the hh:mm:ss format though? I want to name the class or method properly
blackmesa has joined #ruby
Ox0dea has joined #ruby
<Ox0dea> shevy: "Timestamp" is pretty standard nomenclature.
baweaver has joined #ruby
<shevy> ok
gwendall has quit [Remote host closed the connection]
konr has quit [Quit: Connection closed for inactivity]
<Ox0dea> ryanprior: I can confirm that I'm seeing this error, even outside of pry.
gwendall has joined #ruby
<ryanprior> polpak: `A.map { |a| a[1].respond_to? :nodoc }` returns an array of all `true` so for some reason that's not helpful?
ruurd has quit [Quit: ZZZzzz…]
rubie has quit [Remote host closed the connection]
<polpak> ryanprior: hrmph
lkba_ has joined #ruby
<Ox0dea> ryanprior: Check Conjur::CLI.commands.class. :P
<ryanprior> Ox0dea: good to get confirmation, good to know it's not somehow a Pry thing, vexing though.
<Ox0dea> That's the source of your woes.
hololeap has joined #ruby
dented42 has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
mandarinkin has quit [Quit: Leaving]
mandarinkin has joined #ruby
<ryanprior> Ox0dea: ooooh so select is giving me a key, value
user1138 has joined #ruby
<ryanprior> Ox0dea: and I'm implicitly throwing out the value by passing in a block with |a|
helpa has quit [Ping timeout: 255 seconds]
gwendall has quit [Ping timeout: 246 seconds]
<ryanprior> is that right?
<Ox0dea> ryanprior: Almost, but not quite; rather, `a` contains both the key and the value.
<baweaver> >> {a: 1}.each { |a| p a }
<ruboto> baweaver # => [:a, 1] ...check link for more (https://eval.in/401878)
gwendall has joined #ruby
benlovell has joined #ruby
quazimodo has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ryanprior> okay! wow. thank you for walking me through that.
al2o3-cr has quit [Quit: WeeChat 1.2]
al2o3-cr has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rcvalle has quit [Quit: rcvalle]
mandarinkin has quit [Ping timeout: 264 seconds]
webguynow has joined #ruby
benlovell has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<polpak> ugh. so it supports map on just the values, but select on key,value ?
<polpak> gross
<polpak> oh wait, nvm
ndrei has joined #ruby
Alayde has quit [Ping timeout: 250 seconds]
EasyCo has joined #ruby
<ljen> Hi all – I'm writing a basic Lisp parser and I'm trying to figure out how to jump to another index on the next turn iterating through an array? Is this possible and if so what is the best way to handle it? Here is my code in case you are curious: https://github.com/paeeon/lisp-interpreter/blob/master/interpreter.rb
rcvalle has joined #ruby
<polpak> Ox0dea: wtf
allcentury has quit [Ping timeout: 248 seconds]
zr2d2 has joined #ruby
avitzurel has quit [Remote host closed the connection]
michaeldeol has joined #ruby
iateadonut has joined #ruby
avitzurel has joined #ruby
iateadonut has quit [Client Quit]
Outlastsheep is now known as zz_Outlastsheep
<Ox0dea> It seems Hash#select only yields keys to one-argument blocks. :/
Kyhz has quit [Ping timeout: 240 seconds]
<Ox0dea> That is in outright violation of the principle of least surprise.
<mozzarella> what do you mean?
Ropeney has joined #ruby
<pontiki> it made Ox0dea surprised
<ryanprior> Ox0dea: I literally just said that out loud to my coworker
aaeron has joined #ruby
<aaeron> Hey. How shall I pass a file and a json object in a http post request?
desigx has joined #ruby
<Ox0dea> >> wtf = []; foo = {a: 1, b: 2}; foo.select { |x| wtf << x }; wtf
<ruboto> Ox0dea # => [:a, :b] (https://eval.in/401879)
<ryanprior> I mean I appreciate Ruby's flexibility and interface consistency, and this is an example of both those things...but also of the price you pay for them.
<pontiki> seriously, though, it works differently than would be expected given other enumerable methods on Hash
<Ox0dea> Yes, it does. It might constitute a bug.
<ElSif> i think it quite possibly does :D
<ElSif> nice find
sankaber has joined #ruby
<pontiki> try that with older versions, Ox0dea
blaines has quit [Ping timeout: 256 seconds]
<Ox0dea> 21>> wtf = []; foo = {a: 1, b: 2}; foo.select { |x| wtf << x }; wtf
failshell has joined #ruby
<ruboto> Ox0dea # => [:a, :b] (https://eval.in/401881)
<polpak> ryanprior: I would argue that this is does not express 'interface consistency'
<Ox0dea> 19>> wtf = []; foo = {a: 1, b: 2}; foo.select { |x| wtf << x }; wtf
<ruboto> Ox0dea # => [:a, :b] (https://eval.in/401882)
<pontiki> damn
<mozzarella> try 18
cardoni_ is now known as cardoni
<mozzarella> 18>> wtf = []; foo = {a: 1, b: 2}; foo.select { |x| wtf << x }; wtf
<ruboto> mozzarella # => /tmp/execpad-ca865c0d26a4/source-ca865c0d26a4:2: odd number list for Hash ...check link for more (https://eval.in/401883)
avitzurel has quit [Ping timeout: 264 seconds]
<mozzarella> 18>> wtf = []; foo = {:a => 1, :b => 2}; foo.select { |x| wtf << x }; wtf
<ruboto> mozzarella # => /tmp/execpad-42e1e088fb58/source-42e1e088fb58:2: warning: multiple values for a block parameter (2 f ...check link for more (https://eval.in/401884)
<Ox0dea> Cripes.
zacstewart has joined #ruby
<mozzarella> seems to work fine on 1.8
chipotles has joined #ruby
<Ox0dea> I wonder if 1.9's ChangeLog has any mention of the new behavior.
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlovell has joined #ruby
<pontiki> well, wait a sec
failshell has quit [Client Quit]