YamakasY has quit [Quit: The best revenge is massive success...]
volk_ has joined #ruby
<arubin>
Except, perhaps, in Schwartzian transforms.
<volk_>
would ARGF.each_line be good for reading enormous files?
<monsieurp>
which is why I believe Perl beats the shit out of any other programming for processing text since it does it so well :p but that's it. No math. No OO with Perl. No web apps. No.
<shevy>
monsieurp but in the example above, where is the difference between ruby and perl?
alexju has quit [Remote host closed the connection]
<jdjd>
Since so many are on here, I have a quick question. I spend about under a year learning ruby part time. I was going to move onto RoR, but am thinking about moving onto Java (learned it some in a college course I took 2 years ago. DOnt hav a CS degre though). Is that a bad idea?
sdouglas has quit [Ping timeout: 264 seconds]
<jdjd>
How do I prevent myself from forgetting ruby?
bjhaid has joined #ruby
<shevy>
volk_ possibly, as you iterate over each line
ballPointPenguin has joined #ruby
<volk_>
shevy: thats what i was thinking, just wanted somebody to confirm it
<shevy>
jdjd if you have use cases then you won't forget it
dkamioka has quit [Remote host closed the connection]
<shevy>
but if you only learn it for the sake of learning it then probably you did not need it anyway
<monsieurp>
shevy: there isn't, basically :)
jamto11_ has joined #ruby
<shevy>
there are probably some things perl can magically do that ruby can't
<shevy>
like <>
aspires has joined #ruby
<shevy>
I have to learn R for a job in a few months :(
<arubin>
shevy: I do not understand your earlier statement. Your regex example failed in Ruby.
petey has joined #ruby
<shevy>
arubin how do you come to this conclusion?
<shevy>
the warning is weird though
kwertie has joined #ruby
jxport has joined #ruby
<arubin>
shevy: Oh, I see now. It was just a warning.
<shevy>
I can't seem to do away with it :\
<monsieurp>
although I'd argue PCRE is a bit more advanced than the Ruby regex engine
<arubin>
&NAME; # Makes current @_ visible to called subroutine.
tattered has quit [Read error: Connection reset by peer]
evenix_ has joined #ruby
Celm has joined #ruby
charlies_ has joined #ruby
shaman42_ has joined #ruby
DefV_ has joined #ruby
sdouglas has quit [Ping timeout: 245 seconds]
crome_ has joined #ruby
Mohan__ has joined #ruby
xxi has joined #ruby
Freijo has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
mheld_ has joined #ruby
gigetoo_ has joined #ruby
kiki_lam1 has joined #ruby
napcae_ has joined #ruby
cj3kim_ has quit [Ping timeout: 265 seconds]
Lightsta1ker has joined #ruby
QKO_ has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
drasch has joined #ruby
agjacome_ has joined #ruby
nath_schwarz_ has joined #ruby
Es0teric_ has joined #ruby
endash__ has joined #ruby
<shevy>
man
yokel_ has joined #ruby
<shevy>
no wonder I did not get perl
<shevy>
perl is not simple!
manacit_ has joined #ruby
<dorei>
it was designed that way :D
michaeldeol has joined #ruby
sn0wb1rdz has joined #ruby
_class_ has joined #ruby
_main_ has joined #ruby
bjhaid1 has joined #ruby
<arubin>
shevy: Perl is a huge language and most Perl developers only know a fraction of it.
sambao21 has joined #ruby
<arubin>
For instance, no one calls subroutines that way.
niv_ has joined #ruby
elaptic`` has joined #ruby
<shevy>
now I understand how PHP got its design :D
samuelkadolph_ has joined #ruby
UForgotten_ has joined #ruby
spacemud_ has joined #ruby
elektronaut_ has joined #ruby
maxmanders_ has joined #ruby
sk_keeper has joined #ruby
rmill_ has joined #ruby
mgorbach_ has joined #ruby
NuckingFuts has joined #ruby
chridal_ has joined #ruby
billy_ran_away_ has joined #ruby
<arubin>
And I have seen the flip flop operator used exactly once.
pinpin404 has joined #ruby
kevinfagan has joined #ruby
Celm has quit [Ping timeout: 265 seconds]
<shevy>
hehe
quantsini has joined #ruby
Kilobyte|StupidC has joined #ruby
Solnse has quit [*.net *.split]
maroloccio has quit [*.net *.split]
Es0teric has quit [*.net *.split]
hamakn has quit [*.net *.split]
sepp2k1 has quit [*.net *.split]
jarray52 has quit [*.net *.split]
zarul has quit [*.net *.split]
northfurr has quit [*.net *.split]
niv has quit [*.net *.split]
Fraeon has quit [*.net *.split]
pfg has quit [*.net *.split]
idoru has quit [*.net *.split]
Mohan has quit [*.net *.split]
Bloc has quit [*.net *.split]
Dr3amc0d3r|away has quit [*.net *.split]
pinage404 has quit [*.net *.split]
elektronaut has quit [*.net *.split]
ixti has quit [*.net *.split]
mgorbach has quit [*.net *.split]
Mortix has quit [*.net *.split]
zerun0 has quit [*.net *.split]
shanlar has quit [*.net *.split]
__class__ has quit [*.net *.split]
napcae has quit [*.net *.split]
redondos has quit [*.net *.split]
patronus has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
rmill has quit [*.net *.split]
elaptics`away has quit [*.net *.split]
Lightstalker has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
crome has quit [*.net *.split]
UForgotten has quit [*.net *.split]
msch has quit [*.net *.split]
mheld has quit [*.net *.split]
DefV has quit [*.net *.split]
thelamest has quit [*.net *.split]
kiki_lamb has quit [*.net *.split]
kevinfagan_ has quit [*.net *.split]
drasch_ has quit [*.net *.split]
maxmanders has quit [*.net *.split]
bjhaid has quit [*.net *.split]
yokel has quit [*.net *.split]
evenix has quit [*.net *.split]
gigetoo has quit [*.net *.split]
mercwithamouth has quit [*.net *.split]
agjacome has quit [*.net *.split]
magler has quit [*.net *.split]
absolutezeroff has quit [*.net *.split]
Elico has quit [*.net *.split]
nuck has quit [*.net *.split]
Kilo`byte has quit [*.net *.split]
nath_schwarz has quit [*.net *.split]
WormDrink has quit [*.net *.split]
spacemud has quit [*.net *.split]
Beoran has quit [*.net *.split]
__main__ has quit [*.net *.split]
chridal has quit [*.net *.split]
xBradPittx has quit [*.net *.split]
jaywastaken has quit [*.net *.split]
manacit has quit [*.net *.split]
endash has quit [*.net *.split]
Senjai has quit [*.net *.split]
contradictioned has quit [*.net *.split]
ixx has quit [*.net *.split]
skkeeper has quit [*.net *.split]
billy_ran_away has quit [*.net *.split]
troyready has quit [*.net *.split]
Kneferilis has quit [*.net *.split]
thumpba_ has quit [*.net *.split]
QKO has quit [*.net *.split]
shaman42 has quit [*.net *.split]
cba has quit [*.net *.split]
eregon has quit [*.net *.split]
vadviktor_ has quit [*.net *.split]
samuelkadolph_ is now known as samuelkadolph
endash_ is now known as endash
rmill_ is now known as rmill
spacemud_ is now known as spacemud
elektronaut_ is now known as elektronaut
momomomomo has joined #ruby
mgorbach_ is now known as mgorbach
UForgotten_ is now known as UForgotten
gigetoo_ is now known as gigetoo
sn0wb1rdz is now known as sn0wb1rd
dorei has quit []
Dr3amc0d3r|away has joined #ruby
_main_ is now known as __main__
_class_ is now known as __class__
MatthewsFace has joined #ruby
niv_ is now known as niv
SidWu_ has joined #ruby
SidWu_ has quit [Max SendQ exceeded]
jaywastaken has joined #ruby
manacit_ is now known as manacit
manacit has quit [Changing host]
manacit has joined #ruby
thelamest has joined #ruby
kobain has quit [Ping timeout: 252 seconds]
gancl has joined #ruby
bbloom has quit [Ping timeout: 252 seconds]
kiki_lam1 is now known as kiki_lamb
ghr has joined #ruby
kobain has joined #ruby
diegoviola has joined #ruby
volk_ has joined #ruby
kobain has quit [Client Quit]
absolutezeroff has joined #ruby
cba has joined #ruby
Beoran has joined #ruby
WormDrink has joined #ruby
ixti has joined #ruby
Senjai has joined #ruby
Mortix has joined #ruby
zerun0 has joined #ruby
aspires has quit []
tsou has joined #ruby
magler has joined #ruby
Elico has joined #ruby
redondos has joined #ruby
zarul has joined #ruby
zarul has quit [Max SendQ exceeded]
troyready has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
tsou has left #ruby ["bye"]
jarray52 has joined #ruby
cashnguns has joined #ruby
f1skn has quit [Remote host closed the connection]
aspires has joined #ruby
bbloom has joined #ruby
zarul has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
mostlybadfly has joined #ruby
funktor has joined #ruby
macmartine has joined #ruby
fbernier has quit [Read error: Connection reset by peer]
Shidash has quit [Ping timeout: 252 seconds]
jaywastaken has quit [Quit: This computer has gone to sleep]
ctp has joined #ruby
Hanmac1 has joined #ruby
idoru has joined #ruby
Solnse has joined #ruby
jaywastaken has joined #ruby
macmartine has quit [Remote host closed the connection]
bronson has joined #ruby
CyborgCygnus has joined #ruby
thomasxie has joined #ruby
aspires has quit []
ctp has quit [Ping timeout: 245 seconds]
lolmaus has quit [Read error: Operation timed out]
lolmaus has joined #ruby
gancl has quit [Ping timeout: 240 seconds]
geggam has joined #ruby
iamdoo2 has joined #ruby
mengu has quit [Remote host closed the connection]
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
jason____ has joined #ruby
ctp has joined #ruby
SoLoMoN1112 has joined #ruby
iamdoo2 has quit [Remote host closed the connection]
speakingcode has quit [Ping timeout: 240 seconds]
iamdoo2 has joined #ruby
m0s is now known as m0s^away
iamdoo2 has quit [Ping timeout: 246 seconds]
x77686d has quit [Quit: x77686d]
iamdoo2 has joined #ruby
freerobby has joined #ruby
slawrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gancl has joined #ruby
jhass is now known as jhass|off
supermarin_ has joined #ruby
tomzx_mac has joined #ruby
petey has quit [Remote host closed the connection]
tomzx_mac has quit [Client Quit]
tomzx_mac has joined #ruby
tomzx_mac has quit [Client Quit]
iamdoo2_ has joined #ruby
freerobby has quit [Ping timeout: 246 seconds]
iamdoo2 has quit [Ping timeout: 268 seconds]
hamakn_ has quit [Remote host closed the connection]
ctp has quit [Ping timeout: 265 seconds]
chipotle has joined #ruby
supermarin_ has quit [Ping timeout: 255 seconds]
fflush has joined #ruby
Splourian has joined #ruby
x77686d has joined #ruby
keppy has joined #ruby
fflush has quit [Client Quit]
funktor has quit [Remote host closed the connection]
funktor has joined #ruby
CyborgCygnus has quit [Quit: Rage Quit]
fflush has joined #ruby
teddyp1cker has joined #ruby
krz has joined #ruby
Splourian has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
lw has quit [Quit: s]
geggam has quit [Remote host closed the connection]
oo_ has joined #ruby
funktor has quit [Ping timeout: 240 seconds]
agrinb_ has quit [Remote host closed the connection]
tjr9898 has joined #ruby
endash has quit [Quit: endash]
endash__ is now known as endash
teddyp1cker has quit [Ping timeout: 245 seconds]
lw has joined #ruby
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
meatherly has joined #ruby
fflush has quit [Quit: fflush]
yfeldblum has joined #ruby
jamto11 has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
danshultz has joined #ruby
tjr9898 has quit [Ping timeout: 265 seconds]
reset has joined #ruby
bcrook has joined #ruby
saarinen has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
sski has quit [Remote host closed the connection]
hamakn has joined #ruby
sski has joined #ruby
supermarin_ has joined #ruby
Shidash has joined #ruby
cj3kim has joined #ruby
reset has quit [Quit: Leaving...]
SoLoMoN1112 has quit []
sski has quit [Ping timeout: 264 seconds]
bogeyd6 has quit [Quit: Leaving]
benlieb has quit [Quit: benlieb]
jack_rabbit has joined #ruby
mercwith1mouth has quit [Ping timeout: 252 seconds]
jack_rabbit has quit [Remote host closed the connection]
sk_keeper has quit [Ping timeout: 246 seconds]
Shidash has quit [Ping timeout: 268 seconds]
nari has joined #ruby
m4n1f3st0 has joined #ruby
jack_rabbit has joined #ruby
morenoh149 has quit [Ping timeout: 255 seconds]
cj3kim has quit [Ping timeout: 255 seconds]
Shidash has joined #ruby
hfp`away is now known as hfp
binaryhat has quit [Quit: Leaving]
Ancient has joined #ruby
<benzrf>
bbl guise
benzrf is now known as benzrf|offline
lolmaus has quit [Read error: Connection reset by peer]
<hfp>
Howdy!
lolmaus has joined #ruby
CyborgCygnus has joined #ruby
<Ancient>
My understanding of is_a? and kind_of? is that they're the same. Is one of them going to be deprecated in the future? Or is there a case where one should be used over the other?
jamto11 has joined #ruby
<pontiki>
they are not the same
<pontiki>
they are similar
funktor has joined #ruby
skkeeper has joined #ruby
radic has quit [Ping timeout: 255 seconds]
lw has quit [Quit: s]
r_rios has quit [Ping timeout: 246 seconds]
radic has joined #ruby
freerobby has joined #ruby
<centrx>
Ancient, They are identical.
<centrx>
Ancient, In some contexts, the meaning of one makes more sense than the other.
ctp has joined #ruby
zxq9 has joined #ruby
noob101 has quit [Quit: Page closed]
ehaliewicz has joined #ruby
jamto11_ has joined #ruby
petey has joined #ruby
agrinb has joined #ruby
macmartine has joined #ruby
ctp has quit [Ping timeout: 264 seconds]
r_rios has joined #ruby
s3ri0us_ has quit [Ping timeout: 264 seconds]
julian-delphiki has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
toastynerd has joined #ruby
mehlah has quit [Quit: Leaving...]
RSTJNII has quit [Remote host closed the connection]
fabrice31 has joined #ruby
macmartine has quit [Remote host closed the connection]
jamto11_ has quit [Ping timeout: 268 seconds]
macmartine has joined #ruby
<Ancient>
centrx, I'd imagine when extending classes kind_of would make more sense, but is_a is better when that's not involved?
saarinen has quit [Quit: saarinen]
danshultz has quit [Remote host closed the connection]
dx7 has quit [Remote host closed the connection]
benlieb has joined #ruby
danshultz has joined #ruby
<centrx>
Ancient, I prefer is_a
dx7 has joined #ruby
s3ri0us has joined #ruby
macmartine has quit [Remote host closed the connection]
<centrx>
Ancient, e.g. is_a?(Array) makes more sense than kind_of?(Array)
<hfp>
Hey guys, could someone please explain like I'm 5 what does the hash method do in this class? https://eval.in/129094 I'm not sure I understand what does a XOR operator do and why it's relevant there
<centrx>
Ancient, but mammal.kind_of?(Animal) makes more sense than mammal.is_a?(Animal)
jaywastaken has quit [Quit: This computer has gone to sleep]
macmartine has joined #ruby
kennym has quit [Quit: Leaving.]
toastynerd has quit [Ping timeout: 265 seconds]
macmartine has quit [Remote host closed the connection]
<centrx>
hfp, XOR is a common way of making hashes or random numbers
kennym has joined #ruby
bahar has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
<centrx>
hfp, In the example, the idea is to item.hash correspond to the contents of item
<hfp>
centrx: So it's just a way of generating some kind of checksum that represents all the contents of the item?
bahar has joined #ruby
macmartine has joined #ruby
<centrx>
hfp, Yes, exactly
<hfp>
centrx: i.e. if two items have the same hash then they have the same contents?
<centrx>
Yes
<hfp>
Ok, thanks
meatherly has quit [Remote host closed the connection]
kennym has quit [Client Quit]
prs has quit [Ping timeout: 260 seconds]
meatherly has joined #ruby
waza has joined #ruby
cj3kim has joined #ruby
danshultz has quit [Ping timeout: 265 seconds]
macmartine has quit [Remote host closed the connection]
morenoh149 has joined #ruby
macmartine has joined #ruby
Celm has joined #ruby
maletor has joined #ruby
meatherly has quit [Ping timeout: 265 seconds]
kennym has joined #ruby
cj3kim has quit [Ping timeout: 265 seconds]
setient has quit [Ping timeout: 240 seconds]
ehaliewicz has quit [Remote host closed the connection]
maletor has quit [Client Quit]
setient has joined #ruby
ehaliewicz has joined #ruby
Doppp has quit [Ping timeout: 255 seconds]
ehaliewicz has quit [Remote host closed the connection]
bjhaid1 has quit [Ping timeout: 265 seconds]
Azure has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
petey has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
petey has joined #ruby
freezey has joined #ruby
jpstokes has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
petey has quit [Ping timeout: 268 seconds]
RSTJNII has joined #ruby
Bloc has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
bcrook has quit [Quit: Konversation terminated!]
eynj has quit [Quit: Leaving.]
braincrash has quit [Quit: bye bye]
yfeldblum has joined #ruby
petey has joined #ruby
eynj has joined #ruby
eka has joined #ruby
prs has joined #ruby
mgorbach has joined #ruby
freezey has quit [Remote host closed the connection]
mgorbach has quit [Read error: Connection reset by peer]
jlast has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
braincrash has joined #ruby
pfg_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mgorbach has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has quit [Remote host closed the connection]
cyberarm has quit [Read error: Connection reset by peer]
Jetchisel has joined #ruby
cj3kim has joined #ruby
Doppp has joined #ruby
thomasxie has left #ruby [#ruby]
teddyp1cker has joined #ruby
ghr has joined #ruby
maroloccio2 has quit [Ping timeout: 265 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
sepp2k has quit [Read error: Connection reset by peer]
_justin has joined #ruby
cj3kim has quit [Ping timeout: 268 seconds]
ghr has quit [Ping timeout: 265 seconds]
braincrash has quit [Ping timeout: 268 seconds]
slawrence has joined #ruby
whomp has joined #ruby
<whomp>
i'm installing rvm and some ruby versions with it on a system that already has ruby installed. is this ok? will it incorporate the existing ruby install?
jamto11 has quit [Remote host closed the connection]
CADBOT has joined #ruby
<CADBOT>
Anyone here use the puma app server?
<CADBOT>
A real quick question on logging if so
decoponio has joined #ruby
m4n1f3st0 has quit [Read error: Connection reset by peer]
ctp has joined #ruby
m4n1f3st0 has joined #ruby
CADBOT has quit [Client Quit]
ce_afk is now known as cescalante
alexju has quit [Remote host closed the connection]
davedev24 has quit [Remote host closed the connection]
IceDragon has quit [Quit: Space~~~]
redondos has quit [Changing host]
redondos has joined #ruby
funktor has quit [Remote host closed the connection]
Sawbones has joined #ruby
Sawbones has quit [Client Quit]
ctp has quit [Ping timeout: 268 seconds]
funktor has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
agent_white has joined #ruby
<agent_white>
Good evenin
toastynerd has joined #ruby
keppy has quit [Ping timeout: 240 seconds]
lw has joined #ruby
fflush has joined #ruby
funktor has quit [Ping timeout: 265 seconds]
toastynerd has quit [Read error: No route to host]
fflush has quit [Client Quit]
toastynerd has joined #ruby
nowthatsamatt has joined #ruby
TigerWolf has joined #ruby
funktor has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
iamdoo2_ has quit [Remote host closed the connection]
jason____ has quit [Remote host closed the connection]
iamdoo2 has joined #ruby
agrinb has quit [Remote host closed the connection]
agrinb_ has joined #ruby
petey has quit [Remote host closed the connection]
petey has joined #ruby
jenskarlsen has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
cj3kim has joined #ruby
agrinb_ has quit [Read error: Connection reset by peer]
agrinb_ has joined #ruby
agrinb_ has quit [Remote host closed the connection]
agrinb has joined #ruby
<whomp>
how can i set the time zone for a Time object as UTC?
iamdoo2 has quit [Ping timeout: 265 seconds]
agrinb has quit [Read error: Connection reset by peer]
agrinb_ has joined #ruby
luckyruby has joined #ruby
petey has quit [Ping timeout: 265 seconds]
cj3kim has quit [Ping timeout: 255 seconds]
kennym has quit [Quit: Leaving.]
rrios has joined #ruby
<whomp>
or how can i set the default time zone to UTC?
r_rios has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
benlieb has quit [Quit: benlieb]
Lewix has joined #ruby
Lewix has quit [Remote host closed the connection]
luckyruby has quit [Remote host closed the connection]
luckyruby has joined #ruby
teddyp1cker has joined #ruby
cescalante is now known as ce_afk
maroloccio has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
browndawg has joined #ruby
maroloccio has quit [Client Quit]
<luckyruby>
irc got blocked at work. ssh tunneling ftw!
heftig has quit [Quit: Quitting]
maroloccio has joined #ruby
oo_ has quit [Remote host closed the connection]
keppy has joined #ruby
Celm has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
<benzrf>
WOOT WOOT GET HYPE`
mrnugget has joined #ruby
<benzrf>
*finally* pushed quick to rubygems
Deele has joined #ruby
<benzrf>
it has a command now :D
<benzrf>
it's possible to try it out without needing to manually enter code to interface with it!
<benzrf>
more or less!
* benzrf
sighs contentedly
speakingcode has joined #ruby
<benzrf>
yo speakingcode wanna try quick
Lucky_Red has quit [Quit: Leaving...]
keppy has quit [Ping timeout: 246 seconds]
hobodave has joined #ruby
arietis has joined #ruby
evenix_ has quit [Remote host closed the connection]
kung has joined #ruby
momomomomo has quit [Quit: momomomomo]
agrinb_ has quit [Remote host closed the connection]
petey has joined #ruby
agrinb_ has joined #ruby
<benzrf>
i need somebody to try quick for a sec pls
jamto11 has joined #ruby
rrios has quit [Ping timeout: 255 seconds]
nanoyak has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
<benzrf>
ah, w/e
<benzrf>
see yall
agrinb_ has quit [Ping timeout: 268 seconds]
cj3kim has joined #ruby
endash_ has joined #ruby
benzrf is now known as benzrf|offline
Lucky_Red has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
jamto11 has quit [Remote host closed the connection]
funktor has quit [Remote host closed the connection]
funktor has joined #ruby
_justin has quit [Quit: _justin]
iamdoo2 has joined #ruby
chris_thomson has quit [Quit: Zzz...]
benlieb has joined #ruby
funktor has quit [Ping timeout: 265 seconds]
fabrice31 has joined #ruby
rm_ has quit [Remote host closed the connection]
pfg has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
rm_ has joined #ruby
dseitz has joined #ruby
lukec has quit [Quit: lukec]
iamdoo2 has quit [Remote host closed the connection]
iamdoo2 has joined #ruby
pfg has quit [Client Quit]
lukec has joined #ruby
lukec has quit [Client Quit]
bean__ has joined #ruby
chinkung has joined #ruby
benlieb has quit [Ping timeout: 245 seconds]
julian-delphiki has quit [Disconnected by services]
bean__ is now known as julian-delphiki
agent_wh1te has joined #ruby
nowthatsamatt_ has joined #ruby
julian-delphiki has quit [Changing host]
julian-delphiki has joined #ruby
ctp has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
x77686d has quit [Quit: x77686d]
mrnugget_ has joined #ruby
evenix has joined #ruby
iamdoo2 has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
ctp has quit [Ping timeout: 265 seconds]
bahar has quit [Ping timeout: 264 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
bahar has joined #ruby
kung has quit [*.net *.split]
nowthatsamatt has quit [*.net *.split]
Solnse has quit [*.net *.split]
Hanmac1 has quit [*.net *.split]
rm_ has quit [*.net *.split]
idoru has quit [*.net *.split]
mrnugget has quit [*.net *.split]
agent_white has quit [*.net *.split]
zarul has quit [*.net *.split]
krz has quit [*.net *.split]
mrnugget_ is now known as mrnugget
nowthatsamatt_ is now known as nowthatsamatt
oo_ has quit [Ping timeout: 265 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
idoru has joined #ruby
zarul has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
krz has joined #ruby
Hanmac has joined #ruby
Solnse has joined #ruby
cj3kim has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
macmartine has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
bahar has quit [Ping timeout: 245 seconds]
kerin has joined #ruby
jzig has quit [Remote host closed the connection]
jzig has joined #ruby
cj3kim has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
bahar has joined #ruby
arietis has joined #ruby
supermarin_ has quit [Quit: Computer has gone to sleep.]
m4n1f3st_ has joined #ruby
supermarin_ has joined #ruby
oo_ has joined #ruby
jzig has quit [Ping timeout: 265 seconds]
m4n1f3st0 has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
Solnse has quit [Quit: Leaving.]
supermarin_ has quit [Ping timeout: 265 seconds]
Splourian has joined #ruby
JasmeetQA has joined #ruby
lw has quit [Quit: s]
oo_ has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
boombadaroomba has quit [Remote host closed the connection]
jonmorehouse has quit [Ping timeout: 245 seconds]
MindfulMonk has quit [Ping timeout: 265 seconds]
<kerin>
So I'm mucking around with ERB templates and it works fine if I try to use a string from the binding - <%= string_foo => puts the contents of the string in the template.
Celm has joined #ruby
<kerin>
However, if I try to use a hash the same way, like <%= hash_bar['key_barfoo'] %> - I get this bizarre error: "no implicit conversion of String into Integer"
keppy has joined #ruby
m4n1f3st_ has quit []
spicerack has quit [Ping timeout: 265 seconds]
benlieb has joined #ruby
<kerin>
I'm flummoxed, anyone know what I'm doing wrong?
agent_wh1te has quit [Quit: leaving]
m4n1f3st0 has joined #ruby
agent_white has joined #ruby
oo_ has joined #ruby
frog0909 has quit [Ping timeout: 265 seconds]
stylus has joined #ruby
Lewix has joined #ruby
Celm has quit [Ping timeout: 265 seconds]
volk_ has quit [Quit: volk_]
keppy has quit [Ping timeout: 240 seconds]
<TigerWolf>
kerin - What does your hash look like?
<kerin>
TigerWolf, for testing purposes I have pared it down to: data = ['c2' => 'chickens']
<TigerWolf>
On first inspection it looks like you are either dealing with an array or the hash has numerical indexes
<TigerWolf>
That looks like an array to me kerin - would explain it
<pontiki>
kerin, that isn't how you specify a hash literal
m104 has joined #ruby
<TigerWolf>
data = {'c2' => 'chickens'}
<pontiki>
^
<kerin>
...oh god, I'm clearly an idiot
agrinb has joined #ruby
<TigerWolf>
data = Hash['c2'] = 'chickens'
<TigerWolf>
etc
* kerin
slams face in door
<kerin>
thanks.
<kerin>
why does ruby accept => in array definitions? is there a legitimate use for that?
<pontiki>
the former (['c2' => 'chickens']) isn't invalid syntax, it just produces a single element array containing a hash
yacks has joined #ruby
Splourian has quit [Quit: Page closed]
<pontiki>
data = ['c2'=>'chickens'] # => [{'c2'=>'chickens'}]
tchebb has quit [Ping timeout: 240 seconds]
<kerin>
ahhh
tylersmith has quit [Remote host closed the connection]
<kerin>
thank you. i've clearly been up too long. :)
tylersmith has joined #ruby
<pontiki>
save your work, go to bed :D
<kerin>
on it!
oo_ has quit [Remote host closed the connection]
<pontiki>
me too :)
frog0909 has joined #ruby
ghr has joined #ruby
benlieb has quit [Quit: benlieb]
agrinb has quit [Ping timeout: 252 seconds]
tesuji has joined #ruby
cj3kim has joined #ruby
maletor has joined #ruby
tchebb has joined #ruby
tylersmith has quit [Ping timeout: 255 seconds]
kitak__ has joined #ruby
oo_ has joined #ruby
CyborgCygnus has quit [Ping timeout: 245 seconds]
kitak_ has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 255 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
jzig has joined #ruby
cj3kim has quit [Ping timeout: 246 seconds]
mesamoo has quit [Quit: Konversation terminated!]
mengu has joined #ruby
gabrielCmendes has quit [Read error: Connection reset by peer]
gabrielCmendes has joined #ruby
rm_ has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
slopjong has joined #ruby
jarray52 has left #ruby [#ruby]
jack_rabbit has quit [Ping timeout: 240 seconds]
rm_ has quit [Ping timeout: 240 seconds]
ctp has joined #ruby
knigitz has quit [Ping timeout: 252 seconds]
morenoh149 has quit [Ping timeout: 265 seconds]
knigitz has joined #ruby
absolutezeroff has quit [Ping timeout: 255 seconds]
zigomir has joined #ruby
endash_ has quit [Quit: endash_]
monkegjinni has joined #ruby
tagrudev has joined #ruby
jonmorehouse has joined #ruby
ctp has quit [Ping timeout: 268 seconds]
monkegji_ has joined #ruby
CaptainJet has quit []
phansch has joined #ruby
macmartine has joined #ruby
yfeldblum has joined #ruby
monkegjinni has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
speakingcode has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
Hanmac has quit [Ping timeout: 268 seconds]
keppy has joined #ruby
morenoh149 has joined #ruby
macmartine has quit [Ping timeout: 265 seconds]
absolutezeroff has joined #ruby
yfeldblu_ has quit [Ping timeout: 255 seconds]
nanoyak has joined #ruby
spicerack has joined #ruby
toastynerd has quit [Remote host closed the connection]
bahar has quit [Ping timeout: 255 seconds]
michael_lee has joined #ruby
coderhs has joined #ruby
cj3kim has joined #ruby
bahar has joined #ruby
_justin has joined #ruby
m4n1f3st0 has quit []
renklaf_ has joined #ruby
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mattp_ has quit [Read error: Connection reset by peer]
cj3kim has quit [Ping timeout: 265 seconds]
mengu has quit [Remote host closed the connection]
rm_ has joined #ruby
petey has quit [Remote host closed the connection]
Hanmac has joined #ruby
petey has joined #ruby
apeiros has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 252 seconds]
apeiros has joined #ruby
freerobby has quit [Quit: Leaving.]
jackneill has joined #ruby
Jon30 has quit [Read error: Operation timed out]
Tomasso has joined #ruby
<browndawg>
is there a rack module that will let me serve pre-compressed assets?
<browndawg>
Deploying a static site with rack + puma
<browndawg>
don't want to have rack::deflator running all teh time
petey has quit [Ping timeout: 240 seconds]
s3ri0us_ has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
rm_ has quit [Ping timeout: 246 seconds]
s3ri0us has quit [Ping timeout: 240 seconds]
Tomasso has quit [Read error: Connection reset by peer]
Monito has joined #ruby
Monito has quit [Read error: Connection reset by peer]
<maasha>
pipework: that above link is the closest I have seen to an explanation.
s3ri0us_ has quit [Ping timeout: 252 seconds]
<pipework>
maasha: It'd help if you did.
YamakasY has joined #ruby
<pipework>
Some of the compsci stuff is actually still relevant to daily work, believe it or not.
<maasha>
pipework: grrr :o) I am a biochemist, damn it!
jrendell has quit [Quit: jrendell]
<pipework>
maasha: I'm a rocket surgeon.
m1lt0n_ has joined #ruby
<maasha>
OK, there is probably a wikipedia article for this.
<pipework>
Definitely.
<Nilium>
I'm a surgical rocket.
<pipework>
Top thing when you google "critical section"
monkegjinni has quit [Remote host closed the connection]
<maasha>
pipework: got it.
<maasha>
reading
<Nilium>
Fire me at something and they'll explode into healthiness and giblets.
<pipework>
maasha: It's always a lock, or a mutex of sorts.
<pipework>
Only one thing can enter, typically. I don't know if it's part of the definition that it requires that only one thing can enter the critical section or not.
<maasha>
pipework: I almost guessed that. Does it require join?
jprovazn has joined #ruby
<pipework>
maasha: "Require join"? You mean like Thread#join? It might or might not.
AlexRussia has quit [Ping timeout: 264 seconds]
siwica has joined #ruby
<maasha>
pipework: Yeah, Is Thread#join required after Thread#exclusive?
<pipework>
maasha: Not necessarily, I'd think.
<pipework>
You'd just need to unlock the mutex.
diegoviola has quit [Quit: WeeChat 0.4.3]
flowerpot has joined #ruby
keppy has quit [Ping timeout: 255 seconds]
MindfulMonk has joined #ruby
freerobby has joined #ruby
<maasha>
pipework: So, it is a build-in semaphore in Thread.exclusive and not a mutex as such (and not a class Mutex for sure)?
<pipework>
maasha: The depth of my knowledge about Ruby's Thread::exclusive implementation doesn't go that far.
<pipework>
Not bad. It's just a mutex. So it's just sugar for making your own mutex and constructing your own critical section.
<maasha>
pipework: so a way of controlling concurrency alternative to #Thread.join ?
armstrjare has joined #ruby
<maasha>
blah, Thread#join
dumdedum is now known as blaxter
<pipework>
maasha: Well, it's a mutex like you'll find when reading about the compsci defintion.
blackmesa has joined #ruby
<maasha>
ok, let me read this
pagios has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
pedda has joined #ruby
Xeago has quit [Remote host closed the connection]
renklaf_ has joined #ruby
Xeago has joined #ruby
freerobby has quit [Ping timeout: 265 seconds]
kukyakya has joined #ruby
hermanmunster has quit [Remote host closed the connection]
peta_ has joined #ruby
hermanmunster has joined #ruby
obs has joined #ruby
timonv has joined #ruby
ghr has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
sguselnikov has joined #ruby
hermanmunster has quit [Ping timeout: 245 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
m4n1f3st0 has quit []
petey has joined #ruby
joonty has joined #ruby
kyb3r_ has joined #ruby
LiohAu has joined #ruby
coderhs has joined #ruby
m4n1f3st0 has joined #ruby
Doppp has quit [Quit: leaving]
ikaros has joined #ruby
<maasha>
pipework: ok, I think I have an overview of the terms, but I still lack sound docs of how Thread#exclusive can be used (and compared to Threads with Mutex)
rm_ has joined #ruby
<pipework>
maasha: They're quite similarly the same.
nvrch has joined #ruby
nfk has joined #ruby
<pipework>
maasha: Notice the constant. It's behaving like a singleton that gets called. It's quite 'exclusive' but references a mutex.
yacks has joined #ruby
petey has quit [Ping timeout: 245 seconds]
Slavox is now known as Slavox|AFK
jonmorehouse has joined #ruby
renklaf_ is now known as falkn0r
falkn0r is now known as renklaf_
gaussblurinc has joined #ruby
andikr has joined #ruby
bahar has quit [Ping timeout: 268 seconds]
rm_ has quit [Ping timeout: 264 seconds]
slopjong has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
rvraghav93 has joined #ruby
bahar has joined #ruby
DaniG2k has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
jonmorehouse has quit [Ping timeout: 255 seconds]
klaut has quit [Remote host closed the connection]
keppy has joined #ruby
xbob has joined #ruby
poikon has joined #ruby
Slavox|AFK is now known as Slavox
jph98 has quit [Quit: Ex-Chat]
agrinb has joined #ruby
Doppp has joined #ruby
gtc has quit [Ping timeout: 264 seconds]
elaptic`` is now known as elaptics
Doppp has quit [Client Quit]
Doppp has joined #ruby
gtc has joined #ruby
ioNull has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 240 seconds]
ioNull has joined #ruby
keppy has quit [Ping timeout: 265 seconds]
agrinb has quit [Ping timeout: 265 seconds]
rahult is now known as rahult_
rdark has joined #ruby
relix has joined #ruby
timonv has quit [Remote host closed the connection]
slopjong has quit [Ping timeout: 245 seconds]
relix has quit [Client Quit]
_justin has quit [Quit: _justin]
rylev has joined #ruby
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
ayaz has joined #ruby
teddyp1cker has joined #ruby
ctp has joined #ruby
rahult_ is now known as rahult
<gaussblurinc>
does anybody use ruby-git?
rahult is now known as rahult_
rahult_ is now known as rahult
rahult is now known as rahult_
rahult_ is now known as rahult
dawkirst has joined #ruby
_justin has joined #ruby
maveonair has joined #ruby
jhass|off is now known as jhass
Tomasso has joined #ruby
Tomasso has quit [Read error: Connection reset by peer]
kitak__ has quit [Remote host closed the connection]
teddyp1cker has quit [Ping timeout: 255 seconds]
siwica has quit [Ping timeout: 255 seconds]
kitak_ has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
jamto11 has joined #ruby
tchebb has quit [Ping timeout: 240 seconds]
badhatter has quit [Ping timeout: 245 seconds]
jamto11 has quit [Read error: Operation timed out]
poikon has quit [Remote host closed the connection]
bahar has joined #ruby
davidcelis has joined #ruby
timonv has joined #ruby
poikon has joined #ruby
bronson has quit [Quit: bronson]
davidcelis has quit [Excess Flood]
davidcelis has joined #ruby
davidcelis has quit [Excess Flood]
roolo has joined #ruby
tchebb has joined #ruby
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
davidcelis has quit [Excess Flood]
prs has quit [Changing host]
prs has joined #ruby
davidcelis has joined #ruby
davidcelis has quit [Excess Flood]
cj3kim has quit [Ping timeout: 265 seconds]
davidcelis has joined #ruby
davidcelis has quit [Excess Flood]
Guest3641 has joined #ruby
Guest3641 has quit [Excess Flood]
davidcel- has joined #ruby
freerobby has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
canton7 has quit [Read error: Operation timed out]
connor_goodwolf has quit [Read error: Operation timed out]
kevinykchan has joined #ruby
helpa has quit [Remote host closed the connection]
connor_goodwolf has joined #ruby
helpa has joined #ruby
sivoais has quit [Read error: Operation timed out]
sivoais has joined #ruby
DouweM has quit [Ping timeout: 240 seconds]
pauld has joined #ruby
freerobby has quit [Ping timeout: 246 seconds]
compleatang has joined #ruby
compleatang has quit [Read error: Connection reset by peer]
JasmeetQA has quit [Ping timeout: 268 seconds]
yosafbridge has quit [Ping timeout: 252 seconds]
shaunbaker has joined #ruby
nari has quit [Ping timeout: 245 seconds]
wmoxam has quit [Ping timeout: 252 seconds]
quantsini has quit [Ping timeout: 252 seconds]
jgrevich2 has quit [Ping timeout: 252 seconds]
stnly has quit [Ping timeout: 252 seconds]
jgrevich has joined #ruby
Lightsta1ker has quit [Ping timeout: 252 seconds]
wmoxam has joined #ruby
JasmeetQA has joined #ruby
yosafbridge has joined #ruby
stnly has joined #ruby
interweb has quit [Ping timeout: 240 seconds]
DaniG2k has quit [Quit: leaving]
flops has joined #ruby
workmad3 has joined #ruby
napcae is now known as honestlee
NovapaX has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JasmeetQA1 has joined #ruby
quantsini has joined #ruby
msch has joined #ruby
rm_ has joined #ruby
kinigitz has joined #ruby
Lightstalker has joined #ruby
knigitz has quit [Ping timeout: 245 seconds]
maroloccio has quit [Ping timeout: 245 seconds]
JasmeetQA has quit [Ping timeout: 265 seconds]
gaussblurinc has quit [Quit: Leaving.]
honestlee is now known as napcae
klaut has joined #ruby
rylev has quit [Remote host closed the connection]
mehlah has joined #ruby
rm_ has quit [Ping timeout: 268 seconds]
andrewlio has joined #ruby
tobago has joined #ruby
Celm has joined #ruby
garethrees has joined #ruby
cj3kim has joined #ruby
aganov has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 252 seconds]
WormDrink has quit [Ping timeout: 252 seconds]
tagrudev has quit [Ping timeout: 268 seconds]
cj3kim has quit [Read error: Connection reset by peer]
WormDrink has joined #ruby
monkegjinni has joined #ruby
Zai00 has joined #ruby
aganov has joined #ruby
b00stfr3ak has quit [Ping timeout: 240 seconds]
AlSquire has joined #ruby
Celm has quit [Ping timeout: 265 seconds]
monkegjinni has quit [Remote host closed the connection]
francisfish has joined #ruby
Stalkr_ has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
keppy has joined #ruby
agrinb_ has joined #ruby
nari has joined #ruby
<agent_white>
So I'm figuring out how to debug my IRC client, which seems to lag quite a bit on message spam. I read up on Ruby-Prof and have began to run some tests; finding "Ncurses::WINDOW#method_missing" to be called quite a few times, to say the least.
<agent_white>
Is there a way for me to exit the program when that is called, so I can find out which line it is happening on?
lkba has quit [Ping timeout: 264 seconds]
<jhass>
just override it?
jonmorehouse has joined #ruby
<agent_white>
jhass: Like, open up the class and add something in?
<jhass>
yep
<jhass>
or even just for the instance of it you're using
sambao21 has joined #ruby
<jhass>
def my_ncurses_window_bla.method_missing(*); raise; end
<agent_white>
jhass: AH! Badass! thank you!
<jhass>
while at it you could even get pry-stack_explorer and stuff a binding.pry in there
timonv has quit [Remote host closed the connection]
agrinb_ has quit [Ping timeout: 240 seconds]
olivier_bK has joined #ruby
keppy has quit [Ping timeout: 268 seconds]
deadlock has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
<agent_white>
jhass: I'll look into it! Thank you :D
sambao21 has quit [Ping timeout: 252 seconds]
<agent_white>
If I fix this, my built-in anti-spam feature will be broken... ;P
chipotle has joined #ruby
tagrudev has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
rylev has joined #ruby
maroloccio has joined #ruby
yfeldblum has joined #ruby
DouweM has joined #ruby
Speed has joined #ruby
flops has quit [Remote host closed the connection]
pfg has joined #ruby
luckyruby has quit [Remote host closed the connection]
davidcel- is now known as davidcelis
davidcelis has quit [Changing host]
davidcelis has joined #ruby
peta_ has quit [Quit: peta_]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
morenoh149 has quit [Ping timeout: 268 seconds]
himsin has joined #ruby
<agent_white>
jhass: `raise caller` might seem to have done it?
<agent_white>
Nevermind, that pointed to pretty much every instance of that object haha.
flowerpot has quit [Ping timeout: 265 seconds]
<jhass>
yah, you probably want to alias_method the original and whitelist and delegate to that
<apeiros>
the main problem is with people thinking month was a duration. it's not. months can only exist as interval.
<apeiros>
that is, it's only defined with a start/end
<msch>
apeiros now that I don't get. what's the difference? and postgres can do it properly so why can't it exist?
<olivier_bK>
i playing with timestamp and i try to get a date with 1 hours less
lolmaus_ has joined #ruby
Splourian has joined #ruby
lolmaus has quit [Ping timeout: 255 seconds]
<ak5>
hi everyone, I need to create some simple project to send some api calls to trello.com. Via github, I saw the most popular library for this api is ruby-trello. I want to now create a ruby project for the first time. I guess the standard for managing deps is bundler, but I have yet to find a good how-to - they all seem to conflict. Is there an agreed upon convention?
<apeiros>
msch: again, because you use a very limited definition of "works"
<apeiros>
which is: "works for my specific case the way I want it to"
cj3kim has joined #ruby
<olivier_bK>
i trying to use 1.hours.ago.strftime("%Y-%m-%d-%H")
<olivier_bK>
but i get undefined method hours
<olivier_bK>
:(
<apeiros>
olivier_bK: that's not a ruby functionality. it's a railsism
oo_ has joined #ruby
<apeiros>
olivier_bK: you need activesupport for this
<olivier_bK>
Arg..
platzhirsch has joined #ruby
<msch>
apeiros I don't fully understand, but I've forgotten most basic algebra so I can't even tell you what properties I expect to hold over durations :(
armstrjare has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
msch: it wouldn't even matter, because months can't be a duration.
<msch>
apeiros of course they are a duration, but no matter how many weeks you add to a duration of 1 month you never get two months, you always get 1 month and n weeks.
cj3kim has quit [Ping timeout: 265 seconds]
carraroj has quit [Read error: Operation timed out]
<platzhirsch>
Given the symbols vs. strings discussion, when there is an abstract graphical editor (meaning the pixels are represented by a grid of capital letters, where the capital letters represents the color), would you use strings for the color or symbols? The image width/height is capped at 250 x 250
freerobby has joined #ruby
<apeiros>
msch: no
thomasxie has joined #ruby
<apeiros>
msch: the "1 month" part of that duration is undefined.
dangerousdave has joined #ruby
<apeiros>
msch: until you set/define either a start or an end
<apeiros>
and then you've an interval.
<msch>
apeiros ah yes. got it.
<msch>
apeiros and that's why it's ActiveSupport::Duration in Rails but interval in postgres
<msch>
apeiros and I want intervals and there are none for ruby
<apeiros>
mind you, I'm not sure either of them uses the terms appropriately
mengu has quit [Remote host closed the connection]
<apeiros>
I'd trust postgres more in getting it right, though
gaussblurinc has quit [Quit: Leaving.]
<apeiros>
last time I looked at AS Duration it approximated months. your example makes it look like it now remembered the summands.
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<msch>
apeiros same. and what you told me about intervals vs. durations matches my understanding. do you know any ruby lib that works with intervals?
mikecmpbll has joined #ruby
<apeiros>
I wrote one. but I never finished it and it doesn't work on 1.9 :)
<apeiros>
in other words: no
<apeiros>
ruby date/time/duration/interval/calendar situation is rather unsatisfying
<msch>
apeiros is it open source? and what did you do to make it not work on 1.9?
<msch>
apeiros "rather unsatisfying"
<apeiros>
I wrote it 5y ago, when 1.8 was current, and had some syntax diffs.
<msch>
apeiros thanks! I'll read it, at least to understand a bit better how it all works
<apeiros>
I wouldn't use it. but maybe you can take ideas from it.
* apeiros
off for lunch
platzhirsch has quit [Quit: Leaving.]
relix has joined #ruby
gaussblurinc has joined #ruby
coderhs has quit [Ping timeout: 246 seconds]
gabrielCmendes has quit [Ping timeout: 268 seconds]
Splourian has left #ruby [#ruby]
jonmorehouse has quit [Ping timeout: 265 seconds]
sk87 has joined #ruby
abdulsattar has joined #ruby
platzhirsch has joined #ruby
platzhirsch has left #ruby [#ruby]
browndawg has quit [Quit: Leaving.]
kimiamania|BNC is now known as kimiamania
nilcolor has joined #ruby
timonv has joined #ruby
m4n1f3st0 has quit []
nilcolor has quit [Remote host closed the connection]
bbloom has quit [Ping timeout: 265 seconds]
chipotle has quit [Quit: cya]
tesuji has joined #ruby
petey has joined #ruby
Speed has quit [Ping timeout: 252 seconds]
Tomasso has joined #ruby
Tomasso has quit [Remote host closed the connection]
Atw has quit [Ping timeout: 265 seconds]
rm_ has joined #ruby
ziyadb_ has quit [Quit: Connection closed for inactivity]
fabrice31 has quit [Remote host closed the connection]
petey has quit [Ping timeout: 265 seconds]
coderhs has joined #ruby
hiall has joined #ruby
<lxsameer>
which syntax style of hashes are newer ? :key => value or key: value ?
<jhass>
the later was introduced in 1.9
ioNull has quit [Ping timeout: 240 seconds]
rm_ has quit [Ping timeout: 265 seconds]
siwica has joined #ruby
Celm has joined #ruby
<agent_white>
jhass: I think I might've found the 'bug'... it looks like the library implementors made it so a call to something like `window.border(....)` would call the 'method missing' to forward it to `Ncurses::border(window, ....)`
<agent_white>
jhass: Is that in poor taste?
<jhass>
feels the wrong way around but still sounds like a delegator pattern to me
rylev has quit [Remote host closed the connection]
<agent_white>
jhass: Hm, I'll look into that. Still haven't tracked down the bug yet, but good learning experience so far :)
ephemerian has joined #ruby
mengu has joined #ruby
cj3kim has joined #ruby
rylev has joined #ruby
aspiers has quit [Ping timeout: 264 seconds]
Celm has quit [Ping timeout: 265 seconds]
<shevy>
ewwww
<shevy>
ncurses
<shevy>
AND method_missing
<shevy>
double ewwww
robustus has quit [Ping timeout: 255 seconds]
agrinb_ has joined #ruby
<jottr>
I am having trouble understanding the proper use of bower ins conjunction with Sprockets. I am using middleman as my static site generator, which in turn uses sprockets to manage assets. I have this in my config: http://sprunge.us/QGQG I am not sure I fully grasp how append_path actually works. I have my .bowerrc set up so that it installs its packages to vendor/assets/bower . I still have assets which reside
<jottr>
in the vendor dir, which 404.
robustus has joined #ruby
<jottr>
Maybe someone could clarify what the following line posted in the paste above actually expands to: Dir.glob(File.join("#{root}", @bower_config["directory"], "*", "fonts")) ?
ioNull has joined #ruby
rylev has quit [Ping timeout: 252 seconds]
cj3kim has quit [Ping timeout: 265 seconds]
<jottr>
Does this expand to, ./vendor/assets/bower/*/fonts ?
Speed has joined #ruby
<ak5>
how do I remove gems? If I just rm -rf a gem folder, bundle show still shows that gem, but that it was deleted
agrinb_ has quit [Ping timeout: 240 seconds]
<jhass>
ak5: gem uninstall
flowerpot has joined #ruby
<ak5>
jhass: that is only removing local gems for me... I tried sudo gem uninstall
<ak5>
but that didn't remove them. Also sudo gem list also only shows ***local gems***
<ak5>
I am a little confused, local gems, means local to machine or local to user?
<jhass>
what's a non-local gem?
<jhass>
machine
<ak5>
I see
<jhass>
a gem can be installed only for a user with the --user-install option, but that's not what local means
<ak5>
gah, I just want to remove all systemwide gems that i didn't install via my distros packagemanagr
<ak5>
looks like thats going to be hard
sguselnikov has quit [Quit: Computer has gone to sleep.]
<jhass>
sudo gem uninstall the route to go then
Sammael has quit [Ping timeout: 246 seconds]
matchaw has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
endash_ has joined #ruby
gancl has quit [Quit: No Ping reply in 180 seconds.]
gancl has joined #ruby
gancl has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 252 seconds]
francisfish has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
Speed has quit [Ping timeout: 268 seconds]
siwica has quit [Remote host closed the connection]
Stalkr_ has quit [Quit: Leaving...]
yfeldblum has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
teddyp1cker has quit [Ping timeout: 268 seconds]
agent_white has quit [Quit: goodnight]
postmodern has quit [Quit: Leaving]
nvrch has quit [Quit: nvrch]
mikecmpbll has quit [Quit: i've nodded off.]
jamto11 has joined #ruby
mikecmpbll has joined #ruby
Speed has joined #ruby
arietis has joined #ruby
popl has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
ikaros has quit [Quit: Ex-Chat]
poguez_ has quit [Quit: Connection closed for inactivity]
coderhs has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rylev has joined #ruby
jamto11 has quit [Ping timeout: 268 seconds]
browndawg has joined #ruby
rylev has quit [Read error: Operation timed out]
toretore has joined #ruby
cj3kim has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
freerobby has joined #ruby
sputnik1_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mehlah has quit [Quit: Leaving...]
cj3kim has quit [Ping timeout: 265 seconds]
Kuda has joined #ruby
atmosx has quit [Remote host closed the connection]
atmosx has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
Hanmac has joined #ruby
roolo has quit [Quit: Leaving...]
Hanmac1 has quit [Ping timeout: 245 seconds]
fflush has joined #ruby
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
vasilakisFiL has joined #ruby
maroloccio has quit [Ping timeout: 268 seconds]
lkba has joined #ruby
<vasilakisFiL>
hi! I am using active_record 4.0.4 outside rails.. the thing is that I have errors like ForbiddenAttributesError: ActiveModel::ForbiddenAttributesError due to the strong parameters.. but I don't use any controllers so I can't actually use stromg parameters and also the 'protected_attributes' gem is for active_record 3.2 not 4
<vasilakisFiL>
any ideas how to solve this ?
Kuda has quit [Quit: Byebye!]
<jhass>
well, you probably still could use strong_parameters
<benzrf>
anybody willing to try out my unfinished gem :3
<olivier_bK>
when i excuse my script on my pc with ruby 1.9.3p448 i get 30/3/2014 à 00:00:00
<benzrf>
olivier_bK: could it be a timezone thing
<olivier_bK>
but on the server with ruby 1.9.3p448 i get 30/3/2014 à 1:00:00
bluenemo has joined #ruby
<jhass>
sounds like timezones
larissa has joined #ruby
keppy has joined #ruby
poikon has joined #ruby
cj3kim has quit [Ping timeout: 265 seconds]
bambuka has quit [Quit: Saliendo]
r_rios has joined #ruby
chrisbolton has joined #ruby
<jhass>
olivier_bK: I think you want Time.at
<olivier_bK>
benzrf, I haven't thought about that
<jhass>
but that code doesn't make a whole lot of sense currently anyway
freerobby1 has quit [Ping timeout: 264 seconds]
Veejay has joined #ruby
paulfm has joined #ruby
<Veejay>
Hello. I've seen a lot of mentions of RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR online to tune 2.1.1's GC behaviour
kennym has joined #ruby
<Veejay>
Where is that variable supposed to be tuned or configured though?
<chrisbolton>
Attempting to test a tictactoe game written in Ruby. Has a method that requires user input via gets.chomp. Anyone have any experience testing gets with minitest? Would really appreciate some help.
charliesome has joined #ruby
<benzrf>
yo charliesome
<benzrf>
wanna try the super double pre pre pre alpha version of Quick
<jhass>
Veejay: if it's like anything like GC tuning in previous ruby versions, in your environment where you call ruby
Speed has quit [Read error: Connection reset by peer]
Tomasso has joined #ruby
Speed has joined #ruby
lmickh has joined #ruby
charlies_ has quit [Ping timeout: 246 seconds]
<Veejay>
OK
<crome>
chrisbolton: separate the logic for getting input and then stub it in the test
coderhs has joined #ruby
dblessing has joined #ruby
m0s^away is now known as m0s
<chrisbolton>
I’m familiar with stubing in Rspec. It appears stubing in minitest requires mocha. Good call. I’ll give it a whirl. Thanks.
jottr_ has joined #ruby
nowthatsamatt has joined #ruby
jaywastaken has joined #ruby
<apeiros>
chrisbolton: stubbing requires nothing. it only requires mocha if you want to stub with mocha.
rm_ has joined #ruby
Deejay_ has joined #ruby
<jokke>
hey
<chrisbolton>
apeiros: You’re right. I ran with the first google result and should have gone directly to the minitest docs.
<chrisbolton>
thanks
gigetoo has quit [Ping timeout: 265 seconds]
<jokke>
i'm using guard for a project to compile coffee script
<jokke>
but guard-coffeescript seems to remove comments from the files
mary5030 has joined #ruby
<jokke>
i haven't found a way to convert them into javascript style comments
coderhs has quit [Ping timeout: 268 seconds]
<jokke>
any ideas?
kaichanvong has joined #ruby
horsecowdog has joined #ruby
<benzrf>
jokke: have u read the docs
<benzrf>
### is for js comments
<jokke>
oooh
<benzrf>
jokke: regular cs comments get removed
<jokke>
thanks a lot
<benzrf>
:)
<benzrf>
fyi ### forms a block comment
mary5030 has quit [Remote host closed the connection]
<benzrf>
terminated with ### again
<jokke>
yeah i just noticed
<jokke>
w
mary5030 has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
<benzrf>
somebody try the new version of Quick already
<KevinSjoberg>
What would be the best way to make a class represent itself as a hash as well? I have a class (basically a data object) with methods that return a certain value. There is very simple logic in each method.
Speed has joined #ruby
<taf2>
Hello - I am seeing Encoding::UndefinedConversionError errors when I run code on one server but not the other servers… I am checking and both servers have what I believe to be identical versions of ruby… e.g. ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]
<shevy>
KevinSjoberg can you reword that question
<taf2>
I'm wondering anything else I can look at to figure out why one sever is giving errors while the other is not?
<shevy>
KevinSjoberg you can define [] for your class
<shevy>
KevinSjoberg and you can dynamically add or remove methods too
<jhass>
taf2: different locales I bet
<taf2>
jhass: ah okay… system level settings?
<jhass>
yeah
<taf2>
jhass: any other insight?
<jhass>
make sure to use the same locale everywhere
<taf2>
the error has this in it: "\xD7" from ASCII-8BIT to UTF-8
DrShoggoth has joined #ruby
Tomasso has joined #ruby
Tomasso has quit [Read error: Connection reset by peer]
<taf2>
jhass: at the application level or system level… if system level… any insights into how that's set in linux?
<jhass>
by setting LANG, LC_ALL and families, have a look at the output of `locale`. How to set it on boot depends on your init system
<taf2>
identical on both systems...
<taf2>
LANG=en_US.UTF-8
Celm has quit [Ping timeout: 265 seconds]
<taf2>
and lots more references to en_US.UTF-8
<KevinSjoberg>
shevy: Absolutely. I want to be able to represent my class as a hash. Is there a neat way to do this or will I have to define #to_h or #to_hash and then use meta programming for the representation?
Deejay_ has quit [Quit: Computer has gone to sleep.]
thesheff17 has quit [Quit: Leaving]
danshultz has quit [Remote host closed the connection]
xbob has quit [Ping timeout: 246 seconds]
<shevy>
Depends on how you define a "hash" object. You can define [] and []=method, and if you are fancy you can also add .has_key? and so forth
<jhass>
taf2: is ruby -e "p Encoding.default_external" the same on both?
danshultz has joined #ruby
flops has joined #ruby
<shevy>
why you want to use meta programming sort of eludes me though
<taf2>
#<Encoding:UTF-8>
<KevinSjoberg>
shevy: basically I want a convenient way to take an instance of a object and pass it as an hash as parameters to another object.
webgen has quit [Remote host closed the connection]
jlast has joined #ruby
alexju has joined #ruby
<shevy>
I see
<jhass>
taf2: then it's time to share what you're actually doing
rylev has quit [Remote host closed the connection]
lukec has quit [Quit: lukec]
<shevy>
interesting that matz did not want Enumerable->Hash
rylev has joined #ruby
fijimunkii has joined #ruby
<shevy>
kinda feels hackish to have to use instance_variables :\
<taf2>
ok… let's see.. so i have code that is querying google analytics api… it's identical on both servers… it's running in resque workers… i've restarted on both systems.. i have interestingly found that when i reduce the problem - running the task in say a rails console i don't see this issue replicated… so it could be something specific with the user running resque...
cj3kim has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
chipotle has joined #ruby
<taf2>
the errors are happening on a call to puts actually..
alexju has quit [Ping timeout: 252 seconds]
mary5030 has joined #ruby
<taf2>
i bet it could the stdout log files...
<KevinSjoberg>
shevy: I've noticed that. Due note that this still meta programming ;)
teddyp1cker has joined #ruby
<shevy>
is it?
<KevinSjoberg>
shevy: Of course. :)
freezey_ has quit [Read error: Connection reset by peer]
freezey has joined #ruby
<shevy>
instance_variables just gives back an array of all @ivars
thesheff17 has joined #ruby
monkegjinni has quit [Remote host closed the connection]
doodlehaus has joined #ruby
mercwithamouth has joined #ruby
crystal77 has joined #ruby
<KevinSjoberg>
shevy: Yes, but instance_variables knows about itself, i.e., metaprogramming.
jwest has quit [Quit: WeeChat 0.4.1]
<shevy>
eh
greggroth has joined #ruby
<shevy>
is self also metaprogramming? because self knows about itself :P
tobago has quit [Remote host closed the connection]
jlebrech has joined #ruby
<shevy>
The API is so awful
<KevinSjoberg>
shevy: there is room for improvement. :)
<shevy>
I dunno :(
<shevy>
Ruby uses so many strange constructs
<shevy>
@@foo
<shevy>
all $
<taf2>
nah :)
petey has quit [Remote host closed the connection]
<shevy>
all the various *eval ways
cj3kim has quit [Read error: Connection reset by peer]
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
doodleha_ has joined #ruby
apeiros has quit [Remote host closed the connection]
<taf2>
jhass: ok… so it's something to do with logging… in the code that fails I take a string that has characters in it that trigger Encoding::UndefinedConversionError… when calling puts response # where response is from google analytics api...
petey has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
Tomasso has joined #ruby
apeiros has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
danshult_ has joined #ruby
<jhass>
taf2: you need to find out why that string hasn't the correct encoding it is in declared
osvico has quit [Read error: Connection reset by peer]
alexju has joined #ruby
slawrence has joined #ruby
osvico has joined #ruby
ce_afk is now known as cescalante
doodlehaus has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
jwest has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
oneawayman has joined #ruby
lxsameer has quit [Quit: Leaving]
xcv has joined #ruby
abdulsattar has quit [Ping timeout: 255 seconds]
ak5 has quit [Ping timeout: 264 seconds]
himsin has joined #ruby
himsin has quit [Client Quit]
rayners has joined #ruby
dx7 has joined #ruby
greggroth has quit [Ping timeout: 245 seconds]
<taf2>
jhass: i think i figured out at least what caused the issue… I run resque using resque-pool and had sent the HUP signal to reload after log rotation… so something related to that… doing a full restart the issue has gone away...
<taf2>
but at least this means i can look into why sending a HUP to reload workers after log rotation will likely cause something to go wrong with locale
bal has quit [Quit: bal]
toastynerd has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Tomasso has quit [Read error: Connection reset by peer]
zachallett has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
tesuji has joined #ruby
CreativeEmbassy has quit [Quit: FO SHO]
tesuji has quit [Max SendQ exceeded]
sk87 has joined #ruby
xjiujiu has quit [Ping timeout: 252 seconds]
_Andres has joined #ruby
chrisbolton has joined #ruby
chrisbolton has quit [Client Quit]
afreidah has quit [Ping timeout: 245 seconds]
snath has quit [Ping timeout: 246 seconds]
xcv_ has joined #ruby
funktor has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
<peta_>
my ruby kung-foo skills are somewhat rusty – what is the difference between require "URI" and require "ui" … the docs state that the filenames used in require are case-sensitive … but obvious they are not
Jetchisel has joined #ruby
cj3kim has joined #ruby
<shevy>
what the heck is ui
<peta_>
require "uri" I mean
afreidah has joined #ruby
banister has quit [Ping timeout: 240 seconds]
<shevy>
ok
<shevy>
require 'URI' is a syntax error
<shevy>
who taught you to use it? :)
<shevy>
ok I lied
<shevy>
it is not a syntax error but a LoadError
<peta_>
no
AlexRussia__ has joined #ruby
<peta_>
I tried it in irb (1.8.7 bundled with Mac OS) and it loads and returns true
<Hanmac>
peta_: ithink it depends on your OS and file system
<taf2>
jhass: also this thread is crazy old but could be related: https://gist.github.com/defunkt/238999 … if you're still interested ready comment from ryansch
<taf2>
s/ready/read/g
Photism has quit [Read error: Connection reset by peer]
enebo has joined #ruby
Jon30 has quit [Ping timeout: 245 seconds]
skammer is now known as skammer|afk
skammer|afk is now known as skammer
cj3kim has quit [Ping timeout: 255 seconds]
<peta_>
Hanmac: do you have any reference for this assumption? I have to explain why require "URI" worked flawlessly for several months now, despite it's the wrong case
Photism has joined #ruby
apeiros has joined #ruby
toastynerd has quit [Remote host closed the connection]
oo_ has joined #ruby
funktor has quit [Remote host closed the connection]
<Hanmac>
peta_: on OSX case-sensity depends on the filesystem (you can set the filesystem to be case-insensity)
funktor has joined #ruby
karmatr0n has quit [Remote host closed the connection]
<peta_>
Hanmac: ok, thx. will investigate on this
sailias has joined #ruby
funktor has quit [Read error: Connection reset by peer]
BrianJ has joined #ruby
funktor has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
petey has joined #ruby
ndrei has joined #ruby
oo_ has quit [Ping timeout: 264 seconds]
petey has quit [Remote host closed the connection]
lw has quit [Quit: s]
bklane has joined #ruby
ndrei has quit [Read error: Operation timed out]
nateberkopec has joined #ruby
aspiers has joined #ruby
lw has joined #ruby
rm_ has joined #ruby
MouseTheLuckyDog has joined #ruby
oo_ has joined #ruby
jorts has joined #ruby
terrellt_ is now known as terrellt
wildroman2 has joined #ruby
MouseTheLuckyDog has left #ruby ["Leaving"]
echevemaster has joined #ruby
mrgoodcat has quit [Quit: Updating details, brb]
mrgoodcat has joined #ruby
mrgoodcat has quit [Client Quit]
<BrianJ>
what is the best way to check with line a word is on in a text file
mrgoodcat has joined #ruby
supermarin_ has joined #ruby
flowerhack has joined #ruby
mikepack has joined #ruby
arubincloud has joined #ruby
rm_ has quit [Ping timeout: 245 seconds]
Guest77325 has joined #ruby
<Guest77325>
http://www.marketglory.com/strategygame/galahad1st for online gamers, if you didn't already, use this link to register on MerkatGlory: a free2play financial strategy game where virtual currency can be converted into real money. It starts out slow but in time you can turn a good profit that is if you have the necessary patience to grow a little bit every day :P
Guest77325 has left #ruby [#ruby]
oo_ has quit [Ping timeout: 265 seconds]
<apeiros>
BrianJ: can't parse that question
freezey has quit [Remote host closed the connection]
<shevy>
BrianJ one simple way - use File.readlines, then grep
Speed has quit [Read error: Connection reset by peer]
<BrianJ>
lets say I have a file that contains
Speed has joined #ruby
<BrianJ>
nvm, I'm going to just create a pastie and post it
<apeiros>
BrianJ: s/with/which/?
zigomir has quit [Remote host closed the connection]
x77686d has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arietis has quit [Quit: Computer has gone to sleep.]
<Hanmac>
BrianJ: File.foreach(path).with_index.find {|l,i| l =~ /word/ }
<shevy>
first answer gives one solution
Tomasso has joined #ruby
petey has joined #ruby
<BrianJ>
i think with_index might solve my problem
mrnugget has quit [Quit: mrnugget]
kevind has joined #ruby
snath has joined #ruby
Tomasso has quit [Client Quit]
<BrianJ>
thanks. I'll mess with it a bit
<bilbo_swaggins>
is #with_index a method of Enumerable?
<bilbo_swaggins>
I can just tack that on to any enumerable?
freeBlue has joined #ruby
<Hanmac>
bilbo_swaggins: each_with_index is from Enumerable, with_index comes from Enumerator
<shevy>
not sure
Lewix has quit [Remote host closed the connection]
<shevy>
that confuses me always
gaussblurinc has quit [Quit: Leaving.]
<shevy>
Enumerable vs. Enumerator
petey has quit [Read error: Connection reset by peer]
<Hanmac>
shevy: Enumerator includes Enumerable
<bilbo_swaggins>
that's badass
petey has joined #ruby
arietis has joined #ruby
<shevy>
hmm
<shevy>
so Enumerator is the mother of all enumerations
ndrei has joined #ruby
<bilbo_swaggins>
#each_with_index is nice, but being able to just shove the index in at any time? even better
aspires has joined #ruby
tylersmith has quit [Remote host closed the connection]
cj3kim has joined #ruby
schu has joined #ruby
flops has quit [Quit: leaving]
ndrei has quit [Ping timeout: 240 seconds]
<schu>
i have a rather long text and need to strip away text parts that are enclosed in html <h2> tags (which means the whole <h2>something</h2> part has to go) - can anyone help me on how to do that in ruby?
vasilakisFiL has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 264 seconds]
b00stfr3ak has joined #ruby
karmatr0n has joined #ruby
oo_ has joined #ruby
yasushi has joined #ruby
_justin has joined #ruby
ikawnoclast has quit [Quit: Leaving.]
eynj has quit [Ping timeout: 246 seconds]
ndrei has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
bronson has joined #ruby
codabrink has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
mikemar10 has joined #ruby
codabrink has joined #ruby
yfeldblum has joined #ruby
schu has quit [Remote host closed the connection]
jobewan has joined #ruby
greggroth has quit [Ping timeout: 252 seconds]
dstynchula has joined #ruby
lukec has joined #ruby
kumarat9pm has quit [Quit: Page closed]
robbyoconnor has quit [Ping timeout: 240 seconds]
lw has quit [Quit: s]
arietis has quit [Quit: Computer has gone to sleep.]
larissa has quit [Quit: Leaving]
m1lt0n_ has quit [Quit: leaving]
EminenceHC has joined #ruby
<EminenceHC>
I have a ruby script that starts a daemon. (http://daemons.rubyforge.org/) I am wondering if there is an easy way to send an email to someone if the daemon stops running for any reason?
spider-mario has joined #ruby
Bira has joined #ruby
lolmaus_ has quit [Ping timeout: 246 seconds]
pen has quit [Remote host closed the connection]
xbob has joined #ruby
oo_ has joined #ruby
1JTAAX36Q has quit [Ping timeout: 265 seconds]
hobodave has joined #ruby
mark_locklear has quit [Ping timeout: 255 seconds]
<apeiros>
EminenceHC: such processes are called watchdog or monitor
<apeiros>
there are plenty of tools for that
reijoslav has quit [Ping timeout: 240 seconds]
GaryOak_ has joined #ruby
yfeldblum has quit [Ping timeout: 268 seconds]
reijoslav has joined #ruby
<jhass>
a popular ruby tool for that is god
Speed has quit [Read error: Connection reset by peer]
jds has quit [Quit: Connection closed for inactivity]
<bilbo_swaggins>
I tried to do "foo".delete /o/ but can't use regex for that :P
<bilbo_swaggins>
There's gotta be a different way
greister has joined #ruby
oo_ has joined #ruby
monkegjinni has joined #ruby
ikawnoclast has joined #ruby
oo_ has quit [Remote host closed the connection]
sski has quit [Remote host closed the connection]
oo_ has joined #ruby
ben3 has quit [Quit: ben3]
_justin has quit [Quit: _justin]
sski has joined #ruby
michaeldeol has joined #ruby
<chrisbolton>
Anyone familiar with a way to handle testing a loop like (https://gist.github.com/Iknewthisguy/9895342) with minitest? The method keeps looping until the appropriate value is provided. This is more of a testing theory question than syntax.
m4n1f3st0 has joined #ruby
zigomir has joined #ruby
<EminenceHC>
apeiros: I am not looking for a monitor process to restart it, I just want to be notified if it does stop through email. I am using this ruby function: http://daemons.rubyforge.org/Daemons.html
<jhass>
chrisbolton: stub out whatever method blocks and waits for input and make it not block and wait for input
Hanmac has joined #ruby
<apeiros>
EminenceHC: that's what a monitor process does too
CreativeEmbassy has quit [Quit: FO SHO]
Photism_ has joined #ruby
oo_ has quit [Ping timeout: 265 seconds]
<EminenceHC>
apeiros: Ok Ill try god.
xerxas has joined #ruby
sski has quit [Ping timeout: 252 seconds]
chrisbolton has quit [Ping timeout: 245 seconds]
Photism has quit [Ping timeout: 265 seconds]
bilbo_swaggins has quit [Quit: Leaving]
toastynerd has joined #ruby
Photism2 has joined #ruby
peta_ has quit [Quit: peta_]
kennym has quit [Quit: Leaving.]
rippa has joined #ruby
cj3kim has joined #ruby
Photism_ has quit [Ping timeout: 265 seconds]
nhmood has joined #ruby
aniM has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
GaryOak_ has quit [Remote host closed the connection]
<aniM>
Is there an irc channel for rails?
<aniM>
or is this it?
peta_ has joined #ruby
peta__ has joined #ruby
<apeiros>
aniM: #ror, #rails, #rubyonrails
<apeiros>
aniM: also mentioned on rails' website
<workmad3>
aniM: #rubyonrails although #ror and #rails should boot you over to there if you try to join them... you need to be registered and identified with nickserv though
Tomaso2 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
pauld has quit [Remote host closed the connection]
robertodecurnex has joined #ruby
<aniM>
Awesome. Thank you guys!
pierre1_ has joined #ruby
deadlock has joined #ruby
Xiti` has joined #ruby
bbloom has joined #ruby
<robertodecurnex>
Hello
<robertodecurnex>
I was wondering if there is any discussion about the file names of the ruby std libs
<antihero>
w/c
antihero has left #ruby [#ruby]
peta_ has quit [Ping timeout: 252 seconds]
Lewix has joined #ruby
Pixi__ has joined #ruby
simono has quit [Read error: Connection reset by peer]
GodPuppet has quit [Remote host closed the connection]
Deejay_ has joined #ruby
simono has joined #ruby
<robertodecurnex>
Most of the classes with name of more than one word are contained filenames of consecutive letters
<robertodecurnex>
Examples: bigdecima, fileutils
pen has joined #ruby
toastyne_ has joined #ruby
Tomaso2 has quit [Client Quit]
<robertodecurnex>
It's really annoying since the require does not match the class included at all.
nkts has quit [Quit: leaving]
lkba has quit [Ping timeout: 252 seconds]
Xiti has quit [Ping timeout: 264 seconds]
Tomasso has joined #ruby
Tomasso has quit [Max SendQ exceeded]
lw has joined #ruby
<Hanmac>
robertodecurnex: "bigdecimal" => BigDecimal ... so where is the problem?
<jhass>
well, those tare the two big conventions, ruby stdlib vs rails
Tomasso has joined #ruby
Tomasso has quit [Max SendQ exceeded]
<jhass>
*are
bluenemo has quit [Remote host closed the connection]
poguez_ has joined #ruby
Tomasso has joined #ruby
Tomasso has quit [Max SendQ exceeded]
<robertodecurnex>
There's no a programatival way of infere that (without a dictionary)
sambao21 has joined #ruby
Xiti` has quit [Ping timeout: 255 seconds]
Tomasso has joined #ruby
Tomasso has quit [Max SendQ exceeded]
quatron has joined #ruby
<robertodecurnex>
If you take the rubygems naming pattern you will see the difference
nhmood has left #ruby [#ruby]
nhmood has joined #ruby
nhmood has quit []
<robertodecurnex>
BigDecimal would be written under the big_decimal rb file
<apeiros>
robertodecurnex: I think it's mostly true. It could be better. It will never be perfectly so, though.
<aliesky>
how can I read the data from a dropdown(multiple) in the ocntroller?
davy_ has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
macmartine has joined #ruby
<apeiros>
aliesky: and you're talking about… rails? rubymotion? gtk?
<aliesky>
apeiros: rails
mrnugget has joined #ruby
<apeiros>
aliesky: then I suggest you use #rubyonrails
<aliesky>
ah thanks
<aliesky>
join /rubyonrails
kitak has quit [Remote host closed the connection]
<robertodecurnex>
aliesky: "this is not the IRC youa re looking for" jedi hand wave here
Monito has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
aliesky has left #ruby ["Leaving"]
kitak has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
mansi has quit [Read error: Connection reset by peer]
arietis has quit [Quit: Computer has gone to sleep.]
afreidah has joined #ruby
geggam has joined #ruby
Tomasso has joined #ruby
mansi has joined #ruby
spyderman4g63 has joined #ruby
tcstar has joined #ruby
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
deadlock has quit [Ping timeout: 268 seconds]
vlad_starkov has joined #ruby
TMM has joined #ruby
maximski has joined #ruby
<benzrf>
yo anybody wanna try quick
<benzrf>
o3o
markisonfire has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
TMM has left #ruby [#ruby]
m0s^away is now known as m0s
wildroman2 has quit [Remote host closed the connection]
<robertodecurnex>
apeiros Hanmac1 jhass Thank you for your input! That was me fighting against the windmills once again.
Stalkr_ has joined #ruby
cj3kim has joined #ruby
olivier_bK has quit [Ping timeout: 255 seconds]
toastynerd has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
zachallett has quit [Remote host closed the connection]
sputnik1_ has joined #ruby
wildroman2 has joined #ruby
<apeiros>
robertodecurnex: yeah, those windmills are obnoxious enemies! very fiendish.
toastynerd has joined #ruby
Voodoofish430 has joined #ruby
pierre1_ has quit [Ping timeout: 245 seconds]
whomp has quit [Ping timeout: 245 seconds]
<Hanmac>
yeah, when railists once again try to change core Hash so it treats Symbol and String equal ,P
<apeiros>
Hanmac: that doesn't go far enough! it should also treat array and hash keys equal!
cj3kim has quit [Ping timeout: 265 seconds]
<Hanmac>
apeiros: did you know that ruby has dynamic and static Symbols now? ;P
chrisbolton has quit [Quit: chrisbolton]
<jhass>
apeiros: Hanmac and a mixed mode, like php does!
<apeiros>
Hanmac: now != will have :-p
erikruthven has joined #ruby
frem_ has joined #ruby
<apeiros>
Hanmac: but yes, I know ruby will in the future GC symbols
ephemerian has quit [Quit: Leaving.]
<apeiros>
(unless the patch gets thrown out again, that is)
dangerousdave has joined #ruby
<robertodecurnex>
I wont start that discussion, to much dirty words would fall from my mouth :P
<jhass>
is that because all the webdevs are unable to not convert user input to symbols?
<robertodecurnex>
One of the firts things a teach to new comers are Jim's polite programming talk + the breand new refinements
supermarin_ has quit [Quit: Computer has gone to sleep.]
supermarin_ has joined #ruby
toastynerd has quit [Remote host closed the connection]
<jhass>
hm, do you guys use refinements by now?
<Hanmac>
jhass: *goes into Boromir Pose* "no one simply convert user input into symbols" ;P
<robertodecurnex>
I do, not much, but have been playing with them
<workmad3>
Hanmac: s/no one/one does not/
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
afreidah has quit [Read error: Operation timed out]
<robertodecurnex>
be awear of text to symbol conversion
zachallett has joined #ruby
<robertodecurnex>
i'ts not safe, at all
<robertodecurnex>
It's eaven better to move everything to string (ugly but safer)
xcv_ has quit [Ping timeout: 255 seconds]
<jhass>
maybe we should rename String#to_sym to String#to_sym_i_state_that_this_is_not_user_input_in_any_way
<jhass>
and alias it to to_s at the same time
<jhass>
just to confuse the people even more
moeSeth_ has joined #ruby
<robertodecurnex>
symbols create references that do not die until the process does. Even if there is no user reference to them.
Hanmac1 has joined #ruby
<banister_>
jhass r u having me on
<apeiros>
jhass: too many 1.9 projects, therefore not using refinements at all atm
<robertodecurnex>
Time to move on!
<robertodecurnex>
2.1.1, you wont regreat it
supermarin_ has quit [Ping timeout: 252 seconds]
<robertodecurnex>
notes: do not use RVM (at least not on prod)
<robertodecurnex>
do not use precompiled packages
<apeiros>
we use rvm on prod. works fine.
<robertodecurnex>
do it your self
maximski has quit []
greister has quit [Ping timeout: 252 seconds]
<robertodecurnex>
Do you have memory+cpu usage metrics?
x77686d has quit [Quit: x77686d]
Hanmac has quit [Ping timeout: 240 seconds]
<apeiros>
yes, why?
<robertodecurnex>
apeiros: try to compile it on that machine and compaere them
stephenmac7_ has joined #ruby
Tomasso has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
<robertodecurnex>
apeirons: how much time it takes to install ruby usign RVM? much less than the compiler does.
timonv has joined #ruby
stephenmac7 has quit [Ping timeout: 265 seconds]
<apeiros>
robertodecurnex: until sysops says it uses too much juice, I see no reason to expend that time
ghr has joined #ruby
<robertodecurnex>
apeiros: ¬_¬
<apeiros>
unless you work for free, economics matter
stephenmac7_ is now known as stephenmac7
monkegjinni has quit [Remote host closed the connection]
<Xeago>
company I'm at runs contained packages of rbenv, each with their own ruby
<robertodecurnex>
My teammates didn't get why I got so exited compiling things. I made a video to show them how it feels insede : https://www.youtube.com/watch?v=Sip2gxmkfOI
toastynerd has joined #ruby
<Xeago>
compiled on each machine, several apps (each with their own container)
<robertodecurnex>
economics ?
GaryOak_ has quit [Remote host closed the connection]
<robertodecurnex>
apeiros: how ?
<robertodecurnex>
apeiros: I usually work with lot of workers, that proces things 24/7
<robertodecurnex>
apeiros: at leat for me it was a WIN
<apeiros>
robertodecurnex: a day of my time costs X, value generated by ruby running 10% faster 0, X > 0.
<robertodecurnex>
apeiros: but cant see how it can produce looses
<Xeago>
robertodecurnex: if he is fixing that, he is not increasing user value
mg^ has joined #ruby
<Xeago>
which is the expectation, thus a net loss
<Xeago>
even tho there is no actual loss, but there is a loss over time
<apeiros>
machines and electrical power are cheap. human labor isn't.
<robertodecurnex>
apeiros: until things get slow enought and you loose not 1 but 3 days + users that can not use the platform in the meantime
VTLob has joined #ruby
<apeiros>
robertodecurnex: that's not what will happen ;-)
carif has joined #ruby
carif has quit [Client Quit]
<apeiros>
and if it happens, rvm -> handcompiling won't be the solution
<robertodecurnex>
apeiros: it will, you may be working elsewere, that's another thing :P
mark_locklear has joined #ruby
<Xeago>
if your architecture is sound, it doesn't matter how long the setup takes, as long as it is bounded by cost and time
petey has quit [Remote host closed the connection]
<apeiros>
robertodecurnex: it would have to happen overnight. which it doesn't.
rainmanjam has joined #ruby
<erikruthven>
Hi what would be best strategy to click a button and then trigger a long background process at that moment?
dagobah has quit [Quit: Leaving...]
teddyp1c_ has joined #ruby
timonv_ has joined #ruby
<apeiros>
robertodecurnex: also it won't happen because existing code will run faster over time, not slower (new hardware)
<apeiros>
so no, it won't happen.
ghr has quit [Ping timeout: 255 seconds]
tcstar has quit [Read error: Connection reset by peer]
toastynerd has quit [Remote host closed the connection]
<jhass>
erikruthven: in Rails? -> #rubyonrails (though look at resque / sidekiq)
<apeiros>
if new software is "too slow"™, somebody will have to make a decision as to how much time we spend to make it "fast enough"™
toastynerd has joined #ruby
<xiphias>
slow code that scales is better than fast code that doesn't scale
pierre1_ has joined #ruby
<xiphias>
i <3 that code
<xiphias>
er, quote
Es0teric has quit [Quit: Computer has gone to sleep.]
<apeiros>
xiphias: I don't think I'd support such a blanko statement :)
teddyp1cker has quit [Ping timeout: 268 seconds]
davedev24 has quit []
tcstar has joined #ruby
papercode has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
dkamioka has joined #ruby
<apeiros>
xiphias: if you add in "all other considerations equal" it'd get better. but then it can still be off-reality. 1e9*n scales better than n**1.001, yet it may be very well a horrible choice for all practical values of n
freezey has joined #ruby
Xiti has joined #ruby
nvrch has quit [Quit: nvrch]
tylersmith has joined #ruby
ctp has quit [Read error: Connection reset by peer]
ctp_ has joined #ruby
ctp_ has quit [Client Quit]
Spami has joined #ruby
nhmood has joined #ruby
nomenkun has quit [Remote host closed the connection]
testcore has joined #ruby
arietis has joined #ruby
poikon has quit []
monkegjinni has joined #ruby
DouweM has quit [Quit: Leaving...]
x77686d has joined #ruby
binw has joined #ruby
davedev24 has joined #ruby
lw has quit [Quit: s]
Es0teric has joined #ruby
Xeago_ has joined #ruby
pierre1_ has quit [Ping timeout: 265 seconds]
jrhe has quit [Quit: Connection closed for inactivity]
lkba has joined #ruby
browndawg has quit [Quit: Leaving.]
simono_ has joined #ruby
rvraghav93 has quit [Read error: Connection reset by peer]
cj3kim_ has joined #ruby
papercode has quit [Quit: WeeChat 0.4.4-dev]
wallerdev has joined #ruby
Tomasso has joined #ruby
canton7 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<benzrf>
p-please
Hanmac has joined #ruby
<benzrf>
can somebody try quick
cover has quit [Ping timeout: 240 seconds]
<benzrf>
:_(
Xeago has quit [Ping timeout: 246 seconds]
simono has quit [Ping timeout: 268 seconds]
afreidah has joined #ruby
papercode has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
<robertodecurnex>
benzrf: what ?
subbyyy_ has joined #ruby
<robertodecurnex>
I just saw your kitten fac
<robertodecurnex>
*face
lukec has quit [Quit: lukec]
kirun has joined #ruby
cj3kim_ has quit [Ping timeout: 246 seconds]
<benzrf>
robertodecurnex: i need somebody to try out my gem
yacks has quit [Remote host closed the connection]
sambao21 has joined #ruby
<robertodecurnex>
benzrf: is o3o actually you gem ?
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
<benzrf>
no
<benzrf>
it is quick
pierre1_ has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
/Programs/Ruby/2.1.1/lib/ruby/gems/2.1.0/gems/ttfunk-1.1.1/lib/ttfunk/directory.rb:8: warning: assigned but unused variable - entry_selector
b1nd has joined #ruby
simono_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
anyone knows of a way to suppress these warnings?
<shevy>
it's from a third party (prawn)
smathieu has joined #ruby
rthwhw56jhw4 has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
<robertodecurnex>
benzrf: I could, but you have no docs, no repo... hard to try such a gem
RTG` has joined #ruby
obs has quit [Quit: Konversation terminated!]
<shevy>
benzrf add docu!
<shevy>
usage example!
funktor has quit [Remote host closed the connection]
<bryanculver>
OK, I'll try that if sleep doesn't work
<atmosx>
to not relay on timing at all.
timonv has quit [Remote host closed the connection]
<atmosx>
I'd go the other way around, try the expect first, and then the sleep... Expect might be way faster in many circumstances and less error-prone
<atmosx>
anyway bbl
<bryanculver>
OK
Lewix has joined #ruby
timonv has joined #ruby
bluOxigen has joined #ruby
ndrei has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
freerobby has quit [Ping timeout: 265 seconds]
fijimunkii has quit [Read error: Connection reset by peer]
rmill has quit [Changing host]
rmill has joined #ruby
fijimunkii has joined #ruby
freerobby has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
andy__ has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
_justin has quit [Quit: _justin]
morenoh149 has joined #ruby
andy__ has joined #ruby
mehlah has quit [Quit: Leaving...]
andy___ has joined #ruby
maximski has joined #ruby
andy___ is now known as Guest12501
Tomasso has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
me has joined #ruby
badhatter has joined #ruby
me is now known as Guest32172
<Guest32172>
Hi. What's the right way to avoid name collisions in mixins?
Elico has quit [Read error: Connection reset by peer]
Tomasso has joined #ruby
andy__ has quit [Ping timeout: 240 seconds]
ioNull has quit [Quit: Computer has gone to sleep.]
crodas has joined #ruby
<crome>
code screenshot
<crome>
wow
<jhass>
Guest32172: maybe use more composition
bluenemo has joined #ruby
rodasc has quit [Ping timeout: 240 seconds]
<Guest32172>
jhass, I didn't get you. How will composition help me?
<jhass>
class A; end; class B; def initialize; @a = A.new; end; end; over module A; end; class B; include A; end;
angelixd has quit [Ping timeout: 245 seconds]
supermarin_ has joined #ruby
TheMoonMaster has quit [Read error: Operation timed out]
Elico has joined #ruby
simono has joined #ruby
kryptek has quit [Read error: Operation timed out]
kpshek has joined #ruby
mway has quit [Quit: mway]
<Guest32172>
Let's assume that it must be a mixin.
<jhass>
Let's assume it must not
<jhass>
and now?
Lewix has quit [Remote host closed the connection]
<shevy>
hmm
crodas has quit [Ping timeout: 246 seconds]
<shevy>
if I have an array like [['cat','tom'], ['mouse','jerry']], what would be a simple way to put this into a cvs file?
funktor has quit [Remote host closed the connection]
werdnativ has joined #ruby
funktor has joined #ruby
<Guest32172>
jhass, I would also prefer to assume that it must not, but it really must.
<jhass>
good thing "it must" is not a reason that it must
badhatter has quit [Ping timeout: 264 seconds]
<sn0wb1rd>
Is it possible to obtain a rubygem's require path programmatically using Rubygems? For example, we need to use require 'net/ssh' for net-ssh rubygem.
<sn0wb1rd>
jhass: correct, I use that naming convention myself but wanted to make sure if there is any way to know that information and not simply guessing.
carraroj has joined #ruby
mikepack has quit [Remote host closed the connection]
<havenwood>
werdnativ: I'm not an rbenv user, but usually seems shims are the culprit. Have you tried?: rbenv rehash
funktor has joined #ruby
<centrx>
shimmy shim shims
klaut has joined #ruby
<toretore>
werdnativ: `which gem` ?
mheinke has joined #ruby
<werdnativ>
gist updated with details ^, thanks guys
prs has joined #ruby
<mheinke>
im having an issue, installing a gem (berkshelf) and getting this error... buff-ruby_engine requires Ruby version >= 1.9.2..... ruby -v says i have greater then or equal to 1.9.2... any thoughts?
<werdnativ>
havenwood yes, tried rbenv rehash
<shevy>
werdnativ perhaps you have multiple install dirs
<mheinke>
google has been useless
<dangerousdave>
what are the tests called that check multiple components work together to give the desired outcome?
bynaryshef has quit [Ping timeout: 246 seconds]
wildroman2 has quit []
<werdnativ>
dangerousdave: integration
IceDragon has quit [Ping timeout: 255 seconds]
<shevy>
dangerousdave: component tests!
bluenemo has quit [Read error: Connection reset by peer]
<werdnativ>
dangerousdave: or "acceptance" for desired outcome.
<havenwood>
Hanmac: i'd say worse than that actually ;P
<werdnativ>
Hanmac: my wife showed me that, I was like, ...and? what? Until I got it.
ghr has quit [Ping timeout: 252 seconds]
rylev has quit [Remote host closed the connection]
rakm has joined #ruby
bynaryshef has joined #ruby
<Hanmac>
i mean there ARE legitimate reasons do to it like that on the image ... but thats only because APPLE fucked the Hardware up ... :/
petey_ has joined #ruby
<werdnativ>
Yeah, I think they started with the different power levels over USB for charging original iPad, but I think that's standardized by now.
nanoyak has quit [Quit: Computer has gone to sleep.]
Spami has quit [Quit: This computer has gone to sleep]
* Hanmac
used the PowerChanger from his Kindle to power his mobile phone because its more powerful than the original charger from the mobile phone
petey has quit [Ping timeout: 268 seconds]
funktor has quit [Remote host closed the connection]
lw has joined #ruby
frem_ is now known as frem
funktor has joined #ruby
<crystal77>
I want my app to do something, when a new item from an rss feed is posted. How would I get started? Poll it every minute? Seems very server intensive.
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest12501 has quit [Read error: Connection reset by peer]
<havenwood>
trying to find a way to contact the active_support gem owner to ask for it to be yanked
DouweM has joined #ruby
Deejay_ has joined #ruby
mengu__ has joined #ruby
xerxas has quit [Quit: Connection closed for inactivity]
thumpba_ has joined #ruby
funktor has quit [Ping timeout: 268 seconds]
thumpba_ has quit [Remote host closed the connection]
yfeldblu_ has quit [Read error: Connection reset by peer]
andy___ has joined #ruby
spstarr_work has quit [Quit: Page closed]
yfeldblum has joined #ruby
mengu has quit [Ping timeout: 268 seconds]
CaptainJet has joined #ruby
andy___ is now known as Guest54414
Zai00 has joined #ruby
ryngonzalez has joined #ruby
Zai00 has left #ruby [#ruby]
m4n1f3st_ has joined #ruby
m4n1f3st0 has quit [Read error: Connection reset by peer]
subbyyy_ has joined #ruby
Spami has joined #ruby
<jhass>
crystal77: depending on the server 1/minute can be justifiable. Technology wise there's Pubsubhubbub to solve that problem, if your app is a webapp
<jhass>
and the server supports it
francisfish has quit [Remote host closed the connection]
jottr_ has quit [Read error: Operation timed out]
yfeldblum has quit [Remote host closed the connection]
BraddBitt is now known as clindsay
smathieu has quit [Remote host closed the connection]
yfeldblum has joined #ruby
smathieu has joined #ruby
compleatang has joined #ruby
armstrjare has joined #ruby
michaeldeol has joined #ruby
aspires has quit []
prs has quit [Ping timeout: 260 seconds]
clindsay is now known as BraddBitt
BraddBitt is now known as xBradPittx
prs has joined #ruby
thumpba_ has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
<RubyPanther>
crystal77: the old-school way is to do a HEAD instead of a GET, so the server only has to send you the headers, and you can check if the content changed before requesting it
nanoyak has joined #ruby
loc22 has quit [Ping timeout: 245 seconds]
<RubyPanther>
polite for RSS is 5 or 10 minutes, I think
Monito has joined #ruby
<crystal77>
Well, I don't control the RSS feed, so I guess I just fetch it every minute, store the contents in a database, if the newest record different, do my thing?
EminenceHC has quit [Remote host closed the connection]
bklane has joined #ruby
<crystal77>
These are server outages, and we need it to be by the minute (our service provider) :p
compleatang has quit [Ping timeout: 252 seconds]
<RubyPanther>
no, you the headers every minute, and fetch the content if it has changed
thumpba_ has quit [Remote host closed the connection]
mark_locklear has quit [Ping timeout: 255 seconds]
<havenwood>
well, started a ticket on one of the active_support gem author's other repos asking if he'll yank, looks like he deleted active_support
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
deleted the repo, but didn't yank the gem*
toastynerd has quit [Remote host closed the connection]
greggroth has quit [Ping timeout: 252 seconds]
Tomasso has quit [Ping timeout: 268 seconds]
mrnugget has quit [Quit: mrnugget]
Astralum has joined #ruby
tylersmith has quit [Ping timeout: 255 seconds]
crodas has joined #ruby
davy has quit [Remote host closed the connection]
<jhass>
crystal77: also check stuff like If-modified-since, ETags etc.
angelixd has joined #ruby
benzrf is now known as benzrf|offline
<crystal77>
Let me check..
<jhass>
yeah, I feel like we need some kind of community process to take down / free gem names in the mid term
mikepack_ has joined #ruby
asteros_ has joined #ruby
ascarter has joined #ruby
Speed has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 255 seconds]
<jokgbo>
aperios: i want a Gemfile with pinned versions, Gemfile.lock also has gems that are brought in as dependencies.
robertodecurnex has quit [Quit: Page closed]
AlexRussia has joined #ruby
Bumptious has quit [Ping timeout: 255 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
danshultz has joined #ruby
segv is now known as xorl
xorl is now known as segv
ukd1 has quit [Remote host closed the connection]
smathieu has quit [Remote host closed the connection]
oso|away is now known as oso96_2000
skammer has joined #ruby
xbob has quit []
smathieu has joined #ruby
circuit has joined #ruby
<apeiros>
jokgbo: hint, people only get highlighted if you spell their nicks correctly. tab completion helps.
AlexRussia has quit [Ping timeout: 240 seconds]
pwh has joined #ruby
<shevy>
apieros
<shevy>
help me
<apeiros>
jokgbo: you'll have to take the versions from the .lock and put it in the Gemfile manually. Gemfile is ruby code. properly amending versions is non-trivial.
greggroth has quit [Ping timeout: 264 seconds]
<apeiros>
/kick shevy :-p
afreidah has quit [Ping timeout: 246 seconds]
Vovko has joined #ruby
ukd1 has joined #ruby
<jokgbo>
apeiros: thanks for the hint as well as the suggestion to manually pick out the versions from the .lock file to the Gemfile, doing that now.
SHyx0rmZ has joined #ruby
JBreit has left #ruby ["Leaving"]
mengu has quit [Remote host closed the connection]
angusiguess has joined #ruby
kennym has joined #ruby
spicerack has joined #ruby
<jokgbo>
apeiros: basically I am rectifying a project that has unpinned versions in the Gemfile by pinning down everything. wish bundler had a automatic way of doing that.
bilbo_swaggins has joined #ruby
zigomir has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
jottr_ has joined #ruby
bilbo_swaggins has quit [Client Quit]
<havenwood>
jokgbo: did you look at the pessimize gem ^ i linked?
supermarin_ has joined #ruby
bynaryshef has quit []
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lw has quit [Quit: b]
<jokgbo>
havenwood: thanks, checking out pessimize right now.
<benzrf>
apeiiiiiiiiiiros
<benzrf>
[try quick]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
(if you want a pessimistic version constraint at the patch level)
keppy has quit [Ping timeout: 265 seconds]
<jokgbo>
out of curiosity, do you folks check in Gemfile.lock into source control? this is a stand-alone ruby project not a gem itself.
<havenwood>
jokgbo: no for gems, yes for apps
zachallett has quit [Remote host closed the connection]
<benzrf>
jokgbo: i do not
<benzrf>
i see no reason to o=
<jokgbo>
yeah that's what I am planning on doing -- checking in the damn thing so someone else in the future doesn't go through the dep-hell i'm going through.
<atmosx>
When I make changes and a test fails I wanna kill myself
petey has quit [Remote host closed the connection]
jackyalcine has joined #ruby
thesheff17 has quit [Ping timeout: 240 seconds]
jottr_ has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
bricker has quit [Read error: Connection reset by peer]
CreativeEmbassy has quit [Quit: FO SHO]
vlad_starkov has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
duggiefresh has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
rudisimo has quit []
stupidystupid has joined #ruby
afex has quit [Ping timeout: 255 seconds]
stupidystupid has quit [Max SendQ exceeded]
jzig has quit [Read error: Connection reset by peer]
stupidystupid has joined #ruby
stupidystupid has quit [Max SendQ exceeded]
frem has quit [Quit: Connection closed for inactivity]
jzig has joined #ruby
mary5030 has quit [Ping timeout: 245 seconds]
kinigitz has quit []
stupidystupid has joined #ruby
stupidystupid has quit [Max SendQ exceeded]
Bumptious has joined #ruby
jonmorehouse has joined #ruby
stupidystupid has joined #ruby
AlexRussia has joined #ruby
bricker has joined #ruby
benlieb has quit [Quit: benlieb]
kennym has quit [Quit: Leaving.]
kevind has quit [Quit: kevind]
hobodave has quit [Ping timeout: 268 seconds]
vlad_starkov has joined #ruby
dx7 has quit [Read error: Connection reset by peer]
dx7_ has joined #ruby
kevind has joined #ruby
thesheff17 has joined #ruby
freerobby has joined #ruby
kennym has joined #ruby
<shevy>
atmosx fancy colours!
<atmosx>
shevy: yeah I love this theme
dapz has joined #ruby
mary5030 has joined #ruby
<atmosx>
jellybeans or something
jrendell has quit [Quit: jrendell]
zachallett has joined #ruby
funktor has joined #ruby
karmatr0n has joined #ruby
sylvanica has quit [Remote host closed the connection]
dayepa has joined #ruby
peta__ has quit [Quit: peta__]
Pixi__ has joined #ruby
<thrillagorilla>
I need to implement a background queuing mechanism to control execution of external command by multiple users. Does anyone have suggestions for good code to read for reference?
Pixi__ has quit [Read error: Connection reset by peer]
ernetas has joined #ruby
<ernetas>
Hey guys.
<ernetas>
I'm pretty much a newbie here...
ascarter has joined #ruby
<ernetas>
Bundle update shows:
Xiti has quit [Ping timeout: 265 seconds]
thesheff17_ has joined #ruby
<ernetas>
Using rack-ssl 1.3.3 from source at vendor/gems/rack-ssl
karmatr0_ has quit [Ping timeout: 245 seconds]
<ernetas>
But runing rails does not find this gem. What could be the issue?
toastynerd has quit [Remote host closed the connection]
BrianJ has quit [Quit: Computer has gone to sleep.]
ascarter has quit [Client Quit]
<ernetas>
Meaning: /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'rack-ssl' (~> 1.3.2) among 144 total gem(s) (Gem::LoadError)
mheinke has left #ruby ["Leaving"]
obs has quit [Quit: Saliendo]
ascarter has joined #ruby
Tomasso has quit [Read error: Connection reset by peer]
Vovko has quit []
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thesheff17 has quit [Disconnected by services]
petey has joined #ruby
thesheff17_ is now known as thesheff17
mary5030 has quit [Remote host closed the connection]
Tomasso has joined #ruby
mary5030 has joined #ruby
francisfish has quit [Remote host closed the connection]
<arubincloud>
ernetas: How are you running rails?
<arubincloud>
Are you using bundle exec?
michaeldeol has joined #ruby
braincrash has joined #ruby
<ernetas>
From command line "rails s -d -p 3333 -P /tmp/main.pid -e cucumber". For installing deps. I'm using bundle update.
<arubincloud>
Try adding bundle exec before that.
yfeldblum has joined #ruby
kennym has quit [Quit: Leaving.]
obs has joined #ruby
<ernetas>
Hm.. Thanks, seems like working. A bit weird given that older systems worked without bundle exec... Maybe someone installed that gem by hand... :/
zachallett has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
phansch has joined #ruby
toastynerd has joined #ruby
snuffeluffegus has joined #ruby
geggam has joined #ruby
kennym has joined #ruby
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snuffeluffegus has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 255 seconds]
snuffeluffegus has joined #ruby
mark_locklear has quit [Ping timeout: 255 seconds]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
SHyx0rmZ has quit [Ping timeout: 246 seconds]
keppy has joined #ruby
davy has joined #ruby
pel_daniel has quit [Quit: Leaving.]
thomas3141592653 has quit [Quit: Connection closed for inactivity]
pel_daniel has joined #ruby
dayepa1 has joined #ruby
cover has quit [Ping timeout: 265 seconds]
mary5030_ has joined #ruby
YamakasY has joined #ruby
near77 has joined #ruby
<near77>
hi
<near77>
anyone uses the redis gem?
rakm has quit [Quit: Connection closed for inactivity]
dblessing has quit [Quit: dblessing]
mary5030 has quit [Ping timeout: 264 seconds]
Tomasso has quit [Ping timeout: 245 seconds]
danshultz has quit [Ping timeout: 265 seconds]
dayepa has quit [Ping timeout: 252 seconds]
rylev has quit [Remote host closed the connection]
<benzrf>
near77: i dont sorry
ehaliewicz has joined #ruby
methods has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
davy_ has joined #ruby
charliesome has joined #ruby
<methods>
why would JSON.load try to resolve A::B strings as constants? and how could I turn that off
ehaliewicz has left #ruby [#ruby]
Guest32172 has quit [Read error: Operation timed out]
morenoh149 has quit [Ping timeout: 264 seconds]
kennym has quit [Quit: Leaving.]
agent_white has joined #ruby
<DouweM>
methods: wait what. I'm pretty sure it shouldn't do that.
davy has quit [Ping timeout: 252 seconds]
doodleha_ has quit [Remote host closed the connection]
mary5030_ has quit [Remote host closed the connection]
duggiefresh has joined #ruby
tjr9898 has joined #ruby
<methods>
that's what i would think
<DouweM>
then it's probably some other piece of code doing that
mary5030 has joined #ruby
mvangala_ has quit [Ping timeout: 252 seconds]
<methods>
maybe it's pretty_generate then
<methods>
I just wrote a quick one liner that loads up a json file, deletes some hash entries, and then writes back
<DouweM>
code?
<DouweM>
and error
mengu has quit []
m4n1f3st_ has quit []
alexju has quit [Remote host closed the connection]
tjr9898 has quit [Remote host closed the connection]
linojon has quit [Quit: linojon]
hsps_ has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
kpshek has quit []
thumpba_ has quit [Remote host closed the connection]
<momomomomo>
atmosx: You could use http://jmeter.apache.org/ if you want to connect to the actual app and have it serve
freerobby has quit [Quit: Leaving.]
jespada has quit [Quit: Leaving]
stupidystupid has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
evenix_ has quit [Ping timeout: 255 seconds]
m8 has quit [Quit: Sto andando via]
sambao21 has quit [Quit: Computer has gone to sleep.]
<atmosx>
momomomomo: yes but I'm not planning to use Apache.. but I gather that's general purpose and it's exactly what I was looking for.
m4n1f3st0 has quit []
scott_fakename has joined #ruby
greggroth has joined #ruby
<atmosx>
4.6 MB/s over WiFi...
cescalante is now known as ce_afk
benzrf has joined #ruby
<atmosx>
not really bad
mercwithamouth has joined #ruby
stupidystupid has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
near77 has quit [Quit: Page closed]
methods has left #ruby [#ruby]
chris_thomson has joined #ruby
scott_fakename has quit [Client Quit]
<momomomomo>
atmosx: I’m not sure you’re aware of what apache is… it’s not just the http server http://www.apache.org/
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<atmosx>
momomomomo: Yeah, although I don't use any of the apache projects
<atmosx>
momomomomo: or the licenses
teddyp1cker has joined #ruby
petey has quit [Remote host closed the connection]
petey has joined #ruby
mesamoo has joined #ruby
linojon has joined #ruby
danshultz has joined #ruby
<benzrf>
ppppping
Koshian_ has quit [Ping timeout: 252 seconds]
<atmosx>
rpi is slow...
dx7_ has quit [Remote host closed the connection]
obs has quit [Remote host closed the connection]
smathieu has quit [Remote host closed the connection]
<atmosx>
jesus, it takes a lifetime to install the gems :-/
dx7 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smathieu has joined #ruby
smathieu has quit [Read error: Connection reset by peer]
matcouto has joined #ruby
smathieu has joined #ruby
bluenemo has quit [Quit: Verlassend]
greggroth has quit [Ping timeout: 268 seconds]
nateberkopec has quit [Quit: Leaving...]
teddyp1cker has quit [Ping timeout: 252 seconds]
rezzack has joined #ruby
petey has quit [Remote host closed the connection]
greggroth has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
hermanmunster has joined #ruby
hermanmunster has quit [Client Quit]
maletor has joined #ruby
joast has joined #ruby
hfp has quit [Ping timeout: 245 seconds]
dx7 has quit [Ping timeout: 264 seconds]
Bira has quit [Ping timeout: 240 seconds]
waza has quit [Ping timeout: 265 seconds]
freezey has quit [Ping timeout: 245 seconds]
waza has joined #ruby
meatherly has quit [Remote host closed the connection]
DrShoggoth has quit [Quit: Leaving]
phantummm has quit [Quit: phantummm]
bpgoldsb has quit [Ping timeout: 264 seconds]
dx7 has joined #ruby
Monito has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
vlad_starkov has joined #ruby
tylersmith has quit [Remote host closed the connection]
hfp has joined #ruby
tylersmith has joined #ruby
benlieb has quit [Quit: benlieb]
Tomasso has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cpruitt has quit [Quit: cpruitt]
rm_ has quit [Remote host closed the connection]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rm__ has joined #ruby
hfp has quit [Ping timeout: 245 seconds]
tylersmith has quit [Ping timeout: 255 seconds]
LastWhisper has quit [Ping timeout: 245 seconds]
rm___ has joined #ruby
rm__ has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 264 seconds]
rm___ is now known as Guest34253
kevind_ has joined #ruby
mansi has quit [Remote host closed the connection]
mvangala has joined #ruby
mansi has joined #ruby
VTLob has quit [Quit: VTLob]
blackmesa has quit [Read error: Connection reset by peer]
hermanmunster has joined #ruby
blackmesa has joined #ruby
fijimunkii has quit [Ping timeout: 252 seconds]
pfg has quit [Read error: Connection reset by peer]
grayWolf has joined #ruby
ghr has joined #ruby
bricker_ has joined #ruby
pfg has joined #ruby
hfp`away has joined #ruby
kevind has quit [Ping timeout: 268 seconds]
enebo has quit [Quit: enebo]
kevind_ is now known as kevind
davy has quit [Remote host closed the connection]
bricker_ has quit [Client Quit]
doodlehaus has joined #ruby
bricker has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
Speed has quit [Ping timeout: 252 seconds]
mansi has quit [Ping timeout: 255 seconds]
taf2 has joined #ruby
Xiti has joined #ruby
gregf has joined #ruby
timonv has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr_ has quit [Read error: Operation timed out]
greggroth has quit [Ping timeout: 240 seconds]
GaryOak_ has joined #ruby
msmith_ has joined #ruby
rylev has joined #ruby
toastynerd has quit [Remote host closed the connection]
chuk has joined #ruby
spyderman4g63 has quit []
hfp`away has quit [Ping timeout: 245 seconds]
asteros has quit [Quit: asteros]
klaut has quit [Remote host closed the connection]
michaeldeol has joined #ruby
msmith_ has quit [Client Quit]
mikepack_ has joined #ruby
<atmosx>
night all
ghr has quit [Ping timeout: 268 seconds]
greggroth has joined #ruby
Bumptious has quit [Remote host closed the connection]
<benzrf>
night atmosx
toastynerd has joined #ruby
zachallett has joined #ruby
<benzrf>
any new volunteers to try quick
<benzrf>
:D
rahult has joined #ruby
mikepack has quit [Read error: Operation timed out]
rahult is now known as rahult_
zachallett has quit [Remote host closed the connection]
kevind has quit [Quit: kevind]
rylev has quit [Ping timeout: 240 seconds]
asteros has joined #ruby
rahult_ is now known as rahult
jhass is now known as jhass|off
Hobogrammer_ has quit [Quit: WeeChat 0.4.3]
mikepack_ has quit [Ping timeout: 246 seconds]
hfp`away has joined #ruby
jhass|off is now known as jhass|off|off
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smathieu has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
Guest54414 has quit [Remote host closed the connection]
kevind has joined #ruby
smathieu has joined #ruby
rainmanjam has quit [Remote host closed the connection]
davy has joined #ruby
Hobogrammer_ has joined #ruby
Bira has joined #ruby
danshultz has quit [Remote host closed the connection]
smathieu_ has joined #ruby
danshultz has joined #ruby
greggroth has quit [Ping timeout: 240 seconds]
smathieu has quit [Ping timeout: 240 seconds]
asteros has quit [Ping timeout: 255 seconds]
morenoh149 has joined #ruby
flowerhack has quit [Quit: Connection closed for inactivity]
kevind has quit [Quit: kevind]
mway has quit [Quit: mway]
Monito has quit [Read error: Connection reset by peer]
kevind has joined #ruby
m4n1f3st0 has joined #ruby
djancak has quit [Ping timeout: 264 seconds]
replay has joined #ruby
djancak has joined #ruby
djancak has quit [Changing host]
djancak has joined #ruby
djancak has quit [Excess Flood]
stupidystupid has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djancak has joined #ruby
djancak has quit [Changing host]
djancak has joined #ruby
djancak is now known as djancak
djancak has quit [Excess Flood]
nanoyak has quit [Quit: Computer has gone to sleep.]
djancak has joined #ruby
danshultz has quit [Ping timeout: 264 seconds]
djancak has quit [Changing host]
djancak has joined #ruby
anantaa has quit [K-Lined]
djancak has quit [Excess Flood]
djancak has joined #ruby
djancak has quit [Changing host]
djancak has joined #ruby
djancak has quit [Excess Flood]
arubincloud has quit []
mary5030 has joined #ruby
ernetas has quit [Remote host closed the connection]
geggam has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
hfp`away has quit [Ping timeout: 245 seconds]
momomomomo has quit [Quit: momomomomo]
jcs222 has quit [Ping timeout: 240 seconds]
AMcP has joined #ruby
mary5030 has quit [Ping timeout: 252 seconds]
ffranz has quit [Quit: Leaving]
AMcP has quit [Remote host closed the connection]
mary5030 has joined #ruby
slopjong has quit [Ping timeout: 245 seconds]
alvaro_o has quit [Quit: Ex-Chat]
einarj has quit [Remote host closed the connection]
kennym has joined #ruby
asteros has joined #ruby
diegoviola has joined #ruby
djancak has joined #ruby
djancak has quit [Changing host]
djancak has joined #ruby
djancak has quit [Excess Flood]
robbyoconnor has quit [Ping timeout: 240 seconds]
djancak has joined #ruby
djancak has joined #ruby
djancak has quit [Changing host]
djancak has quit [Excess Flood]
Tomasso has joined #ruby
djancak has joined #ruby
djancak has quit [Changing host]
djancak has joined #ruby
djancak has quit [Excess Flood]
djancak has joined #ruby
djancak has quit [Changing host]
djancak has joined #ruby
funktor has quit [Remote host closed the connection]
shadoi has joined #ruby
toastynerd has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
funktor has joined #ruby
nanoyak has joined #ruby
nateberkopec has joined #ruby
mary5030 has joined #ruby
sambao21 has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
matcouto has joined #ruby
rahult is now known as rahult_
funktor has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
funktor has joined #ruby
peta_ has joined #ruby
kennym has quit [Quit: Leaving.]
SCommette has quit [Quit: SCommette]
lkba has quit [Ping timeout: 240 seconds]
kennym has joined #ruby
shadoi has quit [Ping timeout: 268 seconds]
abra has quit [Ping timeout: 240 seconds]
zachallett has joined #ruby
mary5030 has quit [Ping timeout: 268 seconds]
whatasunnyday has joined #ruby
<whatasunnyday>
Hey. Do people usually write service objects with one public method being and exposed and the rest private? Is that indicative of code smell?
<whatasunnyday>
I’m asking because I’m new to writing rails and service objects and that’s exactly what I did.
abra has joined #ruby
predator217 has joined #ruby
mansi has joined #ruby
nisstyre has joined #ruby
mary5030 has joined #ruby
danshultz has joined #ruby
rylev has joined #ruby
mary5030 has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
benzrf has quit [Ping timeout: 268 seconds]
rahult_ is now known as rahult
thomas3141592653 has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
<shevy>
whatasunnyday dunno, I usually write on a class until it does what it needs to do, then I move on
tylersmith has joined #ruby
zachallett has quit [Remote host closed the connection]
stupidystupid has joined #ruby
hooper has joined #ruby
<whatasunnyday>
shevy: fair enough
shinobi_one has joined #ruby
<shinobi_one>
>> puts “Hello.”
<eval-in>
shinobi_one => undefined local variable or method `“Hello' for main:Object (NameError) ... (https://eval.in/129923)
Tomasso has quit [Read error: Connection reset by peer]
jorts_ has quit [Quit: jorts_]
<shinobi_one>
wat
tylersmi_ has joined #ruby
rylev has quit [Ping timeout: 264 seconds]
toretore has quit [Quit: This computer has gone to sleep]
<shinobi_one>
>> puts “some string”
<eval-in>
shinobi_one => undefined local variable or method `string”' for main:Object (NameError) ... (https://eval.in/129924)
jefflyne has quit [Ping timeout: 240 seconds]
bpgoldsb has joined #ruby
<whatasunnyday>
>> puts “‘wat’”
<eval-in>
whatasunnyday => undefined local variable or method `“‘wat’”' for main:Object (NameError) ... (https://eval.in/129925)