<DouweM>
Just found an XSS vuln in FlipKey.com, does anyone know who to report this to?
<DouweM>
It's not caught by Chrome's XSS filter, for shame
<benzrf>
:I
<wallerdev>
#ruby on irc.freenode.net seems like a great place to start
<wallerdev>
lol
<DouweM>
haha
mrsolo has joined #ruby
<DouweM>
thought maybe someone here knew someone there
<DouweM>
I've already reached out to one of their senior devs over twitter
<DouweM>
but couldn't find any email address or whatever
<wallerdev>
wheres their office
<DouweM>
Boston I think?
<DouweM>
Yeah
senayar has quit [Ping timeout: 245 seconds]
<DouweM>
Hmm, 8 pm
nateberkopec has quit [Quit: Leaving...]
njection has joined #ruby
YamakasY has joined #ruby
<bnagy>
DouweM: this is IMPORTANT
<bnagy>
did you have prior written permission to audit their stuff?
<bnagy>
if not, do NOT REPORT TO THE VENDOR
<bnagy>
use ZDI or someone
irishcoder4 has quit [Remote host closed the connection]
<DouweM>
bnagy: ...
Lewix has quit [Remote host closed the connection]
<DouweM>
No I did not have any permission...
<dorei>
i think bnagy is right
<wallerdev>
sell it to the highest bidder
<DouweM>
Now I'm scared
<bnagy>
well ZDI or a couple of others will handle the disclosure and fix for you
<dorei>
well , yes, u can always sell it at those weird fora :D
momigi has quit [Read error: Connection reset by peer]
<bnagy>
whether or not it's for $$
r0nin has quit [Remote host closed the connection]
<bnagy>
like XSS is not exactly a retirement bug
mrsolo has left #ruby [#ruby]
momigi has joined #ruby
doodlehaus has joined #ruby
jlast has joined #ruby
charliesome has joined #ruby
<DouweM>
I'm not looking for any compensation, just wanted to report it.
<bnagy>
but hey if you already leaked it on twitter then if you're hosed you're hosed
saarinen has quit [Quit: saarinen]
irishcoder4 has joined #ruby
<DouweM>
Well.
<bnagy>
yeah whether or not for compensation it's just too dangerous to report web bugs in the US
<Galgorth>
yep in some cases companies will prosecute you for even trying to help them fix security issues, especially if they don't have an explicitly codified bug reporting protocol
<DouweM>
I'm in the Netherlands if that makes any difference
momigi_ has joined #ruby
<bnagy>
they are live systems, which means it's almost certain that you technically comitted a federal offense
<wallerdev>
lol
<DouweM>
But fuck, why do I need to worry about getting in trouble for coming across an issue and wanting to report it :|
momigi has quit [Read error: Connection reset by peer]
<bnagy>
it sucks, yes
<wallerdev>
welcome to america
<DouweM>
wallerdev: *waves from across the pond*
<bnagy>
how would you like to be on a no-fly? ;)
<dorei>
DouweM: welcome to the wonderful world of lawyers ;-)
<wallerdev>
where at?
<wallerdev>
lol
<DouweM>
NL
<DouweM>
Netherlands
<bnagy>
anyway, that is my advice
<bnagy>
and in this particular area it is 'expert advice'
<DouweM>
Yeah
<DouweM>
so, I should try zdi?
<bnagy>
they're the first one that springs to mind
<DouweM>
it's a daughter company of TripAdvisor, does pretty much the same thing, but just for rentals, not restaurants as well
<DouweM>
over 240,000 accommodations
<DouweM>
so it's pretty big.
dseitz has joined #ruby
<wallerdev>
yeah tripadvisor is big
<wallerdev>
go for the $$$
<wallerdev>
if you dont want it i will give you my bitcoin address
<DouweM>
and the CSS is pretty bad. Not caught by Chrome's XSS filter, can run any JS I want, on both HTTP and HTTPS subdomains. Can access cookies, do pushstate etc, whatever
<bnagy>
you can always give the $, should there be any, to charity
<DouweM>
*XSS is pretty bad
<bnagy>
I've just seen too many friends get screwed for pretty much exactly this scenario
<DouweM>
So one could steal session cookies and accounts, one could use it for phishing because I can render whatever I want at "secure.flipkey.com/renew_subscription" via pushstate
jfisk87 has joined #ruby
<jfisk87>
hey guys
<DouweM>
Yeah I appreciate the caution
<jfisk87>
when trying to make this request i get the error bad URI (is nort a URL?)
<bnagy>
DouweM: woo that sounds like you'll even get paid
einarj has quit [Remote host closed the connection]
yubrew has joined #ruby
teddyp1cker has joined #ruby
AussieDownUnder has quit [Remote host closed the connection]
maroloccio has joined #ruby
treaki_ has joined #ruby
binaryhat has joined #ruby
Wolland has joined #ruby
sdouglas has joined #ruby
<DouweM>
Heh, apparently the guy I contacted on twitter was completely unrelated but with the same name and occupation :P Need to find another way then.
treaki__ has quit [Ping timeout: 240 seconds]
njection has joined #ruby
<bnagy>
lucky :)
<wallerdev>
haha
<wallerdev>
thats what he says, but hes filing a lawsuit as we speak
yubrew has quit [Ping timeout: 240 seconds]
<DouweM>
wallerdev: that must be it
AussieDownUnder has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
teddyp1cker has quit [Ping timeout: 265 seconds]
sdwrage has joined #ruby
xcv_ has quit [Remote host closed the connection]
johncjen_ has joined #ruby
Wolland has quit [Ping timeout: 246 seconds]
pfg has joined #ruby
Danibal has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
Danibal has joined #ruby
saiyan has joined #ruby
pfg has quit [Client Quit]
EminenceHC has quit [Remote host closed the connection]
pfg has joined #ruby
johncjensen has quit [Ping timeout: 265 seconds]
samuel02 has joined #ruby
Lewix has joined #ruby
rylinaux has left #ruby ["Leaving"]
toastynerd has joined #ruby
Danibal has quit [Ping timeout: 240 seconds]
phantomwhale has quit [Quit: Connection closed for inactivity]
nateberkopec has joined #ruby
samuel02 has quit [Ping timeout: 240 seconds]
Biohazard has quit [Ping timeout: 240 seconds]
njection has quit [Ping timeout: 265 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MatthewsFace has quit [Ping timeout: 240 seconds]
rvraghav93_ has joined #ruby
rvraghav93 has quit [Ping timeout: 240 seconds]
jsilver-ipod has joined #ruby
lolmaus has joined #ruby
<shevy>
lol
<shevy>
are you randomly sueing people just for having the same name AND the same job
dgaffney has quit [Remote host closed the connection]
dgaffney has joined #ruby
predator117 has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
YamakasY_ has joined #ruby
<DouweM>
shevy: Yeah that's exactly what I was doing
twiceaday has quit [Ping timeout: 240 seconds]
jsilver-ipod has quit [Remote host closed the connection]
twiceaday has joined #ruby
njection has joined #ruby
predator217 has quit [Ping timeout: 240 seconds]
kbarry has quit [Ping timeout: 264 seconds]
Doppp has quit [Ping timeout: 240 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
dgaffney has quit [Ping timeout: 240 seconds]
YamakasY has quit [Ping timeout: 245 seconds]
baroquebobcat has joined #ruby
iliketurtles has joined #ruby
timonv has joined #ruby
coderxin has joined #ruby
zz_jrhorn424 is now known as jrhorn424
jrhe has quit [Quit: Connection closed for inactivity]
weaksauce has joined #ruby
<shevy>
lol
<shevy>
DouweM I like you
toastynerd has quit [Remote host closed the connection]
iliketur_ has joined #ruby
<bnagy>
welcome to #grindr
<DouweM>
lol
evenix has quit [Remote host closed the connection]
Danibal has joined #ruby
iliketurtles has quit [Ping timeout: 240 seconds]
YamakasY_ has quit [Remote host closed the connection]
coderxin has quit [Ping timeout: 240 seconds]
iliketur_ has quit [Read error: Connection reset by peer]
timonv has quit [Ping timeout: 252 seconds]
iliketurtles has joined #ruby
njection has quit [Ping timeout: 252 seconds]
pel_daniel has left #ruby [#ruby]
dorei has quit []
rickruby_ has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
baroquebobcat has joined #ruby
pyrac has joined #ruby
senayar has joined #ruby
jamto11 has quit [Remote host closed the connection]
njection has joined #ruby
blom_ has quit [Remote host closed the connection]
baroquebobcat has quit [Client Quit]
nateberkopec has joined #ruby
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
blom_ has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
aspires has quit []
senayar has quit [Read error: Operation timed out]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robustus has quit [Ping timeout: 252 seconds]
SidWu has joined #ruby
JBreit has joined #ruby
SidWu has quit [Max SendQ exceeded]
Danibal_ has joined #ruby
pfg has joined #ruby
b00stfr3ak has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
pyrac has quit [Ping timeout: 245 seconds]
Danibal has quit [Ping timeout: 245 seconds]
robustus has joined #ruby
snuffeluffegus has joined #ruby
pfg has quit [Client Quit]
ikaros has quit [Quit: Ex-Chat]
rm__ has quit [Remote host closed the connection]
pfg has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
blom_ has quit [Ping timeout: 240 seconds]
rm__ has joined #ruby
cj3kim has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
meatherly has joined #ruby
rm__ has quit [Read error: Connection reset by peer]
Hobogrammer_ has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
rm__ has joined #ruby
x1337807x has joined #ruby
beneggett has joined #ruby
tils` has joined #ruby
SidWu has joined #ruby
SidWu has quit [Max SendQ exceeded]
cj3kim has quit [Remote host closed the connection]
njection has quit [Ping timeout: 240 seconds]
smathieu has quit [Remote host closed the connection]
bousquet has quit []
druiddesign has joined #ruby
SidWu has joined #ruby
SidWu has quit [Max SendQ exceeded]
smathieu has joined #ruby
kpshek has joined #ruby
SidWu has joined #ruby
SidWu has quit [Max SendQ exceeded]
beneggett has quit [Client Quit]
tils` has quit [Read error: Operation timed out]
tils` has joined #ruby
tils has quit [Ping timeout: 245 seconds]
SidWu has joined #ruby
_reset has quit [Ping timeout: 269 seconds]
SidWu has quit [Max SendQ exceeded]
njection has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
SidWu has joined #ruby
SidWu has quit [Max SendQ exceeded]
wilbert has quit [Ping timeout: 240 seconds]
jack_rabbit has quit [Remote host closed the connection]
Danibal_ has quit [Remote host closed the connection]
dgaffney has joined #ruby
dingus_khan has quit [Remote host closed the connection]
SidWu has joined #ruby
Danibal has joined #ruby
blom_ has joined #ruby
SCommette has joined #ruby
redlines has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
redlines has joined #ruby
danno1 has joined #ruby
baroquebobcat has joined #ruby
Danibal has quit [Ping timeout: 265 seconds]
druiddesign is now known as fenix`
Danibal has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pietr0 has quit [Quit: pietr0]
vlad_starkov has quit [Ping timeout: 240 seconds]
rickruby has joined #ruby
nateberkopec has quit [Quit: Leaving...]
oso96_2000 is now known as oso|away
pietr0 has joined #ruby
f0ster has quit [Remote host closed the connection]
juarlex has joined #ruby
Amart41 has joined #ruby
quatron has quit [Ping timeout: 246 seconds]
eataix has joined #ruby
fenix` is now known as druiddesign
<Robbo_>
I am running
<Robbo_>
%x{cd #{dir} && sh deploy.sh}
<Robbo_>
and if I run that command manually all works fine
toastynerd has joined #ruby
zxq9 has quit [Quit: Konversation terminated!]
<wallerdev>
maybe the working directory is different
<Robbo_>
if I do it from within my api (it needs to rebuild static files when triggered from bitbucket)
Wolland has joined #ruby
nateberkopec has joined #ruby
<Robbo_>
it doesn't work
<Robbo_>
yeah I thought that too so changed directory to absolute
Amart41 has quit [Ping timeout: 240 seconds]
juarlex has quit [Remote host closed the connection]
mlpinit has quit [Remote host closed the connection]
druiddesign is now known as spicerack
zxq9 has joined #ruby
<Robbo_>
it is like it is in the right directory but using something from the application it is called from however using the correct gemfile
<Robbo_>
or something
<Robbo_>
might have to hack around it, make it queue a build or something
funktor has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
Danibal has quit [Remote host closed the connection]
sailias has joined #ruby
sdouglas_ has joined #ruby
SidWu has quit [Ping timeout: 240 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
sdouglas has quit [Read error: Connection reset by peer]
mikepack has quit []
<pipework>
hfp: I pass the test.
mikepack has joined #ruby
SCommette has quit [Quit: SCommette]
mikepack has quit [Remote host closed the connection]
samuel02 has joined #ruby
mikepack has joined #ruby
lethjakman has quit [Ping timeout: 246 seconds]
ffranz has quit [Quit: Leaving]
<Robbo_>
spawn "command here" fixed it
<Robbo_>
oh maybe not
stupidystupid has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
samuel02 has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
SCommette has joined #ruby
snath has quit [Ping timeout: 252 seconds]
SCommette has quit [Client Quit]
amclain has joined #ruby
blom_ has quit [Remote host closed the connection]
juarlex has joined #ruby
Doppp has joined #ruby
blom_ has joined #ruby
pu22l3r has joined #ruby
incade_ has joined #ruby
incade has quit [Ping timeout: 265 seconds]
incade_ is now known as incade
beneggett has joined #ruby
juarlex has quit [Remote host closed the connection]
snuffeluffegus has quit [Quit: Leaving]
beneggett has quit [Client Quit]
krz has joined #ruby
ghr has joined #ruby
blom_ has quit [Ping timeout: 240 seconds]
Doppp has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
<Robbo_>
yeah the bundle install which is part of deployment is running in my current directory :/
Wolland has quit [Ping timeout: 246 seconds]
coderxin has joined #ruby
alexju has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
vhsmaia has joined #ruby
snath has joined #ruby
maximski has joined #ruby
wallerdev has quit [Quit: wallerdev]
matcouto has joined #ruby
coderxin has quit [Ping timeout: 265 seconds]
mary5030 has joined #ruby
joelmo has quit [Quit: Connection closed for inactivity]
SidWu has joined #ruby
SidWu has quit [Max SendQ exceeded]
lethjakman has joined #ruby
toastynerd has joined #ruby
senayar has joined #ruby
nateberkopec has quit [Quit: Leaving...]
thomasxie has joined #ruby
LexicalScope has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
pyrac has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
funktor has joined #ruby
irishcoder has joined #ruby
toastynerd has quit [Ping timeout: 265 seconds]
george2|chakra has joined #ruby
pyrac has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
senayar has quit [Ping timeout: 265 seconds]
cj3kim has joined #ruby
george2 has quit [Ping timeout: 264 seconds]
sdouglas_ has quit [Remote host closed the connection]
beneggett has joined #ruby
george2|chakra is now known as george2
cj3kim has quit [Remote host closed the connection]
SonicX has joined #ruby
chris_thomson has quit [Quit: Zzz...]
Lewix has joined #ruby
beneggett has quit [Client Quit]
sambao21 has quit [Ping timeout: 252 seconds]
kpshek has quit []
wallerdev has joined #ruby
havenwood has joined #ruby
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
incade has quit [Quit: incade]
benzrf is now known as benzrf|offline
yubrew has joined #ruby
toastynerd has joined #ruby
chris_thomson has joined #ruby
chris_thomson has quit [Client Quit]
postmodern has joined #ruby
danshultz has quit [Ping timeout: 265 seconds]
toastynerd has quit [Remote host closed the connection]
njection has quit [Ping timeout: 265 seconds]
yubrew has quit [Ping timeout: 265 seconds]
doodlehaus has joined #ruby
petey has joined #ruby
jlast has quit [Remote host closed the connection]
njection has joined #ruby
AussieDownUnder has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
phansch has quit [Ping timeout: 245 seconds]
abdulsattar has joined #ruby
apeiros has quit [Remote host closed the connection]
nomenkun has joined #ruby
apeiros has joined #ruby
tonni_ has joined #ruby
skammer has joined #ruby
tonni has quit [Read error: Connection reset by peer]
dzhulk has joined #ruby
bradhe_ has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
Macaveli has joined #ruby
blom_ has quit [Ping timeout: 246 seconds]
bal has joined #ruby
apeiros has quit [Ping timeout: 245 seconds]
senayar has joined #ruby
coderxin has joined #ruby
mengu has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
razibog has joined #ruby
e4xit has quit [Ping timeout: 240 seconds]
nisstyre has quit [Quit: WeeChat 0.4.3]
redlines has quit [Ping timeout: 269 seconds]
senayar has quit [Ping timeout: 245 seconds]
cj3kim has quit [Remote host closed the connection]
dzhulk has quit [Ping timeout: 240 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
Doppp has quit [Ping timeout: 240 seconds]
redlines has joined #ruby
petey has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
reijoslav has joined #ruby
petey has joined #ruby
ephemerian has joined #ruby
klaut has joined #ruby
petey has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
coderxin has quit [Remote host closed the connection]
mansi has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
senayar has joined #ruby
irishcoder4 has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
mlpinit has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
mansi has quit [Ping timeout: 240 seconds]
Jrz has joined #ruby
cj3kim has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
blom_ has joined #ruby
arturaz has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
echevemaster has quit [Remote host closed the connection]
irishcoder4 has quit [Ping timeout: 240 seconds]
mlpinit has quit [Ping timeout: 246 seconds]
phansch has joined #ruby
_justin has quit [Ping timeout: 240 seconds]
userx has quit [Ping timeout: 265 seconds]
bradhe has joined #ruby
_justin has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
Celm has joined #ruby
samuel02 has joined #ruby
blom_ has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
adurity has joined #ruby
saiyan has quit [Quit: Leaving]
dagobah has joined #ruby
sdouglas has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
cj3kim has quit [Read error: Connection reset by peer]
samuel02 has quit [Ping timeout: 245 seconds]
Celm has quit [Ping timeout: 265 seconds]
pyrac has joined #ruby
tvw has joined #ruby
apeiros has joined #ruby
adurity has quit [Ping timeout: 265 seconds]
cj3kim has joined #ruby
pfg has joined #ruby
CaptainJet has quit []
sdouglas has quit [Ping timeout: 252 seconds]
fgo has quit [Remote host closed the connection]
Slavox is now known as Slavox|AFK
browndawg has joined #ruby
LiohAu has joined #ruby
momigi has joined #ruby
skaflem has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
dingus_khan has joined #ruby
yubrew has joined #ruby
Jrz has quit [Quit: Computer has gone to sleep.]
vhsmaia is now known as SrPx
e4xit has joined #ruby
YamakasY has joined #ruby
dzhulk has joined #ruby
Maitiu has quit [Read error: Connection reset by peer]
momigi has quit [Ping timeout: 240 seconds]
browndawg has quit [Ping timeout: 240 seconds]
Kneferilis has quit [Ping timeout: 265 seconds]
renklaf_ has joined #ruby
e4xit has quit [Read error: Connection reset by peer]
dingus_khan has quit [Ping timeout: 246 seconds]
yubrew has quit [Ping timeout: 240 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
e4xit has joined #ruby
TheSerapher has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yacks has joined #ruby
chipotle has quit [Quit: cya]
withnale has quit [Ping timeout: 240 seconds]
renklaf has quit [Ping timeout: 264 seconds]
LiohAu has quit [Quit: LiohAu]
Maitiu has joined #ruby
dzhulk has quit [Ping timeout: 265 seconds]
jprovazn has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
Maitiu has quit [Read error: Connection reset by peer]
marcdel has quit []
YamakasY has quit [Remote host closed the connection]
sputnik13 has joined #ruby
blom_ has joined #ruby
browndawg has joined #ruby
iaj has quit [Remote host closed the connection]
LiohAu has joined #ruby
Maitiu has joined #ruby
marcdel has joined #ruby
claymore has joined #ruby
fabrice31 has joined #ruby
Jrz has joined #ruby
zigomir has joined #ruby
njection has quit [Ping timeout: 252 seconds]
Maitiu has quit [Ping timeout: 245 seconds]
Maitiu has joined #ruby
blom_ has quit [Ping timeout: 245 seconds]
jprovazn has quit [Quit: Leaving]
Jrz has quit [Client Quit]
Elico has quit [Ping timeout: 252 seconds]
withnale has joined #ruby
axsuul has quit [Ping timeout: 252 seconds]
njection has joined #ruby
fgo has joined #ruby
lyanchih has quit [Quit: lyanchih]
cj3kim has quit [Remote host closed the connection]
lazyguru has quit [Ping timeout: 252 seconds]
pfg has joined #ruby
gaussblurinc has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
Jetchisel has joined #ruby
andrewlio has joined #ruby
dzhulk has joined #ruby
rdark has joined #ruby
Elico has joined #ruby
Xeago has joined #ruby
Mrdarknezz has joined #ruby
jprovazn has joined #ruby
ayaz has joined #ruby
ayaz has quit [Max SendQ exceeded]
ayaz has joined #ruby
senayar has quit []
einarj has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
coderxin has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
bradhe has joined #ruby
irishcoder4 has joined #ruby
abdulsattar has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
mlpinit has joined #ruby
coderxin has quit [Ping timeout: 252 seconds]
teddyp1c_ has joined #ruby
marcdel has quit []
dzhulk has quit [Quit: Leaving.]
teddyp1cker has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 265 seconds]
irishcoder4 has quit [Ping timeout: 240 seconds]
mlpinit has quit [Ping timeout: 240 seconds]
jack_rabbit has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
coderxin has joined #ruby
Elico has quit [Ping timeout: 246 seconds]
Celm has joined #ruby
adurity has joined #ruby
vlad_starkov has joined #ruby
teddyp1cker has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
blom_ has joined #ruby
samuel02 has joined #ruby
Elico has joined #ruby
_justin has quit [Quit: _justin]
adurity has quit [Read error: Connection reset by peer]
adurity_ has joined #ruby
bluenemo has joined #ruby
teddyp1c_ has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
coderxin has quit [Ping timeout: 240 seconds]
davedev24 has quit [Remote host closed the connection]
Celm has quit [Ping timeout: 265 seconds]
samuel02 has quit [Ping timeout: 240 seconds]
Elico1 has joined #ruby
Elico has quit [Ping timeout: 246 seconds]
adurity_ has quit [Ping timeout: 240 seconds]
Jrz has joined #ruby
Thanatermesis has quit [Ping timeout: 240 seconds]
lazyguru has joined #ruby
marcdel has joined #ruby
yubrew has joined #ruby
Wolland has quit []
blom_ has quit [Ping timeout: 265 seconds]
Amart41 has joined #ruby
<omegahm>
Does anybody know if it's possible to do inline sequences with FactoryGirl?
cj3kim has joined #ruby
yubrew has quit [Read error: Operation timed out]
kaspergrubbe has joined #ruby
TheSerapher has left #ruby [#ruby]
quatron has joined #ruby
alexju has quit [Remote host closed the connection]
Atw has joined #ruby
Elico1 has quit [Ping timeout: 246 seconds]
Amart41 has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
kobain has quit []
TMM has quit [Ping timeout: 252 seconds]
Elico has joined #ruby
Thanatermesis has joined #ruby
Thanatermesis has joined #ruby
camilasan has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
marcdel has quit []
sk87 has joined #ruby
blaxter has joined #ruby
_justin has joined #ruby
fannye has joined #ruby
ghr has joined #ruby
Xeago has quit [Remote host closed the connection]
thomasxie has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
thomasxie has joined #ruby
browndawg has quit [Read error: Connection timed out]
nvrch has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
wjlafrance has quit [Quit: This computer has gone to sleep]
browndawg has joined #ruby
wallerdev has quit [Quit: wallerdev]
thomasxie1 has joined #ruby
poikon_ has joined #ruby
creede has quit [Ping timeout: 265 seconds]
njection has quit [Ping timeout: 265 seconds]
thomasxie has quit [Ping timeout: 240 seconds]
cj3kim has quit [Ping timeout: 265 seconds]
Maitiu has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
Rollabunna has joined #ruby
njection has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
NovapaX has joined #ruby
fgo has joined #ruby
Maitiu has joined #ruby
klaut has quit [Remote host closed the connection]
DaniG2k has joined #ruby
ikaros has joined #ruby
elaptics`away is now known as elaptics
roolo has joined #ruby
joonty has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
alex88 has joined #ruby
petey has joined #ruby
<alex88>
hi guys, what's the shortes way to get a DateTime difference in minutes?
therod has joined #ruby
therod has quit [Client Quit]
coderxin has joined #ruby
YamakasY has joined #ruby
<vlad_starkov>
Question (cross-post): If I have method that raises exception "def not_found raise ActionController::RoutingError.new('Not Found') end", should I name it "not_found" or "not_found!"?
browndawg has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
jespada has joined #ruby
<apeiros>
alex88: you multiply it be the number of minutes in a day
<apeiros>
the difference, that is
<apeiros>
and the difference you get via DateTime#-
<Hanmac>
vlad_starkov: use "not_found" use only ! in method names when there is a method without ! too
<alex88>
apeiros: oh great! Thanks a lot!
<vlad_starkov>
Hanmac: Thanks
njection has quit [Ping timeout: 265 seconds]
petey has quit [Ping timeout: 240 seconds]
irishcoder4 has joined #ruby
poikon_ has quit [Read error: Connection reset by peer]
poikon_ has joined #ruby
mansi has joined #ruby
Xeago has joined #ruby
Hanmac1 has joined #ruby
xcv has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
<apeiros>
vlad_starkov: I find it a rather bad idea to move a raise into a separate method
<apeiros>
you hide the fact that flow is affected
<apeiros>
at the very least I'd name it `raise_not_found` or somesuch
<vlad_starkov>
apeiros: interesting
funktor has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
<canton7>
I have a convention where methods which perform validation and which can cause them to raise exceptions start with "ensure_". methods which perform validation but return a bool (or something - they don't throw exceptions) start with something like "check_"
mlpinit has joined #ruby
the_hack has joined #ruby
<apeiros>
I have another convention for your second type of methods - I let them end with a ? :-)
mansi has quit [Ping timeout: 265 seconds]
crystal77 has joined #ruby
njection has joined #ruby
mercwithamouth has joined #ruby
<canton7>
heh, that convention actually comes from my C# writing - agreed ? is more ruby
xcv_ has joined #ruby
<vlad_starkov>
apeiros: thanks
funktor has quit [Ping timeout: 240 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
johncjensen has joined #ruby
abdulsattar has joined #ruby
l30n1du5 has quit [Ping timeout: 240 seconds]
TMM has joined #ruby
TMM has quit [Remote host closed the connection]
redlines has quit [Read error: Connection reset by peer]
TMM has joined #ruby
Riking has quit [Ping timeout: 265 seconds]
incade has quit [Quit: incade]
cina has quit [Quit: leaving]
mlpinit has quit [Ping timeout: 245 seconds]
xcv has quit [Ping timeout: 240 seconds]
adurity has joined #ruby
blom_ has joined #ruby
yubrew has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
Hanmac has joined #ruby
mengu has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cj3kim has joined #ruby
AlSquire has joined #ruby
adurity has quit [Ping timeout: 246 seconds]
WormDr1nk has quit [Ping timeout: 240 seconds]
Riking has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
mehlah has joined #ruby
WormDr1nk has joined #ruby
sski has joined #ruby
lolmaus_ has joined #ruby
lolmaus has quit [Ping timeout: 246 seconds]
zono has joined #ruby
njection has quit [Ping timeout: 245 seconds]
lyanchih has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
shaunbaker has joined #ruby
blom_ has quit [Ping timeout: 240 seconds]
relix has joined #ruby
Riking has quit [Ping timeout: 246 seconds]
njection has joined #ruby
Al__ has joined #ruby
canton7-mac has joined #ruby
SonicX has joined #ruby
jespada has quit [Read error: Connection reset by peer]
<workmad3>
User458764: do you get the error if you do 'gem install rmagick --no-ri --no-rdoc'?
njection has quit [Ping timeout: 265 seconds]
hiall has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
mlpinit has joined #ruby
<User458764>
workmad3 no error!
Hanmac1 has quit [Ping timeout: 240 seconds]
<User458764>
workmad3 how do I specify in a global conf file to use these params?
<workmad3>
User458764: put the line 'gem: --no-ri --no-rdoc' into ~/.gemrc
mercwithamouth has quit [Ping timeout: 252 seconds]
<User458764>
workmad3 easy thanks for your help
<workmad3>
User458764: and maybe see if there's a bug on the rmagick project about their rdoc comments causing rdoc to segfault ;)
<workmad3>
(or it might be ri... either way...)
irishcoder4 has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 265 seconds]
DaniG2k has joined #ruby
njection has joined #ruby
gbt has joined #ruby
pr0ggie has joined #ruby
yubrew has quit [Ping timeout: 265 seconds]
adurity has joined #ruby
mlpinit has quit [Ping timeout: 252 seconds]
iaj has joined #ruby
poikon_ has joined #ruby
blom_ has joined #ruby
Riking has joined #ruby
johncjensen has quit []
rjhunter has joined #ruby
adurity has quit [Ping timeout: 252 seconds]
binaryplease has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
Riking has quit [Ping timeout: 245 seconds]
bigkevmcd has joined #ruby
wojtczak has joined #ruby
Al__ has quit [Quit: Al__]
<wojtczak>
is possible to write ruby function that can be loaded by bash? something link source file.rb ?
mercwithamouth has joined #ruby
browndawg has joined #ruby
mostlybadfly has joined #ruby
<certainty>
wojtczak: no. the closest to that is having a file that just contains the implementation of a single function which you just invoke from the shell then. Anothe idea would be a file where you have all sorts of ruby functions and a driver that calls the appropriate function dispatching on the command line arguments. Pretty fast you get to something like rake or thor
blom_ has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
jprovazn has quit [Read error: Operation timed out]
Hanmac has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
Slavox is now known as Slavox|AFK
jprovazn has joined #ruby
chipotle has joined #ruby
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
Speed has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jprovazn has quit [Ping timeout: 245 seconds]
kaspergrubbe has quit [Remote host closed the connection]
cina has joined #ruby
mbuf has joined #ruby
danshultz has joined #ruby
caustic has joined #ruby
arianit has joined #ruby
<mbuf>
is it possible to invoke Test.hello() from inside of Alpha initialize() method? I would like to put functions common to Alpha and Beta in Test so they can be shared
yfeldblu_ has quit [Remote host closed the connection]
cj3kim has joined #ruby
samuel02 has quit [Client Quit]
ben has joined #ruby
perlsyntax has joined #ruby
browndawg has quit [Read error: Operation timed out]
arianit has quit [Quit: Leaving]
njection has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
poikon_ has quit [Remote host closed the connection]
poikon_ has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
vlad_starkov has quit [Remote host closed the connection]
njection has joined #ruby
Hanmac has joined #ruby
_1_Praedo has joined #ruby
bradhe has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
yasushi has joined #ruby
postmodern has quit [Quit: Leaving]
lkba has joined #ruby
kirun has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
arturaz has quit [Quit: Leaving]
camilasan has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
jprovazn has joined #ruby
_1_Praedo has quit [Read error: Connection reset by peer]
camilasa_ has quit [Read error: Connection reset by peer]
skammer_ has joined #ruby
camilasan has joined #ruby
xjiujiu has joined #ruby
benzrf is now known as benzrf|offline
camilasan has quit [Read error: Connection reset by peer]
jhass|off is now known as jhass
camilasan has joined #ruby
wojtczak has quit [Quit: Page closed]
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
User458764 is now known as User458764_NotHe
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<lolmaus_>
mbuf: i'm a newbie, but here's a suggestion: try declaring the `hello` method as `def self.hello`.
User458764_NotHe has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
camilasan has quit [Read error: Connection reset by peer]
catphish_ has joined #ruby
camilasan has joined #ruby
deadlock has quit [Ping timeout: 252 seconds]
<mbuf>
lolmaus_, okay
camilasan has quit [Read error: Connection reset by peer]
petey has joined #ruby
<lolmaus_>
mbuf: this should make your method a class method (as opposed to an instance method).
<catphish_>
i'm using Logger's built-in rotation in a forked program, and it seems as if all the forks rotate the log, resulting in 20 copies, is there an obvious solution to this problem?
camilasan has joined #ruby
User458764 has joined #ruby
<lolmaus_>
By i haven't practice classes yet so i might be wrong how to do that properly.
<gizmore>
catphish_: assign a @pid ||= pid
camilasan has quit [Read error: Connection reset by peer]
<gizmore>
catphish_: and only rotate for this pid
camilasan has joined #ruby
<mbuf>
lolmaus_, that worked; had to call it using Test.hello()
<jhass>
mbuf: what's the problem you're trying to solve with that construct? oh and we generally leave of empty parens
<lolmaus_>
mbuf: yay!
camilasan has quit [Read error: Connection reset by peer]
<catphish_>
gizmore: that's a good idea, though thinking about it, my original process is just a dummy and doesn't log at all, i just found https://github.com/sonots/process_safe_logger
camilasan has joined #ruby
<lolmaus_>
Is there a shortcut for `{}.sort_by { |item| item[:property] }`? Something like `{}.sort_hash(:property)`?
<jhass>
no
<mbuf>
jhass, have common methods between Alpha and Beta in Test that can be called from them
camilasan has quit [Read error: Connection reset by peer]
<gizmore>
catphish_: okay nice :)
<jhass>
mbuf: we use modules to share functionality
yubrew has joined #ruby
camilasan has joined #ruby
<lolmaus_>
Ooops
<lolmaus_>
Is there a shortcut for `[{},{},{}].sort_by { |item| item[:property] }`? Something like `[{},{},{}].sort_hashes(:property)`?
camilasan has quit [Read error: Connection reset by peer]
nvrch has quit [Quit: nvrch]
camilasan has joined #ruby
njection has quit [Ping timeout: 265 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has quit [Read error: Connection reset by peer]
<jhass>
lolmaus_: no, if you had an array of objects (like Structs) and property would be a method on it you could do .sort_by(&:property), but nothing for plain hashes
camilasan has joined #ruby
<mbuf>
jhass, okay
camilasan has quit [Read error: Connection reset by peer]
<lolmaus_>
jhass: thx. Is it true that Structs should be used more often instead of hashes?
camilasan has joined #ruby
razibog has joined #ruby
<jhass>
I wouldn't say so
chipotle has quit [Quit: cya]
teddyp1cker has quit [Remote host closed the connection]
<jhass>
I use Struct as shortcut to entity objects
camilasan has quit [Read error: Connection reset by peer]
binaryplease has quit [Quit: WeeChat 0.4.3]
camilasan has joined #ruby
yubrew has quit [Ping timeout: 265 seconds]
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<lolmaus_>
jhass: i'm a frontend developer, i use Ruby to create static prototypes with Middleman. Sometimes i render nested constructs, and i use hashes extensively to prepare data to be rendered.
<lolmaus_>
jhass: so i wonder whether structs would be more suitable.
camilasa_ has quit [Read error: Connection reset by peer]
<DouweM>
lolmaus_: possibly
camilasan has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
njection has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
mlpinit has joined #ruby
camilasan has joined #ruby
SonicX has quit [Read error: Connection reset by peer]
camilasan has quit [Read error: Connection reset by peer]
SonicX_ has joined #ruby
camilasan has joined #ruby
<jhass>
lolmaus_: I'd say as a rule of thumb, if your hash would be an object (like from an ORM) in a real application use a Struct
binaryplease has joined #ruby
<lolmaus_>
jhass: nice explaination, thx. I'll stay with hashes for now.
camilasan has quit [Read error: Connection reset by peer]
<lolmaus_>
I've looked into structs 101 and they seem to be very similar to JS objects (when they are used to store data in a JSON manner). Is that impression true?
camilasan has joined #ruby
razibog1 has joined #ruby
<gizmore>
lolmaus_: i am quite new too, but i think so :)
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<gizmore>
quite exactly like js, but each key in a hash has to be a symbol
phansch has joined #ruby
<gizmore>
you can either write :sym => val or sym: val
camilasa_ has quit [Read error: Connection reset by peer]
obs has joined #ruby
<jhass>
gizmore: no, a hash key can be anything that responds to #hash and #eql?
camilasan has quit [Read error: Connection reset by peer]
zxq9 has quit [Quit: Konversation terminated!]
teddyp1cker has joined #ruby
deadlock has joined #ruby
<lolmaus_>
:)
camilasan has joined #ruby
User458764 is now known as User458764_NotHe
camilasan has quit [Read error: Connection reset by peer]
senayar has quit [Ping timeout: 240 seconds]
zxq9 has joined #ruby
canton7 has quit [Remote host closed the connection]
camilasan has joined #ruby
canton7 has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
User458764_NotHe has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
njection has quit [Ping timeout: 265 seconds]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
skaflem2 has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
canton7-mac has quit [Quit: Leaving]
canton7 has quit [Remote host closed the connection]
camilasan has joined #ruby
canton7 has joined #ruby
skaflem has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
cj3kim has quit [Ping timeout: 265 seconds]
camilasan has joined #ruby
canton7 has quit [Remote host closed the connection]
canton7 has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
njection has joined #ruby
Lewix has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
Amart41 has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
njection has quit [Ping timeout: 246 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
coderxin has quit [Remote host closed the connection]
bradhe has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
camilasan has joined #ruby
SonicX_ has quit [Read error: Connection reset by peer]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
roolo has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
browndawg has left #ruby [#ruby]
northfurr has quit [Ping timeout: 265 seconds]
mehlah has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
banister has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
evenix has joined #ruby
camilasan has joined #ruby
dblessing has joined #ruby
skaflem2 has quit [Quit: This computer has gone to sleep]
camilasan has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 246 seconds]
vertroa has quit [Ping timeout: 240 seconds]
njection has joined #ruby
foredoomed has joined #ruby
camilasan has joined #ruby
darkkeri has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
poikon__ has joined #ruby
wopi has joined #ruby
Al__ has joined #ruby
camilasan has joined #ruby
sambao21 has quit [Read error: Operation timed out]
camilasan has quit [Read error: Connection reset by peer]
evenix has quit [Remote host closed the connection]
<wopi>
Hi, Can I read a text file in batches by line counts ? For example in batches of 100 lines ? Something like AR find_in_batches ? It must be by lines, not by character count
camilasan has joined #ruby
binaryplease has quit [Quit: WeeChat 0.4.3]
poikon_ has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
evenix has joined #ruby
dzhulk has quit [Quit: Leaving.]
camilasan has joined #ruby
lotherk has quit [Ping timeout: 240 seconds]
<apeiros>
wopi: yes
camilasan has quit [Read error: Connection reset by peer]
<wopi>
apeiros: cool, how ? :)
thomasxie1 has left #ruby [#ruby]
<apeiros>
by reading N lines at a time
camilasan has joined #ruby
<apeiros>
and if you feel fancy, by writing a method which abstracts that pattern
nateberkopec has quit [Quit: Leaving...]
<apeiros>
and if you feel lazy, by using each_slice
camilasan has quit [Read error: Connection reset by peer]
<apeiros>
(on an Enumerator, otherwise it's probably pointless)
<gizmore>
can i prefix @'' to turn it into "" ?
<wopi>
that was my question, if there is already such method, or should I implement it by myself
camilasan has joined #ruby
nateberkopec has joined #ruby
<gizmore>
or ''.to_quoted_s?
dzhulk has joined #ruby
<jhass>
gizmore: '' and "" are the same string
camilasan has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cj3kim has joined #ruby
<jhass>
note that character length != byte count
jackneill has joined #ruby
yubrew has quit [Ping timeout: 246 seconds]
neurom_ has joined #ruby
banister has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
doodlehaus has quit [Remote host closed the connection]
shaunbaker has quit [Remote host closed the connection]
eka has joined #ruby
njection has joined #ruby
blaxter has quit [Quit: foo]
Inoperable has joined #ruby
coderxin has joined #ruby
mansi has joined #ruby
abdulsattar has quit [Ping timeout: 240 seconds]
ij has joined #ruby
<ij>
Hmm, I've installed 2.2.0-dev and I can't find Time.parse in it.
<jhass>
didn't look at 2.2 but you did require 'time' ?
<apeiros>
ij: Time and Date have part of their functionality in core, and part in stdlib. Time.parse is from stdlib, which is why you need a require
agarie has joined #ruby
yacks has quit [Ping timeout: 246 seconds]
mansi has quit [Ping timeout: 240 seconds]
lotherk has joined #ruby
razibog1 has quit [Quit: Leaving.]
njection has quit [Ping timeout: 252 seconds]
<ij>
Aha! Thanks.
lele has quit [Ping timeout: 265 seconds]
phazer has quit [Quit: Lost terminal]
rvraghav93_ has joined #ruby
rvraghav93_ has quit [Read error: Connection reset by peer]
rvraghav93 has quit [Ping timeout: 240 seconds]
rvraghav93 has joined #ruby
adurity has joined #ruby
davedev24 has joined #ruby
njection has joined #ruby
njection has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
lele has joined #ruby
Advocation has quit [Quit: Advocation]
adurity has quit [Ping timeout: 240 seconds]
stringoO has joined #ruby
chipotle has joined #ruby
Lewix has quit [Remote host closed the connection]
<shevy>
apeiros hey, do you use rails for personal stuff as well or just for work? dunno, to collect into a knowledgebase or something like that
ping-pong has quit [Read error: Operation timed out]
Advocation has joined #ruby
xcv_ has joined #ruby
cj3kim has quit [Read error: Connection timed out]
cj3kim has joined #ruby
lotherk has quit [Ping timeout: 240 seconds]
yacks has joined #ruby
catphish_ has joined #ruby
Rober9393 has joined #ruby
larissa has joined #ruby
willob1 has joined #ruby
xcv has quit [Ping timeout: 240 seconds]
wilbert has joined #ruby
<catphish_>
if i have a library that writes data to an IO, such as Zip::ZipOutputStream, and a library that calls .each to receive data, is there a way I can stream one to the other, so that writes to the IO are returned by the enumerable?
<catphish_>
i'm trying to stream a zip file with rack
lotherk has joined #ruby
wopi has left #ruby [#ruby]
cina has quit [Ping timeout: 240 seconds]
glebm has joined #ruby
willob1 has quit [Client Quit]
Mrdarknezz has joined #ruby
rmorello has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
fabrice31 has joined #ruby
<toretore>
catphish_: are you trying to avoid having everything in memory at once?
<catphish_>
correct
<catphish_>
i could write the whole zip to a file, then go back and stream it from the file
<catphish_>
but i'm wondering if there's a way i can stream it straight out of an enumerable
<toretore>
looks like ZipOutputStream already has an each
<toretore>
can't you just give that to rack?
basex has quit [Quit: basex]
<toretore>
i'm not sure what the write/read semantics are though
cover has joined #ruby
<toretore>
afaik rubyzip will always write contents to a file, so just opening a new fd wouldn't add much overhead in that case
<apeiros>
shevy: I don't do much web stuff. apeiros.me is a rails app. not that it needed to be one, though (it's just static html…)
<toretore>
java por tmuch?
<shevy>
ok
kaspergrubbe has joined #ruby
<certainty>
shevy is the NSA of #ruby
<shevy>
nah
<certainty>
:)
<shevy>
I can't forever keep on using ruby .cgi
<certainty>
KGB?
<certainty>
shevy: why not?
<toretore>
cgi? haha
<certainty>
has worked quite ok for decades
<toretore>
i've been using fcgi for years now
<shevy>
certainty I saw it at work - while it works just very well for all my local needs, it is not too easy to distribute it; I use quite a bunch of modifications, and my modifications will barely be tested as much as rails or (hopefully) sinatra
<toretore>
get with the times
<certainty>
hmmm i don't see how that helps with tests
zzyop has joined #ruby
<toretore>
shevy: rack is the new cgi, just use that instead
<shevy>
well things ought to be reliable, I don't trust my own stuff too much :D
charliesome has joined #ruby
ktosiek_ has joined #ruby
<certainty>
you do test your own stuff don't you?
rvraghav93_ has joined #ruby
<shevy>
for myself, yes
bradhe has joined #ruby
<catphish_>
toretore: thinking about it, i seem to remember ZipOutputStream prefers a seekable file, so maybe I will buffer to disk
<catphish_>
thanks
<shevy>
I would not trust the NASA to use it and I would not test for full coverage either
<shevy>
certainty minimalism is so lovely
<certainty>
full coverage is mostly i lie most of the time
<shevy>
you code a little bit, then lean back, have a beer, watch TV .....
rvraghav93 has quit [Ping timeout: 265 seconds]
<shevy>
hmm actually, perhaps *watch youtube these days
<certainty>
shevy: yeah i like minimalism, that's why i'm not fond of pulling in a dependency to rails :)
abdulsattar has joined #ruby
<shevy>
hehe
ktosiek has quit [Ping timeout: 246 seconds]
<certainty>
of course it offers alot of comfort for certain kinds of applications
<certainty>
you don't have to reinvent the wheels and stuff especially not the many wheels that simply didn't work so well
jerius has joined #ruby
cj3kim has quit [Read error: Connection timed out]
sambao21 has joined #ruby
<certainty>
the framework idea of integrating libraries to form a homogenous something can be difficult. sometimes small composable libraries not meant to work in a framework are easier to work with
mansi has joined #ruby
<shevy>
yeah
cj3kim has joined #ruby
akitada has quit [Quit: Connection closed for inactivity]
<certainty>
maybe i'm just frustrated :)
bradhe has quit [Ping timeout: 265 seconds]
nvrch has joined #ruby
VTLob has joined #ruby
ezelohar has joined #ruby
jerius has quit [Client Quit]
sambao21 has quit [Ping timeout: 265 seconds]
<shevy>
well
skaflem has joined #ruby
<shevy>
I prefer small scripts whenever possible
<crome>
any vim users on osx?
monkegjinni has joined #ruby
<shevy>
certainty I tried to have more "large projects" that seem useful, but the amount of time I put into projects, the larger they get, the harder it is to change them, the time-investment ratio drops (for me)
coapsy has joined #ruby
coapsy has quit [Client Quit]
enebo has joined #ruby
<certainty>
shevy: that depends much on your architecture but bigger projects are more difficult to manage than smaller more focused projects
<shevy>
:)
JasmeetQA has quit [Ping timeout: 240 seconds]
cj3kim has quit [Read error: Connection reset by peer]
JasmeetQA has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
yubrew has joined #ruby
browndawg has joined #ruby
nateberkopec has quit [Quit: Leaving...]
vpretzel has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
sailias has joined #ruby
User458764 has joined #ruby
<banister>
github is down?
<apeiros>
seems like
kristiandelay has joined #ruby
hito has joined #ruby
senayar_ has quit [Remote host closed the connection]
Vovko has joined #ruby
senayar has joined #ruby
marienz has left #ruby ["spamcheck"]
marienz has joined #ruby
benzrf|offline is now known as benzrf
lotherk has quit [Ping timeout: 245 seconds]
hito has left #ruby [#ruby]
jprovazn has quit [Quit: Leaving]
<catphish_>
oh yeah
abdulsattar has quit [Ping timeout: 240 seconds]
<certainty>
now it's a good time to have a look at bitbucket! :p
chris_thomson has joined #ruby
thesheff17 has joined #ruby
petey has joined #ruby
<neurom_>
certainty: bitbucket is horribly neglected by atlassian
DouweM has quit [Ping timeout: 246 seconds]
<benzrf>
=[
lotherk has joined #ruby
<certainty>
neurom_: is it? i find it quite nice, better than github actually
zzyop has quit [K-Lined]
<neurom_>
i watch quite a few issues for master/site, and it's a sad, sad thing.
CreativeEmbassy has joined #ruby
lolmaus has joined #ruby
<neurom_>
but yeah, it's not like github inc. is tripping over themselves with fixes for the *broken* reST formatting etc.
<certainty>
i have nothing bad to say about bb, maybe i'm an unusual user. I only use the repository stuff, not the other things like issue management
claymore has quit [Ping timeout: 265 seconds]
<certainty>
and i only use mercurial, but i think they offer the same set of features for hg and git
lolmaus_ has quit [Ping timeout: 265 seconds]
petey has quit [Ping timeout: 240 seconds]
kaspergrubbe has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
claymore has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi_ has joined #ruby
<catphish_>
if we're doing shameless SCM plugs, check out codebase :)
Rollabunna has quit [Read error: No route to host]
<catphish_>
ah good, GH is back
Advocation has quit [Quit: Advocation]
lotherk has quit [Remote host closed the connection]
<certainty>
strange line of code. select always returns an array which is truthy, which means the inner select is always truthy which well make the outer select return just arr
<certainty>
so the python equivalent is whatever returns the array itself
OdNairy has joined #ruby
<certainty>
minus stuff that can accure when an error is raised
<jhass>
(he left)
<canton7-mac>
yeah, I don't think that does what the author intended :P
soulcake has quit [Read error: Connection reset by peer]
thesheff17 has quit [Ping timeout: 240 seconds]
bynaryshef has joined #ruby
soulcake has joined #ruby
krz has quit [Read error: Connection reset by peer]
RaCx has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
xcv_ has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gfunc has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
Xeago has joined #ruby
cina has quit [Read error: No route to host]
beneggett has joined #ruby
kpshek has quit []
cina has joined #ruby
<Hanmac>
shevy: look at the build date ;P
anarang has quit [Quit: Leaving]
bradhe has quit [Ping timeout: 265 seconds]
rjhunter has joined #ruby
quatron has joined #ruby
juarlex has joined #ruby
wald0 has quit [Quit: Lost terminal]
dzhulk has joined #ruby
quatron has quit [Client Quit]
sski has quit [Remote host closed the connection]
yfeldblum has joined #ruby
beneggett has quit [Client Quit]
sski has joined #ruby
jlast has joined #ruby
ga1j1n has joined #ruby
rjhunter has quit [Ping timeout: 252 seconds]
browndawg1 has joined #ruby
jrhe has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
arubincloud has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
sski has quit [Ping timeout: 246 seconds]
browndawg has quit [Ping timeout: 240 seconds]
atno has quit [Remote host closed the connection]
atno has joined #ruby
kpshek has joined #ruby
sparrovv has joined #ruby
yubrew has joined #ruby
rdark has quit [Quit: leaving]
snath has joined #ruby
kpshek has quit [Client Quit]
cj3kim has joined #ruby
sreesaran has joined #ruby
VinceThePrince has quit [Ping timeout: 252 seconds]
dzhulk1 has joined #ruby
yubrew has quit [Ping timeout: 265 seconds]
rayners has joined #ruby
rayners has quit [Remote host closed the connection]
dzhulk has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
acrussell has joined #ruby
Speed has joined #ruby
basex has left #ruby [#ruby]
<shevy>
hmm
<shevy>
a simple return statement inside of a method will return early, right?
<jhass>
sure
cina has quit [Read error: No route to host]
rayners has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
lethjakman has joined #ruby
cina has joined #ruby
mansi has quit [Remote host closed the connection]
RaCx has joined #ruby
mansi has joined #ruby
jkamenik has joined #ruby
mbuf has joined #ruby
albedoa has joined #ruby
sreesaran is now known as new-programmer
<mbuf>
is there a way to identify the source files that are accessed for an object's ancestors?
kpshek has joined #ruby
wallerdev has joined #ruby
albedoa has quit [Client Quit]
<Hanmac>
mbuf: you can try: object.method(methname).source_location #(does only work on ruby methods, not compiled ones)
byprdct has joined #ruby
sk87 has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
<CreativeEmbassy>
is there some way I can guarantee I'll receive a message? even if it's inside a block, inside a thread, inside the belly of a giant...
<CreativeEmbassy>
I'm dealing with bunny (amqp), and there's some black magic happening inside consumer threads, and I have no idea what's going wrong, and can't tell how to fix it
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi has joined #ruby
<CreativeEmbassy>
I'm opening Rails.logger, and not getting any output. same with puts to stdout
wallerdev has quit [Client Quit]
<Hanmac>
creativeembassy: try the "fail" method ;P
<Hanmac>
creativeembassy: rails questions to #RubyOnRails
Alex__________ has quit [Quit: Adios!]
<CreativeEmbassy>
it's not really a rails question though. trying to make a ruby library
Vovko has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
vpretzel has joined #ruby
vpretzel has quit [Remote host closed the connection]
<shevy>
creativeembassy lol
<shevy>
creativeembassy inside the belly of a giant
<shevy>
what kind of code do you produce that you face such dilemmas
<CreativeEmbassy>
...bleeding edge code?
<CreativeEmbassy>
lol
<CreativeEmbassy>
I dunno
mikecmpbll has quit [Quit: ciao.]
sambao21 has joined #ruby
<CreativeEmbassy>
I'm looking for some unique way to receive a message, inside some subprocess of some kind, that won't be captured by anything surrounding it
<CreativeEmbassy>
going to try `fail` real quick
beneggett has joined #ruby
blom_ has joined #ruby
User458764 has joined #ruby
jdbcisco has joined #ruby
<CreativeEmbassy>
...fail does nothing
<CreativeEmbassy>
so that tells me this block of code probably isn't running
<CreativeEmbassy>
unless it's being rescued...?
RaCx has quit [Quit: Computer has gone to sleep.]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
dzhulk1 has quit [Quit: Leaving.]
abdulsattar has quit [Read error: Operation timed out]
mikecmpbll has joined #ruby
<shevy>
dunno
toastynerd has quit [Remote host closed the connection]
<shevy>
you can always pass anything inside of a block
mercwithamouth has quit [Ping timeout: 240 seconds]
<jdbcisco>
Anyone have a good fix on CentOS 6.5 for the "Fetching source index from https://rubygems.org" Trying to bundle install and it just sits there indefinitely.
nomenkun has quit [Remote host closed the connection]
<jhass>
how many minutes is indefinitely?
withnale has quit [Read error: Operation timed out]
blackmesa has joined #ruby
nomenkun has joined #ruby
<shevy>
jhass we would need chuck norris to count
<Hanmac>
jdbcisco: did you try to use bundler? if yes try #bundler
<jdbcisco>
4 hours and counting
<shevy>
that's typical bundler speed
Speed has left #ruby ["WeeChat 0.4.3"]
<jhass>
which bundler version?
<Hanmac>
centos is a bit old ... it still uses stone circles
tylersmith has quit [Remote host closed the connection]
<jdbcisco>
egh :) Okay, I'll give it the rest of the day
danshultz has quit [Ping timeout: 252 seconds]
withnale has joined #ruby
<shevy>
can't you simply install the gems without bundler?
sparrovv has quit [Remote host closed the connection]
cina has quit [Read error: No route to host]
<jhass>
I'd abort and retry, I mean this is a network call, there's a timeout in it
<jhass>
it just shouldn't take that long
cina has joined #ruby
<jhass>
unless you're on an old bundler version and try to install like half of the gems out there
<jdbcisco>
shevy: trying to install snorby which requires some gem dependencies.
<jdbcisco>
Bundler Version: bundler (1.5.3)
<mbuf>
Hanmac, that worked; thanks!
<shevy>
jdbcisco ok and you can not use "gem install snorby" ?
nomenkun has quit [Ping timeout: 240 seconds]
<jdbcisco>
no, that hangs
<shevy>
eh
<jdbcisco>
I left it on for about two days
<jdbcisco>
still was fetching
<shevy>
and what does "gem list" show
<shevy>
ok first off
<shevy>
gem install snorby
<shevy>
ERROR: Could not find a valid gem 'snorby' (>= 0) in any repository
<shevy>
snorby is not an official gem
<shevy>
so bundler tries to fetch it from some site
<shevy>
where is that site?
evenix has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
lemonsparrow has joined #ruby
joast has quit [Quit: Leaving.]
enebo has quit [Quit: enebo]
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3>
shevy: eww, that's an awful gemfile filled with unnecessary gunk
<shevy>
hehe
enebo has joined #ruby
kaliya has quit [Quit: Lost terminal]
rippa has joined #ruby
patteh is now known as Patteh
lolmaus has quit [Remote host closed the connection]
ga1j1n has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
ga1j1n has joined #ruby
mengu has quit []
ga1j1n has quit [Read error: Connection reset by peer]
ga1j1n has joined #ruby
joast has joined #ruby
ga1j1n has quit [Client Quit]
DaniG2k has quit [Ping timeout: 246 seconds]
User458764 has quit [Ping timeout: 245 seconds]
qmfnp has joined #ruby
atmosx has joined #ruby
browndawg1 has quit [Read error: Connection timed out]
SolarSailor has joined #ruby
bradhe has joined #ruby
yasushi has quit [Remote host closed the connection]
sparrovv has joined #ruby
kevind has joined #ruby
jackneill has quit [Quit: WeeChat 0.4.3]
browndawg has joined #ruby
circuit has joined #ruby
browndawg has quit [Max SendQ exceeded]
scarolan has joined #ruby
jackneill has joined #ruby
browndawg has joined #ruby
camilasan has quit [Remote host closed the connection]
browndawg has quit [Max SendQ exceeded]
camilasan has joined #ruby
<kbarry>
When i execute a poershell command via ruby using the "system" command in ruby, ruby properly returns whatever was returned by powershell, AND either true of false is returned in irb.
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
sdouglas has quit [Remote host closed the connection]
browndawg has quit [Max SendQ exceeded]
camilasan has joined #ruby
beneg has joined #ruby
cina has quit [Read error: No route to host]
camilasan has quit [Read error: Connection reset by peer]
cina has joined #ruby
camilasan has joined #ruby
browndawg has joined #ruby
beneggett has quit [Ping timeout: 240 seconds]
browndawg has quit [Max SendQ exceeded]
m1lt0n_ has quit [Quit: leaving]
camilasan has quit [Read error: Connection reset by peer]
cj3kim has quit [Read error: Connection timed out]
camilasan has joined #ruby
browndawg has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
browndawg has quit [Max SendQ exceeded]
cj3kim has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
einarj has quit [Remote host closed the connection]
camilasan has joined #ruby
browndawg has joined #ruby
sdouglas_ has joined #ruby
mikepack has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
rvraghav93 has joined #ruby
rvraghav93_ has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
Celm has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
Celm has quit [Client Quit]
<shevy>
irb has this annoying habit of returning the last value
camilasan has joined #ruby
<shevy>
you can use a "hack" as in system(bla);''
<shevy>
then at least irb will shut
<shevy>
there are better ways to change irb behaviour, I was too lazy to research them though
<banister>
shevy use pry instead
camilasan has quit [Read error: Connection reset by peer]
lotherk has quit [Ping timeout: 240 seconds]
atmosx has quit [Quit: Lost in trance]
gigetoo has quit [Remote host closed the connection]
camilasan has joined #ruby
<canton7-mac>
shevy, you don't ned the '', just add the semicolon
<banister>
canton7-mac semicolon wont work, it'll cause a run-on expression, you need: blah;nil
camilasan has quit [Read error: Connection reset by peer]
lotherk has joined #ruby
<canton7-mac>
aww, oh well
camilasan has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
gigetoo has joined #ruby
yubrew has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<shevy>
canton7-mac I am actually too lazy to do that even in irb, it only annoys me when I have like really a huge hash and I just did: pp hash
camilasan has joined #ruby
<shevy>
there even was some strangeness with Wirble gem, I think I might have disabled it
yfeldblum has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
kpshek has quit []
Advocation has joined #ruby
camilasan has joined #ruby
mansi has quit [Remote host closed the connection]
browndawg1 has joined #ruby
<crome>
is there a way to output stuff using CGI without it wrapping the content in html/body?
<kbarry>
I must not fully understand what exit 0 means to both powershell and to ruby
rvraghav93_ has joined #ruby
mansi has joined #ruby
yubrew has quit [Read error: Operation timed out]
sparrovv has quit [Remote host closed the connection]
rvraghav93 has quit [Read error: Connection reset by peer]
rvraghav93_ has quit [Read error: Connection reset by peer]
xcv has quit [Read error: Connection reset by peer]
mansi has quit [Read error: Connection reset by peer]
<shevy>
see, the bastard returned me "foo" rather than 'foo'
<shevy>
I hate eval-in so much
swks has quit [Quit: leaving]
jlast has quit [Remote host closed the connection]
bradhe has joined #ruby
<philcrissman>
arcanez: '"foo"' is "\"foo\""; if you assign `str = '"foo"'` and then look at str, it will be "\"foo\""
funktor has quit [Remote host closed the connection]
tvw has quit []
robbyoconnor has quit [Ping timeout: 245 seconds]
funktor has joined #ruby
macmartine has joined #ruby
afreidah has quit [Ping timeout: 240 seconds]
<philcrissman>
a good way to think about it is that '' and "" are just ways to construct strings (the latter accepting interpolation); the strings themselves are always double-quoted.
x1337807x has joined #ruby
wallerdev has quit [Quit: wallerdev]
rabeldable has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
saarinen has joined #ruby
rvraghav93 has joined #ruby
lemonsparrow has quit [Quit: Page closed]
dzhulk has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
<workmad3>
philcrissman: there's some other differences in how character escapes are handled too... but yes, String#inspect always displays a string with ", not '
funktor has quit [Ping timeout: 240 seconds]
zachallett has joined #ruby
<philcrissman>
yeah, I'm just spouting off after a few seconds tinkering in irb. :D
bklane has joined #ruby
rezzack has quit [Quit: Leaving.]
<workmad3>
philcrissman: '\n' == "\\n" is the one that frequently catches people out :)
dgaffney has joined #ruby
<philcrissman>
workmad3: I know there's a few other differences. The key is (I think) to _Ruby_, they're all strings. There's just differences in how it parses what's between the quotes.
wilbert has quit [Ping timeout: 245 seconds]
mando has joined #ruby
<philcrissman>
'\n' ==
yubrew has joined #ruby
<workmad3>
philcrissman: well yeah, '' still creates an instance of String
<philcrissman>
"\\n" makes sense to me.
<philcrissman>
yep
mansi_ has joined #ruby
<arcanez>
I just didn't want to write :foo => '"bar"' :)
<workmad3>
and String#inspect (which is what irb will use) gives the output with ""
ben has quit [Quit: ben]
jjbohn has quit [Quit: Leaving...]
mansi has quit [Read error: Connection reset by peer]
<workmad3>
arcanez: '"bar"' is a String instance that contains "bar"... once you have a string instance, the type of quotes used is immaterial and that info is lost
<arcanez>
workmad3: *nods*
<workmad3>
arcanez: if you wanted, you could probably modify the ruby parser so that '' created a SingleQuotedString instance and "" created a DoubleQuotedStringInstance... but I'm not sure ther'd be much point :)
SonicX has joined #ruby
<arcanez>
:)
yubrew has quit [Ping timeout: 240 seconds]
SolarSailor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has joined #ruby
rvraghav93_ has joined #ruby
einarj has joined #ruby
larissa has joined #ruby
rvraghav93 has quit [Ping timeout: 245 seconds]
einarj has quit [Remote host closed the connection]
rjhunter has joined #ruby
Guest42388 is now known as ixx
vlad_st__ has quit [Remote host closed the connection]
einarj has joined #ruby
vlad_starkov has joined #ruby
SonicX has quit [Ping timeout: 246 seconds]
einarj has quit [Remote host closed the connection]
afreidah has joined #ruby
rvraghav93_ has quit [Read error: Operation timed out]
rvraghav93 has joined #ruby
SonicX has joined #ruby
heftig has joined #ruby
roolo has quit [Ping timeout: 265 seconds]
momomomomo has joined #ruby
mailo has joined #ruby
zarul has quit [Ping timeout: 240 seconds]
rjhunter has quit [Ping timeout: 252 seconds]
SonicX has quit [Excess Flood]
mansi_ has quit [Read error: Connection reset by peer]
SonicX has joined #ruby
zarul has joined #ruby
mansi has joined #ruby
jibi has quit [Ping timeout: 252 seconds]
iliketurtles has joined #ruby
wallerdev has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
rainmanjam has joined #ruby
cover has joined #ruby
toastynerd has quit [Remote host closed the connection]
<wallerdev>
morning rubyists :)
bluenemo has quit [Remote host closed the connection]
dkamioka has joined #ruby
momomomomo has quit [Quit: momomomomo]
Mrdarknezz has quit [Read error: Operation timed out]
beneggett has joined #ruby
carraroj has joined #ruby
camilasan has quit []
jespada has quit [Quit: Leaving]
afreidah has quit [Read error: Operation timed out]
cj3kim has quit [Remote host closed the connection]
<benzrf>
morning wallerdev
mercwithamouth has quit [Ping timeout: 246 seconds]
<neo1691>
I want to install rvm, new to ruby and rails, the website says that I can install rvm using ruby, and I also have ruby installed.
yubrew has joined #ruby
razibog has quit [Ping timeout: 246 seconds]
<neo1691>
But it also says For all in one installation append --rails or --ruby or --ruby=1.9.3
ace_striker has joined #ruby
<neo1691>
Which is confusing me!
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
davy has quit [Remote host closed the connection]
<neo1691>
do I need to append those lines?
kennym has quit [Quit: Leaving.]
OdNairy has quit [Ping timeout: 269 seconds]
SolarSailor has joined #ruby
sepp2k has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
yubrew has quit [Ping timeout: 240 seconds]
sdouglas has quit [Remote host closed the connection]
Mrdarknezz has quit [Read error: Operation timed out]
Doppp has quit [Ping timeout: 240 seconds]
irishcoder4 has quit [Remote host closed the connection]
oso|away is now known as oso96_2000
Advocation has quit [Quit: Advocation]
sdouglas has joined #ruby
<wallerdev>
neo1691: if you want to install all rails and ruby along with rvm at the same time
<havenwood>
neo1691: use Ruby 2.1.1
<wallerdev>
you can install them after you install rvm too, or do it all at once
<neo1691>
okay, so that option is for using install both ruby and rails also alongwith rvm
<wallerdev>
yeah
Eiam has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<neo1691>
I interpreted it as installing rvm for either rubu or rails or something like that!
<Eiam>
and todays Ruby interview questions were... whats the difference between map, reduce & inject.. Candidate score:0 =(
<wallerdev>
lol
<neo1691>
I right now am using ruby 1.9.3 from the official debian repos! I will upgrade soon Thanks!
<wallerdev>
please explain the difference between inject and reduce :p
<Eiam>
wallerdev: =) thats part of the question
<havenwood>
neo1691: If you're using system Ruby, you can skip the RVM part and just: sudo gem install rails
<Eiam>
wallerdev: its a two fold question, recognition that reduce & inject are the same thing, and that map & reduce are not
benzrf is now known as benzrf|offline
<wallerdev>
cool :)
<Eiam>
wallerdev: instead I get people trying to invent new functionality for one of them
<Eiam>
or thinking they are all 3 the same
<wallerdev>
i need to think of some interview questions for when i have to interview someone haha
<Eiam>
the other question was about multiple monkey patching
<havenwood>
Eiam: throw #collect in the mix
<Eiam>
e.g. if i monkey patch, then rails monkey patches
<neo1691>
havenwood: I am following the rubytutorial.org book!
<Eiam>
how do i detect what went wrong, where, and how do i fix it
frem has quit [Quit: Connection closed for inactivity]
<Eiam>
havenwood: hehe, I have a pretty poor success rate I don't think the question needs to be any "harder" its my starter question!
sdouglas has quit [Ping timeout: 265 seconds]
replicant has joined #ruby
ace_striker is now known as _8_8_8_8
<wallerdev>
yeah ive heard tech interviews have a high frequency of people who cant even code at all
<havenwood>
Eiam: it might make the question easier, since if they realize #map and #collect are the same, it might trigger a realization for the other - or make it harder, dunno
<wallerdev>
i.e. fizzbuzz
<Eiam>
I'm not convinced that people who fail fizz buzz "can't code"
abdulsattar has joined #ruby
<Eiam>
there is such a dynamic in an interview room, and stress & such, its weird
<wallerdev>
yeah for sure
echevemaster has quit [Read error: Connection reset by peer]
<Eiam>
I sometimes listen to questions other people ask candidates and I panic thinking omg I can't answer that I don't even know what he's asking!
<Eiam>
then i see the answer and I'm like oh, duh, I knew that..
nanoyak has quit [Quit: Computer has gone to sleep.]
<Eiam>
but thank goodness I'm not the one being interviewed or I'd look like such a moron!
<replicant>
any of you had an issue with rubies installed via RVM where you enter into a directory with apredefined ruby version, or just installed a specific ruby version and received this error? `Unknown ruby string (do not know how to handle): ruby-2.0.0-p353.`
<arubincloud>
Not knowing about the modulo operator seems like the only semi-reasonable explanation for not being able to write Fizzbuzz.
<wallerdev>
i did some interviews recently, and its really just getting comfortable that was most important for me, like the more i did, the better i got at it, just because i was more comfortable
RaCx has joined #ruby
<havenwood>
replicant: i don't know, you might try #rvm
<Eiam>
wallerdev: yep that too. I don't hold it against people if they don't get the questions (as in, I don't think they are stupid)
<replicant>
i have .. mpapis just left for dinner :D lol
<philcrissman>
I told him up front that I was familiar with the problem and had written solutions several times just as a coding exercise, so he could ask a different question if he wanted to. He asked me to just go ahead with fizzbuzz. That was a pretty easy session.
<havenwood>
philcrissman: right tool for the job and all... ;P
<Eiam>
shevy: yep, I have not interviewed for a job in awhile! i interview people pretty often
<Hanmac>
havenwood: i found a plugin for the Totem(or any other gstreamer) player that allows to play *.torrent files ;D
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
<neo1691>
Ok I used rvm to also install ruby with --ruby=1.9.3 option. But after the installation of rvm, if I run ruby -v, it says command not found! Any help ?
kennym has joined #ruby
joelmo has joined #ruby
hiall has quit [Ping timeout: 245 seconds]
quatron has joined #ruby
<wallerdev>
neo1691: you need to type rvm use 1.9.3
art-solopov has joined #ruby
pu22l3r has joined #ruby
<neo1691>
Okay!
<neo1691>
and can I also install the latest ruby with the same command?
<neo1691>
like ruby 2.0.0
<neo1691>
--ruby=2.0.0
mlpinit has quit [Read error: Connection reset by peer]
<invinceable>
in bootstrap.rb they are not part of a class, rather just configuration
thesheff17 has joined #ruby
beneggett has joined #ruby
r0nin has joined #ruby
tomstuder has joined #ruby
frankkany has quit [Remote host closed the connection]
frankkany has joined #ruby
cina has joined #ruby
txdv has quit [Ping timeout: 240 seconds]
Soda has quit [Remote host closed the connection]
<wallerdev>
invinceable: do they change? seems like configuration would usually be done with constants
<invinceable>
wallerdev: no they don't. so $foo and just call it with FOO throughout the program? is that the ruby convention?
<wallerdev>
yeah just use a constant
elaptics is now known as elaptics`away
<wallerdev>
like module MyCoolConfig; MY_COOL_VALUE = 350; end, then call it with MyCoolConfig::MY_COOL_VALUE or something
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140314220517]]
kennym has quit [Quit: Leaving.]
rabeldable has quit [Quit: Leaving.]
yubrew has joined #ruby
rvraghav93 has joined #ruby
nanoyak has joined #ruby
frankkany is now known as _i_0o_i_
tcstar has joined #ruby
rabeldable has joined #ruby
<pipework>
invinceable: You should avoid setting your own globals until you have an extremely compelling argument to do so.
geopet has joined #ruby
robbyoconnor has quit [Ping timeout: 265 seconds]
QuintinAdam has joined #ruby
r0nin has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 265 seconds]
<shevy>
extremely compelling
Al__ has quit [Quit: Al__]
<shevy>
cuz I can!!!
<shevy>
I store all my $globals in @@'s
irishcoder4 has quit [Remote host closed the connection]
* Hanmac
stores constants inside objects
yubrew has quit [Ping timeout: 265 seconds]
_8_8_8_8 is now known as ace_striker
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baroquebobcat has joined #ruby
_i_0o_i_ has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 246 seconds]
robbyoconnor has joined #ruby
cina has quit [Remote host closed the connection]
sambao21 has joined #ruby
nanoyak has quit [Ping timeout: 240 seconds]
hrs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
txdv has joined #ruby
tomstuder has quit [Ping timeout: 240 seconds]
Shidash has joined #ruby
lw has joined #ruby
jjbohn has joined #ruby
frankkany has joined #ruby
nanoyak has joined #ruby
toastynerd has joined #ruby
fannye has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
blom_ has joined #ruby
jjbohn has quit [Quit: Leaving...]
neo1691 has quit [Quit: WeeChat 0.4.3]
larissa has quit [Quit: Leaving]
davy has joined #ruby
jarred has joined #ruby
afex has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
spyderman4g63 has quit []
benzrf|offline is now known as benzrf
diegoviola has quit [Quit: WeeChat 0.4.3]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has quit []
emanu has joined #ruby
* pipework
stores his constants in his shell's environment. RAILS_APP_NAME=screw_off MODELS=( user money ) meta-rails server -p $AVAILABLE_PORT
ctp has joined #ruby
byprdct has quit [Read error: Connection reset by peer]
mando has quit [Ping timeout: 240 seconds]
rootshift has joined #ruby
tvw has joined #ruby
wilbert has quit [Quit: quit]
Hobogrammer has joined #ruby
jjbohn has joined #ruby
jjbohn has quit [Client Quit]
sdouglas_ has joined #ruby
Xeago has joined #ruby
ace_striker has quit [Quit: Page closed]
jjbohn has joined #ruby
Solnse has joined #ruby
frankkany is now known as _i_0o_i_
nfk has quit [Quit: yawn]
_i_0o_i_ has quit [Remote host closed the connection]
<Eiam>
philcrissman: clever for fun is fine, but I mean ask yourself seriously, do you want to rewrite that code to do something slightly different with the executive team changes their mind for the 9th time?
frankkany has joined #ruby
sdouglas has quit [Ping timeout: 265 seconds]
<Eiam>
cause I prefer boring ass code that I can read in my sleep
sambao21 has quit [Quit: Computer has gone to sleep.]
<philcrissman>
Eiam: no of course not. :) That was just for fizzbuzz stuff.
<Eiam>
esp when I'm refactoring it for the 9th time to accommodate some new idea someone had =)
phantasm66 has joined #ruby
<pipework>
Eiam: There's a value in having the right abstractions. The wrong ones are not only costly to change, they're too clever.
maletor has quit [Quit: Computer has gone to sleep.]
davy has quit [Remote host closed the connection]
maletor has joined #ruby
sdouglas_ has quit [Ping timeout: 240 seconds]
QuintinAdam has quit [Remote host closed the connection]
davy has joined #ruby
QuintinAdam has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
michael_lee has joined #ruby
<shevy>
I also prefer simple code
<arubincloud>
Does anyone prefer "complex" code?
<Eiam>
arubincloud: I think the distinction is that some people don't recognize whats actually being complex =)
<arubincloud>
Sure.
funktor has joined #ruby
userx has joined #ruby
<arubincloud>
I do work with an architecture astronaut who enjoys adding unnecessary code.
<Eiam>
oh dear, architecture astronauts
<Eiam>
god
frankkany is now known as Frank13760
<Eiam>
i had this guy trying to design a system that would protect against physical access and all these other strange electron microscope attacks
<Eiam>
and i was just staring at his suggestion
<Eiam>
IF YOU HAVE AN ELECTRON MICROSCOPE YOU CAN HAVE THE DATA
<arubincloud>
heh
funktor has quit [Remote host closed the connection]
<Eiam>
(this was about reading values out of NVRAM)
txdv has quit [Ping timeout: 240 seconds]
<arubincloud>
Did he consider my quantum microscope attack?
michael_lee has quit [Read error: Connection reset by peer]
<Eiam>
someone smarter than he and with more authority than me called him on his inanity
Frank13760 has quit [Remote host closed the connection]
<shevy>
arubincloud there is a lot of complex code in metaprogramming
frankkany has joined #ruby
<Eiam>
about worrying about attacks that, for people would those resources, would have far easier methods of attack to get what they wanted from you
<shinobi_one>
xybre: what do you mean the normal method of using a module?
monkegjinni has quit [Remote host closed the connection]
<hfp>
Hey, I would like to clarify something: `a ||= b` means if `a` a isn't false (so `a` either has been set to true or holds a value other than nil/false) then return `a`, otherwise, do `a = b`, correct?
mary5030 has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
mr_wooh23422 has quit [Quit: Leaving]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
funktor has quit []
maximski_ has joined #ruby
Xeago has joined #ruby
enebo has joined #ruby
rjhunter has quit [Ping timeout: 240 seconds]
RaCx has joined #ruby
davy has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
<bricker`work>
hfp: that's correct, in the case of local variables it can also mean "if `a` isn't defined"
<hfp>
bricker`work: thanks
<bricker`work>
hfp: constants too
<xybre>
shinobi_one: Write the code for attr_initialize in a module then reuse it.
kennym has quit [Quit: Leaving.]
monkegjinni has joined #ruby
<shinobi_one>
xybre: i see
maximski has quit [Ping timeout: 240 seconds]
Xeago_ has joined #ruby
monkegjinni has quit [Client Quit]
banister has joined #ruby
ikaros has quit [Quit: Ex-Chat]
mordocai` has quit [Remote host closed the connection]
hrs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zachallett has quit [Remote host closed the connection]
ffranz has quit [Quit: Leaving]
Hobogrammer has quit [Quit: WeeChat 0.4.3]
ffranz has joined #ruby
benzrf is now known as benzrf|offline
krz has quit [Quit: WeeChat 0.4.3]
phantasm66 has quit [Quit: *sleeeep….]
davedev25 has joined #ruby
CreativeEmbassy has quit [Quit: FO SHO]
BeingUntoDeath has quit []
jarred has quit [Quit: Leaving.]
beneggett has joined #ruby
paulfm has quit []
sleepee has quit [Quit: Leaving]
<joelteon>
It doesn't seem that in a rake task, I can trap SIGTERM myself
saarinen has quit [Read error: Connection reset by peer]
confounds has joined #ruby
saarinen has joined #ruby
<pipework>
nice SOC eval.
sdouglas has quit [Remote host closed the connection]
Xeago_ has quit [Remote host closed the connection]
io_syl has quit []
popl has quit [Ping timeout: 240 seconds]
Soda has joined #ruby
endash_ has joined #ruby
havenwood has quit [Remote host closed the connection]
<shinobi_one>
xybre: ah i see
petey has quit [Remote host closed the connection]
chipotle has joined #ruby
petey has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
OdNairy_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aniM has quit [Remote host closed the connection]
<xybre>
pipework: Yeah its the cleanest + fastest way I could think of. Unless they finally fixed define_method in Ruby 2.x
<pipework>
xybre: I didn't know it was broken. :(
rickruby has quit [Remote host closed the connection]
Al__ has joined #ruby
mikepack_ has quit [Remote host closed the connection]
rickruby has joined #ruby
Al__ has quit [Client Quit]
<xybre>
pipework: it was sloowwwwwwwwwww. I'll see if I can find a bench.
sambao21 has joined #ruby
skaflem has quit [Quit: Leaving]
<pipework>
oh! Slows.
mikepack has joined #ruby
<pipework>
No tracking down needed.
sambao21 has quit [Client Quit]
petey has quit [Ping timeout: 240 seconds]
Dr3amc0d3r|away has quit [Ping timeout: 252 seconds]
<xybre>
Also I wasn't sure I could constrain the arity without writing more code.
saarinen has quit [Quit: saarinen]
<xybre>
I think I'd need to dynamically create the argument list either way, or else do a manually artiy check.
geopet has quit []
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
Dr3amc0d3r|away has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
codabrink has quit [Ping timeout: 245 seconds]
rickruby has quit [Ping timeout: 246 seconds]
Dr3amc0d3r|away is now known as Dr3amc0d3r
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
beneggett has joined #ruby
beneggett has quit [Client Quit]
teddyp1cker has quit [Remote host closed the connection]
yubrew has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
codabrink has joined #ruby
saarinen has joined #ruby
emanu has quit [Quit: emanu]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
failshell has quit [Ping timeout: 240 seconds]
ij has quit [Ping timeout: 240 seconds]
blom_ has quit [Remote host closed the connection]
dkamioka_ has joined #ruby
blom_ has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
sambao21 has joined #ruby
pinage404 has quit [Excess Flood]
dkamioka has quit [Ping timeout: 240 seconds]
<xybre>
pipework: Looks like early last year tenderlove did some new benchmarks using 1.9 that shows that define_method is actually better for most things, except that define_method creates closures, and of course you can't do any source code manipulation with it. http://tenderlovemaking.com/2013/03/03/dynamic_method_definitions.html
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Atw has quit [Ping timeout: 246 seconds]
yubrew has quit [Ping timeout: 265 seconds]
confounds has quit [Remote host closed the connection]
OdNairy has joined #ruby
blom_ has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
banister has joined #ruby
sputnik13 has joined #ruby
sputnik13 has quit [Client Quit]
sputnik13 has joined #ruby
dkamioka_ has quit [Remote host closed the connection]
rvraghav93 has joined #ruby
nfk has quit [Quit: yawn]
rootshift has joined #ruby
doodlehaus has quit [Remote host closed the connection]
havenwood has joined #ruby
pfg has joined #ruby
doodlehaus has joined #ruby
nisstyre has joined #ruby
nisstyre has quit [Changing host]
nisstyre has joined #ruby
petey has joined #ruby
ezelohar has quit [Ping timeout: 265 seconds]
jaimef has quit [Excess Flood]
confounds has joined #ruby
dkamioka has joined #ruby
jackneill has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
dblessing has quit [Quit: dblessing]
inkblots has left #ruby [#ruby]
danshultz has joined #ruby
pinage404 has joined #ruby
<invinceable>
how should i approach this error? /Users/vincent/.rbenv/versions/2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:2064:in `raise_if_conflicts': Unable to activate mail-2.5.4, because mime-types-2.2 conflicts with mime-types (~> 1.16) (Gem::LoadError)
<invinceable>
does this mean some of my gems are trying to call two separate gems? is there a way i can just tell my ruby script to only activate/use one?
heftig has joined #ruby
Advocation has joined #ruby
saarinen has quit [Quit: saarinen]
doodlehaus has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
michaeldeol has joined #ruby
<xybre>
invinceable: each Gem has its own set of dependencies. What you're seeing is that there's (at least) two that have different version depndencies on MimeTypes. This is typically for a good reason.
<invinceable>
xybre: i see. darn
Hobogrammer has joined #ruby
<xybre>
invinceable: Start by trying to "bundle update mime-types" and then try to "bundle update mail"
mikepack has quit [Remote host closed the connection]
george2 has quit [Remote host closed the connection]
<xybre>
invinceable: If that doesn't clear it up then make sure your Gemfile doesn't explictly set versions for either of those gems and then update them both together with "bundle update mime-types mail".
mikepack has joined #ruby
danshultz has quit [Ping timeout: 265 seconds]
jrhe has quit [Quit: Connection closed for inactivity]
chris_thomson has joined #ruby
elaptics`away is now known as elaptics
art-solopov has quit [Read error: Connection reset by peer]
george2 has joined #ruby
SHyx0rmZ has joined #ruby
saarinen has joined #ruby
senayar_ has joined #ruby
juarlex has joined #ruby
jaimef has joined #ruby
deadlock has quit [Read error: Connection reset by peer]
geopet has joined #ruby
kennym has joined #ruby
mikepack has quit [Remote host closed the connection]
blom_ has joined #ruby
mikepack has joined #ruby
postmodern has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
jjbohn has quit [Quit: Leaving...]
dingus_khan has quit []
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mercwithamouth has quit [Ping timeout: 240 seconds]
tvw has quit []
brain_shim has quit [Remote host closed the connection]
jjbohn has joined #ruby
hobodave has quit [Read error: Operation timed out]
SolarSailor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stringoO has quit [Quit: stringoO]
rayners has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
juarlex has quit []
lw has quit [Quit: s]
tvw has joined #ruby
Vovko has quit [Remote host closed the connection]
kennym has quit [Quit: Leaving.]
Vovko has joined #ruby
baroquebobcat has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
beneggett has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
codabrink has quit [Ping timeout: 246 seconds]
rootshift has joined #ruby
rickruby has joined #ruby
baroquebobcat has quit [Client Quit]
Vovko has quit [Ping timeout: 265 seconds]
rvraghav93 has quit [Read error: Connection reset by peer]
beneg has joined #ruby
codabrink has joined #ruby
beneggett has quit [Read error: Connection reset by peer]
rickruby has quit [Ping timeout: 265 seconds]
BuSerD has joined #ruby
petey has quit [Remote host closed the connection]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
matcouto has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wald0 has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
blom_ has joined #ruby
blom_ has quit [Remote host closed the connection]
creede has joined #ruby
george2 has joined #ruby
blom_ has joined #ruby
rvraghav93 has quit [Ping timeout: 246 seconds]
Deele has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
Doppp has quit [Ping timeout: 245 seconds]
senayar_ is now known as senayar
<shevy>
benzrf you are just too hyperactive
sdouglas has quit [Remote host closed the connection]
dgaffney has quit [Remote host closed the connection]
endash_ has joined #ruby
dgaffney has joined #ruby
snath has quit [Ping timeout: 240 seconds]
geopet has quit []
petey has quit [Remote host closed the connection]
<pipework>
shevy: Maybe you are just hyperslow.
ikaros has joined #ruby
blom_ has quit [Ping timeout: 265 seconds]
maletor has joined #ruby
petey has joined #ruby
<shevy>
pipework you are also very slow compared to benzrf
thesheff17 has quit [Read error: Connection reset by peer]
<pipework>
shevy: It's a feature.
teddyp1cker has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
coderxin has quit [Remote host closed the connection]
dgaffney has quit [Ping timeout: 245 seconds]
saarinen has quit [Quit: saarinen]
petey has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
sparrovv has joined #ruby
teddyp1cker has quit [Ping timeout: 265 seconds]
chipotle has joined #ruby
SrPx has quit [Remote host closed the connection]
davy has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
enebo has joined #ruby
havenwood has quit [Remote host closed the connection]
pu22l3r_ has joined #ruby
lw has quit [Quit: s]
dkamioka has joined #ruby
markisonfire has quit [Quit: markisonfire]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
dkamioka has quit [Remote host closed the connection]
dkamiok__ has quit [Ping timeout: 240 seconds]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
davy has quit [Ping timeout: 240 seconds]
ffranz has quit [Quit: Leaving]
pu22l3r has quit [Ping timeout: 246 seconds]
rvraghav93 has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
<RubyPanther>
"Haskell is... a language for geniuses by geniuses... and so you know you have to hire some really smart people in order to program in it." -- Larry Wall
<benzrf>
pfft
<benzrf>
larry wall is full of crap
<RubyPanther>
^ context was what non-programmers should know about programming languages
<benzrf>
i know haskell p good and im not a genius
m_3 has quit [Ping timeout: 246 seconds]
<centrx>
Yeah, everyone knows benzrf isn't very smart
<benzrf>
:^)
<RubyPanther>
So maybe you know it, but it just isn't really "for" you.
nanoyak has quit [Quit: Computer has gone to sleep.]
irishcoder has joined #ruby
<pipework>
benzrf: I think scratch may be more 'for' you.
AussieDownUnder has quit [Remote host closed the connection]
davedev25 has quit [Quit: Leaving]
terrellt has joined #ruby
rvraghav93 has quit [Ping timeout: 240 seconds]
Shidash has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
bradhe has quit [Remote host closed the connection]
tcstar has joined #ruby
lavaman has joined #ruby
snath has joined #ruby
<lavaman>
anyone know how to convert any string to an integer in a consistent fashion? I don't mean a string containing a number, I mean any string.
<wallerdev>
like “thirty one” ?
Rollabunna has joined #ruby
<wallerdev>
or “two and a quarter”
<lavaman>
like a string that could be anything. nothing to do with numbers at all
<lavaman>
basically, i'm writing a puppet module to configure zookeeper. It requires each host in a cluster to have a unique id that both the server and the peers require
<pipework>
workmad3: Not consistent.
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
<workmad3>
pipework: hmm... it's consistent within the same run
<lavaman>
the simplest way for consumers of my environment to make use of this is to just pass the hostnames of the cluster, so i'd like a consistent way to convert those into integer values
_maes_ has quit [Read error: Connection reset by peer]
philcrissman has quit [Remote host closed the connection]
<pipework>
benzrf: ^
<pipework>
bnagy: Sorry
<benzrf>
wahaha
rjhunter has quit [Ping timeout: 245 seconds]
atmosx has joined #ruby
<lavaman>
pipework i'll take a look
<workmad3>
lavaman: alternatively... couldn't you generate a UUID on the first encounter of a hostname, store it on the puppet's node data somehow and then on subsequent runs grab the UUID from said data
<pipework>
lavaman: Does zookeeper really not support UUIDs?
<RubyPanther>
benzrf: You should abstract out the delivery mechanism
<benzrf>
RubyPanther: it was just a 30-minute boredom project o=
vlad_starkov has quit [Remote host closed the connection]
<benzrf>
[yes it took me 30m to write that pls dont judge]
<bnagy>
surely some kind of hash would be better though
<benzrf>
pipework and lavaman team up:
renklaf_ has quit [Read error: Connection reset by peer]
<benzrf>
lava pipes
<RubyPanther>
so get bored-er
<benzrf>
>implying this has any reasonable use cases
<lavaman>
workmad3: the problem with that is that other nodes need access to it also, and you can't just lookup other node's data in puppet
renklaf_ has joined #ruby
<benzrf>
pretty much any delivery mechanism besides http already has something like that anyway p=
<lavaman>
pipework: it literally has to be an integer
<workmad3>
lavaman: well, UUID to integer is easy ;) Integer(SecureRandom.uuid.gsub('-',''), 16)
<pipework>
lavaman: funny
<lavaman>
it's super silly that it can't take an alphanumeric. at least i'd be able to sha it
<lavaman>
oh, and even more fun these boxes are stuck on ruby 1.8.7 smh
<workmad3>
lavaman: but bleh on not being able to get other node's data in puppet... it's something I find indespensible in chef for multi-node deployments :(
sparrovv has quit [Remote host closed the connection]
<lavaman>
we're running in aws and doing a/b deploys and all that, but somebody decided we need to stay on an LTS release of ubuntu
<lavaman>
workmad3 there are mechanisms to do so, but we don't have the components installed to make it happen atm
tylersmith has quit [Remote host closed the connection]
jeff_04 has joined #ruby
jeff_04 has left #ruby [#ruby]
Doppp has joined #ruby
klaut has quit [Remote host closed the connection]
sshack has joined #ruby
<sshack>
Hi, So #rails seems to invite only. Is there another channel available for rails discussion?
<workmad3>
sshack: #rubyonrails
<workmad3>
sshack: if you've registered, trying to join #rails should shunt you there
dx7 has joined #ruby
mehlah has quit [Quit: Leaving...]
<sshack>
agh, yes. there was just some lag time in my nick registering.
<sshack>
workmad3: Thanks.
<workmad3>
lavaman: regarding ruby 1.8.7... 12.04 has the ruby-1.9.1 packages which install ruby 1.9.3, so LTS release is no reason to be using 1.8.7
abdulsattar has joined #ruby
<lavaman>
yeah, we just haven't had the time to upgrade and make sure it doesn't break anything
bradhe has joined #ruby
<workmad3>
lavaman: no time in the last 4 years to check if a stable 1.9 build will work?
sdouglas has joined #ruby
<lavaman>
haha, this env is less than a year old, and we've only started running up against 1.8.7 crustiness recently and the powers that be decided it's not worth our time to fix it
<apeiros>
sshack: use sasl auth
<lavaman>
i work in a rather large enterprise and they don't move very quickly
<lavaman>
the stuff we're doing got started on a random dev's credit card so we could actually move forward and not wait 3 months for servers