apeiros changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
eljimbo has joined #ruby
tubuliferous has quit [Ping timeout: 244 seconds]
Robtop__ has quit [Ping timeout: 245 seconds]
nettoweb has joined #ruby
GodFather has quit [Quit: Ex-Chat]
Azure has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
Azure has joined #ruby
jaykill33 has joined #ruby
solocshaw has quit [Ping timeout: 256 seconds]
jaykill has quit [Ping timeout: 260 seconds]
LoneHermit has joined #ruby
GodFather has quit [Remote host closed the connection]
rcvalle has quit [Quit: rcvalle]
LoneHermit has quit [Ping timeout: 245 seconds]
nitric has quit [Ping timeout: 256 seconds]
djbkd has quit [Quit: My people need me...]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
bovis has quit [Quit: leaving]
JeanCarloMachado has quit [Quit: Lost terminal]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JeanCarloMachado has joined #ruby
roamingdog has joined #ruby
harai has joined #ruby
whathappens has quit [Quit: Leaving...]
nettoweb has joined #ruby
postmodern has quit [Quit: Leaving]
SCHAAP137 has joined #ruby
roamingdog has quit [Remote host closed the connection]
hightower3 has joined #ruby
roamingdog has joined #ruby
aquateen has joined #ruby
LBKEAJ has quit [Remote host closed the connection]
LBKEAJ has joined #ruby
boombox__ has quit [Remote host closed the connection]
hightower2 has quit [Ping timeout: 252 seconds]
_sfiguser has joined #ruby
blackmes1 has quit [Quit: WeeChat 1.5]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LBKEAJ has quit [Ping timeout: 250 seconds]
minimalism has joined #ruby
bruce_lee has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 252 seconds]
flashpoint9 has quit [Remote host closed the connection]
SCHAAP137 has quit [Quit: Leaving]
roamingdog has quit [Remote host closed the connection]
jottr has joined #ruby
chouhoulis has joined #ruby
sneakers has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 260 seconds]
solocshaw has joined #ruby
porfa has joined #ruby
<porfa> wow, heya good evening!
boombox_ has joined #ruby
nettoweb has joined #ruby
zukin has joined #ruby
nettoweb has quit [Ping timeout: 252 seconds]
flashpoint9 has joined #ruby
jhack has joined #ruby
Blueby has quit [Quit: Blueby]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
splud has quit [Quit: splud]
nickjj_ has joined #ruby
nickjj has quit [Ping timeout: 248 seconds]
Derperperd has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
boombox_ has quit [Remote host closed the connection]
ruby_ has quit [Remote host closed the connection]
ruby_ has joined #ruby
Siegfried[away] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
machinewar has joined #ruby
zukin has quit [Quit: bsd!]
ruby_ has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
bmurt has joined #ruby
d^sh has quit [Ping timeout: 256 seconds]
aquateen has quit [Ping timeout: 260 seconds]
d^sh has joined #ruby
roamingdog has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
pokalyis has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
mvxlr has joined #ruby
<mvxlr> `obj.val * decimal` - any nice ruby way to return 0 if obj.val == nil? currently it fails with an exception
<machinewar> obj.val.to_i
<machinewar> nil.to_i will be 0
Liothen has quit [Changing host]
Liothen has joined #ruby
<mvxlr> machinewar that you very much
<mvxlr> *thank yu
pokalyis has quit [Read error: Connection reset by peer]
pokalyis has joined #ruby
<havenwood> hays: was afk, but yup i happen to have added that flag!: -j, --jobs JOBS (Number of jobs to run in parallel when compiling)
flashpoint9 has quit [Ping timeout: 245 seconds]
<havenwood> hays: so for eight cores for example: -j8
sysanthrope has quit [Remote host closed the connection]
skweek has joined #ruby
flashpoint9 has joined #ruby
sysanthrope has joined #ruby
<havenwood> hays: see `ruby-install -h` or the manual page `man ruby-install` for more details
Azure|dc has joined #ruby
Bidun has joined #ruby
rodfersou has joined #ruby
<porfa> hmm how much should i ask for a scrape job?
Bidun has left #ruby [#ruby]
Azure has quit [Ping timeout: 260 seconds]
ruby_ has joined #ruby
webguynow has joined #ruby
boombox_ has joined #ruby
<s2013> if i have a tempfile whats the best way to save that locally/
Siegfried has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
vikaton has joined #ruby
moei has quit [Quit: Leaving...]
tvw has quit [Ping timeout: 260 seconds]
jaykill has joined #ruby
Robtop__ has joined #ruby
jaykill33 has quit [Ping timeout: 244 seconds]
solocshaw has quit [Ping timeout: 252 seconds]
harai has quit [Ping timeout: 260 seconds]
pwnd_nsfw` has quit [Ping timeout: 256 seconds]
thrustix has joined #ruby
braincra- has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
danst has quit [Ping timeout: 250 seconds]
Azure|dc is now known as Azure
krasnus has joined #ruby
heyimwill has joined #ruby
jaguarmagenta has joined #ruby
danst has joined #ruby
zeroDi has quit [Quit: WeeChat 1.5]
braincrash has quit [Ping timeout: 250 seconds]
Felipe__ has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
bluOxigen has joined #ruby
roamingdog has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LoneHermit has joined #ruby
jaykill has quit [Quit: Leaving]
boombox_ has quit [Remote host closed the connection]
optiz0r has quit [Ping timeout: 256 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JayD has quit [Quit: leaving]
LoneHermit has quit [Ping timeout: 252 seconds]
rodfersou has quit [Quit: leaving]
slowmatt has joined #ruby
porfa has quit [Ping timeout: 252 seconds]
aries_liuxueyang has quit [Remote host closed the connection]
aries_liuxueyang has joined #ruby
solocshaw has joined #ruby
Blueby has joined #ruby
flashpoint9 has joined #ruby
Felipe__ has quit [Quit: Leaving]
aries_liuxueyang has quit [Ping timeout: 252 seconds]
bovis has joined #ruby
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sneakerhax has joined #ruby
boombox_ has joined #ruby
tubuliferous has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
modlin has quit [Ping timeout: 245 seconds]
thrustix has quit [Ping timeout: 260 seconds]
jeyraof has joined #ruby
Felipe__ has joined #ruby
Felipe__ has quit [Remote host closed the connection]
boombox_ has quit [Remote host closed the connection]
porfa has joined #ruby
roamingdog has joined #ruby
Joufflu_ has joined #ruby
cdg has joined #ruby
solocshaw has quit [Read error: Connection reset by peer]
solocshaw has joined #ruby
Joufflu has quit [Ping timeout: 256 seconds]
bluOxigen has quit [Ping timeout: 244 seconds]
s2013 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
ResidentBiscuit has joined #ruby
j0bk has quit [Quit: :wq!]
j0bk has joined #ruby
flashpoint9 has quit [Ping timeout: 245 seconds]
solocshaw has quit [Ping timeout: 250 seconds]
solocshaw has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
jottr has joined #ruby
wpostma has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
_sfiguser has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 265 seconds]
bmurt has joined #ruby
beatdown has quit [Quit: ZNC 1.6.1 - http://znc.in]
machinewar has quit []
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
xall has joined #ruby
beatdown has joined #ruby
_sfiguser has joined #ruby
astrobunny has joined #ruby
arescorpio has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has quit [Ping timeout: 244 seconds]
braincra- has quit [Quit: bye bye]
howdoi has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
<xall> i refactored 'replace conditional with polymorphism'. i moved the existing tests to relevant subclass specs. i'm wondering what i should test in the parent class now that everything has been moved out. https://gist.github.com/anonymous/127886bdbd8029657466452a9c3d417c
nankyokusei has joined #ruby
braincrash has joined #ruby
<gizmore> xall: usually you test the classes public methods
<xall> gizmore: i guess i mean since the method now just delegates to the subclasses
<elomatreb> xall: If you change the file extension of that gist to .diff you'll get working syntax highlighting btw
<xall> is there a reasonable test?
nankyokusei has quit [Ping timeout: 244 seconds]
chopin has quit [Remote host closed the connection]
boombox_ has joined #ruby
chopin has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
gix has quit [Ping timeout: 252 seconds]
dviola has quit [Quit: WeeChat 1.6]
solocshaw has quit [Ping timeout: 244 seconds]
chopin has quit [Ping timeout: 265 seconds]
gix has joined #ruby
<xall> nm. i understand why that was a silly question
KnownSyntax has quit [Remote host closed the connection]
KnownSyntax has joined #ruby
porfa has quit [Quit: porfa]
KnownSyntax has quit [Read error: Connection reset by peer]
solocshaw has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
astrobunny has quit [Remote host closed the connection]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
sp4rrow has joined #ruby
doublemalt_ has joined #ruby
Felipe__ has joined #ruby
Joufflu__ has joined #ruby
ResidentBiscuit has quit []
Joufflu has joined #ruby
DoubleMalt has quit [Ping timeout: 260 seconds]
gusrub_ has quit [Remote host closed the connection]
Joufflu_ has quit [Ping timeout: 245 seconds]
Joufflu__ has quit [Ping timeout: 245 seconds]
flashpoint9 has joined #ruby
Felipe__ has quit [Quit: Leaving]
flashpoint9 has quit [Ping timeout: 245 seconds]
joneshf-laptop has quit [Quit: Leaving]
solocshaw has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
solocshaw has joined #ruby
hanmac has quit [Ping timeout: 245 seconds]
LoneHerm_ has quit [Ping timeout: 252 seconds]
scres has joined #ruby
LoneHerm_ has joined #ruby
jackjackdripper has joined #ruby
flashpoint9 has joined #ruby
<scres> hello. can anyone recommend some good resources for learning ruby? i'm already an experienced programmer in python and php, looking to fast-track some ruby experience
Contigi has quit [Ping timeout: 252 seconds]
renderful has joined #ruby
Ebok has joined #ruby
jackjackdripper has quit [Ping timeout: 244 seconds]
jackjackdripper has joined #ruby
renderful has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
Azure|dc has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
Azure has quit [Ping timeout: 256 seconds]
<baweaver> Eloquent Ruby or learnxinyminutes for the super fast.
hanmac has joined #ruby
ledestin_ has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
sarlalian has joined #ruby
jaequery has joined #ruby
ramfjord has joined #ruby
sp4rrow has quit [Quit: Textual]
bovis has quit [Quit: leaving]
bturker has joined #ruby
gnufied has quit [Ping timeout: 245 seconds]
moei has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
Joufflu has quit [Read error: Connection reset by peer]
ruby_ has quit [Remote host closed the connection]
al2o3-cr has quit [Ping timeout: 250 seconds]
brent__ has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us_ has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us_ has joined #ruby
xall has quit [Ping timeout: 256 seconds]
al2o3-cr has joined #ruby
mvxlr has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
ChiefAlexander has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
ur5us_ has quit [Ping timeout: 245 seconds]
ur5us has quit [Ping timeout: 245 seconds]
mvxlr has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
ruby_ has joined #ruby
roamingdog has quit [Remote host closed the connection]
jcao219 has quit [Quit: ByrdIRC]
jcao219 has joined #ruby
roamingdog has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
Ebok has quit [Quit: Leaving]
jottr has joined #ruby
xall has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
SteenJobs has joined #ruby
SteenJobs has quit [Client Quit]
nettoweb has joined #ruby
govg has joined #ruby
pawnbox has quit [Remote host closed the connection]
ruby_ has quit [Remote host closed the connection]
govg has quit [Client Quit]
ruby_ has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
nettoweb has quit [Ping timeout: 252 seconds]
ruby-lang295 has joined #ruby
ruby_ has quit [Ping timeout: 256 seconds]
flashpoint9 has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
nadir has quit [Quit: Connection closed for inactivity]
ramfjord has joined #ruby
JoshS has joined #ruby
ruby-lang295 has quit [Ping timeout: 260 seconds]
conta has joined #ruby
arescorpio has quit [Quit: Leaving.]
flashpoint9 has quit [Ping timeout: 245 seconds]
pokalyis has quit [Read error: Connection reset by peer]
symm- has joined #ruby
pokalyis has joined #ruby
nankyokusei has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
harai has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 265 seconds]
gingray has joined #ruby
mostlyerror has joined #ruby
aibot_____ has quit [Ping timeout: 250 seconds]
mostlyerror has left #ruby [#ruby]
xall has quit [Ping timeout: 260 seconds]
aibot_____ has joined #ruby
conta has quit [Ping timeout: 250 seconds]
zacstewart has quit [Ping timeout: 250 seconds]
Blueby has quit [Quit: Blueby]
govg has joined #ruby
astrobunny has joined #ruby
amclain has quit [Quit: Leaving]
qwertyco has joined #ruby
eizua has joined #ruby
dmtd has joined #ruby
eljimbo has quit [Quit: Leaving]
xall has joined #ruby
danst has quit [Ping timeout: 260 seconds]
danst has joined #ruby
MuffinPimp[m] has joined #ruby
last_staff has joined #ruby
dminuoso_ has joined #ruby
MrBusiness3 has joined #ruby
boombox_ has quit [Remote host closed the connection]
boombox_ has joined #ruby
MrBusiness2 has quit [Ping timeout: 260 seconds]
Dohplay_ has quit [Read error: Connection reset by peer]
duncannz has joined #ruby
roamingdog has quit [Remote host closed the connection]
saneax-_-|AFK is now known as saneax
boombox_ has quit [Ping timeout: 260 seconds]
igniting has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
scres has quit [Quit: Leaving]
jaequery has joined #ruby
bluOxigen has joined #ruby
jaequery has quit [Client Quit]
duncannz has quit [Quit: Leaving]
ledestin has joined #ruby
bocaneri has joined #ruby
aufi has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
lxsameer has joined #ruby
pawnbox has joined #ruby
meatchicken has quit [Quit: Leaving]
PocketKiller has quit [Quit: QUIT ->> >>| PocketKiller |<< <<- QUIT]
blaxter has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
PocketKiller has joined #ruby
PocketKiller is now known as Guest64144
djbkd has quit [Remote host closed the connection]
rajdesai has joined #ruby
aryaching has joined #ruby
djbkd has joined #ruby
bturker has joined #ruby
akkad has quit [Quit: Emacs must have died]
wugy has joined #ruby
firstdayonthejob has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
dminuoso_ has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
dminuoso_ has joined #ruby
Nahra has quit [Ping timeout: 268 seconds]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pokalyis has quit [Ping timeout: 265 seconds]
yardenbar has joined #ruby
Dimik has joined #ruby
roamingdog has joined #ruby
pokalyis has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
arashb has joined #ruby
rajdesai has quit [Remote host closed the connection]
rajdesai has joined #ruby
jphase_ has joined #ruby
gingray has quit [Ping timeout: 260 seconds]
conta has joined #ruby
jphase has quit [Ping timeout: 245 seconds]
arashb has quit [Ping timeout: 252 seconds]
rajdesai has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jphase_ has quit [Ping timeout: 256 seconds]
firstdayonthejob has quit [Ping timeout: 256 seconds]
biberu has joined #ruby
craigp has joined #ruby
nullfxn has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
nullfxn has joined #ruby
craigp has quit [Client Quit]
jenrzzz has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
charliesome has joined #ruby
dminuoso_ has quit [Remote host closed the connection]
mikekellyio_ has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 250 seconds]
zacstewart has joined #ruby
roamingdog has quit [Remote host closed the connection]
dminuoso_ has joined #ruby
roamingdog has joined #ruby
johnbat26 has joined #ruby
jaequery has joined #ruby
jaguarmagenta has quit [Ping timeout: 250 seconds]
zacstewart has quit [Ping timeout: 244 seconds]
pawnbox has quit [Ping timeout: 256 seconds]
yardenbar has quit [Ping timeout: 260 seconds]
Siegfried has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_sfiguser has quit [Ping timeout: 252 seconds]
Siegfried has joined #ruby
pawnbox has joined #ruby
optiz0r has joined #ruby
pokalyis has quit [Read error: Connection reset by peer]
pokalyis has joined #ruby
jcao219 has quit [Ping timeout: 256 seconds]
xall has quit [Ping timeout: 256 seconds]
symm- has quit [Ping timeout: 260 seconds]
qwertyco has quit [Remote host closed the connection]
frankiee_ has joined #ruby
rajdesai has joined #ruby
nankyokusei has joined #ruby
yardenbar has joined #ruby
_sfiguser has joined #ruby
xpt has quit [Quit: WeeChat 1.4]
TomyWork has joined #ruby
dionysus69 has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
xpt has joined #ruby
claudiuinberlin has joined #ruby
redlegion has quit [Remote host closed the connection]
redlegion has joined #ruby
Siegfried has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Siegfried has joined #ruby
SesMan has joined #ruby
ocbtec has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roamingdog has quit [Remote host closed the connection]
mozozo has joined #ruby
jaruga___ has joined #ruby
jaruga___ is now known as jaruga
govg has quit [Ping timeout: 245 seconds]
jaruga has quit [Client Quit]
xall has joined #ruby
Dimik has quit [Read error: Connection reset by peer]
Dimik has joined #ruby
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
psmolen_ has quit [Ping timeout: 250 seconds]
pabs has quit [Ping timeout: 260 seconds]
icey has quit [Ping timeout: 268 seconds]
jaruga___ has joined #ruby
jaruga___ is now known as jaruga
djbkd has quit [Quit: My people need me...]
jaruga has quit [Client Quit]
tonini has joined #ruby
jaruga___ has joined #ruby
jaruga___ is now known as jaruga
pabs has joined #ruby
xall has quit [Ping timeout: 250 seconds]
antgel has joined #ruby
psmolen has joined #ruby
Siegfried has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
flashpoint9 has joined #ruby
icey has joined #ruby
Siegfried has joined #ruby
P1ro has quit [Remote host closed the connection]
Devalo has joined #ruby
ziarkaen has joined #ruby
Dimik has quit [Ping timeout: 245 seconds]
gingray has joined #ruby
astrobunny has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 252 seconds]
dn5 has joined #ruby
pokalyis has quit [Quit: Textual IRC Client: www.textualapp.com]
Couch has joined #ruby
zacstewart has joined #ruby
Humdai has joined #ruby
sdwrage has quit [Ping timeout: 252 seconds]
ziarkaen has quit [Ping timeout: 256 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
Couch has quit [Quit: Ex-Chat]
mim1k|work has joined #ruby
TinkerTyper has quit [Read error: Connection reset by peer]
Silthias has joined #ruby
pawnbox has joined #ruby
kith has quit [Quit: kith]
dn5 has quit [Ping timeout: 250 seconds]
tcrypt has quit [Quit: _ノ乙(、ン、)_]
futilegames has joined #ruby
futilegames has quit [Client Quit]
ziarkaen has joined #ruby
xall has joined #ruby
eizua has quit [Quit: Leaving]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eizua has joined #ruby
TinkerTyper has joined #ruby
elaptics has joined #ruby
Macaveli has joined #ruby
dn5 has joined #ruby
gizless has joined #ruby
gizmore has quit [Ping timeout: 244 seconds]
kith has joined #ruby
bturker has joined #ruby
j416 has quit [Ping timeout: 256 seconds]
elenatanasoiu has joined #ruby
tomphp has joined #ruby
mikecmpbll has joined #ruby
rajdesai_ has joined #ruby
Guest64144 has quit [Changing host]
Guest64144 has joined #ruby
j416 has joined #ruby
zotherstupidguy has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
terlar has joined #ruby
rajdesai has quit [Ping timeout: 250 seconds]
mark_66 has joined #ruby
rajdesai has joined #ruby
rajdesai has quit [Read error: No route to host]
Guest64144 is now known as PocketKiller
zacstewart has quit [Ping timeout: 245 seconds]
rajdesai has joined #ruby
<zotherstupidguy> whats a common straightforward way for ensuring that if class B inherits from class A, then objects instantiated from class B must have their own implmentations of :method_a, :method_b, etc.?
rajdesai_ has quit [Ping timeout: 256 seconds]
rajdesai_ has joined #ruby
mozozo has quit [Ping timeout: 265 seconds]
mim1k has joined #ruby
<hanmac> zotherstupidguy: hm ruby does not have such thing as virtual methods (per se) ... i think the most easy ways are doing respond_to? checks or have it crash into a NoMethodError
kith has quit [Quit: kith]
<zotherstupidguy> hanmac the thing is i remmber doing this before, but i can't recall how i did it! but there is a way i am sure. how would you do the respond_to? ?
rajdesai has quit [Ping timeout: 250 seconds]
kith has joined #ruby
brent__ has quit [Quit: Connection closed for inactivity]
astrobunny has joined #ruby
mim1k|work has quit [Ping timeout: 244 seconds]
mim1k has quit [Ping timeout: 250 seconds]
<hanmac> zotherstupidguy: you can do in initialize of the Parent A to check if the instance does "respond_to? :method_a" ... but thats not perfect because it prevent to define the method in the object
flashpoint9 has quit [Ping timeout: 245 seconds]
antgel has quit [Ping timeout: 260 seconds]
ledestin has quit [Read error: Connection reset by peer]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
pawnbox has quit [Ping timeout: 256 seconds]
dmtd has quit [Quit: Connection closed for inactivity]
flashpoint9 has joined #ruby
Beams has joined #ruby
rajdesai_ has quit [Remote host closed the connection]
<zotherstupidguy> meh, not workin for me yet
pawnbox has joined #ruby
MuffinPimp[m] has quit [Remote host closed the connection]
Silke[m] has quit [Remote host closed the connection]
bascht has quit [Remote host closed the connection]
velu_aon[m] has quit [Write error: Connection reset by peer]
fladson[m] has quit [Write error: Connection reset by peer]
M-manveru has quit [Write error: Connection reset by peer]
cpfeilschifter[m has quit [Write error: Connection reset by peer]
davix has quit [Write error: Connection reset by peer]
M-shine has quit [Write error: Connection reset by peer]
laithshadeed[m] has quit [Write error: Connection reset by peer]
M-mistake has quit [Write error: Connection reset by peer]
eliotk[m] has quit [Remote host closed the connection]
Luca[m] has quit [Write error: Connection reset by peer]
jsrn_ has joined #ruby
jottr has joined #ruby
astrobunny has quit [Remote host closed the connection]
flashpoint9 has quit [Ping timeout: 256 seconds]
flashpoint9 has joined #ruby
ghostlight has quit [Ping timeout: 252 seconds]
aupadhye has joined #ruby
pandaant has joined #ruby
ghostlight has joined #ruby
bturker has joined #ruby
flashpoi_ has joined #ruby
charliesome has joined #ruby
zacstewart has joined #ruby
flashpoint9 has quit [Ping timeout: 256 seconds]
aupadhye has quit [Ping timeout: 250 seconds]
flashpoint9 has joined #ruby
lenwood has joined #ruby
zenguy_pc has quit [Ping timeout: 245 seconds]
flashpoi_ has quit [Read error: Connection reset by peer]
xall has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 260 seconds]
mim1k|work has joined #ruby
mim1k has joined #ruby
zenguy_pc has joined #ruby
blackmesa has joined #ruby
djbkd has joined #ruby
davix has joined #ruby
Silke[m] has joined #ruby
M-shine has joined #ruby
bascht has joined #ruby
M-manveru has joined #ruby
MuffinPimp[m] has joined #ruby
Luca[m] has joined #ruby
laithshadeed[m] has joined #ruby
cpfeilschifter[m has joined #ruby
eliotk[m] has joined #ruby
fladson[m] has joined #ruby
velu_aon[m] has joined #ruby
M-mistake has joined #ruby
Shmulik has joined #ruby
jottr has joined #ruby
<manveru> zotherstupidguy: well, there's a way
<zotherstupidguy> ?
LBKEAJ has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
pragmaticus has quit [Ping timeout: 256 seconds]
<manveru> or maybe not...
harai has quit [Ping timeout: 256 seconds]
<manveru> you can define a method before inherting
dn5 has quit [Ping timeout: 245 seconds]
<manveru> *can't
salut has joined #ruby
<manveru> so the only way would be to define the method on A but instead raise in the method
<dminuoso_> zotherstupidguy: What is your goal? Are you trying to do something like "pure virtual methods" ?
<zotherstupidguy> what are "pure virtual methods"? nah, i just want to make whoever inherits from my base class gets a warning if they don't implmenet specific mehtods
<manveru> >> class A; def hi; raise NotImplementedError, "implement hi if you want to inherit from A"; end; end; [Class.new(A), Class.new(A){ def hi; :hi; end }].map{|c| begin; c.new.hi; rescue NotImplementedError => e; e; end }
<ruby[bot]> manveru: # => [#<NotImplementedError: implement hi if you want to inherit from A>, :hi] (https://eval.in/663006)
<dminuoso_> zotherstupidguy: It's a concept in C++ where you have an abstract base class that defines an interface - but you cannot use that interface. Instead you must derive from it, and implement these methods.
<dminuoso_> manveru's code is a simplistic Ruby solution to the problem
<zotherstupidguy> i think its similar to NotImplementedError
<manveru> otherwise you can only solve it with a module that you include into the class after you defined it
nankyokusei has joined #ruby
<manveru> because at the point where you write 'class B < A', there's no method in B yet
tvm has joined #ruby
<dminuoso_> manveru: I'm thinking there could be a way.
<manveru> and you can at best delay the check for a few seconds or something... which is weird
antgel has joined #ruby
<dminuoso_> asm>> class A<B;e end
<ruby[bot]> dminuoso_: I have disassembled your code, the result is at https://eval.in/663007
jackjackdripper has joined #ruby
<dminuoso_> zotherstupidguy: What you could do, is forbid direct inheritance (by using the inherited callback) - and provide a factory method in the base class.
pragmaticus has joined #ruby
<tvm> if i have object like #<Gitlab::ObjectifiedHash:14564360 {hash: {"id"=>35, ... how i'm supposed to access id ? puts obj["id"] returns: wrong number of arguments (2 for 1)
<manveru> >> Thread.abort_on_exception = true; class A; def self.inherited(into); Thread.new{ sleep 1; raise NotImplementedError, "implement hi if you want to inherit from A" unless into.instance_methods(false).include?(:hi) }; end; end; Class.new(A); sleep 2
<zotherstupidguy> dminuoso_ sounds too clever to be nice
<ruby[bot]> manveru: # => (https://eval.in/663008)
<dminuoso_> And have that factory method basically do a new_class = do_stuff(with(yield)); test_interface(new_class)
<manveru> damn eval.in doesn't do sleeps either :P
<manveru> but hey, that'd work... more or less
<manveru> if you program runs longer than a second
<dminuoso_> tvm: Look at the documentation of Gitlab::ObjectifiedHash
<zotherstupidguy> lol
<dminuoso_> zotherstupidguy: The factory method is not completely unsound considering Ruby does not offer anything else.
zenguy_pc has quit [Ping timeout: 256 seconds]
<dminuoso_> zotherstupidguy: In fact some gems such as FactoryGirl do it too.
pragmaticus has quit [Remote host closed the connection]
<tvm> dminuoso_: oh, i thought that objectifiedhash was some native ruby thing, that explains a lot. thanks.
<dminuoso_> tvm: :)
quazimodo has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
zenguy_pc has joined #ruby
mozozo has joined #ruby
jottr has joined #ruby
<zotherstupidguy> feels to me like another special case when popularity doesn't conform beauty! anyway THANKS! NotImplementedError would be the way to go for me.
rajdesai has joined #ruby
<dminuoso_> zotherstupidguy: https://eval.in/663013
govg has joined #ruby
jaguarmagenta has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
ur5us_ has joined #ruby
ur5us has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
<dminuoso_> zotherstupidguy: Many Rubyist would consider this bad, as they are duck fetishists - they think having abstract interfaces and enforced policies is a bad thing. :P
<zotherstupidguy> dminuoso_ NotImplementedError works for now, how your gist is diff again?
<dminuoso_> zotherstupidguy: I test the existence of the method right when the class is used.
<dminuoso_> zotherstupidguy: not when the method is used.
<zotherstupidguy> dminuoso_ in a way they are correct, if you strict too much to grammer you can't rap ;)
<dminuoso_> zotherstupidguy: We have had centuries of cultivated music that relied on very deep music theory.
<canton7> or if you want interfaces, use a language with interfaces? :)
<dminuoso_> But hey, if you consider a modern gansgta who proves a complete lack of vocal or grammar abilities to be more elegant than Rachmaninoffs second piano concerto - who am I to argue.
jaguarmagenta has quit [Ping timeout: 260 seconds]
mozozo has quit []
teclator has quit [Ping timeout: 252 seconds]
ajaiswal has joined #ruby
antgel has quit [Ping timeout: 256 seconds]
pawnbox has quit [Ping timeout: 256 seconds]
xall has joined #ruby
zacstewart has quit [Ping timeout: 265 seconds]
pragmaticus has joined #ruby
koooge has quit [Quit: Leaving...]
jottr has joined #ruby
tvw has joined #ruby
nadir has joined #ruby
xall has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zotherstupidguy> dminuoso_ if i would to readjust the anology, i would go by stating that music is timeless(same as code) thus it wouldn't wieght in much how long it had been done in what way, as opposed to why it was being used. music (code) is meant to be a tool of expressions.
pawnbox has joined #ruby
mwlang has quit [Quit: mwlang]
nettoweb has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
LBKEAJ is now known as Snowy
psmmr has joined #ruby
roamingdog has joined #ruby
charliesome has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.6]
rajdesai has quit [Remote host closed the connection]
rajdesai has joined #ruby
pandaant has quit [Remote host closed the connection]
rodfersou has joined #ruby
Derperperd has quit [Quit: Derperperd]
renderful has joined #ruby
teclator has joined #ruby
AltLock has joined #ruby
rajdesai has quit [Ping timeout: 245 seconds]
Nahra has joined #ruby
zacstewart has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
renderful has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hyuk has joined #ruby
roamingdog has quit [Remote host closed the connection]
elaptics has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
aryaching has quit [Ping timeout: 256 seconds]
Nahra has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
jeyraof has quit [Quit: This computer has gone to sleep]
elaptics has joined #ruby
bruce_lee has joined #ruby
nettoweb has quit [Quit: Textual IRC Client: www.textualapp.com]
ur5us_ has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us_ has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
antgel has joined #ruby
roamingdog has joined #ruby
mim1k|work has quit [Ping timeout: 252 seconds]
mim1k has quit [Ping timeout: 265 seconds]
ur5us_ has quit [Ping timeout: 252 seconds]
ur5us has quit [Ping timeout: 252 seconds]
mim1k|work has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
ldnunes has joined #ruby
Nahra has joined #ruby
mim1k has joined #ruby
antgel_ has joined #ruby
antgel has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
Macaveli has joined #ruby
dionysus69 has quit [Ping timeout: 245 seconds]
nettoweb has joined #ruby
pawnbox has joined #ruby
<ahri> hi, i'm using Guard and wondered if there's a way to output after a task has finished? i'm using guard-rake actually - i just want to emit a "Done!" message so i know rake has finished doing its thing
<ahri> i tried callback(:stop) { puts "Done!" }, but that doesn't appear to work the way i expected
JeanCarloMachado has joined #ruby
zacstewart has quit [Ping timeout: 250 seconds]
<dminuoso_> how does it work?
blackmesa has quit [Ping timeout: 252 seconds]
mikekellyio_ has quit [Quit: Connection closed for inactivity]
<dminuoso_> I've been working too much in C++. I now want to transfer ownership of an IO handle to another object..
<dminuoso_> And Ruby just doesnt work like I want it to. :(
aryaching has joined #ruby
jottr has joined #ruby
antgel_ has quit [Ping timeout: 245 seconds]
Azure has joined #ruby
Azure|dc has quit [Ping timeout: 265 seconds]
antgel has joined #ruby
GodFather has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
al2o3-cr has quit [Ping timeout: 256 seconds]
err_ok has joined #ruby
al2o3-cr has joined #ruby
shrinx has quit [Quit: Page closed]
tomphp has quit [Read error: Connection reset by peer]
minimalism has quit [Quit: minimalism]
nowhere_man has joined #ruby
rodfersou is now known as rodfersou|afk
tomphp has joined #ruby
zacstewart has joined #ruby
AltLock has quit [Quit: Leaving.]
mim1k has quit [Ping timeout: 244 seconds]
mim1k has joined #ruby
antgel has quit [Ping timeout: 252 seconds]
roamingdog has quit [Remote host closed the connection]
antgel has joined #ruby
<hanmac> dminuoso_: you can do IO.reopen but that might not 100% what you want
<dminuoso_> hanmac: Yeah it wont. Essentially I want similar semantics to unique_ptr with tranferrable ownership.
<dminuoso_> Though mmm.
<dminuoso_> I guess that could actually work.
<dminuoso_> hanmac: I can make it work, thanks. :)
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
Humdai has quit [Ping timeout: 256 seconds]
JeanCarloMachado has quit [Ping timeout: 256 seconds]
existensil has quit [Ping timeout: 248 seconds]
JeanCarloMachado has joined #ruby
miqlas-H has joined #ruby
pragmaticus has quit [Remote host closed the connection]
chouhoulis has joined #ruby
existensil has joined #ruby
miqlas-H has quit [Ping timeout: 245 seconds]
xall has joined #ruby
jaguarmagenta has joined #ruby
Hyuk has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
dn5 has joined #ruby
AltLock has joined #ruby
Hyuk has joined #ruby
GodFather_ has joined #ruby
claudiuinberlin has joined #ruby
xall has quit [Ping timeout: 256 seconds]
jaguarmagenta has quit [Ping timeout: 250 seconds]
GodFather has quit [Ping timeout: 265 seconds]
CloCkWeRX has joined #ruby
antgel has quit [Ping timeout: 256 seconds]
Guest47768 has quit [Ping timeout: 265 seconds]
crankharder has quit [Ping timeout: 260 seconds]
jaruga has quit [Quit: jaruga]
varsha has joined #ruby
mim1k|work has quit [Ping timeout: 250 seconds]
zacstewart has quit [Ping timeout: 250 seconds]
mim1k has quit [Ping timeout: 252 seconds]
mim1k has joined #ruby
mim1k|work has joined #ruby
nuck has joined #ruby
nuck is now known as Guest35924
Macaveli has joined #ruby
eizua has quit [Quit: Leaving]
sdothum has joined #ruby
roamingdog has joined #ruby
dn5 has quit [Ping timeout: 252 seconds]
nowhere_man has quit [Ping timeout: 256 seconds]
nowhereman has joined #ruby
skweek has quit [Ping timeout: 252 seconds]
<aep_> anyone knows a complete solution for (j)ruby on aws lambda with gems?
pmunt has joined #ruby
saneax is now known as saneax-_-|AFK
dn5 has joined #ruby
rodfersou|afk is now known as rodfersou
lenwood has quit [Ping timeout: 244 seconds]
_sfiguser has quit [Ping timeout: 252 seconds]
dionysus69 has joined #ruby
johnmilton has quit [Remote host closed the connection]
blackmesa has joined #ruby
nowhereman has quit [Remote host closed the connection]
nowhereman has joined #ruby
zacstewart has joined #ruby
antgel has joined #ruby
ferr has joined #ruby
ziarkaen has quit [Ping timeout: 265 seconds]
c0mrad3 has joined #ruby
k200 has joined #ruby
<k200> whats a better way to return stripng with <= 10 characters where input stripng is more than 40 characters
<k200> .truncate is available in ruby?
<canton7> "stripng"?
_sfiguser has joined #ruby
<k200> string
<k200> :-)
bturker has quit [Ping timeout: 256 seconds]
tyang has joined #ruby
faces has quit []
pawnbox has quit [Ping timeout: 260 seconds]
<k200> why .truncates adds "...." ???
yardenbar has quit [Ping timeout: 244 seconds]
mim1k|wo1k has joined #ruby
mim1k_ has joined #ruby
skweek has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
mim1k|work has quit [Ping timeout: 260 seconds]
<canton7> k200, input_string[0,10] does the trick, no?
synthroid has joined #ruby
<k200> using string[0..max]
<k200> using string[0...max]
<canton7> or the range syntax does the same thing, yes
<k200> any idea why the inbuilt .truncate adds "..." ??
<canton7> I think that's a rails thing, not an inbuilt thing?
<k200> oh right
<k200> i was in rails terminal
<canton7> and the docs say "The last characters will be replaced with the :omission string (defaults to “…”) for a total length not exceeding length:"
<canton7> so, the point of #truncate is to add those trailing dots if it truncates the string
<canton7> if you don't want those, just use the built-in string slicing
bumao has quit [Quit: ZNC 1.6.3 - http://znc.in]
<k200> ok
bumao has joined #ruby
pawnbox has joined #ruby
jaruga___ has joined #ruby
jaruga___ is now known as jaruga
Madplatypus has quit [Quit: Connection closed for inactivity]
Jameser has joined #ruby
ziarkaen has joined #ruby
ccolorado has joined #ruby
<ccolorado> Is there a practical way to find unique pairs in an array ? e.g. a[0], a[2] and a[2], a[0] would only be one pair.
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacstewart has quit [Ping timeout: 260 seconds]
aupadhye has joined #ruby
gnufied has joined #ruby
govg has quit [Ping timeout: 244 seconds]
<ccolorado> matthewd: thanks
roamingdog has quit [Remote host closed the connection]
jhack has quit []
dn5 has quit [Ping timeout: 265 seconds]
fmcgeough has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
antgel has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
johnmilton has joined #ruby
millerti has joined #ruby
thrustix has joined #ruby
MrBusiness2 has joined #ruby
hinbody has joined #ruby
last_staff1 has joined #ruby
modlin has joined #ruby
dminuoso1 has joined #ruby
millerti has quit [Client Quit]
jottr has quit [Ping timeout: 256 seconds]
sdothum has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
j416 has quit [Ping timeout: 244 seconds]
IsoLinCHiP has quit [Ping timeout: 258 seconds]
johnny56 has quit [Read error: Connection reset by peer]
MrBusiness3 has quit [Ping timeout: 250 seconds]
dminuoso_ has quit [Ping timeout: 244 seconds]
last_staff has quit [Ping timeout: 244 seconds]
last_staff1 is now known as last_staff
Meeh has quit [Read error: Connection reset by peer]
Meeh_ has joined #ruby
johnny56 has joined #ruby
IsoLinCHiP has joined #ruby
j416 has joined #ruby
Humdai has joined #ruby
GodFather_ has quit [Quit: Ex-Chat]
GodFather_ has joined #ruby
_sfiguser has quit [Ping timeout: 252 seconds]
Snowy has quit [Remote host closed the connection]
kent\n has quit [Ping timeout: 245 seconds]
bturker has joined #ruby
zacstewart has joined #ruby
disconnekted has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<ccolorado> What is the most compact way I can count the elements of an array that pass certain condition e.g. elements greater than 0 ? Is it something else than an .each do ?
griffindy has joined #ruby
cgfbee has quit [Remote host closed the connection]
jphase has joined #ruby
<canton7> #count
ichkv has joined #ruby
<canton7> >> [1, 2, 0, -1, 5].count{ |x| x > 0 }
<ruby[bot]> canton7: # => 3 (https://eval.in/663157)
pawnbox has quit [Ping timeout: 250 seconds]
flashpoint9 has quit [Ping timeout: 256 seconds]
lxsameer has quit [Quit: WeeChat 1.5]
<ccolorado> canton7: thanks
griffindy has quit [Client Quit]
<dminuoso1> >> def f(q: q); end
<ruby[bot]> dminuoso1: # => /tmp/execpad-8d68b7a4415d/source-8d68b7a4415d:2: warning: circular argument reference - q ...check link for more (https://eval.in/663160)
<dminuoso1> Finding new diagnostics every day.
<dminuoso1> (:
fmcgeough has quit [Quit: fmcgeough]
_sfiguser has joined #ruby
<ccolorado> canton7: is tehre something more generic ? like if i just wanted filter+sum elements ? something like map but that returned a single scalar value and i could do acumulators and such.
<ccolorado> The more I think of it the more it feels like i am describing an each :)
jphase has quit [Ping timeout: 256 seconds]
<dminuoso1> ccolorado: Yes, you can use Symbol#to_proc if applicable.
<dminuoso1> ccolorado: And a more generic thing is Enumerable#reduce btw
braincrash has quit [Ping timeout: 260 seconds]
<dminuoso1> ccolorado: Or the more flexible variant Enumerable#each_with_object
<tvm> what does function returns if theres no return statement?
<ccolorado> tvm: the last statement
y2mq37 has quit [Ping timeout: 250 seconds]
kent\n has joined #ruby
mim1k_ has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
<dminuoso1> tvm: The value of the last expression.
<tvm> i have this: http://pastebin.com/x811sbL6, what will be returned ?
<helpa> Hi tvm. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa> Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<ruby[bot]> tvm: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/c6a68ec0e1e1e4786f9375e8afbd49c2
<ruby[bot]> tvm: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<dminuoso1> tvm: Unless there's an "ensure" involved, then things become tricky.
<tvm> i'm python coder, that's struggling with ruby today, so .. :(
<dminuoso1> >> puts [].each.classs
<ruby[bot]> dminuoso1: # => undefined method `classs' for #<Enumerator: []:each> ...check link for more (https://eval.in/663173)
braincrash has joined #ruby
<dminuoso1> >> puts [].each.class
<ruby[bot]> dminuoso1: # => Enumerator ...check link for more (https://eval.in/663174)
<tvm> oh, so it will return whole nslist.
<dminuoso1> tvm: ^- you will get an enumerator back
<tvm> oh.
<dminuoso1> >> puts ([].each {}).class
<ruby[bot]> dminuoso1: # => Array ...check link for more (https://eval.in/663175)
<dminuoso1> Oh no.
<dminuoso1> &ri Enumerable#each
<`derpy> No results
<dminuoso1> &ri each
<tvm> well, return still jumps out of the function, so i'll just add return nil i guess.
<dminuoso1> tvm: That wont work.
* tvm scratches his head
<dminuoso1> tvm: Inside proc and blocks a return will always return from the current active method.
cdg has joined #ruby
<dminuoso1> Use "break" to "break out of a proc/block"
<tvm> ah.
<dminuoso1> (or next)
<canton7> ccolorado, or a #map followed by a #count :P
<canton7> ccolorado, and maybe a #select in there to filter
mim1k|wo1k has quit [Ping timeout: 260 seconds]
merlin2049er1 has joined #ruby
<dminuoso1> tvm: When I mentioned ensure the following rules apply: The last statement before the ensure will be returned, but the ensure will be executed in between the evaluation of the return value and the actual return.
merlin2049er1 has left #ruby [#ruby]
mim1k|work has joined #ruby
<tvm> alright.
modlin has quit [Read error: Connection reset by peer]
xall has joined #ruby
thrustix has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
allomov has joined #ruby
Akuma has joined #ruby
sdwrage has joined #ruby
synthroid has quit [Remote host closed the connection]
ramortegui has joined #ruby
GodFather_ has quit [Ping timeout: 265 seconds]
braincrash has quit [Ping timeout: 260 seconds]
flashpoint9 has joined #ruby
nankyokusei has joined #ruby
xall has quit [Ping timeout: 250 seconds]
mim1k|work has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
millerti has joined #ruby
mim1k|work has joined #ruby
braincrash has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
omphe has joined #ruby
skweek has quit [Ping timeout: 245 seconds]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 252 seconds]
yazdmich is now known as BytesAndCoffee
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
dionysus69 has joined #ruby
jaguarmagenta has joined #ruby
pawnbox has joined #ruby
nickjj_ is now known as nickjj
Maionesys has joined #ruby
braincrash has quit [Ping timeout: 245 seconds]
Aquazi has joined #ruby
Maionesys has quit [Remote host closed the connection]
malconis has joined #ruby
Maionesys has joined #ruby
Rodya_ has joined #ruby
ruby-lang654 has joined #ruby
jaguarmagenta has quit [Ping timeout: 256 seconds]
skweek has joined #ruby
jphase has joined #ruby
jphase has quit [Remote host closed the connection]
GodFather_ has joined #ruby
jphase has joined #ruby
<ruby-lang654> hello guys
ruby_ has joined #ruby
braincrash has joined #ruby
Maionesys has quit [Remote host closed the connection]
cgfbee has joined #ruby
andikr has joined #ruby
malconis has quit [Ping timeout: 252 seconds]
pmunt has quit []
fmcgeough has joined #ruby
ruby_ has quit [Ping timeout: 256 seconds]
malconis has joined #ruby
DLSteve has joined #ruby
saslam has joined #ruby
saslam_ has joined #ruby
Toledo has joined #ruby
Toledo is now known as croberts
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
omphe has joined #ruby
omphe has quit [Client Quit]
blackmesa has quit [Ping timeout: 260 seconds]
saslam has quit [Ping timeout: 260 seconds]
griffindy has joined #ruby
saslam_ has quit [Ping timeout: 260 seconds]
fmcgeough has quit [Quit: fmcgeough]
ericx2x has joined #ruby
<ericx2x> Can someone clean up this line? strip_tags(truncate post.content, length: 75)
matp has quit [Quit: ZZzzzZz...]
fmcgeough has joined #ruby
zacstewart has joined #ruby
go|dfish has quit [Ping timeout: 244 seconds]
mim1k|work has quit [Ping timeout: 256 seconds]
Snowy has joined #ruby
_sfiguser has quit [Remote host closed the connection]
mim1k|work has joined #ruby
Guest66 has joined #ruby
LoneHerm_ has joined #ruby
jaguarmagenta has joined #ruby
coolboy has joined #ruby
synthroid has joined #ruby
modlin has joined #ruby
Guest66 has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thrustix has joined #ruby
mim1k|work has quit [Ping timeout: 244 seconds]
mim1k|work has joined #ruby
ruby_ has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather_ has quit [Ping timeout: 265 seconds]
vuoto has joined #ruby
terlar has quit [Ping timeout: 256 seconds]
renderful has joined #ruby
Guest66 has joined #ruby
last_staff has quit [Quit: last_staff]
go|dfish has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 260 seconds]
renderful has quit [Ping timeout: 260 seconds]
jaguarmagenta has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
merlin2049er has joined #ruby
merlin2049er has left #ruby [#ruby]
mtkd has quit [Ping timeout: 265 seconds]
modlin_ has joined #ruby
modlin_ has quit [Remote host closed the connection]
mtkd has joined #ruby
colegatron has joined #ruby
aupadhye has quit [Ping timeout: 265 seconds]
ChiefAlexander has joined #ruby
govg has joined #ruby
sepp2k has joined #ruby
teclator has quit [Ping timeout: 260 seconds]
GodFather_ has joined #ruby
j0bk has quit [Changing host]
j0bk has joined #ruby
futilegames has joined #ruby
hammond is now known as jewstein_webber
dionysus69 has quit [Ping timeout: 256 seconds]
<chrisseaton> ericx2x: what do you mean by clean it up?
pragmaticus has joined #ruby
<frankiee_> looks pretty clean to me whatever it is
<frankiee_> shouldn't truncations be done clientside anyway? to avoid extra requests if the user wants to "read more"?
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
futilegames has left #ruby [#ruby]
govg has quit [Ping timeout: 256 seconds]
ziarkaen has quit [Ping timeout: 256 seconds]
boombox_ has joined #ruby
matp has joined #ruby
rodfersou is now known as rodfersou|lunch
ruby-lang257 has joined #ruby
vuoto has quit [Remote host closed the connection]
Gasher has joined #ruby
dminuoso1 has quit [Ping timeout: 252 seconds]
wldcordeiro has quit [Ping timeout: 250 seconds]
bturker has quit [Ping timeout: 256 seconds]
dn5 has joined #ruby
ziarkaen has joined #ruby
jbeeze has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
saneax-_-|AFK is now known as saneax
Rodya_ has quit [Remote host closed the connection]
bovis has joined #ruby
arashb has joined #ruby
jottr has joined #ruby
mim1k|work has quit [Disconnected by services]
dn5 has quit [Ping timeout: 260 seconds]
ruby-lang654 has quit [Ping timeout: 260 seconds]
GinoManWorks has joined #ruby
roamingdog has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
teclator has joined #ruby
NTrash has joined #ruby
ruby-lang257 has quit [Ping timeout: 260 seconds]
tubuliferous has quit [Ping timeout: 244 seconds]
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
dminuoso_ has joined #ruby
Blueby has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
igniting has quit [Ping timeout: 256 seconds]
Siegfried has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rippa has joined #ruby
supsup has joined #ruby
patarr has joined #ruby
pawnbox has joined #ruby
shinnya has joined #ruby
<supsup> question: how do you overlay configurations in a middleman server? so that as you go down a file structure a defaults.yaml file wins previous defaults.yaml files?
wldcordeiro has joined #ruby
polishdub has joined #ruby
pragmaticus has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
tcrypt has joined #ruby
p0p0pr37 has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 244 seconds]
ledestin has joined #ruby
patarr has joined #ruby
Guest66 has joined #ruby
ycyclist has joined #ruby
dminuoso_ has quit [Remote host closed the connection]
mark_66 has quit [Quit: Leaving.]
beawesomeinstead has quit [Ping timeout: 260 seconds]
skweek has quit [Ping timeout: 256 seconds]
f0rpaxe has quit [Read error: Connection reset by peer]
poikon has quit [Read error: Connection reset by peer]
ichkv1 has joined #ruby
fmcgeough has joined #ruby
beawesomeinstead has joined #ruby
poikon has joined #ruby
f0rpaxe has joined #ruby
ichkv has quit [Ping timeout: 252 seconds]
roamingdog has quit [Remote host closed the connection]
SuperLag has quit [Quit: Lost terminal]
arashb has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
Pent has quit [Read error: Connection reset by peer]
flashpoint9 has joined #ruby
SuperLag has joined #ruby
tvm has quit [Quit: leaving]
<k200> how can i find nexn item in array only based on what is current item?
<k200> without usintg any loop or enumerable.
p0p0pr37 has joined #ruby
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<k200> last item should give first item
nowhereman has quit [Remote host closed the connection]
supsup has quit [Quit: Page closed]
nankyokusei has joined #ruby
nowhereman has joined #ruby
conta has quit [Ping timeout: 256 seconds]
<havenwood> k200: if it weren't for that last requirement you could just:
<havenwood> >> a = [:beets, :bears, :battlestar_gallactica]; a[a.index(:bears).next]
<ruby[bot]> havenwood: # => :battlestar_gallactica (https://eval.in/663241)
bturker has joined #ruby
<k200> :-D
NTrash has quit [Quit: Konversation terminated!]
<k200> >> a[a.index(:beets).next]
<ruby[bot]> k200: # => undefined local variable or method `a' for main:Object (NameError) ...check link for more (https://eval.in/663242)
ocbtec has quit [Quit: leaving]
Devalo has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
pawnbox has quit [Quit: gotta go guys.]
pawnbox has joined #ruby
asahi has joined #ruby
fullofcaffeine has joined #ruby
Siegfried has joined #ruby
patarr has quit [Quit: patarr]
<asahi> I don't suppose there's a way to split a string in between the two characters, "}{". Seems like I'd have to use String#index, break the string into 2, and repeat for every instance of "}{"
fmcgeough has quit [Quit: fmcgeough]
Siegfried has quit [Client Quit]
<havenwood> >> "on fish}{two fish}{red fish".split /(?<=})(?={)/
<ruby[bot]> havenwood: # => ["on fish}", "{two fish}", "{red fish"] (https://eval.in/663245)
<havenwood> asahi: like that ^ or removing the squirrelly braces?
Gasher has quit [Quit: Leaving]
<havenwood> >> "one fish}{two fish}{red fish".split '}{'
<ruby[bot]> havenwood: # => ["one fish", "two fish", "red fish"] (https://eval.in/663247)
Guest66 has joined #ruby
<havenwood> asahi: or do you mean like ^ that?
mim1k|work has joined #ruby
fmcgeough has joined #ruby
fmcgeough has quit [Client Quit]
patarr has joined #ruby
Joufflu has joined #ruby
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
AltLock has quit [Quit: Leaving.]
rodfersou|lunch is now known as rodfersou
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
hnanon has joined #ruby
gizless is now known as gizmore
yardenbar has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
Snowy has quit [Ping timeout: 252 seconds]
k200 has quit [Quit: leaving]
govg has joined #ruby
<jokke> hello
varsha has quit [Quit: Connection closed for inactivity]
AltLock has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
Siegfried has joined #ruby
AltLock has quit [Client Quit]
<jokke> i'd like there to be some kind of includes_exactly matcher for rspec?
dminuoso_ has joined #ruby
<jokke> scenario: i want to match a hash with includes and also ensure that there are no additional keys
<gizmore> ^aha$
<gizmore> equals
fullofcaffeine has quit [Ping timeout: 256 seconds]
<jokke> i can't use eq, since i need to use compound matchers
patarr has quit [Quit: patarr]
Siegfried has quit [Client Quit]
xall has joined #ruby
coolboy has quit [Remote host closed the connection]
SpX has quit [Quit: Leaving]
Devalo has quit [Remote host closed the connection]
amclain has joined #ruby
synthroid has quit [Remote host closed the connection]
frankiee_ has quit [Read error: Connection reset by peer]
xall has quit [Ping timeout: 260 seconds]
fullofcaffeine has joined #ruby
jsrn_ has quit [Quit: Leaving]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blaxter has quit [Quit: foo]
saslam has joined #ruby
Devalo has joined #ruby
tdy1 has quit [Ping timeout: 252 seconds]
GodFather_ has quit [Quit: Ex-Chat]
GodFather_ has joined #ruby
GodFather_ is now known as GodFather
[Butch] has joined #ruby
SCHAAP137 has joined #ruby
Siegfried has joined #ruby
tcrypt has quit [Quit: _ノ乙(、ン、)_]
boombox_ has quit [Remote host closed the connection]
chopin has joined #ruby
tubuliferous has joined #ruby
Siegfried has quit [Client Quit]
ruby_ has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
nettoweb has joined #ruby
postmodern has joined #ruby
<eam> mornin' folks
<havenwood> g'mornin'
roamingdog has joined #ruby
<ahri> hi, i'm using Guard and wondered if there's a way to output after a task has finished? i'm using guard-rake actually - i just want to emit a "Done!" message so i know rake has finished doing its thing
<ahri> i tried callback(:stop) { puts "Done!" }, but that doesn't appear to work the way i expected
<eam> I'm teaching someone ruby, their level of experience is light bash scriping. ruby koans is a little too advanced; is there any more suitable material?
<postmodern> having trouble getting foreman exported systemd services running correctly
maloik has quit [Remote host closed the connection]
<eam> making up stuff I remember from high school programming seems to be doing well enough, but I might do more of this so I'm curious
maloik has joined #ruby
beatdown has quit [Quit: ZNC 1.6.1 - http://znc.in]
synthroid has joined #ruby
synthroi_ has joined #ruby
jottr has joined #ruby
saslam has quit [Ping timeout: 260 seconds]
claudiuinberlin has quit []
conta has joined #ruby
Ishido has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
allomov has quit [Remote host closed the connection]
synthroid has quit [Ping timeout: 244 seconds]
blackwind_123 has joined #ruby
tomphp has quit [Ping timeout: 245 seconds]
elifoster has joined #ruby
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub_ has joined #ruby
blackwind_123 has quit [Ping timeout: 260 seconds]
ruby_ has joined #ruby
<havenwood> eam: tryruby.org is probably a pretty nice lead-in to the koans
<havenwood> beginner folk seem to have an easy time with Chris Pine's Learn to Program as well
ruby_ has quit [Remote host closed the connection]
ruby_ has joined #ruby
yardenbar has quit [Ping timeout: 260 seconds]
tdy1 has joined #ruby
Blueby_ has joined #ruby
Guest66 has joined #ruby
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Blueby has quit [Read error: Connection reset by peer]
Blueby_ is now known as Blueby
ruby_ has quit [Read error: Connection reset by peer]
yardenbar has joined #ruby
Ishido has quit [Remote host closed the connection]
zerowaitstate has joined #ruby
tax has joined #ruby
<eam> havenwood: passed along, thanks. tryruby.org looks great
tubuliferous has quit [Ping timeout: 252 seconds]
nitric has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
postmodern has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Ping timeout: 244 seconds]
wugy has quit []
senayar has quit []
mim1k|work has quit [Ping timeout: 245 seconds]
Ishido has joined #ruby
mim1k|work has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
<eam> has anyone made a gem for doing locking via binding a port?
disconnekted has quit [Remote host closed the connection]
wldcordeiro has quit [Quit: WeeChat 1.4]
ichkv has joined #ruby
wldcordeiro has joined #ruby
fullofcaffeine has joined #ruby
ichkv1 has quit [Ping timeout: 250 seconds]
<dminuoso_> eam: Use plain files like the rest of us? :S
mim1k|work has quit [Ping timeout: 252 seconds]
akkad has joined #ruby
matp has quit [Quit: ZZzzzZz...]
blackmesa has joined #ruby
mim1k|work has joined #ruby
ruby_ has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 252 seconds]
saneax is now known as saneax-_-|AFK
matp has joined #ruby
fullofcaffeine has joined #ruby
<eam> dminuoso_: ick
gingray has quit [Ping timeout: 256 seconds]
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
postmodern has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
synthroid has joined #ruby
fullofcaffeine has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
skweek has joined #ruby
rakm has joined #ruby
renderful has joined #ruby
synthroi_ has quit [Ping timeout: 252 seconds]
fullofcaffeine has joined #ruby
Beams has quit [Quit: .]
finisherr has joined #ruby
yardenbar has joined #ruby
flashpoi_ has joined #ruby
blackmesa has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
patarr has joined #ruby
gusrub_ has quit [Remote host closed the connection]
flashpoint9 has quit [Ping timeout: 245 seconds]
go|dfish has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
allomov has joined #ruby
go|dfish has joined #ruby
fullofca_ has joined #ruby
yardenbar has quit [Ping timeout: 245 seconds]
fullofca_ has quit [Remote host closed the connection]
xall has joined #ruby
fullofcaffeine has joined #ruby
Humdai has quit [Ping timeout: 252 seconds]
Guest66 has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub_ has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest66 is now known as MOEBG
tomphp has joined #ruby
claudiuinberlin has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
fullofca_ has joined #ruby
elifoster has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
baweaver has quit [Max SendQ exceeded]
baweaver has joined #ruby
aswen has joined #ruby
elenatanasoiu has quit [Ping timeout: 265 seconds]
ferr has quit [Quit: WeeChat 1.5]
tvw has quit [Read error: Connection reset by peer]
psmmr has quit [Remote host closed the connection]
gusrub_ has quit [Ping timeout: 265 seconds]
ichkv1 has joined #ruby
flashpoint9 has joined #ruby
ichkv has quit [Ping timeout: 260 seconds]
mim1k|work has quit [Ping timeout: 250 seconds]
<asahi> havenwood: thanks for those examples earlier. I'll try them out
flashpoi_ has quit [Ping timeout: 245 seconds]
whathappens has joined #ruby
chopin has quit [Remote host closed the connection]
flashpoi_ has joined #ruby
chopin has joined #ruby
jaequery has joined #ruby
SteenJobs has joined #ruby
flashpoint9 has quit [Ping timeout: 245 seconds]
TomyWork has quit [Ping timeout: 256 seconds]
Devalo has quit [Remote host closed the connection]
whathappens has quit [Remote host closed the connection]
chopin has quit [Ping timeout: 252 seconds]
whathappens has joined #ruby
rodfersou has quit [Quit: leaving]
nankyokusei has joined #ruby
ichkv1 has quit [Remote host closed the connection]
elaptics has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
SteenJobs has quit [Quit: SteenJobs]
flashpoint9 has joined #ruby
SteenJobs has joined #ruby
flashpoi_ has quit [Ping timeout: 245 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
firstdayonthejob has joined #ruby
GodFather has quit [Ping timeout: 265 seconds]
flashpoi_ has joined #ruby
flashpoint9 has quit [Ping timeout: 245 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
patarr has quit [Quit: patarr]
roamingdog has quit [Remote host closed the connection]
gusrub_ has joined #ruby
roamingdog has joined #ruby
gusrub_ is now known as gusrub
disconnekted has joined #ruby
ziarkaen has quit [Ping timeout: 260 seconds]
lenwood has joined #ruby
roamingdog has quit [Read error: Connection reset by peer]
gusrub has quit [Remote host closed the connection]
ocbtec has joined #ruby
elastix has joined #ruby
hays has quit [Ping timeout: 268 seconds]
Alina-malina has quit [Ping timeout: 248 seconds]
flashpoint9 has joined #ruby
Ishido has quit [Ping timeout: 265 seconds]
hays has joined #ruby
flashpoi_ has quit [Ping timeout: 245 seconds]
TPug has joined #ruby
nowhereman has quit [Ping timeout: 244 seconds]
ruby_ has quit []
rcvalle has joined #ruby
cajone has quit [Remote host closed the connection]
marr has joined #ruby
xall has quit [Ping timeout: 256 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has joined #ruby
Alina-malina has joined #ruby
firstdayonthejob has quit [Ping timeout: 260 seconds]
splud has joined #ruby
AndrewIsHere has joined #ruby
firstdayonthejob has joined #ruby
allomov has quit [Remote host closed the connection]
chopin has joined #ruby
brendan- has joined #ruby
MOEBG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ishido has joined #ruby
Guest66 has joined #ruby
flashpoi_ has joined #ruby
sagax has joined #ruby
<sagax> hi all!
<sagax> how to iterating very big array?
flashpoint9 has quit [Ping timeout: 245 seconds]
<apeiros> sagax: Array#each
<sagax> apeiros: it's true, but if array very very big?
<apeiros> why do you think Array#each would not be sensible for big arrays?
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest66 has quit [Client Quit]
<sagax> i think, that memory will be overload
binaryplease has joined #ruby
<apeiros> and why would that be?
<sagax> I want to control this process
gusrub has joined #ruby
lxsameer has joined #ruby
<apeiros> ok. you still fail to tell me what's wrong with Array#each.
<havenwood> sagax: What do you want to control? What about it? How does #each not suffice? Have an example test case demonstrating your problem?
Siegfried has joined #ruby
SeepingN has joined #ruby
<sagax> hm, well, ok
<sagax> I will use meanwhile each method,
asahi has quit [Quit: leaving]
<apeiros> sagax: is there a reason you don't answer our questions?
bluOxigen has quit [Ping timeout: 244 seconds]
flashpoint9 has joined #ruby
<sagax> one moment, answering
xall has joined #ruby
Siegfried has quit [Client Quit]
habitullence_ has joined #ruby
dopamean_ has joined #ruby
flashpoi_ has quit [Ping timeout: 245 seconds]
habitullence has quit [Ping timeout: 258 seconds]
habitullence_ is now known as habitullence
<bovis> I'm unsure of how to handle dedicated user sessions. The biggest issue I'm facing is persistent state across changing users who can essentially log in and out multiple times, making changes to the files they own. I can share the whole program if necessary, but hopefully these specifics can get things started: https://gist.github.com/anonymous/46da980e46f81061c18a7fa05e2e3b5c
harai has joined #ruby
<bovis> Apologies in advance for the length. Any help is appreciated.
arashb has joined #ruby
<sagax> "What do you want to control?" - I wanted to work with the big array as with a set of small array
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Devalo has joined #ruby
<sagax> "How does #each not suffice?" - i thinked, that each method with big array got overload memory
<bovis> sagax: Like array = [[1, 2, 3], [4, 5, 6]] ?
<sagax> no, just simple list of active record models
symm- has joined #ruby
<apeiros> sagax: no, it does not. why do you think it would?
<apeiros> the only thing which uses up a lot of memory when iterating a large array is the array itself.
rakm has joined #ruby
TPug has joined #ruby
<apeiros> so if you've got memory issues, then what you do is you try to avoid having a large array in the first place.
nowhereman has joined #ruby
ramfjord has joined #ruby
last_staff has joined #ruby
Siegfried has joined #ruby
ta__ has quit [Remote host closed the connection]
ta_ has joined #ruby
roamingdog has joined #ruby
Derperperd has joined #ruby
<sagax> havenwood: thanks, i looked it,
dojo2 has joined #ruby
<sagax> well, i back to next time, i will with examples
<sagax> but batches will help me
<djellemah> sagax: Sequel has streaming result sets for postgres. Not sure about mysql.
TheCubeLord has joined #ruby
TheCubeLord has quit [Changing host]
TheCubeLord has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
harushimo has joined #ruby
lenwood has quit [Ping timeout: 250 seconds]
<harushimo> I'm trying to install ruby with home-brew or rvm. I can get an error on automake
mtkd has joined #ruby
<harushimo> its says installing automaker and then it errors out
allomov has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
<xall> harushimo: the specific error is probably relevant for getting help. you might try rbenv rather than rvm
<harushimo> i'll post it on a gist. I'm trying one more time
NTrash has joined #ruby
ModusPwnens has joined #ruby
<ModusPwnens> Does anyone know why ruby would resolve different namespaces for classes on different computers?
gusrub has quit [Remote host closed the connection]
<ModusPwnens> I wrote a class that extended another ruby class without the full explicit namespace and it worked fine for me, but it fails for one other engineer on our team and I have no idea why. Am I missing something about how ruby namespaces work?
bocaneri has quit [Read error: Connection reset by peer]
roamingdog has quit [Remote host closed the connection]
ziarkaen has joined #ruby
roamingdog has joined #ruby
gusrub has joined #ruby
benlieb has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
<havenwood> ModusPwnens: Same Ruby version and engine?
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
Macaveli has joined #ruby
roamingdog has quit [Remote host closed the connection]
yardenbar has joined #ruby
roamingdog has joined #ruby
benlieb has quit [Client Quit]
benlieb has joined #ruby
roamingdog has quit [Remote host closed the connection]
postmodern has quit [Ping timeout: 250 seconds]
rodfersou has joined #ruby
roamingdog has joined #ruby
<havenwood> harushimo: brew update && brew upgrade && rvm get head && rvm autolibs enable && rvm install ruby
patarr has quit [Quit: patarr]
<harushimo> I've been doing that
<harushimo> I'll try again
roamingdog has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
<havenwood> harushimo: Or here's a very nice setup for OS X and Homebrew: http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/
<harushimo> okay
<harushimo> thank you
gusrub has joined #ruby
allomov has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Snowy has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
ziarkaen has quit [Ping timeout: 244 seconds]
DTZUZU has joined #ruby
<DTZUZU> in #linux
NTrash has quit [Quit: Konversation terminated!]
NTrash has joined #ruby
<ModusPwnens> havenwood: Same ruby version. What do you mean by engine?
ben_ has joined #ruby
<havenwood> ModusPwnens: Like "ruby" or "jruby"
<havenwood> >> RUBY_ENGINE
<ruby[bot]> havenwood: # => "ruby" (https://eval.in/663329)
<harushimo> havenswood: do I need to specify the ruby version or does the latest get install by default?
<ModusPwnens> Oh yes. We are both just using ruby.
jottr has joined #ruby
<havenwood> ModusPwnens: Hmm, maybe different versions of gems installed? Or does it not have deps or you're using a Gemfile.lock?
djellemah_ has joined #ruby
jaruga has quit [Quit: jaruga]
<harushimo> havenswood: thank you so much
starmix has joined #ruby
<ModusPwnens> havenwood: No dependencies. There's no gemfile.
ben______ has quit [Ping timeout: 252 seconds]
<havenwood> harushimo: you're welcome
nuclearsandwich has quit [Read error: Connection reset by peer]
Torkable has joined #ruby
<ModusPwnens> havenwood: Frankly, after seeing his error, I'm surprised it worked on anyone's computers at all because the implicit namespace appears to be wrong anyways.
<havenwood> harushimo: the latest gets installed by default, if you mean the RVM command!
nuclearsandwich has joined #ruby
<havenwood> ModusPwnens: hmm
dviola has joined #ruby
rodfersou is now known as rodfersou|afk
<xall> ModusPwnens: do you have tests? is it in git? try cloning fresh and running tests
<havenwood> harushimo: for ruby-install it's the same and you can even check for newer Rubies from the ruby-versions repo with: ruby-install --latest ruby
<harushimo> havenswood: I was reading there is two ways right.
<harushimo> is rvm install --latest ruby. Same result essentially
<harushimo> one way is rvm install ruby-2.3.0 or the second way
<havenwood> harushimo: If you `rvm get head` it should be Ruby 2.3.1, the latest.
redpants has joined #ruby
<havenwood> harushimo: Do use 2.3.1 instead of 2.3.0.
<harushimo> okay thank you
<starmix> ÷
<havenwood> harushimo: rvm --default use 2.3.1
<harushimo> that command I know
cdg has quit [Remote host closed the connection]
lenwood has joined #ruby
frankiee_ has joined #ruby
dojo2 has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
tcrypt has joined #ruby
zerowaitstate has quit [Quit: leaving]
redlegion has quit [Read error: Connection reset by peer]
redlegion has joined #ruby
patarr has joined #ruby
Rodya_ has joined #ruby
allomov has joined #ruby
allomov has quit [Read error: Connection reset by peer]
aufi has quit [Quit: Leaving]
johnbat26 has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
allomov has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
blackwind_123 has joined #ruby
myntcake has joined #ruby
redlegion has quit [Read error: Connection reset by peer]
vuoto has joined #ruby
gingray has joined #ruby
starmix_ has joined #ruby
starmix has quit [Remote host closed the connection]
loincloth has quit []
redlegion has joined #ruby
whathappens has quit [Remote host closed the connection]
starmix_ has quit [Client Quit]
whathappens has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
elenatanasoiu has joined #ruby
Guest66 has joined #ruby
rodfersou|afk is now known as rodfersou
elenatanasoiu has quit [Client Quit]
jbeeze has quit [Ping timeout: 252 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
johnmilton has quit [Remote host closed the connection]
lenwood has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
jenrzzz has joined #ruby
cajone has joined #ruby
dnicole has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
jaguarmagenta has quit [Ping timeout: 260 seconds]
lenwood has joined #ruby
TomyLobo has joined #ruby
igniting has joined #ruby
harushimo has quit [Quit: This computer has gone to sleep]
bturker has joined #ruby
Akuma has quit [Read error: Connection reset by peer]
Akuma has joined #ruby
NTrash has quit [Quit: Konversation terminated!]
redpants has quit [Ping timeout: 252 seconds]
harushimo has joined #ruby
hnanon has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
ur5us has joined #ruby
ur5us_ has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
ur5us_ has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
ur5us_ has joined #ruby
ur5us has joined #ruby
lenwood has quit [Read error: Connection reset by peer]
manjaro-kde5 has joined #ruby
jaguarmagenta has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
yardenbar has quit [Ping timeout: 260 seconds]
rakm has joined #ruby
millerti has quit [Quit: Textual IRC Client: www.textualapp.com]
gheegh has joined #ruby
nuclearsandwich has quit [Read error: Connection reset by peer]
starmix has joined #ruby
nuclearsandwich has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
whathappens has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
benlieb has quit [Quit: benlieb]
johnmilton has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
Devalo has quit [Remote host closed the connection]
harushimo has quit [Quit: This computer has gone to sleep]
allomov has quit [Remote host closed the connection]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
claudiuinberlin has quit []
postmodern has joined #ruby
postmodern has quit [Remote host closed the connection]
arashb has quit [Ping timeout: 256 seconds]
roamingdog has joined #ruby
LoneHerm_ has joined #ruby
Dimik has joined #ruby
JeanCarloMachado has joined #ruby
Snowy has quit [Remote host closed the connection]
harushimo has joined #ruby
Snowy has joined #ruby
elifoster has joined #ruby
yardenbar has joined #ruby
starmix has quit [Remote host closed the connection]
dnicole has quit [Remote host closed the connection]
djbkd has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
machinewar has joined #ruby
conta has quit [Ping timeout: 250 seconds]
whathappens has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 256 seconds]
Snowy has quit [Ping timeout: 252 seconds]
whathappens has joined #ruby
manjaro-kde5 has quit [Ping timeout: 244 seconds]
bmurt has joined #ruby
yeticry has joined #ruby
vikaton has joined #ruby
tvw has joined #ruby
whathappens has quit [Ping timeout: 250 seconds]
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kicksled has joined #ruby
harushimo has quit [Quit: This computer has gone to sleep]
jenrzzz has quit [Ping timeout: 265 seconds]
chouhoulis has quit [Remote host closed the connection]
moneylotion has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
myntcake has quit [Ping timeout: 256 seconds]
dviola has quit [Quit: WeeChat 1.6]
last_staff has quit [Quit: last_staff]
agent_white has joined #ruby
hahuang65 has joined #ruby
dviola has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
moneylotion has joined #ruby
exchgr has joined #ruby
ramfjord has joined #ruby
Guest66 has joined #ruby
patarr has quit [Quit: patarr]
disconnekted has quit [Ping timeout: 260 seconds]
jphase has quit [Remote host closed the connection]
nowhereman has quit [Ping timeout: 260 seconds]
machinewar has quit [Remote host closed the connection]
harushimo has joined #ruby
nikivi has joined #ruby
cdg has joined #ruby
vuoto has quit [Quit: Lost terminal]
spiette has quit [Remote host closed the connection]
NTrash has joined #ruby
jphase has joined #ruby
fullofca_ has quit [Remote host closed the connection]
ericx2x is now known as sleezball
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
JeanCarloMachado has quit [Remote host closed the connection]
patarr has joined #ruby
jackjackdripper has quit [Ping timeout: 256 seconds]
lifted has quit [Remote host closed the connection]
spiette has joined #ruby
saneax-_-|AFK is now known as saneax
firstdayonthejob has quit [Quit: WeeChat 1.6]
ldnunes has quit [Quit: Leaving]
bturker has joined #ruby
ziarkaen has joined #ruby
ace05 has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
ace05 has joined #ruby
harushimo has quit [Quit: This computer has gone to sleep]
howdoi has quit [Quit: Connection closed for inactivity]
bturker has quit [Ping timeout: 256 seconds]
ziarkaen has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
nikivi has quit [Quit: irc]
Contigi has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
ChiefAlexander has quit [Remote host closed the connection]
blackmesa has joined #ruby
roamingdog has quit [Remote host closed the connection]
<xall> as someone who's fairly new to ruby and the entire ecosystem, is there a good way to tell which framework a method is from? for example i'm in a spec, looking at `team = create(:team, name: "A fine team")`
roamingdog has joined #ruby
<xall> my guess is that it's either rails or rspec
<xall> `create` that is
rodfersou is now known as rodfersou|dinner
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
harushimo has joined #ruby
JeanCarloMachado has quit [Ping timeout: 265 seconds]
roamingdog has quit [Remote host closed the connection]
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Siegfried has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
Guest66 has joined #ruby
patarr has quit [Quit: patarr]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 256 seconds]
roamingdog has joined #ruby
spiette has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
<havenwood> xall: See: method(:create).source_location
roamingdog has joined #ruby
ChiefAlexander has joined #ruby
<havenwood> ?pry xall
<ruby[bot]> xall: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
Siegfried has joined #ruby
<havenwood> xall: You might also check: method(:create).owner
redpants has joined #ruby
<havenwood> xall: Or: method(:create).inspect
hahuang61 has joined #ruby
jackjackdripper has joined #ruby
<havenwood> p method :create
saslam has joined #ruby
djellemah_ has quit [Ping timeout: 245 seconds]
hutch34 has quit [Ping timeout: 256 seconds]
aswen has quit [Quit: WeeChat 1.5]
harushimo has quit [Quit: This computer has gone to sleep]
pawnbox has joined #ruby
JeanCarloMachado has joined #ruby
fullofcaffeine has joined #ruby
saslam has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
lxsameer has quit [Quit: WeeChat 1.6]
patarr has joined #ruby
t-richards has joined #ruby
saneax is now known as saneax-_-|AFK
pwnd_nsfw` has joined #ruby
<xall> havenwood: thanks
hinbody has quit [Quit: leaving]
Rodya_ has quit [Remote host closed the connection]
Siegfried has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Robtop__ has quit [Ping timeout: 245 seconds]
whathappens has joined #ruby
saneax-_-|AFK is now known as saneax
sol1d has joined #ruby
jenrzzz has joined #ruby
synthroid has quit []
t-richards has quit [Quit: Leaving]
mozzarella has quit [Read error: Connection reset by peer]
mozzarel1 has joined #ruby
whathappens has quit [Ping timeout: 260 seconds]
Derperperd has quit [Quit: Derperperd]
DaniG2k has joined #ruby
<epitron> >> block = -> { puts "yay" }; 5.times &block
<ruby[bot]> epitron: # => wrong number of arguments (given 1, expected 0) (ArgumentError) ...check link for more (https://eval.in/663388)
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<epitron> that used to work
Coldblackice has joined #ruby
Coldblackice has quit [Client Quit]
<epitron> is there a new way to give a block to a block taking method?
<DaniG2k> hello all
<dminuoso_> epitron: dont use a lambda but a proc.
<epitron> dminuoso_: ahh... that's what changed?
<dminuoso_> epitron: no, nothing changed.
<dminuoso_> epitron: you probably used proc{} before
<epitron> something did change
<epitron> hmm
<dminuoso_> epitron: No.
<manveru> >> b = ->(_){ puts "yay" }; 5.times(&b)
<ruby[bot]> manveru: # => yay ...check link for more (https://eval.in/663392)
<dminuoso_> 18>> block = -> { puts "yay" }; 5.times &block
<ruby[bot]> dminuoso_: # => /tmp/execpad-269b9b77ac37/source-269b9b77ac37:2: syntax error, unexpected '>' ...check link for more (https://eval.in/663394)
<dminuoso_> 19>> block = -> { puts "yay" }; 5.times &block
<ruby[bot]> dminuoso_: # => wrong number of arguments (1 for 0) (ArgumentError) ...check link for more (https://eval.in/663395)
<dminuoso_> epitron: As long as we have had lambdas.
<epitron> manveru: ohhh
<dminuoso_> epitron: Or just use a proc you know..
<epitron> heh, that makes more sense
<DaniG2k> I was hoping someone could help out. I have been using Ruby and Rails as a hobbyist for a while but haven't been able to get a Rails dev job for the life of me. Would anyone be able to suggest what I can do or improve?
<DaniG2k> my Github page is: https://github.com/DaniG2k?tab=repositories
<dminuoso_> DaniG2k: Go to github, find a project, and controbute
<mikecmpbll> find out why you've not been able to get a job.
<dminuoso_> That also helps. ;-)
harushimo has joined #ruby
<DaniG2k> mikecmpbll: hello :)
<mikecmpbll> hi :)
ycyclist has quit [Ping timeout: 260 seconds]
<DaniG2k> I think they just want more experience
<DaniG2k> but I don't know what to improve exactly
<DaniG2k> I went through the entire Rails 4 book https://github.com/DaniG2k/ticketee
<DaniG2k> I have an online blog in Rails 5 https://github.com/DaniG2k/asia-gazette
<mikecmpbll> what sort of jobs are you going for if they want experience
<DaniG2k> I wrote a mini-crawler gem: https://github.com/DaniG2k/RubyCrawler
<DaniG2k> junior to mid level
<DaniG2k> but even the junior roles...they're expecting like 2 years
<DaniG2k> that's in London at least :/ it's ridiculous
saslam has joined #ruby
whathappens has joined #ruby
<DaniG2k> another gem I have: https://github.com/DaniG2k/korean_name
<mikecmpbll> presumably you don't have a comp sci degree
mozzarel1 is now known as mozzarella
<DaniG2k> a little app that pings some stupid API https://github.com/DaniG2k/travel_time
<DaniG2k> nope I don't
<DaniG2k> but I've worked as a sys-admin and consultalt for 3.5 years
<DaniG2k> so I can't figure out why I can't go into ruby/rails development
<DaniG2k> consultant*
<mikecmpbll> im surprised you're finding it difficult tbh. not many graduate/junior devs we recruit have ever written ruby
<DaniG2k> its like impossible I've been rejected a trillion times
<DaniG2k> i might be underselling myself during the interview
<DaniG2k> i answer all their questions correctly :/
<dminuoso_> DaniG2k: You get into interviews?
<dminuoso_> DaniG2k: If so, then it cant be your resume.
<DaniG2k> yep
<dminuoso_> Then your resume is not the issue.
<dminuoso_> Clearly.
<dminuoso_> The CV + stuff is just to buy yourself a ticket into the interview.
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<DaniG2k> I got to the 5th routh for one company a few days ago, and to the 3rd roudn for another company in japan yesterday
<DaniG2k> but they drop me at the end :/
<mikecmpbll> fair point.
fullofcaffeine has quit [Remote host closed the connection]
<DaniG2k> its like...dropping after 5 interviews is a bit of a di** move :/
fullofcaffeine has joined #ruby
<mikecmpbll> lol 5
<manveru> hehe, happened to me too :)
mountpoint has joined #ruby
<DaniG2k> and 3 for another company
<DaniG2k> just got the response today
<DaniG2k> they're like "sorry we had the impression you were more senior" @_@ but I told them exactly what the deal was
saslam has quit [Ping timeout: 244 seconds]
<mikecmpbll> sounds like you're going for too senior roles
<manveru> what's more junior than junior dev?
<DaniG2k> he even asked me what evaluates to false in Javascript and I told him the 6 falsey values
<mikecmpbll> as someone who's not worked as a dev before, you're unlikely to get anything beyond what the graduate level
zeroDi has joined #ruby
<DaniG2k> its kind of stupid
<DaniG2k> oh well
<DaniG2k> maybe I need to contrib to open source more
<manveru> well, one advice i can give you... don't treat the interview like a quiz where you get in with the right answers
<manveru> try to interview them more than they you
<mikecmpbll> from an employers perspective, your self-learning will probably just about put you on a par with someone who's done a degree.
harushimo has quit [Quit: This computer has gone to sleep]
<DaniG2k> mikecmpbll: exactly
nowhereman has joined #ruby
<DaniG2k> mikecmpbll: most of the people with comp sci degrees at my current company dont know how to use Ansible/Vagrant/Sensu/Openresty and the other stuff I deal with
<DaniG2k> part of the issue is I want to move away from DevOps cause its boring
<mikecmpbll> indeed, that's your job :p
chouhoulis has quit [Ping timeout: 252 seconds]
<manveru> :)
JeanCarloMachado has quit [Ping timeout: 256 seconds]
<DaniG2k> bah
ModusPwnens has quit [Quit: Page closed]
<DaniG2k> I will just go into gardening
<manveru> if you find devops boring, have you met nix?
<DaniG2k> who's that?
<mikecmpbll> aye, nothing wrong with gardening.
<DaniG2k> XD
<DaniG2k> jeez people are still using Bootstrap 3?
yardenbar has quit [Ping timeout: 260 seconds]
<manveru> sure
<manveru> it's slightly better than using plain text
<DaniG2k> hahah
harushimo has joined #ruby
<DaniG2k> what's a gem that could use some love?
<DaniG2k> that isn't massively complicated
bturker has joined #ruby
ziarkaen has joined #ruby
<manveru> that depends on what you think is complicated...
runa has joined #ruby
<DaniG2k> touche
nettoweb has quit [Ping timeout: 260 seconds]
lenwood has joined #ruby
<manveru> all my gems need some love for example
flashpoi_ has joined #ruby
<manveru> but there's almost nobody using them anyway
<DaniG2k> link plz?
<DaniG2k> :O
flashpoi_ has quit [Remote host closed the connection]
<runa> heyas. I would like to generate a zipfile incrementally (ie, not generate it on disk and later compress it). I've checked Zip#get_output_stream but it seems it generates a temp file and compresses it afterwards. any hints? (I cannot use gzip, only zip here ;(
nettoweb has joined #ruby
<mikecmpbll> DaniG2k : https://www.codetriage.com/ might be helpful
<manveru> hmm i should clean up
<DaniG2k> thanks
blackmesa has quit [Ping timeout: 250 seconds]
flashpoint9 has quit [Ping timeout: 245 seconds]
nankyokusei has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
ziarkaen has quit [Ping timeout: 245 seconds]
<manveru> been thinking forever about updating ffi-tk for example, but it's complicated as hell
xall has quit [Ping timeout: 260 seconds]
<runa> ZipTricks! great
runa has quit [Quit: leaving]
symm- has quit [Quit: Leaving...]
nankyokusei has quit [Ping timeout: 256 seconds]
jpterry has quit [Ping timeout: 248 seconds]
<DaniG2k> thanks guys
<DaniG2k> will look
ChiefAlexander has quit [Remote host closed the connection]
elastix has quit [Quit: Leaving]
ramortegui has quit [Quit: Ex-Chat]
jpterry has joined #ruby
NTrash has quit [Quit: Konversation terminated!]
saslam has joined #ruby
nowhereman has quit [Ping timeout: 260 seconds]
jottr has quit [Quit: WeeChat 1.5]
yfeldblu_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
bturker has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saslam has quit [Ping timeout: 245 seconds]
elifoster has quit [Quit: class]
ccmcdee-sfc has joined #ruby
harushimo has quit [Quit: Leaving]
TPug has joined #ruby
TomyLobo has quit [Ping timeout: 250 seconds]
Akuma has quit [Read error: Connection reset by peer]
Akuma has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
anuxivm has joined #ruby
ccolorado has left #ruby [#ruby]
[Butch] has quit [Quit: I'm out . . .]
anuxivm has left #ruby [#ruby]
jcao219 has joined #ruby
Rodya_ has joined #ruby
ace05 has quit [Read error: Connection reset by peer]
ace05 has joined #ruby
JeanCarloMachado has joined #ruby
Rodya_ has quit [Ping timeout: 245 seconds]
flashpoint9 has joined #ruby
patarr has quit [Quit: patarr]
patarr has joined #ruby
gnufied has quit [Ping timeout: 245 seconds]
SteenJobs has quit [Quit: SteenJobs]
chrisja has joined #ruby
nikivi has joined #ruby
patarr has quit [Client Quit]
dminuoso_ has quit [Ping timeout: 250 seconds]
Azure has quit [Ping timeout: 252 seconds]
JoshS has quit [Quit: Leaving]
nowhereman has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
quazimodo has joined #ruby
xall has joined #ruby
DaniG2k has quit [Quit: leaving]
ramfjord has joined #ruby
symm- has joined #ruby
symm- has quit [Client Quit]
symm- has joined #ruby
Siegfried has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
jphase_ has joined #ruby
eljimmy has joined #ruby
Blueby has quit [Quit: Blueby]
lel has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jphase has quit [Ping timeout: 250 seconds]
Madplatypus has joined #ruby
CloCkWeRX has joined #ruby
nikivi has quit [Quit: irc]
mikecmpbll has quit [Quit: inabit. zz.]
Blueby has joined #ruby
Azure has joined #ruby
jphase_ has quit [Ping timeout: 252 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
Authenticator has joined #ruby
Blueby has quit [Client Quit]
<Authenticator> Is there a library that supports RSA + OAEP with SHA256?
patarr has joined #ruby
CloCkWeRX has quit [Ping timeout: 256 seconds]
Blueby has joined #ruby
jottr has joined #ruby
Blueby has quit [Client Quit]
djbkd has quit [Ping timeout: 256 seconds]
lel has quit [Quit: WeeChat 1.6]
patarr has quit [Ping timeout: 265 seconds]
y2mq37 has joined #ruby
Blueby has joined #ruby
harushimo has joined #ruby
biberu has quit []
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhereman has quit [Ping timeout: 250 seconds]
moeSizlak has joined #ruby
<moeSizlak> why is it taht runtime something is increating exponentially the more times i loop
tyang has quit [Read error: Connection reset by peer]
<Radar> moeSizlak: code plzkthx
<Radar> toofast
<moeSizlak> if i perform the outer loop 10x more times it takes like 40x longer to run
<bovis> Anyone have suggestions for small (~250-500 lines) ruby programs I can read that would be good for showing me program and file structure as a beginner?
ramfjord has quit [Ping timeout: 260 seconds]
<havenwood> moeSizlak: a is getting bigger, yeah? and you're iterating through the collection four times, once with each #include?
gingray has quit [Ping timeout: 250 seconds]
<elomatreb> bovis: Maybe not exactly relevant for program/file structure, but I found it extremely useful to read things like singular ActiveSupport (Rails) helpers
<moeSizlak> havenwood, no
ramfjord has joined #ruby
<moeSizlak> the array is emptied each time, a=[]
<bovis> elomatreb: Best to look at now, when I'm new to ruby, or wait until I dive into rails?
<elomatreb> bovis: That's why I recommended the helpers, they don't really have direct ties to Rails
Bellthoven has joined #ruby
<havenwood> bovis: You don't have to understand everything you read. It's nice to get accustomed to what good code looks like.
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<bovis> elomatreb, havenwood: thanks
flashpoint9 has quit [Remote host closed the connection]
codebridge001 has joined #ruby
voker57 has quit [Remote host closed the connection]
ace05 has quit [Remote host closed the connection]
Rodya_ has joined #ruby
CloCkWeRX has joined #ruby
ace05 has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
ace05 has quit [Read error: Connection reset by peer]
ace05 has joined #ruby
Bellthoven has quit []
jud has quit [Quit: Leaving]
polishdub has quit [Quit: Leaving]
agent_white has quit [Quit: backinnabit]
Rodya_ has quit [Ping timeout: 245 seconds]
voker57 has joined #ruby
binaryplease has quit [Quit: binaryplease]
dminuoso_ has joined #ruby
firstdayonthejob has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
finisherr has quit [Quit: finisherr]
firstdayonthejob has quit [Ping timeout: 256 seconds]
dminuoso_ has quit [Ping timeout: 256 seconds]
tdy1 has quit [Ping timeout: 245 seconds]
Yzguy has joined #ruby
Yzguy has quit [Client Quit]
ruby-lang584 has joined #ruby
tvw has quit []
tvw has joined #ruby
lenwood has quit [Ping timeout: 256 seconds]
Sammichmaker has joined #ruby
Blueby has quit [Quit: Blueby]
AndrewIsHere has quit []
marsjaninzmarsa has quit [Read error: Connection reset by peer]
Marsjan has joined #ruby
ruby-lang584 has quit [Ping timeout: 260 seconds]
Marsjan is now known as marsjaninzmarsa
tubuliferous has joined #ruby
Guest66 has joined #ruby
wldcordeiro has quit [Ping timeout: 256 seconds]
flashpoint9 has joined #ruby
JeanCarloMachado has joined #ruby
bruce_lee has quit [Remote host closed the connection]
symm- has quit [Quit: Leaving...]
thrustix has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
ruby-lang884 has joined #ruby
Bellthoven has joined #ruby
meshsmith has joined #ruby
nankyokusei has joined #ruby
ramfjord_ has joined #ruby
err_ok has quit [Quit: Connection closed for inactivity]
SCHAAP137 has quit [Quit: Leaving]
ruby-lang884 has quit [Ping timeout: 260 seconds]
tubuliferous has quit [Ping timeout: 260 seconds]
SJr has quit [Ping timeout: 258 seconds]
<al2o3-cr> >> require 'fiddle'; include Fiddle; TheEnd = Class.new; G = Class.new; Pointer[dlwrap(Array)][(2<<3),(2<<2)] = -Pointer[dlwrap(TheEnd)]; Array.superclass
<ruby[bot]> al2o3-cr: # => Object (https://eval.in/663401)
jottr has quit [Quit: WeeChat 1.5]
ramfjord has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 260 seconds]
gusrub has quit [Read error: Connection reset by peer]
rodfersou|dinner is now known as rodfersou
solocshaw has joined #ruby
gusrub has joined #ruby
DLSteve has joined #ruby
<al2o3-cr> smart eval'in
djbkd has joined #ruby
<al2o3-cr> unsmart smarties
ResidentBiscuit has joined #ruby
ramfjord_ has quit [Ping timeout: 256 seconds]
quazimodo has quit [Ping timeout: 265 seconds]
quazimodo has joined #ruby
jcao219 has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
Siegfried has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
griffindy has joined #ruby
gusrub has quit [Remote host closed the connection]
gnufied has joined #ruby
gusrub has joined #ruby
SJr has joined #ruby
Azure has quit [Ping timeout: 260 seconds]
Azure|dc has joined #ruby
ocbtec has quit [Quit: leaving]
kiwiiusa has joined #ruby
<kiwiiusa> i would like to use vagrant to set everything up a ruby on rails working environment what is a good way to go to get everything up and running in no time?
wldcordeiro has joined #ruby
_sfiguser has joined #ruby
* kiwiiusa laughs at him for breaking his back for pulling his back
koooge has joined #ruby
ramfjord has joined #ruby
harushimo has quit [Quit: This computer has gone to sleep]
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Quintasan has joined #ruby
malconis has quit [Ping timeout: 252 seconds]
Rodya_ has joined #ruby
<Quintasan> https://gist.github.com/Quintasan/7c66210cd4a8dd7b204526b8f3e1799c#file-derp-rb-L43-L51 does anyone have any idea why highlighted lines DON'T delete the content?
<al2o3-cr> >> require 'fiddle'; require 'objspace'; include Fiddle; TheEnd = Class.new; ptr = Pointer[dlwrap(Array)][(2<<3),(2<<2)] = -Pointer[dlwrap(TheEnd)]; ObjectSpac._id2ref(dlunwrap(ptr))
<ruby[bot]> al2o3-cr: # => uninitialized constant ObjectSpac (NameError) ...check link for more (https://eval.in/663406)
<al2o3-cr> >> require 'fiddle'; require 'objspace'; include Fiddle; TheEnd = Class.new; ptr = Pointer[dlwrap(Array)][(2<<3),(2<<2)] = -Pointer[dlwrap(TheEnd)]; ObjectSpace._id2ref(dlunwrap(ptr))
<ruby[bot]> al2o3-cr: # => /tmp/execpad-fca39798881f/source-fca39798881f:2: [BUG] Segmentation fault at 0x00000c ...check link for more (https://eval.in/663407)
<al2o3-cr> why?
cdg has quit [Remote host closed the connection]
Rodya__ has joined #ruby
<havenwood> al2o3-cr: it's the Segmentation's fault
roamingdog has joined #ruby
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
jaykilleen has joined #ruby
hahuang65 has joined #ruby
chopin has quit [Remote host closed the connection]
harushimo has joined #ruby
Rodya_ has quit [Ping timeout: 245 seconds]
chopin has joined #ruby
Guest66 has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
arescorpio has joined #ruby
dminuoso_ has joined #ruby
Rodya__ has quit [Ping timeout: 256 seconds]
<al2o3-cr> havenwood: where has the reference gone?
roamingdog has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
ur5us_ has quit [Remote host closed the connection]
ur5us_ has joined #ruby
ur5us has joined #ruby
chopin has quit [Ping timeout: 256 seconds]
<al2o3-cr> maybe i'm looking at this at a different angle, take a proper look tomorrow