InhalingPixels has quit [Ping timeout: 264 seconds]
pwh has joined #ruby
i_s has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
oo_ has joined #ruby
Kerber0s has joined #ruby
mpistone_ has quit [Remote host closed the connection]
britneywright has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
icole has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
Azure has quit [Quit: My MBP went to sleep.]
_Kerber0s_ has quit [Ping timeout: 272 seconds]
wjimenez_ has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
sparrovv has joined #ruby
SilkFox_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kerber0s has quit [Ping timeout: 264 seconds]
Azure has joined #ruby
orolo has joined #ruby
icarus has quit [Remote host closed the connection]
wjimenez5271 has quit [Ping timeout: 255 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sparrovv has quit [Ping timeout: 264 seconds]
sevenseacat has joined #ruby
CpuID2 has joined #ruby
CpuID2 has joined #ruby
jottr has joined #ruby
echooo has joined #ruby
CpuID has quit [Ping timeout: 246 seconds]
kennet___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zettam_ has quit [Read error: Connection reset by peer]
goleldar has quit [Remote host closed the connection]
goleldar has joined #ruby
dc_ has quit [Remote host closed the connection]
goleldar has quit [Read error: Connection reset by peer]
goleldar has joined #ruby
beef-wellington has quit [Ping timeout: 272 seconds]
Inhaling_ has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
jonr22 has joined #ruby
ghr has joined #ruby
Kerber0s has joined #ruby
mollitz has joined #ruby
tkuchiki has joined #ruby
InhalingPixels has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 264 seconds]
choke has quit [Quit: Leaving]
marr has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 245 seconds]
havenwood has quit []
nDuff has quit [Ping timeout: 252 seconds]
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Koshian has joined #ruby
Koshian has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
Koshian has joined #ruby
djbkd has quit [Remote host closed the connection]
saarinen has joined #ruby
davispuh has quit [Ping timeout: 245 seconds]
beef-wellington has joined #ruby
Koshian is now known as Koshian
saarinen has quit [Client Quit]
oo_ has joined #ruby
davispuh has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
aspires has quit []
rjhunter has joined #ruby
<postmodern>
well sprockets-standalone worked well
<postmodern>
except it's still not processing //= require
<postmodern>
i guess sprockets broke something (not surprised)
toastynerd has quit [Remote host closed the connection]
jxf has quit [Ping timeout: 272 seconds]
SilkFox_ has quit [Ping timeout: 264 seconds]
centrx has quit [Quit: Mead error: Connection reset by beer]
JoshGlzBrk has joined #ruby
bogeyd6 has joined #ruby
goleldar has quit [Remote host closed the connection]
goleldar has joined #ruby
kenneth has joined #ruby
goleldar has quit [Ping timeout: 252 seconds]
IrishGringo has quit [Quit: ChatZilla 0.9.90.1 [Firefox 32.0/20140825202822]]
charliesome has joined #ruby
narcan has joined #ruby
kireevco has quit [Quit: Leaving.]
CpuID2 has quit [Quit: This computer has gone to sleep]
axsuul has quit [Ping timeout: 240 seconds]
soheil has quit [Remote host closed the connection]
CpuID2 has joined #ruby
CpuID2 has joined #ruby
CpuID2 has quit [Changing host]
InhalingPixels has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mferrier has quit []
jottr has joined #ruby
_cake has quit [Ping timeout: 252 seconds]
cirn0 has joined #ruby
JoshGlzBrk has joined #ruby
InhalingPixels has quit [Read error: Connection reset by peer]
InhalingPixels has joined #ruby
GriffinHeart has joined #ruby
echevemaster has joined #ruby
crdpink has joined #ruby
crdprink2 has quit [Ping timeout: 245 seconds]
lemur has joined #ruby
cirn0 has quit [Ping timeout: 252 seconds]
Toordog has quit [Ping timeout: 245 seconds]
<postmodern>
am I doing something stupid? shouldn't sprockets expand //= require "..." in plain .js files?
rjhunter has quit [Remote host closed the connection]
_maes_ has joined #ruby
Lewix has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 245 seconds]
starkhalo has quit [Ping timeout: 268 seconds]
GriffinHeart has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 255 seconds]
deric_skibotn has quit [Ping timeout: 245 seconds]
dorei has quit []
Toordog has joined #ruby
centrx has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
angelic_sedition has joined #ruby
slester has quit [Quit: Quitte]
cocotton has quit [Remote host closed the connection]
emocakes has joined #ruby
zakiazigazi has joined #ruby
InhalingPixels has quit [Ping timeout: 240 seconds]
rjhunter has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Lewix has joined #ruby
angelic_sedition has quit [Client Quit]
angelic_sedition has joined #ruby
Miron has joined #ruby
Snowstormer has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
bogeyd6 has quit [Quit: Leaving]
pu22l3r has joined #ruby
seamon has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
rjhunter has quit [Ping timeout: 245 seconds]
icebourg has quit []
angelic_sedition has quit [Client Quit]
angelic_sedition has joined #ruby
orolo has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
MrL0ngbowman has joined #ruby
klurbin has joined #ruby
angelic_sedition has quit [Client Quit]
<klurbin>
I can't seem to find how to do (or even what to call) behavior like such `String("string")` which just returns a string "string". Can someone tell me what this is called and/or how it is done.
mollitz has quit [Ping timeout: 240 seconds]
<postmodern>
omfg, apparently //= require's have to go at the top of the file?
MrL0ngbowman has quit [Client Quit]
troyready has quit [Ping timeout: 240 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
tricorius has joined #ruby
<postmodern>
klurbin, um String(str) does that
<postmodern>
klurbin, check the .object_id of it, it won't return a new string if str is already a String
jonr22 has joined #ruby
<klurbin>
But how does one define a method like that, it's like the parameter is being passed to the class, not a method.
beef-wellington has quit [Ping timeout: 272 seconds]
wallerdev has quit [Quit: wallerdev]
tokik has joined #ruby
<klurbin>
postmodern: I want to do something like MyModule("my arguments") in my own code, but I'm not sure how to implement it.
sleepee has joined #ruby
<postmodern>
klurbin, how just define self.Foo()
<centrx>
klurbin, String() and such are defined as a shortcut, on Kernel, which is included in every Object
Kerber0s has quit [Remote host closed the connection]
fsapo has joined #ruby
<klurbin>
postmodern: centrx thankyou
hamakn has joined #ruby
starless has quit [Quit: Leaving]
Kerber0s has joined #ruby
crdpink has quit [Ping timeout: 245 seconds]
crdprink2 has joined #ruby
oo_ has quit [Remote host closed the connection]
reset has quit [Quit: Leaving...]
reset has joined #ruby
harumph has joined #ruby
harumph has left #ruby [#ruby]
ndrei has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
MrL0ngbowman has joined #ruby
b06464f377 has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
MrL0ngbowman has quit [Client Quit]
crdprink2 has quit [Ping timeout: 240 seconds]
reset has quit [Ping timeout: 252 seconds]
b06464f377 has joined #ruby
freerobby has quit [Quit: Leaving.]
mary5030 has joined #ruby
toastynerd has joined #ruby
toastynerd has quit [Remote host closed the connection]
emmesswhy has joined #ruby
ghr has quit [Ping timeout: 268 seconds]
iamjarvo has joined #ruby
freerobby has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CpuID3 has joined #ruby
CpuID2 has quit [Ping timeout: 255 seconds]
shock_one has joined #ruby
JoshGlzBrk has joined #ruby
axsuul has joined #ruby
SilkFox_ has joined #ruby
tricorius has left #ruby [#ruby]
Avahey_ has quit [Quit: Connection closed for inactivity]
OffTheRails has quit [Ping timeout: 260 seconds]
wallerdev has joined #ruby
djbkd has joined #ruby
tylerkern has joined #ruby
BBBThunda has quit [Ping timeout: 252 seconds]
funklulu has joined #ruby
shock_one has quit [Ping timeout: 276 seconds]
funklulu has left #ruby [#ruby]
_Kerber0s_ has joined #ruby
SilkFox_ has quit [Ping timeout: 272 seconds]
holsee has quit [Quit: Connection closed for inactivity]
Kerber0s has quit [Ping timeout: 268 seconds]
davispuh has quit [Ping timeout: 245 seconds]
JohnFord has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seamon has quit [Quit: Zzzzzzz]
mercwithamouth has quit [Ping timeout: 268 seconds]
rubytor has joined #ruby
michaeldeol has joined #ruby
klurbin has quit [Quit: Page closed]
GriffinHeart has joined #ruby
michaeldeol has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
bmurt has quit []
davedev2_ has quit []
_Kerber0s_ has quit [Ping timeout: 268 seconds]
GriffinHeart has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
GinoMan has joined #ruby
pu22l3r has quit [Remote host closed the connection]
spastorino has quit [Quit: Connection closed for inactivity]
ponga has joined #ruby
InhalingPixels has joined #ruby
<ponga>
here back i am
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has quit [Ping timeout: 245 seconds]
timonv_ has quit [Ping timeout: 268 seconds]
radic has joined #ruby
Scripore has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
InhalingPixels has quit [Ping timeout: 264 seconds]
zeroNones has joined #ruby
sparrovv has joined #ruby
TorpedoSkyline has joined #ruby
radic_ has quit [Ping timeout: 240 seconds]
<ponga>
ruby isn't that slow compared to java?..
<centrx>
ponga, Ruby (MRI) has historically been considered slow, but speed has improved greatly since 1.8, and there are other interpreters for Ruby, such as JRuby which uses the JVM
orolo has joined #ruby
<ponga>
hi centrx
sparrovv has quit [Ping timeout: 245 seconds]
<centrx>
Ahoy
<ponga>
i hate using java...
<ponga>
i really do..
<centrx>
Java has been known to cause brain damage.
avita1 has joined #ruby
pu22l3r has joined #ruby
mferrier has joined #ruby
mary5030 has quit [Remote host closed the connection]
sdwrage has joined #ruby
<ponga>
centrx can i do concurrent tasks with ruby
<benzrf>
1. speed isnt important in some applications
<benzrf>
2. there are larger bottlenecks than the speed of the language in some applications
<ponga>
but java is causing serious brain damage to me
<ponga>
and other me keeps telling me to use java
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
<centrx>
ponga, Most applications do not need the speed of Java
icebourg has joined #ruby
<ponga>
centrx: mine is language processing, using lots of strings and key-value and arrays
<centrx>
ponga, Also remember a poorly written/unoptimized program in language X is slower than an optimized program in language Y
ghr has joined #ruby
<ponga>
i wonder i needed java then
voodoofish has joined #ruby
voodoofish1 has quit [Ping timeout: 276 seconds]
JohnFord has quit [Ping timeout: 246 seconds]
<centrx>
ponga, If I wanted something with comparable speed to Java, I would choose Scala or Go or JavaScript or something
<ponga>
you mean javascript v8?
<centrx>
right, not Netscape Navigator 4.8 JavaScript
toastynerd has joined #ruby
BBBThunda has joined #ruby
braincrash has joined #ruby
<ponga>
but then im working on my own solo.. and java almost makes me impotent
<ponga>
i shoulda stop whining and continue working..
thams has joined #ruby
<centrx>
ponga, Quit slacking off! :)
ghr has quit [Ping timeout: 260 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
<ponga>
centrx: a friend who i seek most of advices is the one who recommended Java and he keeps saying that java is beautiful and good for your health
kireevco has joined #ruby
<centrx>
ponga, Maybe the JVM is beautiful and good for your health
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<centrx>
ponga, but the language itself, its syntax, semantics, and best practices, are horrific
<czaks>
ponga: how about jruby? you can use all java libraries while using ruby
<ponga>
centrx he says the language is a juicy lump of steak
<centrx>
ponga, What other languages is he familiar with?
<ponga>
centrx C++ as far as i remember
<centrx>
ponga, Java was a good improvement over C++
mary5030 has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
BBBThunda has quit [Quit: Leaving]
<ponga>
czaks i never used jruby, does that mean i can achieve near speed of java with style of ruby?
BBBThunda has joined #ruby
<czaks>
ponga: i'm not sure
<czaks>
there are 3 good ruby implementations
ghost2060 has quit [Ping timeout: 246 seconds]
<czaks>
if you use just ruby, you can use all 3 of them
ponga has quit [Remote host closed the connection]
Bumptious has joined #ruby
avita1 has quit [Quit: Leaving.]
visof has quit [Ping timeout: 255 seconds]
chipotle has quit [Quit: cya]
oo_ has quit [Ping timeout: 252 seconds]
bricker_ is now known as bricker
ghr has joined #ruby
grokdancer has joined #ruby
bluOxigen has joined #ruby
Channel6 has quit [Quit: Leaving]
arup_r has quit [Quit: Leaving.]
cocotton has quit [Remote host closed the connection]
recurrence has quit [Ping timeout: 268 seconds]
yetanotherdave has joined #ruby
diegoviola has quit [Remote host closed the connection]
grokdancer has quit [Client Quit]
ghr has quit [Ping timeout: 264 seconds]
grenierm has joined #ruby
lkba has quit [Quit: Bye]
j_mcnally has quit [Remote host closed the connection]
dmyers has joined #ruby
<ght>
Question: I would like to handle error handling with XMLRPC::Client.new2(), but begin / rescue statements surrounding it aren't working. The application still dies with "getaddrinfo: Name or service not known (SocketError)" instead of executing the rescue statement code.
<ght>
Any idea how to perform something akin to a begin / rescue with this?
koderok has joined #ruby
<ght>
Research isn't turning up anything yet.
lkba has joined #ruby
pu22l3r has quit [Remote host closed the connection]
totimkopf has quit [Ping timeout: 245 seconds]
starkhalo has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
avita1 has joined #ruby
aspires has quit []
goodenough has joined #ruby
aspires has joined #ruby
nemesit|znc has quit [Ping timeout: 240 seconds]
grokdancer has joined #ruby
icebourg has quit []
aspires has quit [Client Quit]
aspires has joined #ruby
nemesit|znc has joined #ruby
jrhe_ has quit [Quit: Connection closed for inactivity]
xenomorph is now known as {xenomorph}
tlarevo has joined #ruby
Kerber0s has quit [Remote host closed the connection]
oo_ has joined #ruby
kireevco has quit [Quit: Leaving.]
t_p has joined #ruby
hiyosi has joined #ruby
kireevco has joined #ruby
nobitanobi has joined #ruby
<nobitanobi>
night guys
<nobitanobi>
I want to find all index of an array which elements are not nil. I have tried this: [1,2,3,nil].each_index.select { |cell| cell != nil } -- but I get [0,1,2,3]
MrL0ngbowman has joined #ruby
oo_ has quit [Remote host closed the connection]
MrL0ngbowman has quit [Client Quit]
hiyosi has quit [Ping timeout: 246 seconds]
jaake has quit [Ping timeout: 240 seconds]
t_p has quit [Quit: Computer has gone to sleep.]
bearish has joined #ruby
oo_ has joined #ruby
<nobitanobi>
never mind, that is actually iterating over the indeces, not the elements.
dukz has joined #ruby
goodenough has quit [Remote host closed the connection]
stoned is now known as Rugal
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Avahey_ has joined #ruby
bearish has quit [Ping timeout: 276 seconds]
InhalingPixels has joined #ruby
cocotton has joined #ruby
freerobby has quit [Quit: Leaving.]
<pontiki>
try each_with_index
oo_ has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
grokdancer has quit [Quit: Leaving.]
cocotton has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
icebourg has joined #ruby
InhalingPixels has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
cocotton has quit [Remote host closed the connection]
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
SilkFox_ has joined #ruby
<nobitanobi>
pontiki: I did this: status.each_index.select { |i| status[i].nil? }
<nobitanobi>
* !status[i].nil?
bearish has joined #ruby
goodenough has joined #ruby
orolo has joined #ruby
starless has joined #ruby
nobitanobi has quit [Remote host closed the connection]
MrL0ngbowman has joined #ruby
starless has quit [Client Quit]
nobitanobi has joined #ruby
aspires has quit []
SilkFox_ has quit [Ping timeout: 272 seconds]
tlarevo_ has joined #ruby
nobitanobi has quit [Client Quit]
timonv_ has joined #ruby
dukz_ has joined #ruby
dukz has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
tlarevo has quit [Ping timeout: 245 seconds]
Cooler__ has quit [Ping timeout: 276 seconds]
goodenough has quit [Remote host closed the connection]
<pontiki>
and?
BBBThunda has quit [Quit: Leaving]
echevemaster has quit [Read error: Connection reset by peer]
toastynerd has quit [Remote host closed the connection]
Azzurrio has joined #ruby
jelera has joined #ruby
jelera has quit [Remote host closed the connection]
MrL0ngbowman has quit [Read error: Connection reset by peer]
MrL0ngbowman has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
MrL0ngbowman has quit [Read error: Connection reset by peer]
MrL0ngbowman has joined #ruby
emmesswhy has joined #ruby
sinkensabe has joined #ruby
icebourg has quit []
mary5030 has quit [Remote host closed the connection]
threesixes has quit [Remote host closed the connection]
pu22l3r has joined #ruby
spider-mario has quit [Remote host closed the connection]
vinleod has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
reynscem_ has joined #ruby
emocakes__ has joined #ruby
duncannz has quit [Ping timeout: 264 seconds]
lowandslow_ has joined #ruby
spider-mario has joined #ruby
dawkirst_ has quit [Remote host closed the connection]
reynscem has quit [Ping timeout: 252 seconds]
mengu has quit [Remote host closed the connection]
emocakes has quit [Ping timeout: 252 seconds]
abuzze_ has joined #ruby
_tpavel has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
W0rmDr1nk has joined #ruby
emocakes__ has quit []
ClarusCogitatio has quit [Ping timeout: 255 seconds]
abuzze has quit [Ping timeout: 245 seconds]
ringarin has quit [Ping timeout: 268 seconds]
Takle has joined #ruby
ClarusCogitatio has joined #ruby
pyx has quit [Quit: WeeChat 0.4.3]
Advocation has quit [Quit: Advocation]
emocakes has joined #ruby
JohnBat26 has quit [Ping timeout: 268 seconds]
marr has joined #ruby
brahman has joined #ruby
brahman has joined #ruby
sk87 has joined #ruby
abuzze has joined #ruby
Takle has quit [Remote host closed the connection]
diegoviola has joined #ruby
<brahman>
Hi, am loading a yaml file and then when modifying and writing it back to a new file some of the values (strings) are no longer quoted. Anyone know of a way to preserve the quotes around strings?
Wolland_ has quit [Remote host closed the connection]
ClarusCogitatio has quit [Ping timeout: 272 seconds]
timonv_ has quit [Remote host closed the connection]
hiyosi has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
abuzze_ has quit [Ping timeout: 245 seconds]
ptrrr has joined #ruby
ClarusCogitatio has joined #ruby
Wolland has joined #ruby
timonv_ has joined #ruby
Guest94089 has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
kristofferR has quit [Read error: Connection reset by peer]
Wolland_ has joined #ruby
hiyosi has quit [Ping timeout: 252 seconds]
<jhass>
brahman: note that that's perfectly valid YAML and just for your aesthetics. You can pass canonical: true to the .dump, that'll have some other effects too though
ringarin has joined #ruby
kristofferR has joined #ruby
Wolland has quit [Ping timeout: 255 seconds]
ClarusCogitatio has quit [Ping timeout: 252 seconds]
Takle has joined #ruby
InhalingPixels has joined #ruby
reynscem_ has quit [Ping timeout: 245 seconds]
gauke has joined #ruby
ClarusCogitatio has joined #ruby
mollitz has joined #ruby
sparrovv has joined #ruby
InhalingPixels has quit [Ping timeout: 276 seconds]
SilkFox_ has joined #ruby
mengu has joined #ruby
echooo has quit [Ping timeout: 245 seconds]
gauke has quit [Quit: gauke]
timonv_ has quit [Remote host closed the connection]
AlSquire has joined #ruby
atmosx has joined #ruby
timonv_ has joined #ruby
SilkFox_ has quit [Ping timeout: 268 seconds]
kristofferR has quit [Max SendQ exceeded]
diegoviola has quit [Quit: WeeChat 1.0]
dawkirst has joined #ruby
mengu has quit [Read error: No route to host]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
diegoviola has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
Takle has quit [Remote host closed the connection]
rkalfane_ has joined #ruby
rkalfane_ has quit [Client Quit]
Hobogrammer has quit [Ping timeout: 255 seconds]
koderok has quit [Quit: koderok]
Jackneill has joined #ruby
poulet_a has joined #ruby
dc_ has joined #ruby
koderok has joined #ruby
warprobot has joined #ruby
rdffd has joined #ruby
Takle has joined #ruby
BTRE has quit [Ping timeout: 252 seconds]
ClarusCogitatio has quit [Ping timeout: 255 seconds]
koderok has quit [Remote host closed the connection]
warprobot has quit [Remote host closed the connection]
dc_ has quit [Ping timeout: 252 seconds]
mkaesz has quit [Ping timeout: 246 seconds]
fabrice31 has quit [Remote host closed the connection]
diegoviola has quit [Remote host closed the connection]
ndrei has joined #ruby
jlebrech has quit [Remote host closed the connection]
BeanDip has quit [Ping timeout: 245 seconds]
ClarusCogitatio has joined #ruby
sparrovv has quit [Remote host closed the connection]
diegoviola has joined #ruby
sparrovv has joined #ruby
sparrovv has quit [Read error: Connection reset by peer]
timonv^ has joined #ruby
Takle has quit [Remote host closed the connection]
pu22l3r has joined #ruby
tlarevo has joined #ruby
<atmosx>
hello
<gaussblurinc1>
hello
emocakes__ has joined #ruby
emocakes__ has quit [Max SendQ exceeded]
aedorn has quit [Remote host closed the connection]
emocakes__ has joined #ruby
cyrinux has quit [Ping timeout: 245 seconds]
timonv_ has quit [Ping timeout: 246 seconds]
Juanchito has joined #ruby
Jake232 has joined #ruby
jottr has joined #ruby
sakitram has joined #ruby
orolo has quit [Read error: Connection reset by peer]
emocakes has quit [Ping timeout: 245 seconds]
ClarusCogitatio has quit [Ping timeout: 276 seconds]
orolo has joined #ruby
<sakitram>
hi, I created a ruby program using Sinatra. In that, I want to print 3 strings in webpage. So I had put 3 strings with double quotes enclosed, but only the last string displayed in webpage. How to get all string?
hamakn has quit [Remote host closed the connection]
ClarusCogitatio has joined #ruby
fabrice31 has joined #ruby
BTRE has joined #ruby
pu22l3r has quit [Ping timeout: 264 seconds]
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emocakes has joined #ruby
<canton7>
sakitram, you route needs to return a single string
<canton7>
sakitram, you can either concatenate all of your strings together to form 1 string, then return that
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 32.0/20140825202822]]
zakiazigazi has quit []
<canton7>
or you can use a view to render your 3 strings as another string
<sakitram>
ok
<sakitram>
so obviously there is no other chance than using views.. I get it now
<sakitram>
Thanks
<sakitram>
choice*
OffTheRails has joined #ruby
emocakes__ has quit [Ping timeout: 252 seconds]
ClarusCogitatio has quit [Ping timeout: 240 seconds]
timgauthier has joined #ruby
<timgauthier>
hi
meinside has joined #ruby
kristofferR has joined #ruby
kristofferR has quit [Read error: Connection reset by peer]
gaussblurinc1 has quit [Quit: Leaving.]
OffTheRails has quit [Max SendQ exceeded]
ClarusCogitatio has joined #ruby
OffTheRails has joined #ruby
kristofferR has joined #ruby
timonv^ has quit [Remote host closed the connection]
sakitram has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.2.0/20131205180928]]
Steve has joined #ruby
jlebrech has joined #ruby
tokik has quit [Ping timeout: 272 seconds]
tlarevo has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
oo_ has joined #ruby
sigurding has quit [Quit: sigurding]
Scotteh has joined #ruby
Stalkr_ has joined #ruby
visof has joined #ruby
Xeago has joined #ruby
atmosx has quit [Quit: computer went to sleep...]
jlebrech has quit [Remote host closed the connection]
doodlehaus has joined #ruby
Advocation has joined #ruby
guanophobic has quit [Remote host closed the connection]
jottr_ has quit [Quit: WeeChat 1.0]
jottr has joined #ruby
ClarusCogitatio has quit [Ping timeout: 276 seconds]
pu22l3r has joined #ruby
guanophobic has joined #ruby
Takle has joined #ruby
timonv_ has joined #ruby
mkaesz has quit [Ping timeout: 246 seconds]
<shevy>
hey timgauthier
wezpyke has quit [Remote host closed the connection]
<timgauthier>
hey shevy
ClarusCogitatio has joined #ruby
<timgauthier>
a .de domain should probably serve de content by default, and the english content goes under .de/en/ ?
Mon_Ouie has quit [Read error: No route to host]
tkuchiki has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
fsapo has joined #ruby
wezpyke has joined #ruby
mbuf has quit [Quit: Leaving]
pu22l3r has quit [Ping timeout: 272 seconds]
arturaz has quit [Remote host closed the connection]
<jhass>
timgauthier: by that logic an .it domain should serve italien by default ;)
<Nowaker>
timgauthier: it depends. you can analyze the headers and decide what langusage to show dynamically (its django style i think)
<timgauthier>
we will Nowaker, but i'm setting up the environment
<timgauthier>
jhass depends, if the site is .it for the sake of having .it, or if it is actually italian content. this is a site for a place/thing in germany, but the audiance is international. so it will mostly serve english, but it just seems weird to have domain.de/de/
<timgauthier>
though, we do have domain.de and domain.com, i forgot about that. nm, i'll just redirect to the different domains on the same server :)
<Nowaker>
timgauthier: told you, you can have the language automatically
<Nowaker>
with the same urls
HelperW___ has joined #ruby
<Nowaker>
django style
<jhass>
I usually just do accept language detection and a dropdown+cookie
<timgauthier>
yes that isn't the issue
MCDev has quit [Ping timeout: 250 seconds]
<timgauthier>
we also need to have people able to switch languages, and they're mostly the same sites but not.
<timgauthier>
jhass yeah thats the direction we're going
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<timgauthier>
i like it this way, lets me have things like /news/ translate to a german version, but it also should let me have universal URLS (so you can post to the english one and a german should be able to get it in german)
Takle has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
mengu has quit [Remote host closed the connection]
<jhass>
as said, I think I prefer a cookie instead of URL encoding
timonv^ has quit [Remote host closed the connection]
ldnunes has joined #ruby
carbon has quit [Read error: Connection reset by peer]
<workmad3>
timgauthier: you could potentially have domain.de/whatever provide domain.com/de/whatever as the canonical url
<timgauthier>
true
<jhass>
so you have one URL, new user => accept language header, returning user => previous preference
timonv_ has joined #ruby
dmfranc has quit []
<jhass>
the language of the user sharing the link doesn't matter
cyrinux has joined #ruby
<workmad3>
jhass: having translations under urls rather than relying on cookies does help when reporting translation errors or referencing
<timgauthier>
jhass yeah, that makes sense, not sure craft will do that super easily. that said, there are benifits from usibility side having the site specifically have URL's to specific content. if I want to link someone to the german version of a page specifically. German and english content are actually different though the navigation will be mostly the same
<timgauthier>
exactly workmad3
<workmad3>
dunno how important those are for timgauthier's site though :)
<timgauthier>
they actualyl are quite
<timgauthier>
actually*
rjhunter has joined #ruby
<timgauthier>
and they run schools, german school details vs english school details are different, but may have the same address
<timgauthier>
just en/de difference
<timgauthier>
and we need the ability to have english and german diverge, so english pages have one sitemap and the german a different
emocakes has joined #ruby
Xeago has quit [Remote host closed the connection]
<workmad3>
timgauthier: I'd go with .com serving english and .de serving german then
<timgauthier>
yeah
<timgauthier>
danke
<timgauthier>
btw, how you been!
<workmad3>
timgauthier: they may be backed by the same db, with potentially auto-generated translations seeding things... but they sound different enough that they should be conceptually separated :)
<timgauthier>
yeah
<workmad3>
I'm doing ok
rdffd has quit [Ping timeout: 246 seconds]
timonv_ has quit [Ping timeout: 264 seconds]
<timgauthier>
they are the same system, same content, shared assets, shared db (they are literally the same instance of craft) and lots of similar crossover content, but they also will have divergance as you said. :)
carbon has joined #ruby
mkaesz has joined #ruby
<timgauthier>
cool, its nice being back on the correct timezone
<workmad3>
'correct' being what? utc? bst? :)
<timgauthier>
;) UTC
<timgauthier>
naw, i'm back in europe, where the cool people are online
gccostabr has joined #ruby
<QKO_>
#jqplot
<QKO_>
pp[s
<QKO_>
oops
<workmad3>
isns't most of europe on +1 or +2? :P
<timgauthier>
hah
<workmad3>
*isn't
<timgauthier>
yeah but i was in -8/-7
<workmad3>
west coast yankeeland?
<timgauthier>
Mountain
Xeago has joined #ruby
lemur has joined #ruby
fsapo_ has joined #ruby
<workmad3>
close enough :)
<timgauthier>
yes
dmfranc has joined #ruby
patrick99e99 has joined #ruby
dmfranc has quit [Max SendQ exceeded]
ndrei has quit [Ping timeout: 264 seconds]
sk87 has joined #ruby
MCDev has joined #ruby
sigurding has joined #ruby
doodlehaus has quit [Remote host closed the connection]
hiyosi has joined #ruby
grenierm has quit [Quit: grenierm]
matchaw has quit [Quit: No Ping reply in 180 seconds.]
<timgauthier>
man, craft is sweet.
carbon has quit [Ping timeout: 255 seconds]
dmfranc has joined #ruby
matchaw has joined #ruby
HelperW___ has quit [Remote host closed the connection]
dmfranc has quit [Client Quit]
<workmad3>
craft being?
fsapo_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
carbon has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
HelperW___ has joined #ruby
patrick99e99 has quit [Ping timeout: 268 seconds]
kaspergrubbe has joined #ruby
<timgauthier>
a *spit* php driven CMS
ringarin has quit [Ping timeout: 246 seconds]
<timgauthier>
but its actually more of a self hosted framework that lets you build your own site (instead of a behomith like wordpress)
hiyosi has quit [Ping timeout: 246 seconds]
ghost2060 has joined #ruby
vsipuli has quit []
<workmad3>
fun, I guess
earthquake has joined #ruby
sevenseacat has joined #ruby
<workmad3>
sounds drupally :P
<michael_mbp>
hey guys, quick hello to my mates here
<michael_mbp>
and ladies :)
<timgauthier>
yea its actually lighter then drupal, :)
<workmad3>
timgauthier: not difficult ;)
<timgauthier>
hehe yea
ClarusCogitatio has quit [Ping timeout: 252 seconds]
Sgeo has quit [Read error: Connection reset by peer]
arturaz has joined #ruby
SilkFox_ has joined #ruby
Morkel has quit [Quit: Morkel]
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Excess Flood]
ClarusCogitatio has joined #ruby
wiscas has left #ruby ["Leaving"]
mengu has joined #ruby
mengu has joined #ruby
DaniG2k has quit [Quit: leaving]
timonv_ has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 268 seconds]
CaptainJet has quit []
arup_r has quit [Remote host closed the connection]
doodlehaus has joined #ruby
Obversity has quit [Ping timeout: 255 seconds]
ClarusCogitatio has quit [Ping timeout: 245 seconds]
kaspergrubbe has quit [Remote host closed the connection]
Avahey_ has joined #ruby
britneywright has joined #ruby
oo_ has quit [Remote host closed the connection]
ClarusCogitatio has joined #ruby
bearish has quit [Remote host closed the connection]
Stalkr_ has quit [Quit: Leaving...]
tlarevo_ has joined #ruby
arup_r has joined #ruby
doodlehaus has quit [Remote host closed the connection]
dmfranc has joined #ruby
ClarusCogitatio has quit [Ping timeout: 272 seconds]
earthquake has quit [Quit: earthquake]
lolmaus has joined #ruby
freerobby has joined #ruby
Stalkr_ has joined #ruby
tlarevo has quit [Ping timeout: 260 seconds]
ClarusCogitatio has joined #ruby
bauruine has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
<shevy>
workmad3 hey you are in europe too
emmesswhy has quit [Quit: This computer has gone to sleep]
mkaesz has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
<workmad3>
shevy: heh :)
ddv has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
timonv_ has joined #ruby
InhalingPixels has joined #ruby
benzrf|offline is now known as benzrf
<timgauthier>
why not right
bauruine has joined #ruby
wallerdev has joined #ruby
narph has joined #ruby
<narph>
Hello :) I'm trying to use Thor for a CLI, but want a single class to describe a single task (without using Thor::Group). Is there a nice way to do that?
wallerdev has quit [Ping timeout: 246 seconds]
tokik has joined #ruby
startupality has joined #ruby
claymore has joined #ruby
obscured has joined #ruby
startupality has quit [Client Quit]
workmad3 is now known as wm3|away
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
cryptoca has quit [Ping timeout: 240 seconds]
diegoviola has quit [Quit: WeeChat 1.0]
carbon has quit [Ping timeout: 264 seconds]
manishs has quit [Ping timeout: 246 seconds]
cryptoca_ has joined #ruby
carbon has joined #ruby
ybit has quit [Ping timeout: 268 seconds]
heath has joined #ruby
ixti has quit [Ping timeout: 268 seconds]
sectionm1 has joined #ruby
Kricir has joined #ruby
sectionme has quit [Read error: Connection reset by peer]
suy has quit [Quit: No Ping reply in 180 seconds.]
suy has joined #ruby
bearish has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 245 seconds]
manishs has quit [Ping timeout: 268 seconds]
tlarevo_ has quit [Read error: Connection reset by peer]
timgauthier is now known as timgauthier_isaw
tlarevo has joined #ruby
nucatus has joined #ruby
linojon has joined #ruby
freerobby has joined #ruby
hellangel7 has joined #ruby
timonv_ has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
carbon has quit [Ping timeout: 276 seconds]
tvw has quit []
Xeago has quit [Remote host closed the connection]
carbon has joined #ruby
oso|away has quit [*.net *.split]
eshy has quit [*.net *.split]
minecoins has quit [*.net *.split]
cibs has quit [*.net *.split]
zz_karupa has quit [*.net *.split]
AlSquire has joined #ruby
sinkensabe has quit [Ping timeout: 260 seconds]
jerius has joined #ruby
Wolland_ has quit [Ping timeout: 240 seconds]
eshy has joined #ruby
zz_karupa has joined #ruby
cibs has joined #ruby
minecoins has joined #ruby
oso|away has joined #ruby
Xeago has joined #ruby
Wolland has joined #ruby
Xeago has quit [Remote host closed the connection]
mferrier has joined #ruby
mollitz has quit [Ping timeout: 252 seconds]
spastorino has joined #ruby
ClarusCogitatio has quit [Ping timeout: 260 seconds]
shackleford has joined #ruby
manishs has joined #ruby
sepp2k has quit [Quit: Leaving.]
sepp2k has joined #ruby
TorpedoSkyline has joined #ruby
arup_r has quit [Remote host closed the connection]
lkba has joined #ruby
ClarusCogitatio has joined #ruby
benzrf|offline is now known as benzrf
sigurding has quit [Read error: Connection reset by peer]
Advocation has joined #ruby
AndChat| has quit [Ping timeout: 245 seconds]
robbyoconnor has quit [Ping timeout: 245 seconds]
sleepee has joined #ruby
Tomasso has joined #ruby
abuzze_ has quit [Remote host closed the connection]
wewezzvy has joined #ruby
<Tomasso>
how do I match a string to have 17 characters in a regex ?
<canton7>
why use regex?
<canton7>
do you want to ignore whitespace, or something?
bmurt has joined #ruby
<toretore>
also, define character
<Tomasso>
canton7: because id like to have all the validations in a single string..
mengu has joined #ruby
mengu has joined #ruby
xcv has joined #ruby
cpruitt has joined #ruby
<Hanmac>
Tomasso: are you sure you want regexp its easier with str.size == 17 or something
<canton7>
Tomasso, having a single monolithic regex which handles all of your validation rules is horrific and should be avoided at all costs
freerobby has quit [Quit: Leaving.]
qmfnp has joined #ruby
<canton7>
apart from being ugly and painful to maintain or understand, you can't provide information about which bit of the validation failed
<brahman>
jhass: thanks for the answer, I found a stackexchange post explaining the same. After some testing the script that uses the modified YAML works like a charm. Thanks
<Tomasso>
unless i can save each validation in blocks instead of strings with regexs ...
TripTastic has joined #ruby
<canton7>
not sure what that statement means
TripTastic has left #ruby [#ruby]
abuzze has joined #ruby
sigurding has joined #ruby
Mars` has quit [Ping timeout: 272 seconds]
atmosx has quit [Ping timeout: 240 seconds]
bulyshko has joined #ruby
lemur has joined #ruby
arturaz has joined #ruby
<bulyshko>
anyone alive?
abuzze has quit [Remote host closed the connection]
carbon has quit [Read error: Connection reset by peer]
<canton7>
many peoples are alive
havenwood has joined #ruby
timonv_ has joined #ruby
abuzze has joined #ruby
<bulyshko>
good. anyone familiar with rspecs?
<canton7>
it's better to just ask your question
Mars` has joined #ruby
<canton7>
anyone who answered "yes" to that question risks getting roped into something, so not many people will respond
<izzol2>
when ruby will be in default in Centos :(
AlSquire has quit [Ping timeout: 240 seconds]
vjt has joined #ruby
abuzze has quit [Ping timeout: 268 seconds]
JohnFord has joined #ruby
shackleford has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<jhass>
izzol2: ask #centos ;)
Xeago has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<bulyshko>
I guess no one knows?...
goodenough has joined #ruby
shock_one has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 240 seconds]
shock_one has joined #ruby
<bulyshko>
btw allow_any_instance_of works fine
SilkFox_ has joined #ruby
wm3|away has joined #ruby
<bulyshko>
so it would be awesome to know if there is something I'm doing wrong or there is a bug in rspec
sk87 has joined #ruby
<JaVaSan>
Hi there, I tried to install ruby on Windows. It worked, but I can't get to run a hello world.If I use "ruby script.rb" on command-line, it prints "2" instead of the "hello world" string. However, If I run "%RUBY_HOME%\bin\ruby hello.rb", it works as expected and prints "Hello World!" (http://pastebin.com/5bJJmRxe). Any advice?
rdark_ has joined #ruby
shock_one has quit [Read error: Connection reset by peer]
kachi8 has joined #ruby
jmbrown412 has quit [Remote host closed the connection]
ringarin has joined #ruby
brahman has quit [Quit: Konversation terminated!]
jmbrown412 has joined #ruby
relix_ has joined #ruby
<canton7>
JaVaSan, output of 'where ruby'?
sk87 has quit [Client Quit]
Takle has joined #ruby
<p0sixpscl>
what does the * do in this case: Bundler.require(*Rails.groups)
shacklef_ has quit [Remote host closed the connection]
wewezzvy has quit [Quit: Page closed]
ghost2061 has quit [Ping timeout: 255 seconds]
bMalum has joined #ruby
toastynerd has joined #ruby
mateu has joined #ruby
havenwood has quit [Remote host closed the connection]
HelperW____ has joined #ruby
TripTastic has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
carbon has quit [Ping timeout: 260 seconds]
ppinto has joined #ruby
colli5ion has joined #ruby
havenwood has quit [Remote host closed the connection]
dmyers has quit [Remote host closed the connection]
shackleford has joined #ruby
dumdedum has quit [Ping timeout: 245 seconds]
carbon has joined #ruby
pwh has quit []
speaking1ode has joined #ruby
dgheath21 has joined #ruby
mpistone has quit [Remote host closed the connection]
AlSquire has quit [Quit: This computer has gone to sleep]
jprovazn is now known as jprovazn_afk
CaptainJet has joined #ruby
HelperW___ has quit [Ping timeout: 272 seconds]
ndrei has quit [Read error: No route to host]
Morkel has joined #ruby
speakingcode has quit [Ping timeout: 276 seconds]
HelperW____ has quit [Ping timeout: 240 seconds]
lemur has joined #ruby
blackmes1 has joined #ruby
fsapo has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
larissa has quit [Quit: Leaving]
hiyosi has joined #ruby
kachi8 has quit [Ping timeout: 245 seconds]
rotor has joined #ruby
endash has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
txdv has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
mercwithamouth has joined #ruby
txdv has joined #ruby
chth0n has quit [Quit: Ex-Chat]
cirn0 has joined #ruby
DivineEntity has quit [Quit: Lost terminal]
hiyosi has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
SilkFox_ has joined #ruby
hellangel7 has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
mr-foobar has quit [Quit: Leaving...]
cirn0 has quit [Ping timeout: 240 seconds]
bal has quit [Quit: bal]
hamakn has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
bmurt has joined #ruby
txdv has quit [Read error: Connection reset by peer]
qmfnp has joined #ruby
bmurt_ has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
axsuul has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
txdv has joined #ruby
SilkFox_ has quit [Ping timeout: 264 seconds]
rubytor has quit [Ping timeout: 264 seconds]
TripTastic has joined #ruby
grzywacz has quit [Quit: :wq]
fabrice31 has quit [Ping timeout: 240 seconds]
JBreit has quit [Ping timeout: 264 seconds]
wjimenez5271 has joined #ruby
hiyosi has joined #ruby
sk87 has joined #ruby
livingstn has joined #ruby
Chm has joined #ruby
Chm has left #ruby [#ruby]
Takle has quit [Remote host closed the connection]
soxet has quit [Quit: Leaving]
RTG` has quit [Read error: Connection reset by peer]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RTG` has joined #ruby
startupality has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
Scripore has quit [Ping timeout: 252 seconds]
carbon has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
ndrei has joined #ruby
axsuul_ has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
tlarevo_ has quit [Remote host closed the connection]
emocakes has quit []
ghost2061 has joined #ruby
carbon has joined #ruby
beef-wellington has quit [Ping timeout: 260 seconds]
centrx has joined #ruby
renderful has joined #ruby
ghost2060 has quit [Ping timeout: 245 seconds]
maletor_ has joined #ruby
dukz has joined #ruby
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hellangel7 has joined #ruby
axsuul_ has quit [Read error: Connection reset by peer]
Takle has joined #ruby
speaking1ode is now known as speakingcode
dgheath21 has quit [Quit: dgheath21]
axsuul has joined #ruby
atmosx has joined #ruby
avita1 has quit [Quit: Leaving.]
thams has quit [Ping timeout: 245 seconds]
hellangel7 has quit [Max SendQ exceeded]
visof has quit [Ping timeout: 252 seconds]
abuzze has joined #ruby
dukz has quit [Remote host closed the connection]
dukz has joined #ruby
albedoa has quit [Ping timeout: 240 seconds]
chrishough has joined #ruby
jmbrown412 has joined #ruby
abuzze has quit [Remote host closed the connection]
qmfnp has joined #ruby
beef-wellington has joined #ruby
LangeOortjes has quit [Read error: Connection reset by peer]
mpistone has joined #ruby
LangeOortjes has joined #ruby
shock_one_ has quit [Read error: Connection reset by peer]
albedoa has joined #ruby
sevenseacat has quit [Quit: Leaving.]
<jeregrine>
I've got a httparty class. the response body potentially contains error messages. If it does I want to raise an exception. Is making a custom parser the only way?
armyriad has quit [Ping timeout: 260 seconds]
shock_one_ has joined #ruby
shackleford has quit [Remote host closed the connection]
armyriad has joined #ruby
blackmes1 has quit [Ping timeout: 252 seconds]
pwestlund has quit [Ping timeout: 276 seconds]
TripTastic has quit [Ping timeout: 246 seconds]
dukz has quit [Ping timeout: 252 seconds]
bMalum has quit [Quit: bMalum]
JBreit has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JoelMcCracken has joined #ruby
codeurge has joined #ruby
b00stfr3ak has joined #ruby
wallerdev has joined #ruby
wallerdev has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ffranz1 has joined #ruby
BTRE has quit [Ping timeout: 245 seconds]
Aaaal has quit [Quit: Aaaal]
shackleford has joined #ruby
arup_r_ has joined #ruby
ffranz has quit [Ping timeout: 276 seconds]
shackleford has quit [Remote host closed the connection]
LangeOortjes has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
shackleford has joined #ruby
LangeOortjes has joined #ruby
JoelMcCracken has left #ruby [#ruby]
sparrovv has quit [Remote host closed the connection]
dideler has joined #ruby
_tpavel has quit [Quit: Leaving]
<Hanmac>
hey, wrote a script that shows the dependencies from a binary or lib and other libs ;P ... but i need to clean it up a bit, because nearly every lib needs "ld-linux-x86-64.so.2" so every other node does point to this node too ...
klmlfl has joined #ruby
jimmykarily has quit [Ping timeout: 255 seconds]
cDuff has joined #ruby
cDuff is now known as nDuff
blackmes1 has joined #ruby
arup_r_ has quit [Ping timeout: 245 seconds]
blackmes1 has quit [Client Quit]
ryanleesipes has joined #ruby
bMalum has joined #ruby
robbyoconnor has joined #ruby
ptrrr has quit [Quit: ptrrr]
bMalum has quit [Client Quit]
hellangel7 has joined #ruby
charliesome has quit [Quit: zzz]
ndrei has quit [Ping timeout: 272 seconds]
LangeOortjes has quit [Ping timeout: 252 seconds]
jobewan has joined #ruby
ndrei has joined #ruby
BTRE has joined #ruby
intnsity has quit [Ping timeout: 240 seconds]
shackleford has quit [Remote host closed the connection]
intnsity has joined #ruby
bartj3 has quit [Ping timeout: 245 seconds]
maletor_ has quit [Quit: Computer has gone to sleep.]
bearish has quit [Remote host closed the connection]
Scotteh has quit [Read error: Connection reset by peer]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Scotteh has joined #ruby
awestroke has joined #ruby
ghost2060 has joined #ruby
pu22l3r has joined #ruby
sdwrage_ has quit [Quit: Leaving]
linojon has joined #ruby
agjacome has joined #ruby
Takle has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qmfnp_lunch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ctp has joined #ruby
JBreit has joined #ruby
starkhalo has joined #ruby
omosoj has joined #ruby
TripTastic has quit [Ping timeout: 255 seconds]
pwh has quit []
<omosoj>
hey all, probably dumb question: is there a way to see whether one array has any values in common with another array (besides subtracting them?)
wezpyke has quit []
pu22l3r has quit [Ping timeout: 276 seconds]
<omosoj>
something like .include?()
toastynerd has joined #ruby
emmesswhy has joined #ruby
abuzze has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
SouL has joined #ruby
Takle has joined #ruby
<shevy>
is it possible to rescue more than one error at the same time?
mollitz has joined #ruby
<mferrier>
shevy: rescue Exception1, Exception2 => e
<shevy>
cool thanks man
<Mon_Ouie>
omosoj: Just as you said it, a.any? { |x| b.include? x }
fsapo_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
lw has quit [Quit: s]
abuzze has joined #ruby
<Mon_Ouie>
(The main advantage over the first form is that it can short-circuit)
<omosoj>
is that preferred over something like: if (string - lib).count < string.count;
<omosoj>
the first form (my form) can be short-circuit?
mikecmpbll has joined #ruby
mooru has joined #ruby
sambao21 has joined #ruby
<Mon_Ouie>
No it can't, it has to iterate over the whole array to construct a - b
larissa has joined #ruby
maestrojed has joined #ruby
Advocation has joined #ruby
lmickh has joined #ruby
<omosoj>
short-circuit is good?
Neomex has joined #ruby
<Mon_Ouie>
short-circuiting means stopping execution early because you already know what the result is going to be
MrL0ngbowman has joined #ruby
AlSquire has quit [Ping timeout: 245 seconds]
<Mon_Ouie>
e.g. in a && b, if a is false, you don't need to evaluate b because you already know the expression is going to evaluate to false
lkba has quit [Read error: Connection reset by peer]
<omosoj>
i see. cool.
lkba has joined #ruby
mkaesz has joined #ruby
<banister>
Mon_Ouie i just left brussels
<omosoj>
thanks
<Mon_Ouie>
What did you do there?
<banister>
Mon_Ouie which is the best library in brussels? i was at royal belgique museum and it nasty
lyanchih__ has joined #ruby
sambao21 has quit [Ping timeout: 245 seconds]
lyanchih has quit [Ping timeout: 255 seconds]
lyanchih__ is now known as lyanchih
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
colli5ion has quit [Ping timeout: 276 seconds]
cocotton has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
cocotton has joined #ruby
<Mon_Ouie>
I'm not really sure, I haven't visited many
<banister>
Mon_Ouie i was just exploring -- man, there's so many nasty/cheap computer shops in center of brussels that just sell junk
<banister>
Mon_Ouie it's quite a nasty place really -- you should move up in the world and come live in holland instead ;)
<eam>
nasty/cheap computer shops are great
<eam>
that's where the real work happens
<Mon_Ouie>
The Fnac is fine, that's where I tend to buy stuff
dukz has quit [Remote host closed the connection]
narph has quit [Quit: Connection closed for inactivity]
chrishough has joined #ruby
dukz has joined #ruby
dukz has quit [Read error: Connection reset by peer]
dukz has joined #ruby
<eam>
my favorite computer store is also a e-recycling center
carraroj has joined #ruby
<banister>
Mon_Ouie i like all the vietnamese restaurants though -- does belgium have a close relationship with vietnam? most asian restaruants in holland are thai
<banister>
or chinese
toastynerd has quit [Remote host closed the connection]
<Mon_Ouie>
I've only ever been in in Chinese and Japanese ones
cocotton has quit [Read error: Connection reset by peer]
cocotton_ has joined #ruby
elementz has quit [Ping timeout: 246 seconds]
AlSquire has joined #ruby
<banister>
Mon_Ouie btw do belgian french have a slight inferiority complex with regard to the true french?
bearish has joined #ruby
toastynerd has joined #ruby
JohnBat26 has joined #ruby
yfeldblum has joined #ruby
<Lewix>
banister: no they don't
<Lewix>
banister: they speak as good of a french as french, with a slight accent
dukz has quit [Remote host closed the connection]
<Lewix>
it's almost unnoticeable
dukz has joined #ruby
<banister>
really? my bro's french gf says the belgian accent is very noticeable
<Lewix>
However, there are a lot of french jokes about belgians and vice versa
Phrogz_ has joined #ruby
Phrogz_ has joined #ruby
Phrogz_ has quit [Changing host]
Phrogz_ is now known as Phrogz
<Lewix>
banister: I disagree.
<banister>
fairynuff
<waxjar>
same with the dutch and the flamish
<Phrogz>
Anyone here used any wav file libs? I'm trying to determine the length of a .wav in ms
grokdancer has quit [Quit: Leaving.]
carbon has quit [Read error: Connection reset by peer]
<Lewix>
banister: It's very subjective but the more you go south the thicker the accent, French is no exception. Belgians have a less heavy accent than a lot of southern places in France imo
<shevy>
Phrogz not me but I usually use ffmpeg
<shevy>
only for .mp3 files so far though
lemur has joined #ruby
<Lewix>
s/French/France*
jprovazn_afk has quit [Quit: Odcházím]
<shevy>
"The duration of file `GypsyKings_HotelCalifornia.mp3` is: 347 seconds."
<shevy>
I am not sure if ffmpeg gives ms .... hmmm
<shevy>
eh, I mean... add the seconds and minutes to that too
<shevy>
in ms :P
Takle has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<Lewix>
Mon_Ouie: I heard that holland is so small that after a few months you lose interest and move up in the world to Canada =)
TripTastic has joined #ruby
wallerdev has quit [Quit: wallerdev]
<Phrogz>
shevy: I don't have to use Ruby. Let me look into ffmpeg
dukz has quit [Ping timeout: 272 seconds]
<shevy>
\o/
msmith_ has joined #ruby
<shevy>
I guess I could add this to my multimedia project
thumpba has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
carbon has joined #ruby
Spami has joined #ruby
elementz has joined #ruby
JBreit has quit [Ping timeout: 252 seconds]
lemur has quit [Ping timeout: 272 seconds]
qba73 has quit []
<shevy>
what info do you need to be returned?
<shevy>
a string in milliseconds?
andrewjanssen has joined #ruby
<Phrogz>
shevy: I'm just trying to find the duration of a few .wav files accurately. Integer number of ms would be fine.
<shevy>
k
<Phrogz>
I'm skimming ffmpeg -h right now but not seeing how to make it dump stats on the file.
adrenaline_ has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
<Phrogz>
This looks close to what I want, but the methods appear to be oriented towards someone who understands the breakdown of the .wav file format. https://github.com/jstrait/wavefile
AlSquirrel has quit [Remote host closed the connection]
BeanDip has joined #ruby
Takle has joined #ruby
AlSquire has joined #ruby
dcoxall has quit []
emmesswhy has quit [Quit: This computer has gone to sleep]
Alina-malina has quit [Ping timeout: 252 seconds]
Alina-malina has joined #ruby
Mon_Ouie has quit [Ping timeout: 268 seconds]
<preyalone>
wallerdev, just add the multiline flag to that, and it works!
<shevy>
is there a way to convert a Time object into a float?
<preyalone>
.gsub(/(.+?)(\1)+/m, '\1')
<shevy>
ahhh .to_f
ndrei has quit [Ping timeout: 276 seconds]
toastynerd has quit [Remote host closed the connection]
grokdancer has joined #ruby
newfellow has joined #ruby
ndrei has joined #ruby
newfellow has quit [Client Quit]
emmesswhy has joined #ruby
robbyoconnor has quit [Ping timeout: 276 seconds]
albedoa has quit [Read error: Connection reset by peer]
ghostmoth has left #ruby [#ruby]
ghostmoth has joined #ruby
j_mcnall_ has quit [Ping timeout: 276 seconds]
sectionme has quit [Ping timeout: 245 seconds]
omosoj has quit [Ping timeout: 260 seconds]
albedoa has joined #ruby
mferrier_ has joined #ruby
SilkFox_ has joined #ruby
djbkd has quit [Remote host closed the connection]
BeanDip has quit [Ping timeout: 252 seconds]
TieSoul has left #ruby [#ruby]
cpruitt has quit [Quit: cpruitt]
rdark_ has quit [Quit: leaving]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mferrier has quit [Ping timeout: 252 seconds]
melik has joined #ruby
qmfnp has joined #ruby
SilkFox_ has quit [Ping timeout: 252 seconds]
rkalfane_ has joined #ruby
dmfranc has quit []
reset has joined #ruby
cocotton_ has quit [Read error: Connection reset by peer]
cocotton has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
mark_locklear has joined #ruby
16WAACAOY has joined #ruby
l3ck has joined #ruby
cina has quit [Ping timeout: 252 seconds]
fsapo_ is now known as fsapo
BeanDip has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
luckyruby has quit [Ping timeout: 264 seconds]
choke has quit [Read error: Connection reset by peer]
choke has joined #ruby
mooru has quit [Ping timeout: 245 seconds]
luckyruby has joined #ruby
hellangel7 has joined #ruby
nDuff has quit [Read error: Connection reset by peer]
adamski2600 has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
adamski2600 has joined #ruby
echevemaster has joined #ruby
ctp has joined #ruby
fsapo has quit [Remote host closed the connection]
anshin has quit [Quit: storming here again]
jxf has quit [Ping timeout: 252 seconds]
j_mcnall_ has joined #ruby
fsapo has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adamski2600 has quit [Ping timeout: 246 seconds]
Juanchito has joined #ruby
djbkd has joined #ruby
skfax has joined #ruby
cgore has joined #ruby
failshell has joined #ruby
<graft_>
anyone have a good trick for doing weighted samples from an array?
Wolland has joined #ruby
<graft_>
preferably in O(1)?
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mocfive has quit [Remote host closed the connection]
rkalfane_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mocfive has joined #ruby
Hobogrammer has joined #ruby
djbkd has quit [Remote host closed the connection]
<wallerdev>
dont think theres anything built in for that unless you assume all weights are equal haha
<wallerdev>
probably a gem though
djbkd has joined #ruby
larissa has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
m8 has joined #ruby
cpruitt has joined #ruby
gtrak_ has quit [Ping timeout: 264 seconds]
ursooperduper has joined #ruby
yfeldblum has joined #ruby
cocotton has quit [Remote host closed the connection]
djbkd has quit [Client Quit]
gtrak has joined #ruby
cocotton has joined #ruby
iamjarvo has joined #ruby
Martxel has joined #ruby
kaspertidemann has joined #ruby
kirun has joined #ruby
qualiabyte has joined #ruby
cina has joined #ruby
skfax has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
heftig has quit [Quit: Quitting]
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BeanDip has quit [Ping timeout: 245 seconds]
heftig has joined #ruby
LangeOortjes has joined #ruby
JBreit has joined #ruby
j_mcnall_ has joined #ruby
chrishough has joined #ruby
<graft_>
hm i don't think this can be done cheaper than log(n)
<failshell>
is there a gem that helps in manipulating ip addresses/netmasks? i need to extract the subnets from say 172.28.90.0/23. which is 172.28.90.0/24 and 172.28.91.0/24.
JBreit has left #ruby [#ruby]
<centrx>
graft_, You could do it in R/RSRuby, there might be a pre-made best-of-breed algorithm for it in R
ppinto has joined #ruby
renderful has quit [Remote host closed the connection]
<yxhuvvd>
failshell: if ipaddr in the stdlib isn't good enough, check out the ipaddress gem.
cina has quit [Quit: leaving]
dmfranc has joined #ruby
davedev24_ has quit [Ping timeout: 260 seconds]
<failshell>
yxhuvvd: ipaddress might do it
elstif has joined #ruby
postmodern has joined #ruby
postmodern has joined #ruby
postmodern has quit [Changing host]
jherbst has joined #ruby
ppinto has quit [Client Quit]
davedev24_ has joined #ruby
fabrice31 has joined #ruby
benzrf|offline is now known as benzrf
lemur has joined #ruby
<failshell>
yxhuvvd: exactly what i needed. thanks
ppinto has joined #ruby
Rahul_Roy has joined #ruby
sepp2k has joined #ruby
niklasb_ has joined #ruby
mocfive has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
elstif has quit [Client Quit]
mocfive has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
mocfive has quit [Read error: Connection reset by peer]
msmith_ has quit [Remote host closed the connection]
mferrier_ has quit [Remote host closed the connection]
mocfive has joined #ruby
BeanDip has joined #ruby
mferrier has joined #ruby
fabrice31 has quit [Ping timeout: 268 seconds]
aspires has quit []
lemur has quit [Ping timeout: 272 seconds]
pwh_ has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MrL0ngbowman has quit [Remote host closed the connection]
jds has quit [Quit: Connection closed for inactivity]
<ruby-lang120>
was just on that page, doesn't make sense :/
kennet___ has quit [Ping timeout: 245 seconds]
<pipework>
ruby-lang120: Well, imagine. There's three possible values for comparing any two things.
seamon has quit [Quit: Zzzzzzz]
dorei has quit []
<ruby-lang120>
ok
<pipework>
If you have a list of some kind, you compare those objects using a sorting algorithm. But before you can apply an algorithm, you need to be able to compare those objects.
mocfive has quit [Remote host closed the connection]
<pipework>
So if any two objects are comparable, the only possible results of the comparison are greater than, less than, and equivalent.
<ruby-lang120>
makes sense
mocfive has joined #ruby
spider-mario has quit [Remote host closed the connection]
<havenwood>
ruby-lang120: just a way to tell it what metric you're comparing on
Kerber0s has quit [Remote host closed the connection]
seamon has joined #ruby
shock_one___ has joined #ruby
<havenwood>
ruby-lang120: size, alphabet, call a method to find out, whatever you want to use to compare you put on both sids of the spaceship operator
ringaring has joined #ruby
Wolland_ has quit [Remote host closed the connection]
<supa_>
In a nut shell, I have a web service that accepts operations on data. I allow Python currently via seccomp and thought it would be neat to add ruby support.
skyspl0it has quit [Remote host closed the connection]
sevvie has joined #ruby
<joelbrewer>
jhass: ahhh. nice.
sevvie has quit [Client Quit]
aspires has quit []
freerobby has quit [Quit: Leaving.]
lemur has quit [Ping timeout: 272 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
txdv has quit [Read error: Connection reset by peer]
skysploit has quit [Read error: Connection reset by peer]
Xaitec has joined #ruby
txdv has joined #ruby
seamon has joined #ruby
<banister>
jhass updaet_attribute causes a world of pain
<banister>
jhass rails 4 has update() that'll run validations
<jhass>
eh right, but tell joelbrewer ;P
<jhass>
my rails is a bit rusty
<banister>
oh hehe
ghr has quit [Ping timeout: 272 seconds]
bricker`1ork has joined #ruby
mary5030 has quit [Remote host closed the connection]
<tejas-manohar>
how to loop through a hash of hashes of format {"-JW72CElds5Fw4ij4PuD"=>{"username"=>"asdasdasd"}, "-JW72dtOg8Q5XkASGutI"=>{"username"=>"qwoenqwe"}} and check if a certain "username"'s value is x?
<tejas-manohar>
snippets preferred but really any help is super appreciated
<tejas-manohar>
new to ruby
SilkFox_ has joined #ruby
j_mcnall_ has joined #ruby
bricker`work has quit [Ping timeout: 268 seconds]
16WAACAOY has quit [Remote host closed the connection]
<hello888>
can anyone help me with a question i have
<pipework>
havenwood: Don't tell me you prefer find over the rhyming detect?
<tejas-manohar>
ask it
<tejas-manohar>
havenwood: why is there no .find code ex there but there is for .detect and .find_all
<hello888>
im trying to learn Ruby and taking the ruby monk lessons online
<havenwood>
pipework: well, when i'm rapping or writing limericks
<hello888>
As you can see in the output, the method just returns the first match rather than all the matches. In order to find further matches, we can pass a second argument to the match method. When the second parameter is present, it specifies the position in the string to begin the search. Let's find the second character in the string 'RubyMonk Is Pretty Brilliant' preceded by a space, which should be 'P'.
<pipework>
havenwood: I just prefer detect, select, reject.
<havenwood>
tejas-manohar: detect is an alias to find, find_all is an alias to select
<havenwood>
tejas-manohar: two methods, two names for each
<hello888>
'RubyMonk Is Pretty Brilliant'.match(/ ./)'RubyMonk Is Pretty Brilliant'.match(/ ./, 9)
<tejas-manohar>
havenwood: so it really doesnt matter if i use detect or find? it relates to the same code in the core ruby?
<hello888>
so its shows 'RubyMonk Is Pretty Brilliant'.match(/ ./) and gives 'RubyMonk Is Pretty Brilliant'.match(/ ./, 9) as an answer
<hello888>
where does the 9 come form?
<havenwood>
tejas-manohar: just your preference
<havenwood>
tejas-manohar: except use #map not #collect :P
<tejas-manohar>
havenwood: great :P
ghostmoth has quit [Quit: ghostmoth]
renderful has quit [Remote host closed the connection]
<pipework>
But it rhymes with detect, select, and reject!
<tejas-manohar>
havenwood: so do i bhave to check if the array is blank?
mkaesz has quit [Ping timeout: 255 seconds]
<tejas-manohar>
so if there are no matches, it just returns []?
<havenwood>
pipework: lol
<havenwood>
tejas-manohar: some methods return nil if no match, others return an empty array if no match
<centrx>
hello888, "If the second parameter is present, it specifies the position in the string to begin the search."
<hello888>
i dont know what any of that means
julianhurley has joined #ruby
AmBienCeD has joined #ruby
<centrx>
hello888, The 9 is the second parameter. It represents the index/position in the string where the search begins
<hello888>
but how was that index/position determined?
<hello888>
it asks this As you can see in the output, the method just returns the first match rather than all the matches. In order to find further matches, we can pass a second argument to the match method. When the second parameter is present, it specifies the position in the string to begin the search. Let's find the second character in the string 'RubyMonk Is Pretty Brilliant' preceded by a space, which should be 'P'.
thumpba has joined #ruby
bruno- has joined #ruby
<hello888>
and shows this as the problem 'RubyMonk Is Pretty Brilliant'.match(/ ./)
<tejas-manohar>
havenwood: can unless be paired with else?
<centrx>
hello888, For this example/question, it was determined by someone manually looking at the string with their eyes I assume
<havenwood>
hello888: try this code: '01234 <- those are in index zero through four, so we will ask for the first digit after index five, a 9'.match /\d/, 5
<havenwood>
tejas-manohar: everything
j_mcnally has quit [Quit: さよなら]
<hello888>
centrx where does the 9 come from? P isnt the 9th anything
rezzack has joined #ruby
<hello888>
havenwood sorry i dont know what that means
<jhass>
hello888: what character would the "problem" return?
lmickh has quit [Remote host closed the connection]
<hello888>
what is irb or pry?
<hello888>
this is my 2nd day using ruby
<jhass>
do you have ruby installed?
<hello888>
im using ruby monk
rim-k has joined #ruby
<jhass>
still
<rim-k>
hello everyone!
bruno- has quit [Ping timeout: 245 seconds]
<hello888>
i have no idea what u are talking about
<hello888>
'RubyMonk Is Pretty Brilliant'.match(/ ./, 9) is the solution and it outputs P, why is that??
<jhass>
do you have ruby installed? simple question
hiyosi has joined #ruby
narcan has joined #ruby
<centrx>
hello888, irb and pry are programs where you can test your Ruby expressions
rklfn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Davedo has joined #ruby
<rim-k>
does anyone know if it's possible to get the date/time of a tweet (result of Twitter::Search)?
rklfn has joined #ruby
<jhass>
hello888: you have been answered that multiple times already, since you don't seem to understand those answers, I want to go through it with you baby-step by baby-step
<rim-k>
I seem to get only the avatar/body/name
<hello888>
jhass i answered i dont know what any of your answers mean
<hello888>
ive given my example and the solution
<hello888>
i dont understand why
tjr9898 has quit [Remote host closed the connection]
cocotton_ has joined #ruby
<jhass>
hello888: so I take it, you don't want my help?
cesarstafe has joined #ruby
<hello888>
i want any help i can get
<jhass>
please state that clearly so we don't waste our each others time
<hello888>
what would u like me to state
tjr9898 has joined #ruby
<jhass>
hello888: then, do you have ruby installed?
<hello888>
i am using ruby monk
<atmosx>
clockwork executed the task but I can't see nothing in my queue weird shit
<hello888>
ruby installed on my computer
<hello888>
im in library
<jhass>
is that a yes or a no?
<rim-k>
anyone?
<hello888>
using ruby monk
<centrx>
He's using a public computer at the library, so no Ruby installed
<hello888>
^
<hello888>
thought my answer was clear
julianhurley has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
<hello888>
'RubyMonk Is Pretty Brilliant'.match(/ ./, 9) how does the 9 output 'P' ?
<centrx>
hello888, What would you say 'RubyMonk Is Pretty Brilliant'.match(/ ./) does?
<pipework>
tejas-manohar: when you have behaviour and data that should be wrapped together in such a way that your behaviour encapsulates the data.
<jhass>
hello888: did you see what it returns?
<hello888>
pipework yes it does the 2nd lesson is incorreect
<tejas-manohar>
pipework: sounds good!
<pipework>
hello888: In what way?
<hello888>
I jhass ?
<jhass>
I mentioned you, didn't I?
<centrx>
C'est moi
<hello888>
pipework i cant explain it technically but i was in the room the other day asking and everyone was saying o man that book gave wrong directions
<pipework>
I've gone through the book while teaching people how to program. I'm not aware of the problem.
<hello888>
no jhass the answer is out put I ?
tjr9898 has quit [Ping timeout: 276 seconds]
cocotton_ has quit [Ping timeout: 276 seconds]
<pipework>
hello888: That might not be a technical problem, just a matter of preference.
<hello888>
i have no preference i dont know shit
<hello888>
im trying to learn
<pipework>
It's one of the least technical books about a very technical subject matter.
<jhass>
hello888: exactly, so which letter in the string is "I"?
<jhass>
what position does it have?
<hello888>
9th
<hello888>
this is the question it asks though jhass As you can see in the output, the method just returns the first match rather than all the matches. In order to find further matches, we can pass a second argument to the match method. When the second parameter is present, it specifies the position in the string to begin the search. Let's find the second character in the string 'RubyMonk Is Pretty Brilliant' preceded by a space, which should be
<centrx>
We understand :)
<hello888>
i dont :(
beef-wellington has quit [Ping timeout: 240 seconds]
<jhass>
hello888: so we found out that the first match is at position 9, right?
<hello888>
yes
<jhass>
hello888: and we learned that we can specify the position where match should start searching, right?
<hello888>
how?
<jhass>
read the text again that you pasted 5 times into the channel or the docs centrx linked
<hello888>
i dont understand thats what im asking
Deele has joined #ruby
<hello888>
you guys have done this for months or years im day two
<jhass>
okay, do you know what a parameter is?
Martxel has quit [Read error: Connection reset by peer]
<hello888>
no not really
freerobby has joined #ruby
<jhass>
do you know what a method is?
<hello888>
not really
<hello888>
ruby monk starts off hard
<jhass>
maybe you should start with tryruby.org
<centrx>
Yeah there must be a better resource for learning _programming_ from scratch instead of _Ruby_
nfk has quit [Quit: yawn]
einarj_ has quit [Ping timeout: 245 seconds]
<hello888>
code academy sent me chris pines pdf and ruby monk lessons
<pipework>
I really think you would benefit from actually reading through the whole Learn to Program book before taking other people's opinions on its correctness. It's been used to teach people new to programming for some years now.
<tejas-manohar>
ok
<pipework>
tejas-manohar: You tell me? I don't know what you're asking about.
<hello888>
pipework i understand that and i gave it a try, it was so technical i didnt understand it, when i looked for help and presented the problem and the code i was working on the chat room said the book was incorrect
<hello888>
i dont know enough to say otherwise hence my seeking help on every problem
<pipework>
hello888: I think you'll be hard-pressed to find a less technical book on learning how to tell computers to do things.
Xaitec has quit [Remote host closed the connection]
<pipework>
Unless you think scratch looks simple enough.
<pipework>
tejas-manohar: If I were you, I'd consider memoizing the response of the call to firebase.
<tejas-manohar>
pipework: why memorizing it?
<tejas-manohar>
oh ok hmmm
<pipework>
tejas-manohar: Because you're getting all the users to see if a single user is there, which is a request that blocks until it finishes.
mrsolo has quit [Quit: Leaving]
pwh has joined #ruby
<pipework>
If you memoize it, you just need to purge the cache whenever you'd like. But at least then you only need to make a single request to get the list of users until you want to refetch.
<tejas-manohar>
pipework: memoizing is sorta like caching it right?
<pipework>
tejas-manohar: Yeah.
<tejas-manohar>
yeah
razrunelord has quit [Remote host closed the connection]
<pipework>
Also, you don't need to ask if match is nil. use `users.detect { ... }` as the last line.
rklfn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tejas-manohar>
implicit returning?
datreh has quit [Quit: Computer has gone to sleep.]
<pipework>
Yeah, no need to use explicit return in ruby. The last expression evaluated is the thing that is returned.
<tejas-manohar>
yeah
<tejas-manohar>
pipework: well basiucally my site is one where users would go to aand "verify" their yo uesrname to associate it with a real life name and email and whatever
<tejas-manohar>
pipework: users go to it and enter their username, if its already verified, they are redirected to the profile page
<tejas-manohar>
if its not, theyre sent to auth which basically means yo us in x seconds to authenticate
<tejas-manohar>
*yo us from the username u entered of course
<tejas-manohar>
if i cache that request, that could cause problems with someone checking their usenrame right after auth'ing adn setting up profile
<tejas-manohar>
and it asking them to auth again
<pipework>
tejas-manohar: What I would suggest to keep things smooth is to keep the list of users up to date locally some other way outside of the request.
gtc has joined #ruby
<tejas-manohar>
pipework: but "if i cache that request, that could cause problems with someone checking their usenrame right after auth'ing adn setting up profile"
<pipework>
Like, every n minutes/seconds/whatevers issue a request that will fetch the users and store them locally.
sleepee has quit [Ping timeout: 240 seconds]
<tejas-manohar>
oh hmm
<tejas-manohar>
is it worth it if its every minute
britneywright has joined #ruby
<tejas-manohar>
pipework:
<pipework>
tejas-manohar: So, someone signs up for a service you control, right?
<pipework>
Then they choose a username?
<hello888>
good day guys
<tejas-manohar>
pipework: Yo is not a service I conttrol
<havenwood>
hello888: later, happy hacking!
<pipework>
tejas-manohar: Oh I see.
aspires has joined #ruby
<havenwood>
hello888: keep at it, things start making sense eventually ;)
<tejas-manohar>
after they auth, they can share veriyo.herokuapp.com/profile/myusername
<tejas-manohar>
and be like
<tejas-manohar>
this is me
<hello888>
idk man i think im done
<tejas-manohar>
so when you get somethign from me
<hello888>
cant even find help in a chat room
<tejas-manohar>
you know who it is
<tejas-manohar>
justyo.co
<tejas-manohar>
yo is a stupid app that lets you send one word 'yo' completely anonymous
<pipework>
tejas-manohar: I guess it won't be too bad in that case, as long as you can reach firebase quickly.
<tejas-manohar>
yeah
<tejas-manohar>
firebase ia realtime db
<tejas-manohar>
thats the stuff its meant for
<pipework>
Yeah, but network latency.
<pipework>
Someone makes a request to you that stays open while you make a blocking request to firebase.
bricker`1ork has quit [Quit: leaving]
<tejas-manohar>
pipework: hmm, i guess
<tejas-manohar>
i have to update it at least every minute i think
<pipework>
I don't use firebase personally, but I don't use database-as-a-service ever. My datum is far too precious.
<tejas-manohar>
otherwise i could just cause bad UX
hello888 has quit [Quit: Page closed]
<tejas-manohar>
this is stupid data lol
rklfn has joined #ruby
<pipework>
tejas-manohar: I mean, you could make the request like you are now.
<pipework>
Especially if that's really all that happens or must happen before any more processing can happen before the response.
Bumptious has quit [Remote host closed the connection]
<tejas-manohar>
pipework: yeah
<tejas-manohar>
just for UX reasons, i think thats best
<tejas-manohar>
i mean i dont expect a super duper high activity on this site
<tejas-manohar>
its pretty derp
<tejas-manohar>
for practice
<tejas-manohar>
and fun
<pipework>
I mean, you could use ajax on the client side if you wanted to keep the UI from locking.
<pipework>
tejas-manohar: You don't need the `match =` portion.
lemur has joined #ruby
<pipework>
Also, you don't need ` == true` on line 23.
<tejas-manohar>
pipework: ahh i like ruby
<havenwood>
Ruby ist fantastisch
<pipework>
tejas-manohar: Note that `if auth? username == true` doesn't do what you think it does. It first evaluates `username == true` and then `auth? true`
<pipework>
havenwood: würd
<tejas-manohar>
only thing is async and nonblocking stuff in ruby is a pain compared to js
<tejas-manohar>
at least when i tried
<tejas-manohar>
js referring to node being the only thing comparable
dc__ has joined #ruby
<pipework>
tejas-manohar: It's definitely something that requires a bit more braining.
<havenwood>
tejas-manohar: JavaScript keeps it simple by not supporting anything hard. You can do evented code in Ruby if you like. Or something like Celluloid::IO that JavaScript folk can't have.