jhass changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
blackmesa has quit [Quit: WeeChat 1.5]
swills has joined #ruby
shiver has joined #ruby
fmcgeough has joined #ruby
fmcgeough has quit [Client Quit]
SCHAAP137 has joined #ruby
Gasher^ has quit [Quit: Leaving]
lightt has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
karmatr0n has quit [Ping timeout: 264 seconds]
wrkrcoop has quit [Quit: wrkrcoop]
sesquipedalian has joined #ruby
karmatr0n has joined #ruby
pawnbox has joined #ruby
JakFrist has joined #ruby
solocshaw1 has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
solocshaw1 is now known as solocshaw
rkazak has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
macsteps has joined #ruby
snath has quit [Ping timeout: 250 seconds]
n_blownapart has joined #ruby
toretore has quit [Ping timeout: 260 seconds]
ocbtec_ has quit [Quit: leaving]
hutch34_ has joined #ruby
hutch34_ has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
pharaoh2 has quit [Quit: Textual IRC Client: www.textualapp.com]
jmignault has joined #ruby
shinnya has quit [Ping timeout: 250 seconds]
toretore has joined #ruby
whathappens has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 252 seconds]
rcvalle has quit [Quit: rcvalle]
jmignault has quit [Ping timeout: 260 seconds]
macsteps has quit [Remote host closed the connection]
dcunit3d has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
karmatr0n has quit [Ping timeout: 250 seconds]
dcunit3d has joined #ruby
djbkd has quit [Quit: My people need me...]
jetpackjoe has joined #ruby
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has joined #ruby
GodFather has joined #ruby
lightt has quit [Remote host closed the connection]
markfletcher has quit [Quit: Textual IRC Client: www.textualapp.com]
lightt has joined #ruby
macsteps has joined #ruby
jetpackjoe has quit [Ping timeout: 272 seconds]
bkxd has joined #ruby
ta__ has quit [Ping timeout: 244 seconds]
GodFather has quit [Ping timeout: 246 seconds]
<Guest16899> exit
Guest16899 has quit [Quit: leaving]
ta_ has joined #ruby
cyphase has quit [Ping timeout: 272 seconds]
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
bkxd has quit [Ping timeout: 260 seconds]
teotwaki has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
ksmutthu has quit [Ping timeout: 272 seconds]
CustosLimen has quit [Ping timeout: 260 seconds]
llua has quit [Ping timeout: 264 seconds]
devster31 has quit [Ping timeout: 258 seconds]
alexandernst has quit [Ping timeout: 260 seconds]
Bilge- has quit [Ping timeout: 260 seconds]
SilverKey has joined #ruby
gnufied has quit [Quit: Leaving]
davedev24 has joined #ruby
cyphase has joined #ruby
lightt has quit [Ping timeout: 244 seconds]
devster31 has joined #ruby
AcidCrash0x00 has joined #ruby
alexandernst has joined #ruby
CustosLimen has joined #ruby
Bilge has joined #ruby
llua has joined #ruby
ornerymoose has joined #ruby
teotwaki has joined #ruby
AcidCrash has quit [Ping timeout: 260 seconds]
SCHAAP137 has quit [Quit: Leaving]
cyphase has quit [Ping timeout: 264 seconds]
macsteps has quit [Remote host closed the connection]
valagalen has joined #ruby
SilverKey has quit [Quit: Halted.]
SilverKey has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cyphase has joined #ruby
neo__ has joined #ruby
xall has quit [Ping timeout: 244 seconds]
n_blownapart has quit []
eljimmy has joined #ruby
Spami has quit [Ping timeout: 258 seconds]
eljimador has joined #ruby
xall has joined #ruby
Spami has joined #ruby
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
Emmanuel_Chanel has joined #ruby
valagalen has quit [Quit: Leaving]
neo__ has quit [Ping timeout: 250 seconds]
Silthias1 has joined #ruby
Silthias has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
Emmanuel_Chanel has quit [Client Quit]
ta_ has quit [Ping timeout: 260 seconds]
sneakers has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
xall has quit [Ping timeout: 240 seconds]
SilverKey has quit [Quit: Halted.]
neo__ has joined #ruby
sarbs has joined #ruby
CloCkWeRX has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
Emmanuel_Chanel has joined #ruby
jmignault has joined #ruby
Ropeney has joined #ruby
karmatr0n has joined #ruby
jmignault has quit [Ping timeout: 276 seconds]
rodfersou has joined #ruby
timanema has joined #ruby
roamingdog has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
amincd has joined #ruby
aryaching has joined #ruby
jaguarmagenta has joined #ruby
<amincd> Hi, any idea why io.read(100) returns an output that `wc -c` says is 121 bytes long?
timanema has quit [Ping timeout: 244 seconds]
nankyokusei has joined #ruby
devbug has joined #ruby
safetypin has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
ta_ has quit [Ping timeout: 246 seconds]
malconis has joined #ruby
ta_ has joined #ruby
mistermocha has joined #ruby
centrx has joined #ruby
mistermocha has quit [Read error: No route to host]
devbug has quit [Quit: Lances at dawn!]
malconis has quit [Ping timeout: 250 seconds]
rkazak has quit [Quit: Sleep.....ing....]
ur5us has joined #ruby
snath has joined #ruby
pawnbox has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
DTZUBDUB has quit [Ping timeout: 252 seconds]
rkazak has joined #ruby
globalall0c_ has joined #ruby
gheegh has quit [Ping timeout: 272 seconds]
pilne has quit [Quit: Quitting!]
pawnbox has quit [Ping timeout: 246 seconds]
<smathy> Does `wc -m` also give you 121?
aryaching has quit [Ping timeout: 258 seconds]
<amincd> ok I figured it out. I was using 'puts io.read(100)', which was adding newlines that weren't being picked up by `wc`
globalall0c has quit [Ping timeout: 264 seconds]
<amincd> yes `wc -m` was giving me the same inflated count
<amincd> thanks for your help everyone
<amincd> *were being picked up
amincd has quit [Quit: Page closed]
timanema has joined #ruby
bkxd has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
elifoster has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Remote host closed the connection]
timanema has quit [Ping timeout: 250 seconds]
rodfersou has quit [Quit: leaving]
bkxd has quit [Ping timeout: 272 seconds]
whathappens has joined #ruby
bkxd has joined #ruby
yfeldblum has joined #ruby
macsteps has joined #ruby
macsteps has quit [Remote host closed the connection]
jackjackdripper1 has quit [Quit: Leaving.]
bkxd has quit [Ping timeout: 260 seconds]
ta_ has quit [Ping timeout: 244 seconds]
bklane has joined #ruby
ta_ has joined #ruby
User458764 has joined #ruby
spiette has quit [Ping timeout: 240 seconds]
lightt has joined #ruby
dnewkerk has quit [Read error: Connection reset by peer]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
hutch34_ has joined #ruby
xall has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
dnewkerk has joined #ruby
<shevy> naughty newlines
xall has quit [Client Quit]
bklane has quit [Remote host closed the connection]
<adam12> Doin' it dirty on the \r\n
quazimodo has quit [Ping timeout: 276 seconds]
hutch34_ has quit [Ping timeout: 258 seconds]
hGlobalAll0c has joined #ruby
jmignault has joined #ruby
<shevy> lol
<shevy> even a sneaky \r
enterprisey has joined #ruby
northfurr has joined #ruby
globalall0c_ has quit [Ping timeout: 246 seconds]
SilverKey has joined #ruby
karmatr0n has joined #ruby
jmignault has quit [Ping timeout: 264 seconds]
rueben has joined #ruby
aeterne has quit [Read error: Connection reset by peer]
karmatr0n has quit [Ping timeout: 250 seconds]
ruby090 has joined #ruby
<ruby090> how do i execute multiple property changes against the same object, without repeating the object name over and over?
<ruby090> how do i execute multiple property changes against the same object, without repeating the object name over and over?
<ruby090> in .net i would use "with"
SilverKey has quit [Quit: Halted.]
<Radar> ruby090: example please
<shevy> ruby090 I am not sure what you mean - do you mean method chaining? if so you can do so in ruby object.property_changing_methoda(args1).property_changing_methodb(args2) provided that these method exist and do what they should do on the target object
<Radar> in ruby code.
memorasus has quit [Ping timeout: 250 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 260 seconds]
<ruby090> like, obj.prop1=1, obj.prop2=2, obj.prop3=3....i dont wanna repeat obj over and over
ta_ has joined #ruby
tmtwd has joined #ruby
valeri_ufo has quit [Quit: ...]
arooni has joined #ruby
roamingdog has quit [Remote host closed the connection]
<shevy> yes use non = method calls
pawnbox has joined #ruby
DTZUBDUB has joined #ruby
<ruby090> does what im describing make sense?
<ruby090> in .net i could use a with block
<ruby090> with obj <new line> .prop1=1, .prop2=2, etc
valeri_ufo has joined #ruby
JakFrist has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has quit [Ping timeout: 264 seconds]
xall has joined #ruby
DTZUBDUB has quit [Ping timeout: 240 seconds]
araujo has quit [Ping timeout: 260 seconds]
RegulationD has joined #ruby
quazimodo has joined #ruby
northfurr has quit [Quit: northfurr]
aryaching has joined #ruby
globalall0c_ has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
araujo has joined #ruby
hGlobalAll0c has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
braincrash has quit [Quit: bye bye]
northfurr has joined #ruby
<shevy> ruby090 are you interactive
allcentury has quit [Ping timeout: 260 seconds]
MrBusiness has joined #ruby
<enterprisey> I'm trying to track down a Mutex that's preventing me from marshalling a class
dcunit3d has quit [Ping timeout: 276 seconds]
<enterprisey> Can `HTTPClient`s be marshalled, in general?
<enterprisey> okay, never mind
bkxd has joined #ruby
<enterprisey> I used irb
roamingdog has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
ruby090 has quit [Ping timeout: 250 seconds]
DTZUBDUB has joined #ruby
arescorpio has joined #ruby
centrx has quit [Quit: centrx]
bkxd has quit [Ping timeout: 272 seconds]
ta_ has quit [Ping timeout: 264 seconds]
ta_ has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
braincrash has joined #ruby
CloCkWeRX has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
smathy is now known as smathy_afk
speakingcode has quit [Ping timeout: 244 seconds]
sauvin has quit [Read error: Connection reset by peer]
roamingdog has quit [Remote host closed the connection]
k3rn31 has joined #ruby
jackjackdripper has joined #ruby
dcunit3d has joined #ruby
gix has quit [Ping timeout: 250 seconds]
sauvin has joined #ruby
gix has joined #ruby
jmignault has joined #ruby
ElFerna has joined #ruby
rueben has quit [Ping timeout: 260 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
MrBusiness2 has joined #ruby
northfurr has quit [Quit: northfurr]
karmatr0n has joined #ruby
crdpink2 has quit [Ping timeout: 250 seconds]
roamingdog has joined #ruby
jmignault has quit [Ping timeout: 240 seconds]
MrBusiness has quit [Ping timeout: 260 seconds]
roamingdog has quit [Remote host closed the connection]
crdpink has joined #ruby
rbennacer has joined #ruby
terminal_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crdpink2 has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
jaguarmagenta has joined #ruby
MrBusiness3 has joined #ruby
quakephil has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
pawnbox has joined #ruby
crdpink has quit [Ping timeout: 244 seconds]
MrBusiness2 has quit [Ping timeout: 260 seconds]
roamingdog has joined #ruby
ta__ has joined #ruby
jaguarmagenta has quit [Ping timeout: 252 seconds]
User458764 has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
lightt has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 276 seconds]
ta_ has quit [Ping timeout: 276 seconds]
dcunit3d has quit [Ping timeout: 240 seconds]
elomatreb has joined #ruby
roamingdog has quit [Remote host closed the connection]
MrBusiness3 has quit [Ping timeout: 272 seconds]
roamingdog has joined #ruby
jaguarmagenta has joined #ruby
RegulationD has joined #ruby
maloik has quit [Remote host closed the connection]
sdothum has joined #ruby
maloik has joined #ruby
SilverKey has joined #ruby
whathappens has quit [Remote host closed the connection]
Silthias1 has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 260 seconds]
solocshaw has quit [Ping timeout: 250 seconds]
timanema has joined #ruby
roamingdog has quit [Remote host closed the connection]
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
roamingdog has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rbennacer has quit [Remote host closed the connection]
Hyuk has joined #ruby
timanema has quit [Ping timeout: 240 seconds]
Omni_ has quit [Ping timeout: 258 seconds]
rbennacer has joined #ruby
<enterprisey> Is there an easy way to require a gem installed with --user-install?
k3rn31 has joined #ruby
<elomatreb> enterprisey: The rubygems docs mention this: http://guides.rubygems.org/faqs/#user-install
voodoofish430 has quit [Quit: Leaving.]
voodoofish430 has joined #ruby
<enterprisey> elomatreb: that'll work for requiring, too?
<elomatreb> I never had any problems with user-installed gems, so I don't really know. I was just googling
speakingcode has joined #ruby
Omni_ has joined #ruby
<elomatreb> If you're having problems with gem availability I'd recommend looking into bundler (http://bundler.io/)
<shevy> enterprisey it should work as in any other require-statements just fine
Axy has quit [Read error: Connection reset by peer]
<enterprisey> hmm
neo__ has quit [Remote host closed the connection]
<enterprisey> I keep getting LoadErrors everywhere
<shevy> I mean that is the whole point of --user-install in the first place, it is the single thing it should do well
neo__ has joined #ruby
<enterprisey> my situation is that I've installed two gems with --user-install - one depends on the other
<enterprisey> now the other refuses to require properly
<enterprisey> there must have been some configuration I missed
rbennacer has quit [Remote host closed the connection]
<elomatreb> Now I have a question: I have a Rakefile in my project. Should I add rake to my Gemfile? (and if so, as a regular or development dependency?)
sandelius has joined #ruby
neo__ has quit [Ping timeout: 250 seconds]
valkyr1e has quit [Quit: Bye.]
swills has quit [Remote host closed the connection]
swills_ has joined #ruby
ElFerna has quit [Ping timeout: 260 seconds]
roamingdog has quit [Remote host closed the connection]
ornerymoose has quit [Quit: ornerymoose]
roamingdog has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
valkyr1e has joined #ruby
Silthias has joined #ruby
aibot has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
hahuang61 has joined #ruby
mistermocha has quit [Ping timeout: 276 seconds]
zacstewart has quit [Ping timeout: 240 seconds]
MrBusiness3 has joined #ruby
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ausum_possum has joined #ruby
<ausum_possum> hello fellow rubyists
<ausum_possum> does anybody know if there's a way to get the signed bit of a number?
<ausum_possum> 1.to_s(2) => "1", so i can't grab the most significant bit which should be 0
karmatr0n has joined #ruby
solocshaw has joined #ruby
SilverKey has quit [Quit: Cheerio!]
arescorpio has quit [Quit: Leaving.]
kareeoleez has joined #ruby
aibot has joined #ruby
kareeoleez has quit [Remote host closed the connection]
roamingd_ has joined #ruby
karmatr0n has quit [Ping timeout: 250 seconds]
roamingdog has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
craigp has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
safetypin has quit [Quit: ZZZzzz…]
lightt has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
kareeoleez has quit [Remote host closed the connection]
roamingd_ has quit [Ping timeout: 244 seconds]
aryaching has joined #ruby
howdoi has joined #ruby
MrBusiness2 has joined #ruby
kareeoleez has joined #ruby
Vile` has quit [Ping timeout: 264 seconds]
globalall0c_ has quit [Ping timeout: 258 seconds]
jmignault has joined #ruby
urbanmonk has joined #ruby
pawnbox has joined #ruby
MrBusiness3 has quit [Ping timeout: 272 seconds]
whathappens has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
whathappens has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 240 seconds]
jmignault has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
terminalrecluse has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
RegulationD has joined #ruby
MrBusiness2 has quit [Ping timeout: 260 seconds]
rkazak has quit [Quit: Sleep.....ing....]
vpassapera has quit [Quit: Leaving]
cyphase has quit [Ping timeout: 250 seconds]
quazimodo has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
rkazak has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
<Arcaire> anyone done work with FFI?
RegulationD has quit [Ping timeout: 276 seconds]
roamingdog has joined #ruby
elifoster has joined #ruby
MrBusiness2 has joined #ruby
roamingd_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
cyphase has joined #ruby
roamingdog has quit [Ping timeout: 264 seconds]
eljimador has quit [Read error: Connection reset by peer]
eljimmy has quit [Quit: This computer has gone to sleep]
der-landgraf has quit [Quit: WeeChat 1.5]
harfangk has joined #ruby
lightt has quit [Quit: exit()]
mistermocha has joined #ruby
bkxd has joined #ruby
roamingd_ has quit [Remote host closed the connection]
diablerouge has joined #ruby
speakingcode has quit [Ping timeout: 276 seconds]
rkazak has quit [Quit: Sleep.....ing....]
MrBusiness2 has quit [Ping timeout: 258 seconds]
bkxd has quit [Ping timeout: 252 seconds]
coffeecupp has joined #ruby
sneakerhax has quit [Quit: Back later]
timanema has joined #ruby
sneakerhax has joined #ruby
<sandelius> Arcaire yeah but I noticed it has a ton of overhead
<Arcaire> that's fine
<Arcaire> not using it for performance
<Arcaire> i just want to know how i should approach a C library that has nested custom structs
pickandmix has joined #ruby
<sandelius> Arcaire so you dont know the types?
der-landgraf has joined #ruby
<Arcaire> no
pawnbox has quit [Ping timeout: 260 seconds]
timanema has quit [Ping timeout: 244 seconds]
<pickandmix> Hi guys, does anyone use Gentoo Linux here, and also uses Ruby 2.2.2?
hutch34_ has joined #ruby
ta__ has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
pawnbox has joined #ruby
mistermocha has joined #ruby
hutch34_ has quit [Ping timeout: 260 seconds]
tmtwd has quit [Ping timeout: 264 seconds]
roamingdog has joined #ruby
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
vuoto has joined #ruby
mistermocha has joined #ruby
roamingdog has quit [Ping timeout: 246 seconds]
misterm__ has joined #ruby
karmatr0n has joined #ruby
MrBusiness2 has joined #ruby
mistermo_ has quit [Ping timeout: 276 seconds]
misterm__ has quit [Read error: Connection reset by peer]
enterprisey has quit [Remote host closed the connection]
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
timanema has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
roamingdog has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
Hyuk has joined #ruby
karmatr0n has quit [Ping timeout: 276 seconds]
mistermocha has joined #ruby
nankyokusei has joined #ruby
jsaak has joined #ruby
Phanes has quit [Quit: ...shout as you did in rome...]
mistermo_ has joined #ruby
timanema has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
n1x-nz has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
misterm__ has joined #ruby
emilkarl has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
ngw has joined #ruby
d0lph1n98 has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
Phanes has joined #ruby
Phanes has quit [Changing host]
Phanes has joined #ruby
mistermocha has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
diablerouge has quit [Ping timeout: 250 seconds]
Sucks has joined #ruby
mistermo_ has joined #ruby
last_staff has joined #ruby
jmignault has joined #ruby
misterm__ has quit [Ping timeout: 244 seconds]
mistermo_ has quit [K-Lined]
mistermocha has quit [K-Lined]
colegatron has quit [Remote host closed the connection]
ksmutthu has joined #ruby
djbkd has quit [Remote host closed the connection]
Niham has joined #ruby
jmignault has quit [Ping timeout: 276 seconds]
LoneHerm_ has joined #ruby
craigp has joined #ruby
mistermocha has joined #ruby
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
Hobogrammer has quit [Quit: WeeChat 0.4.2]
saneax_AFK is now known as saneax
RegulationD has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
timanema has joined #ruby
amclain has quit [Quit: Leaving]
fenre has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
vuoto has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
timanema has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
whathappens has joined #ruby
MrBusiness3 has joined #ruby
MrBusiness2 has quit [Ping timeout: 260 seconds]
agit0 has quit [Quit: zzzZZZ….]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 260 seconds]
ngw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sauvin has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
emilkarl has quit [Remote host closed the connection]
MrBusiness2 has joined #ruby
MrBusiness3 has quit [Ping timeout: 258 seconds]
whathappens has quit [Quit: Leaving...]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
jeyraof has quit [Quit: Leaving]
User458764 has joined #ruby
eGGshke has joined #ruby
User458764 has quit [Client Quit]
timanema has joined #ruby
mistermocha has joined #ruby
roamingdog has quit [Remote host closed the connection]
coffeecupp has quit [Ping timeout: 250 seconds]
colegatron has joined #ruby
mistermo_ has joined #ruby
Hyuk has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
timanema has quit [Ping timeout: 244 seconds]
mistermo_ has quit [Ping timeout: 250 seconds]
agit0 has joined #ruby
cyphase has quit [Ping timeout: 260 seconds]
MrBusiness3 has joined #ruby
Niham has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 260 seconds]
SilverKey has joined #ruby
User458764 has joined #ruby
MrBusiness2 has quit [Ping timeout: 258 seconds]
cyphase has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
jeyraof has joined #ruby
n1x-nz has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
n1x-nz has joined #ruby
ur5us has joined #ruby
sauvin has joined #ruby
karmatr0n has joined #ruby
misterm__ has joined #ruby
firstdayonthejob has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
tmtwd has joined #ruby
ishe_ua has joined #ruby
coffeecupp has joined #ruby
d0nn1e has quit [Ping timeout: 244 seconds]
mistermo_ has quit [Ping timeout: 272 seconds]
dh64 has joined #ruby
bkxd has joined #ruby
conta has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
misterm__ has quit [Ping timeout: 250 seconds]
timanema has joined #ruby
sapslaj has quit [Ping timeout: 252 seconds]
sapslaj has joined #ruby
d0nn1e has joined #ruby
mistermo_ has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
MrBusiness2 has joined #ruby
misterm__ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
bkxd has quit [Ping timeout: 276 seconds]
timanema has quit [Ping timeout: 260 seconds]
mistermo_ has quit [Ping timeout: 250 seconds]
ur5us has quit [Remote host closed the connection]
n1xnz has joined #ruby
MrBusiness3 has quit [Ping timeout: 258 seconds]
n1xnz has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
n1xnz has joined #ruby
misterm__ has quit [Ping timeout: 250 seconds]
jmignault has joined #ruby
n1x-nz has quit [Ping timeout: 264 seconds]
agentmeerkat has quit [Ping timeout: 260 seconds]
blackgoat has quit [Quit: WeeChat 1.5]
LoneHerm_ has joined #ruby
fenre has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 250 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jmignault has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
mistermo_ has joined #ruby
yfeldblum has joined #ruby
RegulationD has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
biberu has joined #ruby
Hyuk has joined #ruby
Vile` has joined #ruby
SilverKey has quit [Quit: Halted.]
mistermo_ has quit [Ping timeout: 250 seconds]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
pandaant has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
duncannz has joined #ruby
andikr has joined #ruby
matp has quit [Ping timeout: 258 seconds]
Sucks has quit [Read error: Connection reset by peer]
NivenHuH has joined #ruby
User458764 has joined #ruby
zacstewart has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
ausum_possum has left #ruby [#ruby]
edwinvdgraaf has joined #ruby
shtirlic has quit [Quit: ZNC - http://znc.in]
zacstewart has quit [Ping timeout: 240 seconds]
jas02 has joined #ruby
Hounddog has joined #ruby
binaryplease1 has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
roamingdog has joined #ruby
ksmutthu has quit [Ping timeout: 276 seconds]
tmtwd has quit [Ping timeout: 240 seconds]
edwinvdgraaf has joined #ruby
binaryplease has quit [Ping timeout: 264 seconds]
xall has quit [Ping timeout: 260 seconds]
elifoster has quit [Ping timeout: 250 seconds]
aufi has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kedare has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Silthias has quit [Ping timeout: 240 seconds]
MrBusiness2 has quit [Ping timeout: 260 seconds]
binaryplease1 is now known as binaryplease
anisha has joined #ruby
pickandmix has quit [Quit: WeeChat 1.4]
karmatr0n has joined #ruby
joonty has joined #ruby
marr has joined #ruby
PaulCape_ has joined #ruby
ferr1 has joined #ruby
PaulCapestany has quit [Ping timeout: 252 seconds]
karmatr0n has quit [Ping timeout: 244 seconds]
nankyokusei has joined #ruby
harfangk has quit [Quit: harfangk]
Xeago_ has joined #ruby
Silthias has joined #ruby
multi_io has quit [Ping timeout: 260 seconds]
norc has joined #ruby
LoneHerm_ has quit [Ping timeout: 250 seconds]
User458764 has joined #ruby
multi_io has joined #ruby
troulouliou_div2 has joined #ruby
ngw has joined #ruby
nankyokusei has quit [Ping timeout: 264 seconds]
ag4ve has joined #ruby
ponga has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
JesseH has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
coffeecupp has quit [Quit: Lost terminal]
duderonomy has joined #ruby
jmignault has joined #ruby
bmurt has joined #ruby
the_drow has joined #ruby
madgen has joined #ruby
jmignault has quit [Ping timeout: 260 seconds]
harfangk has joined #ruby
antgel has joined #ruby
roamingdog has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
RegulationD has joined #ruby
sdothum has joined #ruby
nocco has joined #ruby
djbkd has quit [Remote host closed the connection]
fenre has joined #ruby
haxrbyte has quit [Ping timeout: 260 seconds]
chipotle has joined #ruby
djbkd has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24 has quit [Ping timeout: 250 seconds]
RegulationD has quit [Ping timeout: 260 seconds]
matp has joined #ruby
Silthias1 has joined #ruby
Silthias1 has quit [Client Quit]
djbkd has quit [Ping timeout: 276 seconds]
troulouliou_div2 has quit [Ping timeout: 276 seconds]
Silthias1 has joined #ruby
minimalism has quit [Quit: minimalism]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has joined #ruby
sandelius has joined #ruby
Silthias has quit [Ping timeout: 276 seconds]
Snowy has joined #ruby
minimalism has joined #ruby
Sucks has joined #ruby
pawnbox has joined #ruby
Sucks has quit [Remote host closed the connection]
Sucks has joined #ruby
n1xnz has quit [Ping timeout: 272 seconds]
Sucks has quit [Max SendQ exceeded]
Sucks has joined #ruby
Sucks has quit [Max SendQ exceeded]
Xeago_ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
Sucks has joined #ruby
Sucks has quit [Max SendQ exceeded]
Sucks has joined #ruby
Sucks has quit [Max SendQ exceeded]
mistermo_ has joined #ruby
zacstewart has joined #ruby
Sucks has joined #ruby
Sucks has quit [Max SendQ exceeded]
voodoofish430 has quit [Ping timeout: 258 seconds]
voodoofish430 has joined #ruby
<nofxx> Is there some method for finding if any of one array matches another? Using: (ary & ary).empty?
mistermocha has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<jhass> you found it
mistermo_ has quit [Ping timeout: 250 seconds]
zacstewart has quit [Ping timeout: 240 seconds]
Ishido has joined #ruby
troulouliou_div2 has joined #ruby
n1xnz has joined #ruby
mistermocha has joined #ruby
mistermo_ has joined #ruby
madgen has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
platzhirsch has joined #ruby
Xeago_ has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
nocco has quit [Remote host closed the connection]
Xeago_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
mistermocha has joined #ruby
TomyWork has joined #ruby
mistermo_ has joined #ruby
misterm__ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
voodoofish430 has quit [Ping timeout: 252 seconds]
voodoofish430 has joined #ruby
karmatr0n has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
giz|work has joined #ruby
mistermocha has joined #ruby
misterm__ has quit [Ping timeout: 250 seconds]
bkxd has joined #ruby
LoneHerm_ has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
karmatr0n has quit [Ping timeout: 260 seconds]
madgen has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
blaxter has joined #ruby
mistermocha has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
Es0teric has joined #ruby
Xeago_ has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
nocco has joined #ruby
ocbtec has joined #ruby
nhhc has joined #ruby
al2o3-cr has quit [Ping timeout: 244 seconds]
etehtsea has joined #ruby
mistermo_ has joined #ruby
dionysus69 has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
harfangk has quit [Quit: harfangk]
mistermocha has joined #ruby
pawnbox has quit [Remote host closed the connection]
jmignault has joined #ruby
pawnbox has joined #ruby
skade has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
LoneHerm_ has quit [Ping timeout: 246 seconds]
moeabdol has quit [Ping timeout: 250 seconds]
KillerFox has quit [Ping timeout: 244 seconds]
KillerFox has joined #ruby
jmignault has quit [Ping timeout: 240 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
roamingdog has joined #ruby
fannymay has joined #ruby
mistermocha has joined #ruby
Xeago_ has quit [Ping timeout: 260 seconds]
tulak has joined #ruby
RegulationD has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
hutch34_ has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
harfangk has joined #ruby
mistermo_ has joined #ruby
harfangk has quit [Client Quit]
mistermocha has quit [Ping timeout: 250 seconds]
roamingdog has quit [Ping timeout: 260 seconds]
agit0 has quit [Quit: zzzZZZ….]
mikecmpbll has joined #ruby
timanema has joined #ruby
mistermocha has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
hutch34_ has quit [Ping timeout: 258 seconds]
infra-red has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
djbkd has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 258 seconds]
dionysus69 has joined #ruby
timanema has quit [Ping timeout: 272 seconds]
Xeago_ has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
mistermocha has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
Moosashi has joined #ruby
zacstewart has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
mistermocha has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
cyphase has quit [Ping timeout: 272 seconds]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
Silthias1 has quit [Ping timeout: 244 seconds]
tildes has quit [Remote host closed the connection]
mistermo_ has joined #ruby
tildes has joined #ruby
nocco has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 250 seconds]
zacstewart has quit [Ping timeout: 264 seconds]
cyphase has joined #ruby
mistermocha has joined #ruby
etehtsea has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
timanema has joined #ruby
koooge has quit [Quit: Leaving...]
Silthias has joined #ruby
misterm__ has joined #ruby
etehtsea has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
minimalism has quit [Quit: minimalism]
mistermocha has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
timanema has quit [Ping timeout: 272 seconds]
misterm__ has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
infra-red has quit []
tulak has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 250 seconds]
matp has quit [Remote host closed the connection]
nocco has joined #ruby
fenre has quit [Remote host closed the connection]
mistermocha has joined #ruby
matp has joined #ruby
karmatr0n has joined #ruby
ksmutthu has joined #ruby
mistermo_ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
nankyokusei has joined #ruby
misterm__ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
<nofxx> jhass, heheh... you never know .... so many methods on enumerable...
karmatr0n has quit [Ping timeout: 260 seconds]
DTZUBDUB has quit [Ping timeout: 276 seconds]
<nofxx> actually I think I'm confused with #any? .... it's activesupport iirc.
<jhass> nofxx: it's not
<nofxx> I always mentally link it to something like array.any? {} , where it's like #empty? negated
mistermo_ has quit [Ping timeout: 250 seconds]
etehtsea has quit [Ping timeout: 244 seconds]
<nofxx> jhass, it's ruby 2+ ?
<norc> &ri Enumerable#any?
<norc> nofxx: ^-
Xeago_ has joined #ruby
NivenHuH has quit [Read error: No route to host]
<nofxx> won't confuse anymore hehe...
<jhass> so quite no
andromedian has joined #ruby
misterm__ has quit [Ping timeout: 250 seconds]
yeticry has quit [Ping timeout: 250 seconds]
<nofxx> bah, but not only my fault... pretty common to see !foo.empty?
nankyokusei has quit [Ping timeout: 244 seconds]
<nofxx> no?
<nofxx> hence why I tought it was activesupport...
<norc> &ri Array#empty?
mistermocha has joined #ruby
<norc> nofxx: That also is not an activesupport method.
<norc> nofxx: Contrary to popular belief, Ruby is not based on Rails.
yeticry has joined #ruby
mistermo_ has joined #ruby
edwinvdg_ has joined #ruby
LoneHermit has joined #ruby
dnewkerk has quit [Read error: Connection reset by peer]
misterm__ has joined #ruby
jmignault has joined #ruby
tulak has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
nocco has quit [Remote host closed the connection]
User458764 has joined #ruby
edwinvdgraaf has quit [Ping timeout: 246 seconds]
misterm__ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
etehtsea has joined #ruby
LoneHermit has quit [Ping timeout: 260 seconds]
weckl has joined #ruby
Moosashi has quit [Quit: Moosashi]
mistermo_ has joined #ruby
jmignault has quit [Ping timeout: 272 seconds]
leitz has joined #ruby
misterm__ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
Xeago_ has quit [Remote host closed the connection]
n1xnz has quit [Remote host closed the connection]
RegulationD has joined #ruby
agit0 has joined #ruby
bnjf has quit [Ping timeout: 272 seconds]
mistermocha has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
<andromedian> do you know how I can display the value of the additional_sizes? https://gist.github.com/anonymous/8c1cf2dfc9fe72be23cbe03ad9793bc8 I'm getting right now #<Property::AdditionalSize:0x007f88148fc2c8> if I true to use an each loop on object.additional_sizes ?
<andromedian> Thanks
bnjf has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
<norc> andromedian: Look at your libraries manual.
misterm__ has quit [Ping timeout: 252 seconds]
<andromedian> libraries manual?
<norc> andromedian: Ruby has no notion of Property and AdditionalSize
<andromedian> those are values that are coming from rails model
<norc> ?rails andromedian
<ruby[bot]> andromedian: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<andromedian> Thanks for pointing me in the right direction norc
<norc> You are welcome.
mistermocha has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
Xeago_ has joined #ruby
edwinvdg_ has quit [Ping timeout: 276 seconds]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
codecodecode123 has joined #ruby
codecodecode123 has quit [Client Quit]
Xeago_ has quit [Remote host closed the connection]
johnmilton has quit [Remote host closed the connection]
mistermo_ has quit [Ping timeout: 250 seconds]
bigkevmcd has joined #ruby
codecodecode123 has joined #ruby
<codecodecode123> hi
<codecodecode123> anyone online?
<jhass> hi
<jhass> you seem to be!
<codecodecode123> oh
mistermo_ has joined #ruby
bigkevmcd has quit [Client Quit]
<codecodecode123> so, here is my problem. I am trying to make a tcp rock paper scissors server that you connect with telnet
mistermocha has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
<codecodecode123> but, after I get the input, it doesn't evaluate a simple if statement
<codecodecode123> http://pastie.org/private/jk7megcdpi1pbi8zzpyuw here is the code
c355e3b has joined #ruby
<codecodecode123> can you take a look at it?
pawnbox has joined #ruby
* norc hands codecodecode123 a class and some methods to play with
<jhass> codecodecode123: what makes you say that?
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<jhass> detail your assumptions and how you verified them
<codecodecode123> well, it SEEMS to not evaluate it
<norc> codecodecode123: what does it SEEM to do instead?
mistermo_ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
<codecodecode123> it SEEMS to get stuck after getting the input
<jhass> where exactly do you assume it gets stuck on?
<jhass> which line?
<codecodecode123> the loop in 10-13
<jhass> not a range
<jhass> which line?
Mon_Ouie has joined #ruby
<codecodecode123> wait
<codecodecode123> let me check
edwinvdgraaf has joined #ruby
bkxd has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
sdothum has joined #ruby
ciampix has joined #ruby
<codecodecode123> ok i got it
<codecodecode123> 15
<codecodecode123> it doesnt pass there
<codecodecode123> i wrote 'puts "yay evaluated if"' on every branch of the if, and after
<codecodecode123> none of them wrote that
mistermocha has joined #ruby
<jhass> where does it go instead?
<codecodecode123> it just stops
<jhass> where?
<codecodecode123> start of line 15
<jhass> on which line does it "just stop"?
<codecodecode123> no errors
<codecodecode123> line 15
<jhass> so if you add a puts "I'M HERE" between line 14 and 15, you see it printed?
<codecodecode123> yep
<jhass> but you don't see the "yay" from line 24?
mistermocha has quit [Read error: Connection reset by peer]
<codecodecode123> nope
xKillerFo has joined #ruby
mistermocha has joined #ruby
mistermo_ has quit [Ping timeout: 244 seconds]
bkxd has quit [Ping timeout: 264 seconds]
nocco has joined #ruby
roKin14 has joined #ruby
<jhass> and if you put a puts "a" between your original lines 15 and 16, a puts "b" between 17 and 18 and a puts "c" between 20 and 21 you see neither?
roKin14 has quit [Client Quit]
zacstewart has joined #ruby
<codecodecode123> neither
KillerFox has quit [Ping timeout: 244 seconds]
<jhass> I don't believe you
<codecodecode123> okay
mistermo_ has joined #ruby
<jhass> mh, actually one more thing we can do first
<codecodecode123> i'll get more pastes
<jhass> add Thread.abort_on_exception = true as the first line of your program
jaiks has joined #ruby
ag4ve has quit [Ping timeout: 240 seconds]
edwinvdgraaf has quit [Ping timeout: 260 seconds]
<codecodecode123> okay
Hyuk has joined #ruby
misterm__ has joined #ruby
pawnbox has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 250 seconds]
duncannz has quit [Remote host closed the connection]
<codecodecode123> this has all of the information you might need
<codecodecode123> jhass
craigp has quit [Ping timeout: 260 seconds]
pwnd_nsfw has joined #ruby
zacstewart has quit [Ping timeout: 252 seconds]
mistermo_ has quit [Ping timeout: 250 seconds]
c0mrad3 has joined #ruby
<jhass> comprpssrvr.rb:19:in `block (3 levels) in <main>': undefined local variable or method `a' for main:Object (NameError)
KillerFox has joined #ruby
<jhass> that looks like a magnificent error message to me
DoubleMalt has quit [Ping timeout: 246 seconds]
d0lph1n98 has quit [Ping timeout: 258 seconds]
k3rn31 has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
<jhass> codecodecode123: https://carc.in/#/r/12bf here's a smaller version of the issue
xKillerFo has quit [Ping timeout: 244 seconds]
misterm__ has quit [Ping timeout: 250 seconds]
Abhijit has joined #ruby
<jhass> can you guess what it is? It has to do with "scoping" rules in case you heard that term before
<codecodecode123> oh right
<codecodecode123> i thought that was only in methods
<Abhijit> Compiling CoffeeScript with 'coffee' binary home/ubuntu/canvas-lms/gems/canvas_i18nliner/node_modules/jsdom/node_modules/contextify/node_modules/bindings/bindings.js:83 throw e Error: Module did not self-register. I am getting this error while trying to complie assets for Canvas LMS (rails app)
<codecodecode123> thanks for your help
<jhass> you're welcome
<Abhijit> it has something to do with coffeescript. any idea how can I fix it?
<jhass> ?rails Abhijit
<ruby[bot]> Abhijit: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
rkoller has joined #ruby
mistermo_ has joined #ruby
edwinvdgraaf has joined #ruby
<Abhijit> i am identified.
<Abhijit> this is not a rail questions. the app is rails. but error is in gem. gem in ruby.
<jhass> well the error message is javascript actually
Es0teric has quit [Quit: Computer has gone to sleep.]
jmignault has joined #ruby
GodFather has joined #ruby
pawnbox has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
jaiks has quit [Quit: Leaving]
ciampix has quit [Read error: Connection reset by peer]
mistermo_ has quit [Ping timeout: 250 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
mistermo_ has joined #ruby
User458764 has quit [Max SendQ exceeded]
flopsec has quit [Ping timeout: 244 seconds]
User458764 has joined #ruby
ciampix has joined #ruby
Satyajit has quit [Quit: https://fnordserver.eu]
misterm__ has joined #ruby
sauvin has quit [Remote host closed the connection]
Sashimi has quit [Quit: Textual IRC Client: www.textualapp.com]
mistermocha has quit [Ping timeout: 250 seconds]
fenre has joined #ruby
mistermocha has joined #ruby
quakephil has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
DoubleMalt has joined #ruby
Guest97177 has quit [Quit: https://fnordserver.eu]
mistermo_ has joined #ruby
misterm__ has quit [Ping timeout: 250 seconds]
misterm__ has joined #ruby
karmatr0n has joined #ruby
craigp has joined #ruby
mistermocha has quit [Ping timeout: 258 seconds]
hk238 has joined #ruby
DTZUBDUB has joined #ruby
misterm__ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
SilverKey has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mistermo_ has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
misterm__ has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
mistermo_ has joined #ruby
flopsec has joined #ruby
Satyajit has joined #ruby
misterm__ has quit [Ping timeout: 252 seconds]
mistermo_ has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
User458764 has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
LoneHermit has joined #ruby
chip_ has joined #ruby
joonty has joined #ruby
moeabdol has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
Abhijit has quit [Quit: Bye.]
DTZUBDUB has quit [Ping timeout: 258 seconds]
johnmilton has joined #ruby
mistermocha has joined #ruby
pawnbox has quit [Remote host closed the connection]
<shevy> a leaver!
pawnbox has joined #ruby
<marahin> http://hastebin.com/nutusimaci.vbs - how should this be indented, in order to stop Rubocop throwing that err: Use 2 spaces for indentation in an array, relative to the start of the line where the left square bracket is.
mistermo_ has joined #ruby
LoneHermit has quit [Ping timeout: 258 seconds]
roamingdog has joined #ruby
misterm__ has joined #ruby
NightMonkey has quit [Ping timeout: 264 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
misterm__ has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
mistermocha has joined #ruby
DTZUBDUB has joined #ruby
<jhass> korben: with one more space on each item?
<jhass> eh, marahin ^ sorry
mistermo_ has quit [Ping timeout: 244 seconds]
ferr1 has quit [Quit: WeeChat 1.5]
freerobby has joined #ruby
nocco has quit [Remote host closed the connection]
<marahin> jhass, I actually got it working: http://hastebin.com/jeluperebu.vbs
giz|work has quit [Ping timeout: 260 seconds]
mistermo_ has joined #ruby
<norc> marahin: Don't fix code to please rubocop.
<norc> marahin: Configure rubocop to adhere whatever coding guidelines YOU want.
rodfersou has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
<shevy> worship rubocop!
<norc> (About the only useful default setting rubocop has is to complain about double quoted strings without interpolation)
<jhass> norc: that's one of the ones I disagree most strongly with
RegulationD has quit [Ping timeout: 240 seconds]
<norc> Heh.
misterm__ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
<norc> jhass: I think that is a brilliant example of why rubocop needs to be configured. ;-)
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> ' vs " performance is only at parse time and even there the benchmarks that show it are debatable
NightMonkey has joined #ruby
Xeago_ has joined #ruby
<jhass> so preferring ' just makes you more work in case you later do want to add an interpolation
mistermocha has joined #ruby
Gasher has joined #ruby
dstarh has joined #ruby
<norc> jhass: In my case it's just style.
mistermo_ has quit [Ping timeout: 250 seconds]
<norc> If performance is relevant enough to justify subtle coding rules, then Ruby is by far a bad language pick.
firstdayonthejob has quit [Ping timeout: 244 seconds]
<jhass> I had it too. I thought it's style. turns out it's habit
<norc> (Outside of writing stdlib/core functionality)
<norc> Mmm.
mistermo_ has joined #ruby
<jhass> crystal forced me to use " for strings (' is char), since then I do so in Ruby and it feels better (for the mentioned reason largely, but also more uniform look)
misterm__ has quit [Ping timeout: 250 seconds]
drptbl has joined #ruby
allcentury has joined #ruby
<norc> Well that feels like a C influence.
<norc> Which is sensible.
mistermo_ has quit [Read error: Connection reset by peer]
<jhass> it's simply because we have a Char type and wanted a literal for it
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
<jhass> (unlike C char is a unsigned 32 bit integer)
Xeago_ has quit [Ping timeout: 260 seconds]
<norc> Is that to allow for up to utf32 code points?
<jhass> yes
<norc> Neat
mistermocha has joined #ruby
<jhass> String is also always UTF-8 (well unless unsafely constructed from external calls)
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nocco has joined #ruby
misterm__ has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
misterm__ has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
sepp2k has joined #ruby
camilasan has quit [Ping timeout: 240 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
camilasan has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
araujo_ has joined #ruby
mistermocha has joined #ruby
SilverKey has quit [Quit: Halted.]
gnufied has joined #ruby
araujo_ has quit [Max SendQ exceeded]
mistermocha has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 250 seconds]
araujo_ has joined #ruby
mtkd has quit [Ping timeout: 276 seconds]
araujo has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
mtkd has joined #ruby
zacstewart has quit [Ping timeout: 276 seconds]
hutch34_ has joined #ruby
mistermo_ has joined #ruby
timanema has joined #ruby
<norc> jhass: Perhaps Crystal will be my first language to be supported in a year from now when I have userspace support. :o)
<jhass> haha
<jhass> note it doesn't aim to be a systems language
psmmr has joined #ruby
<jhass> being garbage collected and all that
mistermocha has quit [Ping timeout: 250 seconds]
<norc> Great idea jhass! The biggest cost in kernel memory management is freeing pages.
<norc> I should simply use a garbage collector.
<jhass> :P
<norc> See, my operating system will be running on valgrind.
nachoman has joined #ruby
<norc> Whenever valgrind determines a program probably doesn't use some memory anymore, it gets taken from it.
Coldblackice has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
<norc> Gone are the days of buggy software stealing your memory.
<jhass> haha
mistermo_ has quit [Ping timeout: 250 seconds]
<jhass> libvalmalloc
timanema has quit [Ping timeout: 258 seconds]
<norc> Heh.
<ljarvis> libmaloik
mistermocha has quit [Read error: Connection reset by peer]
<norc> I would call it libnfaalloc though.
<norc> As in never free again alloc.
mistermocha has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
nofxx has quit [Ping timeout: 276 seconds]
nachoman has quit [Ping timeout: 246 seconds]
psmmr has quit [Remote host closed the connection]
<Arcaire> i think i made a really big mistake delving into ffi
<jhass> libmemoryischeap
<Arcaire> huh?
<Arcaire> o
<jhass> not related to you :P
FernandoBasso has joined #ruby
nando293921 has joined #ruby
hanmac has quit [Ping timeout: 272 seconds]
mistermocha has joined #ruby
madgen has quit [Ping timeout: 244 seconds]
zel has joined #ruby
aupadhye has joined #ruby
zel is now known as Guest85774
giz|work has joined #ruby
mistermo_ has joined #ruby
ngw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
misterm__ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
<shevy> libmonkeynuts
ledestin_ is now known as ledestin
ngw has joined #ruby
<shevy> malloc sounds kinda negative... like mal-align ... mal-thingy
<ljarvis> libmalware
<ljarvis> also known as Skype
karmatr0n has joined #ruby
Xeago_ has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
nando293921 has quit [Read error: Connection reset by peer]
pwnd_nsfw` has joined #ruby
nando294021 has joined #ruby
nando294021 has quit [Client Quit]
mistermocha has joined #ruby
nando293921 has joined #ruby
misterm__ has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
urbanmonk has quit [Ping timeout: 240 seconds]
karmatr0n has quit [Ping timeout: 260 seconds]
pwnd_nsfw has quit [Ping timeout: 250 seconds]
araujo__ has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
blackgoat has joined #ruby
blackgoat has quit [Client Quit]
rodferso1 has joined #ruby
zacstewart has joined #ruby
nando293921 has quit [Client Quit]
drptbl has quit [Quit: See you later!]
nando293921 has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
hanmac has joined #ruby
eGGshke has quit [Ping timeout: 244 seconds]
araujo_ has quit [Ping timeout: 276 seconds]
mistermo_ has quit [Ping timeout: 246 seconds]
pwnd_nsfw has joined #ruby
rodfersou has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
rodferso1 is now known as rodfersou
eGGshke has joined #ruby
d0lph1n98 has joined #ruby
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 258 seconds]
leitz has quit [Quit: Nappy time]
Hyuk has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
LoneHerm_ has joined #ruby
drptbl has joined #ruby
drptbl has quit [Remote host closed the connection]
LoneHerm_ has quit [Ping timeout: 240 seconds]
araujo__ has quit [Quit: Leaving]
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mon_Ouie has quit [Ping timeout: 258 seconds]
nocco has quit []
<binaryplease> I found https://github.com/guilhermesad/rspotify Is it possible to write a client that plays back music with that? I cant find that in the documentation
RegulationD has joined #ruby
ElFerna has joined #ruby
<norc> binaryplease: Did you bother to even look at the first line of the README?
Hyuk has joined #ruby
<binaryplease> norc: "Our Web API lets your applications fetch data from the Spotify music catalog and manage user’s playlists and saved music."
<binaryplease> fetch data meaning only metadata or audio data
sebstrax has quit [Quit: Connection closed for inactivity]
davedev24 has joined #ruby
<norc> binaryplease: Fair enough. Well Im fairly certain that it won't provide you with access to music.
RegulationD has quit [Ping timeout: 240 seconds]
<norc> binaryplease: there you can see the full extend of what the api offers.
<shevy> that looks more like retrieval only rather than playing music
gnufied has quit [Quit: Leaving]
gnufied__ has joined #ruby
synthroid has joined #ruby
chip_ has quit [Ping timeout: 252 seconds]
<norc> binaryplease: note if you click on for example "Get a track" you will get a full description of what that endpoint offers.
sergio_101 has joined #ruby
<binaryplease> norc: shevy Thanks, i think its not possible that way then. I tought "retrieving data from cathalog" meant also getrting actual audio data. Seems like you only get metadata
mikecmpbll has quit []
<norc> binaryplease: Apologies for my harsh remark.
ornerymoose has joined #ruby
<binaryplease> norc: no problem :-)
edwinvdgraaf has quit [Ping timeout: 264 seconds]
conta has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
conta has joined #ruby
ornerymoose has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
ornerymoose has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
madgen has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
Mon_Ouie has joined #ruby
rodferso1 has joined #ruby
dstarh has joined #ruby
<shevy> binaryplease you want to do some webbrowser ruby play thingy?
mdw has joined #ruby
centrx has joined #ruby
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
arlek_ has joined #ruby
Bish has joined #ruby
<Bish> hi folkies, how would u generate the last 12 month in format %Y-%m
rbennacer has joined #ruby
swills_ has quit [Ping timeout: 258 seconds]
GodFather has quit [Ping timeout: 276 seconds]
vali has joined #ruby
<vali> hi guys
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
weaksauce has quit [Ping timeout: 260 seconds]
<vali> anyone have an idea on how to turn this timestamp (2016-06-21 13:07:35.344432+02) into ISO8601 ?
flashpoint9 has joined #ruby
<ljarvis> >> require "time"; Time.parse("2016-06-21 13:07:35.344432+02").iso8601
<ruby[bot]> ljarvis: # => "2016-06-21T13:07:35+02:00" (https://eval.in/594390)
<vali> that looks perfect
etehtsea has quit [Ping timeout: 252 seconds]
<vali> love you
Hyuk has joined #ruby
drale2k is now known as _d2k2
Madplatypus has quit [Quit: Connection closed for inactivity]
howdoi has quit [Quit: Connection closed for inactivity]
_d2k2 is now known as demend
demend is now known as demend00
demend00 is now known as demend001
demend001 is now known as demend
Vile` has quit [Ping timeout: 244 seconds]
<Bish> lol
<Bish> was this the most googlable question of #ruby ever?
piotrj has joined #ruby
<ljarvis> Bish: loop 12 times and just to a Date.new(year, month).strftime("%Y-%m") after you've amended the year/month with the offset?
madgen has quit [Ping timeout: 260 seconds]
piotrj has quit [Remote host closed the connection]
<ljarvis> shouldn't be difficult with 12.times.map { |n| } n and Date.today.month
pawnbox has quit [Remote host closed the connection]
<Bish> well, yeah sure, but there will be january, where i need to get into negative :(
karmatr0n has joined #ruby
pawnbox has joined #ruby
<ljarvis> right, so you add 12 + 1 for the offset and you have the right month?
madgen has joined #ruby
piotrj has joined #ruby
<ljarvis> e.g. -2 + 12 + 1 == 11 / november
mbologna2 has joined #ruby
<Bish> why aren't there functions do do that *whines*
mbologna2 has quit [Client Quit]
mbologna2 has joined #ruby
arajakul has joined #ruby
<ljarvis> I very much doubt it's a common thing. You could also load active support and just do a date.change(...) which may even handle the offsets for you
mbologna2 has quit [Client Quit]
fmcgeough has joined #ruby
<Bish> how is making a statistic over month not a thing :/
<Bish> and yeah, rails :/
karmatr0n has quit [Ping timeout: 250 seconds]
rbennacer has quit [Remote host closed the connection]
the_drow has quit [Quit: This computer has gone to sleep]
mistermocha has joined #ruby
chip_ has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
mistermocha has quit [Read error: Connection reset by peer]
Charles_CV has joined #ruby
the_drow has joined #ruby
mistermocha has joined #ruby
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
mbolo__ has joined #ruby
<shevy> well if something is useful, it is useful!
codecop has joined #ruby
mistermo_ has joined #ruby
aryaching has quit [Remote host closed the connection]
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
mistermocha has joined #ruby
pawnbox has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
LoneHermit has joined #ruby
malconis has joined #ruby
andromedian has quit [Quit: This computer has gone to sleep]
Hyuk has joined #ruby
mistermo_ has joined #ruby
cdg has joined #ruby
misterm__ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
k3rn31 has joined #ruby
LoneHermit has quit [Ping timeout: 276 seconds]
misterm__ has quit [Read error: Connection reset by peer]
Xeago_ has quit [Remote host closed the connection]
mistermocha has joined #ruby
hutch34_ has quit [Ping timeout: 260 seconds]
mistermo_ has quit [Ping timeout: 250 seconds]
Beverage has joined #ruby
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby
vondruch has quit [Ping timeout: 272 seconds]
edwinvdgraaf has joined #ruby
conta has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
Wsewolod has quit [Ping timeout: 272 seconds]
conta has joined #ruby
roamingdog has quit [Ping timeout: 260 seconds]
mistermo_ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
RegulationD has quit [Ping timeout: 258 seconds]
Hyuk has joined #ruby
<ljarvis> it's not rails
<ljarvis> and statistic over a month doesn't really describe what you're doing
<Bish> >> (1..12).map { |n| calc = n-Time.now.month;if calc <= 0;12+calc;else calc;end; }
<ruby[bot]> Bish: # => [7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6] (https://eval.in/594426)
mdw has quit [Quit: Sleeping Zzzzz]
mistermo_ has joined #ruby
ChiefAlexander has joined #ruby
rbennacer has joined #ruby
<Bish> ljarvis: im having a sql-select that gives me rows as in "{month:"2015-5",count:10023112}"
<Bish> problem is: sql doesn't output the months with count:0 because joins.
futilegames has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
ElFerna has quit [Ping timeout: 276 seconds]
<Bish> so i started doing left joins, with weird generated sqls, resulting in uncacheable queries
<Bish> so i went to doing this, which is as ugly
<Bish> tl;dr im cursed
<ljarvis> ah right this is with SQL. Yeah i'd definitely be trying to keep it in SQL if possible
timanema has joined #ruby
<ljarvis> sounds like that's trouble, though
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
<Bish> look at this thing of beauty
<ljarvis> :|
skweek has quit [Ping timeout: 276 seconds]
<Bish> and because of "now()" it cannot be cached
<ljarvis> im a bit confused to be honest, but i haven't really been on the ball at all today so it's probably just me
rueben has joined #ruby
<ljarvis> doesn't the count relate to the total count per month?
<Bish> yes it does
mistermo_ has quit [Read error: Connection reset by peer]
<ljarvis> so you're going backwards and counting for a specific month, right?
mistermocha has joined #ruby
<ljarvis> so can't you just group by month desc and limit 12?
<Bish> SELECT date_format(`sent_at`, '%Y-%m') AS `month`, count(`job_mails`.`id`) AS `count` FROM `job_mails` WHERE (`sent_at` IS NOT NULL) GROUP BY `month`)
<Bish> ljarvis: yeah i could do that if count was not zero for one month
<Bish> because if i haven't send stuff in november, it will skip the month
rbennacer has quit [Ping timeout: 276 seconds]
<ljarvis> what about a nested select?
mistermo_ has joined #ruby
<Bish> SELECT * FROM (select date_format(now() - INTERVAL 12 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 11 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 10 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 9 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 8 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 7 MONTH,'%Y-%m') as
mistermocha has quit [Read error: Connection reset by peer]
<Bish> month UNION select date_format(now() - INTERVAL 6 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 5 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 4 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 3 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 2 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 1 MONTH,'%Y-%m') as month)
<Bish> AS `t1` NATURAL LEFT JOIN (SELECT * FROM (SELECT date_format(`sent_at`, '%Y-%m') AS `month`, count(`job_mails`.`id`) AS `count` FROM `job_mails` WHERE (`sent_at` IS NOT NULL) GROUP BY `month`) AS `t1`) AS `t2`
<Bish> whopsie
<Bish> didn't want to paste it, sorry
<Bish> but doesn't that look nested :D?
<ljarvis> nested like ass
<Bish> well, actually, if i replaced now() with a constant, the query would be fine
<Bish> cacheable and such
mistermocha has joined #ruby
mdw has joined #ruby
aupadhye has quit [Ping timeout: 244 seconds]
aryaching has joined #ruby
<ljarvis> I'm failing to see why a left join wouldn't work, but tbh with this kind of thing i'd usually faff around in psql until it worked
futilegames has quit [Quit: futilegames]
<Bish> left join is fine, but the now() prevents it from getting cached
<Bish> as i said
<ljarvis> there should be a service that allows you to do pg queries online with a dataset provided by someone who needs help
<ljarvis> right, but left join without the now()
misterm__ has joined #ruby
piotrj has quit []
<Bish> well, implies i have a table with the last 12 month
<ljarvis> well, with all of your INTERVAL X months that implies the same
<ljarvis> as does the Ruby code
mistermo_ has quit [Ping timeout: 250 seconds]
<Bish> yep.
<Bish> i will just replace the now()
<Bish> and be happy with sql giving me stuff
nando293921 has quit [Ping timeout: 260 seconds]
misterm__ has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
piotrj has joined #ruby
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
ishe_ua has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 244 seconds]
<ljarvis> knowing that sql exists, you will never be happy
<ljarvis> and now neither will i
mistermo_ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
arlek_ is now known as arlek
aupadhye has joined #ruby
GodFather has joined #ruby
swills_ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
nando293921 has joined #ruby
<shevy> lol
aupadhye_ has joined #ruby
mistermo_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdgraaf has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
Hounddog has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
freerobby has quit [Quit: Leaving.]
aegis3121 has joined #ruby
pawnbox has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 240 seconds]
Hyuk has joined #ruby
Vile` has joined #ruby
tildes has quit [Remote host closed the connection]
freerobby has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
mistermo_ has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
pawnbox has joined #ruby
mistermocha has joined #ruby
mistermo_ has joined #ruby
DTZUBDUB has quit [Ping timeout: 240 seconds]
mistermo_ has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
madgen has quit [Ping timeout: 260 seconds]
mistermocha has quit [Ping timeout: 260 seconds]
madgen has joined #ruby
<Bish> ljarvis: you're welcome
jrafanie has joined #ruby
mistermocha has joined #ruby
Xeago_ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
misterm__ has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
karmatr0n has joined #ruby
bkxd has joined #ruby
tulak has quit []
piotrj has left #ruby [#ruby]
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
mistermocha has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
Xiti has quit [Quit: Xiti]
mistermocha has joined #ruby
fenre has quit []
ChiefAlexander has quit [Remote host closed the connection]
misterm__ has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
mattwashere has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
bkxd has quit [Ping timeout: 244 seconds]
karmatr0n has quit [Ping timeout: 276 seconds]
<Bish> just to torture you more:
<Bish> Database::CONNECTION[(1..12).to_a.reverse.map { |n| "select date_format('#{Time.now.strftime('%Y-%m-%d')}' - INTERVAL #{n} MONTH,'%Y-%m') `month`" }.join(" UNION ")]
mistermo_ has quit [Read error: Connection reset by peer]
ChiefAlexander has joined #ruby
mistermo_ has joined #ruby
isberg has quit [Quit: I'm out]
etehtsea has joined #ruby
aupadhye has quit [Quit: Leaving]
aupadhye_ has quit [Quit: Leaving]
Beverage is now known as Wsewolod
Xiti has joined #ruby
aupadhye has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 272 seconds]
allcentury has quit [Ping timeout: 252 seconds]
flashpoint9 has quit [Remote host closed the connection]
mistermo_ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
andromedian has joined #ruby
andromedian is now known as Guest43867
etehtsea has quit [Read error: Connection reset by peer]
emilkarl has joined #ruby
chip_ has quit [Ping timeout: 264 seconds]
hutch34_ has joined #ruby
DroidBurgundy has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
karmatr0n has joined #ruby
LoneHerm_ has joined #ruby
eGGshke has quit [Quit: Leaving...]
ta_ has quit [Remote host closed the connection]
mistermocha has joined #ruby
Silthias has quit [Read error: Connection reset by peer]
rkazak has joined #ruby
jgt has joined #ruby
LoneHerm_ has quit [Ping timeout: 244 seconds]
the_drow has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
mattwashere has quit [Remote host closed the connection]
mistermocha has joined #ruby
mattwashere has joined #ruby
roamingdog has joined #ruby
aryaching has quit [Remote host closed the connection]
RegulationD has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
Silthias has joined #ruby
jas02 has quit [Quit: jas02]
GodFather has quit [Ping timeout: 276 seconds]
DEac- has quit [Quit: leaving]
DEac- has joined #ruby
rueben has quit [Ping timeout: 276 seconds]
roamingdog has quit [Ping timeout: 246 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
flashpoint9 has joined #ruby
rbennacer has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
rbennacer has quit [Remote host closed the connection]
allcentury has joined #ruby
howdoi has joined #ruby
craigp has quit [Ping timeout: 240 seconds]
rbennacer has joined #ruby
VeryBewitching has joined #ruby
jrafanie_ has joined #ruby
ngw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jbkc85 has joined #ruby
mistermocha has joined #ruby
<jbkc85> hi all, I'm trying to setup a development environment to work on a Gem locally using Docker. Was wondering if anyone had experience with it
DroidBurgundy has quit []
mistermo_ has joined #ruby
jrafanie has quit [Ping timeout: 252 seconds]
harfangk has joined #ruby
afdafdafd has joined #ruby
misterm__ has joined #ruby
mbolo__ has quit [Quit: mbolo__]
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 250 seconds]
Guest43867 has quit [Ping timeout: 246 seconds]
tish has joined #ruby
<tish> /msg NickServ VERIFY REGISTER tish aauitlcdweju
<shevy> development environment sounds mighty complicated
whiteline has quit [Read error: Connection reset by peer]
whiteline_ has joined #ruby
mistermocha has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
<ljarvis> Bish: D:
neo__ has joined #ruby
timanema has quit [Ping timeout: 244 seconds]
kareeoleez has quit [Remote host closed the connection]
karmatr0n has quit [Ping timeout: 246 seconds]
codecop has quit [Remote host closed the connection]
misterm__ has quit [Ping timeout: 250 seconds]
neo___ has joined #ruby
bkxd has joined #ruby
timanema has joined #ruby
aryaching has joined #ruby
<jbkc85> shevy: thats why I'm trying to make it easier :-P
<jbkc85> I'm reading up on all the ruby official repositories and would love to run all my development through these
pawnbox has quit [Remote host closed the connection]
<jbkc85> not having to install gems left and right
mistermo_ has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
pawnbox has joined #ruby
macsteps has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
shinnya has joined #ruby
spiette has joined #ruby
neo__ has quit [Ping timeout: 250 seconds]
aryaching has quit [Remote host closed the connection]
agentmeerkat has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
piotrj has joined #ruby
piotrj has quit [Quit: leaving]
mistermo_ has quit [Ping timeout: 250 seconds]
eljimmy has joined #ruby
mistermocha has joined #ruby
ChiefAlexander has joined #ruby
kareeoleez has joined #ruby
mattwashere has quit [Remote host closed the connection]
mistermo_ has joined #ruby
mattwashere has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
kareeoleez has quit [Ping timeout: 272 seconds]
<toretore> jbkc85: what specifically are you having trouble with?
mistermo_ has quit [Ping timeout: 250 seconds]
<jbkc85> toretore: anytime i go through the docs, for some reason I continue to get 'gem is missing'
<jbkc85> or, if i do the bundle package route (/vendor directory), its missing my local gem which is defined by a file system path
<jbkc85> rather than a remote
norc has quit [Ping timeout: 250 seconds]
mrgrieves has joined #ruby
<jbkc85> and at the moment, I'm running a simple container to test my gem...i do a gem list --local, and get:
rueben has joined #ruby
<jbkc85> rest-client (1.8.0), yet...
<jbkc85> :1:in `require': cannot load such file -- rest-client (LoadError)
<toretore> how did you install ruby in the container?
<jbkc85> i used ruby:2.2.4 image
<jbkc85> official image that is
<jbkc85> i guess 2.2. I didn't use the '.4' :0-)
kareeoleez has joined #ruby
antgel has quit [Ping timeout: 244 seconds]
skweek has joined #ruby
rueben has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
aryaching has joined #ruby
kareeoleez has quit [Ping timeout: 258 seconds]
karmatr0n has joined #ruby
SilverKey has joined #ruby
snath has quit [Ping timeout: 258 seconds]
renatosilva has joined #ruby
mistermo_ has joined #ruby
ornerymoose has quit [Ping timeout: 260 seconds]
speakingcode has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 250 seconds]
anisha has quit [Quit: Leaving]
edwinvdgraaf has joined #ruby
kareeoleez has joined #ruby
SilverKey has quit [Quit: Halted.]
mistermocha has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
CJKinni has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
jhack has joined #ruby
macsteps has quit [Remote host closed the connection]
kareeoleez has quit [Ping timeout: 250 seconds]
aryaching has quit [Ping timeout: 244 seconds]
mistermo_ has joined #ruby
<toretore> jbkc85: if it doesn't work with the official image just create your own
safetypin has joined #ruby
deadnull_ has joined #ruby
isberg has joined #ruby
rippa has joined #ruby
isberg has quit [Max SendQ exceeded]
mistermocha has quit [Ping timeout: 260 seconds]
ocbtec has quit [Quit: leaving]
SilverKey has joined #ruby
<jbkc85> I'm creating my own too, but i guess I'm trying to understand why its not working the way its documented
<jbkc85> I'm making a gist with the input, one sec
mistermo_ has quit [Ping timeout: 250 seconds]
jhack has quit [Remote host closed the connection]
<jbkc85> like, here is the ruby2.2-onbuild
jhack has joined #ruby
kareeoleez has joined #ruby
<jbkc85> and i do have a gemspec in the same directory labeled 'your_gem.gemspec'
GodFather has joined #ruby
mistermocha has joined #ruby
deadnull_ has quit [Quit: Bye]
CloCkWeRX has quit [Ping timeout: 260 seconds]
mbolo__ has joined #ruby
aegis3121 has quit [Ping timeout: 258 seconds]
ngw has joined #ruby
jhack has quit [Client Quit]
jhack has joined #ruby
mistermo_ has joined #ruby
kareeoleez has quit [Ping timeout: 240 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
aegis3121 has joined #ruby
<toretore> jbkc85: you have a gemspec in your ., but it's not in the container at build time
aryaching has joined #ruby
<jbkc85> ahhh
<jbkc85> yea, thanks for pointing that out....
<jbkc85> I'm in the world of trying to remember Ruby little things like that kill me :(
<toretore> just write your own Dockerfile that does what you want
<imajes> hey- anyone got any good sources for ruby projects?
skweek has joined #ruby
<jbkc85> toretore: yea, I'm just trying to completely understand this first i guess
roamingdog has joined #ruby
GodFather has quit [Ping timeout: 276 seconds]
matp has quit [Remote host closed the connection]
mistermocha has joined #ruby
RegulationD has joined #ruby
matp has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
diegoaguilar has quit [Ping timeout: 258 seconds]
LoneHermit has joined #ruby
aryaching has quit [Ping timeout: 250 seconds]
mistermo_ has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
<toretore> jbkc85: it's as simple as i said, your Gemfile depends on a .gemspec which doesn't exist at the time it's run
ItSANgo has joined #ruby
jher has joined #ruby
<toretore> the onbuild version won't work with `gemspec`
xaxisx has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
aryaching has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
diegoaguilar has joined #ruby
<jbkc85> toretore: yea, I understand that....im trying to figure out the rest now with the whole 2.2 container (moved away from the onbuild)
<jbkc85> just in general, i want to figure out why this container development isn't working as their docs intended :-)
<toretore> it is working as intended, you're just not using it as intended
<toretore> just make your own Dockerfile, copy the necessary files into place and `RUN bundle`
<toretore> you don't need a magic onbuild to do this for you
mistermo_ has quit [Ping timeout: 250 seconds]
<jbkc85> i understand. I am literally using the ruby:2.2 container, and while inside I am running a 'bundle install'. Gems are installing just fine. The problem is, once I run the ruby script, it still complains that its missing dependencies
<jbkc85> whether through `bundle exec ./ruby_script.rb`, which complains that bundler can't find the script, and if i run a straight `ruby ruby_script.rb`, it can't find my local gem which I reference using the PATH: ../your_gem command in the Gemfile
<jbkc85> I'm guessing it has to do with the PATH and not REMOTE Gemfile, but I'm trying to understand it
roamingdog has joined #ruby
CloCkWeRX has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
<toretore> jbkc85: gist relevant files?
kareeoleez has joined #ruby
<jbkc85> certainly, one sec
<jbkc85> I'm basically picking up dev for another worker, and I don't use Ruby...so my first thought was container, but based on the approach I'm guessing it has a slightly different issue
<toretore> using a container should work fine
demend is now known as drale2k
aryaching has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
kareeoleez has quit [Remote host closed the connection]
kareeoleez has joined #ruby
ornerymoose has joined #ruby
ItSANgo has quit [Quit: Leaving...]
<jbkc85> yea, thats what i thought. Thats why I'm digging deeper into how this guy was developing his gem locally
<jbkc85> and not sure if that way is considered 'best practice', but atm I'm not seeing why it wouldn't be either
Gasher has left #ruby ["Leaving"]
kareeoleez has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 264 seconds]
<toretore> `bundle exec` is for running executables that are installed as part of a gem
<toretore> what does your Gemfile look like?
madgen has quit [Ping timeout: 244 seconds]
<jbkc85> added in the gist
pawnbox has quit [Remote host closed the connection]
aufi has quit [Ping timeout: 260 seconds]
<jbkc85> in this case, the 'program' isn't a gem...its using a gem that we are developing on though
pawnbox has joined #ruby
kareeoleez has joined #ruby
SilverKey has quit [Quit: Halted.]
rueben has joined #ruby
<toretore> what is the goal with this? do you want to build an image and then run it, or do you want to mount the lib into the container?
<toretore> there's a lot of weird stuff that makes assumptions about the environment it's run in
<toretore> `require '.anything' ` won't work unless . is in $PATH, which it's not by default
<toretore> it's bad practice anyway
dionysus69 has quit [Ping timeout: 244 seconds]
moeabdol has quit [Ping timeout: 250 seconds]
<jbkc85> i see...
ldnunes has quit [Ping timeout: 244 seconds]
<jbkc85> the goal is to create a container that could mount the users code and use as a dev environment for executing....nothing more
<jbkc85> i don't want to use Vagrant or Virtualbox, and frankly i don't want to install Ruby gems and manage it on my own computer
kareeoleez has quit [Ping timeout: 260 seconds]
snath has joined #ruby
<jbkc85> id rather have an easily shippable 'this is the version...'
smathy has joined #ruby
aegis3121 has quit [Ping timeout: 276 seconds]
<jbkc85> so what would i change the require to if its looking for a file local to the script being ran?
<jbkc85> require 'config/your_gemtools', or something different?
<toretore> yes, and make sure it's in $PATH
urbanmonk has joined #ruby
ocbtec has joined #ruby
SilverKey has joined #ruby
<jbkc85> so its never going to look in the local directory of the program?
<toretore> it's going to look in $PATH
<toretore> nothing more, nothing less
<jbkc85> interesting....
<toretore> you control what gets added to $PATH
skweek has quit [Ping timeout: 250 seconds]
<jbkc85> yea, absolutely
<Bish> tish: hi 4 letter bro
<Bish> nice password
<jbkc85> coming from a PHP development background, when you use things like 'include 'config/here.php', whatever...is there a similar way to do that then?
<jbkc85> I'm not sure why it was done this way...so I'm trying to understand is all
<jbkc85> the concept of 'require' that is
<Bish> jbkc85: yes.
<toretore> jbkc85: require will just look in $PATH for the file and load it if it exists
mbolo__ has quit [Quit: mbolo__]
rodfersou is now known as rodfersou|lunch
<Bish> and return true :3
<Bish> (or false if file is loaded already)
<toretore> if you want to load "config/something.rb" then "config" must be in $PATH
Telecom has joined #ruby
rodferso1 has quit [Remote host closed the connection]
<Bish> unless you use require_relative
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<shevy> man
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<toretore> ?ops
<ruby[bot]> to call for ops use the !ops command. You can find a list of channel staff on http://ruby-community.com/pages/irc_staff
<toretore> !ops
<ruby[bot]> toretore: ops currently in #ruby: adaedra, aredridel, havenwood, Mon_Ouie, Radar, apeiros, baweaver, drbrain, jhass, ljarvis, miah, ruby[bot] and smathy
<Bish> what is wrong with people.
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<shevy> webchatters should be rate-limited
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<Telecom> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
<shevy> !kick Telecom
<Mon_Ouie> !spam Telecom
Telecom was kicked from #ruby by ruby[bot] [spamming is a bannable offense, see http://ruby-community.com/pages/user_rules]
mrgrieves has quit [Ping timeout: 276 seconds]
<shevy> yay \o/
andikr has quit [Remote host closed the connection]
diegoaguilar has quit [Remote host closed the connection]
Tim_Franco has joined #ruby
<Tim_Franco> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101
<Tim_Franco> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101
<Tim_Franco> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101
<Tim_Franco> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101
<Tim_Franco> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101
<Tim_Franco> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101
<Tim_Franco> 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101
aryaching has joined #ruby
<shevy> lol
<Mon_Ouie> !spam Tim_Franco
vuoto has joined #ruby
Tim_Franco was kicked from #ruby by ruby[bot] [spamming is a bannable offense, see http://ruby-community.com/pages/user_rules]
<shevy> the choice of the nicknames for the spamming is quite weird
madgen has joined #ruby
Bish has quit [Ping timeout: 244 seconds]
LoneHermit has quit [Remote host closed the connection]
<jbkc85> toretore: thanks for the help by the way, I'm sorry if it took me a bit to understand some of the Gem concepts!
Xeago_ has quit [Read error: Connection reset by peer]
Chair has joined #ruby
dionysus69 has joined #ruby
nankyokusei has joined #ruby
RubyPlasma has joined #ruby
<RubyPlasma> 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
<RubyPlasma> 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
<RubyPlasma> 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
<RubyPlasma> 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
<RubyPlasma> 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
<RubyPlasma> 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
<RubyPlasma> 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
<RubyPlasma> 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
<RubyPlasma> 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
<RubyPlasma> 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
<RubyPlasma> 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
<RubyPlasma> 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
<RubyPlasma> 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
<RubyPlasma> 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
<RubyPlasma> 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
<RubyPlasma> 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
<shevy> and the spammer is back
synthroid has joined #ruby
<Mon_Ouie> !spam RubyPlasma
RubyPlasma was kicked from #ruby by ruby[bot] [spamming is a bannable offense, see http://ruby-community.com/pages/user_rules]
kareeoleez has joined #ruby
<toretore> * ruby[bot] sets ban on *!*@gateway/web/freenode/*$#ruby-banned
Chair is now known as Couch
<toretore> i wish
JackCook has joined #ruby
shinnya has quit [Ping timeout: 244 seconds]
kareeole_ has joined #ruby
Xeago_ has joined #ruby
<shevy> :D
<ule> :D
aegis3121 has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
SilverKey has quit [Quit: Halted.]
kareeoleez has quit [Ping timeout: 260 seconds]
JackCook has quit [Ping timeout: 250 seconds]
conta has quit [Ping timeout: 276 seconds]
kareeole_ has quit [Ping timeout: 264 seconds]
ciampix has quit [Ping timeout: 258 seconds]
madgen has quit [Ping timeout: 260 seconds]
cdg has quit [Remote host closed the connection]
Mack192 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
SilverKey has joined #ruby
agent_white has joined #ruby
neo___ has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
<agent_white> Mornin'
neo__ has joined #ruby
SilverKey has quit [Client Quit]
<shevy> yo agent_white
pawnbox has joined #ruby
<shevy> you totally missed out on some spammer action here
<shevy> jbkc85 had so many questions before and now nobody is asking anything anymore :D
kareeoleez has joined #ruby
ldnunes has joined #ruby
Xeago__ has joined #ruby
<jbkc85> yea, I'm just putting my head into the terminal at the moment...so instead of asking questions I'm just crossing things off :-P
macsteps has joined #ruby
<Mon_Ouie> !spam Mack192
Mack192 was kicked from #ruby by ruby[bot] [spamming is a bannable offense, see http://ruby-community.com/pages/user_rules]
Xeago_ has quit [Read error: Connection reset by peer]
<raldu> what was that python spam about? why would anyone do that?
ngw has quit [Quit: Textual IRC Client: www.textualapp.com]
neo__ has quit [Ping timeout: 260 seconds]
<jbkc85> cause they are a snake
<jbkc85> ha....hahaha
kareeoleez has quit [Ping timeout: 240 seconds]
hutch34_ has quit [Ping timeout: 272 seconds]
amclain has joined #ruby
<shevy> jhass - look, the snowman unicode is more useful than the half moon one, would you have thought so?! http://unicodepowersymbol.com/we-did-it-how-a-comment-on-hackernews-lead-to-4-%C2%BD-new-unicode-characters/
diegoaguilar has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
kedare has quit [Quit: Leaving]
<shevy> raldu dunno, I guess it says something about the mindset of the spammer
skade has quit [Quit: Computer has gone to sleep.]
Jenzo has joined #ruby
<Charles_CV> Not even a snake cos Python is named after Monty Python. :D
SilverKey has joined #ruby
<shevy> well
pawnbox has quit [Remote host closed the connection]
<shevy> the python logo looks like 2 snakes having sex https://www.python.org/static/community_logos/python-logo-master-v3-TM.png
macsteps has quit [Remote host closed the connection]
<Charles_CV> Yes but the creator of the language hemself said that he was paying hommage to Monty Python
macsteps has joined #ruby
<Charles_CV> Yes but the creator of the language himself said that he was paying hommage to Monty Python
RegulationD has joined #ruby
pawnbox has joined #ruby
imperator has joined #ruby
pawnbox has quit [Remote host closed the connection]
symm- has joined #ruby
<VeryBewitching> If I pass an opts hash to #new, but the class does not have initialize defined, do the opts get stored anywhere?
<Charles_CV> Anyone, let's not worry about snakes, shall we? :D
renatosilva has left #ruby ["http://renatosilva.net - Renato Silva"]
Charles_CV has quit [Quit: Leaving]
joonty has quit [Quit: This computer has gone to sleep]
<shevy> VeryBewitching I think that every class has .new even if you dont define a method called initialize
<shevy> I doubt the hash will be stored anywhere if you don't save it on your own via initialize
<VeryBewitching> shevy: If I don't define initialize, but I do Foo.new name: 'Foo'
aegis3121 has quit [Ping timeout: 244 seconds]
<Mon_Ouie> The default initialize method accepts no parameter
Jayson_ has joined #ruby
<VeryBewitching> shevy: OK, that was my expectation, thank you :)
RegulationD has quit [Ping timeout: 258 seconds]
<Mon_Ouie> !spam Jayson_
Jayson_ was kicked from #ruby by ruby[bot] [spamming is a bannable offense, see http://ruby-community.com/pages/user_rules]
<VeryBewitching> Really?
* VeryBewitching prepares ICMP flood for www.python.org
<Mon_Ouie> >> class A; end; A.new(1, 2, 3)
madgen has joined #ruby
<ruby[bot]> Mon_Ouie: # => wrong number of arguments (given 3, expected 0) (ArgumentError) ...check link for more (https://eval.in/594552)
gregf has quit [Quit: WeeChat 1.5]
[Butch] has joined #ruby
gregf has joined #ruby
hutch34_ has joined #ruby
[Butch] has quit [Client Quit]
Xeago__ has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
[Butch] has joined #ruby
wigust has joined #ruby
Xeago_ has joined #ruby
rueben has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Quit: WeeChat 1.5]
kareeoleez has joined #ruby
senayar has quit []
pawnbox has joined #ruby
jackjackdripper has joined #ruby
timanema has quit [Ping timeout: 260 seconds]
baweaver is now known as baweaver_away
mistermocha has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
afdafdafd has quit [Quit: This computer has gone to sleep]
SCHAAP137 has joined #ruby
centrx has quit [Ping timeout: 276 seconds]
kareeoleez has quit [Ping timeout: 264 seconds]
rbennacer has quit [Remote host closed the connection]
wigust has quit [Remote host closed the connection]
Couch has quit [Ping timeout: 250 seconds]
baweaver_away is now known as baweaver
mistermocha has quit [Ping timeout: 240 seconds]
centrx has joined #ruby
centrx has quit [Client Quit]
funrep has joined #ruby
centrx has joined #ruby
<funrep> hi
<centrx> Ahoy
kareeoleez has joined #ruby
Silthias has quit [Ping timeout: 244 seconds]
jgt has quit [Ping timeout: 244 seconds]
centrx has quit [Client Quit]
Snowy has quit [Remote host closed the connection]
SCHAAP137 has quit [Ping timeout: 276 seconds]
centrx has joined #ruby
kareeoleez has quit [Ping timeout: 246 seconds]
SilverKey has quit [Quit: Halted.]
<funrep> is it possible to enable --simple-prompt by default in .irbrc?
SilverKey has joined #ruby
flashpoint9 has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
<funrep> IRB.conf[:PROMPT_MODE][:PROMPT_S] maybe does it..
<funrep> IRB.conf[:PROMPT_MODE] = :SIMPLE did it :)
RegulationD has quit []
RegulationD has joined #ruby
saneax is now known as saneax_AFK
flashpoint9 has quit [Ping timeout: 244 seconds]
kareeoleez has joined #ruby
Xeago_ has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
diego1 has joined #ruby
diego1 is now known as diegoviola
<diegoviola> hi
mistermocha has joined #ruby
codecodecode123 has quit [Quit: Page closed]
agit0 has quit [Quit: zzzZZZ….]
matp has quit [Ping timeout: 244 seconds]
SCHAAP137 has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
araujo has joined #ruby
madgen has quit [Ping timeout: 272 seconds]
speakingcode has quit [Ping timeout: 240 seconds]
arlek_ has joined #ruby
arlek has quit [Read error: Connection reset by peer]
speakingcode has joined #ruby
flashpoint9 has joined #ruby
replay has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
centrx has quit [Remote host closed the connection]
arlek has joined #ruby
platzhirsch has quit [Quit: WeeChat 1.4]
<shevy> "Detecting cats in images with OpenCV"
<shevy> I feel that we are solving the real problems of this world!
tish has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
<ule> oh boy
ornerymoose has quit [Quit: ornerymoose]
joonty has quit [Client Quit]
arlek_ has quit [Ping timeout: 250 seconds]
hahuang61 has joined #ruby
macsteps has quit [Remote host closed the connection]
centrx has joined #ruby
arlek_ has joined #ruby
Silthias has joined #ruby
kareeoleez has joined #ruby
arlek has quit [Ping timeout: 252 seconds]
symm- has quit [Ping timeout: 276 seconds]
jbkc85 has quit [Quit: This computer has gone to sleep]
last_staff has quit [Quit: last_staff]
SilverKey has quit [Quit: Halted.]
edub4rt has joined #ruby
Tonkers has joined #ruby
<Tonkers> Hello #ruby
<Tonkers> I'm getting this error whenever I try to run anything with ruby in Cygwin. It's being insufferable, i've tried reinstalling multiple times. Any ideas?
aegis3121 has joined #ruby
<Tonkers> also inb4 use a real OS
mustmodify has joined #ruby
<mustmodify> can someone explain why this is OK?
<mustmodify> >> a = ['a', 'b' 'v']
<ruby[bot]> mustmodify: # => ["a", "bv"] (https://eval.in/594570)
xall has joined #ruby
<mustmodify> seems like it should be a syntax error.
<jhass> mustmodify: inherited from C. So you can do "foo" \ [newline] "bar"
<mustmodify> hunh...
<smathy> >> 'x' 'y'
hahuang61 has quit [Ping timeout: 244 seconds]
<ruby[bot]> smathy: # => "xy" (https://eval.in/594571)
<mustmodify> no newline required. Interesting.
<mustmodify> jhass, smathy: thanks
<centrx> Tonkers: https://www.google.com/search?q=gem+update+can';t+load+kernel32 has some interesting results
<jhass> mustmodify: basically \[newline] makes the newline invisible (skipped) by the parser
<smathy> mustmodify, np, definitely annoying if you accidently miss a comma.
<mustmodify> Escapes it... hunh.
<jhass> mustmodify: so to the parser "foo" \[newline]"bar" is the same as "foo" "bar"
<mustmodify> jhass: interesting, thanks.
kareeoleez has quit [Ping timeout: 276 seconds]
freerobby has quit [Quit: Leaving.]
rbennacer has joined #ruby
voodoofish4301 has joined #ruby
freerobby has joined #ruby
bella_ has joined #ruby
voodoofish430 has quit [Ping timeout: 276 seconds]
replay has quit [Ping timeout: 250 seconds]
madgen has joined #ruby
Wsewolod has quit [Quit: Leaving]
<Tonkers> centrx: nothing relevant it seems
<centrx> Tonkers: The first result looks like it explains the issue and has a possible workaround? https://sourceforge.net/p/msys2/tickets/10/
cdg has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
sauvin has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
ksmutthu has quit [Ping timeout: 246 seconds]
<imperator> Tonkers, is running ruby without cygwin an option?
jmignault has quit [Ping timeout: 250 seconds]
<Tonkers> imperator: that's probably the best solution at the moment
* imperator recommends just grabbing the one-click installer and pressing on
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
kareeoleez has joined #ruby
timanema has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
arlek_ is now known as arlek]
vuoto has quit [Remote host closed the connection]
arlek] is now known as arlek
vuoto has joined #ruby
speakingcode has quit [Ping timeout: 244 seconds]
vuoto has quit [Remote host closed the connection]
<Tonkers> imperator: yeah that seems to be the way to go :o working so far
vuoto has joined #ruby
skweek has joined #ruby
weaksauce has joined #ruby
kareeoleez has quit [Ping timeout: 258 seconds]
mwlang has joined #ruby
rcvalle has joined #ruby
troulouliou_div2 has quit [Ping timeout: 276 seconds]
d0lph1n98 has quit [Ping timeout: 252 seconds]
bella_ has quit [Quit: Leaving]
agit0 has joined #ruby
blaxter has quit [Quit: foo]
memorasus has joined #ruby
speakingcode has joined #ruby
matp has joined #ruby
Gadgetoid has joined #ruby
kareeoleez has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
jmignault has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
joonty has joined #ruby
kareeoleez has quit [Ping timeout: 240 seconds]
tomchapin has joined #ruby
tomphp has joined #ruby
jmignault has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
ornerymoose has joined #ruby
djbkd has joined #ruby
jmignault has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
rodfersou|lunch is now known as rodfersou
kareeoleez has joined #ruby
SilverKey has joined #ruby
neo__ has joined #ruby
xall has quit [Ping timeout: 260 seconds]
jhack has quit [Quit: jhack]
drahosj has joined #ruby
drahosj has left #ruby [#ruby]
SilverKey has quit [Client Quit]
kareeoleez has quit [Ping timeout: 264 seconds]
jhack has joined #ruby
jaruga___ has quit [Quit: jaruga___]
ChiefAlexander has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
SilverKey has joined #ruby
whathappens has joined #ruby
mkinkles has joined #ruby
<mkinkles> Hello!
kareeoleez has joined #ruby
freerobby has quit [Quit: Leaving.]
<adam12> mkinkles: o\
sepp2k has quit [Quit: Leaving.]
Moosashi has joined #ruby
Es0teric has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
kareeoleez has joined #ruby
pilne has joined #ruby
<mkinkles> Hi adam12, how're you?
<adam12> mkinkles: fine thanks. and you?
weckl has quit [Quit: Leaving]
polishdub has joined #ruby
<mkinkles> adam12: Great!
solocshaw has joined #ruby
nankyokusei has joined #ruby
macsteps has joined #ruby
Wsewolod has joined #ruby
Wsewolod has quit [Client Quit]
giz|work|2 has joined #ruby
ishe_ua has joined #ruby
Wsewolod has joined #ruby
joaumg has quit [Quit: WeeChat 1.0.1]
matp has quit [Remote host closed the connection]
ElFerna has joined #ruby
giz|work has quit [Ping timeout: 276 seconds]
jgt has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
<mkinkles> adam12: I cannot decide what I want to develop... ha. Horrible, I know. I am brand new to development but I want to make this a career. I am currently doing windows sys admin work (don't like it) so I am in the works of getting a different job as a network engineer (better), so I am trying to figure out what to do. How did you find your thing?
nankyokusei has quit [Ping timeout: 252 seconds]
dfockler has joined #ruby
<mkinkles> Web & Mobile sounds the best - not interested in desktop, games, or embdedded. I do love machine learning and have been reading tons about it. Whatever I build, I want to incorporate supervised model learning into it.
solocshaw has quit [Remote host closed the connection]
Moosashi has quit [Quit: Moosashi]
solocshaw has joined #ruby
hahuang61 has joined #ruby
ponga has quit []
matp has joined #ruby
<ule> do you guys know a magic one line command to sort an array but fix one specific key to the first position?
<shevy> ule sounds like two operations
<shevy> most array methods do one thing only
<shevy> .sort .pop .push .unshift .neuterize
<ule> humm
<ule> so I need to loop in all and create another array basically
<jhass> ule: .sort.tap {|a| a.unshift(a.delete(item)) } is probably indeed your best bet
<jhass> ule: the alternative is to pass a block to .sort
<ule> jhass: humm I'll do some research about this .tab, .unshift and .delete
<ule> thanks jhass
<jhass> .sort {|a, b| a == item ? -1 : b == item ? 1 : a <=> b } or so?
<ule> wtf.. I need to stop for a few minutes to understand what you just did
<ule> lol
<dfockler> nested ternary ops
hahuang61 has quit [Ping timeout: 258 seconds]
mkinkles has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
neo___ has joined #ruby
jenrzzz has joined #ruby
<shevy> lol
<ule> x = ['ca', 'co', 'di', 'fe']
<ule> I need di in the first position
<ule> lemme try here
<jhass> .sort_by {|e| [e == item ? 0 : 1, e] } but that creates quite a few unnecessary arrays
neo__ has quit [Ping timeout: 250 seconds]
<smathy> TIL, you can return the tuple array yourself.
<jhass> "tuple array"?
sepp2k has joined #ruby
<smathy> jhass, the sort_by examples I've seen have the block return just the "to be sorted on" value and it creates the [ to-be-sorted-on-value, original-value ] array itself. Oh, actually, maybe this is just because an array that starts with 0 will sort before one that starts with 1
kfpratt has quit []
<jhass> smathy: it is, sort_by internally builds a hash, not two element arrays
craigp has joined #ruby
<jhass> iirc
the_drow has joined #ruby
<smathy> I see what you're doing now, never mind :)
<smathy> I thought you were building the tuple array for the Schwartzian transform itself.
kirun has joined #ruby
pontiki has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
dhruvasagar has joined #ruby
Madplatypus has joined #ruby
jhack has quit [Quit: jhack]
jher has quit [Ping timeout: 250 seconds]
Moosashi has joined #ruby
roamingd_ has joined #ruby
conta has joined #ruby
pandaant has quit [Remote host closed the connection]
ruby-knss has joined #ruby
ruby-knss has quit [Client Quit]
enterprisey has joined #ruby
roamingdog has quit [Ping timeout: 260 seconds]
zacstewart has quit [Read error: Connection reset by peer]
joonty has quit [Quit: This computer has gone to sleep]
SilverKey has quit [Quit: Halted.]
zacstewart has joined #ruby
<imperator> now there's a term i haven't heard in a while
sauvin has quit [Remote host closed the connection]
k3rn31 has joined #ruby
Ruby0nRheyls has joined #ruby
LoneHerm_ has joined #ruby
grekko has joined #ruby
<ule> didn't work
<ule> maybe because it's not an array
mostlybadfly has joined #ruby
<jhass> I gave you three alternatives, what exactly did you try?
SilverKey has joined #ruby
Moosashi has quit [Quit: Moosashi]
<ule> it's something like this: [["car", {"foo" => 1, "foo2" => 2}, ["boat", {"foo3" => 3 .....
<ule> I need to order by "boat", "car"
nankyokusei has joined #ruby
nadir has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xall has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
enterprisey has quit [Remote host closed the connection]
<apeiros> ule: I assume you're lacking an ] there…
<apeiros> (before ["boat", )
<ule> yes
<ule> it was just an example to show the structure
<ule> is that a hash inside an array right?
<apeiros> sure, but it helps if the example structure actually reflects your structure :-p
<apeiros> it's a hash inside an array inside an array
jher has joined #ruby
macsteps has quit [Remote host closed the connection]
nhhc has quit [Quit: Leaving]
macsteps has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
xall has quit [Ping timeout: 258 seconds]
ta_ has joined #ruby
<smathy> ?code ule
<ruby[bot]> ule: We can't help you without your code, please post it to https://gist.github.com
mattwashere has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
zeroDi has joined #ruby
grekko has quit [Ping timeout: 246 seconds]
mattwashere has joined #ruby
urbanmonk has quit [Quit: urbanmonk]
karmatr0n has quit [Ping timeout: 240 seconds]
Tricon has quit [Quit: leaving]
Authenticator has quit [Ping timeout: 252 seconds]
Lildirt has quit [Ping timeout: 252 seconds]
bqscott has quit [Ping timeout: 252 seconds]
k3rn31 has joined #ruby
giz|work has joined #ruby
Daemoen has quit [Ping timeout: 252 seconds]
Daemoen has joined #ruby
imperator has left #ruby ["Leaving"]
bkxd has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
giz|work|2 has quit [Ping timeout: 264 seconds]
aegis3121 has quit [Ping timeout: 250 seconds]
aep-shoutlet has joined #ruby
omz__ has joined #ruby
chip_ has joined #ruby
bqscott has joined #ruby
Lildirt has joined #ruby
<spudowiar> ?code ruby[bot]
<ruby[bot]> ruby[bot]: We can't help you without your code, please post it to https://gist.github.com
<spudowiar> ?code ?
<ruby[bot]> spudowiar: I don't see no ?, whom should I tell about code?
aegis3121 has joined #ruby
rueben has joined #ruby
<Ruby0nRheyls> Does anyone know how to deploy RubyOnRails on Heroku?
<ule> yeah
<Ruby0nRheyls> Oh thanks
<ule> I'll create a code here
<Ruby0nRheyls> Could you help me on TeamViewer?
<ule> haahahhaah
sp4rrow has joined #ruby
CJKinni has quit [Read error: Connection reset by peer]
Authenticator has joined #ruby
Moosashi has joined #ruby
CJKinni has joined #ruby
hahuang61 has joined #ruby
craigp has quit [Ping timeout: 244 seconds]
ElFerna has quit [Read error: Connection reset by peer]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
<havenwood> Ruby0nRheyls: ^ +1 Heroku docs. The #RubyOnRails channel or Heroku support are good places to ask if you run into any trouble with the docs.
smathy_ has joined #ruby
spiette has quit [Ping timeout: 260 seconds]
pLaToOn has joined #ruby
Ruby0nRheyls has quit [Ping timeout: 250 seconds]
<pLaToOn> moin
jenrzzz has quit [Ping timeout: 260 seconds]
smathy has quit [Ping timeout: 240 seconds]
davedev24 has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 260 seconds]
replay has joined #ruby
shinnya has joined #ruby
miqlas-H has joined #ruby
xall has joined #ruby
craigp has joined #ruby
TomyWork has quit [Ping timeout: 244 seconds]
goodroot has joined #ruby
synthroid has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
Es0teric has quit [Quit: Computer has gone to sleep.]
pawnbox has quit [Remote host closed the connection]
Xeago_ has joined #ruby
pawnbox has joined #ruby
pLaToOn has quit [Ping timeout: 250 seconds]
Moosashi has quit [Quit: Moosashi]
spiette has joined #ruby
vuoto has quit [Remote host closed the connection]
johnmilton has quit [Remote host closed the connection]
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
<ule> can I use array.delete('foo') ?
aryaching has quit [Ping timeout: 260 seconds]
vuoto has joined #ruby
<ule> test.rb:4:in `[]': no implicit conversion of String into Integer (TypeError)
aryaching has joined #ruby
<shevy> %w( a b c ) - ['a'] # => ["b", "c"]
freerobby has joined #ruby
vuoto has quit [Remote host closed the connection]
SilverKey has joined #ruby
nankyokusei has joined #ruby
vuoto has joined #ruby
madgen has quit [Ping timeout: 272 seconds]
rindolf has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
<rindolf> Hi all.
davedev24 has joined #ruby
nankyokusei has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
omz__ has quit [Ping timeout: 250 seconds]
harfangk has quit [Quit: harfangk]
<shevy> yo gandalf
aryaching has quit [Ping timeout: 252 seconds]
araujo_ has joined #ruby
aryaching has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
tape88 has joined #ruby
pLaToOn has joined #ruby
araujo has quit [Ping timeout: 258 seconds]
djbkd has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 244 seconds]
TomyLobo has joined #ruby
djbkd has joined #ruby
aryaching has quit [Ping timeout: 244 seconds]
roamingd_ has quit [Remote host closed the connection]
synthroid has joined #ruby
roamingdog has joined #ruby
aryaching has joined #ruby
conta has quit [Ping timeout: 264 seconds]
pLaToOn has quit [Ping timeout: 260 seconds]
[Butch] has quit [Ping timeout: 250 seconds]
djbkd has quit [Ping timeout: 244 seconds]
SilverKey has quit [Quit: Halted.]
<ule> ok
<ruby[bot]> ule: as I told you already, please use https://gist.github.com
<ule> oh
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
Gasher has joined #ruby
sandelius has joined #ruby
<ule> whats wrong here?
<shevy> it is ugly
<ule> looks infinite loop
neo___ has quit [Remote host closed the connection]
<shevy> keep your data structures simple!
<ule> I don't know how, pls help me
neo__ has joined #ruby
<shevy> why do you use an array rather than a hash for instance
<ule> this structure I can't change.. it's comming from my db
jackjackdripper has joined #ruby
karmatr0n has joined #ruby
spaceone has joined #ruby
<ule> I just need to put "airplane" in the first position
<spaceone> is there a ruby on rails challenge?
Moosashi has joined #ruby
macsteps has quit [Remote host closed the connection]
<ule> maybe I need to loop using .each and assign to another variable?
macsteps has joined #ruby
<spaceone> anyone knows how ruby on rails serializes cookies and sign them with a secret? or where i can read about it? i need code which unserializes it for me, i have the secret key and the value
aryaching has quit [Ping timeout: 240 seconds]
neo__ has quit [Ping timeout: 244 seconds]
aryaching has joined #ruby
<shevy> ule well one solution may be to delete the entry that has airplane but keep it assigned to a variable, then simply use .unshift to prepend to your Array again
<havenwood> ule: When you see an "airplane" what do you want to do? Replace that tuple with a new one or add a new "airplane" one?
karmatr0n has quit [Ping timeout: 260 seconds]
replay has quit [Ping timeout: 258 seconds]
<ule> havenwood: when I see airplane, I want to move to the first position in the array
macsteps has quit [Ping timeout: 276 seconds]
neo__ has joined #ruby
<ule> but sometimes 'airplane' is not gonna be in the array, thats why I'm checking with that if
<ule> shevy: ok.. how can I assign to another array? b[] = content?
<ule> this is really simple in PHP
<ule> maybe I don't know ruby enough
<hanmac> ule are you maybe looking for "sort_by" ?
<ule> !sort_by
<ule> !syntax sort_by
<hanmac> &ri Enumerable#empty?
<`derpy> No results
<hanmac> &ri Enumerable#sort_by
ensyde__ has joined #ruby
neo__ has quit [Remote host closed the connection]
neo__ has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
<ule> jhass: :)
mustmodify has left #ruby [#ruby]
k3rn31 has quit [Quit: Computer has gone to sleep.]
neo__ has quit [Ping timeout: 246 seconds]
<ule> airplane = [k => v]
<ule> search.delete(k)
<ule> search.insert(0, airplane)
<ule> that's it?
sumobob has joined #ruby
<ule> it goes to infinite loop again
sp4rrow has joined #ruby
<ule> wtf
matp has quit [Remote host closed the connection]
ruby-lang506 has joined #ruby
elementaru has quit [Ping timeout: 260 seconds]
<ruby-lang506> a= [2016-06-08 01:23:45 -0700, 2016-06-08 04:14:23 -0700, 2016-06-08 04:18:27 -0700]---- timestamps
<ruby-lang506> how to sort the last updated time ?
vuoto has quit [Remote host closed the connection]
SilverKey has joined #ruby
vuoto has joined #ruby
<shevy> use Time.parse then .sort
hahuang61 has joined #ruby
djbkd has joined #ruby
<ruby-lang506> thanks
duderonomy has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edub4rt has quit [Ping timeout: 264 seconds]
codecop has joined #ruby
SilverKey has quit [Client Quit]
ta_ has joined #ruby
sumobob has quit [Ping timeout: 276 seconds]
DTZUBDUB has joined #ruby
aryaching has quit [Ping timeout: 276 seconds]
hahuang61 has quit [Ping timeout: 260 seconds]
jackjackdripper has quit [Quit: Leaving.]
ensyde__ has quit [Ping timeout: 246 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
jackjackdripper has joined #ruby
nankyokusei has joined #ruby
whathappens has quit [Remote host closed the connection]
elifoster has joined #ruby
skade has joined #ruby
jhack has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
Xeago_ has quit [Remote host closed the connection]
skade has quit [Client Quit]
last_staff has joined #ruby
jenrzzz has joined #ruby
aryaching has joined #ruby
tomchapin has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
shtirlic has joined #ruby
finisherr has joined #ruby
shtirlic has quit [Client Quit]
Xiti has quit [Quit: Xiti]
shtirlic has joined #ruby
SilverKey has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
Xeago_ has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
ruby-lang506 has quit [Ping timeout: 250 seconds]
nando293921 has joined #ruby
vuoto has joined #ruby
edub4rt has joined #ruby
c355e3b has joined #ruby
rubirc has quit [Ping timeout: 264 seconds]
LoneHerm_ has quit [Remote host closed the connection]
ishe_ua has quit [Remote host closed the connection]
minimalism has joined #ruby
hackerdude has joined #ruby
<ule> this way works
<ule> what would you implove?
ur5us has joined #ruby
diegoaguilar has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
terrabl has joined #ruby
Tonkers has quit [Quit: Page closed]
<terrabl> When I do DateTime.parse(), how come it can't parse something like 06/23/2016 12:00 AM it's giving me an invalid date error
<jhass> ule: so you just want to put one at the front?
<ule> jhass: yes!
<havenwood> ule: airplane = search.assoc 'airplane'; search.unshift(search.delete(airplane)) if airplane
<ule> havenwood: wtffff
<ule> lemme test it
<jhass> terrabl: just don't use it, use strptime
<terrabl> ugh, i didnt want to lol
<terrabl> but okay
<terrabl> thanks'
<jhass> it's bad for the reason you just discovered
<jhass> the domain is to complex and ambiguous to guess stuff correctly
<ule> jhass: that's what I was talking about!!
<jhass> it shouldn't exist
<ule> jhass: you rock!!!
<jhass> ule: get your reading skills checked, havenwood posted that solution
blackgoat has joined #ruby
<ule> yeah
<ule> thanks guys!!
<ule> havenwood: :*
moeabdol has joined #ruby
hackerdude has quit [Remote host closed the connection]
hackerdude has joined #ruby
[Butch] has joined #ruby
maucar has joined #ruby
wrkrcoop has joined #ruby
rodfersou has quit [Ping timeout: 260 seconds]
<wrkrcoop> anyone here familiar with the ruby elasticsearch gem?
rodfersou has joined #ruby
* jhass sighs
<jhass> ?anyone wrkrcoop
<ruby[bot]> wrkrcoop: Just ask your question, if anyone has, is or can, they will respond.
moeabdol has quit [Ping timeout: 258 seconds]
<shevy> anyone here has a cat that can write ruby code?
<jhass> wrkrcoop: if I grep my logs for ?anyone wrkrcoop, how many times will it appear? 10? anyone wants to bet?
<wrkrcoop> haha
edwinvdgraaf has joined #ruby
maucar has quit [Remote host closed the connection]
ciampix has joined #ruby
<wrkrcoop> so i have to query ES for 10 ids, currently the API is querying for 1 document, it looks like this: https://gist.github.com/anonymous/06c78436609219918d65fac879effdb2
synthroid has quit []
<wrkrcoop> im trying to figure out how to add multiple ids but the internet doesn’t seem to have info on it. dont see anything here https://github.com/elastic/elasticsearch-ruby/tree/master/elasticsearch-api or here https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-get.html
joonty has joined #ruby
Xiti has joined #ruby
joonty has quit [Client Quit]
<wrkrcoop> mmm looking at search api … might be in here
cyphase has quit [Ping timeout: 260 seconds]
terrabl has quit [Ping timeout: 250 seconds]
c355e3b has quit [*.net *.split]
Gasher has quit [*.net *.split]
Dimik has quit [*.net *.split]
mostlybadfly has quit [*.net *.split]
amclain has quit [*.net *.split]
dionysus69 has quit [*.net *.split]
safetypin has quit [*.net *.split]
vali has quit [*.net *.split]
sergio_101 has quit [*.net *.split]
Ishido has quit [*.net *.split]
sapslaj has quit [*.net *.split]
dh64 has quit [*.net *.split]
maloik has quit [*.net *.split]
valeri_ufo has quit [*.net *.split]
zacts has quit [*.net *.split]
ged has quit [*.net *.split]
moei has quit [*.net *.split]
hahuang65 has quit [*.net *.split]
chosen1 has quit [*.net *.split]
Nilium has quit [*.net *.split]
tfitts has quit [*.net *.split]
FastJack has quit [*.net *.split]
Nahra has quit [*.net *.split]
Radar has quit [*.net *.split]
nickjj has quit [*.net *.split]
gypsydave5 has quit [*.net *.split]
cardoni has quit [*.net *.split]
kdisneur has quit [*.net *.split]
Hates_ has quit [*.net *.split]
crank1988 has quit [*.net *.split]
musl has quit [*.net *.split]
pocketprotector has quit [*.net *.split]
spacemud has quit [*.net *.split]
torandu has quit [*.net *.split]
Caelum has quit [*.net *.split]
xxneolithicxx has quit [*.net *.split]
bjmllr has quit [*.net *.split]
iooner has quit [*.net *.split]
tekacs has quit [*.net *.split]
darix has quit [*.net *.split]
charles81 has quit [*.net *.split]
meinside has quit [*.net *.split]
ec has quit [*.net *.split]
dn` has quit [*.net *.split]
bttf has quit [*.net *.split]
nuck has quit [*.net *.split]
GGMethos has quit [*.net *.split]
dreinull has quit [*.net *.split]
jcp has quit [*.net *.split]
spaceone has quit [*.net *.split]
veloutin has quit [*.net *.split]
funnel has quit [*.net *.split]
G has quit [*.net *.split]
Caerus|Away has quit [*.net *.split]
lupine has quit [*.net *.split]
Olipro has quit [*.net *.split]
destructure has quit [*.net *.split]
marienz has quit [*.net *.split]
graft has quit [*.net *.split]
DenSchub has quit [*.net *.split]
cats has quit [*.net *.split]
pleiosau1 has quit [*.net *.split]
gigetoo has quit [*.net *.split]
Travis-42 has quit [*.net *.split]
jxf has quit [*.net *.split]
acerna has quit [*.net *.split]
aeruder has quit [*.net *.split]
j416 has quit [*.net *.split]
joconcepts has quit [*.net *.split]
dopie has quit [*.net *.split]
diegok has quit [*.net *.split]
IanMalcolm has quit [*.net *.split]
nyuszika7h has quit [*.net *.split]
jmcc___________ has quit [*.net *.split]
`derpy has quit [*.net *.split]
jord has quit [*.net *.split]
pmarreck has quit [*.net *.split]
mroth has quit [*.net *.split]
kireevco has quit [*.net *.split]
Eleeleth has quit [*.net *.split]
korben has quit [*.net *.split]
mrfooo has quit [*.net *.split]
thorgi has quit [*.net *.split]
lstanley has quit [*.net *.split]
jolamb has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
ndrst has quit [*.net *.split]
bastelfreak has quit [*.net *.split]
klaas_ has quit [*.net *.split]
lucas__ has quit [*.net *.split]
tpendragon has quit [*.net *.split]
Seich has quit [*.net *.split]
neoweb has quit [*.net *.split]
Nightmare has quit [*.net *.split]
_dev has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
cschneid- has quit [*.net *.split]
hostess has quit [*.net *.split]
ccooke has quit [*.net *.split]
timmow has quit [*.net *.split]
freeze has quit [*.net *.split]
saneax_AFK has quit [*.net *.split]
catbusters has quit [*.net *.split]
MadWasp has quit [*.net *.split]
pipework has quit [*.net *.split]
angseus_ has quit [*.net *.split]
destructure has joined #ruby
pleiosaur has joined #ruby
Nightmare has joined #ruby
IanMalcolm has joined #ruby
lucas__ has joined #ruby
__dev has joined #ruby
Seich has joined #ruby
thorgi has joined #ruby
ccooke has joined #ruby
klaas has joined #ruby
valeri_ufo has joined #ruby
jolamb has joined #ruby
G has joined #ruby
veloutin has joined #ruby
skade has joined #ruby
`derpy has joined #ruby
hostess has joined #ruby
Nilium has joined #ruby
Nahra has joined #ruby
bjmllr has joined #ruby
nuck has joined #ruby
gigetoo has joined #ruby
Dimik has joined #ruby
MadWasp_ has joined #ruby
Gasher has joined #ruby
ndrst has joined #ruby
joconcepts has joined #ruby
SegFaultAX has joined #ruby
cats has joined #ruby
FastJack has joined #ruby
marienz has joined #ruby
pocketprotector has joined #ruby
dionysus69 has joined #ruby
Ishido has joined #ruby
Olipro has joined #ruby
dh64 has joined #ruby
tekacs has joined #ruby
hahuang65 has joined #ruby
j416 has joined #ruby
lupine has joined #ruby
diegok has joined #ruby
cschneid has joined #ruby
MadWasp_ is now known as MadWasp
moei has joined #ruby
funnel has joined #ruby
nickjj has joined #ruby
ged has joined #ruby
ndrst is now known as Guest60875
nuck is now known as Guest78572
spacemud has joined #ruby
gypsydave5 has joined #ruby
torandu has joined #ruby
timmow has joined #ruby
bastelfreak has joined #ruby
xxneolithicxx has joined #ruby
crank1988 has joined #ruby
Y_Ichiro has joined #ruby
Y_Ichiro has quit [Changing host]
Y_Ichiro has joined #ruby
dopie has joined #ruby
dn` has joined #ruby
sapslaj has joined #ruby
jcp has joined #ruby
Caelum has joined #ruby
GGMethos has joined #ruby
kdisneur has joined #ruby
spaceone has joined #ruby
jord has joined #ruby
tfitts has joined #ruby
Moosashi has quit [Quit: Moosashi]
zacts has joined #ruby
iooner has joined #ruby
jmcc___________ has joined #ruby
aeruder has joined #ruby
Eleeleth has joined #ruby
WebDawg has joined #ruby
c355e3b has joined #ruby
kireevco has joined #ruby
Liam` has joined #ruby
DenSchub has joined #ruby
angseus has joined #ruby
darix has joined #ruby
bttf has joined #ruby
charles81 has joined #ruby
nyuszika7h has joined #ruby
tpendragon has joined #ruby
whathappens has joined #ruby
vali has joined #ruby
ec has joined #ruby
Majost has quit [Ping timeout: 258 seconds]
mrsolo has quit [Ping timeout: 258 seconds]
chandlerbing has quit [Ping timeout: 275 seconds]
pipework has joined #ruby
mroth has joined #ruby
musl has joined #ruby
incomprehensibly has quit [Ping timeout: 258 seconds]
bove has quit [Ping timeout: 258 seconds]
dukedave has quit [Ping timeout: 258 seconds]
Guest4184_______ has quit [Ping timeout: 258 seconds]
jhill has quit [Ping timeout: 258 seconds]
[diecast] has quit [Ping timeout: 258 seconds]
vuoto has quit [Remote host closed the connection]
mostlybadfly has joined #ruby
cardoni has joined #ruby
acalewin has quit [Ping timeout: 258 seconds]
pizzaops has quit [Ping timeout: 258 seconds]
S01780 has quit [Ping timeout: 258 seconds]
jxf has joined #ruby
korben has joined #ruby
<ule> havenwood: you gave me the right answer sorry.. I thought it was jhass
last_staff has quit [Quit: last_staff]
CO2 has joined #ruby
andersh has quit [Ping timeout: 258 seconds]
deeprave has quit [Ping timeout: 258 seconds]
shadowshell has quit [Ping timeout: 258 seconds]
ggherdov has quit [Ping timeout: 258 seconds]
machty has quit [Ping timeout: 258 seconds]
imanc has quit [Ping timeout: 258 seconds]
dmnd has quit [Ping timeout: 258 seconds]
braderhart has quit [Ping timeout: 258 seconds]
olivierjanss has quit [Ping timeout: 258 seconds]
knowtheory has quit [Ping timeout: 258 seconds]
Hates_ has joined #ruby
mrfooo has joined #ruby
<ule> :)
CO2 is now known as Guest76648
meinside has joined #ruby
cyphase has joined #ruby
Radar has joined #ruby
HashNuke___ has quit [Ping timeout: 258 seconds]
caw has quit [Ping timeout: 258 seconds]
swgillespie has quit [Ping timeout: 258 seconds]
nyandoge has quit [Ping timeout: 258 seconds]
angiebadillo has quit [Ping timeout: 258 seconds]
rfv has quit [Ping timeout: 258 seconds]
Lewix has quit [Ping timeout: 258 seconds]
<Guest76648> Is Rupy the most object-oriented language?
acerna has joined #ruby
Radar is now known as Guest81525
yo61 has quit [Ping timeout: 258 seconds]
Majost has joined #ruby
dukedave has joined #ruby
Travis-42 has joined #ruby
mrsolo has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
freeze has joined #ruby
pmarreck has joined #ruby
<jhass> mmh, I guess smalltalk still beats it
<Guest76648> Hi guys, I've only 1 question, Is Ruby the most object-oriented lang?
<rindolf> Guest76648: some people claim Smalltalk is.
<sandelius> yeah I would say Smalltalk
ta_ has quit [Remote host closed the connection]
<sandelius> then ruby
SilverKey has quit [Quit: Halted.]
<havenwood> But isn't Ruby the Smalltalk dialect that survived?
<havenwood> :P
<sandelius> and crystal?
swgillespie has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<jhass> nah crystal is probably below python even if we're honest
spastorino has quit [Ping timeout: 258 seconds]
<Guest76648> Nah, Smalltalk is integrated with it's OS
S01780 has joined #ruby
dmnd has joined #ruby
saneax_AFK has joined #ruby
saneax_AFK is now known as saneax
<jhass> Guest76648: why are you wondering? it's a pretty useless semantic debate
bove has joined #ruby
karmatr0n has joined #ruby
graft has joined #ruby
deeprave has joined #ruby
<havenwood> Guest76648: What's the most romance language?
andersh has joined #ruby
<Guest76648> havenwood: I think it's your mother
acalewin has joined #ruby
xall has quit [Ping timeout: 260 seconds]
<havenwood> Guest76648: Now now.
braderhart has joined #ruby
HashNuke___ has joined #ruby
macsteps has joined #ruby
<Guest76648> havenwood: because that time I climaxed in her pussy, and she told me I love you
<havenwood> !troll Guest76648
Guest76648 was kicked from #ruby by ruby[bot] [trolling is a bannable offense, see http://ruby-community.com/pages/user_rules]
chandlerbing has joined #ruby
LoneHermit has joined #ruby
ornerymoose has quit [Ping timeout: 244 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mostlybadfly has quit [Quit: Connection closed for inactivity]
hackerdude has quit [Remote host closed the connection]
hackerdude has joined #ruby
whathappens has quit [Remote host closed the connection]
Guest4184_______ has joined #ruby
macsteps_ has joined #ruby
macsteps has quit [Read error: Connection reset by peer]
ItSANgo has joined #ruby
hackerdude has quit [Client Quit]
whiteline_ is now known as whiteline
angiebadillo has joined #ruby
shadowshell has joined #ruby
whathappens has joined #ruby
giz|work has quit [Ping timeout: 246 seconds]
fmcgeough has quit [Quit: fmcgeough]
ggherdov has joined #ruby
<shevy> lol
flashpoint9 has quit [Remote host closed the connection]
imanc has joined #ruby
<jhass> shevy: what's funny?
machty has joined #ruby
rfv has joined #ruby
<shevy> the conversation above
<jhass> what's funny about it?
<shevy> the conversation
<jhass> which part?
pizzaops has joined #ruby
catbusters has joined #ruby
<shevy> yep
karmatr0n has quit [Ping timeout: 272 seconds]
symm- has joined #ruby
spastorino has joined #ruby
<jhass> so just don't
jhill has joined #ruby
Bish has joined #ruby
Caerus|Away has joined #ruby
knowtheory has joined #ruby
xall has joined #ruby
eljimmy has joined #ruby
rubirc has joined #ruby
olivierjanss has joined #ruby
Guest81525 is now known as Radar
Radar has quit [Changing host]
Radar has joined #ruby
roamingdog has quit [Remote host closed the connection]
unreal has joined #ruby
Bish has quit [Client Quit]
nyandoge has joined #ruby
edwinvdgraaf has quit []
parshap has joined #ruby
ggherdov has quit [Excess Flood]
fedruantine has joined #ruby
acerna has quit [Read error: Connection timed out]
unreal_ has quit [Ping timeout: 276 seconds]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
edwinvdgraaf has joined #ruby
kspencer has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
[diecast] has joined #ruby
Lewix has joined #ruby
incomprehensibly has joined #ruby
acerna has joined #ruby
edwinvdgraaf has joined #ruby
<parshap> Not super familiar with Ruby. Can someone review this for me? Usage is to determine how many cpu cores a virtual machine should use inside of a Vagrantfile https://gist.github.com/parshap/d523034a3d2768c2f9f07c75fd21d5f5
caw has joined #ruby
<ule> havenwood: How can I use that array.assoc in something like: {"foo" => {"a"=>1, "b"=>2}} ?
<havenwood> >> {"foo" => {"a"=>1, "b"=>2}}.assoc "foo"
<ruby[bot]> havenwood: # => ["foo", {"a"=>1, "b"=>2}] (https://eval.in/594627)
elementaru has joined #ruby
<jhass> that's... rather pointless
<jhass> isn't it?
<havenwood> ule: What are you trying to get at?
yo61 has joined #ruby
gnufied__ has quit [Ping timeout: 250 seconds]
<ule> havenwood: it's the same thing.. but instead of the previsious strucutre it's this one I just sent
matp has joined #ruby
<havenwood> parshap: There are gems that undertake the task or here's a gist that might be handy: https://gist.github.com/jimweirich/5813834
hutch34_ has quit [Ping timeout: 258 seconds]
ggherdov has joined #ruby
<ule> havenwood: now I'm getting undefined method unshift
<havenwood> ule: With what data and what code?
<ule> havenwood: same code you sent me
edwinvdgraaf has quit [Ping timeout: 244 seconds]
nando293921 has quit [Ping timeout: 244 seconds]
jher has quit [Ping timeout: 260 seconds]
<ule> division = search.assoc 'airplane'
<Jenzo> Uptime: 8h51m8s
<ule> airplane = search.assoc 'airplane'
spaceone has left #ruby ["WeeChat 1.3"]
replay has joined #ruby
Xeago_ has quit [Remote host closed the connection]
<ule> search.unshift(search.delete(airplane)) if airplane
<pilne> holy poop! i just think i found my new bible for the next few weeks!
roamingdog has joined #ruby
Xeago_ has joined #ruby
<rindolf> parshap: looks mostly fine - some duplicate code and missing underscores in identifiers.
<jhass> ?xy ule
<ruby[bot]> ule: 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
<rindolf> pilne: which one?
<parshap> rindolf: thanks! care to elaborate or fork the gist?
aryaching has quit [Ping timeout: 260 seconds]
<jhass> ule: in this case your specific solution is "put something in front of the collection" while you're not even sure what your collection looks like. You should ask about how to solve the task that you think you need to put something in "front" for
d0nn1e has quit [Ping timeout: 252 seconds]
<rindolf> parshap: well, numvcpus should be num_virtual_cpus or so.
<pilne> "thoughtful machine learning"
<rindolf> parshap: and you also have Integer(`...`) in two places.
<pilne> rindolf ^
<rindolf> pilne: ah.
d0nn1e has joined #ruby
<parshap> rindolf: got it. should I put the Integer(...) around the whole case expression? i.e,. Integer(case...)
swills_ has quit [Ping timeout: 260 seconds]
<ule> havenwood: converging to to_a works.. I know just need to convert back to hash
<rindolf> parshap: or extract a function.
<parshap> right. ok, thanks
hahuang61 has joined #ruby
<havenwood> ule: to_h
rodfersou has quit [Quit: leaving]
<havenwood> ule: But it's a different question if you have a Hash to start with.
<ule> worked!
rodfersou has joined #ruby
macsteps_ has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
<ule> so.. the question is.. what's the equivalent to unshift() if I want to use on a hash?
[Butch] has quit [Quit: I'm out . . .]
<jhass> ule: please don't ignore what I said
<ule> jhass: I won't
<jhass> you currently are
Xeago_ has quit [Ping timeout: 272 seconds]
UserInNeed has joined #ruby
<ule> jhass: sorry
macsteps has joined #ruby
jher has joined #ruby
LoneHermit has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 264 seconds]
roamingdog has joined #ruby
karmatr0n has joined #ruby
pawnbox has quit [Remote host closed the connection]
jgt has joined #ruby
macsteps has quit [Ping timeout: 260 seconds]
jenrzzz_ has joined #ruby
douglascorrea has joined #ruby
hackerdude has joined #ruby
nrk has joined #ruby
JoL1hAHN has quit [Quit: WeeChat 1.3]
jenrzzz has quit [Ping timeout: 246 seconds]
ocbtec has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 244 seconds]
Silthias1 has joined #ruby
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
gnufied has joined #ruby
centrx has quit [Remote host closed the connection]
tokynet has joined #ruby
Silthias has quit [Ping timeout: 258 seconds]
Moosashi has joined #ruby
S01780 has quit []
Moosashi has quit [Client Quit]
jher has quit [Ping timeout: 244 seconds]
codecop has quit [Remote host closed the connection]
jenrzzz_ has quit [Ping timeout: 276 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
nofxx has quit [Changing host]
ldnunes has quit [Quit: Leaving]
tomphp has joined #ruby
mattwashere has quit [Remote host closed the connection]
hackerdude has quit [Remote host closed the connection]
andrelima has joined #ruby
hackerdude has joined #ruby
mattwashere has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
<andrelima> hello, I want to know why I'm keeping have the error "undefined local variable or method `calcularprejuizo' for GerenciadorDeRisco:Class (NameError)" in my code
<andrelima> here is the code
<andrelima> class GerenciadorDeRisco
<andrelima>
<andrelima> puts "Entre com um preço de abertura:"
<andrelima> preco_abertura = gets.to_f
<andrelima> puts "Entre com um preço de fechamento:"
<andrelima> preco_saida = gets.to_f
helpa has quit [Read error: Connection reset by peer]
<andrelima> puts "Entre com as unidades:"
<andrelima> unidades = gets.to_f
<andrelima> def calcularprejuizo
aupadhye has quit [Ping timeout: 258 seconds]
<andrelima> prejuizo = (preco_abertura - preco_saida) * unidades
<andrelima> prejuizo.to_f
<andrelima> return "Seu prejuízo é de #{prejuizo} dolares"
helpa has joined #ruby
<hxegon> pleeez
<andrelima> end
<hxegon> stop
<hxegon> stop
<ule> wtf
<andrelima> calcularprejuizo
Moosashi has joined #ruby
<andrelima>
<andrelima>
<andrelima> end
<diegoviola> I'm trying to find if a number is multiple of 5 in a array like this: numbers = (1..10).to_a
chopin has joined #ruby
<hxegon> andrelima: do not just paste you're code in here
<hxegon> !gist andrelima
<havenwood> andrelima: Please use gist.github.com to paste.
<ule> andrelima: tinha q ser brazuka mesmo
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
<nofxx> diegoviola, you want true/false or the number in return?
chopin is now known as Guest76856
<baweaver> diegoviola: that's basic math
<diegoviola> nofxx: something like that
madgen has joined #ruby
robot has quit [Quit: I guess that's how it's post to be.]
<hxegon> >> (1..20).select { |n| n % 5 == 0 } # diegoviola
<nofxx> diegoviola, any for true/false, select to get the numbers... just check module ^
aep-shoutlet has quit [Quit: Connection closed for inactivity]
<baweaver> how can you tell if a number is divisible by 5?
<baweaver> or a multiple of, semantics really.
Axy has joined #ruby
neo__ has joined #ruby
solocshaw1 has joined #ruby
<havenwood> diegoviola: another way to write `n % 5 == 0` is `modulo(5).zero?`
Yeomra has quit [Quit: WeeChat 1.5]
<diegoviola> thanks
neo___ has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
solocshaw1 is now known as solocshaw
<nofxx> Any using couchdb/couchrest? don't get how to check for older revisions...
<havenwood> I mean: n.modulo(5).zero?
isberg has joined #ruby
<nofxx> havenwood, nice, didn't new that... something I do (x % y).zero?
<nofxx> sometimes*
<diegoviola> sorry for the basic math question :x
Mia has quit [Ping timeout: 240 seconds]
isberg has quit [Max SendQ exceeded]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<andrelima> please, if anyone can help me
<nofxx> andrelima, whats the error? BR or PT?
<andrelima> br
<andrelima> "undefined local variable or method `calcularprejuizo' for GerenciadorDeRisco:Class (NameError)" in my code
<andrelima> <andrelima> here is the code
<nofxx> Brasiu siu siu aqui tb..... hehe andrelima that's a weird code....
neo__ has quit [Ping timeout: 250 seconds]
<nofxx> andrelima, which tutorial are you following?
<andrelima> No tutorial at all.
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nofxx> andrelima, ok, you don't need class for that, that's not the idea
<nofxx> andrelima, please check 'chris pine learn to program'
<nofxx> andrelima, 1/2 hour there and your understand better what I mean
<andrelima> nofxx ok, I know that I don't have to have a structure for such a code, but it was just to training
<andrelima> noffx, I've declared the method correctly, didn't I?
<nofxx> andrelima, if you just remove the class it'll work... kinda complicated to explain to you the WHY now
xaxisx has left #ruby [#ruby]
yfeldblum has joined #ruby
<nofxx> catch up with the book I told.. it's pretty small and succint andrelima
timanema has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Ping timeout: 250 seconds]
djbkd has quit [Remote host closed the connection]
ornerymoose has joined #ruby
TomyLobo has quit [Ping timeout: 260 seconds]
<wrkrcoop> man, a little bit of reading can solve any problem^^
Moosashi has quit [Quit: Moosashi]
djbkd has joined #ruby
<wrkrcoop> lmao at pasting the code in here
giz|work has joined #ruby
<andrelima> sorry, it was the first time I've consulted here
Moosashi has joined #ruby
centrx has joined #ruby
centrx has quit [Client Quit]
`0ctayn has quit [Read error: Connection reset by peer]
`0ctayn has joined #ruby
karmatr0n has quit []
memorasus1 has joined #ruby
roamingdog has quit [Remote host closed the connection]
<wrkrcoop> jp no biggie
rindolf has quit [Quit: http://www.shlomifish.org/ ; Yay! I'm a llama again.]
arajakul has quit [Ping timeout: 252 seconds]
`0ctayn has quit [Read error: Connection reset by peer]
memorasus has quit [Ping timeout: 252 seconds]
memorasus1 is now known as memorasus
`0ctayn has joined #ruby
sp4rrow has joined #ruby
coffeecupp has joined #ruby
eljimmy has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 244 seconds]
Moosashi has quit [Quit: Moosashi]
arlek has quit [Ping timeout: 264 seconds]
swills_ has joined #ruby
jenrzzz has joined #ruby
chip_ has quit [Ping timeout: 276 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
djbkd has quit [Remote host closed the connection]
rueben has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
smathy_ is now known as smathy_afk
elifoster has quit [Ping timeout: 260 seconds]
Xeago_ has joined #ruby
hahuang61 has joined #ruby
allcentury has joined #ruby
wrkrcoop has left #ruby [#ruby]
LoneHerm_ has joined #ruby
<diegoviola> is there a nicer way to do this? https://gist.github.com/1f081aa41a922074836d1f34697b70c6
hahuang61 has quit [Ping timeout: 272 seconds]
macsteps has joined #ruby
<drbrain> diegoviola: visually nicer? I'm not sure
djbkd has quit [Remote host closed the connection]
xall has quit [Ping timeout: 260 seconds]
urbanmonk has joined #ruby
andrelima has quit [Quit: Saindo]
<drbrain> you could reduce the number of divisions in the worst case by `_, remainder_5 = n.divmod 5; _, remainder_7 = n.divmod 7`
ornerymoose has quit [Quit: ornerymoose]
<drbrain> then check for
<drbrain> then check if both are 0 for % 35, or if one or the other is divisible
djbkd has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<drbrain> I'm not sure if that would go faster or not, since you're trading one % for an extra == 0
djbkd has quit [Remote host closed the connection]
sumobob has joined #ruby
djbkd has joined #ruby
moeabdol has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
nankyokusei has joined #ruby
toretore has quit [Ping timeout: 246 seconds]
robot has joined #ruby
<drbrain> or maybe div_5 = n.divmod(5).last.zero?
mattwashere has quit [Remote host closed the connection]
<drbrain> diegoviola: oh, visually nicer, you could pull the `puts` out of the if
mattwashere has joined #ruby
<drbrain> result = if n % 35 == 0 …; puts result
aegis3121 has quit [Ping timeout: 240 seconds]
SilverKey has joined #ruby
<diegoviola> not sure how I feel about the if checks
Kero has quit [Quit: brb]
speakingcode has quit [Ping timeout: 276 seconds]
LoneHermit has joined #ruby
Kero has joined #ruby
<drbrain> % is never pretty
Kero has quit [Client Quit]
<drbrain> and the n.divmod(5).last.zero? isn't much prettier
moeabdol has quit [Ping timeout: 244 seconds]
<drbrain> (n % 35).zero? is weirder still
nankyokusei has quit [Ping timeout: 260 seconds]
<drbrain> … at least you can give the divmod way a sensible name, so if divisible_5 and divisible_7 then …
Kero has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
mattwashere has quit [Ping timeout: 244 seconds]
kareeoleez has quit [Remote host closed the connection]
dcunit3d has joined #ruby
fedruantine has quit [Max SendQ exceeded]
firstdayonthejob has joined #ruby
ornerymoose has joined #ruby
ciampix has quit [Ping timeout: 276 seconds]
isberg has joined #ruby
al2o3-cr has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 244 seconds]
<diegoviola> drbrain: so something like this maybe? https://gist.github.com/2559b3b47bcb52d1f64b93eb250f182f
ChiefAlexander has quit [Quit: Leaving...]
SilverKey has quit [Quit: Halted.]
mr_rich101 has quit [Ping timeout: 240 seconds]
d0nn1e has quit [Ping timeout: 272 seconds]
solars has quit [Ping timeout: 240 seconds]
Madplatypus has joined #ruby
d0nn1e has joined #ruby
<drbrain> what I like about ↑ is the divisibility, message and printing are separate "paragraphs"
polishdub has quit [Quit: Leaving]
patrick_star_3 has joined #ruby
twe4ked has quit [Ping timeout: 250 seconds]
jrafanie_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
patrick_star has quit [Ping timeout: 246 seconds]
<diegoviola> yeah I like that
<diegoviola> thanks
<diegoviola> I didn't know you could do variable = if ...
<diegoviola> or at least I don't see much code like that around
SilverKey has joined #ruby
<drbrain> it's not common
<drbrain> in some languages if is a "statement" (has no value) instead of an "expression" (has a value)
swills_ has quit [Ping timeout: 260 seconds]
<drbrain> Java and C are in the "statement" camp
<drbrain> case works the same way
jgt has joined #ruby
<lupine> remember when procedure vs function mattered?
postmodern has joined #ruby
<lupine> *cough*pascal*cough*
twe4ked has joined #ruby
<havenwood> diegoviola: just for a variation: https://gist.github.com/havenwood/569af2e526cda3bc0b66da8c5aaf4a00
zenlot has joined #ruby
<diegoviola> :D
arajakul has joined #ruby
ikopico has joined #ruby
zenlot6 has quit [Ping timeout: 264 seconds]
coffeecupp has quit [Quit: Lost terminal]
<diegoviola> thanks
dcunit3d has quit [Ping timeout: 276 seconds]
jgt has quit [Ping timeout: 260 seconds]
<shevy> can we use "SSH File Transfer Protocol" in ruby?
<jhass> sure
twe4ked has quit [Excess Flood]
eggoez has quit [Ping timeout: 258 seconds]
ornerymoose has quit [Quit: ornerymoose]
<shevy> cool
<havenwood> shevy: whatcha ftping?
millerti has joined #ruby
Silthias has quit [Ping timeout: 272 seconds]
<shevy> havenwood I was wondering whether it would be worth to have any secure connection
<shevy> like for the www we have http or https
<shevy> I don't think I have used anything other than old ftp for well ftp
<havenwood> shevy: ahh
<drbrain> there is also an ftps
<jhass> there's FTP over TLS, FTPS
ikopico has quit [Quit: WeeChat 1.5]
<jhass> but it's as terrible as FTP is
<drbrain> not more terrible?
<jhass> probably :P
<jhass> SFTP is a distinct protocol for the same job
minimalism has quit [Quit: minimalism]
<jhass> and should be much saner
<diegoviola> you don't check for 35 to be specific, but you still get that right, can you guys explain? havenwood, drbrain
ltd has quit [Ping timeout: 240 seconds]
<drbrain> diegoviola: 5 * 7 = 35
ltd has joined #ruby
<diegoviola> ah yeah
<diegoviola> :D
eggoez has joined #ruby
Silthias has joined #ruby
solars has joined #ruby
madgen has quit [Ping timeout: 246 seconds]
rbennacer has quit [Remote host closed the connection]
minimalism has joined #ruby
macsteps has quit [Remote host closed the connection]
<al2o3-cr> /\/\(* -)/\/\
<drbrain> unmatched close parenthesis, unexpected $undefined, expecting end-of-input
<al2o3-cr> is hsts bypass still a thing
eggoez has quit [Ping timeout: 264 seconds]
twe4ked has joined #ruby
snath has quit [Ping timeout: 250 seconds]
firstdayonthejob has quit [Ping timeout: 240 seconds]
sepp2k has quit [Read error: Connection reset by peer]
eggoez has joined #ruby
douglascorrea has quit [Remote host closed the connection]
whathappens has quit [Remote host closed the connection]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mattwashere has joined #ruby
neo___ has quit [Remote host closed the connection]
neo__ has joined #ruby
dcunit3d has joined #ruby
Gasher has quit [Ping timeout: 260 seconds]
hahuang61 has joined #ruby
flashpoint9 has joined #ruby
timanema has joined #ruby
mistermocha has quit [Remote host closed the connection]
swills has joined #ruby
neo__ has quit [Remote host closed the connection]
rodfersou has quit [Quit: leaving]
neo__ has joined #ruby
nando293921 has joined #ruby
Synthead has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
hahuang61 has quit [Ping timeout: 250 seconds]
timanema has quit [Ping timeout: 252 seconds]
swills has quit [Max SendQ exceeded]
swills has joined #ruby
<al2o3-cr> >> n = 5; [35.divmod(5^7), 35.divmod(5|7), 35.divmod(5&7), [n]].flatten.inject(:+) == 35
<ruby[bot]> al2o3-cr: # => true (https://eval.in/594660)
xall_ has joined #ruby
millerti has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
whathappens has joined #ruby
ornerymoose has joined #ruby
snath has joined #ruby
cevett has quit [Read error: Connection reset by peer]
Xeago_ has quit [Remote host closed the connection]
cevett has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
xall has joined #ruby
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
xall_ has quit [Ping timeout: 246 seconds]
<al2o3-cr> who was it that said don't IRC when drunk... (never a truer word said)
<shevy> I think it was jhass
<adam12> heh
mr_rich101 has joined #ruby
<diegoviola> how would you test that code with minitest
<diegoviola> like havenwood's code
VeryBewitching has quit [Quit: Konversation terminated!]
Synthead has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Guest76856 has quit [Remote host closed the connection]
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 47.0/20160604131506]]
yfeldblum has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
acangiano has joined #ruby
smathy_afk is now known as smathy_
SCHAAP137 has quit [Ping timeout: 276 seconds]
millerti has joined #ruby
Xeago_ has joined #ruby
macsteps has joined #ruby
Moosashi has joined #ruby
smathy_ is now known as smathy
mattwashere has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 240 seconds]
acangiano has quit [Remote host closed the connection]
mattwashere has joined #ruby
fedruantine has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Client Quit]
Moosashi has quit [Client Quit]
karapetyan has joined #ruby
<karapetyan> hi
<`0ctayn> hey
RegulationD has quit [Remote host closed the connection]
nando294121 has joined #ruby
nando293921 has quit [Read error: Connection reset by peer]
nando294121 has quit [Client Quit]
SCHAAP137 has joined #ruby
<isberg> Any recommendations on extracting json from html?
<jhass> nokogiri or oga
<isberg> nokogiri -> regex -> json ?
<jhass> why regex?
<isberg> To extract the json
<jhass> shouldn't be needed
<isberg> from something like a script tag
<jhass> you got an example?
<isberg> jhass <script>var x = {key: "value"}</script>
<jhass> ?fake
<ruby[bot]> Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
rkazak has joined #ruby
mattwashere has quit [Remote host closed the connection]
<lupine> muh IP
solars has quit [Ping timeout: 244 seconds]
<lupine> u cannot have it
<isberg> Thats what I'm trying to do; extract json from html
<isberg> nothing more, nothing less
<jhass> well in that example a .partition(" = ").last is enough
elementaru has quit [Remote host closed the connection]
<isberg> My misstake. I ment js objects
kirun has quit [Quit: Client exiting]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nando293921 has joined #ruby
mattwashere has joined #ruby
<isberg> Guess I need a regex for json / js objects then
allcentury has quit [Ping timeout: 258 seconds]
koooge has joined #ruby
fullstack has quit [Changing host]
fullstack has joined #ruby
<karapetyan> Trying solve this kata: https://www.codewars.com/kata/reduce-my-fraction/ here is my code: https://gist.github.com/anonymous/58f4021f8ad99299a131bfa809cabf8c tests passed fine, but when submitting, got error Process was terminated. It took longer than 8000ms to complete
<karapetyan> i didn't see any infinite loops
edwardly has quit [Max SendQ exceeded]
Xeago_ has quit [Remote host closed the connection]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
riskish has joined #ruby
dcunit3d has quit [Ping timeout: 250 seconds]
macsteps has quit [Remote host closed the connection]
<drbrain> I don't think it's an infinite loop
<drbrain> but I think for very large numbers you may loop for a long time
<drbrain> do you have examples for fraction[0] and fraction[1]?
<karapetyan> nope
<diegoviola> let's say I have puts "hello world" in a script, but no class/methods, how do I assert that? is there a way to just assert the output of the program or I need to call it from a class/method? (minitest)
<drbrain> diegoviola: without eval, it's hard to assert top-level method calls
<diegoviola> so best to wrap it into a class/method?
<diegoviola> and call that
<karapetyan> drbrain: i have examples, but on this examples all tests passes
<drbrain> diegoviola: there is assert_output for testing stdout and stderr
prestorium has quit [Quit: Leaving]
<drbrain> yes, wrap it
<diegoviola> oh
<drbrain> karapetyan: can I see a test?
sumobob has quit [Read error: Connection reset by peer]
dcunit3d has joined #ruby
biberu has quit [Read error: Connection reset by peer]
<drbrain> I found 7560/3256 in the discussion, too
jgt has joined #ruby
pawnbox has joined #ruby
moeabdol has joined #ruby
<karapetyan> drbrain: i also tried add fraction.reverse! if fraction[0] > fraction[1]
<karapetyan> to avoid many iterations
<karapetyan> but this not help)
jenrzzz has quit [Ping timeout: 276 seconds]
gheegh has joined #ruby
<karapetyan> and i see in task tags recursion... hmm may be i should solve it another way...
tokynet has quit [Quit: Connection closed for inactivity]
douglascorrea has joined #ruby
<drbrain> I think looping on numerator and denominator is too much
<jhass> r = Rational(*fraction)
<jhass> [r.numerator, r.denominator]
<drbrain> you should only need to loop on one of them
<jhass> I guess that doesn't quite count :P
<drbrain> jhass: sure, but it's a kata
hahuang61 has joined #ruby
<jhass> one of the most popular approaches uses http://devdocs.io/ruby~2.3/integer#method-i-gcd
moeabdol has quit [Ping timeout: 244 seconds]
pawnbox has quit [Ping timeout: 272 seconds]
flashpoint9 has quit [Read error: Connection reset by peer]
zeroDi has quit [Quit: WeeChat 1.5]