havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
framlinqp has quit [Remote host closed the connection]
marr has quit []
mois3x has quit [Quit: mois3x]
Icey has joined #ruby
Icey has quit [Remote host closed the connection]
framling has quit [Ping timeout: 256 seconds]
CanTonic has joined #ruby
salug has left #ruby [#ruby]
Yzguy has joined #ruby
Igorshp has joined #ruby
shmilan has quit [Ping timeout: 240 seconds]
saddad has quit [Ping timeout: 250 seconds]
kies^ has joined #ruby
Azure has quit [Ping timeout: 255 seconds]
Igorshp has quit [Ping timeout: 256 seconds]
swgillespie has quit [Read error: Connection reset by peer]
ixti has quit [Ping timeout: 265 seconds]
swgillespie has joined #ruby
zenguy_pc has quit [Ping timeout: 255 seconds]
Yzguy has quit [Quit: Zzz...]
SuzieQueue has quit [Quit: Leaving]
ericjphillips has joined #ruby
Yzguy has joined #ruby
swgillespie has quit [Read error: Connection reset by peer]
stardiviner has joined #ruby
swgillespie has joined #ruby
skweek has joined #ruby
fullofcaffeine has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
chopin has quit [Remote host closed the connection]
moeabdol has joined #ruby
unclouded has quit [Ping timeout: 240 seconds]
fullofcaffeine has quit [Ping timeout: 256 seconds]
zenguy_pc has joined #ruby
moeabdol has quit [Ping timeout: 268 seconds]
chopin has joined #ruby
unclouded has joined #ruby
freerobby has quit [Quit: Leaving.]
jsrn has quit [Ping timeout: 240 seconds]
Akagi201 has joined #ruby
jgpawletko has joined #ruby
Akagi201 has quit [Remote host closed the connection]
Akagi201 has joined #ruby
jsrn has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
to_json has joined #ruby
to_json has quit [Changing host]
to_json has joined #ruby
kies^ has quit [Ping timeout: 246 seconds]
j4cknewt has quit [Remote host closed the connection]
SuzieQueue has joined #ruby
ngscheurich has quit [Ping timeout: 260 seconds]
Yzguy has quit [Quit: Zzz...]
yfeldblu_ has joined #ruby
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 240 seconds]
esauOp has quit []
towski_ has joined #ruby
to_json has quit [Quit: Leaving.]
beauby_ has quit [Ping timeout: 244 seconds]
beauby has joined #ruby
rdavila has joined #ruby
framling has joined #ruby
towski_ has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
kayloos has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopie has joined #ruby
ericjphillips has quit [Quit: Leaving.]
Guest67642 has quit [Ping timeout: 255 seconds]
kalusn has quit [Ping timeout: 246 seconds]
grekkos has quit [Ping timeout: 264 seconds]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rdavila has joined #ruby
htmldrum has quit [Ping timeout: 252 seconds]
rdavila has quit [Client Quit]
lessless has joined #ruby
ledestin has joined #ruby
saddad has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
`tim` has joined #ruby
tenzan has joined #ruby
workmad3 has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
Musashi007 has joined #ruby
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jsuth has joined #ruby
diegoviola has quit [Ping timeout: 255 seconds]
diego1 is now known as diegoviola
workmad3 has quit [Ping timeout: 250 seconds]
K3VA has joined #ruby
shmilan has joined #ruby
stannard has joined #ruby
stannard has quit [Ping timeout: 252 seconds]
clebrun has joined #ruby
Rollabunna has joined #ruby
prateekp has joined #ruby
<prateekp> can i change the author of rubygem
<prateekp> ?
<havenwood> prateekp: See: gem help owner
Rollabunna has quit [Ping timeout: 272 seconds]
Akagi201 has quit [Remote host closed the connection]
willharrison has joined #ruby
Akagi201 has joined #ruby
Igorshp has joined #ruby
<prateekp> should i first add a new owner and then delete the previous owner
DJSpies has joined #ruby
jgt has quit [Ping timeout: 252 seconds]
<havenwood> prateekp: for best practices specifics I'd suggest asking in the #rubygems channel
freerobby has joined #ruby
favadi has joined #ruby
DJSpies has quit [Client Quit]
Igorshp has quit [Ping timeout: 260 seconds]
DJSpies has joined #ruby
<havenwood> prateekp: You can change the email address in the gemspec.
freerobby has quit [Client Quit]
favadi has quit [Client Quit]
<prateekp> ahh and then when i push it, the mail address would be changed easily, right?
diegoaguilar has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
haraoka has joined #ruby
<havenwood> prateekp: Yeah, the gem reflects the latest gemspec.
<prateekp> hmm ok
prateekp has quit [Quit: Page closed]
jsuth has quit [Quit: Lost terminal]
chopin has quit [Remote host closed the connection]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lucky__ has joined #ruby
Lucky__ has quit [Client Quit]
tvon has joined #ruby
Musashi007 has quit [Quit: Musashi007]
DJSpies has quit [Quit: Leaving]
DJSpies has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
DJSpies has quit [Max SendQ exceeded]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DJSpies has joined #ruby
dfinninger has joined #ruby
to_json has joined #ruby
to_json has quit [Changing host]
to_json has joined #ruby
GriffinHeart has joined #ruby
yardenbar has joined #ruby
yardenbar has quit [Remote host closed the connection]
htmldrum has joined #ruby
Lucky__ has joined #ruby
platzhirsch has left #ruby [#ruby]
A124 has quit [Read error: Connection reset by peer]
A124 has joined #ruby
dfinninger has quit [Ping timeout: 264 seconds]
platzhirsch has joined #ruby
platzhirsch has left #ruby [#ruby]
K3VA has quit [Remote host closed the connection]
GriffinHeart has quit [Ping timeout: 272 seconds]
chopin has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
roxtrongo has joined #ruby
GriffinHeart has joined #ruby
tvw has quit [Ping timeout: 256 seconds]
moeabdol has joined #ruby
rkazak has joined #ruby
fullofcaffeine has joined #ruby
noname___ has joined #ruby
noname___ has quit [Client Quit]
freerobby has joined #ruby
BillyJoe has joined #ruby
BillyJoe has quit [Client Quit]
jgpawletko has quit [Quit: jgpawletko]
moeabdol has quit [Ping timeout: 244 seconds]
lessless has joined #ruby
jen_ has joined #ruby
Jayno has quit [Quit: Jayno]
zenguy_pc has quit [Ping timeout: 256 seconds]
<jen_> Anyone here experienced with the Google Adwords API?
fullofcaffeine has quit [Ping timeout: 260 seconds]
mloy has quit [Ping timeout: 260 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
pathrocle has quit [Remote host closed the connection]
nertzy has quit [Quit: This computer has gone to sleep]
rdavila has joined #ruby
Asher has joined #ruby
tynamite_ has quit [Ping timeout: 265 seconds]
XxionxX has quit [Ping timeout: 246 seconds]
Yzguy has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
jen_ has quit [Quit: jen_]
zenguy_pc has joined #ruby
htmldrum has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
tubuliferous_ has joined #ruby
GriffinHeart has joined #ruby
Yzguy has quit [Quit: Zzz...]
Yzguy has joined #ruby
ReK2 has quit [Quit: Konversation terminated!]
JJM has joined #ruby
p1k has joined #ruby
roxtrongo has quit [Remote host closed the connection]
Igorshp has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
user083 has quit [Quit: leaving]
moonman has joined #ruby
roxtrongo has joined #ruby
grekkos has joined #ruby
solocshaw has joined #ruby
nertzy has joined #ruby
astrobun_ has joined #ruby
skweeke has joined #ruby
Igorshp has quit [Ping timeout: 250 seconds]
kayloos has quit [Remote host closed the connection]
baweaver has joined #ruby
Musashi007 has quit [Quit: Musashi007]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stardiviner has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
to_json has quit [Quit: Leaving.]
andersoldahl has quit [Quit: My Mac has gone to sleep.]
skweeke has quit [Quit: Leaving]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
p1k has quit [Quit: Leaving]
Jayno has joined #ruby
Feyn has joined #ruby
Soda has joined #ruby
stardiviner has joined #ruby
juanca_ has joined #ruby
`tim` has joined #ruby
juanca_ has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Yzguy has quit [Quit: Zzz...]
rkazak has quit [Quit: Sleep.....ing....]
GriffinHeart has quit [Remote host closed the connection]
gregoriokusowski has quit [Quit: gregoriokusowski]
favadi has joined #ruby
willharrison has joined #ruby
gener1c_ has joined #ruby
chouhoulis has quit [Ping timeout: 268 seconds]
GriffinHeart has joined #ruby
ramfjord has quit [Quit: leaving]
workmad3 has joined #ruby
gener1c has quit [Ping timeout: 256 seconds]
braincrash has quit [Quit: bye bye]
workmad3 has quit [Ping timeout: 252 seconds]
chopin has quit [Remote host closed the connection]
grekkos has quit [Ping timeout: 268 seconds]
moeabdol has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
braincras has joined #ruby
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
juanca_ has joined #ruby
diegoviola is now known as Guest82509
diego1 is now known as diegoviola
Guest82509 has quit [Ping timeout: 240 seconds]
moeabdol has quit [Ping timeout: 240 seconds]
clebrun has quit [Ping timeout: 264 seconds]
JJM has quit [Read error: Connection reset by peer]
favadi has quit [Read error: Connection reset by peer]
moei has joined #ruby
moeabdol has joined #ruby
arup_r has joined #ruby
balazs_ has quit [Ping timeout: 265 seconds]
_wldcordeiro has quit [Quit: WeeChat 0.4.2]
Musashi007 has joined #ruby
Yzguy has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
Jayno has quit [Quit: Jayno]
moonman has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
roxtrongo has quit [Remote host closed the connection]
Rollabunna has joined #ruby
Musashi007 has quit [Quit: Musashi007]
bihi has quit [Quit: Bye!]
bihi has joined #ruby
gix has quit [Ping timeout: 250 seconds]
Rollabunna has quit [Ping timeout: 264 seconds]
opensource_ninja has quit [Quit: opensource_ninja]
Soda has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
bihi has quit [Ping timeout: 250 seconds]
gix has joined #ruby
Musashi007 has joined #ruby
blue_deref has quit [Ping timeout: 256 seconds]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
moeabdol has joined #ruby
Ghost66 has joined #ruby
swgillespie has joined #ruby
swgillespie has quit [Client Quit]
shmilan has quit [Ping timeout: 246 seconds]
Yzguy has quit [Quit: Textual IRC Client: www.textualapp.com]
Ghost66 has left #ruby [#ruby]
moeabdol has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
freerobby has quit [Quit: Leaving.]
GriffinHeart has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
GriffinHeart has joined #ruby
trajing has joined #ruby
darkf has joined #ruby
pepperbreath1 has quit [Read error: Connection reset by peer]
giuseppesolinas has quit [Quit: Leaving]
giuseppesolinas_ has quit [Quit: Leaving]
chouhoulis has quit [Ping timeout: 256 seconds]
shinnya has quit [Ping timeout: 250 seconds]
minimalism has quit [Quit: leaving]
stannard has joined #ruby
DJSpies has quit [Quit: Leaving]
GriffinHeart has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pepperbreath has joined #ruby
postmodern has quit [Quit: Leaving]
stannard has quit [Ping timeout: 246 seconds]
minimalism has joined #ruby
Rickmasta has joined #ruby
kp666 has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupp3tm4st3r has joined #ruby
zenguy_pc has quit [Ping timeout: 256 seconds]
moeabdol has joined #ruby
aryaching has joined #ruby
PsuzeannePsy has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
Suzeanne has joined #ruby
trajing has quit [Ping timeout: 256 seconds]
trajing has joined #ruby
framling has quit [Ping timeout: 256 seconds]
juanca_ has quit [Remote host closed the connection]
juanca_ has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
SuzieQueue has quit [Ping timeout: 268 seconds]
roxtrongo has joined #ruby
PsuzeannePsy has quit [Ping timeout: 260 seconds]
gambl0re has quit [Ping timeout: 256 seconds]
blue_deref has joined #ruby
arescorpio has joined #ruby
moeabdol has joined #ruby
gambl0re has joined #ruby
subscope has joined #ruby
framling has joined #ruby
moeabdol has quit [Ping timeout: 256 seconds]
braincrash has joined #ruby
faces has joined #ruby
gambl0re has quit [Read error: Connection reset by peer]
gambl0re has joined #ruby
face has quit [Ping timeout: 240 seconds]
zenguy_pc has joined #ruby
braincras has quit [Ping timeout: 250 seconds]
Musashi007 has quit [Quit: Musashi007]
rdavila has quit [Max SendQ exceeded]
gambl0re has quit [Ping timeout: 264 seconds]
juanca_ has quit [Remote host closed the connection]
zenguy_pc has quit [Ping timeout: 240 seconds]
zenguy_pc has joined #ruby
IrishGringo has joined #ruby
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
et09 has joined #ruby
fullofcaffeine has joined #ruby
<et09> with an array of objects, what is the fastest way to turn it into an object of format obj.prop => obj
<et09> for a unique prop of those objects
saddad has quit [Ping timeout: 264 seconds]
Igorshp has joined #ruby
rismoney1 has quit [Ping timeout: 260 seconds]
favadi has joined #ruby
bMalum has joined #ruby
rismoney1 has joined #ruby
hakunin has joined #ruby
Akagi201 has quit [Remote host closed the connection]
hakunin_ has quit [Ping timeout: 250 seconds]
Igorshp has quit [Ping timeout: 268 seconds]
agent_white has quit [Ping timeout: 240 seconds]
bMalum has quit [Ping timeout: 252 seconds]
Coldblackice has quit [Ping timeout: 246 seconds]
stardiviner has quit [Ping timeout: 260 seconds]
Coldblackice has joined #ruby
fullofcaffeine has quit [Ping timeout: 246 seconds]
stardiviner has joined #ruby
agent_white has joined #ruby
gambl0re has joined #ruby
workmad3 has joined #ruby
agent_white has quit [Client Quit]
bMalum has joined #ruby
gambl0re has quit [Ping timeout: 255 seconds]
mloy has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
agent_white has joined #ruby
clebrun has joined #ruby
roxtrongo has quit [Read error: Connection reset by peer]
roxtrongo has joined #ruby
chouhoulis has joined #ruby
andersoldahl has joined #ruby
GriffinHeart has joined #ruby
fullofcaffeine has joined #ruby
bootstrappm has joined #ruby
andersoldahl has quit [Client Quit]
chouhoulis has quit [Ping timeout: 250 seconds]
gambl0re has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
jordanm has joined #ruby
tenzan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
musl has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
aryaching_ has joined #ruby
aryaching_ has quit [Client Quit]
aryaching has joined #ruby
sanjayu has joined #ruby
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
gexe has joined #ruby
tvon has quit [Ping timeout: 244 seconds]
et09 has quit [Quit: leaving]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
mloy has quit [Ping timeout: 252 seconds]
blue_deref has quit [Quit: Taking myself out of hear.]
Asher has quit [Quit: Leaving.]
aryaching has quit [Ping timeout: 260 seconds]
musl has quit [Quit: WeeChat 1.1.1]
mloy has joined #ruby
Ropeney has quit [Ping timeout: 240 seconds]
musl has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ropeney has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
fullofcaffeine has quit [Read error: Connection reset by peer]
gix has quit [Quit: Client exiting]
fullofcaffeine has joined #ruby
Akagi201 has joined #ruby
musl has quit [Client Quit]
spuk_ has joined #ruby
astrobun_ has joined #ruby
gix has joined #ruby
baweaver has joined #ruby
spuk has quit [Ping timeout: 250 seconds]
broccoli has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
toy has joined #ruby
moeabdol has joined #ruby
bMalum has quit [Quit: bMalum]
jud has quit [Quit: Leaving]
Rickmasta has joined #ruby
dhjondoh has joined #ruby
nemo_ has joined #ruby
spuk_ has quit [Ping timeout: 240 seconds]
broccoli has quit [Client Quit]
lubarch has joined #ruby
moeabdol has quit [Ping timeout: 255 seconds]
beauby has quit [Read error: Connection reset by peer]
ledestin has quit [Max SendQ exceeded]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
skcin7 has quit [Ping timeout: 240 seconds]
skcin7 has joined #ruby
Rollabunna has joined #ruby
fullofcaffeine has quit [Ping timeout: 255 seconds]
jud has joined #ruby
jud has quit [Changing host]
jud has joined #ruby
beauby has joined #ruby
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
towski_ has joined #ruby
yxhuvud has quit [Ping timeout: 240 seconds]
chobcohobo has joined #ruby
trautwein has joined #ruby
leslie_ has joined #ruby
Rollabunna has quit [Ping timeout: 246 seconds]
leslie_ has left #ruby [#ruby]
Suzeanne has quit [Quit: Leaving]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
Rollabunna has joined #ruby
Feyn has quit [Ping timeout: 265 seconds]
Musashi007 has joined #ruby
tenzan has joined #ruby
lessless has joined #ruby
tagrudev has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
GnuYawk has quit [Ping timeout: 268 seconds]
Rollabunna has quit [Ping timeout: 260 seconds]
bMalum has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jas02 has joined #ruby
moeabdol has joined #ruby
moeabdol has quit [Client Quit]
favadi has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty> moin
tkuchiki has quit [Remote host closed the connection]
<Radar> moin mon
moeabdol has joined #ruby
Feyn has joined #ruby
chrissonar has joined #ruby
houhouli_ has joined #ruby
tkuchiki has joined #ruby
Pupp3tm4st3r has joined #ruby
lubarch has quit [Quit: leaving]
chouhoulis has joined #ruby
houhoulis has quit [Ping timeout: 246 seconds]
dhjondoh has quit [Quit: dhjondoh]
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
kies^ has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
Lucky__ has joined #ruby
U7se6 has joined #ruby
fullofcaffeine has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
Pupp3tm4st3r has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fullofcaffeine has quit [Ping timeout: 240 seconds]
houhouli_ has quit [Remote host closed the connection]
stannard has joined #ruby
symm- has joined #ruby
GriffinHeart has joined #ruby
kimegede has joined #ruby
purplexed^ has quit [Ping timeout: 256 seconds]
zenguy_pc has quit [Ping timeout: 246 seconds]
stannard has quit [Ping timeout: 264 seconds]
lsmola_ has joined #ruby
arescorpio has quit [Quit: Leaving.]
<agent_white> \o
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
amclain has quit [Quit: Leaving]
dhjondoh has joined #ruby
mary5030 has quit [Remote host closed the connection]
fedexo has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
zenguy_pc has joined #ruby
yxhuvud has joined #ruby
mary5030 has quit [Ping timeout: 268 seconds]
ruurd has joined #ruby
grekkos has joined #ruby
bigkevmcd has joined #ruby
ledestin has joined #ruby
iateadonut has joined #ruby
eGGsha has joined #ruby
IrishGringo has quit [Ping timeout: 246 seconds]
VeryBewitching has quit [Quit: Konversation terminated!]
swgillespie has joined #ruby
krz has joined #ruby
workmad3 has joined #ruby
Rollabunna has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
towski_ has quit [Remote host closed the connection]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ych has joined #ruby
ych is now known as Guest81117
above has joined #ruby
codecop has joined #ruby
kalusn has joined #ruby
howdoi has joined #ruby
tesuji has joined #ruby
Suzeanne has joined #ruby
adac has joined #ruby
acke has joined #ruby
rkazak has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
roller has joined #ruby
<roller> Hi is there a channel name for ruby on rails ?
<bMalum> join #rubyonrails roller
beauby has quit [Ping timeout: 264 seconds]
<roller> Great thansk
<roller> Thanks
<bMalum> Your Welcome :)
symm- has quit [Ping timeout: 250 seconds]
SenpaiSilver has quit [Quit: Leaving]
n008f4g_ has joined #ruby
TomyWork has joined #ruby
Pupp3tm4_ has joined #ruby
chouhoulis has joined #ruby
Cyther_ has joined #ruby
hmsimha has joined #ruby
Cyther has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
GriffinHeart has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ledestin has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
niftylettuce has quit [Quit: Connection closed for inactivity]
Pupp3tm4st3r has quit [Ping timeout: 256 seconds]
chouhoulis has quit [Ping timeout: 255 seconds]
solars has joined #ruby
fullofcaffeine has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
khebbie has joined #ruby
swgillespie has joined #ruby
kalusn has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.2]
SCHAAP137 has joined #ruby
sapslaj has joined #ruby
DEA7TH has joined #ruby
andikr has joined #ruby
Rollabunna has quit [Remote host closed the connection]
kwd has joined #ruby
Suzeanne is now known as SuziesQueue
favadi has joined #ruby
favadi has quit [Max SendQ exceeded]
aganov has joined #ruby
Rollabunna has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has quit [Ping timeout: 260 seconds]
joufflu has quit [Read error: Connection reset by peer]
sundhell has joined #ruby
CanTonic has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lamer14449848587 has joined #ruby
_Cyther_ has joined #ruby
symm- has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
roller has quit [Quit: Page closed]
devbug_ has quit [Read error: Connection reset by peer]
Guest81117 has quit [Ping timeout: 246 seconds]
bayed has joined #ruby
dopie has quit [Ping timeout: 244 seconds]
diegoaguilar has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
avelldiroll has quit [Quit: WeeChat 0.3.8]
edin has joined #ruby
Cyther_ has quit [Ping timeout: 260 seconds]
symm- has quit [Ping timeout: 250 seconds]
techsethi has joined #ruby
lkba_ has quit [Remote host closed the connection]
XxionxX has joined #ruby
lamer14449848587 has quit [Remote host closed the connection]
avelldiroll has joined #ruby
lessless has joined #ruby
keen_____ has joined #ruby
keen____ has quit [Ping timeout: 256 seconds]
ruurd has joined #ruby
grekkos has quit [Ping timeout: 272 seconds]
Pupeno has quit [Quit: Leaving...]
agent_white has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mloy> [02:57] roller has joined #RubyOnRails
<mloy> true story
agent_white has joined #ruby
ruurd has quit [Client Quit]
ndrei has joined #ruby
j2FunOnly has joined #ruby
sinkensabe has joined #ruby
nofxx has quit [Ping timeout: 244 seconds]
TomyWork has quit [Remote host closed the connection]
j2FunOnly has left #ruby [#ruby]
hays has quit [Ping timeout: 244 seconds]
nemo_ has quit [Remote host closed the connection]
nemo_ has joined #ruby
ElCapitanMarklar has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
kies^ has quit [Ping timeout: 250 seconds]
_joes__ has quit [Remote host closed the connection]
Igorshp has joined #ruby
fullofcaffeine has joined #ruby
User458764 has joined #ruby
armyriad has joined #ruby
chobcohobo has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
CloCkWeRX has quit [Ping timeout: 268 seconds]
agent_white has joined #ruby
_joes__ has joined #ruby
ruurd has quit [Client Quit]
agent_white has left #ruby [#ruby]
atmosx_laptop has joined #ruby
yeticry has quit [Ping timeout: 272 seconds]
fullofcaffeine has quit [Ping timeout: 240 seconds]
yeticry has joined #ruby
Igorshp has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
TomyWork has joined #ruby
Hounddog has joined #ruby
arup_r has quit [Ping timeout: 244 seconds]
framling has quit [Read error: Connection reset by peer]
framlinqp has joined #ruby
framlinqp has quit [Read error: Connection reset by peer]
DEA7TH has quit [Quit: DEA7TH]
ruurd has joined #ruby
htmldrum has quit [Ping timeout: 265 seconds]
arup_r has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
Uo9er_ has joined #ruby
kalusn has joined #ruby
jgt has joined #ruby
tubuliferous_ has quit [Ping timeout: 265 seconds]
U7se6 has quit [Ping timeout: 244 seconds]
nemo__ has joined #ruby
nemo_ has quit [Read error: Connection reset by peer]
nemo___ has joined #ruby
CloCkWeRX has joined #ruby
nemo_ has joined #ruby
dikaio has quit [Quit: ........]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Couch has quit [Ping timeout: 252 seconds]
vondruch has joined #ruby
nemo__ has quit [Ping timeout: 240 seconds]
yardenbar has joined #ruby
marr has joined #ruby
clebrun has quit [Ping timeout: 240 seconds]
nemo___ has quit [Ping timeout: 272 seconds]
zenguy_pc has quit [Ping timeout: 240 seconds]
chthon has joined #ruby
deps has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
XxionxX has quit [Quit: Leaving.]
XxionxX has joined #ruby
yfeldblu_ has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
baweaver has quit [Remote host closed the connection]
dcarmich has joined #ruby
Couch has joined #ruby
chthon has quit [Quit: Ex-Chat]
XxionxX has quit [Client Quit]
ruurd has quit [Quit: ZZZzzz…]
sanjayu has quit [Remote host closed the connection]
unshadow has joined #ruby
Moblin has joined #ruby
haxrbyte_ has joined #ruby
trosborn has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
blaxter has joined #ruby
edin has quit [Quit: leaving]
yfeldblum has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
workmad3 has joined #ruby
Ebok has quit [Ping timeout: 240 seconds]
<adaedra> Hi
zenguy_pc has joined #ruby
Feyn has quit [Quit: Leaving]
subscope has joined #ruby
Peg-leg has joined #ruby
mark2 has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
workmad3 has quit [Ping timeout: 272 seconds]
nemo_ has quit [Remote host closed the connection]
joonty has joined #ruby
Guest37417 is now known as nw
ruurd has joined #ruby
sanjayu has joined #ruby
CloCkWeRX has joined #ruby
leafybasil has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 255 seconds]
Ropeney has joined #ruby
Musashi007 has quit [Quit: Musashi007]
agent_white has joined #ruby
ElCapitanMarklar has quit [Ping timeout: 256 seconds]
wpp has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
agent_white has left #ruby [#ruby]
spider-mario has joined #ruby
SHyx0rmZ has joined #ruby
stan has joined #ruby
karapetyan has joined #ruby
<unshadow> A question to you guys, it
vigintas has joined #ruby
parus has quit [Ping timeout: 244 seconds]
<unshadow> it's more of a general programming\security question, Is there a way to protect an object in memory from access by a local Admin\root user ? some kind of obfuscation or encryption method to allow me to store a string or another object in memory
nemo_ has joined #ruby
<adaedra> Here we go again
alcipir has joined #ruby
<apeiros> short answer: no
Ropeney has quit [Read error: No route to host]
jgt has joined #ruby
<unshadow> adaedra: no hahahah I promise this is a general question for an open-source project I work on
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
ruby-lang606 has joined #ruby
<unshadow> apeiros: I see, thanks.
<EdwardIII> how come ruby uses -> for the anon. function in lambda syntax? why doesn't it just use a block like everything else?
_joes__ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<apeiros> EdwardIII: ->(){} is a shortcut for lambda { || }
<apeiros> (which is essentially a method taking a block, like everything else)
<EdwardIII> ah ok
<EdwardIII> the keyword lambda wasn't sigitastic enough eh? hehe
<apeiros> though, blocks use proc semantics. lambdas don't.
<EdwardIII> "this looks like python! get rid of it!!"
<apeiros> lambda isn't a keyword.
<EdwardIII> ah actually it's probably worth me understanding that better
<EdwardIII> is it a method on Kernel?
<apeiros> yes
<EdwardIII> apeiros: how come it doesn't show up in Kernel.instance_methods?
<ruby-lang606> hey everyone, quick question, I have a hash something like this: hashh => { string1: %q{ bla bla }, string2: %{bla bla 2} } and i want string one to sometimes contain different string based on a token passed to it :property, I know we can use #{} with a string but how do we implement a condition on a string, for example; string = " something here #{if somecondition puts "something else to follow" end} " I know this is wrong but anyw
<apeiros> EdwardIII: all of Kernel's own instance methods are private
<adaedra> ruby-lang606: for something short, you can use a ternary expression
<EdwardIII> apeiros: so what happens when i run 'irb'? a new Kernel object gets instantiated and i'm like... inheriting from that??
<apeiros> ruby-lang606: while most users on irc appreciate one long message over dozens of short messages, there's a limit on IRC ;-)
<ruby-lang606> adaedra: the actuall string is long, but I want to abend something at the end of it
<adaedra> use String#<< in a condition then
terlar has joined #ruby
<ruby-lang606> apeiros: too many rules man to keep up with, sorry next time I'll send shorter
leafybas_ has joined #ruby
<apeiros> EdwardIII: a new `main` is instantiated, which is an instance of Object, and Object includes Kernel.
<EdwardIII> apeiros: if there's a doc i should be reading instead of bugging you feel free to point me in the right direction heh
<apeiros> EdwardIII: sure. but I'm not aware of docs explaining those things. might check Kernel and Object's class docs, though.
<EdwardIII> ah so in a oneliner, if i `p self` it shows me main
<EdwardIII> that's pretty elite
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
jgt has quit [Quit: WeeChat 1.2]
chouhoulis has joined #ruby
trosborn has quit [Quit: trosborn]
platzhirsch has joined #ruby
<EdwardIII> hrm but self.methods doesn't show lambda - maybe i'm not understanding properly? main < Object < Kernel right? so i can use, let's say, lambda or puts because main has Kernel as it's ancestor?
alcipir has quit [Ping timeout: 250 seconds]
atmosx_laptop has quit [Quit: Lost in trance]
<apeiros> .methods and .instance_methods both don't show private methods by default
TheHodge has joined #ruby
<apeiros> .private_methods and .private_instance_methods do
Spami has joined #ruby
atmosx has quit [Quit: WeeChat 0.4.4-dev]
awk_ is now known as awk
<EdwardIII> ok and when i run a script i'm actualy inside 'main', not accessing an instance of it, so i have access to private methods?
chouhoulis has quit [Ping timeout: 244 seconds]
_Cyther_ has quit [Read error: Connection reset by peer]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tenzan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
krz has joined #ruby
<unshadow> apeiros: adaedra: is there something like this for ruby ? : https://msdn.microsoft.com/en-us/library/system.security.securestring.aspx?f=255&MSPPError=-2147217396
<apeiros> EdwardIII: main isn't a class, so you can't even have an instance of main ;-)
<apeiros> EdwardIII: and yes, no explicit receiver -> access to private methods
freezevee has joined #ruby
<EdwardIII> apeiros: hmm i'm a little confused. is there ever another case where you have no explicit receiver? or just when you're at the program entry point (i.e. myscript.rb?)
<EdwardIII> and if main isn't a class what is it?
<apeiros> unshadow: this is an OS level problem + whether you have a binding to the OS level solution.
leat2 has quit [Remote host closed the connection]
<EdwardIII> in reality if you're using ruby i guess securestring wouldn't work anyway
<apeiros> EdwardIII: everywhere where you call methods on the same object, you can do it without an explicit receiver
leat2 has joined #ruby
last_staff has joined #ruby
<bougyman> it's not at all the same as that .net implementation.
mg^^ has joined #ruby
<bougyman> but it might accomplish what you're looking for.
<EdwardIII> unshadow: where's this string coming from? user input? or somewhere else?
Musashi007 has joined #ruby
<apeiros> bougyman: this is misleading, though. there are no guarantees that your input string doesn't still reside in memory.
<bougyman> apeiros: that's what i'm looking at now.
<bougyman> this is a pretty simplistic implementation.
tkuchiki has quit [Read error: Connection reset by peer]
<bougyman> but it's got potential.
atomical has joined #ruby
<apeiros> afaik unless you have OS level support for this, you don't really have a chance
tkuchiki has joined #ruby
M-mistake has quit [Ping timeout: 250 seconds]
Pisuke has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
<apeiros> not a security expert, though. only enough half-knowledge to be dangerous.
Puffball has quit [Read error: Connection reset by peer]
<EdwardIII> java have a SecureString implementation
WillAmes has quit [Ping timeout: 250 seconds]
MyMind has quit [Ping timeout: 250 seconds]
mg^ has quit [Ping timeout: 250 seconds]
<EdwardIII> i looked into this for PHP but basically if your input is coming from the web you're wasting your time, because it comes via webserver then middleware before it even hits your language. so they're floating around in memory (probably, they did in my tests) and there's nothing you can really do about it
ruby-lang606 has quit [Quit: Page closed]
<EdwardIII> except get a SecureStringWebserver and SecureStringMiddleware before you even look at your language
Gnomethrower has quit [Ping timeout: 250 seconds]
joneshf-laptop has quit [Ping timeout: 250 seconds]
Puffball has joined #ruby
cscheib has quit [Remote host closed the connection]
cscheib has joined #ruby
joneshf-laptop has joined #ruby
Gnomethrower has joined #ruby
xybre has quit [Ping timeout: 250 seconds]
djcp has quit [Ping timeout: 250 seconds]
<bougyman> looks like yama helps with this a bit
<bougyman> a few other linux security modules can help protect your ram from other users, even from the superuser.
DEA7TH has joined #ruby
<bougyman> but you're right, apeiros, if it's not OS level a language can only obscure, not eliminate the problem.
programmerq has quit [Ping timeout: 250 seconds]
<unshadow> bougyman: What security modules in Linux you know of that can "protect your ram from other users, even from the superuser." ? This might help me too
nemo__ has joined #ruby
<bougyman> unshadow: yama
<bougyman> it's not default in many distros, but it's available.
<bougyman> we use it by default in void, but not at its highest level (where the superuser cannot access users' ram)
<bougyman> I think we ship at level 2
leafybas_ has quit [Remote host closed the connection]
matled_ has joined #ruby
leafybasil has joined #ruby
davedev24 has quit [Remote host closed the connection]
matled_ has quit [Quit: Page closed]
<bougyman> be careful with level 3 and apps which expect ptrace/dumpable to be available.
nemo_ has quit [Ping timeout: 240 seconds]
Testo has joined #ruby
nofxx has quit [Ping timeout: 250 seconds]
M-mistake has joined #ruby
chihhsin has quit [Ping timeout: 240 seconds]
<bougyman> once you're in level 3 there's no way out other than a reboot (making sure it's < 3 on the rebooted kernel)
<unshadow> bougyman: This is really cool ! this might be great for what I want, thanks :)
<bougyman> no worries.
chihhsin has joined #ruby
xybre has joined #ruby
programmerq has joined #ruby
<Testo> bougymanfe
<Testo> typo :)
Rollabunna has quit [Remote host closed the connection]
alcipir has joined #ruby
cornerma1 has joined #ruby
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
krisquigley has joined #ruby
nisstyre has quit [Ping timeout: 244 seconds]
htmldrum has joined #ruby
User458764 has joined #ruby
Igorshp has joined #ruby
User458764 has quit [Client Quit]
htmldrum has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
Testo has quit [Ping timeout: 268 seconds]
djcp has joined #ruby
khebbie has joined #ruby
eGGsha has quit [Ping timeout: 272 seconds]
workmad3 has quit [Client Quit]
fullofcaffeine has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
Spami has quit [Quit: This computer has gone to sleep]
n008f4g_ has quit [Ping timeout: 256 seconds]
rodfersou has joined #ruby
haraoka has quit [Ping timeout: 250 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
futilegames has joined #ruby
fullofcaffeine has quit [Ping timeout: 244 seconds]
dhjondoh has joined #ruby
workmad3 has joined #ruby
futilegames has quit [Read error: Connection reset by peer]
futilegames has joined #ruby
machan has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<machan> Is it possible to create your own named regex character class e.g. [[:upper:]]
<bougyman> not without getting down to the source of oniguruma and doing it, afaik.
<bougyman> apeiros: i'm interested in your answer to that one. I've never considered it.
<machan> Ookies :) thanks
roxtrong_ has joined #ruby
norc has joined #ruby
futilegames has quit [Remote host closed the connection]
<norc> Is there some elegant shorthand for [].each { |e| yield(e) } ?
chouhoulis has joined #ruby
alcipir has quit [Ping timeout: 255 seconds]
roxtrongo has quit [Ping timeout: 256 seconds]
rdark has joined #ruby
Igorshp has quit [Remote host closed the connection]
nisstyre has joined #ruby
Moblin is now known as Ebok
Spami has joined #ruby
<ddv> norc: tap
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
<machan> why tap dat
U7se6 has joined #ruby
<norc> Oh Im silly. I can just do [].each(&proc). :)
<ddv> ass.....
chouhoulis has quit [Ping timeout: 272 seconds]
Uo9er_ has quit [Ping timeout: 244 seconds]
adac has quit [Ping timeout: 246 seconds]
lessless has joined #ruby
lessless has quit [Client Quit]
gregoriokusowski has joined #ruby
yashinbasement has joined #ruby
zenguy_pc has quit [Ping timeout: 240 seconds]
<machan> norc: shorter, I don't know if necessarily clearer
eGGsha has joined #ruby
codecop has quit [Remote host closed the connection]
Rickmasta has joined #ruby
bruce_lee has joined #ruby
araujo_ has joined #ruby
<karapetyan> NameError: uninitialized constant Xs
<karapetyan> from (irb#1):3
khebbie has quit [Ping timeout: 244 seconds]
eGGsha has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
shredding has joined #ruby
araujo has quit [Ping timeout: 260 seconds]
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> karapetyan: is there a question?
<karapetyan> jhass: sorry, no.
zenguy_pc has joined #ruby
caliostro has joined #ruby
<EdwardIII> why would you do [].each(&proc)?
<EdwardIII> would that be inside something like def my_func(&proc)?
arup_r has quit [Quit: Leaving]
gexe_ has joined #ruby
solocshaw has joined #ruby
<norc> EdwardIII: You dont have to explicitely name the block in the argument defition, but yeah.
soosfarm has quit [Ping timeout: 265 seconds]
<Ebok> What is a good ruby editor application? I've been using cloud9 for awhile, however, it's time. Windows10 or Mac, dont mind which people suggest. Preferably it'll have some color coding and be free.
<norc> Ebok: I use sublime under windows, and vi for osx/linux.
<jhass> ugh, the editor question. everybody hide!
<EdwardIII> heh that seems kind of confusing, "def insert_block_here"
<Ebok> Thankyou
<EdwardIII> at least in perl you'd have shift @_; heh
gexe has quit [Ping timeout: 264 seconds]
GriffinHeart has quit [Remote host closed the connection]
G has quit [Quit: Leaving to put on my tinfoil hat]
G has joined #ruby
Gnomethrower has joined #ruby
<norc> EdwardIII: What do you mean with confusing? Blocks?
ldnunes has joined #ruby
<EdwardIII> norc: just the callback argument being passed non-explicitly (maybe just confusing to me)
weihan has joined #ruby
GriffinHeart has joined #ruby
<norc> EdwardIII: You should get used to it. Proc creation can be expensive, which is why people sometimes even forego binding the block to a proc object.
pawnbox has joined #ruby
<norc> The yield/block_given? are your only indication that the function expects a block then. ;-)
<EdwardIII> binding the block to a proc object?
<EdwardIII> sorry i'm very new to ruby
avril14th has joined #ruby
<EdwardIII> what would that look like? doing and then forgoing?
<EdwardIII> *foregoing
<avril14th> Hello, does anyone around here has already managed to connect to a SQL Server on Azure using Tiny tds gem?
<norc> Take a read there. :)
* EdwardIII reads
blackmesa has quit [Quit: WeeChat 1.3]
wat_ has joined #ruby
ruby-lang595 has joined #ruby
ruby-lang595 has quit [Client Quit]
blackmesa has joined #ruby
patrick__ has joined #ruby
blackmesa has quit [Client Quit]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Igorshp has quit [Remote host closed the connection]
daffy_duck has quit [Ping timeout: 268 seconds]
<apeiros> bougyman: which one? creating your own regex char class?
<bougyman> yeah
tno has joined #ruby
<apeiros> I think the answer you've given is correct. You'd have to modify oniguruma (though, I think its name even changed by now)
solocshaw has quit [Ping timeout: 246 seconds]
<wat_> Hello, everyone. Recently I stumbled upon some strange behaviour of Time#parse. Here is the irb session to reproduce http://pastebin.com/fQBJER7f. So I was wondering why does Time#parse behaves like that? Is there a well-known reason for this inconsistent(IMO) behaviour? Or is it a well-known bug? Something else?
<ruboto> wat_, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/3e9162ca59053cd902b7
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
stamina has joined #ruby
chouhoulis has joined #ruby
Zai00 has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Pupp3tm4_ has quit [Remote host closed the connection]
shmilan has joined #ruby
<norc> wat_: My initial guess is that it greatly simplifies the parsing. %d matches 0..31 without regard of the month.
roxtrong_ has quit [Remote host closed the connection]
blackmesa has joined #ruby
<shevy> lol wat_ why did you pick that nick
avril14th has quit [Read error: Connection reset by peer]
<wat_> Because when I found it I was like: "Wat?".
chouhoulis has quit [Ping timeout: 260 seconds]
adac has joined #ruby
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has joined #ruby
<norc> shevy: You are such a hateful person.
bryanray has joined #ruby
roxtrong_ has joined #ruby
karapetyan has quit [Ping timeout: 255 seconds]
nemo__ has quit [Remote host closed the connection]
nemo_ has joined #ruby
<apeiros> wat_: unrelated to your problem: use strptime if you know the format, not .parse.
* apeiros thinks .parse should be renamed to .guess
<norc> wat_: In all fairness, it beats how strptime from time.h behaves to these things.
nemo_ has quit [Read error: Connection reset by peer]
<jhass> apeiros: why not throw_chicken_bones
<norc> (That thing will give you a 30th of February back, whether that makes any sense at all or not)
tkuchiki has quit [Remote host closed the connection]
shmilan has quit [Ping timeout: 240 seconds]
Igorshp has joined #ruby
nemo_ has joined #ruby
shinenelson has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
trosborn has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
lipoqil has joined #ruby
<wpp> I hope this is not the worst question in the world, but could someone explain to me what the Garbage collector inside an MRI process is? Everything I read about the GC is just referring to it as "the GC".
karapetyan has joined #ruby
doddok has joined #ruby
<jhass> wpp: any background with other languages?
<wpp> As in is the GC a process-wide construct or is it shared between multiple ps?
Pupp3tm4st3r has joined #ruby
<wpp> jhass yes
phutchins has joined #ruby
<jhass> which?
SuziesQueue has quit [Ping timeout: 240 seconds]
<wpp> jhass c
<jhass> excellent, that makes it easier
<jhass> so, when you do Foo.new, or just "foo" + "bar", you create objects, those need (heap) memory, clear?
<wpp> jhass yep
Rollabunna has joined #ruby
khebbie has quit [Ping timeout: 264 seconds]
<jhass> the GC tracks the allocations for that memory, then it regularly checks if there are still any references to those objects
Suzeanne has joined #ruby
<jhass> and if not, frees the memory or reuses it for new objects
<wpp> jhass uhh I should have prefaced, I get what the gc is doing
<wpp> jhass I'm just wondering what exactly it is?
bkxd has joined #ruby
<jhass> part of the VM
<shevy> wpp when did you start with ruby?
<jhass> it gets its time to run regularly and called when memory is needed
<jhass> you could see it as a sophisticated malloc implementation
<wpp> jhass ok so it is per process right? Every mri/rails c/ruby xyz has its own GC?
<jhass> sure
<jhass> it's managing a processes memory after all
nemo_ has quit [Remote host closed the connection]
<wpp> jhass Ok so how come when I start a new irb session and run GC.count is already at 28?
Igorshp has quit [Remote host closed the connection]
<jhass> because quite a few things happen if you do so
<jhass> readline is initialized, rubygems is loaded and what not
<wpp> jhass aah so just starting irb session triggers 28 GC runs
<jhass> yeah
senayar has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 260 seconds]
mxrguspxrt has joined #ruby
phutchins has quit [Quit: WeeChat 1.1.1]
senayar has joined #ruby
nemo_ has joined #ruby
<wpp> jhass Oh boy haha I was wondering howcome its is so high, how can I find out when the GC is invoked?
<wpp> jhass (thanks for explaining this to me btw)
phutchins has joined #ruby
blackmesa has joined #ruby
<wpp> shevy actually a while back, but never dealt with GC. howcome?
<jhass> wpp: it's usually not done by user code
krz has quit [Ping timeout: 246 seconds]
<shevy> wpp Austria!
<wpp> shevy yes?
Bellthoven has joined #ruby
dhjondoh has joined #ruby
krz has joined #ruby
pwnd_nfsw has quit [Ping timeout: 246 seconds]
<wpp> wpp ok. can I just bother you a bit longer?
joncol has joined #ruby
<wpp> jhass ok. can I just bother you a bit longer?
<wpp> (I'm an idiot)
krz has quit [Client Quit]
HoloIRCUser has joined #ruby
phutchins has quit [Client Quit]
<joncol> How can I check if a Addrinfo object (returned by Socket.ip_address_list) is wireless or not?
phutchins has joined #ruby
<jhass> wpp: well, just continue asking questions to the channel, I'll answer when I have time and knowledge ;)
gregf has quit [Quit: WeeChat 1.3]
senayar has quit [Remote host closed the connection]
<wpp> So I'm actually debugging a memory leak and ran into this post http://samsaffron.com/archive/2015/03/31/debugging-memory-leaks-in-ruby, the author recommends running a gem called rb_trace which takes a memory dump of a running process
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
<wpp> * heap dump
phutchins has quit [Client Quit]
GriffinHeart has quit [Remote host closed the connection]
p0wn3d__ has joined #ruby
phutchins has joined #ruby
<wpp> With that heap dump you can have a look at GC generation and object count over the liftime of the process
phutchins has quit [Client Quit]
Rollabunna has joined #ruby
araujo_ has quit [Quit: Leaving]
<wpp> The author has at least 22 GC generations in his dump, BUT when I have a look at mine I only get generation 0.
phutchins has joined #ruby
<wpp> And the dump is always around the 90m mark
araujo has joined #ruby
<wpp> 90mb
Bellthoven has quit [Ping timeout: 256 seconds]
gregf has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<jhass> that sounds like every single thing is still referenced, which seems unlikely, mh
<jhass> ruby version? The GC changed quite a bit with each 2.0, 2.1 and 2.2
<wpp> jhass 2.2.3p173
Rollabunna has quit [Read error: Connection reset by peer]
<jhass> I'm afraid I was myself rather unsuccessful in debugging memory leaks in Ruby, maybe someone else has more experience, stick around
Rollabunna has joined #ruby
<wpp> jhass I will, could you just explain how you come to the conclusion that every single thing is still referenced?
joncol has quit [Quit: leaving]
Pumukel has joined #ruby
<wpp> could just be that the gem only dumps the first generation?
<jhass> well, I never looked at the gem so I wouldn't know
<wpp> jhass ah ok
wat_ has quit [Quit: Page closed]
<shevy> wpp I and manveru are from Austria as well; I think the author of kramdown also is
akakios has joined #ruby
<jhass> that's from the author of the current GC
<adaedra> shevy: when doing a list of persons, I is always last.
<wpp> jhass thanks for that!
<wpp> shevy manveru servus :) where exactly?
<manveru> wpp: i'm near kufstein atm
<shevy> adaedra only in baguette country
<adaedra> shevy: it's getting old. You don't have other words?
<shevy> adaedra I have plenty of words but I pick the very most fitting
<manveru> shevy is the embodyment of conservatism, don't expect new words from him :P
<adaedra> That's kind of annoying, really.
Igorshp has joined #ruby
<shevy> It's all good fun!
<manveru> damn, embodiment... embodyment is a band name :(
<shevy> manveru were you not working in Germany not too terribly long ago?
<manveru> i live in germany
<shevy> ah
<manveru> but it's a 10 minute walk over the border, so not much difference
<manveru> and i'm starting a company in austria
sdothum has joined #ruby
karapetyan has quit [Remote host closed the connection]
<shevy> \o/
karapetyan has joined #ruby
unreal has quit [Ping timeout: 268 seconds]
mxrguspxrt has quit [Ping timeout: 240 seconds]
unreal has joined #ruby
Icey has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
nemo_ has quit [Remote host closed the connection]
hmsimha has quit [Ping timeout: 265 seconds]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
<j416> can I rspec expect a result from a block?
<j416> i.e. I have a method that takes a block, and I want to verify that the result of that block is passed properly to another method
armyriad has quit [Read error: Connection reset by peer]
khebbie has joined #ruby
<manveru> you want to test whether the block was called?
armyriad has joined #ruby
<j416> manveru: not just that, I want to grab the result of the block and check that it is passed on properly
<manveru> what does that mean?
<j416> say I have: def foo(&block); bar(yield); end;
<j416> I want to say expect(Foo).to receive(:bar).with ..
<j416> and I want to verify that whatever I passed in gets passed on
<j416> hm
<j416> maybe I do't have to
<j416> yes, I do hm
<jhass> yeah, sounds a bit like you're testing implementation
<jhass> but
<j416> because I give a specific block, and it gets formatted
<manveru> well, you can stub temporarily
AugustoCesar has joined #ruby
<j416> sorry for being so abstract, I will come back with a proper example once I have time to write one, off to a meeting will be back soon with more info!
chouhoulis has joined #ruby
<j416> thanks so far.
<jhass> thing = double; expect(Foo).to receive(:bar).with(thing); Foo.foo { thing }
<j416> hmm.
<j416> will think. thanks.
AugustoCesar has left #ruby [#ruby]
asxbr has joined #ruby
bMalum has quit [Quit: bMalum]
machan has quit [Ping timeout: 240 seconds]
Uo9er_ has joined #ruby
<EdwardIII> i've not done anything significant in smallktalk, but ruby feels a bit like smalltalk, it looks like the code samples and feels like it matches up with a lot of the concept david west talks about
atomical has joined #ruby
<EdwardIII> plus the message passing? i think?
gagrio has quit [Ping timeout: 250 seconds]
<shevy> sorta
<shevy> it's like smalltalk coming into the scripting families
chouhoulis has quit [Ping timeout: 256 seconds]
<shevy> so php perl python ruby and perhaps lua
<Takumo> Hi all
<manveru> that'd be gst :)
pathrocle has joined #ruby
<Takumo> with Builder is it simple to put the same namespace on *all* tags?
gregoriokusowski has quit [Ping timeout: 268 seconds]
<EdwardIII> one thing i remember DW saying in a talk is that main() doesn't match nicely with OO
<EdwardIII> i guess he thinks all the objects should be spun up... somewhere? at boot time?
<EdwardIII> when the VM boots i guess
<shevy> smalltalk is weird, you have some great stuff like Squeak which I really think is a great idea but it just does not feel as if people write a script, then distribute it simply (in smalltalk)
<EdwardIII> but it seems to be very, very GUI-based which doesn't suit me at all
hmsimha has joined #ruby
<manveru> seriously, check out gst
<shevy> it's like as if they tried to do a whole operating system with squeak
U7se6 has quit [Ping timeout: 244 seconds]
<EdwardIII> well i think that's kind of the point
<EdwardIII> i did have a little look at that
<shevy> EdwardIII did you also watch the old Alan Kay lecture/talks?
<EdwardIII> shevy: no not yet
<EdwardIII> got any recommendations?
<bougyman> gst hasn't been updated in 2 years?
<manveru> looks like :(
ixti has joined #ruby
<EdwardIII> i think object thinking is a fantastic book but also... it feels a bit like DW doesn't live in the real world
<manveru> haven't used it in ages either
<EdwardIII> like just saying "java is dumb because you have main()" isn't really helpful
hectortrope has quit [Remote host closed the connection]
<EdwardIII> many people have to write java every day - tell them how to make it fit in with your OO design ideas, don't just shoot it down
asxbr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bougyman> i'm not uncomfortable with shooting java down
<EdwardIII> what can the programmers do? make HSBC rewrite their online banking systems in smalltalk? not likely
<shevy> EdwardIII dunno... the older ones were better, he is getting a bit old these days, like the history of how they worked and built interfaces for humans. probably not any just singular lecture, just over the years what Alan said
<bougyman> no, but the architect can.
<bougyman> and programmers can buy the architect drinks.
<EdwardIII> he's not going to do that though is he heh
hectortrope has joined #ruby
<bougyman> im' doing this right now for barclays.
<bougyman> so it can be done.
<EdwardIII> i remember when the BBC migrated everything on iplayer from perl to PHP... i wonder how they feel about that decision now heh
<EdwardIII> bougyman: really?
<shevy> they really went to php?
<bougyman> yes really.
<EdwardIII> shevy: smalltalk?
<bougyman> no, not to php.
<EdwardIII> bougyman: smalltalk?
<bougyman> ruby and python.
<EdwardIII> shevy: yeah it was a while ago, they may have migrated again since. but they said it was basically because they couldn't hire perl devs, they couldn't find them
<EdwardIII> i went to a con where one of the main perl consultants was, he said it wasn't really like that, it was more political than anything
<bougyman> the problem with smalltalk for a large company is really the mindshare available.
<manveru> looks like bonzinip hasn't touched gst for about two years at all... and he was the only one keeping it alive
<shevy> weird
<EdwardIII> but to move from perl to php, that sucks heh. going through all that pain to migrate stuff & retrain, then the end result is you're in php
gregoriokusowski has joined #ruby
<EdwardIII> bougyman: well and 3rd party libs i guess
<bougyman> finding hundreds of devs who are proficient in it and willing to live in Cheshire, in barclays case.
<EdwardIII> i have so many questions heh
<EdwardIII> why ruby AND python?
<bougyman> python for analytics, ruby for infrastructure and web.
<shevy> yeah php is also annoying but strangely enough, I also went from perl to php and I was more productive in php compared to my perl days, at the very least for web-stuff. I wrote perl .cgi scripts and that was quite annoying back then
<EdwardIII> python for analytics because of matlib and stuff like that?
<bougyman> python is just much better at... yep, you said it.
<bougyman> scipy
<EdwardIII> shevy: things are a lot better now with Moose & Catalyst
<EdwardIII> there are some really smart people doing perl
<shevy> I dunno, I have a hard time wanting to do any perl after ruby
<bougyman> ipython makes it easy for ruby to orchestrate all of the python stuff.
Igorshp has quit [Remote host closed the connection]
<manveru> you tried perl6 yet?
<EdwardIII> shevy: well yeah heh
zenguy_pc has quit [Ping timeout: 256 seconds]
<shevy> it sorta is perl 5... but Ulti from #bioinformatics also showed this:
<shevy> <Ulti> "/usr/share/dict/words".IO.words.classify(*.lc.comb.sort.join).sort(-*.value)[0].say this is why I like Perl 6 :P
<shevy> so I am confused
diegoaguilar has joined #ruby
<EdwardIII> bougyman: how are you going to communicate between ruby & python? ruby stores data in a db then python+matlib+matplotlib picks it up? or purely through ipython?
Coldblackice has quit [Ping timeout: 244 seconds]
big|bad|wolf has joined #ruby
HoloIRCUser has quit [Ping timeout: 252 seconds]
<shevy> I didn't try perl6 yet but that syntax above is quite nice
ndrei has quit [Ping timeout: 250 seconds]
<shevy> *. or so is a lambda or something
<EdwardIII> i dunno it's a strange one
<EdwardIII> a lot of the people in the perl community seem to have beef with perl6
<EdwardIII> like they almost prefer how esoteric perl5 is
<manveru> well, they're used to perl5 by now
<bougyman> EdwardIII: through ipython
<manveru> and perl6 is a totally new language basically
<EdwardIII> i guess they kind of fear an eternal september which they can avoid by having a langauge which, yes, is kind of strange sometimes
<manveru> god knows why they didn't pick a new name for it
ndrei has joined #ruby
lea has quit [Ping timeout: 240 seconds]
<manveru> there are still people sticking to python2... and python3 is a much smaller evolution
<manveru> then again, we still get people in this channel using ruby 1.8.6 and the like
<EdwardIII> yeees that's true i suppose
<EdwardIII> i feel bad for the guys at twisted
uber has quit [Ping timeout: 244 seconds]
<DEA7TH> What is a better way to write this? https://gist.github.com/VelizarHristov/a0d5da21d6bece87a36e
<DEA7TH> I need the first number not in nums
big|bad|wolf has quit [Client Quit]
big|bad|wolf has joined #ruby
<manveru> hmm
AlphaAtom has joined #ruby
nemo_ has joined #ruby
<manveru> i = 0; while nums.include?(i); i+=1; end
gagrio has joined #ruby
arup_r has joined #ruby
<jhass> nums.max + 1 ?
<jhass> well, for some assumption about the set
<manveru> nah
<DEA7TH> right. forgot a simple while loop :D
unshadow has quit [Quit: leaving]
ajb is now known as ajb-
<DEA7TH> yeah that's fine
<manveru> i = 0; i+=1 while nums.include?(i); return i
techsethi has quit [Quit: techsethi]
bkxd has quit [Ping timeout: 265 seconds]
chriscarpenter12 has joined #ruby
<manveru> unless your nums are always a range, then jhass has the better solution
<jhass> set.size.times.find {|i| !set.include?(i) }
weihan_ has joined #ruby
<manveru> (nums.size.times.to_a - nums).first
weihan_ has quit [Max SendQ exceeded]
weihan has quit [Ping timeout: 252 seconds]
<manveru> but that uses way more memory
<jhass> well, wanted to avoid the array
chriscarpenter12 has left #ruby [#ruby]
<jhass> DEA7TH: what's this for? where does the set come from?
weihan has joined #ruby
chriscarpenter12 has joined #ruby
<manveru> yours does a linear search N*N times
<jhass> Set#include? is O(1)
<DEA7TH> jhass: it's a list of IDs
weihan has quit [Max SendQ exceeded]
<manveru> oh, it's not an array?
<manveru> damn :P
<DEA7TH> I want to create the same ID, like SQL DBs do
<jhass> DEA7TH: I didn't ask "what's this"
<DEA7TH> it's an array yes
chriscarpenter12 has left #ruby [#ruby]
chriscarpenter12 has joined #ruby
<jhass> in your gist you wrote it's a set, now what is it?
chriscarpenter12 has left #ruby [#ruby]
<DEA7TH> it's a Ruby set
weihan has joined #ruby
<manveru> so it's a hash
<DEA7TH> Ruby has a Set type
<DEA7TH> or are you asking what does the set represent?
<manveru> yeah, it's implemented via an hash though
<jhass> DEA7TH: most RDBMS just increment a counter that they store alongside
<jhass> that is they don't fill holes
<DEA7TH> I'm dealing with a file system, not a DB though
<DEA7TH> yeah I know
<jhass> so nums.max + 1
<DEA7TH> I prefer to fill holes though
<jhass> why?
<DEA7TH> since my use case is very different. DBs get huge
<DEA7TH> I expect to be usually at... 1 or 2
zenguy_pc has joined #ruby
uber has joined #ruby
gusTester has joined #ruby
hostess_ is now known as hostess
weihan has quit [Max SendQ exceeded]
weihan has joined #ruby
adac has quit [Ping timeout: 246 seconds]
Igorshp has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
lea has joined #ruby
weihan has quit [Max SendQ exceeded]
<DEA7TH> set.size.times.find {|i| !set.include?(i) } is really nice, but doesn't work if the set doesn't have gaps, i.e. [0, 1].to_set
<DEA7TH> so I'll have to go with the 3-liner
ndrei has joined #ruby
weihan has joined #ruby
kimegede has quit [Quit: Leaving...]
weihan has quit [Max SendQ exceeded]
weihan has joined #ruby
<apeiros> jhass: dunno, I like Time.guess more than Time.throw_chicken_bones :)
lxsameer has quit [Quit: Leaving]
varunwachaspati has joined #ruby
<jhass> DEA7TH: .find(set.size+1)
kimegede has joined #ruby
Zai00_ has joined #ruby
Zai00 has quit [Ping timeout: 264 seconds]
Zai00_ is now known as Zai00
IrishGringo has joined #ruby
techsethi has joined #ruby
Guest50 has joined #ruby
adac has joined #ruby
weihan has quit [Max SendQ exceeded]
bootstrappm has quit [Quit: Leaving.]
weihan has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has quit [Ping timeout: 255 seconds]
gregoriokusowski has quit [Ping timeout: 252 seconds]
tagrudev has quit [Read error: Connection reset by peer]
tvw has joined #ruby
subscope has joined #ruby
tagrudev has joined #ruby
<apeiros> hrm. writing a gem foo-bar with (of course) means it wants to be required as 'foo/bar'. add a file foo-bar.rb which requires 'foo/bar' and emits a warning - yay/nay?
IrishGringo has quit [Ping timeout: 240 seconds]
FastJack_ has quit [Quit: leaving]
zacts has quit [Read error: Connection reset by peer]
FastJack has joined #ruby
sanjayu has quit [Ping timeout: 260 seconds]
aufi has joined #ruby
<shevy> I'd love to say that foo-bar.rb is ugly but I wrote even uglier filenames myself
jokester has quit [K-Lined]
voxxit has quit [K-Lined]
pipework has quit [K-Lined]
<shevy> I even had things like CompileProgram.rb
<apeiros> it is ugly, and wrong. hence the warning. at the moment I tend to "nay".
norc has quit [Ping timeout: 246 seconds]
<apeiros> shevy: I'd actually prefer the convention to be CompileProgram.rb
Igorshp has quit [Remote host closed the connection]
tkuchiki has joined #ruby
pipework has joined #ruby
<apeiros> or rather: Foo/BarBaz.rb for Foo::BarBaz
zacts has joined #ruby
Igorshp has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
basiles has joined #ruby
sinkensabe has quit [Remote host closed the connection]
voxxit has joined #ruby
machan has joined #ruby
symbol has joined #ruby
voxxit has quit [K-Lined]
krisquigley has quit [Read error: Connection reset by peer]
krisquig_ has joined #ruby
chouhoulis has joined #ruby
gagrio has quit [Ping timeout: 244 seconds]
patrick__ has quit [Quit: Leaving]
<adaedra> There's the problem when you have BarBaz and Barbaz
patrick__ has joined #ruby
patrick__ has quit [Read error: Connection reset by peer]
daffy_duck has joined #ruby
rwilcox has joined #ruby
ebbflowgo has joined #ruby
Igorshp has quit [Remote host closed the connection]
<shevy> giving things a proper name is one of the most difficult aspects of programming
tvon has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
phutchins has quit [Ping timeout: 260 seconds]
idefine has joined #ruby
nickjj_ has joined #ruby
adac has quit [Ping timeout: 252 seconds]
synthroid has joined #ruby
loren has joined #ruby
djcp has quit [Quit: WeeChat 1.0.1]
nickjj has quit [Ping timeout: 244 seconds]
but3k4 has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sankaber has joined #ruby
cdg has joined #ruby
`tim` has joined #ruby
loren321 has joined #ruby
djcp has joined #ruby
fullofcaffeine has joined #ruby
sinkensabe has joined #ruby
shinenelson has quit [Quit: Connection closed for inactivity]
tvon has quit [Ping timeout: 265 seconds]
freezevee has quit []
loren has quit [Ping timeout: 264 seconds]
techsethi has quit [Ping timeout: 256 seconds]
dorei has joined #ruby
Jardayn has joined #ruby
gagrio has joined #ruby
fullofcaffeine has quit [Ping timeout: 268 seconds]
nemo_ has quit [Remote host closed the connection]
adac has joined #ruby
AlphaAtom has joined #ruby
yardenbar has quit [Ping timeout: 264 seconds]
toy has quit [Quit: Leaving...]
saddad has joined #ruby
whippythellama has joined #ruby
trosborn has quit [Quit: trosborn]
akakios has quit [Remote host closed the connection]
anisha has joined #ruby
AlphaAtom has quit [Client Quit]
pusewicz has joined #ruby
machan has quit [Changing host]
machan has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
eGGsha has joined #ruby
Voker57 has joined #ruby
Igorshp has joined #ruby
tvon has joined #ruby
Bellthoven has joined #ruby
anisha has quit [Ping timeout: 252 seconds]
loren321 has left #ruby ["Leaving"]
ndrei has quit [Ping timeout: 272 seconds]
IrishGringo has joined #ruby
yashinbasement has quit [Ping timeout: 272 seconds]
sgambino has joined #ruby
Bellthoven has quit [Ping timeout: 256 seconds]
tvon has quit [Client Quit]
ndrei has joined #ruby
anisha has joined #ruby
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
trautwei_ has joined #ruby
haylon has joined #ruby
bMalum has joined #ruby
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trautwein has quit [Ping timeout: 268 seconds]
troulouliou_div2 has joined #ruby
saddad has quit [Ping timeout: 255 seconds]
skweek has quit [Ping timeout: 240 seconds]
inteq has quit [Remote host closed the connection]
podman has joined #ruby
hagabaka has quit [Ping timeout: 256 seconds]
rkazak has joined #ruby
weihan has quit [Ping timeout: 240 seconds]
tubuliferous_ has joined #ruby
kimegede has quit [Quit: Leaving...]
mag42c has joined #ruby
tagrudev has quit [Remote host closed the connection]
dvxam_ has joined #ruby
tubuliferous_ has quit [Ping timeout: 260 seconds]
machan has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
renanoronfle has joined #ruby
machan has joined #ruby
mary5030 has quit [Remote host closed the connection]
wpp has quit [Quit: ZZZzzz…]
aganov has quit [Quit: Leaving]
mary5030 has joined #ruby
U7se6 has joined #ruby
Peg-leg has quit [Quit: Leaving.]
pandaant has joined #ruby
<apeiros> adaedra: you have the same problem with current ruby convention (but not with the rails convention)
spew has joined #ruby
<apeiros> adaedra: also IMO a non-issue because that should not happen anyway.
<adaedra> yeah, right
wpp has joined #ruby
<adaedra> but shouldn't it be barbaz.rb and bar_baz.rb?
agent_white has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
<agent_white> Happy Monday everyone! DO THE THING. https://www.youtube.com/watch?v=YneYiO1r0Ow
Uo9er_ has quit [Ping timeout: 265 seconds]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
Emmanuel_Chanel has joined #ruby
Cyther has joined #ruby
dopamean_ has quit [Ping timeout: 240 seconds]
null_ref has joined #ruby
unshadow has joined #ruby
purplexed^ has joined #ruby
fullofcaffeine has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgpawletko has joined #ruby
Guest50 has joined #ruby
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
ngscheurich has joined #ruby
zenguy_pc has quit [Ping timeout: 255 seconds]
skweek has joined #ruby
fullofcaffeine has quit [Ping timeout: 268 seconds]
idefine has quit [Remote host closed the connection]
hal_9000_ has joined #ruby
tubuliferous_ has joined #ruby
khebbie has quit [Ping timeout: 268 seconds]
<unshadow> Hi Guys, Just wanted to share my SSL Cipher Scanner --> https://github.com/bararchy/ruby-SSLscanner , If anyone would like to contribute and help out that would be awsome :)
rewzn has quit [Quit: WeeChat 1.1]
chrissonar has quit [Remote host closed the connection]
<apeiros> unshadow: um, you should read the gem guide with regards to naming. also top-level "Scanner" class is IMO not a good idea.
<apeiros> but I guess you didn't build it as a gem anyway :)
Motoservo has quit [Quit: Motoservo]
tkuchiki has quit [Remote host closed the connection]
shinenelson has joined #ruby
<unshadow> apeiros: Yeha, maybe I should create it as a gem so people could "gem install ssl-scanner" or something, I'm sure it will be easier, thanks for the idea :)
NeverDie has joined #ruby
jokester has joined #ruby
leafybas_ has joined #ruby
prefixed has joined #ruby
vigintas has quit [Ping timeout: 250 seconds]
vigintas has joined #ruby
freerobby has joined #ruby
idefine has joined #ruby
<apeiros> unshadow: IMO yes
voxxit has joined #ruby
riotjones has quit [Remote host closed the connection]
NeverDie has quit [Max SendQ exceeded]
baweaver has joined #ruby
leafybasil has quit [Ping timeout: 250 seconds]
beauby has joined #ruby
voxxit has quit [K-Lined]
jokester has quit [K-Lined]
zenguy_pc has joined #ruby
NeverDie has joined #ruby
idefine has quit [Remote host closed the connection]
achamian has joined #ruby
tubuliferous_ has quit [Ping timeout: 265 seconds]
astrobun_ has quit [Ping timeout: 268 seconds]
symbol has quit [Ping timeout: 240 seconds]
<caliostro> what is te preferred testing framework for ruby?
<apeiros> caliostro: minitest, rspec
treehug88 has joined #ruby
<apeiros> ?toolbox caliostro
<ruboto> caliostro, https://www.ruby-toolbox.com is a website which lists lots of gems, topically organized
<apeiros> ^ and there you can find a list of (almost) all available options
baweaver has quit [Ping timeout: 246 seconds]
dfinninger has joined #ruby
balazs_ has joined #ruby
<caliostro> interesting
<caliostro> thank you
balazs_ has quit [Read error: Connection reset by peer]
achamian has quit [Remote host closed the connection]
nickjj_ is now known as nickjj
kies^ has joined #ruby
tenderlove has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
weihan has joined #ruby
chouhoulis has joined #ruby
banister has joined #ruby
weihan has quit [Max SendQ exceeded]
weihan has joined #ruby
dopamean_ has joined #ruby
sundhell has quit [Quit: WeeChat 1.3]
to_json has joined #ruby
to_json has quit [Changing host]
to_json has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_wh1te has joined #ruby
gigetoo has joined #ruby
achamian has joined #ruby
freeze has joined #ruby
ismaelga has joined #ruby
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
atmosx has joined #ruby
agent_wh1te is now known as agent_white
agent_white has quit [Changing host]
agent_white has joined #ruby
Alina-malina has quit [Ping timeout: 250 seconds]
umgrosscol has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
loc22 has joined #ruby
krz has joined #ruby
polishdub has joined #ruby
arthurix has joined #ruby
dfinninger has quit [Remote host closed the connection]
I has joined #ruby
I is now known as Guest60428
rippa has joined #ruby
pdoherty has quit [Ping timeout: 256 seconds]
ismaelga has quit [Remote host closed the connection]
aryaching has joined #ruby
idefine has quit [Remote host closed the connection]
Gnomethrower has joined #ruby
arthurix_ has quit [Ping timeout: 240 seconds]
ismaelga has joined #ruby
GriffinHeart has joined #ruby
acke has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
astrobun_ has joined #ruby
solocshaw has joined #ruby
mondayrain has joined #ruby
rodfersou is now known as rodfersou|lunch
idefine has joined #ruby
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
cwong_on_irc has joined #ruby
inteq has joined #ruby
rkazak has quit [Ping timeout: 240 seconds]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
HoloIRCUser has joined #ruby
jas02 has quit [Quit: jas02]
diegoaguilar has quit [Ping timeout: 264 seconds]
nemo_ has joined #ruby
fullofcaffeine has joined #ruby
Asher has joined #ruby
dfinninger has joined #ruby
devdazed has joined #ruby
hagabaka has joined #ruby
chopin has joined #ruby
ndrei has quit [Ping timeout: 268 seconds]
kwd has quit [Quit: kwd]
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
_mak has joined #ruby
mondayrain has quit [Ping timeout: 250 seconds]
idefine has quit [Remote host closed the connection]
ndrei has joined #ruby
`tim` has joined #ruby
Alina-malina has joined #ruby
hagabaka has quit [Remote host closed the connection]
_mak has quit [Remote host closed the connection]
tenderlove has quit [Read error: Connection reset by peer]
idefine has joined #ruby
blackmesa has quit [Quit: WeeChat 1.3]
blackmesa has joined #ruby
to_json has left #ruby [#ruby]
wldcordeiro has joined #ruby
tenderlove has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
gnarld_ has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
slawrence00 has joined #ruby
ruby-lang132 has joined #ruby
idefine has quit [Ping timeout: 252 seconds]
<ruby-lang132> Anyone knows why I am not receiving a response from a server through TCP sockets? My question is posted here http://stackoverflow.com/questions/33213209/ruby-tcpsocket-request-not-getting-response
chopin has quit [Ping timeout: 250 seconds]
codecop has joined #ruby
arthurix_ has joined #ruby
Akagi201 has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
achamian has quit [Remote host closed the connection]
idefine has joined #ruby
stannard has joined #ruby
<treehug88> ruby-lang132: server probably thinks you're not done with your request and hasn't started sending response. Just a guess, I'm not familiar with that protocol
arthurix has quit [Ping timeout: 240 seconds]
fullofcaffeine has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
davedev24 has joined #ruby
<ruby-lang132> I added EOT at the end, so the request should be finished.
<treehug88> it may be seeking a different "EOT" marker, or something after it. Post info about the spec if you want more assistance
tenderlove has quit [Ping timeout: 240 seconds]
tenderlove has joined #ruby
chopin has joined #ruby
birett has joined #ruby
relix has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
<jhass> ruby-lang132: so you get your connection immediately closed after the connection attempt?
machan has quit [Ping timeout: 246 seconds]
anisha has joined #ruby
karapetyan has joined #ruby
hagabaka has joined #ruby
Rickmasta has joined #ruby
<jhass> ruby-lang132: first of all .puts appends a "\n"
firstdayonthejob has joined #ruby
kp666 has quit [Read error: Connection reset by peer]
<jhass> ruby-lang132: next that server responds with "ok\04", .gets waits for a "\n"
<jhass> (by default)
_mak has joined #ruby
rcvalle has joined #ruby
ajb- is now known as ajb
ajb is now known as ajb-
absolutejam has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> ruby-lang132: still there?
ajb- is now known as ajb
<ruby-lang132> Treehug88, heres the full api docs. I am using the EOT as specified by the developer vndb.org/d11
<jhass> mmh, that upload went wrong I guess
citrusfizz has quit [Ping timeout: 264 seconds]
Guest60428 has quit [Quit: Leaving]
sinkensabe has quit [Remote host closed the connection]
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopie has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
Gnomethrower has joined #ruby
pandaant has quit [Remote host closed the connection]
step1step2_ has joined #ruby
step1step2_ has quit [Read error: Connection reset by peer]
<treehug88> ruby-lang132: sorry, cant help any more today. Looks like you're on the right track with jhass
step1step2_ has joined #ruby
step1step2_ has quit [Client Quit]
tenderlove has quit [Read error: Connection reset by peer]
Gnomethrower has quit [Client Quit]
SCHAAP137 has quit [Remote host closed the connection]
machan has joined #ruby
_blizzy_ has quit [Ping timeout: 246 seconds]
step1step2_ has joined #ruby
symbol has joined #ruby
step1step2_ has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
rcvalle has quit [Quit: rcvalle]
fullofcaffeine has joined #ruby
step1step2 has quit [Ping timeout: 252 seconds]
step1step2_ has joined #ruby
Bellthoven has joined #ruby
verdoc_ is now known as verdoc
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Motoservo has joined #ruby
rcvalle has joined #ruby
rcvalle has quit [Client Quit]
roxtrongo has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
ivanskie has joined #ruby
Bellthoven has quit [Ping timeout: 246 seconds]
rcvalle has joined #ruby
khebbie has joined #ruby
<shevy> but he ignored jhass :(
baroquebobcat has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
aufi has quit [Ping timeout: 244 seconds]
spider-mario has quit [Read error: Connection reset by peer]
solars has quit [Ping timeout: 255 seconds]
roxtrongo has quit [Ping timeout: 260 seconds]
bMalum has quit [Quit: bMalum]
moeabdol has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
baroquebobcat has joined #ruby
gnarld_ is now known as nug
arthurix has joined #ruby
idefine has quit [Remote host closed the connection]
darkf has quit [Quit: Leaving]
spider-mario has joined #ruby
tenderlove has joined #ruby
karapetyan has joined #ruby
idefine has joined #ruby
Igorshp has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 268 seconds]
<treehug88> you can lead a horse to water, but you can't make it accept your recommendations :)
idefine has quit [Remote host closed the connection]
arthurix_ has quit [Ping timeout: 260 seconds]
idefine has joined #ruby
ndrei has joined #ruby
pathrocle has quit [Remote host closed the connection]
imperator has joined #ruby
idefine has quit [Remote host closed the connection]
<imperator> good morning
imperator has left #ruby ["Leaving"]
Igorshp has joined #ruby
<shevy> speaking of horses... the horse imperator was here!
diegoaguilar has quit [Remote host closed the connection]
unreal_ has joined #ruby
dvxam_ has quit [Quit: leaving]
rodfersou|lunch is now known as rodfersou
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
unreal has quit [Ping timeout: 272 seconds]
pietr0 has joined #ruby
CodyStringham has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
karapetyan has joined #ruby
khebbie has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
jpfuentes2 has joined #ruby
ruby-lang132 has quit [Quit: Page closed]
baroquebobcat_ has joined #ruby
HoloIRCUser has quit [Ping timeout: 244 seconds]
fullofcaffeine has quit [Remote host closed the connection]
bMalum has joined #ruby
synthroid has quit [Remote host closed the connection]
baroquebobcat has quit [Ping timeout: 268 seconds]
baroquebobcat_ is now known as baroquebobcat
SuzieQueue has joined #ruby
CodyStringham has quit []
loc22 has quit [Quit: Be back later ...]
symm- has joined #ruby
TomyWork has quit [Remote host closed the connection]
absolutejam has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
achamian has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
krz has quit [Ping timeout: 246 seconds]
Suzeanne has quit [Ping timeout: 268 seconds]
krz has joined #ruby
idefine has joined #ruby
Uo9er_ has joined #ruby
subscope has quit [Quit: Textual IRC Client: www.textualapp.com]
Akagi201 has joined #ruby
symm-_ has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
symm- has quit [Ping timeout: 255 seconds]
sinkensabe has joined #ruby
U7se6 has quit [Ping timeout: 265 seconds]
machan has left #ruby [#ruby]
amclain has joined #ruby
shredding has quit [Ping timeout: 265 seconds]
wpp has quit [Quit: ZZZzzz…]
joonty has quit [Quit: joonty]
krz has quit [Ping timeout: 272 seconds]
alcipir has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
p0wn3d__ has quit [Ping timeout: 240 seconds]
__main__ has joined #ruby
mordocai has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
duderonomy has quit [Ping timeout: 268 seconds]
ruurd has joined #ruby
SCHAAP137 has joined #ruby
SCHAAP137 has joined #ruby
tenderlove has joined #ruby
sinkensabe has quit [Remote host closed the connection]
cwong_on_irc has quit [Quit: Leaving.]
zenguy_pc has quit [Ping timeout: 240 seconds]
fullofcaffeine has joined #ruby
mleung has joined #ruby
sinkensabe has joined #ruby
ismaelga has quit [Remote host closed the connection]
blackmesa has joined #ruby
alcipir has quit [Ping timeout: 250 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
symm-_ has quit [Ping timeout: 240 seconds]
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
symm- has joined #ruby
baweaver has joined #ruby
cschneid_ has joined #ruby
CloCkWeRX has quit [Ping timeout: 264 seconds]
armyriad2 has joined #ruby
armyriad2 has quit [Max SendQ exceeded]
<cschneid_> what's a good command line arg parser that does git/rails style sub commands. `mycommand new thing` `mycommand help` `mycommand delete thing -f`
tenderlove has quit [Ping timeout: 240 seconds]
Motoservo_ has joined #ruby
<jhass> doesn't rails use thor?
armyriad2 has joined #ruby
atmosx has quit [Quit: Lost in trance]
armyriad has quit [Disconnected by services]
armyriad2 is now known as armyriad
podman has quit [Quit: Connection closed for inactivity]
chouhoul_ has joined #ruby
hakunin has left #ruby [#ruby]
nateberkopec has joined #ruby
<stacybird> I like thor, but I think there may be issues with multi-level commands. too much nesting seems to be an issue
NeverDie has joined #ruby
towski_ has joined #ruby
* stacybird just started using is not too long ago
skweek has quit [Ping timeout: 246 seconds]
tubuliferous has quit [Ping timeout: 264 seconds]
borkdude has quit [Ping timeout: 264 seconds]
valeri_ufo has quit [Ping timeout: 264 seconds]
varesa has quit [Ping timeout: 264 seconds]
tenderlove has joined #ruby
jackjackdripper has joined #ruby
khebbie has joined #ruby
eregon has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
freeze has quit [Ping timeout: 264 seconds]
hinbody has quit [Ping timeout: 264 seconds]
akkad has quit [Ping timeout: 264 seconds]
cajone has quit [Ping timeout: 264 seconds]
chridal has quit [Ping timeout: 264 seconds]
zenspider has quit [Ping timeout: 264 seconds]
Caelum has quit [Ping timeout: 264 seconds]
drew2_ has quit [Ping timeout: 264 seconds]
m4rCsi_ has joined #ruby
diego_k has quit [Ping timeout: 264 seconds]
Motoservo has quit [Ping timeout: 264 seconds]
Emmanuel_Chanel has quit [Ping timeout: 264 seconds]
hectortrope has quit [Ping timeout: 264 seconds]
rdark has quit [Ping timeout: 264 seconds]
DEA7TH has quit [Ping timeout: 264 seconds]
leat2 has quit [Ping timeout: 264 seconds]
sepp2k has quit [Ping timeout: 264 seconds]
Motoservo_ is now known as Motoservo
hanmac has quit [Ping timeout: 264 seconds]
joast has quit [Ping timeout: 264 seconds]
genpaku has quit [Ping timeout: 264 seconds]
ozzloy has quit [Ping timeout: 264 seconds]
Biohazard has quit [Ping timeout: 264 seconds]
crankharder has quit [Ping timeout: 264 seconds]
async_prince has quit [Ping timeout: 264 seconds]
yie has quit [Ping timeout: 264 seconds]
towler has quit [Ping timeout: 264 seconds]
cout has quit [Ping timeout: 264 seconds]
dasher00 has quit [Ping timeout: 264 seconds]
Drakevr has quit [Ping timeout: 264 seconds]
corpsicle has quit [Ping timeout: 264 seconds]
sts_ has quit [Ping timeout: 264 seconds]
scroff has quit [Ping timeout: 264 seconds]
iDavid_ has quit [Ping timeout: 264 seconds]
PaulePanter has quit [Ping timeout: 264 seconds]
cookiez has quit [Ping timeout: 264 seconds]
riotjones has joined #ruby
zenspider has joined #ruby
diegok has joined #ruby
inteq has quit [Ping timeout: 264 seconds]
chouhoulis has quit [Ping timeout: 264 seconds]
spew has quit [Ping timeout: 264 seconds]
doddok has quit [Ping timeout: 264 seconds]
nateberkope has quit [Ping timeout: 264 seconds]
xet7 has quit [Ping timeout: 264 seconds]
worstcase has quit [Ping timeout: 264 seconds]
eregon_ has quit [Ping timeout: 264 seconds]
deps has quit [Ping timeout: 264 seconds]
kriskropd_ has quit [Ping timeout: 264 seconds]
ksteck has quit [Ping timeout: 264 seconds]
oddmunds has quit [Ping timeout: 264 seconds]
ekem has quit [Ping timeout: 264 seconds]
m4rCsi has quit [Ping timeout: 264 seconds]
nw has quit [Ping timeout: 264 seconds]
sugardrunk has quit [Ping timeout: 264 seconds]
shadeslayer has quit [Ping timeout: 264 seconds]
pabs has quit [Ping timeout: 264 seconds]
cfloare has quit [Ping timeout: 264 seconds]
kalusn has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
XxionxX has joined #ruby
maletor has joined #ruby
DEA7TH has joined #ruby
armyriad has quit [Client Quit]
freeze has joined #ruby
hinbody has joined #ruby
iDavid has joined #ruby
tubuliferous has joined #ruby
borkdude has joined #ruby
PaulePanter has joined #ruby
shadeslayer has joined #ruby
yie has joined #ruby
corpsicle has joined #ruby
ivanskie has quit [Quit: Leaving]
rdark has joined #ruby
rdark has quit [Changing host]
rdark has joined #ruby
sts_ has joined #ruby
cout has joined #ruby
Drakevr has joined #ruby
crankharder has joined #ruby
genpaku has joined #ruby
orion has joined #ruby
pabs has joined #ruby
spew has joined #ruby
idefine_ has joined #ruby
<orion> In Ruby, is "if obj" semantically equal to "if obj.nil?" ?
valeri_ufo has joined #ruby
armyriad has joined #ruby
<adaedra> not at all
<eam> orion: no, obj could be false
fullofcaffeine has quit [Remote host closed the connection]
<eam> >> false.nil?
<ruboto> eam # => false (https://eval.in/453468)
synthroid has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
<orion> I see, thanks!
j4cknewt has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
weihan has quit [Ping timeout: 252 seconds]
riotjones has joined #ruby
Biohazard has joined #ruby
chridal has joined #ruby
aryaching has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
ekem has joined #ruby
polishdub has quit [Remote host closed the connection]
p0wn3d__ has joined #ruby
naftilos76 has joined #ruby
varesa has joined #ruby
tenderlove has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
Pumukel has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
senayar has quit []
_djbkd has joined #ruby
grekkos has joined #ruby
Soda has joined #ruby
ThatGuy has joined #ruby
<eam> >> class AlwaysFalse; def == x; false; end; end; a = AlwaysFalse.new; a == a
<ruboto> eam # => false (https://eval.in/453469)
krz has joined #ruby
sugardrunk has joined #ruby
inteq has joined #ruby
cfloare has joined #ruby
ThatGuy has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 255 seconds]
codecop has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
polishdub has joined #ruby
akkad has joined #ruby
drew2_ has joined #ruby
leat2 has joined #ruby
nw has joined #ruby
async_prince has joined #ruby
Emmanuel_Chanel has joined #ruby
armyriad has quit [Quit: Leaving]
worstcase has joined #ruby
nw is now known as Guest59218
xet7 has joined #ruby
scroff has joined #ruby
doddok has joined #ruby
sinkensabe has quit [Remote host closed the connection]
hectortrope has joined #ruby
oddmunds has joined #ruby
Caelum has joined #ruby
ismaelga has joined #ruby
dfockler has joined #ruby
ozzloy has joined #ruby
ozzloy has joined #ruby
ismaelga has quit [Remote host closed the connection]
armyriad has joined #ruby
sepp2k has joined #ruby
towler has joined #ruby
hanmac has joined #ruby
Spami has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
tenderlove has quit [Read error: Connection reset by peer]
dasher00 has joined #ruby
fullofcaffeine has joined #ruby
mark2 has quit [Quit: Leaving.]
zayaman has joined #ruby
kriskropd_ has joined #ruby
_blizzy_ has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cajone has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
Hounddog has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
basiles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joast has joined #ruby
PsuzeannePsy has joined #ruby
ericjphillips has joined #ruby
__main__ has quit [Remote host closed the connection]
skcin7 has joined #ruby
sinkensabe has joined #ruby
big|bad|wolf has joined #ruby
petricore has joined #ruby
sinkensabe has quit [Remote host closed the connection]
_blizzy_ has quit [Read error: Connection reset by peer]
achamian has quit [Remote host closed the connection]
SuzieQueue has quit [Ping timeout: 240 seconds]
__main__ has joined #ruby
leafybas_ has quit [Remote host closed the connection]
leafybasil has joined #ruby
pdoherty has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
skcin7 has quit [Client Quit]
_blizzy_ has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
achamian has joined #ruby
ngscheurich has quit [Ping timeout: 268 seconds]
<mg^^> Scrolling back, I wonder how many things break if you make false.nil? be true...
vigintas has quit [Remote host closed the connection]
vigintas has joined #ruby
skweek has joined #ruby
prefixed has quit [Ping timeout: 240 seconds]
<adaedra> olol
<adaedra> I kept a pryrc that inversed true and false on inspect
lkba has joined #ruby
<adaedra> Could have ended so badly.
<shevy> you naughty boy
vigintas1 has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
<mg^^> I just monkey patched it in Pry, nothing bad has happened so far
fullofcaffeine has quit [Remote host closed the connection]
tenderlove has joined #ruby
aryaching has joined #ruby
<adaedra> \o
caliostro has quit [Remote host closed the connection]
bruno- has joined #ruby
<eam> >> class Fixnum; def == x; true; end; end; 1 == 2
<ruboto> eam # => true (https://eval.in/453491)
<mg^^> I expect that since use of nil? is usually discouraged that it breaks not many things, but the things it does break probably break badly
fullofcaffeine has joined #ruby
karapetyan has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
<mg^^> adaedra: that is totally evil and I'm going to do that to a coworker now :-)
vigintas has quit [Ping timeout: 260 seconds]
vigintas1 is now known as vigintas
fullofcaffeine has joined #ruby
IrishGringo has quit [Ping timeout: 246 seconds]
anisha has quit [Ping timeout: 255 seconds]
lsmola_ has quit [Ping timeout: 272 seconds]
bruce_lee has quit [Read error: Connection reset by peer]
khebbie has quit [Ping timeout: 260 seconds]
nemo_ has quit [Remote host closed the connection]
paulcsmith has joined #ruby
eminencehc has joined #ruby
idefine_ has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
idefine has joined #ruby
<eam> unable to convert "\xD0" from ASCII-8BIT to UTF-8 for lib/redcarpet.so, skipping
<eam> you'd think ri would know better than to try to parse shared objects
cball has quit [Ping timeout: 240 seconds]
tenderlove has quit [Read error: Connection reset by peer]
basiles has joined #ruby
<Ebok> I have a dumb question: https://eval.in/453493 <=== I linked an error code I'm getting while following a tutorial. Its their code that's prompting the error, but Im not entirely sure what it means. If someone can glance at it and confirm what might be going wrong?
eminencehc has quit [Remote host closed the connection]
eminencehc has joined #ruby
<Ebok> My guess is the require "specific ruby gem file" is not calling the listed gem file--but Im not entirely certain how to look up a correct reference if thats the case.
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> Ebok: it means the file "event_manager.rb" on line 6 attempted to require "sunlight/congress" and ruby couldn't find it installed anywhere
alcipir has joined #ruby
tenderlove has joined #ruby
nemo_ has joined #ruby
<eam> if you open up "/home/ubuntu/workspace/event_manager/lib/event_manager.rb" you should see the require() on line 6
<Ebok> Yeah
<Ebok> I see where
vigintas has quit [Ping timeout: 240 seconds]
<Ebok> Its how to fix it xD
wallerdev has joined #ruby
<Ebok> 'I assume that means I need to download the file somewhere?
wallerdev has quit [Client Quit]
<Ebok> And then reference it?
<eam> probably gem install <something>
adac has quit [Ping timeout: 252 seconds]
<eam> Ebok: looks like you need this: https://github.com/steveklabnik/sunlight-congress
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
<Ebok> Yeah thats the one.
<eam> when you require "something" ruby looks through a series of paths to find "something.rb"
<Ebok> so gem 'sunlight-congress' instead would trigger the correct code?
Motoservo has quit [Quit: Over & out.]
Akagi201 has quit [Ping timeout: 250 seconds]
<Ebok> Oh Gemfile
<Ebok> Hm
synthroid has quit []
<Ebok> This tutorial skipped some steps
<Ebok> I've got enough to work with however, thanks
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
<eam> ah, if it's in your gemfile then "bundle"
glundgren has joined #ruby
<glundgren> hey guys, good afternoon :)
anisha has joined #ruby
<Ebok> I've never written a gemfile, but I have seen them. I was considering test out writing one from scratch (need to learn it anyway)
<shevy> eam ri emerged out of the 2000 era!
agentmeerkat has joined #ruby
<glundgren> [1,2,2,3,3,5] i want to reject the array sum up to a specific number, for example, reject up to 3, then the array will be [2,3,3,5]
<glundgren> is it possible?
<bougyman> sure.
<agentmeerkat> Does anyone know of a Ruby Gem for capturing video from a webcam?
<bougyman> [1,2,2,3,3,5][2..-1]
<glundgren> i tried play with inject, but not very lucky
<bougyman> [1,2,2,3,3,5][2..-1]
<bougyman> => [2, 3, 3, 5]
big|bad|wolf has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
<glundgren> bougy, let me try
chouhoulis has joined #ruby
stan has quit [Ping timeout: 250 seconds]
tenderlove has quit [Read error: Connection reset by peer]
<glundgren> bougy, sorry, its not this :)
<glundgren> i mean, i want to reject up to the sum of the array
<bougyman> what?
<bougyman> it's the result set you asked for.
_kfpratt has joined #ruby
dfinninger has joined #ruby
<glundgren> for example: [1,2,3,4] i want to reject the numbers that sums is equal or less than 3, for example
<glundgren> the result should be [3,4]
<glundgren> because 1+2 = 3
<bougyman> oh.
<glundgren> i tried inject, but i didnt get it very well
dfockler has quit [Ping timeout: 240 seconds]
<glundgren> how to reject inside an inject
roxtrongo has joined #ruby
tenderlove has joined #ruby
tenderlove has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
kfpratt has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
<Ebok> select
big|bad|wolf has quit [Ping timeout: 272 seconds]
<Ebok> Instead of kicking out what you dont want, just select what you do?
Igorshp has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
trautwei_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has quit [Ping timeout: 250 seconds]
<glundgren> Ebok: can i say the real problem of what im trying to achieve?
<Ebok> I dont know? can you?
<glundgren> sure :)
<Ebok> lol
<glundgren> hehehe
dfinninger has joined #ruby
kalusn has joined #ruby
<glundgren> i have a software where i have a table called transactions
<glundgren> in this transactions, i have debits and credits
<glundgren> they both have start and end date
roxtrongo has quit [Ping timeout: 265 seconds]
khebbie has joined #ruby
<glundgren> for the debits, it generates a value, its the consumed hours in the transaction (like a checkin/checkout system)
<glundgren> in the credits, i have the start date, and ends date
mary5030 has quit [Ping timeout: 260 seconds]
ta has quit [Remote host closed the connection]
<glundgren> after the ends date, i have to calculate what was used, to make a debit to make the balance of the account go zero
Guest50 has joined #ruby
<glundgren> for example, i bough 2 hours, consumed 1 hour, theres 1 hour left, so after the credit ends, i have to debit the 1 hour rest
benhuda has joined #ruby
zotherstupidguy has quit [Ping timeout: 240 seconds]
<glundgren> man, it will get really big, i dont know if i should continue hehe
<glundgren> this sounds simple, but you have to think another cases of use, for example
synthroid has joined #ruby
saddad has joined #ruby
<glundgren> someone consumed more than the hours bought, then i have to debit 0
jaequery has joined #ruby
kimegede has joined #ruby
QORRiE has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
subscope has joined #ruby
<glundgren> man, sorry, its a really big problem, im not use your time
<glundgren> :)
fullofcaffeine has quit [Ping timeout: 246 seconds]
<Ebok> It doesnt sound that big
zayaman has quit [Quit: leaving]
<glundgren> its because theres a lot of another cases
PlasmaStar has quit [Max SendQ exceeded]
arup_r has quit [Ping timeout: 250 seconds]
<glundgren> like when a bough overlaps another bought
n008f4g_ has joined #ruby
beauby has quit [Ping timeout: 260 seconds]
<jaequery> is it just me or is ruby community seem to be ... losing steam?
<glundgren> if we have another bought that is valid
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
arup_r has joined #ruby
<glundgren> jaequery: realize that theres different levels of wisdom
ndrei has joined #ruby
<glundgren> in ruby :)
<glundgren> mine is very basic, is it ok for you?
<Ebok> basically you have an array of transactions, and two reference points stored in another. start...end seems like a range to me. Can you just call a method whenever your end date happens, to scan the transactions that occured over that period, total them, and then return whatever you need to?
cookiez has joined #ruby
<glundgren> every time i try to get help here theres irony
<glundgren> :/
<Ebok> I'm teaching myself this language mindyou, and do not have it mastered by any stretch. I'd take anyone elses word here over mine, but. >_>
fullofcaffeine has joined #ruby
deps has joined #ruby
<glundgren> Ebok: yes, i already do that, but i need to mark the specific ones
PlasmaStar has joined #ruby
<Ebok> mark the start and end?
<glundgren> that was used up to the sum, or the
<glundgren> no, the transaction
<Ebok> ah
<glundgren> so i need to reject or select
<glundgren> an array
<glundgren> up to a sum
<Ebok> Alright so if you have an array that lists: 2223451 and your sum is 3, the new array needs to be 345
<Ebok> or does it need to be 22345
khebbie has quit [Ping timeout: 272 seconds]
mag42c_ has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
lee-jon has joined #ruby
yosiat has joined #ruby
<glundgren> Ebok: i just need to know how to do it
<glundgren> then i will see what i really need :P
arup_r has quit [Ping timeout: 250 seconds]
<Ebok> I just need to know how your logic needs to flow
khebbie has joined #ruby
karapetyan has quit [Remote host closed the connection]
cball has joined #ruby
tesuji is now known as Guest56624
Guest56624 has quit [Killed (weber.freenode.net (Nickname regained by services))]
Lucky__ has joined #ruby
achamian has quit [Remote host closed the connection]
mag42c has quit [Ping timeout: 272 seconds]
mag42c_ is now known as mag42c
<Ebok> I gave an either or above, they'd be handled differently
<glundgren> ok, i need to reject up to a number, then i will use these other numbers to sum a number that i will use to adjust the debit
hal_9000_ has quit [Ping timeout: 250 seconds]
hal_9000_ has joined #ruby
<Ebok> array.select{|n| n>sum}
tesuji_ has joined #ruby
<Ebok> any number n which is greater then whatever variable you have set for sum, will not be part of the array
eminencehc has joined #ruby
<glundgren> Ebok: ok, thats cool
skweek has quit [Read error: Connection reset by peer]
cball has quit [Client Quit]
karapetyan has joined #ruby
<glundgren> Ebok: but if i have [1,2,3,4,5].select{|n| s> sum}
<glundgren> it will give me [4,5]
<glundgren> the sum of [1,2,3] = 6
<glundgren> i mean, sum = 3
orion has left #ruby [#ruby]
<glundgren> let me rephrase
<Ebok> Yeah please do
<glundgren> Ebok: but if i have [1,2,3,4,5].select{|n| n>3} it will give me [4,5], but the sum of [1,2,3] = 6
fullofcaffeine has quit [Ping timeout: 240 seconds]
<glundgren> the expected result should be [3,4,5]
<Ebok> This is why I asked you that either or question
sepp2k has quit [Quit: Leaving.]
<glundgren> sorry, english is not my native language
blaxter has quit [Quit: foo]
<Ebok> Alright so I am clear: if you have the array [1,2,2,3,4,5,5,5] and you want to remove numbers up to 7. what should your array look like?
khebbie has quit [Ping timeout: 246 seconds]
basiles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<glundgren> [3,4,5,5,5]
<Ebok> 1,2,2 adds up to 5 not 7 though
pocketprotector- has joined #ruby
<glundgren> yes, up to
kimegede has quit [Quit: Linkinus - http://linkinus.com]
<Ebok> is the array always sorted?
<glundgren> i can sort it
jenrzzz has joined #ruby
<Ebok> Alright, and so we always want to remove the smallest fixnums first?
last_staff has quit [Ping timeout: 255 seconds]
<glundgren> yes
snockerton has joined #ruby
fullofcaffeine has joined #ruby
<Ebok> sec
last_staff has joined #ruby
leafybas_ has joined #ruby
unshadow has quit [Ping timeout: 250 seconds]
bonhoeffer has joined #ruby
lee-jon has left #ruby [#ruby]
khebbie has joined #ruby
freerobby has quit [Quit: Leaving.]
iateadonut has quit [Quit: Leaving.]
Spami has quit [Quit: This computer has gone to sleep]
leafybasil has quit [Ping timeout: 250 seconds]
basiles has joined #ruby
solars has joined #ruby
<Ebok> I would probably make an method
<Ebok> that reads through an array and adds up variables
basiles has quit [Client Quit]
basiles has joined #ruby
idefine has quit [Remote host closed the connection]
<glundgren> Ebok: cool, that's what i was trying to understand
<Ebok> and counts the number of variables being added
<glundgren> if we had something that does it in a ruby way
arup_r has joined #ruby
St1gma has joined #ruby
hfp_work has quit [Ping timeout: 240 seconds]
<glundgren> Ebok: thank you very much for your help Ebok
<Ebok> You can make one.
basiles has quit [Read error: Connection reset by peer]
idefine has joined #ruby
basiles has joined #ruby
<glundgren> Ebok: yes, thankss
cdg_ has joined #ruby
bruno- has joined #ruby
last_staff has quit [Quit: last_staff]
last_staff has joined #ruby
bonhoeffer has quit [Read error: Connection reset by peer]
hfp_work has joined #ruby
bonhoeffer has joined #ruby
symbol_ has joined #ruby
skweek has joined #ruby
achamian has joined #ruby
pocketprotector- has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
zotherstupidguy has joined #ruby
<jhass> >> sum = 0; [1,2,2,3,4,5,5,5].drop_while {|i| (sum += i) < 7 }
<ruboto> jhass # => [3, 4, 5, 5, 5] (https://eval.in/453504)
gexe_ has quit [Quit: Leaving]
gexe_ has joined #ruby
alexherbo2 has joined #ruby
<Ebok> See, peeps know this much better then I do ^^
mary5030 has joined #ruby
symbol has quit [Ping timeout: 265 seconds]
<Ebok> I was in the process of writing the drop_while method xD
mary5030 has quit [Read error: Connection reset by peer]
<Ebok> lulz
eminencehc has quit [Remote host closed the connection]
troyready has joined #ruby
mary5030 has joined #ruby
Renich has joined #ruby
roxtrongo has joined #ruby
mary5030 has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
mary5030 has joined #ruby
tjohnson has joined #ruby
<Ebok> glundgren ^^ jhass gave you wnat you needed
adac has joined #ruby
achamian has quit [Remote host closed the connection]
<jhass> it's fine, I'm ignored today
<glundgren> jhass
<glundgren> thanks man!
<Ebok> I justed his name to prompt him ^^
mary5030 has quit [Remote host closed the connection]
<glundgren> the limehcat was minimized
<Ebok> used!
<glundgren> :)
<Ebok> Yeah figured :P
<glundgren> awesome!
j4cknewt has quit [Remote host closed the connection]
mary5030 has joined #ruby
_djbkd has joined #ruby
<glundgren> awesome, thank you very much guys
<jhass> ?guys glundgren
<ruboto> glundgren, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
baroquebobcat has quit [Quit: baroquebobcat]
<glundgren> jhass, are you girl?
<glundgren> sorry
<jhass> would it matter?
<glundgren> no, but you said
idefine has quit [Remote host closed the connection]
<glundgren> to not call you a guy
<jhass> read again, that's not what it says
<Ebok> glundgren, he's prompting consideratory political correctness
<glundgren> ah, ok
<glundgren> i will not even talk about it anymore
<glundgren> i appreciate the help, and that will be it
ModusPwnens has joined #ruby
chouhoulis has quit []
<glundgren> :)
gusrub has joined #ruby
<Ebok> lol the fact that ruboto has that scripted is funny to me
doritostains has joined #ruby
agentmeerkat has quit [Quit: leaving]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
n008f4g_ has quit [Ping timeout: 264 seconds]
pdoherty has quit [Ping timeout: 252 seconds]
<ModusPwnens> I'm trying to add access control using user roles to my site. There are a few different possible roles and role-based checks will have to be done in various controllers. Given this, is it a problem to have floating symbol checks everywhere (e.g. current_user.role == :admin)?
chouhoulis has joined #ruby
khebbie has quit [Ping timeout: 268 seconds]
U7se6 has joined #ruby
davispuh has joined #ruby
heftig has quit [Remote host closed the connection]
agentmeerkat has joined #ruby
<jhass> #RubyOnRails will likely have better tips for you
jxl180 has joined #ruby
heftig has joined #ruby
Uo9er_ has quit [Ping timeout: 265 seconds]
axl_ has quit [Quit: axl_]
sepp2k has joined #ruby
S_Walker has joined #ruby
basiles has quit [Quit: Textual IRC Client: www.textualapp.com]
ModusPwnens has quit [Disconnected by services]
DroidBurgundy has joined #ruby
Renich has quit [Quit: leaving]
Renich has joined #ruby
khebbie has joined #ruby
hfp_work has quit [Ping timeout: 244 seconds]
eminencehc has joined #ruby
yitsushi has joined #ruby
freerobby has joined #ruby
hfp_work has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
eminencehc has quit [Remote host closed the connection]
eminencehc has joined #ruby
fullofcaffeine has quit [Ping timeout: 250 seconds]
synthroid has quit []
jenrzzz has quit [Ping timeout: 244 seconds]
cwong_on_irc has joined #ruby
zenguy_pc has quit [Ping timeout: 250 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
cwong_on_irc has quit [Max SendQ exceeded]
idefine has joined #ruby
cwong_on_irc has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
synthroid has joined #ruby
riotjone_ has joined #ruby
fullofcaffeine has joined #ruby
prefixed has joined #ruby
khebbie has quit [Ping timeout: 246 seconds]
ericjphillips has quit [Quit: Leaving.]
IrishGringo has joined #ruby
pdoherty has joined #ruby
karapetyan has quit [Remote host closed the connection]
nemo_ has quit [Remote host closed the connection]
<purplexed^> what is the correct way to structure a module, with classes... I saw I am supposed to but the module.rb in the /lib/ folder, and then have folder named (module_name), and then the the classes in it... does that sound correct ?
<purplexed^> put*
hfp__work has joined #ruby
karapetyan has joined #ruby
naftilos76 has quit [Ping timeout: 256 seconds]
pocketprotector- has joined #ruby
aryaching has quit [Quit: Bye]
kadoppe has quit [Ping timeout: 256 seconds]
hfp_work has quit [Ping timeout: 272 seconds]
hfp__work is now known as hfp_work
<purplexed^> and, why is this room so quiet... do ruby developers not speak to each other ?
baroquebobcat has joined #ruby
riotjone_ has quit [Ping timeout: 256 seconds]
<jxl180> Sounds correct to me, this may help
nemo_ has joined #ruby
Steve_Jobs has quit [Ping timeout: 268 seconds]
<purplexed^> jxl180: thanks alot
kadoppe has joined #ruby
<jxl180> np
Jackneill has joined #ruby
<purplexed^> jxl180: can you also answer why nobody is speaking in this room... :D
pocketprotector- has quit [Client Quit]
<purplexed^> jxl180: C# is plenty busy.. so I wonder why this room seems completely dead.
pocketprotector- has joined #ruby
solars has quit [Ping timeout: 264 seconds]
<Ebok> lots of people come here to ask questions, they get their answers, and then they leave
Steve_Jobs has joined #ruby
<jhass> purplexed^: we tend to redirect OT talk to #ruby-offtopic ;)
<shevy> purplexed^ usually there will be one top-level constant, most often a module, which should be the name of your project/gem
yfeldblum has joined #ruby
cdg_ has quit [Remote host closed the connection]
<dorei> if i have [:a, :b, :c], how can i get [[],[:a], [:b], [:c], [:a, :b], [:a, :c], [:b, :c], [:a, :b, :c]] ? (i guess order is not important)
<shevy> purplexed^ most usually the layout will be determined by the name of the class, and then the most common rule to have "one class per file". like if you have module Foo; class Bar, class Bar should reside in the file bar.rb
<jxl180> purplexed^: Again, I highly recommend reading the style guide linked above, they discuss file naming and the "one class per file"
zenguy_pc has joined #ruby
baweaver has joined #ruby
jokester has joined #ruby
<nemo_> Hi all. I have a question. Will the object get created if the initialize method is written inside private
<shevy> rubocop can even auto-correct!
naftilos76 has joined #ruby
<jxl180> purplexed^: usually, I will have the module as the folder/project name, and the classes below
<shevy> nemo_ sure
<jhass> dorei: that's called the power set, google should yield you a couple of solutions
<nemo_> how will u access dat method?
<shevy> nemo_ initialize is already private
<dorei> power set, thanx :)
craysiii has joined #ruby
<shevy> you don't normally access it, you use .new
loc22 has joined #ruby
tercenya has quit [Read error: Connection reset by peer]
<jhass> nemo_: ^ initialize is marked private by default can called by .new for you
<nemo_> ok any details about it. I feel its more related to Encapsulation
p0wn3d__ has quit [Ping timeout: 244 seconds]
p0wn3d has joined #ruby
BSaboia has joined #ruby
<jhass> there's not much more to it, it's called by .new after it called .allocate and before it returns the new object
postmodern has joined #ruby
EmeraldExplorer has joined #ruby
<shevy> the comment there is funny :)
<jhass> shevy: you can link a specific answer by using the share link below it
<shevy> '# actually, this is obj.send(:initialize, ?) because initialize is private
<shevy> '
<shevy> aha
<shevy> let me try that...
<shevy> oh yes
<shevy> this is the first time I notice the "share" link :)
inhwcwa has joined #ruby
<inhwcwa> What is the runtime of arr.max and arr.min?
<nemo_> writing initialize inside private makes no sense ??
<inhwcwa> is it O(n)?
skade has joined #ruby
<jhass> inhwcwa: yup
tercenya has joined #ruby
<jhass> nemo_: it makes no difference, initialize is private by default unless you mark it as public or protected explicitly
bonhoeffer has joined #ruby
<inhwcwa> well shit i came up with a horrible solution for a hackerrank problem for an internship app then lol
polishdub has quit [Quit: Leaving]
<nemo_> thanks jhass :)
diegoaguilar has joined #ruby
blackmesa has joined #ruby
<nemo_> any good blog to implement OOPS with ruby?
<karapetyan> can i create object based on something.class.new ?
<karapetyan> if something.is_a? String it works fine. But if Integer - not.
<jhass> karapetyan: which value would that integer have anyway?
<karapetyan> cause Integer.new don't works.
<karapetyan> jhass: 0 if integer
<shevy> you could try Integer("0") perhaps
<jhass> karapetyan: what's this for?
<karapetyan> jhass: i want to check first element in array. Get class of that object and create object based on this class
<karapetyan> *create empty object
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sheperson has joined #ruby
opensource_ninja has joined #ruby
<sheperson> Hi
diegoaguilar has quit [Ping timeout: 268 seconds]
j4cknewt has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<karapetyan> well i try to find another way
<karapetyan> thx :)
karapetyan has quit [Remote host closed the connection]
fullofcaffeine has quit [Read error: Connection reset by peer]
<sheperson> it is possible to inlcude a variable in the array literal %w()?
karapetyan has joined #ruby
fullofcaffeine has joined #ruby
<nemo_> declare an array, array[0].class.new is going to create a new object of expected class
<nemo_> %W()
<nemo_> use dis
sdothum has joined #ruby
<sheperson> for example if name=‘john’, then %w(name) would be [‘john’]
<jhass> sheperson: ^ that allows #{interpolation}
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
<sheperson> aha
<sheperson> great
<nemo_> %W() allows variables %w dis doesnot
<sheperson> nemo_: Thanks
agent_white has quit [Quit: brb]
<sheperson> Works like a charm
step1step2_ has quit [Quit: Leaving]
<sheperson> :-P
<jhass> well #{} allows almost any ruby expression
ericjphillips has joined #ruby
_djbkd has quit [Remote host closed the connection]
baroquebobcat has quit [Ping timeout: 260 seconds]
dagda1_ has joined #ruby
tenderlove has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
tenderlove has quit [Read error: Connection reset by peer]
heftig has quit [Read error: Connection reset by peer]
fullofcaffeine has quit [Client Quit]
heftig has joined #ruby
vigintas has joined #ruby
inhwcwa has quit [Quit: Page closed]
baroquebobcat has joined #ruby
agent_white has joined #ruby
step1step2 has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
ngscheurich has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
`tim` has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
tenderlove has joined #ruby
`tim` has quit [Client Quit]
sdothum has joined #ruby
loc22 has quit [Quit: Lingo: www.lingoirc.com]
ta has joined #ruby
khebbie has joined #ruby
Akagi201 has joined #ruby
choke has joined #ruby
diegoaguilar has joined #ruby
nfk has joined #ruby
_blizzy_ has quit [Ping timeout: 244 seconds]
alcipir has quit [Ping timeout: 272 seconds]
IrishGringo has quit [Ping timeout: 264 seconds]
nofxx has quit [Ping timeout: 250 seconds]
_djbkd has joined #ruby
leat2 has quit [Quit: leat2]
leat has joined #ruby
swgillespie has joined #ruby
Akagi201 has quit [Ping timeout: 255 seconds]
eminencehc has quit [Ping timeout: 264 seconds]
dikaio has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
baroquebobcat_ has joined #ruby
<purplexed^> It seems like this channel would benefit from not having an off-topic channel, since this channel is so boring :)
<adaedra> no
baroquebobcat has quit [Ping timeout: 250 seconds]
baroquebobcat_ is now known as baroquebobcat
momomomomo has joined #ruby
platzhirsch has left #ruby [#ruby]
ngscheur1 has joined #ruby
<shevy> purplexed^ the ruby off-topic is much more boring, they plan non-stop unicode hangman there!
acke has joined #ruby
tenderlove has joined #ruby
<adaedra> “non-stop”
<jhass> shevy: how do you know? you're never there
ngscheurich has quit [Ping timeout: 250 seconds]
<agent_white> We could code ruby battlebots?
niftylettuce has joined #ruby
<shevy> jhass I was there two times \o/
<jhass> for what? 30sec?
<shevy> minutes
<shevy> not enough ruby discussion there
<jhass> 1.1?
topolinux has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jessemcgilallen has joined #ruby
bryanray has joined #ruby
jackjackdripper has joined #ruby
momomomomo has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Quit: Lost terminal]
ta has quit [Remote host closed the connection]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
topolinux_ has joined #ruby
finisherr has joined #ruby
monq has joined #ruby
topolinux_ has quit [Client Quit]
khebbie has quit [Ping timeout: 240 seconds]
tenderlove has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
dgynn has quit [Quit: dgynn]
worstcase has quit [Remote host closed the connection]
spuk has joined #ruby
kinduff has joined #ruby
momomomomo has joined #ruby
bonhoeffer has joined #ruby
pdoherty has quit [Ping timeout: 265 seconds]
tenderlove has joined #ruby
baweaver has quit [Remote host closed the connection]
alcipir has joined #ruby
arthurix_ has joined #ruby
bafbomb_ has quit [Quit: leaving]
unreal_ has quit [Ping timeout: 260 seconds]
topolinux has quit [Quit: Sto andando via]
GriffinHeart has quit [Remote host closed the connection]
<purplexed^> shevy: I'm sorry, I've just been here for 6-8 hours, and nothing happens here. I'm wondering if maybe the off-topic channel might be unneeded ;)
bafbomb has joined #ruby
<jxl180> Maybe #ruby is unneeded, and it should only be #ruby-offtopic. Code discussion not allowed
U7se6 has quit [Ping timeout: 260 seconds]
ericjphillips has quit [Quit: Leaving.]
arthurix has quit [Ping timeout: 240 seconds]
<purplexed^> jxl180: same question applies :) ..
chandlerbing has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alcipir has quit [Ping timeout: 240 seconds]
<haylon> Is there a decent read on how to use and write RSpec, and UnitTests? I see a bunch of examples, but they're not really explaining what each expect does, or what the [test|spec]_helper.rb does or is for.
skweek has quit [Ping timeout: 246 seconds]
<purplexed^> i'm sorry, I've just rarely met a development chat room that so dead as this one
<haylon> lol, depends on the topic purplexed^
<haylon> I've seen it get pretty lively, but some people say take it to the #ruby-community channel
<purplexed^> what topics are interesting then ? :D
tenderlove has quit [Read error: Connection reset by peer]
<haylon> Most of the stuff I've ranted on was off-topic from Ruby
<purplexed^> where can I see that I should go to "ruby-community" for interesting talk ?
ELLIOTTCABLE is now known as ec
<jhass> #ruby-community is for development of the website and related stuff, #ruby-offtopic is the offtopic channel
<purplexed^> hey, I know i'm being the devils advocate
naftilos76 has quit [Remote host closed the connection]
roxtrongo has quit [Remote host closed the connection]
<jhass> we had ruby related questions buried in offtopic talk in the past, separating makes it easier for everyone
tenderlove has joined #ruby
<haylon> I'll bookmark that one too.
<purplexed^> interesting... because I barely see ruby questions in there :)
<jhass> makes it a lot easier to watch the channel for people not interested in the offtopic talk
DoubleMalt has joined #ruby
<purplexed^> here*
<jhass> maybe ruby is just so easy that questions are rare? ;P
ruurd has joined #ruby
<purplexed^> jhass: I doubt that is true :D
<haylon> LOL jhass.
workmad3 has joined #ruby
d10n-work has joined #ruby
<shevy> purplexed^ ruby is so good that nobody has any questions, save newcomers!
<jhass> tbf today's a quiet day indeed
polishdub has joined #ruby
<haylon> So, about that RSpec and MiniTest reading. Do you have an ebook, or a link I could look at? I haven't seen one that really went into detail
Soda has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 246 seconds]
<haylon> or newbs, shevy, like me
<purplexed^> alright, let's say it's a quiet day... I'll hang around, and we can talk tomorrow :D
sinkensabe has joined #ruby
<shevy> #python has more traffic, unfortunately when I try to talk about ruby there the snakes beat me up :(
<purplexed^> come to C#, it's more fun there
nemo_ has quit [Remote host closed the connection]
<shevy> ewww C#
<haylon> #go-nuts is pretty fun too
<craysiii> C# is..... bad lol
<craysiii> the channel, not the language :)
tenderlove has quit [Read error: Connection reset by peer]
<purplexed^> shevy: The room is more fun, I didn't say you had to enjoy the language :D
_el_fer_ has joined #ruby
mustmodify has joined #ruby
tenderlove has joined #ruby
<purplexed^> I just started writing Ruby as a C# dev of 10-15 years...it's lots of fun... but the community so far is sucking :O
bmn has quit [Quit: obai]
tenderlove has quit [Remote host closed the connection]
<jhass> craysiii: some say so, some say the other way around I guess :P
heftig has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
heftig has joined #ruby
<craysiii> purplexed that is exactly my point
<purplexed^> and I might sound like a major asshole saying that, but honestly... every time I go to a Ruby anything, nothing is going on
<craysiii> dont ever go to #csharp looking for help
<purplexed^> craysiii: why ?
<jhass> we're sucking for being focused on helping?
chouhoulis has quit [Read error: Connection reset by peer]
<haylon> I also wouldn't judge the community by this chat room either purplexed^
<adaedra> who's sucking?
<jhass> you
chouhoulis has joined #ruby
<craysiii> they themselves claim to not be a help channel, they want to argue semantics and which libraries are better than the others
<purplexed^> haylon: no, I'm not just judging by this chat room :)
<Ebok> this community answers pretty much every question anyone asks given 30 minutes or so.
<shevy> hey
<adaedra> jhass: that's not really nice.
<shevy> 95% of the people here are idling!
jgpawletko has quit [Quit: jgpawletko]
<purplexed^> craysiii: so by saying they are not a help channel, does that make you understand it's not a help channel ? :D
<haylon> yeah, tis be true. I hangout in here to see wha tpeople talk about and try to learn stuff by osmosis
<jhass> adaedra: yeah, you should stop it
<shevy> lol ... "osmosis learning"... did you coin that word haylon?
<shevy> aha was jhass mean to adaedra?
<shevy> ?adaedra
<ruboto> don't be mean to adaedra
nateberkopec has quit [Read error: Connection reset by peer]
<Ebok> O.o
<craysiii> well once, i understood once i was berated for asking a question. they don't mention it in the MOTD or anything though
bmn has joined #ruby
nateberkopec has joined #ruby
<Ebok> Ruboto has lots of interesting commands
<Ebok> xD
<purplexed^> I'm sure there are loads of people who are helpful here... but it's not like it's attracting people by it being dead all the time
<haylon> shevy: Naw, i just osmated that as well.
<haylon> osmoted?
<shevy> craysiii btw a similar story happened to me when I went to a german c# channel... they hated ruby, one guy went totally amok about "monkeypatching" ruining projects
<Ebok> purplexed, stop trolling
PsuzeannePsy has quit [Quit: Leaving]
<purplexed^> Ebok: I'm not trolling.
<adaedra> purplexed^: we don't speak when there is nothing to say.
<Ebok> yeah you are
<haylon> Ebok, I knew he was doing that from the get go, lol
<adaedra> Pretty much like every other channel I know.
<purplexed^> Ebok: Sir, I am not.
<jhass> purplexed^: most rooms are like this, you might be mistaking Freenode for another network
* Ebok rests his case
<haylon> lol
<shevy> because big projects will apparently be destroyed if c# would allow modification of core classes
heftig has quit [Read error: Connection reset by peer]
pathrocle has joined #ruby
heftig has joined #ruby
shmilan has joined #ruby
<craysiii> shevy i feel your pain
mustmodify has left #ruby [#ruby]
<haylon> So, my original question. RSpec, and MiniTest
<haylon> any indepth reading I can do
<haylon> besides code examples?
<havenwood> haylon: In modern Minitest there's no capital T anymore.
<shevy> I found reading about testing fairly boring... it may be better to just read the code
<havenwood> haylon: Maybe take a look at Minitest's own tests.
<haylon> I can udnerstand now to make tests, but I don't understand what the test_helper, or spec_helper do
<shevy> like the fiddler's approach... tweak it spank it change it beat it into submission until it performs how you want it to perform
Rickmasta has joined #ruby
<haylon> shevy, is that the technical phrase for that?
<havenwood> haylon: When there's a snippet of helper code you need for multiple tests you can extract it out to a common file that is required by multiple tests.
jessemcgilallen has quit [Quit: jessemcgilallen]
<shevy> haylon dunno... perhaps tinker programmers
<purplexed^> [9:44:20 PM] Ran Sun Lyng: honey, I know you are developing ruby, felling like a ganster and all
<haylon> bam, thank you havenwood. That's way better than any of the pages i was finding when I googled. Thank you
<shevy> there are also people who can read official specifications, these are the patient people
<purplexed^> I'm seriously trying to learn ruby... and my wife knows!!
choke has joined #ruby
<shevy> nah
<havenwood> shevy: to the docs!
<shevy> let your wife learn it, stay with C# purplexed^
<haylon> purplexed^ I'm sure you know, reading and doing small projects makes it easy to learn
<haylon> shevy
<haylon> be nice
krz has quit [Quit: WeeChat 1.2]
<Ebok> if you have questions ask, if you need resources, ask.
<Ebok> if you wanna complain about anything else, meh.
<Ebok> >_>
eminencehc has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<haylon> lol. I'll be down to help with a cursory google search
<purplexed^> well, complaining livened up the room :p
<haylon> womp womp.
<Ebok> persistent trolling does that yeah
<Ebok> :P
<purplexed^> *trout*
<shevy> don't worry, the 5% non-idlers may soon go back to idling mode again
<haylon> lol
* Ebok idles
<haylon> yeah, I'm in a knowledge class/transfer thing at work
<haylon> So I glance back and forth, through 8 different channels
<shevy> yeah like TV zapping
<shevy> there just isn't any good content!!!
<purplexed^> I watched Ruby Fundamentals on pluralsight, so I know something
<shevy> did you write a game in ruby yet purplexed^ ?
<purplexed^> I'm trying to write an agent based platform for monitoring servers infrastructure and platform state
<haylon> Man, I continuously hitup Learn Ruby The Hard Way, Tutorialspoint, CodeAcademy, and a few other pages just to keep up
<purplexed^> like checking out if ports are open, ping time, cpu load, memory use
<haylon> purplexed^ #zabbix ?
<shevy> don't forget answer people on stackoverflow haylon
<shevy> *answering
<purplexed^> nah, zabbix looks like crap to be honest :/
<haylon> its what I use
<haylon> and love it
<shevy> write purplexix!
<haylon> Just got "Professionally Certified" last week
<purplexed^> haylon: why is it good.... ?
neilnorthrop has joined #ruby
<purplexed^> I get confused looking at the documentation
<haylon> Open Source, and Free, so if you have a problem, submit code fixes, or enhancements. Then also, you can extend it considerablly
neilnorthrop has left #ruby [#ruby]
<craysiii> purplexed i wrote something like that in python for an internship, was a pretty cool project
<purplexed^> it seems.... weird
<purplexed^> craysiii: cool
<haylon> Zabbix to me is easy to read
<purplexed^> what is Zabbix written in ?
sepp2k has quit [Read error: Connection reset by peer]
<haylon> C. However, you can extend it with Ruby, or whatever language you want
<purplexed^> mhm
<haylon> but preferred C
<purplexed^> alright
<purplexed^> I looked at Zabbix actually
<purplexed^> I kinda didn't like it
<haylon> I write all sorts of Ruby scripts and have Zabbix run them to do some extereme monitoring
<haylon> Make sure you use a supported version. 2.2, or 2.4. 3.* is coming soon, but its still in Alpha
<haylon> and 3.0 is way better than the other ones
<purplexed^> haylon: does it require you to install anything ?
<haylon> yeah, you'll need a DB, SQLite, MariaDB, or PostgreSQL
subscope has quit [Remote host closed the connection]
<haylon> then the server daemon, agents and they have proxies and such
<purplexed^> haylon: how about on clients ?
<haylon> yeah, you'll need a clients
<purplexed^> mhm... they don't need db's right
<haylon> unless youre skilled with WinRM, and SSH scripts
<shevy> as havenwood would say - install all the things http://tech.simplybusiness.co.uk/content/images/2013/Feb/things.png
<haylon> The agents don't need a DB
<purplexed^> good :)
<haylon> just the server and proxies
blackmesa has quit [Ping timeout: 255 seconds]
<purplexed^> maybe I'll try to not be so angry at zabbix then
bonhoeffer has quit [Quit: bonhoeffer]
<haylon> lol, I'm also on the #zabbix channel
<purplexed^> it just looked so shabby
<haylon> so if you need help, post in there
<haylon> its been updated a lot in 3.0
<haylon> but its still in Alpha
andikr has quit [Remote host closed the connection]
<haylon> its a pure C back end, and the API and Web front end use the same point this time
<purplexed^> okay, that's fair enough... I guess what I write will be in alpha too ;)
<haylon> lol
<haylon> isn't that the way now a days with games and such?
<haylon> I digress.
<purplexed^> SHIP IT!
<shevy> there are not enough ruby games!!!
<haylon> True that shevy
jackjackdripper1 has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<haylon> we should try to make one
jackjackdripper1 has quit [Client Quit]
<haylon> However, picking a UI toolkit is where I usually get hung up
bonhoeffer has joined #ruby
sinkensabe has joined #ruby
<shevy> I am trying!!!!! but I found writing games to be one of the hardest thing in ruby, it's like a neverending time sink
<haylon> lol
<haylon> What's your UI of choice?
<purplexed^> haylon: I got hooked on Ruby because it's a dynamic language, and that it seems like I can ship code to it for execution, and that's nice for a scenario with agents
gusTester has quit [Ping timeout: 246 seconds]
diegoaguilar has quit [Ping timeout: 268 seconds]
Sembei has joined #ruby
<haylon> what do you mean ship code to it for execution? Just installing the Gem, and then sending data to a "server" process?
<haylon> I kindof do that with some Sinatra apps
atomical_ has joined #ruby
jackjackdripper has quit [Ping timeout: 260 seconds]
<purplexed^> haylon: I need my agents to execute "tasks", like Octopus Deploy
gusTester has joined #ruby
yitsushi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> haylon mostly still ruby-gtk due to my laziness and inertia
freerobby has quit [Quit: Leaving.]
<purplexed^> haylon: do you know Octopus Deploy ?
Pisuke has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
<haylon> I've seen it, but only thought of it for C# purplexed^
p0wn3d has quit [Ping timeout: 240 seconds]
atomical has quit [Read error: Connection reset by peer]
Akagi201 has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
<haylon> shevy, yeah, I keep looking for a toolkit that has a lot of functions, and minimal effort to install for newbs, or non-techie's
unreal has joined #ruby
<purplexed^> haylon: well, it has agents... just like I need... and i can ship Powershell to it, and have it execute, and then report back what happened
<purplexed^> haylon: that's what I am trying to do with ruby now
adac has quit [Ping timeout: 252 seconds]
<purplexed^> because ruby doesn't need Java, .NET framework or something like that
ngscheur1 has quit [Ping timeout: 265 seconds]
slawrence00 has joined #ruby
<haylon> Still need to install Ruby though
<purplexed^> that's okay
<jhass> purplexed^: mmh, eval'ing network submitted code? be sure to ping back when you're done and my free servers are ready
acke has quit [Remote host closed the connection]
<haylon> and then that's where it comes down to, do I use this 3rd party hipster language, or the native shell language
<craysiii> hipster language o.O lol
bonhoeffer has quit [Quit: bonhoeffer]
<haylon> that's what my co-workers call it
<haylon> the plebians they are
freerobby has joined #ruby
<jhass> the hipsters are currently moving to node & go
bonhoeffer has joined #ruby
<haylon> lol
eminencehc has quit [Remote host closed the connection]
<haylon> I want to learn go
<jhass> don't. Learn Crystal :P
<haylon> It just doesn't stick, and I keep falling back to Ruby, or C
<haylon> I also started looking into Haskell and Erlang
eminencehc has joined #ruby
<haylon> just to add to my toolbelt of languages
<purplexed^> It seems like a dynamic language like ruby is excellent for having an agent on a server... and then I ship it some code, which it executes, and then sends back a response, or the response is sent to a logging server
<haylon> Yeah, you can totally do that purplexed^
<jhass> dynamic doesn't mean bulletproof sandboxed purplexed^
<purplexed^> I understand that
<purplexed^> by it seems New Relic is using Ruby for agents too
<jhass> so make really sure to no fuck up authentication
<purplexed^> but*
<jhass> deploy TLS
<haylon> jhass, definitely
<haylon> another task, learn how to implement TLS, SSL, and RSA keys
<jhass> else it's not just your metrics leaked, it's the whole box lost easily
<purplexed^> I'm sure New Relic spent some time considering which language was best for agents
<haylon> I would say that Chef Server would be a good example
freerobby has quit [Client Quit]
<jhass> haylon: TLS is SSL, well, TLS 1.0 is
<jhass> SSL is deprecated, we actually should start to no longer use that term
<haylon> Huh. Really?
<jhass> really
ngscheur1 has joined #ruby
<jhass> SSLv3 is considered insecure
<haylon> plus, whatever happened to the openssl howto pages?
<haylon> I found a "cookbook" epub for it, but the plain text documents I found, are no longer existing.
<haylon> Oh well. jhass, are there any premade gems to help assist with authentication like that using TLS/SSL?
<haylon> or using RSA keys
blackmesa has joined #ruby
<jhass> TLS encrypts the connection, it does not provide authentication
pdoherty has joined #ruby
<jhass> authentication is then done over the encrypted connection
<jhass> ruby stdlib has a quite comprehensive openssl binding
Igorshp has joined #ruby
<jhass> depending on the authentication scheme you want to implement it might help with that too, in particular for challenge response type stuff
<haylon> I saw that. I just need to fiddle fart with it and learn to use it
lkba_ has joined #ruby
<jhass> well, unless you do client certs I guess, but that's usually quite finicky and few people really do it
dfockler has joined #ruby
alcipir has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
<purplexed^> so, if I have a ruby application running on a client server, and I want to ship some code to it, to perform a check to see if a port if open to some other server. What is the best way to do that ?
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
K1MOS has joined #ruby
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<atomical_> attempt to connect and set a timeout?
blackmesa has quit [Ping timeout: 252 seconds]
yardenbar has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
diegoaguilar has joined #ruby
<jhass> I probably wouldn't do it really, there are just too many things that can go wrong with that approach
n008f4g_ has joined #ruby
tenderlove has joined #ruby
<purplexed^> atomical_: no, I have a master server (A), and an agent server (B), and I want to ship code from server A to B, to try and connect to server (C)
<haylon> I kind of made a gem for that recently
<jhass> maybe provide generic commands and just sent the parameters in from the server
<haylon> gem search port_scanner
eminencehc has quit [Remote host closed the connection]
alcipir has quit [Ping timeout: 255 seconds]
tenderlove has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tenderlove has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
Akagi201 has quit [Ping timeout: 255 seconds]
<jhass> {"command": "port_check", "port": 1234, "proto": "tcp", "interface": "*"}
<jhass> or {"command": "port_check", "options": {"port": 1234, "proto": "tcp", "interface": "*"}} rather
eminencehc has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
adac has joined #ruby
ngscheurich has joined #ruby
ldnunes has quit [Quit: Leaving]
<purplexed^> jhass: sorry, are you speaking to me ? :)
<jhass> nobody else is talking?
<purplexed^> then I guess you are talking to me
kinduff has quit [Quit: Textual IRC Client: www.textualapp.com]
<purplexed^> but
<purplexed^> see
<purplexed^> the problem with that is that the client needs to know the commands I am sending
<purplexed^> It should be ignorant of the commands... it should just be able to execute them
DEA7TH has quit [Quit: DEA7TH]
<purplexed^> otherwise, if I create new commands, then I need to update the clients
<jhass> and I'm saying that's a bad idea
zenguy_pc has quit [Ping timeout: 240 seconds]
<jhass> it's something malware authors do
ngscheur1 has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
<jhass> it's something other malware authors subsequently exploit to take over infected boxes
rodfersou has quit [Quit: leaving]
<purplexed^> it's internal software
<purplexed^> and it's being passed over secure lines
rdark has quit [Quit: leaving]
<jhass> until something is misconfigured
tenderlove has joined #ruby
yitsushi has joined #ruby
<jhass> or somebody discovers it without realizing these implications and deploys it somewhere else because "neat" or "it's what we always do"
K1MOS is now known as moos3
relix has joined #ruby
anisha has quit [Quit: Leaving]
<haylon> or someone takes it off the secure network
riotjone_ has joined #ruby
<purplexed^> jhass: it's being sent over SSL, so it's not something that can be discovered
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
but3k4 has joined #ruby
<jhass> followed the news last year? how many issues we found in SSL and TLS implementations?
<haylon> When you say secure lines, I imagine like secret network with steel piping, and 3ft separation, and no one allowed in the uilding.
<jhass> TLS doesn't prevent scanning at all
idefine has quit [Remote host closed the connection]
duderonomy has joined #ruby
<purplexed^> why are you concerned with the security.. ? .. I'll take care of that :)
bkxd has joined #ruby
Rollabunna has quit [Remote host closed the connection]
duderonomy has quit [Max SendQ exceeded]
<jhass> I'm just outlining why I think that you have a very bad idea
QORRiE has quit [Remote host closed the connection]
<purplexed^> that's great, .. but I've got that under control... but I appreciate the effort
varunwachaspati has quit [Quit: Connection closed for inactivity]
<haylon> don't need another linux.wifatch going around
<purplexed^> hehe
acke has joined #ruby
tenderlove has quit [Ping timeout: 240 seconds]
riotjone_ has quit [Ping timeout: 246 seconds]
<purplexed^> i've been doing coding for 20 years, can we please skip the security talk ?
tenderlove has joined #ruby
<purplexed^> But Ruby is new to me
shinnya has joined #ruby
<jhass> &ri Kernel#eval
but3k4 has quit [Ping timeout: 260 seconds]
<jhass> there's your pumping, happy shooting yourself
<jhass> *pumpgun
adac has quit [Ping timeout: 264 seconds]
phutchins has joined #ruby
Igorshp has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
<purplexed^> jhass: why do you have to go to extremes ?
<purplexed^> we are just talking.
<haylon> Damn, my tests are running, but I'm not seeing any runs.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<purplexed^> So, I'd just like to know what a good way would be to have a ruby application receive some code for execution, and then let it pass it's result to either a logging platform, or back to the passing server
<purplexed^> i'm not worried about security
<karapetyan> why (1..5).to_a works fine. But (5..1).to_a #=> [] ?
VeryBewitching has joined #ruby
colintherobot has joined #ruby
pdoherty has quit [Ping timeout: 252 seconds]
<jhass> karapetyan: because Ranges call #succ, not #pred
colintherobot has quit [Client Quit]
colintherobot has joined #ruby
<haylon> purplexed^ you should be able to just send a JSON message to a socket server and then have the receiving end parse it
<karapetyan> jhass: ok
<purplexed^> haylon: no, that again means the client would need to understand the implementation. And I don't want that... it should be ignorant of the command I send it :)
<karapetyan> jhass: thx
<purplexed^> haylon: otherwise, I will need to update the client everytime I have a new command
<purplexed^> haylon: it should understand commands, but not their implementation
Xiti has quit [Quit: Xiti]
chandlerbing has quit [Remote host closed the connection]
<purplexed^> haylon: with JSON it needs to be parse, and be understood on the client
<haylon> Then I'm not sure how you'd make a client that would just be a relay
chandlerbing has joined #ruby
<haylon> to the Kernel functions
baroquebobcat has joined #ruby
<purplexed^> haylon: If it follows a convention, then I'm sure Ruby somehow could parse it correctly... it would be similar to passing an object in C# that adheres to an interface
<haylon> the client would need to read some sort of stream, whether it be a socket stream, or JSON message, then decode it so it can read what command needs to be ran, hten executed by kernel#exec
<purplexed^> haylon: if I passed something that had, say, a class that had a method "Execute", then it could probably execute "Execute"
<haylon> jhass, I'm having issues with my Minitest test.
* jhass is part of the rspec crowd
<haylon> I have it setup, and create an object, assert_equal true, @object.do_stuff
<haylon> ahhh
alcipir has joined #ruby
<haylon> well, I'll get there in a bit
<haylon> learning both minitest and rspec
<weaksauce> haylon you can gist the test and output and I will look at it
<haylon> Ight, one sec. Let me get my changes committed.
<purplexed^> like, If I passed it: "ping 127.0.0.1", I could pass that to `ping 127.0.0.1` and send that back
idefine has joined #ruby
<haylon> some flaws in that already, unless your specifically runningon Windows, purplexed^
<purplexed^> but if it's more complex, like I need to resolve a hostname, before I ping
<jhass> >> (eval "class BadIdea; def idea_idea; puts 'This is still a bad idea'; end; end;").new.bad_idea
<ruboto> jhass # => undefined method `new' for :idea_idea:Symbol (NoMethodError) ...check link for more (https://eval.in/453523)
<weaksauce> so you want to execute arbitrary shell commands from clients?
<jhass> >> (eval "class BadIdea; def idea_idea; puts 'This is still a bad idea'; end; end; BadIdea").new.bad_idea
<ruboto> jhass # => undefined method `bad_idea' for #<BadIdea:0x4244fdf8> (NoMethodError) ...check link for more (https://eval.in/453524)
chandlerbing has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<jhass> >> (eval "class BadIdea; def bad_idea; puts 'This is still a bad idea'; end; end; BadIdea").new.bad_idea
<ruboto> jhass # => This is still a bad idea ...check link for more (https://eval.in/453525)
chandlerbing has joined #ruby
acke has quit [Remote host closed the connection]
<jhass> weaksauce: scroll up, been through everything they're ignorant on the concerns
<adaedra> eval/exec with remote-provided input? can it be more a bad idea?
<jhass> well, I'll retreat and get popcorn have your fun!
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<weaksauce> i see. I echo that it's a bad idea.
mary5030 has quit [Remote host closed the connection]
<purplexed^> but do you understand what I am trying to do... I want to pass 'any' code to my agent, and have it pass back the results
<haylon> I understand
<haylon> its still a bad idea
<adaedra> jhass: share the popcorn
<jhass> we all understand
<purplexed^> okay, I respect your concern
QORRiE has joined #ruby
<jhass> ?popcorn
<ruboto> I don't know anything about popcorn
<haylon> weaksauce: here's the repo, I'm getting the gist posted
<jhass> ?popcorn=It's popcorn time!
<ruboto> I don't know anything about popcorn
<jhass> derp
alcipir has quit [Ping timeout: 256 seconds]
<jhass> !fact mk popcorn It's popcorn time!
<ruboto> jhass, I will remember that popcorn is It's popcorn time!
<purplexed^> I'm not so worried about concern... I'm trying to understand how, if I pass some code to a second application, how I get the result back to the application who sent it
<pocketprotector-> +1-<area code-popcorn
<jhass> >> (eval "class BadIdea; def bad_idea; puts 'This is still a bad idea'; end; end; BadIdea").new.bad_idea # then start with stopping to ignore this
<ruboto> jhass # => This is still a bad idea ...check link for more (https://eval.in/453526)
eminencehc has quit [Remote host closed the connection]
axl_ has joined #ruby
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
chandlerbing has quit [Remote host closed the connection]
idefine has quit [Ping timeout: 255 seconds]
<purplexed^> perhaps the client needs some mechanism built in to send it back ?
<purplexed^> perhaps I just send it to a log from the client
<haylon> Read about the kernel#exec libraries part of the stdlib in ruby
<purplexed^> both are fine
idefine has joined #ruby
sheperson has quit [Quit: sheperson]
momomomomo_ has joined #ruby
Xiti has joined #ruby
momomomomo has quit [Ping timeout: 240 seconds]
momomomomo_ is now known as momomomomo
<purplexed^> so, you are experienced ruby devs probably. So I'm asking you what a good way to do what I need is.
bkxd has quit [Ping timeout: 246 seconds]
<weaksauce> purplexed^ there are many ways to execute shell commands http://tech.natemurray.com/2007/03/ruby-shell-commands.html
<weaksauce> be careful
<haylon> seen it before
pdoherty has joined #ruby
above has quit [Disconnected by services]
<purplexed^> brb
<weaksauce> haylon it didn't test anything.
<haylon> I actually like the Open3#popen3
greenride has joined #ruby
<haylon> weaksauce, I figured. I'm not sure why its not picking up my tests though
<jokke> hi
<haylon> sup
<jokke> any ideas what may be a good channel to ask about WebSocket stuff?
<jokke> i try to implement a ddp client in crystal but i fail to establish a connection
<jokke> i tried the ruby gem metybur and it works
<jhass> there's #websocket-rails with 9 users :P
<jokke> jhass: \o/
<jokke> :D
chandlerbing has joined #ruby
chandlerbing has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 240 seconds]
<jokke> and i even sniffed the loopback interface for websocket frames with wireshark
symm- has joined #ruby
<jhass> /msg alis help btw
<jhass> (there's a #meteor too)
<jokke> jhass: they have no clue
nhmain has joined #ruby
<nhmain> is there a place to find free pair programming?
<adaedra> Time to call Sherlock
<jokke> nhmain: yes. just over the rainbow
<purplexed^> back
<rfi_> the mythical pair programming or the kind where a more a senior guy dolls out tasks to a jr?
lipoqil has quit [Quit: Connection closed for inactivity]
zcreative has joined #ruby
zcreative has quit [Remote host closed the connection]
colintherobot has quit [Quit: leaving]
<purplexed^> thanks weaksauce
zcreative has joined #ruby
<jokke> jhass: i'm getting desperate tbh
zcreative_ has joined #ruby
<jhass> I still don't know this stuff at all though, sorry
<jokke> there's virtually no difference in the messages i send over ws with my ddp client to those of metybur
<jhass> "virtually" :P
gregf has joined #ruby
_blizzy_ has joined #ruby
<jokke> jhass: yeah well there's always difference since client messages are masked with a random key
<jokke> apart from that there's no difference
<jokke> very frustrating
ta has joined #ruby
danman has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
<jhass> but the remote does just close the connection?
<jhass> you've seen the corresponding TCP packets in wireshark?
<nhmain> rfi_: the kind where a more senior helps out the jr get unstuck by helping him understand how code works so he can be on his way to complete the project
<jokke> i'm not sure _what_ it does. I see a weird packet on the wire
haxrbyte has joined #ruby
ta_ has joined #ruby
<jokke> unknown opcode
<rfi_> so not really pair programming, just mentoring
kaleido has joined #ruby
bkxd has joined #ruby
synthroid has quit []
umgrosscol has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
<nhmain> rfi_: yes a bit of mentoring where can i find free mentors online?
zcreative has quit [Ping timeout: 268 seconds]
DEA7TH has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
decoponio has quit [Quit: Leaving...]
ta has quit [Ping timeout: 256 seconds]
<jokke> jhass: i'm not sure how those packets should look like..
<rfi_> well this channel for one
hal_9000__ has joined #ruby
<zcreative_> what is the best way to sort an array of objects into an order specified by an array of strings? ['QB', 'WR', 'TE']
<rfi_> i mean people here probably wont walk you through everything, but if youre stuck on something
<nhmain> does ruby have closures?
<zcreative_> i have an array of objects with a position property. i need to sort objects by the array
<jhass> jokke: fin, ack+fin, ack
hal_9000_ has quit [Ping timeout: 260 seconds]
<jokke> hm
<jokke> no
cloaked1_ has joined #ruby
<jokke> fin+ack, ack, fin+ack, ack
<shevy> ack ack dolfin!
<shevy> purplexed^ you complained about no activity, now look at what the two entertainers do there ^^^
<jhass> jokke: well, who's sending the first fin? that's kinda what we're looking for
_el_fer_ has quit [Quit: Leaving]
spider-mario has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
<purplexed^> shevy: hey, I can come back to activate you guys once in a while if you want ;)
<jokke> after my connect message the server sends the first fin+ack
<havenwood> purplexed^: Monday morning is dead-time.
<shevy> what do you guys have with all those fins ...
idefine has quit [Remote host closed the connection]
<jhass> jokke: then it's closing the connection, probably because it thinks it's malformed
<purplexed^> havenwood: I'll keep that in mind
symm-_ has joined #ruby
diegoaguilar has quit [Ping timeout: 260 seconds]
<jokke> jhass: :(
<jhass> shevy: do you want to hear a TCP joke?
symm- has quit [Ping timeout: 260 seconds]
<purplexed^> I have been here quite a few times I can tell you... and it's been nothing but in and outs :D
idefine has joined #ruby
<adaedra> havenwood: sunday is more dead imo.
<purplexed^> okay okay, I'll accept that I might have been wrong :)
<purplexed^> I'll idle
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> jhass hmm ... is it a bad one?
<jhass> shevy: here comes a TCP joke
nofxx has joined #ruby
<shevy> purplexed^ in and outs? disable those messages!
<purplexed^> just don't call me a troll mmmkay
moos3 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> where is the joke! oh jokke
diegoaguilar has joined #ruby
<jhass> shevy: this was a TCP joke
<shevy> haha
<purplexed^> Ebok seemed very sure I was a troll
bkxd has quit [Ping timeout: 246 seconds]
<purplexed^> I'm not.
<shevy> ok no more TCP jokes for the rest of my life
<purplexed^> i'm a C#'er trying to learn Ruby... it's tough man
<shevy> python joke: http://bash.org/?400459
<adaedra> shevy: I have an UDP joke, but you may not get it.
<jhass> purplexed^: well, coming into a community and telling it how bad it is, who would welcome that
leafybas_ has quit [Remote host closed the connection]
<havenwood> adaedra: ha
platzhirsch has joined #ruby
<purplexed^> jhass: I don't mind that
<shevy> I like purplexed^ - he is so without conventions :)
<havenwood> purplexed^: If it quacks like a troll...
<jhass> purplexed^: then I guess you lack some empathy tbh
<purplexed^> jhass: if a community is upset for me mentioning how quiet it is........
<jokke> left is the accepted metybur connect message
<jokke> right the one from my ddp client
<jhass> purplexed^: you didn't just "mention" it though
<purplexed^> jhass: I don't understand empathy :)
<eam> lawl
<purplexed^> it's genetic I'm afraid
atomical_ has quit [Ping timeout: 255 seconds]
<purplexed^> havenwood: then you have probably been on the internet for too long
<jhass> jokke: well ... (can't believe I'm suggesting this) ... did you try ordering the attributes the same?
dfockler has quit [Ping timeout: 250 seconds]
<purplexed^> havenwood: I understand you though.
<jokke> jhass: well, (can't believe i did) ... but yes i have
dagda1_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ixti has quit [Ping timeout: 255 seconds]
<purplexed^> I'm not a troll... I spent 3 days watching a Ruby fundamentals course... I'm trying to learn the language.. and I was appalled by the lack of activity here
maletor has joined #ruby
<havenwood> purplexed^: This discussion is painfully meta offtopic. If you'd like to discuss how you're not a troll at length let's do it in #ruby-offtopic.
<shevy> purplexed^ eh you are married so you must have more empathy than solo hackers
arup_r has quit [Quit: Leaving]
pocketprotector- has quit [Ping timeout: 240 seconds]
<purplexed^> havenwood: I'm not so interested in discussing something I'm not. I didn't bring it up. so.
<jhass> jokke: mmh, what's the extra byte of the frame of the left message?
<purplexed^> havenwood: you could discuss it at length with other members of this room
<jokke> jhass: i think it's because the message on the right is split in two tcp packets
eminencehc has joined #ruby
<jokke> (see the "2 reassembled TCP Packets")
<jhass> so the TCP packets have the same length? (left is not visible)
<jokke> *Segments
Akagi201 has joined #ruby
<jokke> yeah left the tcp packet has len 53
chandlerbing has joined #ruby
chandlerbing has quit [Remote host closed the connection]
<jhass> well, that's weird
<jokke> and right they have a combined length of 53
alcipir has joined #ruby
<purplexed^> havenwood: Ebok is a good candidate for that talk. Since he was the one who called me a troll to begin with.
* purplexed^ shurgs
<jhass> jokke: I guess you'd have to throw a debugger into the server now :/
<shevy> purplexed^ don't shurg like that
<jokke> jhass: D:
vF3hNGxc47h8 has joined #ruby
ivanskie has joined #ruby
<purplexed^> hey, I got hit by shrapnel in vietnam...
ivanskie has joined #ruby
<weaksauce> purplexed^ well a major use case of ruby is rails and that channel is quite active
<shevy> we can be active too!
<haylon> Well, I'm out brodies/brodets
<purplexed^> I need not rails
DEA7TH has quit [Ping timeout: 246 seconds]
<haylon> take it easy folks
haylon has quit [Quit: Leaving]
htmldrum has joined #ruby
<jhass> jokke: I was going to suggest the masking goes wrong, but then wireshark seems to have no trouble with it, idk
<jokke> jhass: yeah
<purplexed^> I'm new here, ... sorry I was whining... I was just pointing out how quiet it is here.
<jokke> jhass: i also tried sending the msg unmasked
jenrzzz has quit [Ping timeout: 250 seconds]
<purplexed^> it seems it has livened up since
gusTester has left #ruby [#ruby]
jxl180 has quit [Ping timeout: 264 seconds]
dagda1_ has joined #ruby
<jokke> jhass: i've pretty much tried everything humanly possible. except for sacrificing virgins. I'll have to wait for the next full moon.
last_staff has quit [Quit: zzZZzzZzzZZZ.....zzz..]
alcipir has quit [Ping timeout: 240 seconds]
glenn_ has joined #ruby
<glenn_> Goodevening
workmad3 has joined #ruby
<glundgren> someone knows if i can say here about a new channel i created?
<jhass> is it related to Ruby?
<glundgren> yes
<purplexed^> lol
<havenwood> glundgren: Then yes.
<glundgren> i got banned from RubyOnRails, then i created ruby_on_rails
<purplexed^> lmao
<glundgren> to be a free place to chat
<glundgren> :P
spew has quit [Quit: leaving]
<purplexed^> that makes me so happy
<apeiros> I think #railsbridge exists for a similar reason
<glundgren> hahaha
<glenn_> Does anyone know what the best way is to unit test that a password confirmation has to be matched?
CloCkWeRX has quit [Ping timeout: 268 seconds]
<glundgren> apeiros: theres rules on it?
Akagi201 has quit [Ping timeout: 265 seconds]
<purplexed^> ruby_on_arrogance
<apeiros> no idea
<glenn_> I tried the assert_equal ["confirmation doesn't match"]
<daed> why did you get banned glundgren ?
<apeiros> and since I don't know what you got banned for in rails, no idea whether you'd get banned there too
<glundgren> daed: Radar doens't seem to like me
<glundgren> daed: because i make fun of the excessive rules
<jokke> jhass: it seems it's always splitted into two tcp segments...
<apeiros> radar usually has a good reason when he doesn't like people
<craysiii> Radar rules with a heavy hand, but i can understand where he is coming from.
<agent_white> Today I think I realized I'm an awful programmer. Does that mean today is a good day? :)
<jokke> jhass: always one with 1 byte and the other with the rest..
<jhass> jokke: mmh
<jokke> not sure why
symbol_ has quit [Quit: WeeChat 1.1]
momomomomo has quit [Ping timeout: 250 seconds]
<purplexed^> agent_white: what makes you think you are an aweful programmer ?
vF3hNGxc47h8 has quit [Ping timeout: 240 seconds]
<jhass> agent_white: yes
<daed> jhass: what channel is that from? #rubyonrails?
<weaksauce> agent_white naw good days are when you can delete code... knowing that you are an awful programmer is just a constant
<weaksauce> :)
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> daed: all channels helpa is in combined, click on a message to get the specifics
leafybasil has joined #ruby
<daed> ahh interesting
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<purplexed^> weaksauce: no man, aweful programmer is the first step to becoming a great programmer
symm-_ is now known as symm-
glenn_ has left #ruby [#ruby]
alcipir has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
sdothum has joined #ruby
<purplexed^> oh dear
codecop has quit [Quit: Išeinu]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
workmad3 has joined #ruby
EllisTAA has joined #ruby
momomomomo has joined #ruby
alcipir has quit [Ping timeout: 255 seconds]
phutchins has quit [Ping timeout: 240 seconds]
ngscheurich has quit [Ping timeout: 264 seconds]
rwilcox has quit [Quit: WeeChat 1.2-dev]
<Radar> daed: apeiros: glundgren seems to rant+rave about feminazis and I think it's disruptive to the channel... so they're banned.
<mloy> I think he enjoys the attention
<jhass> Radar: you don't need to justify about it, especially here ;)
choke has joined #ruby
<Radar> :)
<agent_white> Too late for popcorn? :(
<purplexed^> what is with this channel and popcorn
<jhass> agent_white: you can have some log popcorn above
<apeiros> +1 @ no need to justify :)
* agent_white nomonomnom
<purplexed^> I'm assuming popcorn mean, "can I watch"
<glundgren> Radar: you cant ban me from a channel because we have different opinions about an offtopic dude, i use rails to make a living
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
<glundgren> not to rant
<jhass> glundgren: wrong place, take it elsewhere or you're gone from here too
<glundgren> but i will not bite your trap
<glundgren> yes
<glundgren> jhass: sorry
<agent_white> We had a saying in the restaurant industry. "Leave it at the door."
<purplexed^> agent_white: did that mean you couldn't bring your pet rat to work ?
ruurd has quit [Quit: ZZZzzz…]
<agent_white> purplexed^: Oh no, there was a few revisions to it. -- "If it fits in your pocket..." being one.
<purplexed^> that's a good rule
<agent_white> Pet rocks are OK as long as they don't poop on the carpet.,
DroidBurgundy has quit []
<craysiii> glundgren i think the point is that you should only talk about things on-topic in a topic-driven channel. if you want to rant about things do it in #offtopic or somewhere else. #RoR is not the place to tout your ideology or opinions about things not related to RoR
tenderlove has quit [Ping timeout: 250 seconds]
<glundgren> cool
<glundgren> i will not say anything you guys won
<agent_white> There is no winner. Just, leave it at the door.
<mloy> don't make yourself the victim
<glundgren> mloy: if i respond im picking a fight
<purplexed^> lol
yitsushi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<glundgren> if i dont, i play the victim
bonhoeffer has quit [Quit: bonhoeffer]
tenderlove has joined #ruby
<purplexed^> please, more champions stomping the loser
<jhass> this stops now, next one that says anything related is gone for the next hour
alcipir has joined #ruby
Rollabunna has joined #ruby
<purplexed^> be nice to people. please.
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Keltia_ is now known as Keltia
Voker57 has quit [Remote host closed the connection]
chopin_ has joined #ruby
yitsushi has joined #ruby
jessemcgilallen has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
bollullera has joined #ruby
<craysiii> has anyone else felt that using RoR has weakened their ruby knowledge? after writing RoR controllers, models, and such, i try to write something in pure ruby and its just awful.
ivanskie has joined #ruby
<agent_white> http://rails5countdown.com/ -- I clicked on "How does this work?" expecting to see "After the timer reaches 0, Rails 5 is here!"
shinnya has quit [Ping timeout: 240 seconds]
<craysiii> or maybe i just never understood ruby to begin with..
CloCkWeRX has joined #ruby
<purplexed^> I'm too stupid to understand RoR
zotherstupidguy has quit [Ping timeout: 260 seconds]
<jhass> craysiii: I kinda have that in reverse, the stronger my Ruby gets the worse is my RoR
<craysiii> interesting
<platzhirsch> huh
alcipir has quit [Ping timeout: 250 seconds]
<platzhirsch> :D
<jokke> jhass: aha now it gets interesting... i just updated nodejs and meteor
<purplexed^> but I'm pretty good at C*#
<adaedra> I'll jave a Rails job
<agent_white> Radar: Awww :( That's works too! Thought it would be funny for it to say that :)
pwnd_nfsw has joined #ruby
<platzhirsch> agent_white: where did you get that link from
<purplexed^> -*
<jokke> instead of just closing the connection i get
chopin has quit [Ping timeout: 250 seconds]
<adaedra> I'll see how it plays on my Ruby
Rollabunna has quit [Ping timeout: 244 seconds]
<agent_white> platzhirsch: Reading through logs :) Nice site you put up there!
<jokke> i get an actual websocket close frame with this payload: Unrecognized frame opcode: 13
<platzhirsch> agent_white: just wanted to do something cheeky, you're rigt the link should directly jump to the function which does the calculation
<purplexed^> how are your guys experience with the Ruby community... is it open... is it easy to get information ?
<purplexed^> sorry if my english is incorrect
<Radar> purplexed^: very easy to get information
<Radar> there are a lot of good guides and helpful people in the Ruby community
<jhass> jokke: maybe the reassembling really goes wrong in node, somehow. But for all I know it shouldn't even be able to recognize it was fragmented...
<agent_white> It's terrible, godawful. You ask a question here, and people actually take the time to respond and help you out. Outragious if I do say so myself. They sometimes even remember you the next day, and ask how you've been!
<agent_white> ;)
<Radar> agent_white: and they do it all for free!
<agent_white> Radar: THE NERVE!
<Radar> They _rarely_ get paid to supply help
<Radar> I mean, do we live in a capitalist society or not?
mostlybadfly has joined #ruby
<adaedra> Stop that crazy talk
yfeldblum has quit [Remote host closed the connection]
<agent_white> Amen! What happened to the good 'ole days, when advice cost you at LEAST a buck.
<agent_white> ;)
<purplexed^> I'm trying to understand it from other communities perspective... perhaps you have an opinion...
baweaver has joined #ruby
jenrzzz has joined #ruby
tno has quit [Quit: Ex-Chat]
yfeldblum has joined #ruby
zcreative_ has quit [Ping timeout: 240 seconds]
<purplexed^> an important aspect of open source these days seems to be on the openness of open source communities
<purplexed^> some communities seem to have an arrogant approach, and others are very friendly, and more lighthearted to mistakes of new-comers
<weaksauce> ruby is open. not sure how hard it is to contribute to ruby core though. Is the main correspondence done in english or japanese?
<purplexed^> where do ruby-people feel they fit in
<Radar> purplexed^: I run some OSS projects. They have contributing guidelines. Follow the guidelines, and we will be friends. Do not follow the guidelines, and I will be your harshest critic :)
<Radar> If you file an issue on Forem without that information, I will close it outright.
<Radar> If you file an issue on Forem WITH that information, I will investigate it when I get a moment.
<Radar> weaksauce: a mix of both from what I've seen.
beauby has joined #ruby
<weaksauce> purplexed^ ruby and RoR is very welcoming to newcomers at first. but if the newcomer shows a pattern of willful ignorance and not wanting to put the time into learning it then they are less likely to help
<purplexed^> Radar: that sounds really good... what if someone asks a question to the wrong place?
<Radar> purplexed^: Other communities go further and they have a code of conduct: http://rubyonrails.org/conduct/
saddad has quit [Ping timeout: 240 seconds]
regreg has joined #ruby
shinenelson has quit [Quit: Connection closed for inactivity]
<jokke> jhass: mmh yeah
IrishGringo has joined #ruby
Azure has joined #ruby
spuk has quit [Ping timeout: 255 seconds]
tomchapin has joined #ruby
<agent_white> purplexed^: The community is rad. People around here are amazing and very friendly. Very creative bunch. I wouldn't be here if it weren't for many of the folks here.
<Radar> purplexed^: I _like_ the Rails Code of Conduct because it starts that "Rails is committed to fostering a welcoming community."
<Radar> I think without that welcoming community, Ruby and Rails would've been doomed a long time ago.
<purplexed^> agent_white: cool. It actually feels like people are nice here.
paulcsmith has quit [Quit: Be back later ...]
<weaksauce> also, matz is nice so we are nice
tenderlove has quit [Read error: Connection reset by peer]
<workmad3> agent_white: your promoters cash is in the mail ;)
<weaksauce> he seems like a nice guy
<agent_white> workmad3: ;P
<purplexed^> I admit to be provoking in the start... but as the talk has continued, people seem really nice.
<purplexed^> but I will never admit to being a troll :)
tobyx has quit [Remote host closed the connection]
<jhass> then don't bring it up again all the time
<platzhirsch> Ruby will die if everyone stays so nice, we need some harsh measures, more German
<workmad3> purplexed^: do you have a strange desire to live under bridges and jump out at passing goats?
zotherstupidguy has joined #ruby
tenderlove has joined #ruby
<purplexed^> jhass: I'll remind you, that I was called one, ... not that I was one.
<adaedra> purplexed^: weren't you told already to move that to -offtopic?
hackerdude has joined #ruby
<purplexed^> workmad3: well... people have strange desires.
<Radar> purplexed^: the channel isn't active 100% of the time
<Radar> There are dead zones, like my late afternoon (about 6 hours from now)
<purplexed^> adaedra: it's a meta-discussion
<Radar> It's on-topic for #ruby im
<Radar> imo*
tobyx has joined #ruby
bMalum has quit [Quit: bMalum]
<platzhirsch> I have the feeling that generally there are more people in IRC lately
<platzhirsch> also other channels, seems to grow, IRC feels strongest than ever
<purplexed^> platzhirsch: agree
<agent_white> purplexed^: What weaksauce said is actually the ruby community's motto, if you didn't know about it before. I think there's a reason you won't find another community that shares it.
<agent_white> Woop. Lag spike there. That might've been late.
<platzhirsch> hah, I thought weaksauce.. is this an insult?
<agent_white> Hahahah
<purplexed^> what is the motto again ? :)
<Radar> platzhirsch: The #ruby and #ruby-lang channels merged a couple of months back. Maybe that's it :)
petricore has joined #ruby
<weaksauce> haha
petricore has quit [Client Quit]
<platzhirsch> Write bad code and we will electrocute you
<agent_white> MINASWAN - matz is nice to white always naughty!
ql6wlld has joined #ruby
<jhass> https://en.wikipedia.org/wiki/MINASWAN it got its own wikipedia page!
<agent_white> s/to/so/
<Radar> purplexed^: MINASWAN: Matz is nice always, So we are nice.
shmilan has quit [Ping timeout: 246 seconds]
<Radar> Oh, it's "And". I always get it wrong
<purplexed^> We have a saying at my company: Whenever you have to deal with OPS... start by kicking them in the balls... just to get attention
<Radar> Probably why I am not a nice person 100% of the time.
<Radar> and if they don't have any?
<platzhirsch> That's a very fair point
<purplexed^> We assume they do :D
<Radar> How sexist ;)
<purplexed^> but yes, fair point
<platzhirsch> Oh no :)
<workmad3> Radar: you follow 'MINASWANS' - 'Matz is nice always, so we are nice sometimes'?
<purplexed^> balls/or vagina
<craysiii> guys can have no balls too! :(
<agent_white> Hahah workmad3
<Radar> purplexed^: and that's where we stop talking about it :)
<Radar> workmad3: I'm fine with being nice as long as instructions are followed.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Renich has quit [Remote host closed the connection]
<Radar> workmad3: If you are not following instructions, I'm assuming you're doing it wilfully and with the intent to annoy me.
<purplexed^> balls, or vagina, or the place where a scrotum sorta thing would be
<Radar> That's how I manage #rubyonrails, anyway.
alcipir has joined #ruby
<agent_white> We are nice so long as you are nice.
<Radar> purplexed^: aaand you're stopping now?
ql6wlld has quit [Client Quit]
<Radar> bbl
<purplexed^> yes sir
<VeryBewitching> follow :minaswan unless rules_violated!
<purplexed^> clarity
<agent_white> tmi
<shevy> purplexed^ perhaps Ebok was right :D :D :D
<purplexed^> it's hard in this multi-sexual world eh
<jhass> VeryBewitching: rules_violated? in that instance though
Ropeney has joined #ruby
<VeryBewitching> jhass: Was just thinking that, also maybe: follow! :minaswan unless rules_violated?
<jhass> well, following it is not dangerous
<VeryBewitching> That depends.
<shevy> unless you walk down a cliff
baweaver has quit []
<purplexed^> walking down a cliff..
<workmad3> VeryBewitching: more accurately - is there a non-dangerous form of `follow`?
<VeryBewitching> workmad3: Touche
faras has joined #ruby
Junkie has joined #ruby
tenderlo_ has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
<faras> Hi I'm having problems installing the mahoro gem
DEA7TH has joined #ruby
<faras> the error message is not very explicit: mahoro.c:10:19: fatal error: magic.h: Not such file
arthurix has joined #ruby
<faras> it seems to be missing some headers
mehp has joined #ruby
<shevy> imagemagick?
<faras> any idea what could it be?
<shevy> yeah include/ImageMagick-6/magick/magic.h
<faras> is it? I hate that library
cschneid_ has quit [Remote host closed the connection]
<shevy> just install the part where .h is
<agent_white> But... magick. :(
<adaedra> nah
alcipir has quit [Ping timeout: 250 seconds]
<faras> what part is that?
Jackneill has quit [Remote host closed the connection]
<platzhirsch> ImageMagick is great
<shevy> dunno, depends on your OS
<adaedra> given the gem, it's more likely linked to libmagic
<jhass> http://p.jhass.eu/5.txt that's the packages I got that provide a magic.h
<faras> it's a PITA to install, it's always been for me
* purplexed^ wanders off
<purplexed^> have a good evening all
<platzhirsch> faras: you'll find many StackOverflow questions on that topic which should give you canonical answers, I always run into these
<Junkie> purplexed^: get outta here
<shevy> https://rubygems.org/gems/mahoro/versions/0.4 "An interface to libmagic to determine file types using "magic" numbers." yep adaedra wins the lottery there
<weaksauce> shevy yeah it's probably that one
<faras> platzhirsch: I did't find any about mahoro, now that I know it's imagemagick I can continue my predictable suffering
<platzhirsch> haha
<shevy> you only have to read the gem description!
<platzhirsch> love that sentence
<Junkie> you only have to read the gem description!
<jhass> faras: read the scrollback again, most people here think it's libmagic not imagemagick
arthurix_ has quit [Ping timeout: 272 seconds]
lea has quit [Ping timeout: 240 seconds]
* purplexed^ writes down the catch-phrase
riceandbeans has joined #ruby
<faras> jhass: I just read shevy, it seems it's not
yitsushi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<riceandbeans> what does no implicit conversion of Fixnum into String mean?
<glundgren> Radar: pm you, can we talk there?
<shevy> you only have to read the gem description but you never will
<jhass> riceandbeans: that can have multiple reasons
<riceandbeans> the value of the first variable is 8.2
<jhass> >> 1 + "foo"
<ruboto> jhass # => String can't be coerced into Fixnum (TypeError) ...check link for more (https://eval.in/453584)
<adaedra> file-devel provides /usr/include/magic.h for me, sounds like the one
<jhass> >> "foo" + 1
<ruboto> jhass # => no implicit conversion of Fixnum into String (TypeError) ...check link for more (https://eval.in/453585)
<jhass> riceandbeans: ^ that's just one
<riceandbeans> I told it (8.2+1).floor
<riceandbeans> I mean, once interpolated
<jhass> ?code
<ruboto> We can't help you without your code, please post it to https://gist.github.com
uber has quit [Ping timeout: 250 seconds]
dfockler has joined #ruby
<riceandbeans> I said, foo = 8.2
<riceandbeans> bar = (foo + 1).floor
mehp has quit [Quit: Leaving]
lourkeur has joined #ruby
<adaedra> so foo.ceil?
tenderlo_ has quit [Read error: Connection reset by peer]
<jhass> well, that's not your real code because that wouldn't error
whippythellama has quit [Quit: WeeChat 1.3]
<shevy> haha
<riceandbeans> it is though...unless...wait...
<purplexed^> it's a business secret
K1MOS has joined #ruby
<riceandbeans> maybe even though the function returns 8.2, it's returning 8.2 as a string
<adaedra> yep, in reality it's not 8.2
FernandoBasso has joined #ruby
<riceandbeans> it's '8.2'
<riceandbeans> right?
<adaedra> we've been lied to.
bruno- has quit [Ping timeout: 240 seconds]
<platzhirsch> '8.000000000000002'
* purplexed^ scoffs
<riceandbeans> I mean, if I do foo.to_i it should work, right?
kies^ has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
<adaedra> to_i gives an integer
<purplexed^> that I know is correct adaedra
<riceandbeans> actually, I mispoke
<riceandbeans> return '8'
<riceandbeans> that's what's being returned to it from the function
<lourkeur> It seems like Kernel::gsub is missing altho it's in the docs... U mind just typing gsub in your REPL to check if I'm crazy ?
<adaedra> >> method(:gsub)
<ruboto> adaedra # => undefined method `gsub' for class `Object' (NameError) ...check link for more (https://eval.in/453586)
<purplexed^> <- is here for moral support
<riceandbeans> so, there's a function baz that returns '8'
<lourkeur> A bot!
<riceandbeans> so it's like, foo = (baz + 1).floor
<lourkeur> >> method(:sub)
<ruboto> lourkeur # => undefined method `sub' for class `Object' (NameError) ...check link for more (https://eval.in/453587)
<jhass> riceandbeans: so why do you return a string if you want a number?
<adaedra> &ri Kernel#gsub
<`derpy> No results
tenderlove has joined #ruby
Junkie has quit [Quit: Page closed]
<riceandbeans> can I take off the quotes and have it returned as a number?
<adaedra> What method are you talking about, lourkeur?
<riceandbeans> I thought I had to quote it
<havenwood> lourkeur: Link to where you see it in the docs?
<jhass> riceandbeans: nope, just drop the quotes
<riceandbeans> awesome
<adaedra> riceandbeans: between quotes is always a string.
<riceandbeans> thanks
<riceandbeans> :) ok
<adaedra> and, unlike some languages, it won't turn into a number mahically.
<adaedra> g*
<lourkeur> should be available almost everywhere right?
jessemcgilallen has quit [Quit: jessemcgilallen]
<havenwood> lourkeur: "Available only when -p/-n command line option specified."
<adaedra> “Available only when -p/-n command line option specified.”
<adaedra> ninja'd
prefixed has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<lourkeur> Oh
<lourkeur> thank you
<lourkeur> sorry
<faras> Thanks to this @channel for helping me :)
<havenwood> lourkeur: no prob, that is a bit confusing!
<platzhirsch> You're welcome Sir
<eam> oh man, I had no idea that kernel defined gsub when -p/-n -- that's fantastic
<adaedra> we all learn everyday
<riceandbeans> I don't understand that
<lourkeur> I was wondering why no one's sed one-liner broke at some point XD
<lourkeur> Ok
<adaedra> anyway
<lourkeur> so everything is in order
<adaedra> good night
<lourkeur> good night
<eam> riceandbeans: so you can ruby -p -e'gsub /foo/, "bar"' instead of ruby -pe'$_.gsub /foo/, "bar"'
Akagi201 has joined #ruby
<lourkeur> But it would be nice to do
<lourkeur> gets(somewhere_stupid)
<lourkeur> gsub...
momomomomo has quit [Quit: momomomomo]
<lourkeur> puts(somewhereelse)
<lourkeur> in a loop
<lourkeur> in a non one-liner
<lourkeur> I'll just use $_.gsub
<lourkeur> anyway
lourkeur has quit [Quit: going to bed]
<EdwardIII> doesn't seem to be a huge amount of love for debuggers in ruby heh
s00pcan_ has quit [Remote host closed the connection]
<programmerq> EdwardIII: how so? I know I've done step-through debugging in ruby before.
<programmerq> granted, I generally use the integrated debugger in rubymine, and that isn't exactl a foss option.
s00pcan has joined #ruby
<riceandbeans> never heard of rubymine
<riceandbeans> also, for one liners I sed
<riceandbeans> I should probably perl, but I sed
<eam> I make a point to never sed/awk in favor of perl
<EdwardIII> well python has pdb, php has debug, ruby has 'throw' and pry as the most popular options from what i see?
zenguy_pc has quit [Ping timeout: 260 seconds]
<riceandbeans> I never learned perl one liners
<riceandbeans> I know sed and awk though
<eam> it's basically the same
<riceandbeans> but I wrote a lot in perl
<EdwardIII> you can do oneliners in ruby, no?
<eam> perl -pe's///' is sed
<eam> perl -ane'print for @F' is awk
<riceandbeans> I know the perl debugger relatively well now too
<eam> (same for ruby too, for the most part)
<riceandbeans> I wonder if there's python one liners too
<riceandbeans> or if they're too good for that
<eam> I don't ever want to deal with non-PCRE
<riceandbeans> I work with some people that shit on PCRE because it's not POSIX
<eam> posix RE is awful
<riceandbeans> I told them PCRE is the gold standard, that's why like...everything uses it
<eam> if they know anything about posix they should know the #1 truism: it's inadequate
riotjone_ has joined #ruby
<riceandbeans> they were like, no POSIX is the gold standard
inteq has quit [Remote host closed the connection]
<eam> well it is -- for a container upon whcih actually useful cross-platform software like libpcre can be built
<riceandbeans> eam: would you care to guess their programming of choice?
<eam> C
<riceandbeans> ksh
<eam> absurd
jessemcgilallen has joined #ruby
QORRiE has quit [Remote host closed the connection]
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
musl has joined #ruby
but3k4 has joined #ruby
<EdwardIII> actually pry looks good
Tariq_ has joined #ruby
<eam> "why shouldn't you write shell scripts" is an interview question I like to ask
<Tariq_> What's the answer to that question?
<riceandbeans> what's pry?
<riceandbeans> sounds familiar
<eam> Tariq_: because of how variable interpolation works -- it's super dangerous
mary5030 has joined #ruby
<eam> referencing a variable means you interpolate it into the current string and evaluate it as shell code
<eam> the quoting rules are extremely complex
<Tariq_> Oh dear.
cndiv has joined #ruby
<Tariq_> So you could replace a programmer with a shell script but it's too risky
<eam> better use a ruby script ;)
<riceandbeans> but you can embed binary!!!
<EdwardIII> riceandbeans: improved irb & debugging tool
chouhoulis has quit [Ping timeout: 252 seconds]
mary5030 has quit [Read error: Connection reset by peer]
<Tariq_> I am dealing with a non-RoR problem
<Tariq_> it's a Sinatra problem, with HTML5
musl has quit [Client Quit]
mary5030 has joined #ruby
<riceandbeans> the problem is you're not using RoR?
riotjone_ has quit [Ping timeout: 244 seconds]
<Tariq_> No, I just thought RoR is too heavy for this specific problem
devdazed has quit [Ping timeout: 268 seconds]
freerobby has quit [Quit: Leaving.]
<xet7> Hi, I got error "Encoding::CompatibilityError: incompatible encoding regexp match (Windows-31J regexp with UTF-8 string)", how do I fix it? It's in this code http://ward.vandewege.net/blog/wp-content/uploads/2011/11/migrate_from_moinmoin.rake
but3k4 has quit [Ping timeout: 246 seconds]
polishdub has quit [Quit: Leaving]
<xet7> I'm trying to migrate moinmoin wiki to Redmine
<Tariq_> The problem I have is that it's giving me an Invalid URI Error
musl has joined #ruby
stannard has quit [Remote host closed the connection]
<Tariq_> even though all I'm doing is taking a file uploaded using HTML5 <file>
<VeryBewitching> Tariq_: #sinatra
Musashi007 has joined #ruby
<Tariq_> There's a chatroom for just sinatra?
<VeryBewitching> I don't know, I work with Rails
<VeryBewitching> But there's a good chance yes
<mordocai> There's one for everything, so probably
Akagi201 has quit [Ping timeout: 244 seconds]
<mordocai> Apparently per their topic they prefer slack
<mordocai> Hipsters
<eam> gross
<Zarthus> still has 60 users in the channel though
<mordocai> Or are we hipsters?
* mordocai ponders
<EdwardIII> slack...ware?
<eam> mordocai: I don't know about you but I'm too old to be a hipster
Asher has quit [Quit: Leaving.]
eminencehc has quit [Remote host closed the connection]
<mordocai> eam: I'm young enough, but i've been on IRC since middle school and I like it damnit
<mordocai> Maybe it was early high school
* mordocai shrugs
yashinbasement has joined #ruby
<Tariq_> This is going to be annoying
<Tariq_> I don't really even know how to phrase my question
<VeryBewitching> IRC has been around longer than all of the glittery web crap.
eminencehc has joined #ruby
<Tariq_> In a manner that can lead to me googling for the right answer
<Tariq_> even though I tried.
yashinbasement has quit [Client Quit]
<mordocai> Tariq_: Sounds like a routing issue to me, but I don't do sinatra
<VeryBewitching> Tariq_: Google for "sinatra" "Invalid URI Error"
<VeryBewitching> When all you have is a little information, there's only so many search terms.
<shevy> bery vewitching is so right
phutchins has joined #ruby
<VeryBewitching> BerryBewitching ?
<VeryBewitching> :D
zenguy_pc has joined #ruby
<Tariq_> I mean, I suspect it has nothing to do with Sinatra itself
<Tariq_> It has everything to do with the spaces in the file that I'm uploading
<Tariq_> but
<Tariq_> I don't know why that is the case
<VeryBewitching> If you don't have proof of it, don't speculate.
<shevy> I once had a weird error with sinatra
howdoi has quit [Quit: Connection closed for inactivity]
<shevy> I was using some other gem that was defining some top-level method which then interferred with sinatra
trosborn has joined #ruby
<VeryBewitching> shevy: gem reorder?
bonhoeffer has joined #ruby
nhmain has quit [Quit: Page closed]
doritostains has quit [Quit: WeeChat 1.1.1]
<VeryBewitching> shevy: Just curious as to how you fixed that.
<shevy> ah yes, I found it; doing something like "def body"
<VeryBewitching> Oh, ya.
<shevy> I removed the method before I was subclassing from sinatra
<shevy> (from that other gem's module namespace)
<shevy> I only required like 2% of that gem anyway
BrunoSaboia has joined #ruby
<shevy> and I kept on thinking that sinatra was buggy
<VeryBewitching> It's amusing that namespacing was likely intended to fix problems like that.
Yzguy has joined #ruby
edwinvdgraaf has joined #ruby
<VeryBewitching> Everything in Ruby is so maleable though, one of the things I enjoy about it.
<Tariq_> Nobody in the Sinatra chat
Yzguy has quit [Client Quit]
<Tariq_> both IRC and in the Slack
<shevy> yeah but it's always a problem with modules, when you wish to include them, and different modules define the same named method
eminencehc has quit [Read error: No route to host]
<purplexed^> that's normal... ruby people like to segregate people into groups, and then realize that the groups don't actually work. Go on
<Tariq_> VeryBewitching: I really have to try and see how to use bare words
<shevy> or you just don't include anything ever :D
<shevy> purplexed^ have you finally started to write any ruby code?
<VeryBewitching> shevy: Where's the fun in that? ;)
<Tariq_> purplexed^: As in...go on in what?
<Tariq_> Go on and ask the question here, in violation of the rules of the #ruby chatroom?
mary5030 has quit [Remote host closed the connection]
<purplexed^> shevy: :D
K1MOS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BSaboia has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
hahuang65 has joined #ruby
<EdwardIII> what is this slack?
<purplexed^> it's a communication hub
eminencehc has joined #ruby
<eam> EdwardIII: IRC as a service targeting corporate middware space
<purplexed^> like IRC, but with integration points
<EdwardIII> ah i've heard of platforms like this yes
<eam> essentially exchange / lotus notes / etc
<eam> but this time it's cool, not your dad's collab tools!
<purplexed^> yeah... you should try lotus notes... it's rerally good
skweek has joined #ruby
<purplexed^> as good as my wireless keyboard running out of battery
edwinvdgraaf has quit []
<purplexed^> it almost works
<EdwardIII> you should see my dad's collab notes
<EdwardIII> they're cray
mary5030 has quit [Ping timeout: 240 seconds]
<eam> pre or post SGI era
balazs has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
linduxed has quit [Ping timeout: 250 seconds]
roxtrongo has joined #ruby
rdavila has joined #ruby
podman has joined #ruby
eminencehc has quit [Remote host closed the connection]
s00pcan has quit [Read error: No route to host]
s00pcan has joined #ruby
axl_ has quit [Quit: axl_]
IrishGringo has quit [Ping timeout: 252 seconds]
uber has joined #ruby
firstdayonthejob has quit [Ping timeout: 244 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvw has quit [Remote host closed the connection]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
<Tariq_> Alright, I proved that it has something to do with the spaces
<Tariq_> Uploading a file with no spaces was a success
<Tariq_> It's those stupid spaces
lea has joined #ruby
craysiii has quit [Quit: Leaving.]
symbol has joined #ruby
ivanskie has joined #ruby
choke has joined #ruby
mag42c has quit [Quit: mag42c]
<jhass> well, spaces are not valid in an URI
tomchapin has joined #ruby
dfinninger has quit [Remote host closed the connection]
<Tariq_> So I need to handle that invalid URI somehow
<jhass> URI.escape does some guessing I think
s00pcan_ has joined #ruby
mordocai has quit [Remote host closed the connection]
<Tariq_> But I need to find this URI that is being invalid here
<jhass> >> require "uri"; URI("http://example.org/foo bar/baz")
<Tariq_> Like, in that gist, the error message of the bad URI does not at all match the URIs
<Tariq_> in the hash
<ruboto> jhass # => bad URI(is not URI?): http://example.org/foo bar/baz (URI::InvalidURIError) ...check link for more (https://eval.in/453592)
<Tariq_> that it's reading from
<jhass> >> require "uri"; URI(URI.escape("http://example.org/foo bar/baz"))
doddok has quit [Ping timeout: 244 seconds]
<Tariq_> So I need to find the malformed URI request
GnuYawk has joined #ruby
roxtrong_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
eminencehc has joined #ruby
karapetyan has joined #ruby
kies has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
<Tariq_> I am just going to use Binding.pry
tenderlove has quit [Read error: Connection reset by peer]
<Tariq_> and see what's actually going on
roxtrongo has quit [Ping timeout: 255 seconds]
<Tariq_> because for some reason, Sinatra won't let me put stuff to the console
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
tenderlove has joined #ruby
karapetyan has quit [Remote host closed the connection]
kies^ has joined #ruby
purplexed^ has left #ruby [#ruby]
kies has quit [Ping timeout: 246 seconds]
glundgren has quit [Remote host closed the connection]
<Tariq_> And Binding.pry fails to work
<jhass> Tariq_: time for pry-remote I guess
<Tariq_> What i am guessing is that wherever I placed binding.pry it happened after the bad URI
<Tariq_> so I am going to place it a little above it
<Tariq_> and see whether I can narrow down the error message
linduxed has joined #ruby
<jhass> you don't get a backtrace?
shinnya has joined #ruby
<Tariq_> I do but it's hard to read through all of it and figure out which ones are my errors
tubuliferous_ has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
<Tariq_> and which ones is the Sinatra backend doing its thing
symm- has quit [Ping timeout: 264 seconds]
<jhass> well, just Ctrl+F for your filename
bigkevmcd has quit [Ping timeout: 256 seconds]
<Tariq_> The only thing with my filename is hte error message (Invalid Parse)
<jhass> the :nn is the line number
tenderlove has joined #ruby
<Tariq_> It doesn't show line number with that
<jhass> oO
<Tariq_> InvalidURIError: bad URI(is not URI?)
<jhass> that's the error message, not the backtrace
<Tariq_> Then it's not in the backtrace period
<Tariq_> The backtrace appears to start AFTER that message
<jhass> post the entire thing to a gist?
alcipir has joined #ruby
<Tariq_> Do you want me to edit in the long backtrace?
symm- has joined #ruby
<jhass> yup
<jhass> btw gist can have multiple files
cndiv has quit [Ping timeout: 244 seconds]
<Tariq_> ...what?
<Tariq_> Why?
<Tariq_> I thought a gist only make sense as one file
cndiv_ has joined #ruby
<Tariq_> Anyway
<jhass> it's good to separate things
<Tariq_> edited in the backtrace
idefine has quit [Remote host closed the connection]
<jhass> can have syntax highlighting for code stuff
bryanray has joined #ruby
<Tariq_> Ah
<Tariq_> How would I be able to create seperate files then
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> "Add file" or so, big button at the bottom
<jhass> anyway, /Users/tariqali/Documents/content_management_system/app/controllers/walks.rb:86:in `block in <top (required)>' is your code for sure
balazs has quit [Ping timeout: 265 seconds]
alcipir has quit [Client Quit]
idefine has joined #ruby
<Tariq_> Huh.
<Tariq_> So the problem is with saving the file
<Tariq_> When I save it, it freaks out
mrsolo_ has joined #ruby
hmsimha has quit [Ping timeout: 265 seconds]
wldcordeiro has quit [Ping timeout: 244 seconds]
mrsolo_ has quit [Remote host closed the connection]
<Tariq_> Thanks jhass for finding that
<Tariq_> Er, am I a help vampire by any chance?
<Tariq_> A person who asks for help needlessly?
<Tariq_> Or is this the right type of asking for help?
<jhass> all is fine
shmilan has joined #ruby
Yzguy has joined #ruby
<jhass> we'll call you out if anything's wrong, no worries
<jhass> (or you'll just get ignored ;) )
andersoldahl has joined #ruby
<Tariq_> Got it.
<jhass> so it's trying to build a file URI
<jhass> but doesn't escape the local filename properly apparently
<jhass> could be argued as a bug of the lib
tenderlo_ has joined #ruby
tenderlove has quit [Ping timeout: 260 seconds]
ledestin has joined #ruby
<jhass> but you might be able to workaround with :local_filename => URI.escape(params["walk"]["audioFile"][:filename])
houhoulis has joined #ruby
<Tariq_> Alright, let's try that
SCHAAP137 has quit [Quit: Leaving]
idefine has quit [Remote host closed the connection]
jgpawletko has joined #ruby
<Tariq_> It works.
<Tariq_> Thank you jhass
<jhass> yw
doddok has joined #ruby
<jhass> what you have learned today: include all information you have into your question, even if it looks like gibberish to you ;)
Akagi201 has joined #ruby
<Tariq_> Fair enough.
<Tariq_> I will keep that lesson near and dear to my heart
<Tariq_> Bye
trosborn has quit [Quit: trosborn]
dfinninger has joined #ruby
stannard has joined #ruby
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
Tariq_ has quit [Ping timeout: 246 seconds]
cdg has quit [Remote host closed the connection]
Akagi201 has quit [Ping timeout: 240 seconds]
yfeldblu_ has joined #ruby
cdg has joined #ruby
tenderlove has joined #ruby
tenderlo_ has quit [Ping timeout: 268 seconds]
stannard has quit [Ping timeout: 260 seconds]
balazs has joined #ruby
hmsimha has joined #ruby
rcvalle has quit [Quit: rcvalle]
yfeldblum has quit [Ping timeout: 246 seconds]
cdg has quit [Ping timeout: 240 seconds]
blackmesa has quit [Quit: WeeChat 1.3]
DEA7TH has quit [Quit: DEA7TH]
tenderlove has quit [Read error: Connection reset by peer]
kalusn has quit [Remote host closed the connection]
haylon has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tenderlove has joined #ruby
XxionxX has quit [Quit: Leaving.]
arthurix_ has joined #ruby
CooloutAC has joined #ruby
<CooloutAC> hello all I'm a computer noob learning ruby, I'm having trouble trying to convert strings in an array to symbols
arthurix has quit [Ping timeout: 260 seconds]
<havenwood> CooloutAC: Why do you want Symbols?
<CooloutAC> its a lesson
<havenwood> &ri Array#map
<CooloutAC> here is my code not sure what i'm forgetting
andersoldahl has quit [Quit: Goodbye everyone.]
idefine has quit [Remote host closed the connection]
<havenwood> CooloutAC: Seems `sybols` is a typo.
<CooloutAC> oh sorry, ya thats not the issue though I just retyped it my fault
<CooloutAC> its just printing the strings, but not converting them to symbols
Yzguy has quit [Quit: Zzz...]
<havenwood> CooloutAC: For debugging use `p` instead of `print` or `puts` so #to_s doesn't get called one whatever you're looking at.
<havenwood> CooloutAC: p symbols
<CooloutAC> ok
swgillespie has joined #ruby
tenzan has joined #ruby
iateadonut has joined #ruby
<CooloutAC> I don't think the s.to_sym is doing anything
bryanray has joined #ruby
mary5030 has joined #ruby
tkuchiki has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
tenderlo_ has joined #ruby
ngscheurich has joined #ruby
<CooloutAC> ya doesn't even matter if i have it there or not
tenderlo_ has quit [Client Quit]
chopin_ has quit [Remote host closed the connection]
<beauby> CooloutAC: s.to_sym is returning a symbol representation of s, it does not modify s
<beauby> you could do strings.map(&:to_sym)
regreg has quit [Ping timeout: 260 seconds]
wldcordeiro has joined #ruby
<CooloutAC> oh i see what I did wrong
<CooloutAC> its supposed to be s = s.to_sym
<CooloutAC> otherwise it was just totally getting ignored
<CooloutAC> tks
swgillespie has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 240 seconds]
<CooloutAC> beauby: or ya symbols.push(s.to_sym) works also
<CooloutAC> tks
<haylon> Is jhass still on?
snockerton has quit [Quit: Leaving.]
<jhass> who cares, I know I don't