havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Can't talk? Register/identify with Nickserv first! || 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/
jun_ has joined #ruby
devbug_ has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
ericjphillips has joined #ruby
yosafbridge has quit [Ping timeout: 250 seconds]
LoganG_ has joined #ruby
devbug has quit [Ping timeout: 260 seconds]
LoganG has quit [Read error: Connection reset by peer]
LoganG_ is now known as LoganG
jun_ has quit [Remote host closed the connection]
gregf has joined #ruby
donkey_hotei has quit [Ping timeout: 255 seconds]
yosafbridge has joined #ruby
tuxero has quit [Ping timeout: 250 seconds]
fullofcaffeine has joined #ruby
natevick has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dikaio has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Yzguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
djbkd has joined #ruby
YankNYC has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
voltalio has joined #ruby
natevick has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
workmad3 has joined #ruby
jairojunior has joined #ruby
dikaio has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
swgillespie has joined #ruby
yqt has quit [Ping timeout: 250 seconds]
skweek has joined #ruby
tejasmanohar has joined #ruby
yfeldblu_ has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
iceyec has joined #ruby
iceyec has quit [Read error: Connection reset by peer]
casadei has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
LoganG has quit [Quit: robots are cool]
LoganG has joined #ruby
rbennacer has quit [Remote host closed the connection]
Rodya_ has joined #ruby
CloCkWeRX has joined #ruby
symm- has joined #ruby
northfurr has joined #ruby
yfeldblum has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has quit [Ping timeout: 246 seconds]
jairojunior has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblu_ has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
northfurr has quit [Ping timeout: 260 seconds]
CloCkWeRX has joined #ruby
lemur has joined #ruby
saddad has quit [Quit: WeeChat 1.4-dev]
sepp2k has quit [Read error: Connection reset by peer]
lemur has quit [Remote host closed the connection]
kayloos has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 264 seconds]
davedev24 has joined #ruby
moeabdol has quit [Ping timeout: 244 seconds]
northfurr has joined #ruby
RegulationD has joined #ruby
railsForDaiz has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
radgeRayden_ has joined #ruby
noethics has joined #ruby
radgeRayden has quit [Ping timeout: 265 seconds]
ericjphillips1 has joined #ruby
ericjphillips1 has quit [Client Quit]
araujo_ has joined #ruby
robbyoconnor has joined #ruby
northfurr has quit [Client Quit]
araujo has quit [Ping timeout: 246 seconds]
ericjphillips has quit [Ping timeout: 244 seconds]
araujo_ has quit [Max SendQ exceeded]
RegulationD has quit [Ping timeout: 250 seconds]
j4cknewt has quit [Remote host closed the connection]
araujo_ has joined #ruby
solocshaw1 has joined #ruby
jairojunior has joined #ruby
thejamespinto has quit [Remote host closed the connection]
solocshaw has quit [Remote host closed the connection]
solocshaw1 is now known as solocshaw
FrankD has quit [Ping timeout: 255 seconds]
robbyoconnor has quit [Client Quit]
robbyoconnor has joined #ruby
tkuchiki has joined #ruby
jun_ has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
charliesome has joined #ruby
robbyoconnor has quit [Ping timeout: 246 seconds]
symm- has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
bigmac_ has quit [Ping timeout: 255 seconds]
exadeci has quit [Quit: Connection closed for inactivity]
stardiviner has joined #ruby
CloCkWeRX has joined #ruby
CloCkWeRX has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
FrankD has joined #ruby
quazimod1 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quazimodo has quit [Ping timeout: 256 seconds]
dorei has quit []
blackmesa has joined #ruby
rehat has joined #ruby
Gnomethrower has quit [Quit: Textual IRC Client: www.textualapp.com]
Akagi201 has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
ryanlntn has joined #ruby
baweaver has joined #ruby
pontiki has joined #ruby
pontiki has quit [Remote host closed the connection]
skweek has quit [Quit: Leaving]
pontiki has joined #ruby
bentanweihao has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thejamespinto has joined #ruby
Olipro has quit [Ping timeout: 250 seconds]
lacrosse has quit [Ping timeout: 250 seconds]
ddv has quit [Ping timeout: 250 seconds]
scottymeuk has quit [Ping timeout: 250 seconds]
inoperable has quit [Ping timeout: 250 seconds]
Log1x has quit [Ping timeout: 250 seconds]
hollywood has quit [Ping timeout: 250 seconds]
klingeldraht has quit [Ping timeout: 250 seconds]
AdamMeghji has quit [Ping timeout: 250 seconds]
andersh has quit [Ping timeout: 250 seconds]
nitrix has quit [Ping timeout: 250 seconds]
nirix has quit [Ping timeout: 250 seconds]
Fluent has quit [Ping timeout: 250 seconds]
SHyx0rmZ has quit [Ping timeout: 250 seconds]
ponga has quit [Ping timeout: 250 seconds]
vcoinminer has quit [Ping timeout: 250 seconds]
moss has quit [Ping timeout: 250 seconds]
gf3 has quit [Ping timeout: 250 seconds]
mprelude has quit [Ping timeout: 250 seconds]
dukedave has quit [Ping timeout: 250 seconds]
mjc_ has quit [Ping timeout: 250 seconds]
jeadre has quit [Ping timeout: 250 seconds]
tokik has quit [Ping timeout: 250 seconds]
ebertx has quit [Ping timeout: 250 seconds]
ozzloy has quit [Ping timeout: 250 seconds]
ddfreyne_ has quit [Ping timeout: 250 seconds]
nemesit|znc has quit [Ping timeout: 250 seconds]
mosez has quit [Ping timeout: 250 seconds]
DoYouKnow has quit [Ping timeout: 250 seconds]
GnuYawk has quit [Ping timeout: 250 seconds]
redondo has quit [Ping timeout: 250 seconds]
oz has quit [Ping timeout: 250 seconds]
Nirgali42 has quit [Ping timeout: 250 seconds]
stryek has quit [Ping timeout: 250 seconds]
v0n has quit [Ping timeout: 250 seconds]
yo61 has quit [Ping timeout: 250 seconds]
shelling__ has quit [Ping timeout: 250 seconds]
kappy has quit [Ping timeout: 250 seconds]
martinbjeldbak has quit [Ping timeout: 250 seconds]
edwardly has quit [Ping timeout: 250 seconds]
llua has quit [Ping timeout: 250 seconds]
shaman42_ has quit [Ping timeout: 250 seconds]
tuor has quit [Ping timeout: 250 seconds]
xxx has quit [Ping timeout: 250 seconds]
zly has quit [Ping timeout: 250 seconds]
hplar has quit [Ping timeout: 250 seconds]
bauruine has quit [Ping timeout: 250 seconds]
soahccc has quit [Ping timeout: 250 seconds]
solocshaw has quit [Ping timeout: 250 seconds]
NeverDie has quit [Ping timeout: 250 seconds]
heftig has quit [Ping timeout: 250 seconds]
DenSchub has quit [Ping timeout: 250 seconds]
thejoecarroll has quit [Ping timeout: 250 seconds]
rfv has quit [Ping timeout: 250 seconds]
im0b has quit [Ping timeout: 250 seconds]
dmoe has quit [Ping timeout: 250 seconds]
Raboo has quit [Ping timeout: 250 seconds]
contradictioned has quit [Ping timeout: 250 seconds]
nw has quit [Ping timeout: 250 seconds]
mic_e has quit [Ping timeout: 250 seconds]
jokester has quit [Ping timeout: 250 seconds]
chris2 has quit [Ping timeout: 250 seconds]
russt has quit [Ping timeout: 250 seconds]
haasn has quit [Ping timeout: 250 seconds]
sysanthrope has quit [Ping timeout: 250 seconds]
exceion has quit [Ping timeout: 250 seconds]
slash_nick has quit [Ping timeout: 250 seconds]
janno has quit [Ping timeout: 250 seconds]
SuperTux88 has quit [Ping timeout: 250 seconds]
Hien has quit [Ping timeout: 250 seconds]
EnergyCoffee has quit [Ping timeout: 250 seconds]
kalleth has quit [Ping timeout: 250 seconds]
drPoggs has quit [Ping timeout: 250 seconds]
allomov has quit [Ping timeout: 250 seconds]
phrozen77 has quit [Ping timeout: 250 seconds]
slash_nick has joined #ruby
Hobbyboy has quit [Ping timeout: 250 seconds]
kappy has joined #ruby
soahccc has joined #ruby
contradictioned has joined #ruby
Hien has joined #ruby
ddv has joined #ruby
kalleth has joined #ruby
Fluent has joined #ruby
dmoe has joined #ruby
dstarh has joined #ruby
Todd has joined #ruby
ujjain has quit [Ping timeout: 252 seconds]
solocshaw1 has joined #ruby
oz` has joined #ruby
scottyme- has joined #ruby
fastAndSlow has joined #ruby
gf3_ has joined #ruby
bazbing80 has joined #ruby
nirix_ has joined #ruby
bigmac_ has joined #ruby
parus has quit [Ping timeout: 256 seconds]
ozzloy_ has joined #ruby
parus has joined #ruby
drizz has quit [Ping timeout: 256 seconds]
nw1 has joined #ruby
tokik_ has joined #ruby
mosez_ has joined #ruby
Nirgali43 has joined #ruby
moloch__ has joined #ruby
SuperTux88 has joined #ruby
kappy has quit [Ping timeout: 250 seconds]
slash_nick has quit [Ping timeout: 250 seconds]
stryek_ has joined #ruby
shaman42 has joined #ruby
bazbing81 has joined #ruby
j4cknewt has joined #ruby
janno_ has joined #ruby
drizz has joined #ruby
Raboo_ has joined #ruby
exceion_ has joined #ruby
NeverDie_ has joined #ruby
mighty_gorilla has joined #ruby
inoperable_ has joined #ruby
charliesome has joined #ruby
edwardly_ has joined #ruby
edwardly_ has quit [Changing host]
edwardly_ has joined #ruby
mic_e_ has joined #ruby
sysanthrope_ has joined #ruby
EnergyCoffee_ has joined #ruby
EnergyCoffee_ has quit [Max SendQ exceeded]
moss_ has joined #ruby
rfv_ has joined #ruby
martinbjeldbak_ has joined #ruby
ujjain has joined #ruby
ujjain has joined #ruby
scottyme- is now known as scottymeuk
nirix_ is now known as nirix
Hien has quit [Changing host]
Hien has joined #ruby
dmoe has quit [Changing host]
dmoe has joined #ruby
edwardly_ is now known as edwardly
bnizzle has joined #ruby
EnergyCoffee has joined #ruby
cmoneylulz has joined #ruby
Log1x has joined #ruby
jokester has joined #ruby
bronson has joined #ruby
Log1x has joined #ruby
bruno- has joined #ruby
Raboo_ is now known as Raboo
drPoggs has joined #ruby
EnergyCoffee has joined #ruby
llua has joined #ruby
FrankD has joined #ruby
llua has joined #ruby
tkuchiki has joined #ruby
Olipro has joined #ruby
oz` is now known as oz
gf3_ is now known as gf3
solocshaw1 is now known as solocshaw
konopka has quit [Ping timeout: 265 seconds]
bhorn1 has quit [Ping timeout: 244 seconds]
gsingh93 has quit [Ping timeout: 246 seconds]
larissa has quit [Ping timeout: 246 seconds]
FrankD has quit [Changing host]
SuperTux88 is now known as Guest81767
shelling__ has joined #ruby
ddfreyne_ has joined #ruby
chris2 has joined #ruby
DoYouKnow has joined #ruby
nemesit|znc has joined #ruby
allomov has joined #ruby
bhorn1|away has joined #ruby
kappy has joined #ruby
jdawgaz has joined #ruby
EnergyCoffee has joined #ruby
EnergyCoffee has quit [Max SendQ exceeded]
larissa has joined #ruby
xxx has joined #ruby
bhorn1|away is now known as bhorn1
ebertx has joined #ruby
DenSchub has joined #ruby
klingeldraht has joined #ruby
phrozen77 has joined #ruby
gsingh93 has joined #ruby
slash_nick has joined #ruby
PlasmaStar has quit [Ping timeout: 246 seconds]
konopka has joined #ruby
thejoecarroll has joined #ruby
russt has joined #ruby
vcoinminer has joined #ruby
lukaszk has quit [Ping timeout: 246 seconds]
EnergyCoffee has joined #ruby
EnergyCoffee has quit [Max SendQ exceeded]
bmurt has joined #ruby
heftig has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
bauruine has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
mjc_ has joined #ruby
EnergyCoffee has joined #ruby
EnergyCoffee has quit [Max SendQ exceeded]
haasn` has joined #ruby
andersh has joined #ruby
iateadonut has joined #ruby
Guest26447 has joined #ruby
Yzguy has joined #ruby
dukedave has joined #ruby
Hobbyboy has joined #ruby
yo61 has joined #ruby
AdamMeghji has joined #ruby
ponga has joined #ruby
im0b has joined #ruby
tuor has joined #ruby
mprelude has joined #ruby
lacrosse has joined #ruby
j4cknewt has quit [Remote host closed the connection]
v0n has joined #ruby
GnuYawk has joined #ruby
GnuYawk has quit [Changing host]
GnuYawk has joined #ruby
iateadonut has quit [Ping timeout: 268 seconds]
jeadre has joined #ruby
benlieb has joined #ruby
sanjayu has quit [Ping timeout: 272 seconds]
hplar has joined #ruby
PlasmaStar has joined #ruby
jun_ has quit [Remote host closed the connection]
iateadonut has joined #ruby
iamninja_ has quit [Read error: Connection reset by peer]
jairojunior has quit [Quit: Textual IRC Client: www.textualapp.com]
iamninja_ has joined #ruby
benlieb has quit [Quit: benlieb]
voltalio has joined #ruby
bentanwe_ has joined #ruby
Brin has joined #ruby
bentanweihao has quit [Read error: Connection reset by peer]
maletor has joined #ruby
maletor has quit [Client Quit]
stamina has quit [Ping timeout: 272 seconds]
A124 has quit [Read error: Connection reset by peer]
SHyx0rmZ has joined #ruby
ericjphillips has joined #ruby
benlieb has joined #ruby
Yzguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BTRE has joined #ruby
ryanlntn has quit [Ping timeout: 240 seconds]
A124 has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cmoneylulz has quit [Remote host closed the connection]
voltalio has joined #ruby
jun has joined #ruby
benlieb has quit [Quit: benlieb]
lukaszk has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
Brin has quit [Quit: Page closed]
djbkd has quit [Ping timeout: 268 seconds]
Guest65 has joined #ruby
Puffball has quit [Remote host closed the connection]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlieb has joined #ruby
Guest26447 has quit [Changing host]
Guest26447 has joined #ruby
Guest26447 is now known as nitrix
DenSchub has quit [Read error: Connection reset by peer]
fedexo has joined #ruby
bigmac_ has quit [Ping timeout: 244 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
bigmac_ has joined #ruby
DenSchub has joined #ruby
Akagi201 has quit []
casadei has quit [Remote host closed the connection]
ericjphillips has quit [Quit: Leaving.]
n008f4g_ has joined #ruby
j4cknewt has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dasher00 has quit [Ping timeout: 250 seconds]
n008f4g_ has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
karapetyan has joined #ruby
Rickmasta has joined #ruby
moeabdol has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
solocshaw has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Max SendQ exceeded]
karapetyan has quit [Ping timeout: 268 seconds]
Rickmasta has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
Beoran_ has joined #ruby
maikowblue has quit [Quit: .]
solocshaw has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
bentanwe_ has quit []
Beoran has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
M-prosodyContext has quit [Remote host closed the connection]
M-Kodo has quit [Remote host closed the connection]
M-mistake has quit [Remote host closed the connection]
swgillespie has joined #ruby
ant2k has joined #ruby
RegulationD has quit [Ping timeout: 268 seconds]
natevick has joined #ruby
Tempesta has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
natevick has quit [Client Quit]
Tempesta has joined #ruby
gener1c_ has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nateberkopec has quit [Quit: Leaving...]
M-Kodo has joined #ruby
gener1c has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
braincrash has quit [Quit: bye bye]
zenguy_pc has quit [Read error: Connection reset by peer]
braincras has joined #ruby
tomchapin has joined #ruby
psy_ has joined #ruby
charliesome has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jun has quit [Remote host closed the connection]
djbkd has joined #ruby
hahuang65 has joined #ruby
blizzy has quit [Ping timeout: 255 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
M-mistake has joined #ruby
M-prosodyContext has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
bmurt has quit []
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zenguy_pc has joined #ruby
darkf has joined #ruby
amystephen has quit [Quit: amystephen]
gix has quit [Ping timeout: 265 seconds]
sdothum has joined #ruby
favadi has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gix has joined #ruby
<pontiki> zenspider: stupid question on minitest (i'm just starting in to learn it from scratch): by convention, should the test file names be `test_*.rb` or `*_test.rb` ? I know it doesn't matter in the end, but what is the convention, if any?
baweaver has joined #ruby
<pontiki> reason i ask is `bundler gem xxx` makes `xxx_test.rb` but guard-minitest expects `test_xxx.rb`
sjums has left #ruby [#ruby]
riskish has joined #ruby
Rickmasta has joined #ruby
devoldmx has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 268 seconds]
bronson has joined #ruby
opensource_ninja has quit [Quit: opensource_ninja]
opensource_ninja has joined #ruby
lemur has joined #ruby
stardiviner has joined #ruby
blizzy has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
Matadoer has quit [Ping timeout: 265 seconds]
fastAndSlow has quit [Quit: leaving]
davedev2_ has joined #ruby
ledestin has joined #ruby
ryanlntn has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
davedev24 has quit [Ping timeout: 240 seconds]
lemur has quit [Ping timeout: 260 seconds]
roxtrongo has joined #ruby
ryanlntn has left #ruby [#ruby]
roxtrong_ has joined #ruby
blizzy has quit [Read error: Connection reset by peer]
aNoble has joined #ruby
davedev2_ has quit [Ping timeout: 250 seconds]
roxtrongo has quit [Ping timeout: 264 seconds]
blizzy has joined #ruby
fullofcaffeine has joined #ruby
dopie has quit [Quit: Leaving]
I has joined #ruby
I is now known as Guest45689
aNoble has quit [Quit: aNoble]
Guest45689 has quit [Client Quit]
blizzy has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
j4cknewt has quit [Remote host closed the connection]
swgillespie has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moeabdol has quit [Ping timeout: 252 seconds]
krz has joined #ruby
swgillespie has quit [Client Quit]
houhoulis has quit [Remote host closed the connection]
swgillespie has joined #ruby
j4cknewt has joined #ruby
favadi has quit [Ping timeout: 246 seconds]
agent_white has joined #ruby
<agent_white> Evenin' folks
shinnya has quit [Ping timeout: 256 seconds]
dopie has joined #ruby
favadi has joined #ruby
djbkd_ has joined #ruby
djbkd_ has quit [Remote host closed the connection]
devoldmx has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> hi agent_white
<agent_white> pontiki: Heya! How goes it?
freezevee has joined #ruby
Rickmasta has joined #ruby
<pontiki> not too bad
favadi has quit [Read error: No route to host]
hahuang65 has quit [Ping timeout: 246 seconds]
fullofcaffeine has quit [Remote host closed the connection]
DrCode has quit [Remote host closed the connection]
ryanlntn has joined #ruby
ryanlntn has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
fullofcaffeine has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
astrobunny has joined #ruby
theery has joined #ruby
krz has quit [Ping timeout: 240 seconds]
towski_ has joined #ruby
vdamewood has joined #ruby
Contigi has quit [Quit: Leaving]
towski_ has quit [Remote host closed the connection]
swgillespie has joined #ruby
favadi has joined #ruby
towski_ has joined #ruby
hectortrope has quit [Remote host closed the connection]
hectortrope has joined #ruby
swgillespie has quit [Max SendQ exceeded]
Cork has quit [Ping timeout: 264 seconds]
swgillespie has joined #ruby
krz has joined #ruby
Kallis has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
towski_ has quit [Ping timeout: 256 seconds]
towski_ has joined #ruby
Gnomethrower has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Cork has joined #ruby
ghostlines has joined #ruby
bronson has joined #ruby
jun has joined #ruby
astrobunny has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
astrobunny has joined #ruby
solocshaw has joined #ruby
opensource_ninja has quit [Quit: opensource_ninja]
FrankD has quit [Ping timeout: 255 seconds]
gambl0re has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 265 seconds]
jun has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
nofxx has joined #ruby
FrankD has joined #ruby
kp666 has joined #ruby
benlieb has quit [Quit: benlieb]
tkuchiki has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 268 seconds]
nofxx has quit [Ping timeout: 256 seconds]
roxtrong_ has quit [Read error: Connection reset by peer]
nofxx has joined #ruby
tkuchiki has joined #ruby
FrankD has quit [Changing host]
FrankD has joined #ruby
peteykun has joined #ruby
pawnbox has quit [Remote host closed the connection]
roxtrongo has joined #ruby
pawnbox has joined #ruby
towski_ has joined #ruby
dopamean_ has quit [Quit: Lost terminal]
moeabdol has joined #ruby
NeverDie_ has quit [Quit: http://radiux.io/]
devbug_ has quit [Quit: Lances at dawn!]
freerobby has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
towski_ has quit [Remote host closed the connection]
fullofcaffeine has quit [Remote host closed the connection]
jun has joined #ruby
pawnbox has quit [Remote host closed the connection]
nirix has quit [Ping timeout: 264 seconds]
ghostlines has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has joined #ruby
nirix has joined #ruby
moeabdol has quit [Ping timeout: 265 seconds]
karapetyan has joined #ruby
karapetyan has joined #ruby
robbyoconnor has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jun has quit [Remote host closed the connection]
charliesome has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
allcentury has joined #ruby
roxtrong_ has joined #ruby
roxtrongo has quit [Ping timeout: 272 seconds]
karapetyan has quit [Ping timeout: 252 seconds]
LatoSans has quit [Quit: Leaving]
tmtwd has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
fullofcaffeine has joined #ruby
bigmac_ has quit [Ping timeout: 260 seconds]
dhjondoh has joined #ruby
freerobby has quit [Quit: Leaving.]
atmosx has joined #ruby
<atmosx> morning
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
dasher00 has joined #ruby
j4cknewt has quit [Remote host closed the connection]
freerobby has joined #ruby
spider-mario has joined #ruby
atmosx has quit [Client Quit]
atmosx has joined #ruby
djbkd_ has joined #ruby
theery has quit [Remote host closed the connection]
YankNYC has quit [Quit: Connection closed for inactivity]
Anti-Pizza has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
MyMind has joined #ruby
Sembei has quit [Ping timeout: 252 seconds]
alexUaN has joined #ruby
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
atmosx has quit [Quit: WeeChat 0.4.4-dev]
allcentu1 has joined #ruby
allcentury has quit [Read error: Connection reset by peer]
freezevee has quit [Ping timeout: 268 seconds]
r0x0rZ has joined #ruby
atmosx has joined #ruby
r0x0rZ has quit [Client Quit]
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
robbyoconnor has quit [Quit: Konversation terminated!]
<pontiki> hi
renderfu_ has joined #ruby
<A124> Hello. Anyway.. Q: Database recommendation for tens of millions of records? Could be key-value, document, or table. Only one client needed.
freerobby has quit [Quit: Leaving.]
theery has joined #ruby
<thejamespinto> hey guys, long time I havent' been here... do you all still hate Rails like you used to back in my day? :P
<baweaver> pontiki: alo
<pontiki> i work in Rails p.much every day. i love it.
<pontiki> hey, baweaver
<mozzarella> I like it
<baweaver> A124: MySQL works fine
<A124> I dont hate Rails. Why would one hate Rails? Depending for situation its a nice thing to have.
bruno- has joined #ruby
<A124> baweaver Any other recommendations? I am not fan of that :D
<baweaver> PostgreSQL
<pontiki> some people need controversy
<pontiki> Oracle
<baweaver> unless you _need_ NoSQL I wouldn't
<pontiki> Sybase
<baweaver> MariaDB :trollface:
<A124> What cuold be a reason to need NoSQL?
allomov has quit [Remote host closed the connection]
<baweaver> If you don't know, don't use it.
roxtrong_ has quit [Remote host closed the connection]
<A124> I already did.
<A124> I asked to have opinion from someone else.
<baweaver> The trade off is that you get parts of structure ripped out for speed
<baweaver> it really depends on the data though
renderfu_ has quit [Ping timeout: 256 seconds]
<baweaver> 10mil+ isn't that many.
jun has joined #ruby
<baweaver> If it's relational and you're going to ad-hoc that back on, it's a very bad idea until you hit a scale where that matters.
<baweaver> by which point you can hire people to migrate it.
roxtrongo has joined #ruby
bronson has joined #ruby
<baweaver> Saying you have 10M+ records and asking for a database is like asking what food to feed 10M+ animals
<A124> 10 mil is just the start.
<baweaver> if we don't know what type of data it is, any recommendation is pointless.
<A124> Combined.
tagrudev has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<A124> Maybe I should use multple data storages then.
bruno- has quit [Ping timeout: 268 seconds]
<baweaver> So I have 10M+ Chimeras then
<baweaver> what are you dealing with?
<baweaver> vague questions will get equally vague and frustrating answers
<A124> Not frustrating by any means, I did actually look for broad answers.
<A124> Research and content retrival/serving.
<baweaver> Is it in any way relational?
<baweaver> If so, use PostgreSQL
<A124> Both data storage for linear runs as well as random lookups by key. And the usable outputs to be used for serving could be relational indeed.
joufflu has quit [Ping timeout: 240 seconds]
<bnagy> I feel like if you're in the 10s of millions postgres is less likely to be a mistake than a nosql
jto has quit [Quit: leaving]
nofxx has quit [Ping timeout: 250 seconds]
<baweaver> when we're talking billions to trillions you're getting there.
bronson has quit [Ping timeout: 240 seconds]
allcentu1 has quit [Quit: WeeChat 1.2]
ndrei has joined #ruby
<baweaver> at that scale though you really need to hire someone trained in that type of thing.
bluOxigen has joined #ruby
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
<A124> Hmm... Well.. back in 2008 I had a plan. ... did not meet the support at all and... then was a personal failure of self. Today, many years forward this looks simple at the rate I wanted to start, but as the data grows by years, things change too.
rushed has quit [Ping timeout: 260 seconds]
<bnagy> yes.
<A124> Reachieng billions no biggie. I do not at the present moment percieve going trillions though. At that point, yes you were right. But never thought of looking for someone to deal with billions.
last_staff has joined #ruby
rushed has joined #ruby
dionysus69 has joined #ruby
<A124> Thanks for the idea. Its not that much and as its mostly research its not realtime critical, and if it is, one can split the data by a "connector" feed to a separate system that gets updated by duplicating flow based on condition.
<A124> Ok. PostgreSQL it is then. Could you also recommend a NoSQL?
<A124> I have actually that page open atm.
<baweaver> Not MongoDB
anisha has joined #ruby
<A124> Haha, thanks. I already used it. Seems neat.
<A124> For small scales stuff.
<baweaver> Ask BitCoin how they liked it some time.
<A124> But seemed to lack at more. I was there when Mongo and Avocado (today known as Arango) was born.
<baweaver> and why atomic operations are a big deal
<A124> Yeah, I know myself a lot about atomicity.
<baweaver> something about exfiltrating millions in bitcoin due to Mongo sucking with atomic ops and locking
<A124> Wow.
<A124> Thanks for pointer :D
<A124> Yeah, I think I could relate a nosql key-value storage, with sql by a key, or using object oriented. Which leads me to conclusion to seek three database things/layers and look how it comes out.
<A124> Bumped into HyperTable. Could be suited for a hybrid storage of large data at some point of time.
Anti-Pizza has left #ruby ["Leaving"]
<A124> Ok. Thank you very much for input, this helped a lot in decisions. If anyone would like to recommend any more, will appreciate.
radgeRayden_ has quit [Quit: Leaving]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DoubleMalt has joined #ruby
lxsameer has quit [Quit: Leaving]
tmtwd has joined #ruby
slaytor has joined #ruby
pawnbox_ has joined #ruby
konsolebox has joined #ruby
pawnbox has quit [Ping timeout: 256 seconds]
beast has joined #ruby
eGGsha has joined #ruby
konsolebox has quit [Max SendQ exceeded]
konsolebox has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
CloCkWeRX has joined #ruby
<atmosx> A124: psql has nosql capabilities
yfeldblum has quit [Ping timeout: 240 seconds]
anisha has quit [Quit: Leaving]
djbkd_ has quit []
yfeldblum has joined #ruby
borkdude has joined #ruby
<A124> " No matter how many features we ever add, we can never be better at being Oracle than Oracle can." Well said.
konsolebox has quit [Max SendQ exceeded]
<A124> Thank you. I did not see this stuff for a shile so had no idea it has.
konsolebox has joined #ruby
<A124> If I can leverage json and give client data as it is stored minus internal "columns", that could speed up a lot.
naftilos76 has joined #ruby
<atmosx> yeap
howdoi has joined #ruby
FrankD has quit [Ping timeout: 244 seconds]
slaytor has quit []
j4cknewt has joined #ruby
konsolebox has quit [Max SendQ exceeded]
pontiki has quit [Remote host closed the connection]
pontiki has joined #ruby
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
nofxx has quit [Ping timeout: 264 seconds]
agent_white has quit [Read error: Connection reset by peer]
nofxx has joined #ruby
blaxter has joined #ruby
theery has quit [Remote host closed the connection]
blackmesa has joined #ruby
agent_white has joined #ruby
blizzy has joined #ruby
towski_ has joined #ruby
towski_ has quit [Remote host closed the connection]
arup_r has joined #ruby
maokomioko has joined #ruby
tmtwd has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
firstdayonthejob has joined #ruby
Macaveli has joined #ruby
blizzy has quit [Read error: Connection reset by peer]
sanjayu has joined #ruby
aganov has joined #ruby
konsolebox has joined #ruby
blizzy has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
Ilyes512 has joined #ruby
banjara has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
slayerjain has joined #ruby
bronson has joined #ruby
konsolebox has quit [Max SendQ exceeded]
ndrei has joined #ruby
konsolebox has joined #ruby
fedexo has quit [Ping timeout: 246 seconds]
araujo_ has quit [Quit: Leaving]
Xeago has joined #ruby
araujo has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
naftilos76 has quit [Ping timeout: 252 seconds]
iamninja_ has quit [Read error: Connection reset by peer]
nfk|laptop has joined #ruby
moeabdol has joined #ruby
iamninja_ has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
slayerja_ has joined #ruby
ruurd has joined #ruby
slayerja_ has quit [Max SendQ exceeded]
RegulationD has joined #ruby
slayerjain has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
moeabdol has quit [Ping timeout: 246 seconds]
spider-mario has quit [Read error: Connection reset by peer]
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
karapetyan has joined #ruby
nofxx has quit [Ping timeout: 246 seconds]
nofxx has joined #ruby
slayerjain has joined #ruby
timonv has quit [Ping timeout: 244 seconds]
symm- has joined #ruby
cih has joined #ruby
solars has joined #ruby
<tejasmanohar> !books
<tejasmanohar> ~books
<tejasmanohar> ~~books
<tejasmanohar> recommended books?
rushed has quit [Quit: rushed]
dikaio has quit [Quit: ........]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Oka has quit [Quit: o/]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
slayerja_ has joined #ruby
stan has joined #ruby
NightMonkey has quit [Ping timeout: 255 seconds]
bubbys has quit [Ping timeout: 265 seconds]
slayerjain has quit [Ping timeout: 264 seconds]
bubbys has joined #ruby
NightMonkey has joined #ruby
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
SCHAAP137 has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
pragmatism has joined #ruby
blackmesa has joined #ruby
<arup_r> You want Rails/Ruby book ? If Ruby well grounded Rubyist
solocshaw has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
<arup_r> tejasmanohar: ^^
solocshaw has joined #ruby
<tejasmanohar> got it!
pragmatism has quit [Client Quit]
platzhirsch has quit [Ping timeout: 240 seconds]
banjara has quit [Quit: Leaving.]
astrobun_ has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
peteykun has quit [Ping timeout: 252 seconds]
pawnbox_ has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
pawnbox has joined #ruby
Balzrael has joined #ruby
pragmatism has joined #ruby
firstdayonthejob has quit [Ping timeout: 260 seconds]
jun has quit []
karapetyan has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 244 seconds]
Xeago has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
naftilos76 has joined #ruby
_joes_ has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
Ilyes512 has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
platzhirsch has joined #ruby
Pisuke has joined #ruby
ta has quit [Remote host closed the connection]
konsolebox has quit [Ping timeout: 240 seconds]
j4cknewt has quit []
MyMind has quit [Ping timeout: 244 seconds]
lolmaus_ has joined #ruby
jud has quit [Quit: Leaving]
ndrei has joined #ruby
Burgestrand has joined #ruby
funkenstrahlen has joined #ruby
<funkenstrahlen> hey, I want to call a CLI command from my ruby code. I want to see the output of the cli command when running the ruby script. Should I use system() or exec()?
freezevee has joined #ruby
<Burgestrand> funkenstrahlen: do you just want to see the output, or do you want to do something with it in ruby code afterwards?
<apeiros> funkenstrahlen: exec will replace your current process, so probably you don't want that :)
bronson has joined #ruby
TheHodge has joined #ruby
<funkenstrahlen> Burgestrand: just see the outout. simply true/false as return value is ok
<Burgestrand> funkenstrahlen: in that case #system should be just fine.
<funkenstrahlen> Burgestrand: want to call ffmpeg
<funkenstrahlen> Burgestrand: ok thanks
<Burgestrand> funkenstrahlen: if you pass in user-provided data in your command, do call system with multiple parameters, e.g. system("ffmpeg", "-i", user_provided_path)
Stalkr_ has joined #ruby
<funkenstrahlen> Burgestrand: why?
<funkenstrahlen> Burgestrand: cant I simply do system ("some command")
<funkenstrahlen> with all the parameters in the string
<funkenstrahlen> ffmpeg has a lot of parameters...
pawnbox has joined #ruby
<Burgestrand> funkenstrahlen: Yes, you can, but if you interpolate user-provided data they might provide something akin to: "; rm -rf /"
<Burgestrand> funkenstrahlen: If it's all just the same parameters every time (no variables, no string interpolation) then feel free to call it with just a single string.
<funkenstrahlen> Burgestrand: ok got it. in my case it is not user provided, but it is more safe to do it your way
abuzze has joined #ruby
<funkenstrahlen> thanks for the hint
<Burgestrand> funkenstrahlen: You can put your parameters in an array, e.g.: command = []; command << "ffmpeg"; command << "-f"; system(*command)
<freezevee> how do I include more strings when filtering with regex ? output(/hello/).to_stdout and I want to include "hello", "world", "!!"
bronson has quit [Ping timeout: 255 seconds]
<freezevee> [hello,world,!!] does not work
<Burgestrand> freezevee: I don't understand your question, could you rephrase?
<freezevee> Burgestrand: how do you find certain string in a phrase/string
karapetyan has joined #ruby
<Burgestrand> freezevee: http://rubular.com/r/EIMY9Z0MIL
qwertme has joined #ruby
<freezevee> Burgestrand: is it a simple "|" or ?
<Burgestrand> freezevee: that's a way that you could write your regex to match all three things, then there's different ways of using the regex, i.e.: "this is a string" =~ /is/
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<freezevee> no I want to match all of them
araujo_ has joined #ruby
baweaver has quit [Remote host closed the connection]
qwertme has quit [Client Quit]
<bougyman> i'm going crazy over a gem install
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bougyman> we're in an env with no network access to the outside, and I can't figure out how to get gems installed.
<bougyman> gem i --force --local /path/to/the.gem just hangs forever.
Stalkr_ has quit [Quit: Leaving...]
<bougyman> looking at the process trace, it's trying to find an http rubygems source
<funkenstrahlen> Burgestrand: does it have to be a string only cmd array?
<bougyman> even when I turn all the network interfaces off.
<apeiros> bougyman: -y?
<apeiros> so it doesn't try to install dependencies
<funkenstrahlen> Burgestrand: or can I pass integers to it too?
<bougyman> is there some option to gem to say "do not fucking touch the network you idiot" ?
<Burgestrand> funkenstrahlen: maybe, try it :)
<bougyman> apeiros: i have all the deps.
<Burgestrand> >> system("echo", 5)
<ruboto> Burgestrand # => no implicit conversion of Fixnum into String (TypeError) ...check link for more (https://eval.in/440478)
<Burgestrand> funkenstrahlen: looks like it has to be strings!
Mia has joined #ruby
Mia has joined #ruby
<bougyman> -y is not a valid option, apeiros
<apeiros> oh, seems that option changed anyway (or I misremember)
kalusn has joined #ruby
<apeiros> your -f/--force seems to do that now
<Burgestrand> bougyman: does it have dependencies that might be attempted to be retrieved from elsewhere?
<Burgestrand> bougyman: (just a thought)
<bougyman> apeiros: it seems to not do it.
araujo has quit [Ping timeout: 260 seconds]
<bougyman> Burgestrand: nope.
<bougyman> i'm using gem install --local --force ./the.gem
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bougyman> i've never even had to use --local nor --force before to install a gem from the disk
<bougyman> this is driving me batty.
Axy has joined #ruby
<Burgestrand> bougyman: maybe you could try to remove all sources as well, which'd remove the https-lookup?
platzhirsch has quit [Ping timeout: 265 seconds]
<bougyman> ok.
<Burgestrand> bougyman: --clear-sources or --source or something. might be a workaround.
Zai00 has joined #ruby
maokomioko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> Greetings, humans
<funkenstrahlen> exit
funkenstrahlen has left #ruby ["WeeChat 1.1.1"]
<bougyman> Burgestrand: yep, that worked, you're an angel, thank you.
Hounddog has joined #ruby
<Burgestrand> bougyman: yippee. :)
Mia has quit [Ping timeout: 255 seconds]
AlphaAtom has joined #ruby
tomphp has joined #ruby
kalusn has quit [Remote host closed the connection]
agit0 has joined #ruby
thejamespinto is now known as yakko
yakko is now known as thejamespinto
parduse has quit [Ping timeout: 246 seconds]
kalusn has joined #ruby
parduse has joined #ruby
abuzze has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
tejasmanohar has quit [Quit: tejasmanohar]
CloCkWeRX has left #ruby [#ruby]
karapetyan has joined #ruby
AlphaAtom has quit [Quit: Textual IRC Client: www.textualapp.com]
platzhirsch has joined #ruby
karapetyan has quit [Ping timeout: 264 seconds]
Burgestrand has quit []
drptbl has joined #ruby
southpawlar has joined #ruby
ta has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
stan has quit [Quit: Leaving]
zotherstupidguy has quit [Ping timeout: 246 seconds]
krisquigley has joined #ruby
chrissonar has joined #ruby
zotherstupidguy has joined #ruby
Kendos-Kenlen has joined #ruby
futilegames has joined #ruby
joonty has joined #ruby
SenpaiSilver has joined #ruby
peteykun has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
piotrj has joined #ruby
pawnbox has joined #ruby
tno has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
Phil-Work has quit [Remote host closed the connection]
SenpaiSilver has quit [Quit: Leaving]
Phil-Work has joined #ruby
araujo_ has quit [Quit: Leaving]
CloCkWeRX has joined #ruby
araujo has joined #ruby
astrobun_ has quit [Remote host closed the connection]
blackmesa has joined #ruby
futilegames has quit [Quit: futilegames]
abuzze has joined #ruby
astrobunny has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
stan has joined #ruby
hs366 has joined #ruby
astrobunny has quit [Ping timeout: 255 seconds]
blackmesa has quit [Ping timeout: 246 seconds]
SenpaiSilver has joined #ruby
moeabdol has joined #ruby
exadeci has joined #ruby
Voker57 has joined #ruby
moeabdol has quit [Ping timeout: 264 seconds]
abuzze has quit [Remote host closed the connection]
bronson has joined #ruby
agent_white has quit [Quit: night]
rdark has joined #ruby
jds has joined #ruby
msb_ has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
codecop has joined #ruby
codecop_ has joined #ruby
msb_ has joined #ruby
quazimod1 has quit [Ping timeout: 268 seconds]
codecop_ has quit [Client Quit]
bronson has quit [Ping timeout: 255 seconds]
<yorickpeterse> morning children
leafybasil has joined #ruby
leafybasil has quit [Remote host closed the connection]
RegulationD has joined #ruby
maokomioko has joined #ruby
<shevy> morning darth father
leafybasil has joined #ruby
marr has joined #ruby
ta has quit [Ping timeout: 264 seconds]
ta has joined #ruby
<yorickpeterse> you kids behave while I was out?
<yorickpeterse> not doing any drugs?
dasher00 has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
tomaz_b has joined #ruby
<adaedra> I took yours
amystephen has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
Zai00 has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 264 seconds]
Xeago has quit [Remote host closed the connection]
Cust0sLimen is now known as CustosLimen
Pathfinder has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
joonty has quit [Quit: joonty]
arup_r has quit [Remote host closed the connection]
anisha has joined #ruby
arup_r has joined #ruby
joonty has joined #ruby
tomaz_b has quit [Quit: Leaving]
pawnbox has quit [Ping timeout: 255 seconds]
hololeap has quit [Ping timeout: 265 seconds]
Igorshp has joined #ruby
noethics has quit [Quit: Leaving]
bigkevmcd has joined #ruby
<yorickpeterse> adaedra: PUT IT DOWN YOU LITTLE BRAT
<yorickpeterse> or I'll pull out the belt
<yorickpeterse> (͡° ͜ʖ ͡°)
arup_r has quit [Ping timeout: 265 seconds]
<adaedra> oh you
tonios57 has joined #ruby
allomov has joined #ruby
dasher00 has joined #ruby
[k- has joined #ruby
dasher00 has quit [Max SendQ exceeded]
tonios57 has quit [Client Quit]
dasher00 has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
tkuchiki has joined #ruby
<shevy> yay!
<shevy> time for dutch spanking!
blackmesa has joined #ruby
duckson_ has quit [Quit: ZNC - http://znc.in]
duckson has joined #ruby
ndrei has joined #ruby
dhjondoh has joined #ruby
bigkevmcd has quit [Ping timeout: 256 seconds]
bigkevmcd has joined #ruby
bigkevmcd has quit [Excess Flood]
dmolina has joined #ruby
bigkevmcd has joined #ruby
nettoweb has joined #ruby
pawnbox has joined #ruby
hs366 has quit [Quit: Leaving]
thejamespinto is now known as yakko
yakko is now known as thejamespinto
arup_r has joined #ruby
abbe has quit [Quit: “Everytime that we are together, it's always estatically palpitating!”]
pawnbox has quit [Remote host closed the connection]
maokomioko has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has joined #ruby
charliesome has joined #ruby
timonv has joined #ruby
charliesome has quit [Client Quit]
solocshaw has quit [Ping timeout: 264 seconds]
solocshaw has joined #ruby
subshad has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dogethrower has joined #ruby
Gnomethrower has quit [Disconnected by services]
Ilyes512 has joined #ruby
pawnbox has joined #ruby
flughafen has quit [Ping timeout: 246 seconds]
Gnomethrower has joined #ruby
Gnomethrower has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
Gnomethrower has quit [Disconnected by services]
agit0 has quit [Quit: This computer has gone to sleep]
jinie has quit [Quit: ZNC - http://znc.in]
tomphp has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
moeabdol has joined #ruby
jinie has joined #ruby
jbw has quit [Ping timeout: 246 seconds]
sross07 has quit [Read error: Connection reset by peer]
freezevee has quit [Read error: Connection reset by peer]
sross07 has joined #ruby
Gnomethrower has joined #ruby
Gnomethrower has joined #ruby
workmad3_ has joined #ruby
dasher00 has quit [Ping timeout: 272 seconds]
iszak_ has joined #ruby
jbw has joined #ruby
Esya- has quit [Ping timeout: 256 seconds]
moeabdol has quit [Ping timeout: 255 seconds]
iszak has quit [Ping timeout: 256 seconds]
greedo has quit [Ping timeout: 246 seconds]
jcromartie has joined #ruby
ammar has quit [Ping timeout: 246 seconds]
workmad3_ has quit [Client Quit]
ant2k has quit [Quit: ant2k]
Musashi007 has joined #ruby
Morrolan has quit [Ping timeout: 246 seconds]
iszak has joined #ruby
iszak has quit [Changing host]
iszak has joined #ruby
ammar has joined #ruby
sumark has quit [Ping timeout: 240 seconds]
workmad3_ has joined #ruby
_aeris_ has quit [Ping timeout: 265 seconds]
sumark has joined #ruby
Morrolan has joined #ruby
_aeris_ has joined #ruby
Esya- has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
greedo has joined #ruby
Coldblackice has quit [Ping timeout: 252 seconds]
devoldmx has joined #ruby
dasher00 has joined #ruby
dasher00 has quit [Max SendQ exceeded]
dasher00 has joined #ruby
dasher00 has quit [Max SendQ exceeded]
dasher00 has joined #ruby
dasher00 has quit [Max SendQ exceeded]
dasher00 has joined #ruby
Siyfion has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
anisha has quit [Quit: Leaving]
nofxx has quit [Read error: Connection timed out]
dasher00 has quit [Ping timeout: 250 seconds]
sross07 has quit [Read error: Connection reset by peer]
niKeITA has joined #ruby
Musashi007 has quit [Quit: Musashi007]
sross07 has joined #ruby
nofxx has joined #ruby
EdwardIII has joined #ruby
bruno- has joined #ruby
relix has joined #ruby
Siyfion has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
babysnoop has joined #ruby
pawnbox has quit [Remote host closed the connection]
stamina has joined #ruby
pawnbox has joined #ruby
Sembei has joined #ruby
Rickmasta has joined #ruby
Pisuke has quit [Ping timeout: 272 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
charliesome has joined #ruby
Siyfion has joined #ruby
tkuchiki has quit [Remote host closed the connection]
braincrash has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
agit0 has joined #ruby
braincras has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
Rollabunna has joined #ruby
jcromartie has quit [Read error: Connection reset by peer]
jcromartie has joined #ruby
pyon has quit [Read error: Connection reset by peer]
dasher00 has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
AccordLTN has quit [Read error: Connection reset by peer]
tcopeland has quit [Read error: Connection reset by peer]
AccordLTN has joined #ruby
tcopeland has joined #ruby
DenSchub has quit [Ping timeout: 250 seconds]
ereslibre has quit [Ping timeout: 250 seconds]
mike___1234 has quit [Ping timeout: 250 seconds]
vondruch has quit [Ping timeout: 250 seconds]
DenSchub has joined #ruby
mike___1234 has joined #ruby
modern has quit [Ping timeout: 250 seconds]
ereslibre has joined #ruby
nofxx has quit [Read error: Connection timed out]
chrissonar has quit [Ping timeout: 250 seconds]
vondruch has joined #ruby
Igorshp has quit [Read error: No route to host]
vdamewood has quit [Ping timeout: 255 seconds]
Igorshp has joined #ruby
beast has quit [Quit: Leaving]
anisha has joined #ruby
postmodern has quit [Quit: Leaving]
modern has joined #ruby
jayram has joined #ruby
Ilyes512 has joined #ruby
ericjphillips has joined #ruby
chrissonar has joined #ruby
jayram has left #ruby [#ruby]
jayram has joined #ruby
piotrj has quit [Remote host closed the connection]
Burgestrand has joined #ruby
piotrj has joined #ruby
jayram has quit [Quit: Textual IRC Client: www.textualapp.com]
symm- has joined #ruby
<babysnoop> hi, anybody familiar with the paperclip gem? Im validating image uploads as described in https://github.com/thoughtbot/paperclip#security-validations . the issue i am having is that when uploading non-image files renamed to "file.jpeg", my rails sever struggles terribly for about 30 seconds. thanks
pawnbox has quit [Read error: Connection reset by peer]
pyon has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has joined #ruby
rodfersou has joined #ruby
keen___________ has joined #ruby
keen__________ has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
ericjphillips has quit [Quit: Leaving.]
pyon has quit [Remote host closed the connection]
pawnbox has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
Pathfinder has quit [Ping timeout: 240 seconds]
RaceCondition has joined #ruby
RaceCondition has left #ruby [#ruby]
tcopeland has quit [Quit: Leaving.]
RegulationD has quit [Ping timeout: 268 seconds]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
mjuszczak has joined #ruby
scripore has joined #ruby
peteykun has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
solocshaw1 has joined #ruby
solocshaw has quit [Read error: Connection reset by peer]
solocshaw1 is now known as solocshaw
Ilyes512 has joined #ruby
scripore has quit [Client Quit]
Pathfinder has joined #ruby
kljadfs has joined #ruby
pyon has joined #ruby
gustav__ has joined #ruby
devoldmx has joined #ruby
moeabdol has joined #ruby
Anti-Pizza has joined #ruby
kljadfs has quit [Client Quit]
FernandoBasso has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
moeabdol has quit [Ping timeout: 252 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdothum has joined #ruby
babysnoop has quit [Ping timeout: 240 seconds]
platzhirsch has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Read error: Connection reset by peer]
ghoti has quit [Ping timeout: 265 seconds]
tvw has joined #ruby
Igorshp has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
Macaveli has joined #ruby
skade has joined #ruby
Voker57 has quit [Ping timeout: 252 seconds]
pawnbox has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
Pathfinder has quit [Ping timeout: 255 seconds]
platzhirsch has joined #ruby
blackmesa has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
ghoti has joined #ruby
DoubleMalt has quit [Ping timeout: 256 seconds]
cajone has quit [Remote host closed the connection]
southpawlar has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
CloCkWeRX has quit [Ping timeout: 240 seconds]
syath has joined #ruby
niKeITA has quit [Quit: Textual]
jcromartie has quit [Read error: Connection reset by peer]
cajone has joined #ruby
charliesome has joined #ruby
Hounddog has quit [Remote host closed the connection]
gustav__ has quit [Remote host closed the connection]
ericjphillips has joined #ruby
symm- has quit [Ping timeout: 256 seconds]
kalusn has quit [Remote host closed the connection]
dasher00 has quit [Ping timeout: 264 seconds]
ruurd has joined #ruby
karapetyan has joined #ruby
but3k4 has joined #ruby
kalusn has joined #ruby
platzhirsch has quit [Ping timeout: 244 seconds]
krz has quit [Quit: WeeChat 1.2]
ldnunes has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Burgestrand has quit []
southpawlar has joined #ruby
platzhirsch has joined #ruby
Kallis has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
renderful has joined #ruby
kalusn has quit [Ping timeout: 264 seconds]
pawnbox has quit [Read error: Connection reset by peer]
babysnoop has joined #ruby
Ramsek has joined #ruby
southpawlar has quit [Ping timeout: 255 seconds]
atomical has joined #ruby
<Ramsek> hi all , i have a error while i download ruby-1.8.7-p374
renderful has quit [Ping timeout: 250 seconds]
d10n-work has joined #ruby
A124 has quit [Disconnected by services]
A124 has joined #ruby
<apeiros> is it a "zombie resurrection failed" error?
<Ramsek> hop its a openssl error
<Ramsek> nop*
dasher00 has joined #ruby
stardiviner has joined #ruby
pawnbox has joined #ruby
<Ramsek> Error: Failed to download resource "openssl098" Download failed: https://www.openssl.org/source/openssl-0.9.8zg.tar.gz
CloCkWeRX has joined #ruby
<yorickpeterse> Are you using RVM?
<Ramsek> yes
<yorickpeterse> If so, it's better to ask in #rvm
<Ramsek> ok
Ramsek has quit [Quit: Page closed]
arup_r has quit [Remote host closed the connection]
ericjphillips has quit [Quit: Leaving.]
arup_r has joined #ruby
bronson has joined #ruby
AugustoCesar has joined #ruby
AugustoCesar has quit [Read error: Connection reset by peer]
arup_r_ has joined #ruby
mjuszczak has quit []
arup_r has quit [Ping timeout: 244 seconds]
Burgestrand has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
decoponio has joined #ruby
Xeago has quit [Remote host closed the connection]
Xiti has quit [Quit: Xiti]
southpawlar has joined #ruby
iceyec has joined #ruby
DoubleMalt has joined #ruby
varunwachaspati has joined #ruby
lolmaus_ has quit [Read error: Connection reset by peer]
quazimodo has joined #ruby
Igorshp has joined #ruby
codenapp_ has joined #ruby
last_staff has quit [Quit: last_staff]
codenapper has quit [Ping timeout: 252 seconds]
Kendos-Kenlen has quit [Quit: Konversation terminated!]
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
dasher00 has quit [Ping timeout: 268 seconds]
Xiti has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
dhjondoh has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
devoldmx has joined #ruby
Kendos-Kenlen has joined #ruby
blackmesa has joined #ruby
Xeago has joined #ruby
favadi has joined #ruby
pawnbox has joined #ruby
emilkarl has joined #ruby
nzst has joined #ruby
parduse has quit []
codenapper has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
codenapp_ has quit [Ping timeout: 240 seconds]
_el_fer_ has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krisquigley has joined #ruby
unreal_ has joined #ruby
unreal_ is now known as unreal
codecop has quit [Remote host closed the connection]
lolmaus has joined #ruby
nzst has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
ndrei has quit [Ping timeout: 240 seconds]
dasher00 has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
dasher00 has quit [Max SendQ exceeded]
sanjayu has quit [Ping timeout: 240 seconds]
Guest490 has joined #ruby
<Guest490> What are threads?
Ilyes512 has joined #ruby
<Guest490> yorickpeterse: I read that. Can you provide a simple definition for what a thread is? Is it like a sub-program inside a ruby program?
<yorickpeterse> The wikipedia page explains exactly what it is
<yorickpeterse> "In computer science, a thread of execution is the smallest sequence of programmed instructions that can be managed independently by a scheduler, which is typically a part of the operating system."
<yorickpeterse> it's the 1st paragraph
<[k-> that's too rense
<[k-> dense*
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<[k-> he wants a simple definition
<yorickpeterse> Not sure what's so dense about that
<yorickpeterse> it's literally what it is
<_el_fer_> "Threads", a Season 8 Stargate SG-1 episode
gusTester has joined #ruby
pawnbox_ has joined #ruby
terlar has quit [Quit: WeeChat 1.3]
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
<Guest490> yorickpeterse: When I write a ruby program, is that called the "main thread"?
p0wn3d has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
nateberkopec has joined #ruby
blaxter has quit [Quit: foo]
Macaveli has joined #ruby
<apeiros> Guest490: if you don't create any threads, all your code runs in the main thread, yes
chipotle has quit [Quit: cheerio]
prestorium has joined #ruby
emilkarl has quit [Quit: emilkarl]
<Guest490> apeiros: And if I create threads, the threads run alongside the main thread. And if the main thread ends, the created threads also end. Correct?
Burgestrand has quit []
mjuszczak has joined #ruby
<apeiros> kinda. the other threads will be terminated. i.e. the main thread won't wait (without you telling it to) for other threads to end
<apeiros> (referring to "when the main thread ends")
<Guest490> apeiros: and the main thread always runs to completion but the created ones dont?
asxbr has joined #ruby
<apeiros> the main thread ending means your program terminates
mjuszczak has quit [Client Quit]
<[k-> when an uncaught exception is raised
<[k-> exit is called
<[k-> abort is called
<[k-> or by any other means
<apeiros> or the code simply reaches its end
ledestin has quit [Ping timeout: 252 seconds]
evanjs has quit [Remote host closed the connection]
<[k-> or the program is killed
<Guest490> apeiros: Can you explain what's happening here: https://eval.in/440567
emilkarl has joined #ruby
tcopeland has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
<apeiros> Guest490: you're telling the program to wait for the same thread to finish in which you tell it to wait
<apeiros> that doesn't work
<yorickpeterse> also you can't start threads on eval.in
Kendos-Kenlen has quit [Quit: Konversation terminated!]
peteykun has joined #ruby
Kendos-Kenlen has joined #ruby
dasher00 has joined #ruby
dasher00 has quit [Max SendQ exceeded]
dasher00 has joined #ruby
<Guest490> apeiros: So just to be clear...threads are like mini processes that run at the same time within a ruby program. Am I right?
dasher00 has quit [Max SendQ exceeded]
<yorickpeterse> Basically yes
<apeiros> I wouldn't call it that. they're code running concurrently with other code.
dasher00 has joined #ruby
bkulbida has joined #ruby
Xeago has joined #ruby
dasher00 has quit [Read error: Connection reset by peer]
ta has quit [Remote host closed the connection]
Guest490 has quit [Quit: Page closed]
tk__ has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie has joined #ruby
Burgestrand has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Cyberheb has joined #ruby
Cyberheb has quit [Excess Flood]
Cyberheb has joined #ruby
Cyberheb has quit [Excess Flood]
Dogethrower has quit [Quit: Textual IRC Client: www.textualapp.com]
Cyberheb has joined #ruby
_el_fer_ has quit [Ping timeout: 264 seconds]
nsuke has quit [Remote host closed the connection]
kalusn has joined #ruby
southpawlar has quit [Ping timeout: 250 seconds]
_el_fer_ has joined #ruby
bronson has joined #ruby
guest_____ has joined #ruby
<darix> see also fibers, coroutines
<guest_____> "You can wait for a particular thread to finish by calling that thread's Thread.join method. The calling thread will block until the given thread is finished." What does block mean here?
<[k-> actors, event driven io, forking, processes, Celluloid,
gustav__ has joined #ruby
<[k-> block means to suspend the thread such that it cannot proceed to it's next instruction, for a period of time
RegulationD has joined #ruby
Hydro-x1 has joined #ruby
<Hydro-x1> b Hello gays
<Hydro-x1> Oh sorry Hello Guys
<yorickpeterse> interesting way of making an entrance
<[k-> interesting autocorrect?
<shevy> interesting evil intent
<guest_____> <[k->: Why does it say "will block" instead of "will be blocked"?
dasher00 has joined #ruby
jzigmund_ has joined #ruby
<shevy> guest_____ it might block the main thread
<shevy> I have that with ruby-gtk where I can freeze the parent widget when doing things :D
dstarh has joined #ruby
<shevy> which is annoying because you can then no longer click on anything in the main widget
bronson has quit [Ping timeout: 264 seconds]
<guest_____> is the calling thread the main thread?
moeabdol has joined #ruby
jzigmund has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 240 seconds]
peteykun has quit [Ping timeout: 240 seconds]
dasher00 has quit [Ping timeout: 240 seconds]
guest_____ has quit [Quit: Page closed]
<[k-> no
beauby has joined #ruby
jzigmund_ has quit [Ping timeout: 250 seconds]
Igorshp has quit [Remote host closed the connection]
<[k-> it means the thread that called join
kobain has joined #ruby
<[k-> Thread.join, that is
favadi has joined #ruby
moeabdol has quit [Ping timeout: 268 seconds]
phutchins1 has joined #ruby
Igorshp has joined #ruby
slayerjain has joined #ruby
jzigmund has joined #ruby
southpawlar has joined #ruby
Igorshp has quit [Remote host closed the connection]
arup_r_ has quit [Remote host closed the connection]
slayerja_ has quit [Ping timeout: 265 seconds]
bmurt has joined #ruby
sgambino has joined #ruby
dorei has joined #ruby
dhjondoh has joined #ruby
slayerjain has quit [Max SendQ exceeded]
JDiPierro has joined #ruby
slayerjain has joined #ruby
victortyau has joined #ruby
dhjondoh has quit [Client Quit]
Xeago has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
dhjondoh has joined #ruby
Hydro-x1 has quit []
devoldmx has joined #ruby
dhjondoh has quit [Client Quit]
moeabdol has joined #ruby
peteykun has joined #ruby
<[k-> " "" """ """" """"" Ox0dea
<[k-> where has Ox0dea gone?
dasher00 has joined #ruby
dhjondoh has joined #ruby
dasher00 has quit [Max SendQ exceeded]
lkba_ has quit [Ping timeout: 246 seconds]
devoldmx has quit [Ping timeout: 264 seconds]
dasher00 has joined #ruby
bayed has joined #ruby
dasher00 has quit [Max SendQ exceeded]
_el_fer_ has quit [Quit: Leaving]
slayerjain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dasher00 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
InternetFriend has joined #ruby
dasher00 has quit [Max SendQ exceeded]
jmignault has joined #ruby
slayerjain has joined #ruby
renderful has joined #ruby
inteq has quit [Read error: Connection reset by peer]
Kendos-Kenlen has quit [Quit: Konversation terminated!]
Burgestrand has quit []
dasher00 has joined #ruby
dasher00 has quit [Max SendQ exceeded]
shpoont has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
timonv has quit [Ping timeout: 268 seconds]
dasher00 has joined #ruby
to_json has joined #ruby
gustav__ has quit [Remote host closed the connection]
Igorshp has joined #ruby
dasher00 has quit [Max SendQ exceeded]
WizJin has quit [Remote host closed the connection]
dasher00 has joined #ruby
<shevy> eaten by a crocodile
dasher00 has quit [Max SendQ exceeded]
<shevy> sevenseacat is also missing
<shevy> WE ARE LOSING ZE PEOPLES!!!
<adaedra> People come, people go
ItSANgo has quit [Quit: Leaving...]
<adaedra> It's the circle of liiiiiiiiife ♪
<[k-> WE ARE LOSING THE SHEVY TO THE MENTAL
prestorium_ has joined #ruby
Psi-Jack has joined #ruby
Kendos-Kenlen has joined #ruby
dasher00 has joined #ruby
dasher00 has quit [Max SendQ exceeded]
<yorickpeterse> they already were mental
dasher00 has joined #ruby
dasher00 has quit [Max SendQ exceeded]
_el_fer_ has joined #ruby
ndrei has joined #ruby
Jardayn has joined #ruby
gustav__ has joined #ruby
jmignault has quit [Ping timeout: 256 seconds]
dasher00 has joined #ruby
prestorium has quit [Ping timeout: 250 seconds]
`tim` has joined #ruby
SenpaiSilver has quit [Ping timeout: 240 seconds]
dasher00 has quit [Max SendQ exceeded]
<[k-> zeeeeeeeeeee
<[k-> no one knows where they have gone :(
dasher00 has joined #ruby
hod0r has quit [Quit: Leaving]
dasher00 has quit [Max SendQ exceeded]
mhib has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
babysnoop has quit [Remote host closed the connection]
<shevy> lost forever
dasher00 has joined #ruby
dopie has quit [Ping timeout: 244 seconds]
dhjondoh has quit [Quit: dhjondoh]
djcp has joined #ruby
piotrj has quit [Remote host closed the connection]
_el_fer_ has quit [Read error: Connection reset by peer]
spcmastertim has joined #ruby
malconis has joined #ruby
<[k-> like your face!
Xeago has quit [Remote host closed the connection]
malconis has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 240 seconds]
malconis has joined #ruby
kp666 has quit [Read error: Connection reset by peer]
<bazbing81> so then
whippythellama has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
<bazbing81> is there a method for finding the closest match to a string in an array of strings? ['ab,'abb','zx'].closest_to 'abba' #=> 1 or 'abb'
<apeiros> bazbing81: do you already have an algorithm to determine "closeness" of two strings?
Xeago has joined #ruby
blackmesa has joined #ruby
icbm has quit [Quit: Computer sleeping]
<[k-> this is obviously a case of levenshtein distance
<bazbing81> apeiros: nope, going to make one myself. should be easy and fun, just wondering if ruby already does it. Maybe that example's a little off. I'm looking more for google's autofill type usage
piotrj has joined #ruby
<[k-> compute the difference, and grab the one with the lowest difference
jdawgaz has joined #ruby
<apeiros> no, ruby has no methods for string closeness
Anti-Pizza has quit [Quit: Quit]
<bazbing81> [k-: indeed :)
karapetyan has joined #ruby
<bazbing81> okay kewl, I shall compute away
<apeiros> Enumerable#min_by once you have your method
pawnbox_ has quit [Read error: Connection reset by peer]
<bazbing81> apeiros: thanks for the hint!
JDiPierro has quit [Remote host closed the connection]
voltalio has joined #ruby
dasher00 has quit [Ping timeout: 264 seconds]
joonty has quit [Ping timeout: 240 seconds]
karapetyan has quit [Ping timeout: 252 seconds]
voltalio has quit [Max SendQ exceeded]
decoponyo has joined #ruby
joonty has joined #ruby
voltalio has joined #ruby
<southpawlar> Hello guys
Xeago has quit [Remote host closed the connection]
<southpawlar> Do frameworks like Ruboto and RubyMotion have any performance issues as compared to coding in native Java
<southpawlar> ample people say yes
<southpawlar> but i'd like your opinions as well
InternetFriend has joined #ruby
decoponio has quit [Ping timeout: 255 seconds]
yottanami has joined #ruby
<yottanami> I want send a post request using Net::HTTP http://dpaste.com/06QAB78
<yottanami> but I got this error /home/yottanami/.rbenv/versions/2.2.2/lib/ruby/2.2.0/net/http/generic_request.rb:182:in `send_request_with_body': undefined method `bytesize' for {:receiver=>"XXXXXX", :text=>"Sample Text"}:Hash (NoMethodError)
Jardayn has quit [Quit: Leaving]
timonv has joined #ruby
Igorshp has quit [Remote host closed the connection]
_el_fer_ has joined #ruby
pawnbox has joined #ruby
prestorium_ is now known as prestorium
dionysus69 has quit [Ping timeout: 240 seconds]
pandaant has joined #ruby
southpawlar has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
krz has joined #ruby
decoponio has joined #ruby
<apeiros> yottanami: sounds to me (without looking at the API) like the body is expected to be a string
ItSANgo has joined #ruby
dionysus69 has joined #ruby
<yottanami> apeiros, I changed body to URI.encode_www_form(body) and it works now
bronson has joined #ruby
bkxd has joined #ruby
dasher00 has joined #ruby
lkba has joined #ruby
dhollinger has joined #ruby
RTG` has quit []
Beoran_ has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 264 seconds]
RTG` has joined #ruby
decoponyo has quit [Ping timeout: 265 seconds]
arup_r has joined #ruby
Uranio-235 has joined #ruby
blaxter has joined #ruby
davedev24 has joined #ruby
devdazed has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
bkxd has quit [Ping timeout: 252 seconds]
casadei has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
timonv has quit [Quit: WeeChat 1.3]
tagrudev has quit [Remote host closed the connection]
slayerjain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
agit0 has quit [Quit: Leaving]
blaxter has quit [Ping timeout: 244 seconds]
timonv has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nfk|laptop has quit [Quit: yawn]
NeverDie has quit [Ping timeout: 250 seconds]
gustav__ has quit [Remote host closed the connection]
JDiPierro has joined #ruby
paulcsmith has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
favadi has joined #ruby
<goncalo> /wi/win 2
Igorshp has quit [Remote host closed the connection]
favadi has quit [Max SendQ exceeded]
Xeago has joined #ruby
umgrosscol has joined #ruby
gustav__ has joined #ruby
RegulationD has joined #ruby
Igorshp has joined #ruby
cornerma1 has joined #ruby
bigbadbear has joined #ruby
prefixed has joined #ruby
bluOxigen has quit []
keen____________ has joined #ruby
j2k_ has quit [Ping timeout: 240 seconds]
mike___1234 has quit [Quit: Leaving]
nopc0de has joined #ruby
freerobby has joined #ruby
Ilyes512 has joined #ruby
gustav__ has quit [Remote host closed the connection]
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
gustav__ has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
tk__ has quit [Quit: ばいばい]
keen___________ has quit [Ping timeout: 244 seconds]
hal_9000 has joined #ruby
<bazbing80> is there some kind of escaped string that means "delete"? And is there one for "enter"? I want to detect when these keys are pressed like puts "delete key pressed!" if input == "\eCODE_FOR_DELETE_KEY"
Gnomethrower is now known as GT|away
<bazbing80> I've tried to log it but my terminal doesn't recognize the char :P
<adaedra> man ascii for characters codes, but you should not be able to catch them in default mode.
bazbing81 has quit [Quit: leaving]
Xeago has quit [Ping timeout: 252 seconds]
<adaedra> Look for a terminal manipulation gem.
<shevy> did this not come up yesterday too
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blaxter has joined #ruby
<[k-> your face came up yesterday too
<shevy> bazbing80 enter will equate to "\n", I don't think you can capture the raw codes such as via xev
<adaedra> If only your study time would come.
<adaedra> shevy: xev captures X codes, not terminal ones.
<shevy> ah yes
icbm has joined #ruby
govg has joined #ruby
<adaedra> But yes, you can setup the terminal to send you all keys.
mello has quit [Quit: Lost terminal]
<eam> the terminal needs to be put in raw mode
<eam> in "cooked" mode, the line editing is handled by the kernel, before the data is returned to ruby
<eam> bazbing80: there are gems that do this for you
Zarthus has quit [Quit: ZNC 1.7.x-git-196-5faaf67 - http://znc.in]
<bazbing80> eam: yeah I'm looking...google thinks I'm trying to find out how to delete keys from hashes
<bazbing80> silly google
funkenstrahlen has joined #ruby
<funkenstrahlen> hey, I have to set an expire_date for a connection. How can I do expire_date = Time.now + 2.hours?
bruno- has joined #ruby
chrissonar has quit [Remote host closed the connection]
Zarthus has joined #ruby
gustav__ has quit [Remote host closed the connection]
<apeiros> funkenstrahlen: Time#+ is in seconds
psy_ has quit [Quit: Leaving]
fluchtreflex has quit [Quit: ZNC - http://znc.in]
<crayfishx> expire_date = Time.now.to_i + 7200 ?
<apeiros> crayfishx: that gives an integer, though, not a Time
<crayfishx> apeiros: convert it back from integer if you need to
<apeiros> crayfishx: if you love roundtrips… there's no point to it, though. as said, Time#+ a) exists and b) works with seconds
<eam> bazbing80: if you just want to mess around: ruby -e'begin system "stty raw"; x = STDIN.getc; ensure system "stty sane"; end; puts "got: #{x.ord}"'
renderful has quit [Remote host closed the connection]
dopie has joined #ruby
peteykun has quit [Ping timeout: 264 seconds]
<apeiros> require 'io/console', allows you to do it without system()
<eam> ah, is that where the ioctls are hiding?
<bazbing80> eam: thanks, I was thinking how you put a terminal in raw mode manually
<apeiros> eam: only a small subset I think
<apeiros> stuff like IO#noecho, #raw etc.
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<funkenstrahlen> apeiros: how is the syntax for Time#+ ?
<funkenstrahlen> apeiros: Time3600+ for +1h?
<eam> bazbing80: if you're interested in tty stuff I wrote up a bit about it here: https://groups.google.com/d/msg/millertime-ext/p9b_IBiFLXI/LSacuzT8CwAJ
<apeiros> &ri Time#+ funkenstrahlen
<`derpy> http://www.rubydoc.info/stdlib/core/Time#%2B-instance_method
<apeiros> hm, right, derpy wants an @
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> if you have a better proposition of how to handle that, apeiros
hashrocket has joined #ruby
<apeiros> adaedra: you want an @ because you treat everything without as an item to look up, right?
<bazbing80> eam: yeah I'll check that out...urgh this is embarrassing, I can't find a gem for capturing raw input :(
Jardayn has joined #ruby
<adaedra> apeiros: yes, so you can lookup String even if someone is named String.
<adaedra> and you can, well, &ri String @String :)
<apeiros> mhm, thought so
<bazbing80> Something captures letter and number characters normally but delete keys and enter keys and everything are captured raw...trying to find such a gem
<bazbing80> *something that
nfk has joined #ruby
Igorshp has quit [Remote host closed the connection]
jdawgaz has joined #ruby
<apeiros> adaedra: not sure. I'm usually a fan of being explicit. but might be more intuitive to always handle last argument (in case of >1 arg & arg being an existing nick) as "address person with this nick"
mhib has quit [Ping timeout: 244 seconds]
lkba has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 272 seconds]
<adaedra> That means checking against nick list at each &ri request >1 arg, tho.
govg has quit [Ping timeout: 240 seconds]
stardiviner has quit [Ping timeout: 255 seconds]
Igorshp has joined #ruby
<shevy> it scares me what kind of old knowledge eam possesses
ndrei has joined #ruby
dfockler has joined #ruby
lkba has joined #ruby
govg has joined #ruby
slayerjain has joined #ruby
drptbl_ has joined #ruby
<shevy> he must have learned that through perl
evanjs has joined #ruby
pawnbox_ has joined #ruby
drptbl has quit [Ping timeout: 265 seconds]
<eam> bazbing80: well, letters and numbers still work like normal in raw mode
<apeiros> adaedra: afaik in cinch it's a hash lookup, so it's O(1), not really a performance issue
<apeiros> (and in butler it's guaranteed to be a hash lookup)
mbff has joined #ruby
<adaedra> ah, can be possible then. The question is should I, as the @ form is still more explicit.
<shevy> good old butler
<mbff> Hello! Has anyone used mina for deployments before?
<apeiros> bazbing80: curses/ncurses are the traditional gems for that kind of stuff iirc
DroidBurgundy has joined #ruby
<apeiros> mbff: no, nobody ever
<apeiros> ?anyone mbff
<ruboto> mbff, Just ask your question, if anyone has or can, they will respond.
cih_ has joined #ruby
<apeiros> adaedra: sure it's more explicit. but how often will it happen that your last lookup also matches a nickname?
pawnbox has quit [Ping timeout: 250 seconds]
stardiviner has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
minimalism has joined #ruby
Rickmasta has joined #ruby
<mbff> Alright, so I am using mina for deployments and I am trying to get the npm:install to function correctly. Right now it can't find the modules that need to be installed.
<bazbing80> eam: hmm..maybe I'll just put it raw mode myself like you showed me
<bougyman> isn't that node stuff, mbff ?
<eam> bazbing80: it'll work - I think apeiros's io/console suggestion is better than using system()
<mbff> bougyman, true but I thought it would be a mina issue since I can ssh into the server and use npm just fine.
jds has quit [Quit: Connection closed for inactivity]
cih has quit [Ping timeout: 264 seconds]
InternetFriend has joined #ruby
umgrosscol has quit [Ping timeout: 240 seconds]
aganov has quit [Remote host closed the connection]
Guest81767 is now known as SuperTux88
<darix> mbff: #mina or so would still be a better channel.
inteq has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
SylarRuby has joined #ruby
<mbff> darix, fair enough. I haven't been able to fine the mina irc channel yet.
<adaedra> apeiros: I'll note it somewhere to look at later.
RegulationD has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<apeiros> adaedra: would you mind if my port would change that behavior?
<adaedra> apeiros: your project, your rules.
<[k-> your face, your (?)
<apeiros> sure, but that's not what I asked ;-p
* [k- snickers
<adaedra> apeiros: so no, I won't mind if you change behavior in your bot.
<apeiros> \o/
<gregf_> [k-: needs to be tagged 'your face'. s?he's been using that punchline all day long :/
Newtonianb has joined #ruby
Caius has quit [Ping timeout: 256 seconds]
<adaedra> For multiple days :/
<gregf_> heh
<adaedra> As an excuse for not studying :/
<gregf_> er, not sure. studying? hmm. i thought [k- was Ox0dea's successor :/
slayerjain has quit [Ping timeout: 252 seconds]
<apeiros> adaedra: [k- should study their face?
<adaedra> :D
mary5030 has joined #ruby
ereslibre has quit [Read error: Connection reset by peer]
shpoont has quit [Quit: Textual IRC Client: www.textualapp.com]
slayerjain has joined #ruby
ereslibre has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Caius has joined #ruby
zeroDivisible has joined #ruby
Uranio-235 has quit [Ping timeout: 246 seconds]
Ropeney has joined #ruby
<shevy> the universities in Singapore are superstrict but [k- will eventually become an associate professor
rippa has joined #ruby
stardiviner has quit [Read error: Connection reset by peer]
NeverDie has joined #ruby
Ropeney has quit [Client Quit]
<adaedra> "If you can do something, do it, if you can't, teach it" :p
<adaedra> (apology for all teachers and other people here, it's only a joke.)
fullofcaffeine has joined #ruby
beauby has quit [Ping timeout: 252 seconds]
Uranio-238 has joined #ruby
Yzguy has joined #ruby
<jhass> it's okay, we'll just take note on the things you explain
ruurd has quit [Quit: ZZZzzz…]
<adaedra> :D
ndrei has quit [Ping timeout: 260 seconds]
<gregf_> heh. adaedra, do you mean teachers can't code :|
rehat has quit [Remote host closed the connection]
peteykun has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
varunwachaspati has quit [Quit: Connection closed for inactivity]
eminencehc has joined #ruby
emilkarl has quit [Quit: emilkarl]
Yzguy has quit [Ping timeout: 264 seconds]
renderful has joined #ruby
<dorei> if can do something, do it, if you cant do it, manage it, and if you cant manage it, then teach it :p
<shevy> this is getting worse
sjums has joined #ruby
skade has joined #ruby
<[k-> your face is getting worse!
rushed has joined #ruby
eminencehc has quit [Remote host closed the connection]
slayerjain has quit [Quit: Textual IRC Client: www.textualapp.com]
renderful has quit [Ping timeout: 246 seconds]
platzhirsch has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
moeabdol has quit [Quit: WeeChat 1.3]
<adaedra> Thanks dorei
blackmesa has quit [Ping timeout: 240 seconds]
Kallis has quit [Read error: Connection reset by peer]
doddok has joined #ruby
eminencehc has joined #ruby
<doddok> ruby-head slower than 2.1.2 on http://pastie.org/10448430
noethics has joined #ruby
<doddok> why guys
<doddok> head uses additional info when executing script?
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<jhass> optimized build vs unoptimized build perhaps? idk do Ruby's build script set any -O level?
chouhoulis has joined #ruby
araujo has quit [Ping timeout: 265 seconds]
eminencehc has quit [Remote host closed the connection]
FernandoBasso has quit [Quit: Leaving]
<[k-> i use -O6 personally
<doddok> i used rvm to install ruby
chouhoulis has quit [Remote host closed the connection]
<doddok> how can check build parameters?
chouhoulis has joined #ruby
<jhass> RbConfig::CONFIG
<[k-> doddok, since you are using symbols, it ***might*** be the symbol gx
<[k-> gc* but i am probably wrong
<jhass> you might also want to check with benchmark-ips which does proper warmup etc
SenpaiSilver has joined #ruby
speakingcode has quit [Ping timeout: 255 seconds]
SenpaiSilver has quit [Remote host closed the connection]
to_json1 has joined #ruby
<doddok> correct code http://pastie.org/10448439
to_json has quit [Ping timeout: 240 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aerozeppelin has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
beast has joined #ruby
joufflu has joined #ruby
roxtrong_ has joined #ruby
ReK2 has joined #ruby
chinmay_dd has left #ruby ["See ya!"]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roxtrongo has quit [Ping timeout: 264 seconds]
<shevy> lots of pastes!
DoubleMalt has quit [Remote host closed the connection]
<shevy> 2.3.0 is faster right?
<doddok> why fatser
<doddok> slower
SCHAAP137 has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
<jhass> compare to 2.2?
<jhass> also that's within the standard deviation, no?
piotrj has joined #ruby
<doddok> 2.1.2
eminencehc has joined #ruby
cschneid_ has joined #ruby
<jhass> latest release are 2.1.7 & 2.2.3
ndrei has joined #ruby
Rickmasta has quit [Ping timeout: 246 seconds]
<doddok> i installed 2.1.2
<doddok> "cxxflags"=>" -O3 -fno-fast-math -ggdb3 -Wall
stan has quit [Ping timeout: 240 seconds]
<doddok> good flags?
rcvalle has joined #ruby
Rickmasta has joined #ruby
Ilyes512 has joined #ruby
<doddok> as remember 03 max optimization?
umgrosscol has joined #ruby
speakingcode has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
s00pcan has joined #ruby
sharkman has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has quit [Ping timeout: 240 seconds]
cih_ has quit [Remote host closed the connection]
ruby-lang648 has joined #ruby
mwlang has joined #ruby
Rickmasta has joined #ruby
rcvalle has quit [Quit: rcvalle]
_djbkd has joined #ruby
michaeldeol has joined #ruby
atin_ has joined #ruby
Oka has joined #ruby
<atin_> clear
codenapper has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Steve_Jobs has quit [Ping timeout: 255 seconds]
<ruby-lang648> "When a Ruby program terminates, all threads are killed, regardless of their states. However, you can wait for a particular thread to finish by calling that thread’s Thread#join method. The calling thread will block until the given thread is finished." What does the last sentence mean?
brendan- has quit [Max SendQ exceeded]
mbff has quit [Ping timeout: 240 seconds]
drptbl_ has quit [Read error: Connection reset by peer]
InternetFriend has joined #ruby
<adaedra> That the thread you call Thread#join in will block (not execute anything) until the thread you want to join is not terminated.
brendan- has joined #ruby
benlieb has joined #ruby
Steve_Jobs has joined #ruby
<ruby-lang648> adaedra: Why do we say "will block" instead of "will be blocked"?
<adaedra> Beats me.
<ruby-lang648> adaedra: It's incorrect english though, is it not?
<adaedra> er
favadi has joined #ruby
casadei has quit [Remote host closed the connection]
<adaedra> it seems correct to me, at least gramaticaly-wise
Xeago has joined #ruby
<adaedra> But – as you may see –, I'm not a native English speaker, so I don't know if some weird rule would make this invalid
<ruby-lang648> adadra: So by block we just mean that the calling thread will be moved to the blocked state right?
jshow has joined #ruby
<adaedra> yes
rcvalle has joined #ruby
<ruby-lang648> The calling thread is the main thread?
[Butch] has joined #ruby
<ruby-lang648> As in Thread.main?
<adaedra> and unblocked when the other thread will be done
Pathfinder has joined #ruby
<adaedra> You can wait a thread from another thread, not only the main one
last_staff has joined #ruby
favadi has quit [Max SendQ exceeded]
devoldmx has joined #ruby
skade has joined #ruby
<ruby-lang648> adaedra: All right.
<ruby-lang648> adaedra: Thanks!
piotrj has quit [Remote host closed the connection]
skade has quit [Client Quit]
Spami has joined #ruby
Lucky__ has joined #ruby
<jhass> ruby-lang648: you can see it as a shorted version of "will block further execution"
skade has joined #ruby
ngscheurich has joined #ruby
bronson has joined #ruby
<ruby-lang648> jhass: That makes sense. Got it.
devoldmx has quit [Ping timeout: 264 seconds]
Pathfinder has quit [Ping timeout: 265 seconds]
dome22xl has joined #ruby
<jhass> that it moves to the blocked state is right, but kinda an implementation detail
ruby-lang216 has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ruby-lang216> can I get help with this exercise?
<jhass> ?ask
<ruboto> Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
_djbkd has quit [Remote host closed the connection]
ruby-lang648 has left #ruby [#ruby]
amclain has joined #ruby
<ruby-lang216> here's the exercise and I need a little help:encryptor 1 - write a ruby script that takes in 2 arguements - a key(int) and a string to encrypt(string) 2 - encrypt the string with random letters in between each character based off of the key example - encrypt(2, 'hello') output - hdkelxslieo
bronson has quit [Ping timeout: 240 seconds]
<adaedra> you may want to show your current state and state your current problem.
eminencehc has quit [Remote host closed the connection]
Uranio-238 has quit [Ping timeout: 246 seconds]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruurd has joined #ruby
eminencehc has joined #ruby
Kendos-Kenlen has quit [Ping timeout: 268 seconds]
Igorshp has quit [Remote host closed the connection]
<shevy> ruby-lang216 def foo(a,b)
pawnbox has joined #ruby
casadei has joined #ruby
<jhass> ruby-lang216: we won't solve it for you, you should detail your thoughts and where you're stuck
araujo has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
araujo has quit [Max SendQ exceeded]
Pathfinder has joined #ruby
joonty has quit [Quit: joonty]
Ilyes512 has joined #ruby
bricker has joined #ruby
araujo has joined #ruby
xet7 has quit [Remote host closed the connection]
Ilyes512 has quit [Read error: Connection reset by peer]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
Ilyes512 has joined #ruby
psy_ has joined #ruby
agent_white has joined #ruby
naftilos76 has quit [Ping timeout: 272 seconds]
agent_white has left #ruby [#ruby]
bugrum has joined #ruby
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
blackmesa has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
Igorshp has quit [Remote host closed the connection]
DLSteve has joined #ruby
Ilyes512 has joined #ruby
sharkman has quit [Quit: Leaving]
araujo has quit [Ping timeout: 240 seconds]
tvw has quit [Remote host closed the connection]
Ilyes512 has quit [Read error: Connection reset by peer]
SCHAAP137 has joined #ruby
voltalio has joined #ruby
Soda has joined #ruby
Ilyes512 has joined #ruby
govg has quit [Quit: leaving]
JDiPierro has quit [Remote host closed the connection]
dionysus69 has joined #ruby
<ruby-lang216> how can I write a string in ruby and encrypt and have a key for it?
<shevy> he is not interactive :(
G40ST has joined #ruby
<G40ST> so yeah
<bougyman> did you evern google?
<bougyman> ruby-lang216, that is.
<bougyman> lots of examples there
<ruby-lang216> I tried but I can't find anything
<bougyman> dunno what you tried.
Ilyes512 has quit [Read error: Connection reset by peer]
voltalio has quit [Client Quit]
<G40ST> Can I ask things about rails, here?
<adaedra> ?rails G40ST
<ruboto> G40ST, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<G40ST> kay lol
prater has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
Pathfinder has quit [Ping timeout: 250 seconds]
G40ST has quit [Quit: WeeChat 1.0.1]
Stalkr_ has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
obx has joined #ruby
theery has joined #ruby
maletor has joined #ruby
arup_r has quit [Ping timeout: 250 seconds]
jdawgaz has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
maletor has quit [Client Quit]
kith_ has joined #ruby
maletor has joined #ruby
rippa has quit [Read error: Connection reset by peer]
kith has quit [Ping timeout: 246 seconds]
paulcsmith has quit [Quit: Be back later ...]
Pathfinder has joined #ruby
<shevy> we scared him off
<shevy> into the dark corners of the IRC
maletor has quit [Client Quit]
p0wn3d has quit [Ping timeout: 265 seconds]
casadei has quit [Remote host closed the connection]
bronson has joined #ruby
towski_ has joined #ruby
Igorshp has joined #ruby
<St1gma> lol
Anti-Pizza has joined #ruby
skweek has joined #ruby
karapetyan has joined #ruby
chipotle has joined #ruby
anisha has quit [Quit: Leaving]
ndrei has quit [Ping timeout: 250 seconds]
Macaveli has joined #ruby
atin_ has quit [Ping timeout: 246 seconds]
p0wn3d has joined #ruby
rippa has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
`based_pdev` has quit [Read error: Connection reset by peer]
dome22xl has left #ruby ["Leaving"]
dome22xl has joined #ruby
hooper1 has joined #ruby
pruby has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has quit [Ping timeout: 265 seconds]
<pruby> I'm having a hard time understanding this code: https://eval.in/440739
<adaedra> What part, exactly?
<pruby> Why does it print random numbers instead of printing them out in order?
arup_r has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
araujo has joined #ruby
araujo has joined #ruby
<adaedra> ah, threads.
allomov has quit [Remote host closed the connection]
mjuszczak has joined #ruby
asxbr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mjuszczak has quit [Max SendQ exceeded]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjuszczak has joined #ruby
SylarRuby has quit []
<dome22xl> Well it creates 10 threads and each has the sleep(rand)
<adaedra> Do you see what sleep(rand) does?
JDiPierro has joined #ruby
<dome22xl> it gives you for example 0.43248593802961577
symm- has joined #ruby
<pruby> adaedra: Yeah I know what it does but it's the threads that are confusing me
eminencehc has quit [Remote host closed the connection]
<adaedra> each thread run in parallel
eminencehc has joined #ruby
<adaedra> so they start at (close enough) the same time, each on their own
<adaedra> they will wait a random amount of time (different for each) then save and increment the counter
<adaedra> but since the time to wait is random, you cannot know which thread will take a number first
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> adaedra: concurrently. not necessarily in parallel.
Xeago has quit [Remote host closed the connection]
<adaedra> close enough in this case, but right
<pruby> What does this line do "Thread.current[:mycount] = count"?
Xeago has joined #ruby
renderful has joined #ruby
<adaedra> &ri Thread#[]=
<`derpy> http://www.rubydoc.info/stdlib/core/Thread#%5B%5D%3D-instance_method
<funkenstrahlen> hey, someone here with experience in oauth2? I am stuck here: https://github.com/kylejginavan/youtube_it/issues/253
<pruby> adaedra: and afterwards why do we have to call Thread#join on each thread?
tuxero has joined #ruby
ta has joined #ruby
<adaedra> pruby: The main thread waits for child threads to finish, one by one. Once the threads are launched, they run concurrently, and the main thread can continue
dome22xl has quit [Ping timeout: 255 seconds]
eminencehc has quit [Remote host closed the connection]
<adaedra> so you have to block, thread by thread, until this thread is done
<adaedra> otherwise, you may request data from the thread during the sleep, and so not get the data
spider-mario has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
Maxandr has joined #ruby
<pruby> adaedra: What does calling thread[:mycount] do immediately after calling thread.join?
poguez_ has quit [Quit: Connection closed for inactivity]
agent_meerkat has joined #ruby
<adaedra> pruby: it gets the data that you set in the thread
fmcgeough has joined #ruby
<pruby> adaedra: all the threads have a :mycount local variable. this is different for each?
<pruby> adaedra: As in this local variable has a unique value for each thread?
<adaedra> they have local storage, that you can access with [] and []=. So, in the thread, you store something in the thread's :mycount key in storage, and get it afterwards. And yes, each thread has its own storage.
Maxandr has quit [Client Quit]
<adaedra> Do you see how threads work, basically?
ruby-lang216 has quit [Ping timeout: 246 seconds]
pietr0 has joined #ruby
<pruby> adaedra: Yeah I'm sort of getting it but it's not very clear yet. Might have to do a little more reading I guess.
gustav_ has joined #ruby
<adaedra> pruby: Can I try an analogy?
FernandoBasso has joined #ruby
symm- has quit [Quit: Leaving...]
<pruby> adaedra: Yeah sure.
joshyjosh has joined #ruby
troulouliou_div2 has joined #ruby
leafybas_ has joined #ruby
<adaedra> Immagine your program is a shopping cart, with items, and that your computer is the cahier.
symm- has joined #ruby
asxbr has joined #ruby
<adaedra> So your cahier will take your items, scan them one by one. It's executing your program.
<adaedra> In default mode, you have one queue, so only one cart is processable at the time.
<shevy> anyone happens to know if Tom Copeland is still using ruby?
chipotle has quit [Quit: cheerio]
<adaedra> Now, when you create a thread, you open another queue with another cahier.
<adaedra> So you can treat two carts.
<adaedra> Each one works independently.
reset has joined #ruby
<adaedra> Okay until there?
<pruby> Yup.
mjuszczak has quit []
ehth77 has joined #ruby
petricore has joined #ruby
zotherstupidguy has quit [Ping timeout: 250 seconds]
kappy has quit [Remote host closed the connection]
<adaedra> So in your case, you open 10 lanes.
<pruby> 10 carts?
<adaedra> And feed them 10 carts, yes.
leafybasil has quit [Ping timeout: 264 seconds]
kalusn has quit [Remote host closed the connection]
<pruby> and they're all served concurrently?
<adaedra> yes.
leafybas_ has quit [Ping timeout: 244 seconds]
mxrguspxrt has joined #ruby
<adaedra> Working on each cart is done independently from other carts, like in real life
spidermario has joined #ruby
spider-mario has quit [Ping timeout: 264 seconds]
<funkenstrahlen> hey, someone here with experience in oauth2? I am stuck here: https://github.com/kylejginavan/youtube_it/issues/253
<pruby> can you try adding :mycount into the analogy if possible?
NeverDie has quit [Quit: http://radiux.io/]
spidermario is now known as spider-mario
zotherstupidguy has joined #ruby
<adaedra> pruby: you're ok there?
ponga has quit [Quit: Connection closed for inactivity]
paulcsmith has joined #ruby
Jackneill has joined #ruby
<pruby> adaedra: Okay until now yes but this part "threads.each {|t| t.join; print t[:mycount], ", " }"
momomomomo has joined #ruby
<pruby> adaedra: don't get that part.
Rollabunna has joined #ruby
danieli has joined #ruby
<adaedra> That's the manager office. The manager come this morning and opened the lanes for the cashiers. Now, it waits for work to be done to close them, in order.
ledestin has joined #ruby
Jackneill has quit [Remote host closed the connection]
<adaedra> So, lane by lane, it waits for carts to be processed, then close the lane. Beginning by the lane 1, even if another lane close before.
InternetFriend has joined #ruby
Igorshp has quit [Remote host closed the connection]
moeabdol has joined #ruby
<pruby> When we call t.join, we wait until that thread finishes running and then we run print t[:mycount] ?
<adaedra> Yes
NeverDie has joined #ruby
<adaedra> I have a thing to re-read, I come back to you in a sec for the local storage
eminencehc has joined #ruby
<pruby> adaedra: All right.
niftylettuce has joined #ruby
InternetFriend has quit [Client Quit]
Rollabunna has quit [Ping timeout: 250 seconds]
InternetFriend has joined #ruby
_djbkd has joined #ruby
skullcrasher_ has joined #ruby
Igorshp has joined #ruby
saddad has joined #ruby
fantazo has joined #ruby
krisquigley has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 250 seconds]
DroidBur_ has joined #ruby
wldcordeiro_ has joined #ruby
<adaedra> pruby: So
DroidBurgundy has quit [Ping timeout: 264 seconds]
<pruby> adaedra: Do the threads start running as soon as we create the threads variable? in the example I showed?
firstdayonthejob has joined #ruby
tenderlove has joined #ruby
mjuszczak has joined #ruby
<adaedra> yes
xet7 has joined #ruby
hanmac has quit [Ping timeout: 240 seconds]
<adaedra> they are created on after each other, and once all are created, they are saved into threads
<adaedra> so you have an array of Thread objects
hahuang65 has quit [Ping timeout: 250 seconds]
<pruby> and they start running even before we call Thread#join on either one of em right?
rgb-one has joined #ruby
<rgb-one> Hey
<pruby> Thread#join is just to ensure they get executed completely?
<adaedra> They start at the new
<adaedra> join is to "merge" them
<adaedra> so it waits until the thread is completed
<rgb-one> Given a text file with 10 lines of text, how can I create a MD5 hash for each line
<rgb-one> ?
Musashi007 has joined #ruby
<adaedra> like the manager, waiting for the cart to be processed to close the lane, pruby
<adaedra> rgb-one: with which part of this problem do you need help?
tejasmanohar has joined #ruby
<rgb-one> adaedra: Creating the MD5 hash of each line of a text file
<adaedra> rgb-one: do you know how to create a md5 hash?
<pruby> adaera: Okay
<shevy> rgb-one just pass the string into a method that does it
voltalio has joined #ruby
prater has left #ruby ["WeeChat 1.0.1"]
<adaedra> pruby: Thread storage is like a little note block a cashier has with it. So when you do "Thread.current[:mycount] = count", it says "Write at page :mycount on the current cashier's note block the current value of count"
<rgb-one> >> require 'digest'; t = hello; Digest::MD5.hexdigest t
<ruboto> rgb-one # => undefined local variable or method `hello' for main:Object (NameError) ...check link for more (https://eval.in/440803)
sjums has left #ruby [#ruby]
<rgb-one> >> require 'digest'; t = 'hello'; Digest::MD5.hexdigest t
<ruboto> rgb-one # => "5d41402abc4b2a76b9719d911017c592" (https://eval.in/440804)
<adaedra> Ok, so you need to process the file line by line
<pruby> adaedra: The cashier or the cart?
symm- has quit [Quit: Leaving...]
<adaedra> pruby: The cashier. Or the lane, whatever you identified the thread to be.
<rgb-one> adaedra: Indeed
<adaedra> &ri File#lines @rgb-one
Igorshp has quit [Remote host closed the connection]
Cyther has joined #ruby
<adaedra> should help you.
<pruby> adaedra: If I create 10 threads, I will have a total of 11 threads running as a full program since the main program is a thread itself right?
<adaedra> yes
<adaedra> The main thread is the first thread, created at the start of the program. And remember that if the main thread dies, it kills all other threads at the same time.
michaeldeol has joined #ruby
ericjphillips has joined #ruby
Igorshp has joined #ruby
<adaedra> The worst case of manager, the one which kills all of its employees at the end of the day :(
Gachr has joined #ruby
blackmesa has joined #ruby
<Gachr> Hello everyone, how can I make UI inside terminal with Ruby?
<pruby> adaedra: Thread#join to the rescue!
<adaedra> exactly!
<adaedra> so, still need help with something?
parduse has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pruby> adaedra: No that was a great analogy. Thank you so much!
<adaedra> you're welcome.
<adaedra> (off to the train, now!)
nsuke has joined #ruby
pragmatism has quit [Ping timeout: 246 seconds]
pruby has left #ruby [#ruby]
codecop has joined #ruby
wldcordeiro_ has quit [Quit: Konversation terminated!]
pragmatism has joined #ruby
dome22xl has joined #ruby
wldcordeiro_ has joined #ruby
snockerton has joined #ruby
momomomomo has quit [Quit: momomomomo]
pragmatism has quit [Client Quit]
blackmesa has quit [Ping timeout: 268 seconds]
TomyLobo has joined #ruby
`tim` has joined #ruby
pragmatism has joined #ruby
Igorshp has quit [Remote host closed the connection]
gustav_ has quit [Remote host closed the connection]
slayerjain has joined #ruby
jshow has quit [Quit: jshow]
slayerjain has quit [Max SendQ exceeded]
allomov has joined #ruby
phutchins1 has quit [Ping timeout: 244 seconds]
<prefixed> YO BROS
paulcsmith has quit [Quit: Be back later ...]
<prefixed> what's the syntax optionparser uses for input?
slayerjain has joined #ruby
hanmac has joined #ruby
pragmatism has left #ruby [#ruby]
pragmatism has joined #ruby
slayerjain has quit [Max SendQ exceeded]
paulcsmith has joined #ruby
<Gachr> How can I do terminal interface with Ruby?
casadei has joined #ruby
InternetFriend has joined #ruby
slayerjain has joined #ruby
dfockler has quit [Remote host closed the connection]
slayerjain has quit [Max SendQ exceeded]
Eiam_ has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
phutchins1 has joined #ruby
<darix> Gachr: ncurses/curses
<apeiros> > prefixed: YO BROS
<apeiros> are you trying to be an ass? o0
<shevy> haha
<shevy> he is revealed
Cyberheb has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has joined #ruby
<eam> I learned something new about ruby: ruby -e'Process.setrlimit Process::RLIMIT_NPROC, 0, 0; `echo hang forever`'
lxsameer has joined #ruby
<shevy> what are you doing again
<apeiros> NPROC controls how many processes it can spawn?
nettoweb has joined #ruby
<eam> yeah. You'd expect `` to fail, but what it actually does is loop forever
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kendos-Kenlen has joined #ruby
<eam> it's ... not the behavior I'd expect
<apeiros> indeed, an exception is what I'd expect too
postmodern has joined #ruby
<apeiros> !kick prefixed not acceptable
prefixed was kicked from #ruby by ruboto [not acceptable]
prefixed has joined #ruby
snockerton has quit [Quit: Leaving.]
<eam> gonna see if a PR gets accepted on this
<shevy> I was too scared to click on the link!
<prefixed> gross.
<prefixed> neckbeard
dionysus69 has joined #ruby
prefixed has left #ruby [#ruby]
slayerjain has joined #ruby
darkf has quit [Quit: Leaving]
asxbr has quit [Quit: Textual IRC Client: www.textualapp.com]
asxbr has joined #ruby
<eam> I discovered the (what I'd call a bug) via some other unrelated issue causing the subprocess spawn to fail
zeroDivisible has quit [Ping timeout: 250 seconds]
<eam> it's general to anything that does a fork() I believe
snockerton has joined #ruby
ghostlines has joined #ruby
<apeiros> that's the loop it's stuck in I assume?
<shevy> infinity
<eam> yeah, and here's the handling of errors: https://github.com/ruby/ruby/blob/trunk/process.c#L3238
to_json has joined #ruby
jdawgaz has joined #ruby
to_json1 has quit [Ping timeout: 272 seconds]
<eam> I think the interpretation of EAGAIN was taken a bit too literally
<eam> it doesn't actually mean you should blindly try the call again
seabasshunter has joined #ruby
* apeiros doesn't know enough C for this :(
<apeiros> your explanation makes sense to me
Cyther has quit [Quit: Leaving]
Cyther has joined #ruby
Cyther has quit [Client Quit]
rgb-one has quit [Ping timeout: 265 seconds]
Cyther has joined #ruby
casadei has quit [Remote host closed the connection]
dasher00 has quit [Read error: Connection reset by peer]
<seabasshunter> can anyone advise how to test a method on an object that initializes with an http request? I tried using webmock to stub out the request but I must've been doing it wrong because I can't make use any class methods without the instantiating in rspec under webmock (blocking http requests and all)
howdoi has quit [Quit: Connection closed for inactivity]
samuelkadolph has joined #ruby
iateadonut has left #ruby [#ruby]
rgb-one has joined #ruby
<seabasshunter> or maybe i've designed the class wrong. I'm wrapping a very simple api.
eminencehc has quit [Remote host closed the connection]
samuelkadolph has quit [Client Quit]
rdark has quit [Quit: leaving]
<drbrain> eam: strace says you're stuck in an EAGAIN loop
skade has joined #ruby
samuelkadolph has joined #ruby
samuelkadolph has quit [Client Quit]
<eam> drbrain: right
samuelkadolph has joined #ruby
voltalio has quit [Quit: Textual IRC Client: www.textualapp.com]
tvw has joined #ruby
<eam> what's happening is fork() returns EAGAIN (as expected - we limited to disallow additional processes)
<eam> what's unexpected is that ruby's fork is implemented with an infinite retry loop instead of raising on error
* drbrain nods
slayerja_ has joined #ruby
samuelkadolph has quit [Client Quit]
<eam> the ENOMEM case is similarly worrisome I think; it's *possible* that running the gc will free memory to allow a fork -- but probably unlikely in the general case
seabasshunter has quit [Quit: Page closed]
<eam> the whole clamping down on NPROC is just a synthetic way to hit this codepath
<drbrain> I'd have to poke at rb_gc, but I think that can raise NoMemoryError
<funkenstrahlen> hey, someone here with experience in oauth2? I am stuck here: https://github.com/kylejginavan/youtube_it/issues/253
slayerjain has quit [Ping timeout: 240 seconds]
rgb-one has quit [Ping timeout: 244 seconds]
<eam> possibly - the problem is, let's say you have a 10M ruby and it has no objects to free -- and some unrelated stuff is using all your memory. You probably want fork() to raise (ENOMEM, can't allocate another 10M) and not try to re-fork/re-gc in a tight loop
samuelkadolph has joined #ruby
atin_ has joined #ruby
<eam> likely it's not ruby itself that created the situation where fork won't work
platzhirsch has left #ruby [#ruby]
<eam> rb_gc wouldn't raise in that case (hey, nothing to free, no problem)
dasher00 has joined #ruby
Cyther_ has joined #ruby
skweek has quit [Remote host closed the connection]
greymeister has joined #ruby
dasher00 has quit [Max SendQ exceeded]
dasher00 has joined #ruby
dasher00 has quit [Max SendQ exceeded]
dasher00 has joined #ruby
casadei has joined #ruby
dasher00 has quit [Max SendQ exceeded]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> well yeah, but lemmie make a PR first
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
varunwachaspati has joined #ruby
dasher00 has joined #ruby
banjara has joined #ruby
dasher00 has quit [Max SendQ exceeded]
Cyther has quit [Ping timeout: 272 seconds]
banjara has quit [Changing host]
banjara has joined #ruby
dasher00 has joined #ruby
rgb-one has joined #ruby
atin_ has quit [Ping timeout: 272 seconds]
dasher00 has quit [Max SendQ exceeded]
ruurd has joined #ruby
dasher00 has joined #ruby
iamninja_ has quit [Ping timeout: 272 seconds]
dasher00 has quit [Max SendQ exceeded]
dasher00 has joined #ruby
dasher00 has quit [Max SendQ exceeded]
dasher00 has joined #ruby
Kendos-Kenlen has quit [Quit: Konversation terminated!]
dasher00 has quit [Max SendQ exceeded]
blackmesa has joined #ruby
blizzy has quit [Ping timeout: 246 seconds]
reset has quit [Quit: Leaving...]
devoldmx has joined #ruby
blizzy has joined #ruby
dasher00 has joined #ruby
arooni has joined #ruby
dmolina has quit [Quit: Leaving.]
poguez_ has joined #ruby
fantazo has quit [Ping timeout: 250 seconds]
slayerjain has joined #ruby
Kendos-Kenlen has joined #ruby
Porfa has joined #ruby
<Porfa> hello
kalusn has joined #ruby
solars has quit [Ping timeout: 244 seconds]
<Porfa> how can i add a string to each loop result?… for i.e.: ARRAY.split(',').each do puts end
skade has quit [Quit: Computer has gone to sleep.]
<Porfa> ok this prints the results, but i want to print <li> before each and </li> after each
slayerja_ has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 260 seconds]
devoldmx has quit [Ping timeout: 246 seconds]
<shevy> simply add it?
kalusn has quit [Client Quit]
southpawlar has joined #ruby
jobewan has joined #ruby
eminencehc has joined #ruby
<shevy> you print your string via print so change the string the way you want to have it :) at worst you can do: print '<li>',line,'</li>'
baweaver has joined #ruby
havenwood has joined #ruby
dfockler has joined #ruby
<pipework> String interpolation?
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
jud has joined #ruby
jud has joined #ruby
slayerja_ has joined #ruby
rgb-one has quit [Ping timeout: 250 seconds]
InternetFriend has joined #ruby
skweek has joined #ruby
bugrum has quit [Read error: Connection reset by peer]
_djbkd has joined #ruby
skweek has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
<shevy> I am sure Porfa will tackle his problem skillfully
slayerjain has quit [Ping timeout: 265 seconds]
<Porfa> hahah yeah
<Porfa> I'm already on it, thank you for the tip lol
<eam> did some digging on `` behavior, I wonder if this is inherited from perl (it loops forever on EAGAIN). Python raises OSError:
<dfockler> is there a way to skip the first element in an each loop?
<Porfa> just wondering why when i put that loop into a variable, my var output is still an array and not a string as i want
<dfockler> ahh #drop nvm
<Porfa> or, wondering how i can put the loop output into a string
`tim` has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
slayerjain has joined #ruby
blaxter has quit [Ping timeout: 240 seconds]
apt-get has joined #ruby
slayerja_ has quit [Ping timeout: 268 seconds]
_djbkd has quit [Remote host closed the connection]
DLSteve has quit [Quit: Leaving]
krisquigley has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ericjphillips has quit [Quit: Leaving.]
<Porfa> hello
southpawlar has quit [Ping timeout: 244 seconds]
_djbkd has joined #ruby
_djbkd has quit [Read error: Connection reset by peer]
_djbkd has joined #ruby
<Porfa> why I'm i getting the goddamn old results as if there's no damn loop going on
ledestin has joined #ruby
redondo has joined #ruby
cassioscabral has joined #ruby
<A124> Actually the comments are better then the post.
InternetFriend has joined #ruby
krisquigley has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
tomphp has joined #ruby
blackjid has quit [Max SendQ exceeded]
_djbkd has quit [Remote host closed the connection]
nettoweb has quit [Ping timeout: 265 seconds]
slayerja_ has joined #ruby
_djbkd has joined #ruby
ericjphillips has joined #ruby
nettoweb has joined #ruby
_djbkd has joined #ruby
<shevy> Porfa show the code you have on a pastie
NeverDie has joined #ruby
blackjid has joined #ruby
Xeago has quit [Remote host closed the connection]
nettoweb has quit [Client Quit]
ghostlines has quit [Quit: Textual IRC Client: www.textualapp.com]
slayerjain has quit [Ping timeout: 246 seconds]
<tubbo> ehth77: love it
saddad has quit [Ping timeout: 244 seconds]
dome22xl has quit [Ping timeout: 246 seconds]
<ehth77> tubbo: nice b8. xP
<tubbo> i got this one neat trick
<tubbo> make u a bullionaire
<Porfa> shevy: its just 2 lines
<Porfa> ALQDET= "2 Posições,5 Peças,Sem fio,Tampa de pó,Tampa transparente,Tipo de bateria AA,Pilha não incluída"
<Porfa> BULLET = ALQDET.split(',').each do |detalhe| print '<li>',detalhe,'</li>' end
<Porfa> it prints <li>2 Posições</li> … wtv.. but when i call "BULLET" it prints ALQDET
yfeldblum has joined #ruby
SenpaiSilver has joined #ruby
pruby has joined #ruby
<shevy> yeah the output was already printed before
momomomomo has joined #ruby
<shevy> BULLET = ALQDET.split(',').map {|line| '<li>'+line+'</li>' }
Ademan2 has joined #ruby
<Porfa> where can i read about "map" ? what is "map" ?
southpawlar has joined #ruby
<Porfa> it looks very intresting
TheHodge has quit [Quit: Connection closed for inactivity]
<Porfa> thank you shevy
swgillespie has joined #ruby
<joufflu> ahoi hoi
<apeiros> usually index
dasher00 has quit [Read error: Connection reset by peer]
<joufflu> makes sense...hmmm
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
momomomomo has quit [Client Quit]
snockerton has quit [Quit: Leaving.]
<Ademan2> this is a dumb question, but I'm not familiar with ruby. I'm trying to help a friend with some homework. one piece of the given code is @httpd_hash['ScriptAlias'[path]] path will always be something like "/foo/" so how is this not equivalent to @httpd_hash[nil] ?
dstarh has quit [Read error: Connection reset by peer]
<shevy> >> 'ScriptAlias'[/foo/]
<ruboto> shevy # => nil (https://eval.in/440905)
<shevy> there we go!
greymeister has quit [Ping timeout: 268 seconds]
greymeister_ has joined #ruby
_djbkd has quit [Remote host closed the connection]
swgillespie has quit [Ping timeout: 252 seconds]
<Ademan2> well that matches what I expected, but the code is supposed to retrieve a piece of data. as you might expect, always using nil as the key is not desired behavior, but that's part of the given code (AFAIK it is supposed to remain unmodified)
evanjs has quit [Remote host closed the connection]
troulouliou_div2 has quit [Quit: Leaving]
reset has joined #ruby
<shevy> yeah you got a sure nil there
southpawlar has quit [Ping timeout: 240 seconds]
<to_json> is the class 'Metaprogramming Ruby'? You could override [] on string
evanjs has joined #ruby
<Ademan2> *shrug* at least it's not my homework. .. I almost wonder if this is just a bug. they were given some code, and a big 'ol test suite, but it's not super thorough
wldcordeiro_ has quit [Quit: Konversation terminated!]
Coldblackice has joined #ruby
momomomomo has joined #ruby
<Ademan2> to_json: no it's some web class, they're actually writing an http server which is kind of neat
<adaedra> I'm back \o/
kirun has joined #ruby
<to_json> yeah asking the student then to determine that they should do something insane like that would be realllllyy shitty homework design
wldcordeiro_ has joined #ruby
Cyther_ has quit [Quit: Leaving]
<to_json> academia is so awkward. if that was job interview homework what I'd be looking for is for the prospect to write me a bug report
slayerjain has joined #ruby
_djbkd has joined #ruby
Cyther has joined #ruby
<to_json> but they might actually expect the student to Do What They Mean
snockerton has joined #ruby
_djbkd has quit [Remote host closed the connection]
kurzweil has joined #ruby
_djbkd has joined #ruby
<Ademan2> yeah part of the problem may be that I'm getting things second hand through someone in way over their head. the cs department here has failed him utterly
Brando753 has quit [*.net *.split]
ytti has quit [*.net *.split]
soloone has quit [*.net *.split]
Brando753 has joined #ruby
<pruby> adaedra: Welcome back. Hey, I was wondering...why is the output random in https://eval.in/440913 if the first thread is joined first? :p
slayerja_ has quit [Ping timeout: 246 seconds]
soloone has joined #ruby
rushed has quit [Quit: rushed]
<adaedra> pruby: well, how does each thread takes a number?
chouhoulis has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rushed has joined #ruby
p0wn3d has quit [Ping timeout: 272 seconds]
<pruby> adaedra: I mean when we do threads.each { |thread| thread.join } the first thread is joined first so the output should always be "Thread 1" then "Thread 2" ?
<adaedra> Is the number you output the number of the thread?
chouhoul_ has joined #ruby
ehth77 has quit [Quit: WeeChat 1.2]
<pruby> adaedra: Yeah.
<adaedra> Sure? :)
codenapper has joined #ruby
stamina has quit [Ping timeout: 244 seconds]
<Ademan2> anywho thanks folks
<adaedra> oh wait\
<pruby> The output is "Thread 1" then "Thread 2" sometimes and sometimes it's "Thread 2" then "Thread 1"
<adaedra> you changed code, my bad
Ademan2 has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
<nofxx> pruby, it's not syncronous
<nofxx> there's no way to know which will end first, supposing the same code is running
<pruby> but we're joining the first thread first? The main thread should wait for the first thread to be completed first?
ericjphillips has quit [Quit: Leaving.]
<adaedra> pruby: processor may not treat the code you give to it in the order with threads.
dasher00 has joined #ruby
finisherr has joined #ruby
<adaedra> so it is possible that the code from the second thread get picked up by the processor before the first.
dasher00 has quit [Max SendQ exceeded]
saddad has joined #ruby
<pipework> pruby: If I'm understanding you correctly, you'll have the main thread wait until the first completes, yes.
ytti has joined #ruby
codenapper has quit [Client Quit]
<pipework> Though the others after the first thread might be complete.
<adaedra> remember, code execution starts when you create the thread, not join it.
chouhoulis has quit [Ping timeout: 250 seconds]
x-wing has joined #ruby
dasher00 has joined #ruby
parduse has quit []
agent_white has joined #ruby
southpawlar has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
tomphp has joined #ruby
Xeago has joined #ruby
DoubleMalt has joined #ruby
<pruby> Okay say we have two threads. Both downloading a file from the internet. What exactly happens when we call first_thread.join and then we call second_thread.join immediately afterwards?
Xeago has quit [Remote host closed the connection]
<adaedra> the first call will wait for first_thread to terminate.
<pipework> It waits for the first thread to join.
<adaedra> then, the second call, will wait for the second thread.
<pipework> Then after it does, it waits for the next thread to join.
<jhass> however both threads are running in parallel
kadoppe has quit [Ping timeout: 255 seconds]
<pipework> Read the docs for Thread#join
<jhass> the second thread might even finish while you wait on the first one and the join on the second thread will be a noop
<pruby> so when we join the first thread, the second file is also being downloading without me having to join it?
<pipework> jhass: As parallel as it can, yeah.
<pipework> pruby: If that code is running in that thread, yes.
<jhass> pipework: download sounds quite IOish, so even in ruby ;)
kadoppe has joined #ruby
<pipework> jhass: Really depends on the implementation, but I get you.
mallu has joined #ruby
<jhass> pruby: yes, though it might be aborted if it isn't finished when the main thread exits
Xeago has joined #ruby
<jhass> that's why you join, to keep the main thread alive while the other threads run
<mallu> I know I can compare two arrays with - operator. Is it possible to display only the difference if both arrays are not same?
<jhass> (or to wait for them to finish/wait for their results)
<adaedra> pruby: the code in the thread you create is running (well, available for the processor to pick up, actually) as soon as you create it.
<jhass> mallu: r = a - b; puts r unless r.empty? # use better variable names fitting your domain
<mallu> ok.. let me try that
nettoweb has joined #ruby
<jhass> mallu: that if b is a superset of a, r will be empty too
<jhass> *note that
<pruby> When I iterate over some threads and join, does the main thread get blocked each time Thread#join is called on a thread?
<adaedra> pruby: please note that my earlier analogy was kinda idealized.
<jhass> pruby: each time the thread you join is still alive
NeverDie has quit [Quit: http://radiux.io/]
<adaedra> pruby: yes, unless the thread already finished its job.
subshad has quit [Ping timeout: 250 seconds]
moeabdol has quit [Quit: WeeChat 1.3]
x-wing has quit [Quit: Leaving]
<adaedra> a thread may finish early; through it still needs to be joined to the parent thread to be truly ended.
jackjackdripper has joined #ruby
<pruby> Is there any ruby-specific guide on threads that I can use? I am reading Programming Ruby and the bit on threads feels a bit too complicated for me...
Rollabunna has joined #ruby
<jhass> pruby: maybe skip the topic until you truly need it
<jhass> it massively helps to have a concrete problem to solve
<pipework> If you're just curious.
southpawlar has quit [Ping timeout: 250 seconds]
<pipework> I've read all of jstorimer's books so far.
polysics has joined #ruby
NeverDie has joined #ruby
n008f4g_ has joined #ruby
slayerjain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
slayerjain has joined #ruby
Rollabunna has quit [Ping timeout: 255 seconds]
slayerjain has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
theery has quit []
pruby_ has joined #ruby
<pruby_> Are threads used in Rails?
orangeappled has joined #ruby
pruby has quit [Ping timeout: 246 seconds]
<shevy> grep through it man
<shevy> grep -r Thread
<shevy> or search via google
<jhass> pruby_: I believe not directly, but there are several application servers that use threads as well as background job systems and similar things
<Papierkorb> shevy: the_silver_searcher's ag tool to the rescue!
<nofxx> ag rocks
yqt has joined #ruby
bb010g has joined #ruby
parduse has joined #ruby
<pruby_> jhass: So if I want to get into rails-dev, is there an immediate need for me to know about em?
<jhass> no
DroidBurgundy has joined #ruby
momomomomo has joined #ruby
<Papierkorb> nofxx: "So I have this grep line. it's pretty fast, look, it searches this projects' 50k lines in only 2 seconds!" *me typing the same query but using ag* took less than a second "Uh how was that package called again?"
pruby_ has left #ruby [#ruby]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
but3k4_ has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
<eam> Papierkorb: on OSX?
<Papierkorb> eam: Thank god no.
<eam> OSX grep is super slow - gnu grep is on par with ag
tomphp has joined #ruby
but3k4 has quit [Ping timeout: 250 seconds]
<Papierkorb> eam: your drive must be super slow
<Papierkorb> it's magnitudes faster
DroidBur_ has quit [Ping timeout: 260 seconds]
jschmid has joined #ruby
<Papierkorb> let alone for the better output formatting it's worth using
jschmid has quit [Remote host closed the connection]
moeabdol has joined #ruby
<eam> it's magnitudes faster than BSD grep
<eam> (like, one)
cassioscabral has quit [Quit: cassioscabral]
<eam> Papierkorb: if my drive was slow, the difference would be more pronounced -- not less :)
<eam> I tested on an SSD fwiw
<Papierkorb> Same here. much faster on every project I ever used it in. Always on fast SSDs
<Papierkorb> Who still dev's on HDDs anyway?
<eam> ag and gnu grep should roughly have the same behavior anyway
<eam> this is in an optimal case, of course. BSD grep will beat both in corner cases
tw1sted has quit [Remote host closed the connection]
MyMind has joined #ruby
<eam> (because ag and gnu grep both make tradeoffs to slightly increase the common case at great expense to corner cases)
phutchins1 has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
naftilos76 has joined #ruby
marens_ has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
nopc0de has quit [Ping timeout: 246 seconds]
aibot has quit [Ping timeout: 246 seconds]
snapcase has quit [Ping timeout: 246 seconds]
twohlix has quit [Ping timeout: 246 seconds]
jsrn has quit [Ping timeout: 246 seconds]
Sembei has quit [Ping timeout: 246 seconds]
marens has quit [Ping timeout: 246 seconds]
Anti-Pizza has quit [Quit: Quit]
lele has quit [Ping timeout: 240 seconds]
aibot has joined #ruby
j416 has quit [Ping timeout: 240 seconds]
Fraeon has quit [Ping timeout: 240 seconds]
_el_fer_ has quit [Quit: Leaving]
twohlix has joined #ruby
twohlix has quit [Excess Flood]
nopc0de has joined #ruby
Fraeon has joined #ruby
twohlix has joined #ruby
twohlix has quit [Excess Flood]
jsrn has joined #ruby
twohlix has joined #ruby
DroidBurgundy has quit []
hanmac has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
drptbl has joined #ruby
j416 has joined #ruby
lele has joined #ruby
maletor has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
snapcase has joined #ruby
pushpak has joined #ruby
agent_meerkat has quit [Ping timeout: 272 seconds]
skade has quit [Quit: Computer has gone to sleep.]
lkba has joined #ruby
Soda has quit [Remote host closed the connection]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
p0wn3d has joined #ruby
mjuszczak has quit []
podman has joined #ruby
momomomomo has quit [Quit: momomomomo]
codecop has quit [Quit: Išeinu]
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
tw1sted has joined #ruby
stamina has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<JoshL> Is there a better / faster / more idiomatic way to bisect an array of objects than this: https://gist.github.com/jlindsey/0d0f298d9e76f9b80a17
mjuszczak has joined #ruby
rodfersou has quit [Quit: leaving]
finisherr has quit [Quit: finisherr]
tw1sted has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 240 seconds]
skade has joined #ruby
Porfa has quit [Quit: Porfa]
baweaver has quit [Remote host closed the connection]
<drbrain> JoshL: Array#partition
ruurd has joined #ruby
allomov has quit [Remote host closed the connection]
<drbrain> if you have more than two categories, #group_by
Xeago has quit [Remote host closed the connection]
rodfersou has joined #ruby
<JoshL> drbrain: Ah, thanks. I was looking at the Array class docs instead of the Enumerable docs
yfeldblum has quit [Ping timeout: 240 seconds]
bakedb has quit [Ping timeout: 255 seconds]
skade has quit [Client Quit]
shadoi has joined #ruby
tw1sted has joined #ruby
momomomomo has joined #ruby
piotrj has joined #ruby
Kendos-Kenlen has quit [Quit: Konversation terminated!]
tw1sted has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 244 seconds]
tw1sted has joined #ruby
Uranio-235 has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yardenbar has quit [Ping timeout: 265 seconds]
howdoi has joined #ruby
pandaant has quit [Remote host closed the connection]
unreal_ has joined #ruby
iamninja_ has joined #ruby
gustav__ has joined #ruby
momomomomo has joined #ruby
unreal has quit [Ping timeout: 246 seconds]
parduse is now known as Guest28151
InternetFriend has joined #ruby
Guest28151 has quit [Ping timeout: 240 seconds]
icbm has quit [Max SendQ exceeded]
pardusf has joined #ruby
k3asd` has joined #ruby
cassioscabral has joined #ruby
iamninja_ has quit [Ping timeout: 240 seconds]
gustav__ has quit [Ping timeout: 240 seconds]
apt-get has quit [Read error: Connection reset by peer]
BTRE has quit [Quit: Leaving]
apt-get has joined #ruby
sagittarian|2 has quit [Ping timeout: 265 seconds]
sagittarian|2 has joined #ruby
BTRE has joined #ruby
skullcrasher_ has quit [Remote host closed the connection]
Uranio-235 has quit [Quit: Page closed]
momomomomo has quit [Quit: momomomomo]
Eiam_ has joined #ruby
nofxx has quit [Read error: Connection timed out]
_djbkd has quit [Remote host closed the connection]
nofxx has joined #ruby
tvw has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
_djbkd has joined #ruby
saddad has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
Rickmasta has joined #ruby
krz has quit [Quit: WeeChat 1.2]
firstdayonthejob has joined #ruby
danieli has quit [Remote host closed the connection]
dome22xl has joined #ruby
pawnbox has quit [Remote host closed the connection]
p0wn3d has quit [Ping timeout: 272 seconds]
pawnbox has joined #ruby
ItSANgo has quit [Quit: Leaving...]
symm- has joined #ruby
TomyLobo has quit [Ping timeout: 272 seconds]
varunwachaspati has quit [Quit: Connection closed for inactivity]
_djbkd has quit [Ping timeout: 264 seconds]
chipotle has joined #ruby
aaeron has joined #ruby
jschmid has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
danieli has joined #ruby
Rickmasta has quit [Remote host closed the connection]
but3k4_ has quit [Ping timeout: 265 seconds]
dirtyonekanobi has joined #ruby
Rickmasta has joined #ruby
Gachr has left #ruby ["Leaving"]
pawnbox has quit [Ping timeout: 240 seconds]
evanjs has quit [Remote host closed the connection]
jcromartie has joined #ruby
jcromartie has quit [Max SendQ exceeded]
jcromartie has joined #ruby
dravine has quit [Ping timeout: 256 seconds]
gustav__ has joined #ruby
gustav__ has quit [Remote host closed the connection]
gustav__ has joined #ruby
immucahit has joined #ruby
krisquigley has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
fmcgeough has joined #ruby
eminencehc has quit [Remote host closed the connection]
fastAndSlow has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
dravine has joined #ruby
_djbkd has joined #ruby
karapetyan has joined #ruby
krisquigley has quit [Ping timeout: 256 seconds]
Limix has joined #ruby
immucahit has quit [Quit: Leaving]
ItSANgo has joined #ruby
baweaver has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
fastAndSlow has quit [Quit: Lost terminal]
iceyec has quit [Remote host closed the connection]
iceyec has joined #ruby
emmesswhy has joined #ruby
iceyec has quit [Remote host closed the connection]
FernandoBasso has quit [Quit: Leaving]
Porfa has joined #ruby
bakedb has joined #ruby
iceyec has joined #ruby
syath has quit [Quit: WeeChat 1.2]
skade has joined #ruby
InternetFriend has quit [Quit: Textual IRC Client: www.textualapp.com]
InternetFriend has joined #ruby
eminencehc has joined #ruby
otacon- has joined #ruby
emmesswhy has quit [Client Quit]
dome22xl has quit [Ping timeout: 264 seconds]
bklane has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tenderlove has quit [Quit: Leaving...]
iceyec has quit [Read error: No route to host]
IceyEC_ has joined #ruby
opensource_ninja has joined #ruby
ericjphillips has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
solocshaw has joined #ruby
fastAndSlow has joined #ruby
skade has quit [Client Quit]
baweaver has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sagittarian|2 has quit [Ping timeout: 246 seconds]
ItSANgo has quit [Quit: Leaving...]
atomical has quit [Ping timeout: 255 seconds]
banjara has quit [Read error: Connection reset by peer]
banjara has joined #ruby
baweaver has quit [Remote host closed the connection]
sagittarian|2 has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie has quit [Quit: http://radiux.io/]
Limix has quit [Read error: Connection reset by peer]
sepp2k has quit [Quit: Leaving.]
xet7 has quit [Quit: Leaving]
eminencehc has quit [Remote host closed the connection]
VeryBewitching has joined #ruby
<dorei> is there some fast/magic way to convert an object into json?
<Authenticator> A Hash, yes. Otherwise, no because that's pretty broad.
bruno- has joined #ruby
ivanskie has joined #ruby
<dorei> okie
DoubleMalt has quit [Remote host closed the connection]
<dorei> is there a fast/magic way to produce a hash from an objects ivars? ivars name will be the keys and ivars values will be the values
yfeldblum has joined #ruby
<darix> dorei: provide a .to_hash method for your class
<dorei> yes, a #to_h but i dont want to type all those ivars names
ItSANgo has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jcromartie has joined #ruby
NeverDie has joined #ruby
maletor has quit []
NeverDie has quit [Client Quit]
cassioscabral has joined #ruby
cassioscabral has quit [Client Quit]
renderful has quit [Remote host closed the connection]
<Authenticator> dorei: x.instance_variables.map {|n| [n,x.instance_variable_get(n)] }
chouhoul_ has quit [Remote host closed the connection]
<Authenticator> or better: def x.to_hash ; instance_variables.map {|n| [n, instance_variable_get(n)] } ; end
ruurd has joined #ruby
<dorei> i see, thanx a lot :)
odigity2 has joined #ruby
<VeryBewitching> dorei: After that, you can require 'json' and add: def to_json; to_hash.to_json; end
<odigity2> Is there a way to enable IRB history in ruby code rather than via ~/.irbrc? I'm using Docker, and it's not convenient to recreate ~/.irbrc every time I create a container.
<VeryBewitching> Instead of calling x.to_hash.to_json
<dorei> VeryBewitching: i think .to_json automatically calls to_h if it exists
jenrzzz has joined #ruby
Rollabunna has joined #ruby
wildlander has joined #ruby
but3k4 has joined #ruby
NeverDie has joined #ruby
<VeryBewitching> dorei: Nope.
<VeryBewitching> For a test class with to_h defined, I get "\"#<Test:0x007f7b83061a48>\""
<jhass> VeryBewitching: dorei define as_json and return a hash though, not to_json
<jhass> mmh, or was that rails magic?
eminencehc has joined #ruby
ericjphillips has quit [Quit: Leaving.]
<VeryBewitching> jhass: I don't know, I hadn't ever done it without Rails, I had to Google for plain Ruby solution ;)
<jhass> meh, looks like it, how annoying
Rollabunna has quit [Ping timeout: 246 seconds]
krisquigley has joined #ruby
JDiPierro has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
Xeago has joined #ruby
k3asd` has quit [Ping timeout: 265 seconds]
asxbr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor has joined #ruby
Jammyhammy|Work has quit [Read error: Connection reset by peer]
k3asd` has joined #ruby
sepp2k has joined #ruby
bmurt has quit []
prestorium has quit [Quit: Leaving]
renderful has joined #ruby
arup_r has quit [Quit: Leaving]
krisquigley has quit [Ping timeout: 256 seconds]
eminencehc has joined #ruby
pheuko has joined #ruby
<TTilus> odigity2: why not build an image which has ~/.irbrc? (base on the image you are using now and only add that .irbrc)
dasher00 has quit [Ping timeout: 260 seconds]
polysics has quit [Read error: Connection reset by peer]
mjuszczak has quit []
polysics has joined #ruby
polysics has quit [Read error: Connection reset by peer]
nopc0de is now known as j2k_
sperant has joined #ruby
polysics has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
danieli has quit [Ping timeout: 255 seconds]
bklane has quit [Read error: Connection reset by peer]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mia has joined #ruby
Mia has joined #ruby
bklane has joined #ruby
Axy has quit [Ping timeout: 255 seconds]
ldnunes has quit [Quit: Leaving]
drewvanstone has joined #ruby
Xeago has quit [Remote host closed the connection]
polysics has quit [Read error: Connection reset by peer]
<odigity2> TTilus, I thought of that, but that seems like a pain just to get one little file in, and I'd have to upload it to a registry if there are other developers on the project.
workmad3_ has quit [Ping timeout: 240 seconds]
Guest65 has quit [Max SendQ exceeded]
dfockler has quit [Remote host closed the connection]
<odigity2> TTilus, lastly, this is not a file that's needed in production. I ended up solving the problem by having my bin/console script generate the .irbrc file if it's not already there. (I only use bin/console for dev, so the file will never get created in production)
polysics has joined #ruby
skade has joined #ruby
FernandoBasso has joined #ruby
leafybasil has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
k3asd` has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
last_staff has quit [Quit: last_staff]
mary5030 has quit [Remote host closed the connection]
polysics has quit [Read error: Connection reset by peer]
spcmastertim has quit [Quit: Leaving]
danieli has joined #ruby
mary5030 has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby
banjara has quit [Read error: Connection reset by peer]
Swappticon has joined #ruby
banjara has joined #ruby
danieli has quit [Max SendQ exceeded]
danieli has joined #ruby
dasher00 has joined #ruby
dasher00 has quit [Max SendQ exceeded]
kyle___ is now known as kyle__
danieli has quit [Read error: Connection reset by peer]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dasher00 has joined #ruby
immucahit has joined #ruby
icole has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
decoponio has quit [Quit: Leaving...]
eminencehc has quit [Remote host closed the connection]
sagittarian|2 has quit [Ping timeout: 246 seconds]
gustav__ has quit [Remote host closed the connection]
mjuszczak has joined #ruby
gustav_ has joined #ruby
pwnd_nfsw has quit [Ping timeout: 246 seconds]
kiper has joined #ruby
Porfa has quit [Quit: Porfa]
charliesome has joined #ruby
roxtrongo has joined #ruby
tcopeland has quit [Ping timeout: 244 seconds]
sepp2k1 has joined #ruby
fastAndSlow has quit [Quit: leaving]
iamninja_ has joined #ruby
mjuszczak has quit [Client Quit]
mjuszczak has joined #ruby
gustav_ has quit [Ping timeout: 256 seconds]
workmad3_ has joined #ruby
havenwood has quit [Ping timeout: 250 seconds]
sepp2k has quit [Ping timeout: 265 seconds]
<nofxx> Papierkorb, raid 0 ssd here, ag is way faster. linux grep*
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
sagittarian|2 has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
mjuszczak has quit [Client Quit]
banjara has quit [Quit: Leaving.]
to_json has quit [Ping timeout: 250 seconds]
to_json has joined #ruby
ngscheurich has quit [Ping timeout: 240 seconds]
apt-get has quit [Remote host closed the connection]
bkulbida has quit [Ping timeout: 268 seconds]
banjara has joined #ruby
mjuszczak has joined #ruby
Eiam_ has joined #ruby
charliesome has quit [Ping timeout: 260 seconds]
workmad3_ has quit [Ping timeout: 246 seconds]
dravine has quit [Ping timeout: 250 seconds]
dravine has joined #ruby
kirun has quit [Quit: Client exiting]
orangeappled has quit [Ping timeout: 246 seconds]
deavid has quit [Ping timeout: 268 seconds]
skade has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
dasher00 has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
yqt has joined #ruby
baweaver has joined #ruby
charliesome has joined #ruby
phutchins1 has joined #ruby
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
deavid has joined #ruby
polysics has joined #ruby
bkulbida has joined #ruby
niko has quit [Read error: Connection reset by peer]
polysics has quit [Client Quit]
pwnd_nfsw has joined #ruby
jamesaxl has joined #ruby
baweaver has quit [Ping timeout: 244 seconds]
closer has quit [Ping timeout: 272 seconds]
Stalkr_ has quit [Ping timeout: 246 seconds]
sperant has quit [Read error: Connection reset by peer]
tomchapin has joined #ruby
otacon- has quit [Ping timeout: 252 seconds]
Alayde_ has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
n008f4g_ has quit [Ping timeout: 246 seconds]
dmolina has joined #ruby
closer has joined #ruby
Alayde has quit [Ping timeout: 250 seconds]
Paradox has quit [Ping timeout: 252 seconds]
danieli has joined #ruby
dfockler has joined #ruby
banjara has quit [Read error: Connection reset by peer]
banjara has joined #ruby
dmolina has quit [Client Quit]
danieli has quit [Read error: Connection reset by peer]
Porfa has joined #ruby
devoldmx has joined #ruby
Paradox has joined #ruby
greymeister has joined #ruby
greymeister_ has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby
pwnd_nfsw has quit [Ping timeout: 240 seconds]
GT|away has quit [Quit: Textual IRC Client: www.textualapp.com]
to_json has quit [Ping timeout: 244 seconds]
beast has quit [Quit: Leaving]
snockerton1 has joined #ruby
dhollinger has quit [Quit: Leaving]
tuxero has quit [Quit: tuxero]
tuxero has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
ramfjord has joined #ruby
snockerton has quit [Ping timeout: 265 seconds]
Musashi007 has quit [Quit: Musashi007]
circ-user-HSXxm has joined #ruby
circ-user-HSXxm is now known as duddik
doddok has quit [Quit: Leaving]
<ramfjord> Maybe someone on here has dealt with CSV's and knows the answer to this - it's been bothering me for a while. I'm initializing a CSV with CSV.new(file, headers: :first_row, return_headers: false)
<ramfjord> despite the return_headers: false, I still have to call csv.shift once to load the headers
spider-mario has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ramfjord> I've looked all over this documentation (http://ruby-doc.org/stdlib-2.2.2/libdoc/csv/rdoc/CSV.html#method-c-new) and it says
<ramfjord> :return_headers
<ramfjord> When false, header rows are silently swallowed. If set to true, header rows are returned in a CSV::Row object with identical headers and fields (save that the fields do not go through the converters).
duddik has quit [Remote host closed the connection]
<ramfjord> it's not a big deal, but a constant minor source of irritation
duddik has joined #ruby
duddik has quit [Remote host closed the connection]
<ramfjord> using ruby 2.2.2 standard CSV library
scripore has joined #ruby
doddok has joined #ruby
<joufflu> noob question: if n < 0 return nil #Question: What does the "nil" mean? is it the same as null ?
d10n-work has quit [Quit: Connection closed for inactivity]
VeryBewitching has quit [Remote host closed the connection]
<ramfjord> joufflu: yes
<joufflu> ramfjord, k thanks
<ramfjord> though this is ruby, so it is technically an object
S_Walker has joined #ruby
Zackio has quit [Read error: Connection reset by peer]
Zackio has joined #ruby
VeryBewitching has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
victortyau has quit [Quit: Leaving]
bigbadbear has quit [Ping timeout: 246 seconds]
ruurd has quit [Quit: ZZZzzz…]
pwnd_nfsw has joined #ruby
dirtyonekanobi has quit [Quit: Connection closed for inactivity]
banister has quit [Ping timeout: 240 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
unreal has joined #ruby
mjuszczak has quit []
unreal_ has quit [Ping timeout: 246 seconds]
quazimodo has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
eminencehc has joined #ruby
jenrzzz has joined #ruby
unreal has quit [Ping timeout: 264 seconds]
dirtyonekanobi has joined #ruby
rbennacer has joined #ruby
Azure has quit [Quit: Oops.]
Azure has joined #ruby
devdazed has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
stamina has quit [Ping timeout: 246 seconds]
nettoweb has joined #ruby
gustav_ has joined #ruby
piotrj has quit [Remote host closed the connection]
umgrosscol has quit [Ping timeout: 244 seconds]
<shevy> it has awesome methods
<shevy> >> nil.nil?
<ruboto> shevy # => true (https://eval.in/440969)
scripore has quit [Quit: This computer has gone to sleep]
icole` has joined #ruby
workmad3_ has joined #ruby
inteq has quit [Quit: Leaving]
<adaedra> >> def nil.nil?; false; end; nil.nil? # Where is your god now?
<ruboto> adaedra # => false (https://eval.in/440970)
gustav_ has quit [Ping timeout: 246 seconds]
dravine_ has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
[k- has quit [Ping timeout: 250 seconds]
nettoweb has quit [Ping timeout: 240 seconds]
hooper1 has left #ruby [#ruby]
icole has quit [Ping timeout: 250 seconds]
dravine has quit [Ping timeout: 244 seconds]
dravine_ is now known as dravine
bmurt has joined #ruby
charliesome has joined #ruby
rbowlby has joined #ruby
greymeister has quit [Quit: greymeister]
workmad3_ has quit [Ping timeout: 255 seconds]
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
baweaver has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
mxrguspxrt has quit [Remote host closed the connection]
Musashi007 has joined #ruby
Pathfinder has quit [Ping timeout: 250 seconds]
northfurr has joined #ruby
skade has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shadoi has quit [Ping timeout: 240 seconds]
firstdayonthejob has quit [Ping timeout: 240 seconds]
bklane has quit [Remote host closed the connection]
havenwood has joined #ruby
snockerton1 has quit [Quit: Leaving.]
snockerton has joined #ruby
bklane has joined #ruby
sp_ has quit [Quit: Reconnecting]
sp_ has joined #ruby
rbowlby has quit [Remote host closed the connection]
tcopeland has joined #ruby
NeverDie has joined #ruby
bkulbida has quit [Quit: Lost terminal]
blackmesa has quit [Quit: WeeChat 1.3]
Rollabunna has joined #ruby
cassioscabral has joined #ruby
dfockler has quit [Remote host closed the connection]
pwnd_nfsw has quit [Remote host closed the connection]
shadoi has joined #ruby
vdamewood has joined #ruby
bootstrappm has joined #ruby
<joufflu> noob question: def a(b), #how do you guys read that in plain English or a catchy way to remember it ?
ta has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 256 seconds]
<adaedra> Define a method a which takes one argument, b
<joufflu> adeponte, thank you :)
deject3d has joined #ruby
pwnd_nsfw has joined #ruby
<adaedra> so close, yet so far away.
bklane has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 240 seconds]
nahtnam has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
tvw has quit []
dome22xl has joined #ruby
Alayde_ has quit [Ping timeout: 256 seconds]
deject3d has quit [Quit: Computer has gone to sleep.]
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
InternetFriend has joined #ruby
immucahit has quit [Quit: Leaving]
charliesome has quit [Read error: Connection reset by peer]
Flying_Squirrel has joined #ruby
cschneid_ has quit [Remote host closed the connection]
xet7 has joined #ruby
charliesome has joined #ruby
<shevy> yeah
<shevy> Paris
Musashi007 has quit [Quit: Musashi007]
northfurr has quit [Quit: northfurr]
northfurr has joined #ruby
bigkevmcd has quit [Ping timeout: 256 seconds]
sanjayu has joined #ruby
bruno- has quit [Quit: Lost terminal]
FrankD has joined #ruby
bruno- has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
mwlang has quit [Quit: mwlang]
neanderslob has quit [Read error: Connection reset by peer]
neanderslob has joined #ruby
jcromartie has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
northfurr has quit [Quit: northfurr]
Xeago has quit [Remote host closed the connection]
rodfersou has quit [Quit: leaving]
lxsameer has quit [Quit: Leaving]
bklane has joined #ruby
millerti has joined #ruby
deject3d has joined #ruby
pwnd_nsfw has quit [Ping timeout: 246 seconds]
Jardayn has quit [Quit: Leaving]
RegulationD has quit [Remote host closed the connection]
baweaver has joined #ruby
asxbr has joined #ruby
eminencehc has quit [Remote host closed the connection]
bigkevmcd has joined #ruby
symm- has quit [Quit: Leaving...]
gustav_ has joined #ruby
nettoweb has joined #ruby
p0wn3d has joined #ruby
bronson has quit [Remote host closed the connection]
eminencehc has joined #ruby
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
jobewan has quit [Quit: Leaving]
Azure has quit [Excess Flood]
JDiPierro has joined #ruby
gustav_ has quit [Ping timeout: 264 seconds]
Flying_Squirrel has quit [Ping timeout: 272 seconds]
sagittarian|2 has quit [Ping timeout: 240 seconds]
quazimodo has joined #ruby
Azure has joined #ruby
tw1sted has quit [Changing host]
tw1sted has joined #ruby
sagittarian|2 has joined #ruby
bigbadbear has joined #ruby
EllisTAA has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
deject3d has quit [Quit: Computer has gone to sleep.]
rcvalle has quit [Quit: rcvalle]
tmtwd has joined #ruby
devoldmx has joined #ruby
JDiPierro has quit [Remote host closed the connection]
roxtrongo has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
sdwrage has joined #ruby
Swappticon has joined #ruby
Ropeney has joined #ruby
bklane has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 244 seconds]
bklane has joined #ruby
Eiam_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
Newtonianb has quit [Ping timeout: 256 seconds]
sanjayu has quit [Ping timeout: 246 seconds]
rbennacer has joined #ruby
northfurr has joined #ruby
`tim` has joined #ruby
Eiam_ has quit [Client Quit]
sagittarian|2 has quit [Ping timeout: 255 seconds]
amoeba has joined #ruby
Swappticon has quit [Quit: Textual IRC Client: www.textualapp.com]
sagittarian|2 has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
northfurr has quit [Client Quit]
northfurr has joined #ruby
maletor has quit []
moted has quit []
nofxx has quit [Ping timeout: 244 seconds]
dome22xl has quit [Ping timeout: 246 seconds]
nofxx has joined #ruby
benlieb has quit [Quit: benlieb]
maletor has joined #ruby
moted has joined #ruby
aerozeppelin has quit [Remote host closed the connection]
northfurr has quit [Client Quit]
benlieb has joined #ruby
iamninja_ has quit [Read error: Connection reset by peer]
dopie has quit [Quit: This computer has gone to sleep]
iamninja_ has joined #ruby
renderfu_ has joined #ruby